CN105634758A - Single-triggered self-holding data acquisition method of local area network - Google Patents
Single-triggered self-holding data acquisition method of local area network Download PDFInfo
- Publication number
- CN105634758A CN105634758A CN201510997411.7A CN201510997411A CN105634758A CN 105634758 A CN105634758 A CN 105634758A CN 201510997411 A CN201510997411 A CN 201510997411A CN 105634758 A CN105634758 A CN 105634758A
- Authority
- CN
- China
- Prior art keywords
- address
- communication frame
- machine
- local area
- area network
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1881—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with schedule organisation, e.g. priority, sequence management
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Small-Scale Networks (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
Abstract
The invention discloses a single-triggered self-holding data acquisition method of a local area network. The method comprises the following steps that a host broadcasts a communication frame and then enters the receiving state; the state of each slave is converted into the transmitting state from the receiving state in turn according to the address field in the received communication frame of the slave, the data field and the address field of the communication frame are processed and then the processed communication frame is broadcasted; when one or multiple slaves in the local area network fail to work and cannot continuously transmit the communication frame, other normal slaves can discover communication faults and transmit the communication frame without intervention of the host; and the host receives the communication frame in turn and saves the effective data in the communication frame so as to complete data acquisition of the local area network. Least hops and least time of transmission of the communication frame can be guaranteed so that data transmission efficiency of the network can be enhanced and power consumption of the network can be reduced.
Description
Technical field
The present invention relates to local area network technology, the list especially relating to a kind of local area network triggers self-sustaining collecting method.
Background technology
In order to realize the collection of take off data, in measure field, usually have a main frame and some slave machines local area network. Main frame timing collect in local area network from machine data, then upload the data to Surveillance center. Due to the remote area of some local area network, it does not have external power is powered, it is necessary to adopt powered battery, and battery altering is very inconvenient. So local area network must meet the requirement of low-power consumption, to realize powered battery, and meet the requirement that need not change battery for a long time. In order to meet this requirement, local area network is when image data, it is necessary to reduce call duration time, promotes communication efficiency. But in order to prevent communication contention aware, the same moment in a local area network must can only have again an equipment to be in transmission state.
In order to realize above-mentioned purpose, the simplest one method is that in local area network, main frame and Ge Tai take one to ask a mode answered from machine, successively collects each the data from machine. If having n platform in local area network from machine, that main frame and will carry out the communication of 2n time between machine, efficiency is lower. For this problem, document " the wireless sensor networking technical study in conjunction with GPRS " proposes one and improves one's methods, and main frame carries out the timing of different lengths respectively after sending the order collecting data from machine according to the address number of oneself. After timing time arrives, respectively to main frame uploading data. This kind of method main frame only needs to send the order once collecting data, also can ensure can not mutually conflict from during machine uploading data simultaneously. But in order to retain certain surplus, two of adjacent uploading data have certain unnecessary waiting time between machine. In this way also has further room for promotion.
Summary of the invention
It is an object of the invention to provide the list of a kind of local area network and trigger self-sustaining collecting method, improve the data acquisition efficiency of local area network on the basis of existing technology further, reduce call duration time, thus reduce the power consumption of local area network.
In order to reach above-mentioned purpose, the technical solution adopted in the present invention is:
Local area network comprises main frame and more than two, and from machine, every platform has a unique address from machine, and main frame and every platform communicate in a broadcast manner between machine, and main frame needs to gather the data of every platform from machine; The method comprises the steps:
A), after host broadcast communication frame, reception state is entered;
B) every platform is transmission state by reception State Transferring from machine according to the territory, address its communication frame received successively, to data field and the process of territory, address of communication frame, then is broadcasted away by the communication frame after process;
C) when one or more in local area network breaks down from machine, cause being continued by communication frame transmission when going down, other normal from machine when not having main frame to intervene, it is possible to find communication fault, and communication frame transmission gone down;
D) main frame receives communication frame successively, is preserved by the valid data in communication frame, completes the data gathering of local area network.
Described step a) in, communication frame comprises order code, data field and territory, address, and order representation needs the content of uploading data from machine; Communication frame data field is filled with 00, and the address from machine also needing to collect data is deposited in territory, address.
At described step b) in, every platform compares from the territory, address of the communication frame that their address and they are received by machine; If the territory, address of the communication frame that they receive does not comprise the address of self, then should stop timing from machine, enter reception state.
At described step b) in, every platform compares from the territory, address of the communication frame that their address and they are received by machine; If the territory, address of the communication frame that they receive comprises the address of self; So, if the Yu Shou address, address of communication frame should be from the address of machine, from machine according to Self address in the position communicated frame address field, carry out the timing of corresponding unit time.
It is the Yu Shou address, address of communication frame from the address of machine if described, then from machine, the data of self are inserted the data field of communication frame, the Yu Shou address, address of communication frame is removed simultaneously, address space left moves forward one successively, last position, territory, address of communication frame is filled with 00, the communication frame after being processed; Enter transmission state from machine, and the communication frame after process is broadcasted away.
At described step c) in, if normal from machine timing time to rear, it does not have receive the communication frame of address headed by this slave addresses, territory, address, so normally judge that local area network breaks down from machine; The data of self are inserted the data field of the communication frame of reception recently, all addresses before territory, the address Self address of communication frame is removed, and address space left is moved forward successively, until the first of Self address address is positioned at Yu Shou address, address; Obtain new communication frame, normally enter transmission state from machine, and new communication frame is broadcasted away.
The useful effect that the present invention has is:
In the present invention, the order that a communication frame sends uploading data first broadcasted by main frame, from machine, data is inserted communication frame, is broadcasted away by communication frame, notifies next uploading data from machine needing uploading data while uploading data. When certain from machine generation fault, cannot broadcast communication frame time, when not having main frame to intervene, follow-up according to the timing of oneself, communication fault can be judged, goes down from chief commander's communication frame travels back from machine normally. Thus, main frame only needs to send the order of a uploading data, and just can seamless link from machine uploading data, it does not have the time of any unnecessary wait. Communication efficiency is brought up to optimum value.
Collecting method according to the present invention, under normal circumstances, main frame only needs to send a reading order, all just can seamless link uploading data in succession from machine. If some is from machine generation fault, causes communication frame to be propagated and interrupt, by other normally from the timing of machine, it is possible to automatically recover the propagation of communication frame. In sum, the present invention can ensure that communication frame transmits fewest number of hops and minimum time, it is to increase the data transmission efficiency of network.
Accompanying drawing explanation
Fig. 1 is the basic structure of the communication frame of the present invention.
Fig. 2-1 be the embodiment of the present invention 1 local area network in the first form of broadcast communication.
Fig. 2-2 be the embodiment of the present invention 1 local area network in the 2nd kind of form of broadcast communication.
Fig. 2-3 be the embodiment of the present invention 1 local area network in the third form of broadcast communication.
Fig. 2-4 be the embodiment of the present invention 1 local area network in the 4th kind of form of broadcast communication.
Fig. 3-1 is the first content of communication frame of the embodiment of the present invention 1.
Fig. 3-2 is communication frame the 2nd kind of content of the embodiment of the present invention 1.
Fig. 3-3 is the third content of communication frame of the embodiment of the present invention 1.
Fig. 3-4 is communication frame the 4th kind of content of the embodiment of the present invention 1.
Fig. 4 be the embodiment of the present invention 2 local area network in a kind of form of breaking down of broadcast communication.
Embodiment
Below in conjunction with drawings and Examples, the present invention is further illustrated.
Fig. 1 shows the basic structure of the signal frame that local area network uses. Signal frame of the present invention comprises CMD, DATA and ADDR. CMD is order code, defines the content respectively needing to fill to data field communication frame from machine. DATA is data field, deposits the data uploaded from machine to main frame. ADDR is territory, address, deposits the address from machine needed to main frame uploading data.
Local area network comprises main frame and more than two, and from machine, every platform has a unique address from machine, and main frame and every platform communicate in a broadcast manner between machine, and main frame needs to gather the data of every platform from machine; The method comprises the steps:
A), after host broadcast communication frame, reception state is entered;
B) every platform is transmission state by reception State Transferring from machine according to the territory, address its communication frame received successively, to data field and the process of territory, address of communication frame, then is broadcasted away by the communication frame after process;
C) when one or more in local area network breaks down from machine, cause being continued by communication frame transmission when going down, other normal from machine when not having main frame to intervene, it is possible to find communication fault, and communication frame transmission gone down;
D) main frame receives communication frame successively, is preserved by the valid data in communication frame, completes the data gathering of local area network.
Embodiment 1
Now carry out communicating from machine for a main frame with four:
In Fig. 2-1 ~ Fig. 2-4, device A is main frame, equipment B, C, D and E be four from machine, their address is 01,02,03 and 04 respectively. A and B, the mode of broadcast between C, D, E, is adopted to communicate. First main frame A broadcasts Article 1 communication frame, as shown in Fig. 2-1.
Main frame A broadcasts Article 1 communication frame content as shown in figure 3-1, receives this communication frame from machine B, C, D and E simultaneously. Being compared with first address the ADDR of territory, address the address of oneself separately from machine B, C, D with E, C, D and E find inequal, carry out the timing of 1 time unit, 2 unit time and 3 unit time respectively; B finds equal, according to the requirement of order code CMD, the data requiring to upload is inserted in data field DATA, addresses all in territory, address are moved forward one, and first place abandons, and position, end is filled with 00, obtains new communication frame, as shown in figure 3-2. This communication frame is broadcasted away, as shown in Fig. 2-2.
Main frame A and receive communication frame from machine C, D and E, the data in communication frame data field are extracted by main frame A, and the slave addresses obtaining sending communication frame according to the content in territory, address is 01. Slave addresses 01 and corresponding data are stored by main frame A. Being compared with first address the ADDR of territory, address the address of oneself separately from machine C, D with E, D and E finds inequal, carries out 1 time unit and the timing of 2 unit time respectively; C finds equal, according to the requirement of order code CMD, the data requiring to upload is inserted in data field DATA, addresses all in territory, address are moved forward one, and first place abandons, and position, end is filled with 00, obtains new communication frame, as shown in Fig. 3-3. This communication frame is broadcasted away, as Figure 2-3.
Main frame A and receive communication frame from machine B, D and E, the data in communication frame data field are extracted by main frame A, and the slave addresses obtaining sending communication frame according to the content in territory, address is 02. Slave addresses 02 and corresponding data are stored by main frame A. Being compared with first address the ADDR of territory, address in the address of oneself separately with E from machine B, D, from the address that machine B does not find oneself territory, address, so being left intact, and closing timing register. Find inequal from machine E, carry out 1 time unit's timing; Finding equal from machine D, according to the requirement of order code CMD, the data requiring to upload inserted in data field DATA, addresses all in territory, address are moved forward one, first place abandons, and position, end is filled with 00, obtains new communication frame, as shown in Figure 3-4. This communication frame is broadcasted away, as in Figure 2-4. Follow-up step is analogized successively, and final whole local area network upload the data to main frame from machine.
Embodiment 2
Based on embodiment 1, if because certain fault, communication frame is not sent out from machine C, as shown in Figure 4. After machine B broadcast communication frame, as shown in Fig. 2-2, have received communication frame as shown in figure 3-2 from machine D, start the timing of 1 unit time from machine D. After timing time arrives, still do not receive the communication frame shown in Fig. 3-3 from machine D. So, from machine D according to the requirement of order code CMD, the data that will upload are inserted in data field DATA, all addresses in territory, address are moved forward 2, starts 2 most and abandon, and two use 00 in end are filled, and obtain new communication frame, as shown in Figure 3-4. This communication frame is broadcasted away, as in Figure 2-4. Follow-up step is analogized with this, final whole local area network from machine by all data upload to main frame.
Above-mentioned embodiment is used for explaining explanation the present invention; instead of limit the invention; in the spirit of the present invention and the protection domain of claim; those of ordinary skill in the art are under the prerequisite not making creative work; any amendment the present invention made and change, all fall into protection scope of the present invention.
Claims (6)
1. the list of a local area network triggers self-sustaining collecting method, it is characterized in that: local area network comprises main frame and more than two from machine, every platform has a unique address from machine, and main frame and every platform communicate in a broadcast manner between machine, and main frame needs to gather the data of every platform from machine; The method comprises the steps:
A), after host broadcast communication frame, reception state is entered;
B) every platform is transmission state by reception State Transferring from machine according to the territory, address its communication frame received successively, to data field and the process of territory, address of communication frame, then is broadcasted away by the communication frame after process;
C) when one or more in local area network breaks down from machine, cause being continued by communication frame transmission when going down, other normal from machine when not having main frame to intervene, it is possible to find communication fault, and communication frame transmission gone down;
D) main frame receives communication frame successively, is preserved by the valid data in communication frame, completes the data gathering of local area network.
2. a kind of local area network according to claim 1 list trigger self-sustaining collecting method, it is characterised in that: described step a) in, communication frame comprises order code, data field and territory, address, and order representation needs the content of uploading data from machine; Communication frame data field is filled with 00, and the address from machine also needing to collect data is deposited in territory, address.
3. the list of a kind of local area network according to claim 1 triggers self-sustaining collecting method, it is characterised in that: at described step b) in, every platform compares from the territory, address of the communication frame that their address and they are received by machine; If the territory, address of the communication frame that they receive does not comprise the address of self, then should stop timing from machine, enter reception state.
4. the list of a kind of local area network according to claim 1 triggers self-sustaining collecting method, it is characterised in that: at described step b) in, every platform compares from the territory, address of the communication frame that their address and they are received by machine; If the territory, address of the communication frame that they receive comprises the address of self; So, if the Yu Shou address, address of communication frame should be from the address of machine, from machine according to Self address in the position communicated frame address field, carry out the timing of corresponding unit time.
5. the list of a kind of local area network according to claim 4 triggers self-sustaining collecting method, it is characterized in that: be the Yu Shou address, address of communication frame from the address of machine if described, then from machine, the data of self are inserted the data field of communication frame, the Yu Shou address, address of communication frame is removed simultaneously, address space left moves forward one successively, last position, territory, address of communication frame is filled with 00, the communication frame after being processed; Enter transmission state from machine, and the communication frame after process is broadcasted away.
6. the list of a kind of local area network according to claim 1 or 4 triggers self-sustaining collecting method, it is characterized in that: at described step c) in, if it is normal from machine timing time to rear, do not receive the communication frame of address headed by this slave addresses, territory, address, so normally judge that local area network breaks down from machine; The data of self are inserted the data field of the communication frame of reception recently, all addresses before territory, the address Self address of communication frame is removed, and address space left is moved forward successively, until the first of Self address address is positioned at Yu Shou address, address; Obtain new communication frame, normally enter transmission state from machine, and new communication frame is broadcasted away.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510997411.7A CN105634758A (en) | 2015-12-26 | 2015-12-26 | Single-triggered self-holding data acquisition method of local area network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510997411.7A CN105634758A (en) | 2015-12-26 | 2015-12-26 | Single-triggered self-holding data acquisition method of local area network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105634758A true CN105634758A (en) | 2016-06-01 |
Family
ID=56049312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510997411.7A Pending CN105634758A (en) | 2015-12-26 | 2015-12-26 | Single-triggered self-holding data acquisition method of local area network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105634758A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107181628A (en) * | 2017-07-20 | 2017-09-19 | 杭州老板电器股份有限公司 | Two-way wireless communication method, device and terminal |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030043771A1 (en) * | 1997-08-07 | 2003-03-06 | Akihiko Mizutani | Connection establishment method, communication method, state change transmission method, state changing method wireless apparatus, wireless device, and computer |
CN101938518A (en) * | 2010-09-03 | 2011-01-05 | 上海大学 | Data link layer protocol of low voltage power line spread-frequency communication |
CN103716294A (en) * | 2012-10-25 | 2014-04-09 | 上海大学 | Low voltage power line spread spectrum communication protocol based on random address time scale |
CN104410557A (en) * | 2014-12-25 | 2015-03-11 | 深圳中科讯联科技有限公司 | Dynamic networking method and communication method based on RS-485 |
CN104753747A (en) * | 2014-12-31 | 2015-07-01 | 北京海尔广科数字技术有限公司 | Gateway and device connecting method and device and gateway device |
-
2015
- 2015-12-26 CN CN201510997411.7A patent/CN105634758A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030043771A1 (en) * | 1997-08-07 | 2003-03-06 | Akihiko Mizutani | Connection establishment method, communication method, state change transmission method, state changing method wireless apparatus, wireless device, and computer |
CN101938518A (en) * | 2010-09-03 | 2011-01-05 | 上海大学 | Data link layer protocol of low voltage power line spread-frequency communication |
CN103716294A (en) * | 2012-10-25 | 2014-04-09 | 上海大学 | Low voltage power line spread spectrum communication protocol based on random address time scale |
CN104410557A (en) * | 2014-12-25 | 2015-03-11 | 深圳中科讯联科技有限公司 | Dynamic networking method and communication method based on RS-485 |
CN104753747A (en) * | 2014-12-31 | 2015-07-01 | 北京海尔广科数字技术有限公司 | Gateway and device connecting method and device and gateway device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107181628A (en) * | 2017-07-20 | 2017-09-19 | 杭州老板电器股份有限公司 | Two-way wireless communication method, device and terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104219744B (en) | BLE distribution of net system and method | |
CN107148069A (en) | The MANET and low power consumption data of a kind of tree-shaped sensor network collect method | |
JP2008501263A5 (en) | ||
JP2010518728A (en) | Beacon slot allocation method using a beacon table in a wireless personal communication network (WPAN) and a WPAN device | |
US9674780B2 (en) | Data transmitting/receiving method | |
US9699726B2 (en) | Data-transmitting/receiving method for effectively suppressing power consumption | |
CN102883466A (en) | Data dissemination method in wireless sensor network | |
CN108848199A (en) | A kind of peer-to-peer network automatic seeking main system and method | |
CN110062433A (en) | A kind of LoRa recurrent network of low-power consumption | |
RU2009111896A (en) | COMMUNICATION STATION, COMMUNICATION METHOD, MACHINE READABLE MEDIA AND COMMUNICATION SYSTEM | |
CN103051359B (en) | Method for binding slave nodes with master nodes and unit transformer power supply area distinguishing method | |
CN103209467A (en) | Method and device for accessing to multiple ZigBee networks | |
CN104918339A (en) | Wireless sensor network communication control method and device | |
JP5721524B2 (en) | Node device, wireless network system, and backup method | |
CN105634758A (en) | Single-triggered self-holding data acquisition method of local area network | |
WO2008123509A1 (en) | Communication system, handover method, communication device, and communication program | |
CN109360397A (en) | The system that method, data dispatching method and the multilist collection that multilist collection is copied are copied | |
CN102065508A (en) | Wireless bridge forwarding equipment and method | |
CN107071873B (en) | Coordinator of tree sensor network ad hoc network | |
CN102420766B (en) | Routing determination method and routing device | |
CN104574897A (en) | Wireless vibration test system and vibration test method thereof | |
CN104813716A (en) | Method for transmitting and receiving data | |
CN104066144B (en) | A kind of priority retransmission method based on number of path | |
CN201387666Y (en) | Traffic control system with master/slave computer collision detection | |
CN102917467B (en) | Asynchronous reservation channel access method of wireless sensor network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160601 |
|
WD01 | Invention patent application deemed withdrawn after publication |