[go: up one dir, main page]

CN106130858B - Data transmission method Internet-based, apparatus and system - Google Patents

Data transmission method Internet-based, apparatus and system Download PDF

Info

Publication number
CN106130858B
CN106130858B CN201610466474.4A CN201610466474A CN106130858B CN 106130858 B CN106130858 B CN 106130858B CN 201610466474 A CN201610466474 A CN 201610466474A CN 106130858 B CN106130858 B CN 106130858B
Authority
CN
China
Prior art keywords
data
time slice
transmitted
time
allocation information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610466474.4A
Other languages
Chinese (zh)
Other versions
CN106130858A (en
Inventor
张洪雁
张俭锋
闫志伟
韦锦驹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201610466474.4A priority Critical patent/CN106130858B/en
Publication of CN106130858A publication Critical patent/CN106130858A/en
Application granted granted Critical
Publication of CN106130858B publication Critical patent/CN106130858B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • H04L12/4035Bus networks with centralised control, e.g. polling in which slots of a TDMA packet structure are assigned based on a contention resolution carried out at a master unit

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of data transmission methods Internet-based, apparatus and system, this programme is suitable for two-wire system data transmission network, the described method includes: host node receives the timeslice acquisition request sent from node, it include the data volume of data to be transmitted in the timeslice acquisition request;According to the data volume of the data to be transmitted and unappropriated timeslice, timeslice is distributed for the data to be transmitted, timeslice is obtained and distributes information;Timeslice distribution information is sent to and described sends the data to be transmitted so that described distribute information according to the timeslice from node from node.In the present invention program, host node is according to the timeslice acquisition request from node, to distribute timeslice from node, so as to can send data to be transmitted according to the timeslice distributed for itself from node.In this way, without being category 5 twisted pair network by the network rebuilding, while data are transmitted from node according to timeslice, it can also guarantee the time determinability of data transmission.

Description

基于互联网的数据传输方法、装置及系统Internet-based data transmission method, device and system

技术领域technical field

本发明涉及数据传输技术领域,尤其涉及基于互联网的数据传输方法、装置及系统。The present invention relates to the technical field of data transmission, and in particular, to an Internet-based data transmission method, device and system.

背景技术Background technique

在工业控制领域,随着以太网通信技术的发展,其逐渐取代传统的工业现场总线技术,来传输工业控制数据。In the field of industrial control, with the development of Ethernet communication technology, it gradually replaces the traditional industrial field bus technology to transmit industrial control data.

而现有的工业控制领域中,多采用CSMA/CD(Carrier Sense Multiple Accesswith Collision Detection,带冲突检测的载波监听多路访问技术)传输数据。具体的,该技术要求每一个节点发送数据前先侦听信道是否空闲,若空闲,则立即发送数据;否则,等待一段时间至信道空闲时再发送数据。若在上一段信息发送结束后,同时有两个或两个以上的节点都提出发送请求,则判定为冲突。若侦听到冲突,则立即停止发送数据,等待一段随机时间,再重新尝试。In the existing industrial control field, CSMA/CD (Carrier Sense Multiple Access with Collision Detection, carrier sense multiple access technology with collision detection) is mostly used to transmit data. Specifically, this technology requires each node to monitor whether the channel is idle before sending data, and if it is idle, send data immediately; otherwise, wait for a period of time until the channel is idle before sending data. If two or more nodes simultaneously submit sending requests after the last piece of information is sent, it is determined as a conflict. If a conflict is detected, it immediately stops sending data, waits for a random period of time, and then tries again.

由于采用CSMA/CD技术,使得任一节点发送数据时必须进行冲突检测,若检测到冲突便不能发送数据,需要继续等待一段时间,而这段等待的时间的时长是不确定的,所以导致CSMA/CD技术存在发送数据的发送时间不确定性。尤其在网络负担较重时,这种不确定性,难以适用于工业控制中对数据传输的发送时间确定性的要求。Due to the use of CSMA/CD technology, any node must perform conflict detection when sending data. If a conflict is detected, it cannot send data, and it needs to wait for a period of time. The length of this waiting time is uncertain, so CSMA /CD technology has the uncertainty of sending time of sending data. Especially when the network load is heavy, this kind of uncertainty is difficult to apply to the requirement of deterministic transmission time of data transmission in industrial control.

此外,传统工业控制中多采用总线传输技术(例如PROFIBUS(Process Field Bus,过程现场总线)、Modbus(Modbus protocol,Modbus通讯协议)、can(Controller AreaNetwork,控制器局域网络)等)传输数据。而总线传输技术多采用两线制网络结构,而以太网通常使用5类双绞线传输数据。为了通过CSMA/CD技术传输数据,必然需要将两线制网络结构改造成满足以太网网络结构的5类双绞线,这一改造即耗时、又费力。In addition, bus transmission technologies (such as PROFIBUS (Process Field Bus, process field bus), Modbus (Modbus protocol, Modbus communication protocol), can (Controller Area Network, controller area network), etc.) are mostly used in traditional industrial control to transmit data. The bus transmission technology mostly uses a two-wire network structure, while Ethernet usually uses Category 5 twisted pair to transmit data. In order to transmit data through CSMA/CD technology, it is necessary to transform the two-wire network structure into Category 5 twisted pair that meets the Ethernet network structure, which is time-consuming and labor-intensive.

故此,需要一种新的工业数据传输方法,既能够不将两线制网络改造成5类双绞线改造网络,又能够保证数据传输的时间确定性。Therefore, a new industrial data transmission method is required, which can not only transform the two-wire network into a Category 5 twisted pair network, but also ensure the time determinism of data transmission.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了基于互联网的数据传输方法、装置及系统,用以解决目前存在为使用以太网通信技术,需要将两线制的网络改造成5类双绞线的以太网,且现有技术中改造后的以太网采用CSMA/CD技术存在数据传输时间的不确定性,网络负担重时,不能满足工业控制中对数据传输的发送时间确定性的要求的问题。The embodiments of the present invention provide an Internet-based data transmission method, device, and system, to solve the problem that in order to use the Ethernet communication technology, it is necessary to transform a two-wire network into a Category 5 twisted pair Ethernet, and the existing The modified Ethernet in the technology adopts CSMA/CD technology, which has the uncertainty of data transmission time. When the network is under heavy load, it cannot meet the problem of the certainty of the transmission time of data transmission in industrial control.

本发明实施例提供了一种基于互联网的数据传输方法,适用于两线制数据传输网络,包括:The embodiment of the present invention provides an Internet-based data transmission method, which is applicable to a two-wire data transmission network, including:

主节点接收从节点发送的时间片获取请求,所述时间片获取请求中包括待传输数据的数据量;The master node receives a time slice acquisition request sent by the slave node, where the time slice acquisition request includes the amount of data to be transmitted;

根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息;According to the data amount of the data to be transmitted and the unallocated time slice, allocate a time slice for the data to be transmitted, and obtain time slice allocation information;

将所述时间片分配信息发送给所述从节点,以使所述从节点根据所述时间片分配信息,发送所述待传输数据。Sending the time slice allocation information to the slave node, so that the slave node sends the data to be transmitted according to the time slice allocation information.

进一步地,本发明实施例还提供了一种基于互联网的数据传输方法,适用于两线制数据传输网络,所述方法包括:Further, an embodiment of the present invention also provides an Internet-based data transmission method, which is applicable to a two-wire data transmission network, and the method includes:

从节点发送生成的时间片获取请求给主节点;所述时间片获取请求中包括待传输数据的数据量;The slave node sends the generated time slice acquisition request to the master node; the time slice acquisition request includes the amount of data to be transmitted;

接收主节点发送的时间片分配信息;所述时间片分配信息为所述主节点接收所述时间片获取请求后,根据所述待传输数据的数据量以及未分配的时间片为所述待传输数据分配时间片后获得的;Receive the time slice allocation information sent by the master node; the time slice allocation information is that after the master node receives the time slice acquisition request, according to the data amount of the data to be transmitted and the unallocated time slice, the time slice is the time slice to be transmitted. Obtained after data allocation time slice;

根据所述时间片分配信息,发送所述待传输数据。The data to be transmitted is sent according to the time slice allocation information.

进一步地,本发明还提供一种基于互联网的数据传输装置,适用于两线制数据传输网络,所述装置包括:Further, the present invention also provides an Internet-based data transmission device suitable for a two-wire data transmission network, the device comprising:

时间片获取请求接收模块,用于接收从节点发送的时间片获取请求,所述时间片获取请求中包括待传输数据的数据量;a time slice acquisition request receiving module, configured to receive a time slice acquisition request sent from a node, where the time slice acquisition request includes the amount of data to be transmitted;

时间片分配模块,用于根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息;a time slice allocation module, configured to allocate time slices for the data to be transmitted according to the data amount of the data to be transmitted and the unallocated time slices, and obtain time slice allocation information;

时间片分配信息发送模块,用于将所述时间片分配信息发送给所述从节点,以使所述从节点根据所述时间片分配信息,发送所述待传输数据。A time slice allocation information sending module, configured to send the time slice allocation information to the slave node, so that the slave node sends the to-be-transmitted data according to the time slice allocation information.

进一步地,本发明还提供一种基于互联网的数据传输装置,适用于两线制数据传输网络,所述装置包括:Further, the present invention also provides an Internet-based data transmission device suitable for a two-wire data transmission network, the device comprising:

时间片获取请求发送模块,用于发送生成的时间片获取请求给主节点;所述时间片获取请求中包括待传输数据的数据量;a time slice acquisition request sending module, configured to send the generated time slice acquisition request to the master node; the time slice acquisition request includes the amount of data to be transmitted;

时间片分配信息接收模块,用于接收主节点发送的时间片分配信息;所述时间片分配信息为所述主节点接收所述时间片获取请求后,根据所述待传输数据的数据量以及未分配的时间片为所述待传输数据分配时间片后获得的;The time slice allocation information receiving module is used to receive the time slice allocation information sent by the master node; the time slice distribution information is that after the master node receives the time slice acquisition request, according to the data amount of the to-be-transmitted data and the future The allocated time slice is obtained after the data to be transmitted is allocated a time slice;

数据传输模块,用于根据所述时间片分配信息,发送所述待传输数据。A data transmission module, configured to send the data to be transmitted according to the time slice allocation information.

进一步地,本发明还提供一种基于互联网的数据传输系统,适用于两线制数据传输网络,所述系统包括:Further, the present invention also provides an Internet-based data transmission system suitable for a two-wire data transmission network, the system comprising:

主节点,用于接收从节点发送的时间片获取请求,所述时间片获取请求中包括待传输数据的数据量;根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息;将所述时间片分配信息发送给所述从节点,以使所述从节点所述时间片分配信息,发送所述待传输数据;The master node is used to receive a time slice acquisition request sent by a slave node, where the time slice acquisition request includes the amount of data to be transmitted; according to the amount of data to be transmitted and the unallocated time slice, the Allocating time slices for transmission data to obtain time slice allocation information; sending the time slice allocation information to the slave node, so that the slave node sends the to-be-transmitted data according to the time slice allocation information;

从节点,用于发送生成的时间片获取请求给主节点;所述时间片获取请求中包括待传输数据的数据量;接收主节点发送的时间片分配信息;所述时间片分配信息为所述主节点接收所述时间片获取请求后,根据所述待传输数据的数据量以及未分配的时间片为所述待传输数据分配时间片后获得的;根据所述时间片分配信息,发送所述待传输数据。The slave node is used to send the generated time slice acquisition request to the master node; the time slice acquisition request includes the amount of data to be transmitted; the time slice allocation information sent by the master node is received; the time slice allocation information is the After the master node receives the time slice acquisition request, it is obtained after allocating time slices for the data to be transmitted according to the data amount of the data to be transmitted and the unallocated time slice; according to the time slice allocation information, the master node sends the data to be transmitted.

本发明有益效果如下:在两线制数据传输网络中,主节点根据从节点的时间片获取请求,为从节点分配时间片,以使从节点能够据为自身分配的时间片发送待传输数据。这样,无需将网络改造为5类双绞线网络,同时从节点根据时间片传输数据,也能够保证数据传输的时间确定性。The beneficial effects of the invention are as follows: in a two-wire data transmission network, the master node allocates time slices to the slave nodes according to the time slice acquisition request of the slave nodes, so that the slave nodes can send data to be transmitted according to the time slice allocated for themselves. In this way, there is no need to transform the network into a Category 5 twisted pair network, and at the same time, the slave nodes transmit data according to the time slice, which can also ensure the time determinism of data transmission.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without any creative effort.

图1所示为本发明实施例一中所述基于互联网的数据传输方法的流程示意图;1 is a schematic flowchart of the Internet-based data transmission method described in Embodiment 1 of the present invention;

图2所示为本发明实施例二中所述基于互联网的数据传输方法的流程示意图;2 is a schematic flowchart of the Internet-based data transmission method described in Embodiment 2 of the present invention;

图3所示为本发明实施例三中所述基于互联网的数据传输装置的结构示意图;3 is a schematic structural diagram of the Internet-based data transmission device described in Embodiment 3 of the present invention;

图4所示为本发明实施例四中所述基于互联网的数据传输装置的结构示意图;4 is a schematic structural diagram of the Internet-based data transmission device described in Embodiment 4 of the present invention;

图5所示为本发明实施例五中所述基于互联网的数据传输系统的结构示意图;5 is a schematic structural diagram of the Internet-based data transmission system described in Embodiment 5 of the present invention;

图6所示为本发明实施例提供的两线制数据传输网络的结构示意图之一;FIG. 6 is one of schematic structural diagrams of a two-wire data transmission network provided by an embodiment of the present invention;

图7所示为本发明实施例提供的两线制数据传输网络的结构示意图之二。FIG. 7 is a second schematic structural diagram of a two-wire data transmission network provided by an embodiment of the present invention.

具体实施方式Detailed ways

本发明实施例提供了基于互联网的数据传输方法、装置及系统,所谓工业控制数据指用于工业过程控制的数据。该方法适用于两线制数据传输网络,该两线制数据传输网络的传输介质为双绞线或屏蔽双绞线。在该网络中,针对任一从节点,其数据的发送是依据主节点分配的时间片进行的,因此从节点的数据发送具有传输时间确定性,此外,本发明实施例中使用的网络是两线制的,无需像现有技术将网络改造成五类双绞线。The embodiments of the present invention provide an Internet-based data transmission method, device, and system. The so-called industrial control data refers to data used for industrial process control. The method is suitable for a two-wire data transmission network, and the transmission medium of the two-wire data transmission network is a twisted pair or a shielded twisted pair. In this network, for any slave node, the data transmission is performed according to the time slice allocated by the master node, so the data transmission of the slave node has the certainty of transmission time. In addition, the network used in the embodiment of the present invention is two There is no need to transform the network into Category 5 twisted pair as in the prior art.

为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

实施例一:Example 1:

如图1所示,其为本发明实施例一中所述基于互联网的数据传输方法的流程示意图,所述方法适用于两线制数据传输网络,可包括以下步骤:As shown in FIG. 1 , which is a schematic flowchart of the Internet-based data transmission method described in Embodiment 1 of the present invention, the method is applicable to a two-wire data transmission network, and may include the following steps:

步骤101:主节点接收从节点发送的时间片获取请求,所述时间片获取请求中包括待传输数据的数据量。Step 101: The master node receives a time slice acquisition request sent by the slave node, where the time slice acquisition request includes the data amount of the data to be transmitted.

步骤102:根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息。Step 102: Allocate time slices for the data to be transmitted according to the data amount of the data to be transmitted and the unallocated time slices, and obtain time slice allocation information.

其中,在一个实施例中,一个时间片能够传输的数量有限,根据待传输数据的数据量可以确定分配多少时间片。故此,时间片分配信息中可以包括分配的各时间片的时间片标识,用于从节点确定自身占用哪些时间片。Wherein, in one embodiment, the number of time slices that can be transmitted is limited, and how many time slices are allocated can be determined according to the data volume of the data to be transmitted. Therefore, the time slice allocation information may include time slice identifiers of each allocated time slice, so that the slave node can determine which time slices it occupies.

步骤103:将所述时间片分配信息发送给所述从节点,以使所述从节点根据所述时间片分配信息,发送所述待传输数据。Step 103: Send the time slice allocation information to the slave node, so that the slave node sends the to-be-transmitted data according to the time slice allocation information.

其中,在一个实施例中,同一时间可能有多个工业控制数据需要传输,而其中有些工业控制数据可能比较重要,故此,本发明实施例中,为了使基于互联网的数据传输的更能满足工业控制需要,优先将重要的数据先传输,所述时间片获取请求中还包括所述待传输数据的数据标识;步骤102(即根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息),可具体包括以下步骤:Among them, in one embodiment, there may be multiple industrial control data that need to be transmitted at the same time, and some of the industrial control data may be more important. Control needs, preferentially transmit important data first, and the time slice acquisition request also includes the data identifier of the data to be transmitted; Step 102 (that is, according to the data volume of the data to be transmitted and the unallocated time slice, for The data to be transmitted is allocated a time slice, and the time slice allocation information is obtained), which may specifically include the following steps:

步骤A1:根据预存的数据标识与传输优先级的对应关系,确定所述待传输数据标识对应的传输优先级。Step A1: Determine the transmission priority corresponding to the to-be-transmitted data identifier according to the pre-stored correspondence between the data identifier and the transmission priority.

其中,在一个实施例中,数据标识可以是表示业务类型的标识,例如,数据标识用来区分压力传感器数据、温度传感器数据等。如表1所示为数据标识与对应的优先级的示例,当然,需要说明的是表1仅用来说明本发明实施例,并不用于限定本发明实施例。Wherein, in one embodiment, the data identifier may be an identifier representing a service type, for example, the data identifier is used to distinguish pressure sensor data, temperature sensor data, and the like. Table 1 shows an example of data identifiers and corresponding priorities. Of course, it should be noted that Table 1 is only used to describe the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

表1Table 1

数据标识data identification 优先级priority 说明illustrate 11 high 压力传感器Pressure Sensor 22 Low 设备日志Device log

步骤A2:根据确定的传输优先级、所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息。Step A2: Allocate time slices for the data to be transmitted according to the determined transmission priority, the data volume of the data to be transmitted, and the unallocated time slice, and obtain time slice allocation information.

综上,本发明实施例中,在两线制数据传输网络中,主节点根据从节点的时间片获取请求,为从节点分配时间片,以使从节点能够据为自身分配的时间片发送待传输数据。这样,无需将网络改造为5类双绞线网络,同时从节点根据时间片传输数据,也能够保证数据传输的时间确定性。To sum up, in this embodiment of the present invention, in a two-wire data transmission network, the master node allocates a time slice to the slave node according to the time slice acquisition request of the slave node, so that the slave node can send the pending time slice according to the time slice allocated to itself. transfer data. In this way, there is no need to transform the network into a Category 5 twisted pair network, and at the same time, the slave nodes transmit data according to the time slice, which can also ensure the time determinism of data transmission.

实施例二Embodiment 2

如图2所示,其为本发明实施例二中所述基于互联网的数据传输方法的流程示意图,所述方法适用于两线制数据传输网络,可包括以下步骤:As shown in FIG. 2 , which is a schematic flowchart of the Internet-based data transmission method described in Embodiment 2 of the present invention, the method is applicable to a two-wire data transmission network, and may include the following steps:

步骤201:从节点发送生成的时间片获取请求给主节点;所述时间片获取请求中包括待传输数据的数据量。Step 201: The slave node sends the generated time slice acquisition request to the master node; the time slice acquisition request includes the data amount of the data to be transmitted.

步骤202:接收主节点发送的时间片分配信息;所述时间片分配信息为所述主节点接收所述时间片获取请求后,根据所述待传输数据的数据量以及未分配的时间片为所述待传输数据分配时间片后获得的。Step 202: Receive the time slice allocation information sent by the master node; the time slice allocation information is that after the master node receives the time slice acquisition request, according to the data amount of the data to be transmitted and the unallocated time slice, the The data to be transmitted is obtained after allocating time slices.

步骤203:根据所述时间片分配信息,发送所述待传输数据。Step 203: Send the data to be transmitted according to the time slice allocation information.

其中,在一个实施例中,为了有效利用两线制数据传输网络的带宽,提高数据发送效率,步骤203中发送所述待传输数据,可具体包括:采用OFDM(Orthogonal FrequencyDivision Multiplexing,正交频分复用技术),发送所述待传输数据;或者,采用基带传输方式,发送所述待传输数据。。Wherein, in an embodiment, in order to effectively utilize the bandwidth of the two-wire data transmission network and improve the data transmission efficiency, the sending of the data to be transmitted in step 203 may specifically include: using OFDM (Orthogonal Frequency Division Multiplexing, orthogonal frequency division multiplexing). multiplexing technology), the data to be transmitted is sent; or, the data to be transmitted is sent by using a baseband transmission mode. .

