Summary of the invention
The application provides a kind of batch data communication means, device and system, solves terminal unit address in the prior art
Limited amount, the low problem of the data communication mass degree caused by reasons such as server one process work.
According to the embodiment of the present application in a first aspect, a kind of batch data communication means is provided, applied to multiple terminals batch
Control scene, comprising:
At least one central node subordinate is connected to cloud server, and the central node subordinate is connected at least one end
End node;The physical address of the central node is by the cloud server in the first address layer absolute coding, the centromere
The physical address for the terminal node that point connects subordinate is in the second address layer absolute coding;
The central node monitors the cloud server and issues communication data packet, the communication data by network channel
Packet carries target's center's node physical address, target terminal node physical address, control information;
The central node is when target's center's node physical address is consistent with the physical address of the central node
Receive the communication data packet;
The communication data packet is forwarded to subordinate according to the target terminal node physical address and connected by the central node
The terminal node connect, and the terminal node is executed to the response message after the control information return to the cloud and take
Business device.
According to the second aspect of the embodiment of the present application, a kind of device of batch data communication is provided, applied to multiple terminals batch
Amount control scene characterized by comprising
Link block is configured as at least one central node subordinate and is connected to cloud server, under the central node
Category is connected at least one terminal node;
Coding module, the physical address for being configured as the central node are only in the first address layer by the cloud server
Vertical coding, the physical address for the terminal node that the central node connects subordinate is in the second address layer absolute coding;
Sending module is configured as the central node monitoring cloud server and passes through network channel sending communication number
According to packet, the communication data packet carries target's center's node physical address, target terminal node physical address, control information;
Receiving module is configured as the central node in target's center's node physical address and the central node
Physical address it is consistent when receive the communication data packet;
Forwarding module is configured as the central node according to the target terminal node physical address for the communication number
It is forwarded to the terminal node of subordinate's connection according to packet, and the terminal node is executed to the response message after the control information
Return to the cloud server.
According to the third aspect of the embodiment of the present application, a kind of system of batch data communication is provided, applied to multiple terminals batch
Amount control scene, comprising:
Cloud server, subordinate connect at least one central node, to the physical address of the central node the first
Location layer carries out absolute coding, issues communication data packet by network channel, the communication data packet carries target's center's node object
Manage address, target terminal node physical address, control information;
Central node, subordinate connect at least one terminal node, to the physical address of the terminal node in the second address
Layer carries out absolute coding;Physical address of the central node in target's center's node physical address and the central node
The communication data packet is received when consistent;The central node is according to the target terminal node physical address by the communication number
It is forwarded to the terminal node of subordinate's connection according to packet, and the terminal node is executed to the response message after the control information
Return to the cloud server;
Terminal node executes control information entrained by the communication data packet, and response results is returned to upper category and are connected
The central node connect.
The application using two-level address coding by the way of, make node physical address can quantity allotted greatly increase;And it uses
The mode for introducing packet serial number is maintained at cloud server in the state of concurrent working for a long time, improves data on the whole
What is communicated is bulk.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, 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.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
The application can be used for managing the scene of mass termination node, such as on-farm water management system.Such scene
In, often there is large number of terminal node, and need parallel carry out data transmission.
Fig. 1 is a kind of batch data communication means shown according to an exemplary embodiment, bulk transfer data method
Structure chart.Cloud server 101 is the top of whole system, is connected upwards without node;101 subordinate of cloud server is connected with
At least one central node 1 ... central node A, each central node 1 ... central node A subordinate connect at least one terminal node
1 ... terminal node L.For the sake of simplicity, central node is uniformly denoted as central node 102, and terminal node is uniformly denoted as terminal section
Point 103.
In field of computer technology, each node (including central node and terminal node) can in communication process
To be assigned a hardware address, usually 16 system, assigning process are usually completed by the node on system top.In the prior art
The hardware address of level encoder mode distribution node is generallyd use, i.e., all addresss of node are in an address pool in system
Interior, all addresses do not repeat in pond;This mode is there are address utilization rate is low, and the number of addresses needed is big, available address number
It measures the problems such as limited, furthermore directly all node address is encoded by server, a large amount of calculation resources can be consumed.The application uses
Coding load is shared two levels by the mode of two-level address coding, and cloud server is in the first address layer only to relative number
Measure less central node encoding physical addresses, the terminal node that central node connects its subordinate in the second address layer is physically
Location coding, the operational capability of cloud server is concentrated in the interaction of the central node less with relative populations, while filling again
Divide the operational capability that central node is utilized, balances the load of whole system;In addition, by taking sixteen-bit system as an example, single-level address
Coding is only capable of providing 2^16=65535 physical address, and two-level address coding is because introducing the second address layer, so that each ground
Location has 65535 physical address available layer by layer, greatly expands the capacity of address pool.
Fig. 2 is a kind of batch data communication means shown according to an exemplary embodiment, comprising the following steps:
In step s 201, the cloud server issues communication data packet, the communication data packet by network channel
Carry target's center's node physical address, target terminal node physical address, control information;
In step S202, object of the central node in target's center's node physical address and the central node
Reason address receives the communication data packet when consistent;
In step S203, the central node is according to the target terminal node physical address by the communication data packet
It is forwarded to the terminal node of subordinate's connection, and the terminal node is executed to the response message return after the control information
To the cloud server.
In conjunction with the structure of Fig. 1 and the process of Fig. 2, cloud server 101 is by sending communication to the destination node to be accessed
The form of data packet is established with destination node and is talked with.As shown in Figure 1, cloud server 101 is intended to access a terminal node 103,
It needs first to access to the central node 102 for belonging to connection thereon, therefore designs communication data packet in the application and carry two-level address, take
Band target's center's node physical address and target terminal node physical address, cloud server 101 need to only send out communication data packet
It gives relative populations less central node 102, avoids cloud server under single-level address coding situation and need to the whole network section
Point broadcast data packet, reduces system resources consumption.Furthermore control information is also carried in communication data packet, includes cloud service
Device is to the destination node operation to be executed.
Central node 102 receives the communication data packet that cloud server is sent, and judges the target carried in communication data packet
Whether central node physical address is consistent with the physical address of itself, and such as inconsistent explanation communication data packet is not intended for this section
Point abandons;The communication data packet is received if consistent, analytic message obtains the target terminal node object that next stage needs to forward
Manage address, and the content of control information.
Terminal node 103 receives the communication data packet that central node forwarding comes, and judges the target carried in communication data packet
Whether terminal node physical address is consistent with the physical address of itself, and such as inconsistent explanation communication data packet is not intended for this section
Point abandons;The communication data packet is received if consistent, analytic message obtains the content of control information, control information is executed, and
Response results are returned into the upper central node 102 for belonging to connection.Central node 102 receives the response results of target terminal node
Afterwards, transmitted response result is to cloud server 101.
Understandable by the above-mentioned description to Fig. 1 structure, the structure of the application interior joint is typically analogous to meter
One of calculation machine field data structure, multiway tree.In Fig. 3, with a subset of multiway tree, the form of binary tree is (i.e. only
Limited branch is enumerated, the case where other branches is equal to the branch enumerated) it is encoded to describe two-level address in the application
One embodiment of mode.Other subset forms, can refer to the description of the present embodiment in system structure.
Two-level address coding can also further expand the range of available physical address by way of address multiplex.
Direct report is connected to the central node 1 of cloud server 101, the physical address of central node 2 is configured as not
Identical (if there is address repetition, the conflict of information forward-path can be caused in this level);Terminal node 1, terminal node 2
Subordinate is connected to central node 1, and 3 subordinate of terminal node is connected to central node 2, similar, in this level, terminal node
1, the physical address of terminal node 2 is configured as that not identical (their upper layer nodes having the same can if there is address repetition
The conflict of information forward-path is caused in this level), but terminal node 1 and terminal node 3 or terminal node 2 and terminal
The physical address of node 3 then can be configured as it is identical because they have different upper layer node physical address, entire information
Forward-path is not identical.In conclusion direct report is not identical in the different central node coded addresses of cloud server, often
It is not identical that a central node subordinate connects terminal node physical address, the terminal node address of different central node subordinaties it is identical or
It is not identical.By two-level address coding mode, the multiplexing to limited physical address is realized, reduces the application to physically
The requirement of location quantity.
Fig. 4 is a kind of batch data communication means shown according to an exemplary embodiment.As shown in figure 4, in the application
The communication data packet of definition, in addition to packet length defined in normal communication protocols, the fields such as type of message also define Bao Xu
Number, to distinguish different conversation process messages.By different packet serial numbers, cloud server 101 can distinguish same dialogue
Uplink and downlink message between Downlink Control Information and uplink response message in process, or difference different dialogue process.Cloud clothes
After business device issues the sending of some downbound request, corresponding uplink response, cloud server 101 are not received in the given time such as
Then the packet serial number is made marks, and removes the process of packet serial number representative from task queue, hangs up the process into register,
Then proceed to subsequent process in processing task queue.Cloud server 101 is looked into when receiving the response of aforementioned uplink by label
The process in suspended state is found, reloads to task and handles queue, restores the processing to the conversation process.Pass through Bao Xu
Number mechanism, it is ensured that cloud processor 101 is in the state of parallel processing task always, meet batch data communication
It needs, avoids because responding not in time or hanging for a certain conversation process causes the process resource of cloud processor 101 idle, shadow
The execution efficiency of acoustic system.
Fig. 5 is a kind of batch data communication means shown according to an exemplary embodiment.As shown in figure 5, communication data
After packet is sent to central node, communication data packet is forwarded to terminal node by central node, and cloud server is set up and terminal
The conversation process of node;By control information entrained by data packet, cloud server can be by central node to terminal section
Point executive control operation, such as state, the state of controlling terminal node of inquiry terminal node.Specific to irrigation and water conservancy application,
It 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 can also be presented as that controlling terminal irrigates opening or closing for valve.After message executes, central node will be received
Response message be back to cloud server, complete conversation process.In conversation process, the application also introduces wake-up and time-out
After the conversation process of retransmission mechanism, cloud server and terminal node is established, if terminal node is not in the given time to center
Node respond cloud server send task requests, then central node activate Retransmission timeout mechanism, to terminal node again or
Multiple transmission request, to ensure that terminal node without failing to normally receive request because external factor is interfered, increases this
The reliability of application.Response as do not received terminal node after central node retransmission request in the given time yet, then centromere
Point activation wake-up mechanism, sends wake request, such as terminal node normal response wake request, it was demonstrated that terminal section to terminal node
Point does not receive task requests because being in standby, and terminal node is activated as normal operating conditions at this time, and central node is again
Response results are back to cloud server, completion pair by secondary transmission task requests, the request of terminal node normal response, central node
Talk about process;As terminal node fails normal response wake request, it was demonstrated that terminal node is in abnormal operating state, central node
Label result is back to cloud server, terminates conversation process by the terminal node for then marking the abnormal condition.Increase in this way
The robustness of the application.
Fig. 6 is a kind of batch data communication means shown according to an exemplary embodiment.As shown in fig. 6, in the application
Concrete practice in, using irrigation and water conservancy system as the multiple terminals scene of representative, terminal node is usually distributed than wide,
The short haul connections means such as wifi, bluetooth are difficult to cover such scene.The application uses 2G, 3G, 4G mobile communications network 501
Data packet is carried as network channel, makes full use of mobile communications network signal to cover extensive feature, while eliminating independence
Set up the cost of network channel.
Fig. 7 is the schematic block diagram of the application one embodiment;
As shown in fig. 7, a kind of device 701 of batch data communication, comprising:
Link block 702 is configured as at least one central node subordinate and is connected to cloud server, central node subordinate
It is connected at least one terminal node;
Coding module 703, the physical address for being configured as central node are independently compiled by cloud server in the first address layer
Code, the physical address for the terminal node that central node connects subordinate is in the second address layer absolute coding;
Sending module 704 is configured as central node monitoring cloud server by network channel and issues communication data packet,
Communication data packet carries target's center's node physical address, target terminal node physical address, control information;
Receiving module 705, being configured as central node, heart node physical address and central node be physically in the target
Communication data packet is received when location is consistent;
Forwarding module 706 is configured as central node and is forwarded communication data packet according to target terminal node physical address
The terminal node connected to subordinate, and the response message that terminal node executes after controlling information is returned into cloud server.
Fig. 8 is the schematic block diagram of coding module one embodiment in the application;
As shown in figure 8, a kind of device 701 of batch data communication, coding module 703 further include,
First coding module 703a, is configured as,
In first address layer, the physical address that direct report is connected to the central node of cloud server is not identical;
In second address layer, the physical address of the terminal node of each central node subordinate connection is not identical;
In second address layer, the physical address of the terminal node of different central node subordinate connections is identical or not identical.
Fig. 9 is the schematic block diagram of another embodiment of the application;
As shown in figure 9, a kind of device 701 of batch data communication, device 701 further include,
Parallel modules 707, are configured as communication data packet also carrying package serial number, and cloud server is identified not by packet serial number
Same conversation process, the corresponding conversation process of parallel processing difference packet serial number.
Figure 10 is the schematic block diagram of another embodiment of the application;
As shown in Figure 10, a kind of device 701 of batch data communication, device 701 further include,
Message module 708, be configured as control information include central node inquiry subordinate connection 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, which is characterized in that system 1100 includes:
Cloud server 1101, subordinate connect at least one central node, to the physical address of central node the first
Location layer carries out absolute coding, issues communication data packet by network channel, communication data packet carries target's center's node physically
Location, target terminal node physical address, control information;
Central node 1102, subordinate connect at least one terminal node, to the physical address of terminal node in the second address
Layer carries out absolute coding;Central node receives logical when heart node physical address is consistent with the physical address of central node in the target
Letter data packet;Communication data packet is forwarded to the terminal section of subordinate's connection according to target terminal node physical address by central node
Point, and by terminal node execute it is described control information after response message return to cloud server;
Terminal node 1103 executes control information entrained by the communication data packet, and response results is returned to
Belong to the central node of connection.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following
Claim is pointed out.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.