Summary of the invention
In view of this, the purpose of the embodiment of the present invention is in that to provide a kind of data transmission method and electronic enclosure system, to improve in prior art, it is impossible to the problem obtaining the status information of fence.
First aspect, embodiments provide a kind of data transmission method, it is applied to electronic enclosure system, described electronic enclosure system includes the first fence and second fence of edge contour Guan Bi, described first fence and the second fence include the multiple electronics stakes being arranged in order respectively, described first fence and described second fence have at least a total electronics stake, the plurality of electronics stake is respectively arranged with the first radio communication device and is received by described first radio communication device and send data, described method, including:
Described total electronics staking receives the first status information table that the electronics stake being adjacent in described first fence sends and the second status information table that the electronics stake being adjacent in described second fence sends;
The content of described second status information table is written to described first status information table by described total electronics stake, the first status information table after being updated, the content of described first status information table is written to described second status information table, the second status information table after being updated;
The first status information table after described renewal is sent another electronics stake being adjacent to described first fence by described total electronics stake, and the second status information table after described renewal is sent another electronics stake being adjacent to described second fence;
Receive the electronics stake of described first status information table or the second status information table respective status information and warning message to be write in corresponding status information table, and the first status information table of write information or the second status information table are transferred to according to pre-defined rule the electronics stake being adjacent.
Second aspect, embodiments provide a kind of data transmission method, it is applied to electronic enclosure system, described electronic enclosure system includes the fence of edge contour Guan Bi, described fence includes the multiple electronics stakes being arranged in order, the plurality of electronics stake is respectively arranged with the first radio communication device and is received by described first radio communication device and transmission data, described method, including:
Current electronic staking receives the status information table that the electronics stake being adjacent sends, described status information table carry described in the status information of an electronics stake that is adjacent and warning message;
Current electronic stake updates described status information table, the status information table after being updated;
Status information table after renewal is sent to and is adjacent another electronics stake by Current electronic stake.
The third aspect, embodiments provide a kind of electronic enclosure system, described electronic enclosure system includes the first fence and second fence of edge contour Guan Bi, described first fence and the second fence include the multiple electronics stakes being arranged in order respectively, described first fence and described second fence have at least a total electronics stake, and the plurality of electronics stake is respectively arranged with the first radio communication device and is received by described first radio communication device and send data;
Described total electronics stake, for receiving the first status information table that the electronics stake being adjacent in described first fence sends, and the second status information table that the electronics stake being adjacent in described second fence sends;
The content of described second status information table is written to described first status information table, the first status information table after being updated, the content of described first status information table is written to described second status information table, the second status information table after being updated;
The first status information table after described renewal is sent another electronics stake being adjacent to described first fence, the second status information table after described renewal is sent another electronics stake being adjacent to described second fence;
Receive the electronics stake of described first status information table or the second status information table, for respective status information and warning message being write in corresponding status information table, and the first status information table of write information or the second status information table are transferred to according to pre-defined rule the electronics stake being adjacent.
Fourth aspect, embodiments provide a kind of electronic enclosure system, described electronic enclosure system includes the fence of edge contour Guan Bi, described fence includes the multiple electronics stakes being arranged in order, and the plurality of electronics stake is respectively arranged with the first radio communication device and is received by described first radio communication device and send data;
Current electronic stake, for receiving the status information table that the electronics stake being adjacent sends, described status information table carry described in the status information of an electronics stake that is adjacent and warning message;
Update described status information table, the status information table after being updated;
Status information table after renewal is sent to and is adjacent another electronics stake.
The data transmission method of embodiments of the invention offer and electronic enclosure system, after the electronics stake of this intrasystem fence sets up wireless connections with adjacent electronics stake, after receiving the status information table that adjacent electronics stake state sends, the status information table being more newly received, and the status information table after renewal is passed to the mode of another adjacent electronics stake, make each electronics stake can store the status information of other electronics stakes, an electronics stake is conducive to the status information of all of electronics stake to be uploaded, make management personnel can get the status information of each electronics stake in time.
For making the above-mentioned purpose of the present invention, feature and advantage to become apparent, preferred embodiment cited below particularly, and coordinate appended accompanying drawing, it is described in detail below.
Detailed description of the invention
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments. Generally can with various different configurations arrange and design with the assembly of the embodiment of the present invention that illustrate described in accompanying drawing herein. Therefore, below the detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit claimed the scope of the present invention, but is merely representative of the selected embodiment of the present invention. Based on embodiments of the invention, the every other embodiment that those skilled in the art obtain under the premise not making creative work, broadly fall into the scope of protection of the invention.
It should also be noted that similar label and letter below figure represent similar terms, therefore, once a certain Xiang Yi accompanying drawing is defined, then it need not be carried out definition further and explain in accompanying drawing subsequently. Meanwhile, in describing the invention, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicate or hint relative importance.
First embodiment
Referring to Fig. 1-3, a kind of electronic enclosure system that first embodiment of the invention provides, described electronic enclosure system includes the first fence 100 and the second fence 200. Described first fence 100 includes the multiple electronics stakes being arranged in order, and the plurality of electronics stake be arranged in order after form the edge contour Guan Bi of the first fence 100 on limit. Described second fence 200 also includes the multiple electronics stakes being arranged in order, and the plurality of electronics stake be arranged in order after the edge contour Guan Bi of the second fence 200 that formed. The edge contour of described first fence 100 and the second fence 200 can be the circle in the square or Fig. 2 in Fig. 1.
As it is shown on figure 3, each electronics stake is respectively arranged with the first radio communication device 400 and receives by described first radio communication device 400 and send data. When electronic enclosure system is applied to animal farm management domestic animal, above-mentioned first fence 100 and the second fence 200 may be used for the distance of the domestic animal within monitoring and the first fence 100 or the electronics stake of the second fence 200. Such as, can wearing the second radio communication device with domestic animal, the first radio communication device 400 of electronics stake can by detecting the spacing that the wireless signal strength of the second radio communication device received judges to arrange this second radio communication device and the first radio communication device 400. Judge the second radio communication device and when being smaller than the threshold distance preset of the first radio communication device 400 when the first radio communication device 400, warning message can be added in the status information of electronics stake.
It should be noted that the status information of electronics stake is for characterizing the duty of electronics stake. Each electronics stake is provided with the flag information for unique identification, then each electronics stake is when generating status information, can be written in status information by the flag information of electronics stake, for the status information of this electronics stake of unique identification. If when electronics stake detects the second radio communication device being smaller than predetermined threshold value, this electronics stake can generate and characterize the warning message the second radio communication device being smaller than predetermined threshold value being detected, and is written in status information by this warning message.
In order to make arbitrary electronics stake all can obtain the status information of other electronics stakes, described first fence 100 has at least a total electronics stake 300 with described second fence 200.
Described total electronics stake 300, for receiving the first status information table that the electronics stake being adjacent in described first fence 100 sends, and the second status information table that the electronics stake being adjacent in described second fence 200 sends.
Receive the first status information table and the second status information table when described total electronics stake 300 after, in order to make the electronics stake in the first fence 100 can obtain the status information of the electronics stake in the second fence 200, and make the electronics stake in the second fence 200 can obtain the status information of the electronics stake in the first fence 100, described total electronics stake 300 needs the content by described second status information table to be written to described first status information table, the first status information table after being updated, the content of described first status information table is written to described second status information table, the second status information table after being updated.
Then again the first status information table after described renewal is sent another electronics stake being adjacent to described first fence 100, the second status information table after described renewal is sent another electronics stake being adjacent to described second fence 200.
Receive the electronics stake of described first status information table or the second status information table, for respective status information and warning message being write in corresponding status information table, and the first status information table of write information or the second status information table are transferred to according to pre-defined rule the electronics stake being adjacent.
As a kind of embodiment, when after the gateway being arranged to network insertion in arbitrary electronics stake, the electronics stake arranging gateway can by this gateway and background server communication, the status information table that this electronics staking receives is uploaded to server, be conducive to the management personnel of animal farm to get the duty of fence timely by server, and determine whether that domestic animal browses fence.
The electronic enclosure system that first embodiment of the invention provides, after the electronics stake of this intrasystem fence sets up wireless connections with adjacent electronics stake, after receiving the status information table that adjacent electronics stake state sends, the status information table being more newly received, and the status information table after renewal is passed to the mode of another adjacent electronics stake, make each electronics stake can store the status information of other electronics stakes, an electronics stake is conducive to the status information of all of electronics stake to be uploaded, make management personnel can get the status information of each electronics stake in time.
Second embodiment
Referring to Fig. 4-5, second embodiment of the invention provides a kind of electronic enclosure system, and described electronic enclosure system includes the fence 500 of edge contour Guan Bi, and described fence 500 includes the multiple electronics stakes being arranged in order. The edge contour of fence 500 can be the circle in the square or Fig. 5 in Fig. 4. The plurality of electronics stake is respectively arranged with the first radio communication device and is received by described first radio communication device and send data;
Current electronic stake, for receiving the status information table that the electronics stake being adjacent sends, described status information table carry described in the status information of an electronics stake that is adjacent and warning message; Update described status information table, the status information table after being updated; Status information table after renewal is sent to and is adjacent another electronics stake.
3rd embodiment
Refer to Fig. 6, embodiments provide a kind of data transmission method, it is applied to electronic enclosure system, described electronic enclosure system includes the first fence and second fence of edge contour Guan Bi, described first fence and the second fence include the multiple electronics stakes being arranged in order respectively, described first fence and described second fence have at least a total electronics stake, the plurality of electronics stake is respectively arranged with the first radio communication device and is received by described first radio communication device and send data, described method, including:
Step S310: described total electronics staking receives the first status information table that the electronics stake being adjacent in described first fence sends and the second status information table that the electronics stake being adjacent in described second fence sends.
It should be noted that the status information of electronics stake is for characterizing the duty of electronics stake. Each electronics stake is provided with the flag information for unique identification, then each electronics stake is when generating status information, can be written in status information by the flag information of electronics stake, for the status information of this electronics stake of unique identification. If when electronics stake detects the second radio communication device being smaller than predetermined threshold value, this electronics stake can generate and characterize the warning message the second radio communication device being smaller than predetermined threshold value being detected, and is written in status information by this warning message.
Each electronics stake can store the status information of each electronics stake by arranging the mode of memorizer, and this status information carries the identification information of electronics stake. If electronics stake generates when having warning message, this status information also carries warning message. This warning message is detected generating when being smaller than the threshold value preset of the second radio communication device that the domestic animal in the first fence or in the second fence wears and the first radio communication device by the first radio communication device of electronics stake.
As preferably, described total electronics stake is respectively to an electronics stake adjacent in described first fence, and an electronics stake adjacent in the second fence sends characterization information and receives successful feedback information.
Step S320: the content of described second status information table is written to described first status information table by described total electronics stake, the first status information table after being updated, the content of described first status information table is written to described second status information table, the second status information table after being updated.
Receive the first status information table and the second status information table when described total electronics staking after, in order to make the electronics stake in the first fence can obtain the status information of the electronics stake in the second fence, and make the electronics stake in the second fence can obtain the status information of the electronics stake in the first fence, described total electronics stake needs the content of described second status information table is written to described first status information table, and the content of described first status information table is written to described second status information table.
Such as, as Figure 7-9, Fig. 7 is the first status information table that described total electronics staking receives, Fig. 8 is the second status information table that described total electronics staking receives, field " num " represents the numbering of status information in the figure 7, field " add " flag information of electronics stake belonging to status information, the in figures 7 and 8 network address of the electronics stake that field " add " stores. Field " state " stores electronics stake duty, for instance when the value of field " state " is " normal ", represents this electronics stake normal operation, when the value of field " state " is " fault ", represents that this electronics stake is broken down.
After the status information in the second status information table is written to the first status information table by described total electronics stake, it is possible to obtain the first status information table after renewal as shown in Figure 9.
It should be noted that, when described total electronics stake is when receiving described first status information table, can by this first status information table cache in the memorizer of described total electronics stake, after this total electronics staking receives the second status information table, the first up-to-date status information table of buffer memory is obtained again from memorizer, the status information first status information table in up-to-date by this adds this second status information table to, the second status information table after being updated, then again the first status information table of buffer memory is deleted, save memory space. The principle updating the first status information table can also be such, repeats no more herein.
Step S330: the first status information table after described renewal is sent another electronics stake being adjacent to described first fence by described total electronics stake, sends, by the second status information table after described renewal, another electronics stake being adjacent to described second fence.
In the process arranging the first fence and the second fence, carrying out data transmission for the ease of electronics stake, all corresponding storage of each electronics stake has the network address of the adjacent electronics stake belonged to together in fence. Each electronics stake, when sending status information table, can send the network address of oneself simultaneously, is beneficial to the electronics stake receiving this status information table and the status information table after renewal is sent to the electronics stake belonging to the network address corresponding with this network address.
When electronics stake break down wireless carry out data communication time, the electronics stake broken down is found in time for the ease of management personnel, as preferably, when described total electronics stake is not received by the successful feedback information of reception that another electronics stake described in described first fence sends within the default time cycle, it is judged that another electronics stake described in described first fence is broken down; The status information broken down of another electronics stake described in characterizing in described first fence is written to the first status information table after described renewal.
When described total electronics stake is not received by the successful feedback information of reception that another electronics stake described in described second fence sends within the default time cycle, it is judged that another electronics stake described in described second fence is broken down;The status information broken down of another electronics stake described in characterizing in described second fence is written to the second status information table after described renewal.
Described total electronics stake judges when the adjacent electronics stake in the first fence is broken down, as preferably, the first status information table the first status information table after updating can be again passed to another electronics stake adjacent, so that still can transmit in the first fence. Second fence can also be such, repeats no more herein.
Step S340: receive the electronics stake of described first status information table or the second status information table and respective status information and warning message are write in corresponding status information table, and the first status information table of write information or the second status information table are transferred to according to pre-defined rule the electronics stake being adjacent.
As a kind of embodiment, described in receive the electronics stake of described first status information table or the second status information table, obtain the source network address of the electronics stake sending described first status information table or the second status information table; Search the network address correspondence table being stored in advance in described electronics stake, obtain the purpose network address corresponding with described source network address; First status information table of write information or the second status information table are sent to the adjacent electronics stake that the network address is the described purpose network address.
Such as, as shown in Figure 10, the status information table that electronics staking receives is that 38:BC:1A:C1:99:71 electronics stake sends by the network address, then network address 38:BC:1A:C1:99:71 is source network address. And corresponding storage network address 38:BC:1A:C1:99:71 and 38:BC:1A:C1:99:72 in the network address correspondence table in this electronics stake, after then status information table is updated by electronics stake, the status information table after updating is sent to the electronics stake belonging to the network address 38:BC:1A:C1:99:72 corresponding with network address 38:BC:1A:C1:99:71.
So that each electronics stake all can obtain the status information of other electronics stakes. As a kind of embodiment, after an electronics stake in the first fence or the second fence arranges gateway, the status information that the electronics stake of network can upload all electronics stakes of acquisition by this gateway is set.
The data transmission method that third embodiment of the invention provides, after the electronics stake of this intrasystem fence sets up wireless connections with adjacent electronics stake, after receiving the status information table that adjacent electronics stake state sends, the status information table being more newly received, and the status information table after renewal is passed to the mode of another adjacent electronics stake, make each electronics stake can store the status information of other electronics stakes, an electronics stake is conducive to the status information of all of electronics stake to be uploaded, make management personnel can get the status information of each electronics stake in time.
4th embodiment
Refer to Figure 11, fourth embodiment of the invention provides a kind of data transmission method, it is applied to electronic enclosure system, described electronic enclosure system includes the fence of edge contour Guan Bi, described fence includes the multiple electronics stakes being arranged in order, the plurality of electronics stake is respectively arranged with the first radio communication device and is received by described first radio communication device and transmission data, described method, including:
Step S410: Current electronic staking receives the status information table that the electronics stake being adjacent sends, described status information table carry described in the status information of an electronics stake that is adjacent and warning message.
Step S420: Current electronic stake updates described status information table, the status information table after being updated.
In the process of electronics stake more new state information table, the status information whether having described Current electronic stake in described status information table is checked in Current electronic stake; If nothing, the status information of Current electronic stake is written to described status information table by described Current electronic stake; If having, the status information of Current electronic stake described in described status information table is replaced with current status information by Current electronic stake.
Step S430: the status information table after renewal is sent to and is adjacent another electronics stake by Current electronic stake.
In order to make status information table can carry the status information of each electronics stake, in electricity stake, the status information table after updating is sent to and is adjacent another electronics stake.
After Current electronic stake sends the status information table after updating, for the ease of Current electronic stake judge in time adjacent next electronics stake whether be successfully received renewal after status information table, as preferably, Current electronic stake be not received by within the default time cycle described in when being adjacent the successful feedback information of reception that another electronics stake sends, it is judged that described in be adjacent another electronics stake and break down; It is adjacent the status information table after the status information that another electronics stake breaks down is written to described renewal described in characterizing.
Being undertaken uploading collecting by status information table for the ease of electronics stake, described electronic enclosure system also includes server, and described Current electronic stake is additionally provided with processor and the second radio communication device. Described status information table is passed to described processor by Current electronic stake, so that described status information table is sent to described server by described second radio communication device by described processor.
It should be noted that as preferably, when electronics stake can carry the status information of all electronics stakes in status information table being detected, carry out uploading of status information table again through the second radio communication device. As a kind of mode, the quantity of the electronics stake in fence can be preset, when the bar number that electronics stake detects the status information not having repetition in status information table is identical with the quantity of electronics stake, and judge the status information carrying all electronics stakes in status information table.
It should be noted that the present embodiment and previous embodiment similar portion, it is possible to directly with reference to the corresponding content of previous embodiment, the present embodiment is not repeating.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to realize by another way. Device embodiment described above is merely schematic, for instance, flow chart and block diagram in accompanying drawing show according to the device of multiple embodiments of the present invention, the architectural framework in the cards of method and computer program product, function and operation. In this, flow chart or each square frame in block diagram can represent a part for a module, program segment or code, and a part for described module, program segment or code comprises the executable instruction of one or more logic function for realizing regulation. It should also be noted that at some as in the implementation replaced, the function marked in square frame can also to be different from the order generation marked in accompanying drawing. Such as, two continuous print square frames can essentially perform substantially in parallel, and they can also perform sometimes in the opposite order, and this determines according to involved function. It will also be noted that, the combination of the square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart, can realize by the special hardware based system of the function or action that perform regulation, or can realize with the combination of specialized hardware Yu computer instruction.
It addition, each functional module in each embodiment of the present invention can integrate one independent part of formation, it is also possible to be modules individualism, it is also possible to the integrally formed independent part of two or more modules.
If described function is using the form realization of software function module and as independent production marketing or use, it is possible to be stored in a computer read/write memory medium. Based on such understanding, part or the part of this technical scheme that prior art is contributed by technical scheme substantially in other words can embody with the form of software product, this computer software product is stored in a storage medium, including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention. And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-OnlyMemory), the various media that can store program code such as random access memory (RAM, RandomAccessMemory), magnetic disc or CD. It should be noted that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially. And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment. When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations. All within the spirit and principles in the present invention, any amendment of making, equivalent replacement, improvement etc., should be included within protection scope of the present invention. It should also be noted that similar label and letter below figure represent similar terms, therefore, once a certain Xiang Yi accompanying drawing is defined, then it need not be carried out definition further and explain in accompanying drawing subsequently.
The above; being only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; change can be readily occurred in or replace, all should be encompassed within protection scope of the present invention. Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.