其中,在一个实施例中,为了实现重要的待传输数据优先传输,所述时间片获取请求中还包括所述待传输数据的数据标识,以使所述主节点根据该数据标识确定所述待传输数据的传输等级。通过重要的待传输数据对应的传输等级也比较高,传输等级高的数据优先分配时间片,从而实现重要的数据优先发送。Wherein, in one embodiment, in order to implement priority transmission of important data to be transmitted, the time slice acquisition request further includes a data identifier of the data to be transmitted, so that the master node determines the to-be-transmitted data according to the data identifier. The transmission level of the transmitted data. The transmission level corresponding to the important data to be transmitted is also relatively high, and the data with a high transmission level is allocated a time slice preferentially, thereby realizing the priority transmission of the important data.

其中,在一个实施例中,工业控制数据中包括实时性数据和非实时性数据,其中,实时性数据是有传输时间确定性需求的数据,而非实时性数据为无传输时间确定性需求的数据。为了能够有效的利用处理资源,将实时性数据优先传输,本发明实施例中,可以根据以下方法生成所述时间片获取请求:获得待传输数据之后,根据所述待传输数据的数据标识,确定所述待传输数据是否是有时间确定性需求的数据;若是,则生成所述时间片获取请求。这样,根据数据标识可以确定哪些数据需要生成时间片获取请求,对于这类数据,通过发送时间片获取请求给主节点以获取时间片,可以保证该类数据的传输时间是确定的。而对于非实时性数据,无需生成并发送时间片获取请求,故而可以节约从节点即主节点的处理资源。Wherein, in one embodiment, the industrial control data includes real-time data and non-real-time data, wherein the real-time data is data that has a deterministic demand for transmission time, and the non-real-time data is data that has no deterministic demand for transmission time data. In order to effectively utilize processing resources and preferentially transmit real-time data, in this embodiment of the present invention, the time slice acquisition request may be generated according to the following method: after obtaining the data to be transmitted, determine the Whether the data to be transmitted is data with time deterministic requirements; if so, generate the time slice acquisition request. In this way, it can be determined which data needs to generate a time slice acquisition request according to the data identifier. For this type of data, by sending a time slice acquisition request to the master node to acquire the time slice, the transmission time of this type of data can be guaranteed. For non-real-time data, there is no need to generate and send a time slice acquisition request, so the processing resources of the slave node, that is, the master node, can be saved.

