Summary of the invention
The application provides a kind of batch data communication means, device and system, solves terminal unit address in prior art
Limited amount, the problem that data communication mass degree that the reason such as server one process work causes is low.
First aspect according to the embodiment of the present application, it is provided that a kind of batch data communication means, is applied to multiple terminals batch
Control scene, including:
At least one Centroid subordinate is connected to cloud server, and described Centroid subordinate connects has at least one eventually
End node;The physical address of described Centroid by described cloud server at the first address layer absolute coding, described centromere
Put the physical address to the described terminal node that subordinate connects at the second address layer absolute coding;
Described Centroid is monitored described cloud server and is sent communication data packet, described communication data by network channel
Bag carries target's center's node physical address, target terminal node physical address, control information;
Described Centroid is when described target's center node physical address is consistent with the physical address of described Centroid
Receive described communication data packet;
Described communication data packet is forwarded to subordinate even according to described target terminal node physical address by described Centroid
The described terminal node connect, and the response message after the described terminal node described control information of execution is returned to described high in the clouds clothes
Business device.
Second aspect according to the embodiment of the present application, it is provided that the device of a kind of batch data communication, is applied to multiple terminals and criticizes
Amount controls scene, it is characterised in that including:
Link block, is configured at least one Centroid subordinate and is connected to cloud server, under described Centroid
Belong to connection and have at least one terminal node;
Coding module, the physical address being configured to described Centroid is only at the first address layer by described cloud server
Vertical coding, the physical address of the described terminal node that subordinate is connected by described Centroid is at the second address layer absolute coding;
Sending module, is configured to the described Centroid described cloud server of monitoring and sends communication number by network channel
According to bag, described communication data packet carries target's center's node physical address, target terminal node physical address, control information;
Receiver module, is configured to described Centroid at described target's center node physical address and described Centroid
Physical address consistent time receive described communication data packet;
Forwarding module, is configured to described Centroid according to described target terminal node physical address by described communication number
It is forwarded to, according to bag, the described terminal node that subordinate connects, and described terminal node is performed the response message after described control information
Return to described cloud server.
The third aspect according to the embodiment of the present application, it is provided that the system of a kind of batch data communication, is applied to multiple terminals and criticizes
Amount controls scene, including:
Cloud server, subordinate connects at least one Centroid, to the physical address of described Centroid on the first ground
Location layer carries out absolute coding, sends communication data packet by network channel, and described communication data packet carries target's center's node thing
Reason address, target terminal node physical address, control information;
Centroid, subordinate connects at least one terminal node, to the physical address of described terminal node in the second address
Layer carries out absolute coding;Described Centroid is at the physical address of described target's center node physical address Yu described Centroid
Described communication data packet is received time consistent;Described Centroid according to described target terminal node physical address by described communication number
It is forwarded to, according to bag, the described terminal node that subordinate connects, and described terminal node is performed the response message after described control information
Return to described cloud server;
Terminal node, performs the control information entrained by described communication data packet, and response results returns to upper genus even
The described Centroid connect.
The application uses the mode that two-level address encodes, and makes node physical address quantity allotted to be greatly increased;And use
Introduce the mode of bag sequence number, make, under the state that cloud server is maintained at concurrent working for a long time, to improve data on the whole
Communicate is bulk.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they are only with the most appended
The example of the apparatus and method that some aspects that described in detail in claims, the application are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting the application.
" a kind of ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority
Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps
Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the application possible employing term first, second, third, etc. to describe various information, but this
A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from
In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ...
Time " or " in response to determining ".
The application may be used for managing the scene of mass termination node, such as on-farm water management system.This type of scene
In, large number of terminal node often occurs, and needs parallel carrying out data transmission.
Fig. 1 is according to a kind of batch data communication means shown in an exemplary embodiment, bulk transfer data method
Structure chart.Cloud server 101 is the top of whole system, does not upwards have node to connect;Cloud server 101 subordinate connects to be had
At least one Centroid 1 ... Centroid A, each Centroid 1 ... Centroid A subordinate connects at least one terminal node
1 ... terminal node L.For the sake of Jian Ming, Centroid is unified is denoted as Centroid 102, and terminal node is unified is denoted as terminal joint
Point 103.
In field of computer technology, each node (including Centroid and terminal node) can in communication process
With allocated hardware address, usually 16 system, assigning process is generally completed by the node on system top.In prior art
Generally use the hardware address of level encoder pattern distribution node, i.e. in system all addresss of node all an address pool
In, in pond, all addresses are not repeated;It is low to there is address utilization rate in this pattern, and the number of addresses of needs is big, available address number
Measure the problems such as limited, directly all node address are encoded by server in addition, a large amount of calculation resources can be consumed.The application uses
The mode of two-level address coding, shares two levels by coding load, cloud server at the first address layer to relative number
Measuring less Centroid encoding physical addresses, the terminal node that its subordinate is connected at the second address layer by Centroid is physically
Location encodes, the operational capability of cloud server is concentrated on Centroid less with relative populations mutual on, fill again simultaneously
Divide the operational capability that make use of Centroid, balance the load of whole system;Additionally, as a example by sixteen-bit system, single-level address
Coding is only provided that 2^16=65535 physical address, and two-level address encodes because introducing the second address layer so that each ground
Location has 65535 physical address available layer by layer, is greatly expanded the capacity of address pool.
Fig. 2 is according to a kind of batch data communication means shown in an exemplary embodiment, comprises the following steps:
In step s 201, described cloud server sends communication data packet, described communication data packet by network channel
Carry target's center's node physical address, target terminal node physical address, control information;
In step S202, described Centroid is at the thing of described target's center node physical address Yu described Centroid
Reason address receives described communication data packet time consistent;
In step S203, described Centroid according to described target terminal node physical address by described communication data packet
It is forwarded to the described terminal node that subordinate connects, and described terminal node is performed the response message return after described control information
To described cloud server.
In conjunction with structure and the flow process of Fig. 2 of Fig. 1, cloud server 101 is by sending communication to the destination node to be accessed
The form of packet, sets up dialogue with destination node.As shown in Figure 1, cloud server 101 is intended to access a terminal node 103,
Need first to access on it and belong to the Centroid 102 connected, therefore the application designs communication data packet and carries two-level address, take
Band target's center node physical address and target terminal node physical address, communication data packet only need to be sent out by cloud server 101
Give the less Centroid of relative populations 102, it is to avoid under single-level address coding situation, cloud server needs to save to the whole network
Point broadcast data packet, decreases system resources consumption.Communication data packet also carries control information in addition, comprises cloud service
The operation that destination node to be performed by device.
Centroid 102 receives the communication data packet that cloud server is sent, it is judged that the target carried in communication data packet
Centroid physical address is the most consistent with the physical address of self, as this communication data packet of inconsistent explanation is not intended for this section
Point, abandons;As unanimously then received this communication data packet, analytic message, obtain the target terminal node thing that next stage needs to forward
Reason address, and the content of the information of control.
Terminal node 103 receives Centroid and forwards the communication data packet of coming, it is judged that the target carried in communication data packet
Terminal node physical address is the most consistent with the physical address of self, as this communication data packet of inconsistent explanation is not intended for this section
Point, abandons;As unanimously then received this communication data packet, analytic message, obtain the content of control information, perform control information, and
Response results is returned to the upper Centroid 102 belonging to and connecting.Centroid 102 receives the response results of target terminal node
After, transmitted response result is to cloud server 101.
By the above-mentioned description to Fig. 1 structure, it is easy to understanding, the structure of the application interior joint, typically it is analogous to meter
A kind of data structure in calculation machine field, multiway tree.In figure 3, with a subset of multiway tree, the form of binary tree is (i.e. only
Enumerating limited branch road, the situation of other branch roads is all equal to the branch road enumerated) two-level address coding in the application is described
One embodiment of mode.Other subset forms in system structure, all can refer to the description of the present embodiment.
Two-level address coding by the way of address multiplex, can also further expand the scope of available physical address.
Direct report is connected to the Centroid 1 of cloud server 101, the physical address of Centroid 2 is configured to not
Identical (if there being address to repeat, then can cause the conflict of information forward-path in this level);Terminal node 1, terminal node 2
Subordinate is connected to Centroid 1, and terminal node 3 subordinate is connected to Centroid 2, similar, in this level, terminal node
1, the physical address of terminal node 2 is configured to differ that (they have identical upper layer node, if there being address to repeat, then can
This level causes the conflict of information forward-path), but terminal node 1 and terminal node 3 or terminal node 2 and terminal
The physical address of node 3 then can be configured to identical, because they have different upper layer node physical address, whole information
Forward-path also differs.In sum, direct report differs, often in the different Centroid coded addresses of cloud server
Individual Centroid subordinate connects terminal node physical address and differs, the terminal node address of different Centroid subordinaties identical or
Differ.By two-level address coded system, it is achieved that the multiplexing to limited physical address, reduce the application to physically
The requirement of location quantity.
Fig. 4 is according to a kind of batch data communication means shown in an exemplary embodiment.As shown in Figure 4, in the application
The communication data packet of definition, except fields such as the packet length defined in normal communication protocols, type of messages, also defines Bao Xu
Number, in order to distinguish different conversation process messages.By different bag sequence numbers, cloud server 101 can distinguish same dialogue
Up-downgoing message between Downlink Control Information and up response message in flow process, or difference different dialogue flow process.High in the clouds takes
Business device sends after certain downbound request sends, as received corresponding up response, cloud server 101 the most in the given time
Then this bag sequence number is made marks, and from task queue, removes the process that this bag sequence number represents, hang up this process in depositor,
Then proceed to process process follow-up in task queue.Cloud server 101, when receiving aforementioned up response, is looked into by labelling
Find the process being in suspended state, reload and process queue to task, recover the process to this conversation process.Pass through Bao Xu
Number mechanism, it is ensured that high in the clouds processor 101 is in the state of parallel processing task all the time, meet batch data communication
Need, it is to avoid because the response of a certain conversation process not in time or hangs the process resources idle causing high in the clouds processor 101, shadow
The execution efficiency of acoustic system.
Fig. 5 is according to a kind of batch data communication means shown in an exemplary embodiment.As it is shown in figure 5, communication data
Bag sends to Centroid, and communication data packet is forwarded to terminal node by Centroid, and cloud server is set up and terminal
The conversation process of node;By the control information entrained by packet, terminal can be saved by cloud server by Centroid
Point executive control operation, such as, inquire about the state of terminal node, control the state of terminal node.Apply specific to irrigation and water conservancy,
Can be presented as that inquiry terminal irrigates the state of valve, cell voltage, valve pressure, device temperature, the soil moisture, soil is wet
Degree, integrated flow, it is also possible to be presented as that controlling terminal irrigates opening or closing of valve.After message performs, Centroid will receive
Response message be back to cloud server, complete conversation process.In conversation process, the application also introduces and wakes up up and time-out
After the conversation process of retransmission mechanism, cloud server and terminal node is set up, such as terminal node the most in the given time to center
Node response cloud server send task requests, then Centroid activate Retransmission timeout mechanism, to terminal node again or
Transmission request repeatedly, to guarantee that terminal node does not fail to normally receive request because of external factor interference, adds this
The reliability of application.As received the response of terminal node, then centromere after Centroid repeat requests the most in the given time
Point activation wakes up mechanism up, sends wake request to terminal node, the wake request such as terminal node normal response, it was demonstrated that terminal saves
Point does not receives task requests because being in holding state, and now terminal node is activated as normal operating conditions, and Centroid is again
Secondary transmission task requests, the request of terminal node normal response, response results is back to cloud server by Centroid, and it is right to complete
Words flow process;As terminal node fails normal response wake request, it was demonstrated that terminal node is in abnormal operating state, Centroid
The then terminal node of this abnormal condition of labelling, is back to cloud server by labelling result, terminates conversation process.So increase
The vigorousness of the application.
Fig. 6 is according to a kind of batch data communication means shown in an exemplary embodiment.As shown in Figure 6, in the application
Concrete practice in, the multiple terminals scene with irrigation and water conservancy system as representative, it is wide that its terminal node is generally distributed ratio,
The short haul connection means such as wifi, bluetooth are difficult to cover such scene.The application uses 2G, 3G, 4G mobile communications network 501
Carry packet as network channel, make full use of mobile communications network signal and cover feature widely, eliminate independence simultaneously
Set up the cost of network channel.
Fig. 7 is the schematic block diagram of one embodiment of the application;
As it is shown in fig. 7, the device 701 of a kind of batch data communication, including:
Link block 702, is configured at least one Centroid subordinate and is connected to cloud server, Centroid subordinate
Connect and have at least one terminal node;
Coding module 703, the physical address being configured to Centroid is independently compiled at the first address layer by cloud server
Code, Centroid to the physical address of the terminal node that subordinate connects at the second address layer absolute coding;
Sending module 704, is configured to Centroid monitoring cloud server and sends communication data packet by network channel,
Communication data packet carries target's center's node physical address, target terminal node physical address, control information;
Receiver module 705, is configured to Centroid heart node physical address in the target with Centroid physically
Communication data packet is received when location is consistent;
Forwarding module 706, is configured to Centroid and communication data packet is forwarded according to target terminal node physical address
The terminal node connected to subordinate, and terminal node is performed the response message after control information return to cloud server.
Fig. 8 is the schematic block diagram of one embodiment of coding module in the application;
As shown in Figure 8, the device 701 of a kind of batch data communication, coding module 703 also includes,
First coding module 703a, is configured to,
In first address layer, the physical address of the Centroid that direct report is connected to cloud server differs;
In second address layer, the physical address of the terminal node that each Centroid subordinate connects differs;
In second address layer, the physical address of the terminal node that different Centroid subordinaties connect is identical or differs.
Fig. 9 is the schematic block diagram of another embodiment of the application;
As it is shown in figure 9, the device 701 of a kind of batch data communication, device 701 also includes,
Parallel modules 707, is configured to communication data packet and also carries bag sequence number, and cloud server is by bag sequence number identification not
Same conversation process, the parallel processing difference corresponding conversation process of bag sequence number.
Figure 10 is the schematic block diagram of another embodiment of the application;
As shown in Figure 10, the device 701 of a kind of batch data communication, device 701 also includes,
Message module 708, be configured to control information include Centroid inquiry subordinate connect end node status, in
Heart node control end node status.
Figure 11 is the schematic block diagram of another embodiment of the application;
The system 1100 of a kind of batch data communication, it is characterised in that system 1100 includes:
Cloud server 1101, subordinate connects at least one Centroid, to the physical address of Centroid on the first ground
Location layer carries out absolute coding, sends communication data packet by network channel, and communication data packet carries target's center's node physically
Location, target terminal node physical address, control information;
Centroid 1102, subordinate connects at least one terminal node, to the physical address of terminal node in the second address
Layer carries out absolute coding;Receive logical when Centroid heart node physical address in the target is consistent with the physical address of Centroid
Letter data bag;Communication data packet is forwarded to the terminal joint of subordinate's connection by Centroid according to target terminal node physical address
Point, and terminal node is performed the response message after described control information return to cloud server;
Terminal node 1103, performs the control information entrained by described communication data packet, and response results is returned to
Belong to the Centroid connected.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the disclosure
Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modification, purposes or
Person's adaptations is followed the general principle of the disclosure and includes the undocumented common knowledge in the art of the disclosure
Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are by following
Claim is pointed out.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application
Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.