其中,在一个实施例中,为了便于根据分配的时间片发送数据,保证数据传输的时间确定性,步骤203(即根据所述时间片分配信息,发送所述待传输数据),可具体包括以下步骤:Wherein, in one embodiment, in order to facilitate the sending of data according to the allocated time slice and ensure the time certainty of data transmission, step 203 (that is, sending the data to be transmitted according to the time slice allocation information) may specifically include the following: step:

步骤B1:针对所述时间片分配信息中的每个时间片,检测是否到达该时间片的触发时间。Step B1: For each time slice in the time slice allocation information, it is detected whether the trigger time of the time slice is reached.

步骤B2:若是,则在该时间片发送所述待传输数据。Step B2: If yes, send the data to be transmitted in this time slice.

其中,在一个实施例中,若步骤B1的判断结果为否,则可以继续执行步骤B1,直到判断结果为是时执行步骤B2。Wherein, in one embodiment, if the judgment result of step B1 is no, step B1 may be continued to be executed, and step B2 may be executed until the judgment result is yes.

其中,在一个实施例中,针对每个从节点,该从节点不可能占用所有的时间片(例如在1个小时内,可能仅有部分时间的时间片是分配给该节点的)。故此,为了提高从节点的工作效率,在分配的时间片之间的时间间隔中也能发送非实时性数据,本发明实施例中还可以包括以下步骤:Wherein, in one embodiment, for each slave node, the slave node may not occupy all the time slices (for example, in one hour, only part of the time slice may be allocated to the node). Therefore, in order to improve the working efficiency of the slave node, non-real-time data can also be sent in the time interval between the allocated time slices, the embodiment of the present invention may further include the following steps:

步骤C1:将所述时间片分配信息添加到时间片分配信息集合中。Step C1: Add the time slice allocation information to the time slice allocation information set.

步骤C2:监测当前时间是否包含在所述时间片分配信息集合中的时间片中。Step C2: Monitor whether the current time is included in the time slice in the time slice allocation information set.

其中步骤C1和步骤C2的直线顺序不受限。The linear sequence of steps C1 and C2 is not limited.

步骤C3:若否,则判断自身是否处于传输空闲时间。Step C3: If not, judge whether it is in idle transmission time.

其中,所谓传输空闲时间,是指该时间没有预先确定要传输哪个数据。也即,该时间没有时间确定性要求的数据需要传输。Wherein, the so-called idle time for transmission means that which data to be transmitted is not determined in advance at this time. That is, data that does not require time certainty at this time needs to be transmitted.

其中,在一个实施例中个,判断自身是否处于传输空闲时间可以根据现有技术确定,本发明实施例对此不做赘述。Wherein, in one embodiment, determining whether the user is in the idle transmission time may be determined according to the prior art, which is not repeated in this embodiment of the present invention.

步骤C4:若处于传输空闲时间,则采用CSMA/CD(Carrier Sense Multiple Accesswith Collision Detection,冲突检测的载波监听多路访问技术)传输非实时性数据。Step C4: If it is in the idle time of transmission, use CSMA/CD (Carrier Sense Multiple Access with Collision Detection, carrier sense multiple access technology for collision detection) to transmit non-real-time data.

这样,本发明实施例中,在传输空闲时间采用CSMA/CD传输非实时性数据(即无传输时间确定性需求的数据),在有时间片时传输实时性数据,实现合理安排各种数据的传输策略,提高数据传输的效率。In this way, in the embodiment of the present invention, CSMA/CD is used to transmit non-real-time data (that is, data that has no deterministic requirement for transmission time) during idle transmission time, and real-time data is transmitted when there is a time slice, so as to realize reasonable arrangement of various data. Transmission strategy to improve the efficiency of data transmission.

其中,在一个实施例中,工业过程控制中还可能由于突发事件产生的数据,有些突发事件的数据需要及时传输,为此,本发明实施例中,还可以包括以下步骤:Wherein, in one embodiment, the industrial process control may also generate data due to emergencies, and the data of some emergencies needs to be transmitted in time. To this end, in this embodiment of the present invention, the following steps may be further included:

步骤D1:获得待传输数据之后,根据所述待传输数据的数据标识,确定所述待传输数据是否是预置突发事件的数据。Step D1: After obtaining the data to be transmitted, it is determined whether the data to be transmitted is data of a preset emergency event according to the data identifier of the data to be transmitted.

步骤D2:若是预置突发事件的数据,则开始传输所述预置突发事件的数据。Step D2: If the data of the preset emergency event is preset, start transmitting the data of the preset emergency event.

这样,本发明实施例中在遇到预置突发事件的数据时,无论当前时间对应的时间片是否有待传输的数据,都优先发送预置突发事件的数据,能够保证重要的突发事件的数据优先传输,保证工业过程控制的顺利进行。In this way, in the embodiment of the present invention, when data of a preset emergency event is encountered, regardless of whether there is data to be transmitted in the time slice corresponding to the current time, the data of the preset emergency event is preferentially sent, which can ensure important emergency events. The data is preferentially transmitted to ensure the smooth progress of industrial process control.

其中,在一个实施例中,若不是预置突发事件的数据,则可以返回执行以下步骤:根据所述待传输数据的数据标识,确定所述待传输数据是否是有时间确定性需求的数据;若是,则生成所述时间片获取请求。Wherein, in one embodiment, if it is not the data of the preset emergency event, the following steps may be performed: according to the data identifier of the data to be transmitted, it is determined whether the data to be transmitted is data with time deterministic requirements ; if so, generate the time slice acquisition request.

综上,本发明实施例中,从节点根据主节点分配的时间片传输数据,能够满足有传输时间确定性的数据的要求。而且,本发明实施例能够在二线制数据传输网络中实现,无需将传输网络改造成5类双绞线,能够降低成本,降低传输工业控制数据网络的复杂度。To sum up, in the embodiment of the present invention, the slave node transmits data according to the time slice allocated by the master node, which can meet the requirement of data with deterministic transmission time. Moreover, the embodiments of the present invention can be implemented in a two-wire data transmission network, without the need to transform the transmission network into Category 5 twisted-pair cables, which can reduce costs and reduce the complexity of transmitting industrial control data networks.

实施例三Embodiment 3

基于相同的发明构思,本发明实施例还提供一种基于互联网的数据传输装置,适用于两线制数据传输网络,如图3所示,为该装置的结构示意图,包括:Based on the same inventive concept, an embodiment of the present invention also provides an Internet-based data transmission device, which is suitable for a two-wire data transmission network. As shown in FIG. 3, it is a schematic structural diagram of the device, including:

时间片获取请求接收模块301,用于接收从节点发送的时间片获取请求,所述时间片获取请求中包括待传输数据的数据量;A time slice acquisition request receiving module 301, configured to receive a time slice acquisition request sent from a node, where the time slice acquisition request includes the amount of data to be transmitted;

时间片分配模块302,用于根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息;A time slice allocation module 302, configured to allocate time slices for the data to be transmitted according to the data amount of the data to be transmitted and the unallocated time slices, and obtain time slice allocation information;

时间片分配信息发送模块303,用于将所述时间片分配信息发送给所述从节点,以使所述从节点所述时间片分配信息,发送所述待传输数据。The time slice allocation information sending module 303 is configured to send the time slice allocation information to the slave node, so that the slave node sends the to-be-transmitted data according to the time slice allocation information.

其中,在一个实施例中,所述时间片获取请求中还包括所述待传输数据的数据标识;所述时间片分配模块,具体包括:Wherein, in one embodiment, the time slice acquisition request further includes a data identifier of the data to be transmitted; the time slice allocation module specifically includes:

传输优先级确定单元,用于根据预存的数据标识与传输优先级的对应关系,确定所述待传输数据标识对应的传输优先级;a transmission priority determination unit, configured to determine the transmission priority corresponding to the to-be-transmitted data identifier according to the pre-stored correspondence between the data identifier and the transmission priority;

分配单元,用于根据确定的传输优先级、所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息。The allocation unit is configured to allocate a time slice to the data to be transmitted according to the determined transmission priority, the data volume of the data to be transmitted and the unallocated time slice, and obtain time slice allocation information.

本发明实施例中,在两线制数据传输网络中,该装置根据从节点的时间片获取请求,为从节点分配时间片,以使从节点能够据为自身分配的时间片发送待传输数据。这样,无需将网络改造为5类双绞线网络,同时从节点根据时间片传输数据,也能够保证数据传输的时间确定性。In the embodiment of the present invention, in a two-wire data transmission network, the device allocates a time slice to the slave node according to the time slice acquisition request of the slave node, so that the slave node can send data to be transmitted according to the time slice allocated to itself. In this way, there is no need to transform the network into a Category 5 twisted pair network, and at the same time, the slave nodes transmit data according to the time slice, which can also ensure the time determinism of data transmission.

实施例四Embodiment 4

基于相同的发明构思,本发明实施例还提供一种基于互联网的数据传输装置,适用于两线制数据传输网络,如图4所示,该装置包括:Based on the same inventive concept, an embodiment of the present invention also provides an Internet-based data transmission device, which is suitable for a two-wire data transmission network. As shown in FIG. 4 , the device includes:

时间片获取请求发送模块401,用于发送生成的时间片获取请求给主节点;所述时间片获取请求中包括待传输数据的数据量;The time slice acquisition request sending module 401 is configured to send the generated time slice acquisition request to the master node; the time slice acquisition request includes the data amount of the data to be transmitted;

时间片分配信息接收模块402,用于接收主节点发送的时间片分配信息;所述时间片分配信息为所述主节点接收所述时间片获取请求后,根据所述待传输数据的数据量以及未分配的时间片为所述待传输数据分配时间片后获得的;The time slice allocation information receiving module 402 is configured to receive the time slice allocation information sent by the master node; the time slice distribution information is that after the master node receives the time slice acquisition request, according to the data amount of the data to be transmitted and the The unallocated time slice is obtained after the data to be transmitted is allocated a time slice;

数据传输模块403,用于根据所述时间片分配信息,发送所述待传输数据。The data transmission module 403 is configured to send the data to be transmitted according to the time slice allocation information.

其中,在一个实施例中,所述数据传输模块,具体用于:Wherein, in one embodiment, the data transmission module is specifically used for:

采用正交频分复用技术OFDM,发送所述待传输数据;或者,Send the data to be transmitted by using the orthogonal frequency division multiplexing technology OFDM; or,

采用基带传输方式,发送所述待传输数据。The data to be transmitted is sent in a baseband transmission manner.

其中,在一个实施例中,所述时间片获取请求中还包括所述待传输数据的数据标识,以使所述主节点根据该数据标识确定所述待传输数据的传输等级。Wherein, in one embodiment, the time slice acquisition request further includes a data identifier of the data to be transmitted, so that the master node determines the transmission level of the data to be transmitted according to the data identifier.

其中,在一个实施例中,所述数据传输模块,具体用于:Wherein, in one embodiment, the data transmission module is specifically used for:

针对所述时间片分配信息中的每个时间片,检测是否到达该时间片的触发时间;For each time slice in the time slice allocation information, detect whether the trigger time of the time slice is reached;

若是,则在该时间片发送所述待传输数据。If so, send the data to be transmitted in this time slice.

其中,在一个实施例中,所述装置还包括:Wherein, in one embodiment, the device further includes:

添加模块,用于将所述时间片分配信息添加到时间片分配信息集合中;The adding module is used for adding the time slice allocation information to the time slice allocation information set;

监测模块,用于监测当前时间是否包含在所述时间片分配信息集合中的时间片中;a monitoring module for monitoring whether the current time is included in the time slice in the time slice allocation information set;

传输空闲判断模块,用于若当前时间不包含在所述时间片分配信息集合中的时间片中,则判断自身是否处于传输空闲时间;a transmission idle judgment module, configured to judge whether the current time is not in the time slice in the time slice allocation information set, whether it is in the transmission idle time;

非实时性数据传输模块,用于若处于传输空闲时间,则采用冲突检测的载波监听多路访问技术CSMA/CD传输非实时性数据。The non-real-time data transmission module is used to transmit non-real-time data by adopting the carrier sense multiple access technology CSMA/CD of collision detection if it is in idle transmission time.

其中,在一个实施例中,所述装置还包括,Wherein, in one embodiment, the apparatus further comprises:

时间片获取请求生成模块,用于根据以下方法生成所述时间片获取请求:A time slice acquisition request generating module, configured to generate the time slice acquisition request according to the following method:

获得待传输数据之后,根据所述待传输数据的数据标识,确定所述待传输数据是否是有时间确定性需求的数据;After obtaining the data to be transmitted, according to the data identifier of the data to be transmitted, determine whether the data to be transmitted is data with time deterministic requirements;

若是,则生成所述时间片获取请求。If so, generate the time slice acquisition request.

其中,在一个实施例中,所述装置还包括:Wherein, in one embodiment, the device further includes:

预置突发事件判断模块,用于获得待传输数据之后,根据所述待传输数据的数据标识,确定所述待传输数据是否是预置突发事件的数据;The preset emergency event judgment module is used to determine whether the to-be-transmitted data is the data of the preset emergency event according to the data identifier of the to-be-transmitted data after obtaining the to-be-transmitted data;

突发数据传输模块,用于若是预置突发事件的数据,则开始传输所述预置突发事件的数据。The burst data transmission module is configured to start transmitting the data of the preset emergency event if it is the data of the preset emergency event.

本发明实施例中,该装置根据主节点分配的时间片传输数据,能够满足有传输时间确定性的数据的要求。而且,本发明实施例能够在二线制数据传输网络中实现,无需将传输网络改造成5类双绞线,能够降低成本,降低传输工业控制数据网络的复杂度。In the embodiment of the present invention, the device transmits data according to the time slice allocated by the master node, which can meet the requirement of data with certainty of transmission time. Moreover, the embodiments of the present invention can be implemented in a two-wire data transmission network, without the need to transform the transmission network into Category 5 twisted pair cables, which can reduce costs and reduce the complexity of transmitting industrial control data networks.

实施例五Embodiment 5

基于相同的发明构思,本发明实施例还提供一种基于互联网的数据传输系统,适用于两线制数据传输网络,如图5所示为该系统的结构示意图,该系统包括:Based on the same inventive concept, an embodiment of the present invention also provides an Internet-based data transmission system, which is suitable for a two-wire data transmission network. FIG. 5 is a schematic structural diagram of the system. The system includes:

主节点501,用于接收从节点发送的时间片获取请求,所述时间片获取请求中包括待传输数据的数据量;根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息;将所述时间片分配信息发送给所述从节点,以使所述从节点所述时间片分配信息,发送所述待传输数据;The master node 501 is configured to receive a time slice acquisition request sent by a slave node, where the time slice acquisition request includes the amount of data to be transmitted; according to the amount of data to be transmitted and the unallocated time slice, the Allocate time slices for the data to be transmitted, and obtain time slice allocation information; send the time slice allocation information to the slave node, so that the slave node sends the to-be-transmitted data according to the time slice allocation information;

从节点502,用于发送生成的时间片获取请求给主节点;所述时间片获取请求中包括待传输数据的数据量;接收主节点发送的时间片分配信息;所述时间片分配信息为所述主节点接收所述时间片获取请求后,根据所述待传输数据的数据量以及未分配的时间片为所述待传输数据分配时间片后获得的;根据所述时间片分配信息,发送所述待传输数据。The slave node 502 is used to send the generated time slice acquisition request to the master node; the time slice acquisition request includes the amount of data to be transmitted; the time slice allocation information sent by the master node is received; the time slice allocation information is all After the master node receives the time slice acquisition request, it is obtained after allocating time slices for the data to be transmitted according to the data amount of the data to be transmitted and the unallocated time slice; the data to be transmitted.

关于上述各实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatuses in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the method, and will not be described in detail here.

其中,在一个实施例中,上述两线制数据传输网络的结构示意图如图6所示,包括:Wherein, in an embodiment, a schematic structural diagram of the above-mentioned two-wire data transmission network is shown in FIG. 6 , including:

第一以太网转换器601:用于将5类双绞线传来的标准以太网信号转换为以太网帧信号;The first Ethernet converter 601: used to convert the standard Ethernet signal transmitted by the Category 5 twisted pair into the Ethernet frame signal;

数模转换模块602,用于将以太网帧信号经过数模转换为电力传输的数字格式信号;A digital-to-analog conversion module 602, configured to convert the Ethernet frame signal into a digital format signal for power transmission through digital-to-analog conversion;

处理模块603,用于将数字格式信号进行整流滤波放大,得到符合宽带电力线规范的信号;The processing module 603 is used for rectifying, filtering and amplifying the digital format signal to obtain a signal conforming to the broadband power line specification;

其中,在一个实施例中,宽带电力线例如是Homeplug AV电力线。Wherein, in one embodiment, the broadband power line is, for example, a Homeplug AV power line.

二线线缆604,用于传输符合宽带电力线规范的信号进行传输。The two-wire cable 604 is used to transmit signals conforming to the broadband power line specification for transmission.

其中,在一个实施例中,二线线缆例如是Profibus、CAN、Modbus、485总线、HART(模拟)、FSK、FF等常用的二线线缆。Wherein, in one embodiment, the two-wire cable is, for example, a commonly used two-wire cable such as Profibus, CAN, Modbus, 485 bus, HART (analog), FSK, and FF.

其中,二线线缆604上连接有各个设备(包括控制设备和数据传输设备),故此,二线线缆604可以将信号传输给其连接的至少一个设备。The two-wire cable 604 is connected with various devices (including a control device and a data transmission device), so the two-wire cable 604 can transmit signals to at least one device connected thereto.

图6所示的两线制数据传输网络的结构用于将信号发送给下连的设备,如图7所示,为该两线制数据传输网络的另一结构示意图,该结构用于接收下连设备发送的信号,具体的包括:The structure of the two-wire data transmission network shown in FIG. 6 is used to send signals to the connected equipment. As shown in FIG. 7, it is another schematic diagram of the structure of the two-wire data transmission network. The signals sent by the connected device include:

电力线耦合电路701,用于将二线线缆上的低压高频的可编程逻辑控制器波形传给可编程逻辑控制器模拟前端;The power line coupling circuit 701 is used to transmit the low-voltage and high-frequency programmable logic controller waveform on the two-wire cable to the programmable logic controller analog front end;

可编程逻辑控制器模拟前端702,用于将接收到的信号通过带通滤波器滤掉PLC以外的信号后传给放大滤波器;The programmable logic controller analog front end 702 is used to filter the received signal through the band-pass filter and then pass it to the amplification filter after filtering out the signal other than the PLC;

放大滤波器703,用于对信号进行放大、滤波后传给ADC(模数转换器);The amplification filter 703 is used to amplify and filter the signal and transmit it to the ADC (analog-to-digital converter);

ADC704,用于将接收的信号转换为数字信号并传给以太网转换器;ADC704, which is used to convert the received signal into a digital signal and transmit it to the Ethernet converter;

第二以太网转换器705,用于将接收的信号转换为以太网帧信号,并将以太网帧信号转换为适合5类双绞线传输的标准以太网信号。The second Ethernet converter 705 is configured to convert the received signal into an Ethernet frame signal, and convert the Ethernet frame signal into a standard Ethernet signal suitable for Category 5 twisted pair transmission.

本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、装置(装置)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理装置的处理器以产生一个机器,使得通过计算机或其他可编程数据处理装置的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理装置以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer readable memory result in an article of manufacture comprising the instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理装置上,使得在计算机或其他可编程装置上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程装置上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。Although preferred embodiments of the present invention have been described, additional changes and modifications to these embodiments may occur to those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be construed to include the preferred embodiment and all changes and modifications that fall within the scope of the present invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (15)

1.一种基于互联网的数据传输方法,其特征在于,适用于两线制数据传输网络,所述方法包括:1. an Internet-based data transmission method, is characterized in that, is applicable to two-wire data transmission network, and described method comprises: 主节点接收从节点确定待传输数据是有时间确定性需求的数据时发送的时间片获取请求,所述时间片获取请求中包括待传输数据的数据量;The master node receives a time slice acquisition request sent when the slave node determines that the data to be transmitted is data with time deterministic requirements, and the time slice acquisition request includes the data amount of the data to be transmitted; 根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息;According to the data amount of the data to be transmitted and the unallocated time slice, allocate a time slice for the data to be transmitted, and obtain time slice allocation information; 将所述时间片分配信息发送给所述从节点,以使所述从节点根据所述时间片分配信息,发送所述待传输数据;sending the time slice allocation information to the slave node, so that the slave node sends the to-be-transmitted data according to the time slice allocation information; 若处于传输空闲时间,采用冲突检测的载波监听多路访问技术CSMA/CD接收从节点发送的非实时性数据。If it is in the idle time of transmission, the carrier sense multiple access technology CSMA/CD of collision detection is used to receive the non-real-time data sent from the node. 2.根据权利要求1所述的方法,其特征在于,所述时间片获取请求中还包括所述待传输数据的数据标识;所述根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息,具体包括:2. The method according to claim 1, wherein the time slice acquisition request further includes a data identifier of the data to be transmitted; , allocate a time slice for the data to be transmitted, and obtain time slice allocation information, which specifically includes: 根据预存的数据标识与传输优先级的对应关系,确定所述待传输数据标识对应的传输优先级;Determine the transmission priority corresponding to the to-be-transmitted data identifier according to the correspondence between the pre-stored data identifier and the transmission priority; 根据确定的传输优先级、所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息。According to the determined transmission priority, the data amount of the data to be transmitted, and the unallocated time slice, time slices are allocated to the data to be transmitted, and time slice allocation information is obtained. 3.一种基于互联网的数据传输方法,其特征在于,适用于两线制数据传输网络,所述方法包括:3. An internet-based data transmission method, characterized in that it is applicable to a two-wire data transmission network, the method comprising: 从节点获得待传输数据之后,根据所述待传输数据的数据标识,确定所述待传输数据是否是有时间确定性需求的数据,若是,则生成时间片获取请求;After obtaining the data to be transmitted from the node, according to the data identifier of the data to be transmitted, determine whether the data to be transmitted is data with time deterministic requirements, and if so, generate a time slice acquisition request; 从节点发送生成的时间片获取请求给主节点;所述时间片获取请求中包括待传输数据的数据量;The slave node sends the generated time slice acquisition request to the master node; the time slice acquisition request includes the amount of data to be transmitted; 从节点接收主节点发送的时间片分配信息;所述时间片分配信息为所述主节点接收所述时间片获取请求后,根据所述待传输数据的数据量以及未分配的时间片为所述待传输数据分配时间片后获得的;The slave node receives the time slice allocation information sent by the master node; the time slice allocation information is that after the master node receives the time slice acquisition request, according to the data amount of the data to be transmitted and the unallocated time slice, the Obtained after the data to be transmitted is allocated a time slice; 从节点根据所述时间片分配信息,发送所述待传输数据;The slave node sends the data to be transmitted according to the time slice allocation information; 从节点将所述时间片分配信息添加到时间片分配信息集合中;并,adding the time slice allocation information to the time slice allocation information set from the node; and, 监测当前时间是否包含在所述时间片分配信息集合中的时间片中;monitoring whether the current time is included in the time slice in the time slice allocation information set; 若否,则判断自身是否处于传输空闲时间;If not, judge whether it is in idle transmission time; 若处于传输空闲时间,则采用冲突检测的载波监听多路访问技术CSMA/CD传输非实时性数据。If it is in the idle time of transmission, the carrier sense multiple access technology CSMA/CD of collision detection is used to transmit non-real-time data. 4.根据权利要求3所述的方法,其特征在于,所述发送所述待传输数据,具体包括:4. The method according to claim 3, wherein the sending the data to be transmitted specifically comprises: 采用正交频分复用技术OFDM,发送所述待传输数据;或者,Send the data to be transmitted by using the orthogonal frequency division multiplexing technology OFDM; or, 采用基带传输方式,发送所述待传输数据。The data to be transmitted is sent in a baseband transmission manner. 5.根据权利要求3所述的方法,其特征在于,所述时间片获取请求中还包括所述待传输数据的数据标识,以使所述主节点根据该数据标识确定所述待传输数据的传输等级。5. The method according to claim 3, wherein the time slice acquisition request further includes a data identifier of the data to be transmitted, so that the master node determines the data identifier of the data to be transmitted according to the data identifier. Transmission class. 6.根据权利要求3所述的方法,其特征在于,所述根据所述时间片分配信息,发送所述待传输数据,具体包括:6. The method according to claim 3, wherein the sending the data to be transmitted according to the time slice allocation information specifically comprises: 针对所述时间片分配信息中的每个时间片,检测是否到达该时间片的触发时间;For each time slice in the time slice allocation information, detect whether the trigger time of the time slice is reached; 若是,则在该时间片发送所述待传输数据。If so, send the data to be transmitted in this time slice. 7.根据权利要求3所述的方法,其特征在于,所述方法还包括:7. The method according to claim 3, wherein the method further comprises: 获得待传输数据之后,根据所述待传输数据的数据标识,确定所述待传输数据是否是预置突发事件的数据;After obtaining the data to be transmitted, determine whether the data to be transmitted is data of a preset emergency event according to the data identifier of the data to be transmitted; 若是预置突发事件的数据,则开始传输所述预置突发事件的数据。If the data of the preset emergency event is preset, the transmission of the data of the preset emergency event is started. 8.一种基于互联网的数据传输装置,其特征在于,适用于两线制数据传输网络,所述装置包括:8. An internet-based data transmission device, characterized in that it is applicable to a two-wire data transmission network, the device comprising: 时间片获取请求接收模块,用于接收从节点确定待传输数据是有时间确定性需求的数据时发送的时间片获取请求,所述时间片获取请求中包括待传输数据的数据量;a time slice acquisition request receiving module, configured to receive a time slice acquisition request sent by the slave node when it is determined that the data to be transmitted is data with time deterministic requirements, where the time slice acquisition request includes the data amount of the data to be transmitted; 时间片分配模块,用于根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息;a time slice allocation module, configured to allocate time slices for the data to be transmitted according to the data amount of the data to be transmitted and the unallocated time slices, and obtain time slice allocation information; 时间片分配信息发送模块,用于将所述时间片分配信息发送给所述从节点,以使所述从节点根据所述时间片分配信息,发送所述待传输数据;a time slice allocation information sending module, configured to send the time slice allocation information to the slave node, so that the slave node sends the to-be-transmitted data according to the time slice allocation information; 若处于传输空闲时间,采用冲突检测的载波监听多路访问技术CSMA/CD接收从节点发送的非实时性数据。If it is in the idle time of transmission, the carrier sense multiple access technology CSMA/CD of collision detection is used to receive the non-real-time data sent from the node. 9.根据权利要求8所述的装置,其特征在于,所述时间片获取请求中还包括所述待传输数据的数据标识;所述时间片分配模块,具体包括:9. The apparatus according to claim 8, wherein the time slice acquisition request further includes a data identifier of the data to be transmitted; the time slice allocation module specifically includes: 传输优先级确定单元,用于根据预存的数据标识与传输优先级的对应关系,确定所述待传输数据标识对应的传输优先级;a transmission priority determination unit, configured to determine the transmission priority corresponding to the to-be-transmitted data identifier according to the pre-stored correspondence between the data identifier and the transmission priority; 分配单元,用于根据确定的传输优先级、所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息。The allocation unit is configured to allocate a time slice to the data to be transmitted according to the determined transmission priority, the data volume of the data to be transmitted and the unallocated time slice, and obtain time slice allocation information. 10.一种基于互联网的数据传输装置,其特征在于,适用于两线制数据传输网络,所述装置包括:10. An internet-based data transmission device, characterized in that it is suitable for a two-wire data transmission network, the device comprising: 时间片获取请求生成模块,用于获得待传输数据之后,根据所述待传输数据的数据标识,确定所述待传输数据是否是有时间确定性需求的数据,若是,则生成时间片获取请求;A time slice acquisition request generating module is configured to, after obtaining the data to be transmitted, determine whether the data to be transmitted is data with time deterministic requirements according to the data identifier of the data to be transmitted, and if so, generate a time slice acquisition request; 时间片获取请求发送模块,用于发送生成的时间片获取请求给主节点;所述时间片获取请求中包括待传输数据的数据量;a time slice acquisition request sending module, configured to send the generated time slice acquisition request to the master node; the time slice acquisition request includes the amount of data to be transmitted; 时间片分配信息接收模块,用于接收主节点发送的时间片分配信息;所述时间片分配信息为所述主节点接收所述时间片获取请求后,根据所述待传输数据的数据量以及未分配的时间片为所述待传输数据分配时间片后获得的;The time slice allocation information receiving module is used to receive the time slice allocation information sent by the master node; the time slice distribution information is that after the master node receives the time slice acquisition request, according to the data amount of the to-be-transmitted data and the future The allocated time slice is obtained after the data to be transmitted is allocated a time slice; 数据传输模块,用于根据所述时间片分配信息,发送所述待传输数据;a data transmission module, configured to send the data to be transmitted according to the time slice allocation information; 添加模块,用于将所述时间片分配信息添加到时间片分配信息集合中;并,The adding module is used for adding the time slice allocation information to the time slice allocation information set; and, 监测模块,用于监测当前时间是否包含在所述时间片分配信息集合中的时间片中;a monitoring module for monitoring whether the current time is included in the time slice in the time slice allocation information set; 传输空闲判断模块,用于若当前时间不包含在所述时间片分配信息集合中的时间片中,则判断自身是否处于传输空闲时间;a transmission idle judgment module, configured to judge whether the current time is not in the time slice in the time slice allocation information set, whether it is in the transmission idle time; 非实时性数据传输模块,用于若处于传输空闲时间,则采用冲突检测的载波监听多路访问技术CSMA/CD传输非实时性数据。The non-real-time data transmission module is used to transmit non-real-time data by adopting the carrier sense multiple access technology CSMA/CD of collision detection if it is in idle transmission time. 11.根据权利要求10所述的装置,其特征在于,所述数据传输模块,具体用于:11. The device according to claim 10, wherein the data transmission module is specifically used for: 采用正交频分复用技术OFDM,发送所述待传输数据;或者,Send the data to be transmitted by using the orthogonal frequency division multiplexing technology OFDM; or, 采用基带传输方式,发送所述待传输数据。The data to be transmitted is sent in a baseband transmission manner. 12.根据权利要求10所述的装置,其特征在于,所述时间片获取请求中还包括所述待传输数据的数据标识,以使所述主节点根据该数据标识确定所述待传输数据的传输等级。12 . The device according to claim 10 , wherein the time slice acquisition request further includes a data identifier of the data to be transmitted, so that the master node determines the identifier of the data to be transmitted according to the data identifier. 13 . Transmission class. 13.根据权利要求10所述的装置,其特征在于,所述数据传输模块,具体用于:13. The device according to claim 10, wherein the data transmission module is specifically used for: 针对所述时间片分配信息中的每个时间片,检测是否到达该时间片的触发时间;For each time slice in the time slice allocation information, detect whether the trigger time of the time slice is reached; 若是,则在该时间片发送所述待传输数据。If so, send the data to be transmitted in this time slice. 14.根据权利要求10所述的装置,其特征在于,所述装置还包括:14. The apparatus of claim 10, wherein the apparatus further comprises: 预置突发事件判断模块,用于获得待传输数据之后,根据所述待传输数据的数据标识,确定所述待传输数据是否是预置突发事件的数据;A preset emergency event judgment module, configured to determine whether the to-be-transmitted data is data of a preset emergency event according to the data identifier of the to-be-transmitted data after obtaining the to-be-transmitted data; 突发数据传输模块,用于若是预置突发事件的数据,则开始传输所述预置突发事件的数据。The burst data transmission module is configured to start transmitting the data of the preset emergency event if it is the data of the preset emergency event. 15.一种基于互联网的数据传输系统,其特征在于,适用于两线制数据传输网络,所述系统包括:15. An internet-based data transmission system, characterized in that it is suitable for a two-wire data transmission network, the system comprising: 主节点,用于接收从节点确定待传输数据是有时间确定性需求的数据时发送的时间片获取请求,所述时间片获取请求中包括待传输数据的数据量;根据所述待传输数据的数据量以及未分配的时间片,为所述待传输数据分配时间片,获得时间片分配信息;将所述时间片分配信息发送给所述从节点,以使所述从节点根据所述时间片分配信息,发送所述待传输数据,若处于传输空闲时间,采用冲突检测的载波监听多路访问技术CSMA/CD接收从节点发送的非实时性数据;The master node is used to receive a time slice acquisition request sent when the slave node determines that the data to be transmitted is data with time deterministic requirements, and the time slice acquisition request includes the data amount of the data to be transmitted; The amount of data and the unallocated time slice, allocate time slices for the data to be transmitted, and obtain time slice allocation information; send the time slice allocation information to the slave node, so that the slave node can use the time slice according to the time slice Allocating information, sending the data to be transmitted, if it is in the idle time of transmission, adopting the carrier sense multiple access technology CSMA/CD of collision detection to receive the non-real-time data sent from the node; 从节点,用于获得待传输数据之后,根据所述待传输数据的数据标识,确定所述待传输数据是否是有时间确定性需求的数据,若是,则生成所述时间片获取请求;发送生成的时间片获取请求给主节点;所述时间片获取请求中包括待传输数据的数据量;接收主节点发送的时间片分配信息;所述时间片分配信息为所述主节点接收所述时间片获取请求后,根据所述待传输数据的数据量以及未分配的时间片为所述待传输数据分配时间片后获得的;根据所述时间片分配信息,发送所述待传输数据;将所述时间片分配信息添加到时间片分配信息集合中;并,监测当前时间是否包含在所述时间片分配信息集合中的时间片中;若否,则判断自身是否处于传输空闲时间;若处于传输空闲时间,则采用冲突检测的载波监听多路访问技术CSMA/CD传输非实时性数据。After the slave node obtains the data to be transmitted, according to the data identifier of the data to be transmitted, determine whether the data to be transmitted is data with time deterministic requirements, if so, generate the time slice acquisition request; send the generated The time slice acquisition request is sent to the master node; the time slice acquisition request includes the amount of data to be transmitted; the time slice allocation information sent by the master node is received; the time slice allocation information is for the master node to receive the time slice After obtaining the request, it is obtained after allocating time slices for the data to be transmitted according to the data amount of the data to be transmitted and the unallocated time slice; sending the data to be transmitted according to the time slice allocation information; sending the data to be transmitted; The time slice allocation information is added to the time slice allocation information set; and, monitoring whether the current time is included in the time slice in the time slice allocation information set; if not, it is judged whether it is in the transmission idle time; time, the carrier sense multiple access technology CSMA/CD of collision detection is used to transmit non-real-time data.
CN201610466474.4A 2016-06-23 2016-06-23 Data transmission method Internet-based, apparatus and system Active CN106130858B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610466474.4A CN106130858B (en) 2016-06-23 2016-06-23 Data transmission method Internet-based, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610466474.4A CN106130858B (en) 2016-06-23 2016-06-23 Data transmission method Internet-based, apparatus and system

Publications (2)

Publication Number Publication Date
CN106130858A CN106130858A (en) 2016-11-16
CN106130858B true CN106130858B (en) 2019-06-07

Family

ID=57268343

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610466474.4A Active CN106130858B (en) 2016-06-23 2016-06-23 Data transmission method Internet-based, apparatus and system

Country Status (1)

Country Link
CN (1) CN106130858B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959195B (en) * 2016-06-23 2020-02-21 北京东土科技股份有限公司 Industrial Internet Field Layer Broadband Bus Technology Implementation Method
CN110113385A (en) * 2019-04-15 2019-08-09 中国平安人寿保险股份有限公司 Cache Dynamic Configuration, device, computer equipment and storage medium
CN115551092B (en) * 2022-09-20 2025-07-01 重庆邮电大学 A wireless node communication management method for field construction monitoring
CN115766878B (en) * 2022-10-08 2025-05-16 上海邮电设计咨询研究院有限公司 Data transmission method, system, medium and electronic device for computing power hub
CN119212092B (en) * 2024-09-18 2025-11-11 欣捷安汽车电子有限公司 Communication time slice allocation method, device and system, electronic equipment and computer readable storage medium
CN119583345B (en) * 2025-02-06 2025-06-06 安徽容知日新科技股份有限公司 A remote update method for Internet of Things devices and Internet of Things system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534230A (en) * 2009-04-15 2009-09-16 中控科技集团有限公司 A method for sending data based on Ethernet, Ethernet nodes and a control system
CN102664781A (en) * 2012-04-10 2012-09-12 安徽科力信息产业有限责任公司 Method for controlling multi-node RS485 bus data transmission right
CN102833168A (en) * 2012-08-31 2012-12-19 北京东土科技股份有限公司 Data transmission method and device based on time triggering mechanism
CN103281261A (en) * 2013-06-05 2013-09-04 浙江中控研究院有限公司 Ethernet communication method and Ethernet communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101534230A (en) * 2009-04-15 2009-09-16 中控科技集团有限公司 A method for sending data based on Ethernet, Ethernet nodes and a control system
CN102664781A (en) * 2012-04-10 2012-09-12 安徽科力信息产业有限责任公司 Method for controlling multi-node RS485 bus data transmission right
CN102833168A (en) * 2012-08-31 2012-12-19 北京东土科技股份有限公司 Data transmission method and device based on time triggering mechanism
CN103281261A (en) * 2013-06-05 2013-09-04 浙江中控研究院有限公司 Ethernet communication method and Ethernet communication system

Also Published As

Publication number Publication date
CN106130858A (en) 2016-11-16

Similar Documents

Publication Publication Date Title
CN106130858B (en) Data transmission method Internet-based, apparatus and system
CN105959195B (en) Industrial Internet Field Layer Broadband Bus Technology Implementation Method
CN107040284B (en) A Multiple Access Method for Improving Reliability and Stability of Data Transmission
EP3261295B1 (en) Industry internet field broadband bus architecture system
RU2011101387A (en) INTERFERENCE SETTING CHART AND ITS APPLICATION FOR THE PURPOSE OF NETWORK RESOURCES
US8457125B2 (en) G.hn network node and method for operating a G.hn network node in the presence of a homeplug network
CN106155014A (en) A kind of industry internet field layer wideband bus real-time implementation method
CN106789498B (en) Network address allocation method of Modbus communication network, slave node equipment and communication system
TW200929785A (en) Remote control power distribution apparatus, power distribution system and method of remotely controlling types of power
CN106161595B (en) Process control real-time communication method, device and system based on industrial Internet
CN105978779B (en) Real-time communication method, apparatus and system based on industry internet
CN112511662B (en) System communication address generation and distribution method and device and air conditioning system
CN108184272B (en) Interference processing method, interference processing device and computer storage medium
KR102414964B1 (en) Subscriber station for a communication system and method for high-data-rate can based communication
US9537792B2 (en) Channel loading for one-to-many communications in a network
CN105897936B (en) Method, device and system for processing control configuration information based on industrial Internet
JP2009130585A (en) Device and method for power line communication, and system determination method
US6894603B2 (en) Packet communication method of powerline communication system
CN106130854A (en) Industrial process control system based on industry internet
US20210168022A1 (en) Communication apparatus and communication method
CN119172194A (en) Communication system networking method, device, computer equipment and storage medium
CN116321504A (en) A contention-based adaptive multi-channel wireless anti-jamming communication method and system
KR101689585B1 (en) Data transmission method in controller area network communication
CN105308873B (en) node, resource multiplexing method and system
KR20180019841A (en) Electronic device and communication method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant