CN103347277A - Device and method for generating wireless sensor network node log - Google Patents

Device and method for generating wireless sensor network node log Download PDF

Info

Publication number
CN103347277A
CN103347277A CN2013102431727A CN201310243172A CN103347277A CN 103347277 A CN103347277 A CN 103347277A CN 2013102431727 A CN2013102431727 A CN 2013102431727A CN 201310243172 A CN201310243172 A CN 201310243172A CN 103347277 A CN103347277 A CN 103347277A
Authority
CN
China
Prior art keywords
node log
node
log
order
wireless sensor
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.)
Granted
Application number
CN2013102431727A
Other languages
Chinese (zh)
Other versions
CN103347277B (en
Inventor
连朔
赵季中
何源
吴晓培
曹志超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WUXI QINGHUA INFORMATION SCIENCE AND TECHNOLOGY NATIONAL LABORATORY INTERNET OF THINGS TECHNOLOGY CENTER
Original Assignee
WUXI QINGHUA INFORMATION SCIENCE AND TECHNOLOGY NATIONAL LABORATORY INTERNET OF THINGS TECHNOLOGY CENTER
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by WUXI QINGHUA INFORMATION SCIENCE AND TECHNOLOGY NATIONAL LABORATORY INTERNET OF THINGS TECHNOLOGY CENTER filed Critical WUXI QINGHUA INFORMATION SCIENCE AND TECHNOLOGY NATIONAL LABORATORY INTERNET OF THINGS TECHNOLOGY CENTER
Priority to CN201310243172.7A priority Critical patent/CN103347277B/en
Publication of CN103347277A publication Critical patent/CN103347277A/en
Application granted granted Critical
Publication of CN103347277B publication Critical patent/CN103347277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a device for generating a wireless sensor network node log. The device comprises a user side and at least one wireless sensor node. The user side is used for sending an order generating the node log. The wireless sensor node is used for receiving the order generating the node log, generating the node log and sending the node log to the user side. The invention further discloses a method for generating the wireless sensor network node log. According to the device and the method for generating the wireless sensor network node log, the node log can be recorded fast on the basis of not influencing program run.

Description

A kind of device and method that generates the wireless sensor network node daily record
Technical field
The present invention relates to the wireless sensor network technology field, relate in particular to a kind of device and method that generates the wireless sensor network node daily record.
Background technology
Wireless sensor network combines sensor technology, embedded computing technique, distributed information processing, the communication technology and electrical micro-machine technology, is widely used at military affairs, industry, medical treatment, traffic, environmental technology field.Wireless sensor network is the ad hoc network system of a multi-hop being formed by communication by a large amount of wireless sensor nodes that are deployed in the monitored area, its objective is the information of the interior monitored target of perception, collection and processing network's coverage area of cooperation, for example: temperature, humidity, intensity of illumination and gas concentration lwevel, and send to the user.
Log mechanism records above-mentioned information and recalls, and system mode is caught, and guarantees the variety of event that runs into the function of back-up system and reply.
In the prior art, the technology that daily record point is set can be being sent to corresponding node by the daily record order by network, and revise the mirror image piece according to the daily record order.The technology that daily record point is set has changed the restriction that is loaded the daily record rule in the node, make that the variable in network can be according to keeper's requirement in the correct time, be recorded under the correct condition, and do not need to regain node and fire the node procedure that has loaded the daily record order again.
But, can not record node log on the basis of not influence program operation in the prior art.
Summary of the invention
In view of this, the present invention proposes a kind of device and method that generates the wireless sensor network node daily record, to realize and on the basis of not influence program operation, to find the program block that need be set up daily record point position fast, the daily record point is set, the purpose of record node log.
For reaching this purpose, the present invention by the following technical solutions:
A kind of device that generates the wireless sensor network node daily record comprises:
User side and at least one wireless sensor node;
User side is used for sending the order of generation node log;
Wireless sensor node is used for receiving the order of generation node log, generates node log, to the daily record of user side sending node.
Preferably, user side comprises:
User interface be used for to receive the operational order of user's input, and operational order comprises row number and generates the condition of node log, and the node log that receives, and node log is fed back to the user;
The order maker is used for according to row number, obtains the absolute address` number corresponding with row, and generates the node log order, generates the node log order and comprises row number, absolute address` and generate the condition of node log;
Communication module is used for generating the node log order and sends to wireless sensor node.
Preferably, wireless sensor node comprises:
Receiver module is used for receiving the order of generation node log;
The journaling agent device is used for obtaining the variable in the wireless sensor node in real time according to generating the node log order, generates node log;
Sending module is used for to the daily record of user side sending node.
Preferably, the journaling agent device comprises:
Interpreter be used for to explain generates the node log order, obtains row number, with number corresponding absolute address` of row with generate the condition of node log;
Memory module is used for when variable satisfies the condition that generates node log, and record variable generates node log;
Program redirect module is used for behind memory module generation node log, makes wireless sensor node continue operation and receives the node log order program before that generates.
A kind of method that generates the wireless sensor network node daily record is characterized in that, comprising:
User side sends and generates the node log order;
At least one wireless sensor node receives and generates the node log order, generates node log, to the daily record of user side sending node.
Preferably, user side sends and generates the node log order, comprising:
Receive the operational order of user's input, operational order comprises row number and generates the condition of node log, and the node log that receives, and node log is fed back to the user;
According to row number, obtain the absolute address` number corresponding with row, and generate the node log order, generate the node log order and comprise, row number, absolute address` and generate the condition of node log;
To generate the node log order and send to wireless sensor node.
Preferably, wireless sensor node receives and generates the node log order, generates node log, comprising:
Receive and generate the node log order;
According to generating the node log order, obtain the variable in the wireless sensor node in real time, generate node log.
Preferably, according to generating the node log order, obtain the variable in the wireless sensor node in real time, generate node log, comprising:
Explain to generate the node log order, obtain row number, with number corresponding absolute address` of row with generate the condition of node log;
When variable satisfied the condition that generates node log, record variable generated node log;
Behind memory module generation node log, make wireless sensor node continue operation and receive the node log order program before that generates.
As can be seen from the above technical solutions, the invention provides a kind of device and method that generates the wireless sensor network node daily record, comprising: user side and at least one wireless sensor node; User side is used for sending the order of generation node log; Wireless sensor node is used for receiving the order of generation node log, generates node log.Can be on the basis of not influence program operation the fast recording node log.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is embodiments of the invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to the accompanying drawing that provides.
Fig. 1 is a kind of apparatus structure schematic diagram that generates the wireless sensor network node daily record that the embodiment of the invention one provides;
Fig. 2 is a kind of apparatus structure schematic diagram that generates the wireless sensor network node daily record that the embodiment of the invention one provides;
Fig. 3 is the journaling agent modular structure schematic diagram that the embodiment of the invention one provides;
Fig. 4 is a kind of method flow schematic diagram that generates the wireless sensor network node daily record that the embodiment of the invention two provides;
Fig. 5 is that the user side that the embodiment of the invention two provides sends generation node log order schematic flow sheet;
Fig. 6 is that the wireless sensor node that the embodiment of the invention two provides receives the order of generation node log, generates the node log schematic flow sheet;
Fig. 7 be the embodiment of the invention two provide obtain variable in the wireless sensor node in real time, according to generating the node log order, generate the node log schematic flow sheet.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Embodiment one
The embodiment of the invention one discloses a kind of device that generates the wireless sensor network node daily record, comprising:
As shown in Figure 1, user side 1 and at least one wireless sensor node 2.
What need describe is, the wireless sensor node quantity in the monitored area is more many, and the node log that wireless senser generates more can accurately react the information of monitored target, for example, and temperature, humidity, intensity of illumination and gas concentration lwevel.
As shown in Figure 2, user side 1 is used for sending the order of generation node log;
Wireless sensor node 2 is used for receiving the order of generation node log, generates node log, to the daily record of user side sending node.
Wherein, user side 1 can be MCU(Micro Control Unit, single-chip microcomputer) or PC(personal computer, personal computer).
Wherein, user side 1 comprises:
User interface 11 receives the operational order of user's input, and operational order comprises row number and generates the condition of node log, and the node log that receives, and node log is fed back to the user.
Need to prove that in the embodiment of the invention one, row number is the row of the program source code that moves in the wireless sensor node number.
Wherein, the row in the operational order number and the condition that generates node log can be set flexibly with user's demand, can the fast recording node log thereby realize.
When user side 1 was PC, the user can pass through mouse, and keyboard, touch-screen or USB interface are imported user side 1 with operational order.
Order maker 12 is used for according to row number, obtains the absolute address` number corresponding with row, and generates the node log order, generates the node log order and comprises, row number, absolute address` and generate the condition of node log.
Wherein, capable number is ID, and absolute value is log address, and the condition that generates node log is var; Generate the node order and be<ID log address, var 〉.
Communication module 13 is used for generating the node log order and sends to wireless sensor node 2.Wherein, wireless sensor node 2 comprises:
Receiver module 21 is used for receiving the order of generation node log;
Journaling agent device 22 is used for obtaining the variable in the wireless sensor node in real time according to generating the node log order, generates node log.
Sending module 23 is used for to user side 1 sending node daily record.
What need describe is that journaling agent device 22 as shown in Figure 2, comprising:
Interpreter 221 be used for to explain generates the node log order, obtains row number, with number corresponding absolute address` of row with generate the condition of node log.
What need describe is, when being provided with variable threshold in the condition that generates node log, variable and variable threshold compare, the pass of variable and threshold value be greater than, less than, equal, more than or equal to and smaller or equal in any one, the user is by user interface 11, to the relation of user side 1 input variable and threshold value.
Certainly the condition that generates node log also can not arrange variable threshold, then records the variable that obtains in real time, generates node log.
For example, explanation generates the node log order, obtains capable number to be: 12, and the absolute address` corresponding with capable number is 0x3333, variable threshold is 16.
Memory module 222 is used for when variable satisfies the condition that generates node log, and record variable generates node log.
For example, variable is 0x1300, when 0x1300 greater than 16 the time, record 0x1300.
Program redirect module 223 is used for behind memory module generation node log, makes wireless sensor node continue operation and receives the node log order program before that generates.
What need describe is that when the receiver module 21 of wireless sensor node 2 received the order of generation node log, the context of the program that preservation is moving obtained variable in real time, generates node log.After generating node log, wireless sensor node 2 continues the program context that operation is preserved, thereby can record node log on the basis of not influence program operation.
By the embodiment of the invention one disclosed a kind of device that generates the wireless sensor network node daily record, can generate node log fast on the one hand, do not disturb the present procedure that just in wireless sensor node, is moving on the other hand, thereby can record node log on the basis of not influence program operation.
Embodiment two
The embodiment of the invention one discloses a kind of device that generates the wireless sensor network node daily record, and is corresponding with it, and the embodiment of the invention two discloses a kind of method that generates the wireless sensor network node daily record, as shown in Figure 3, comprising:
Step S21, user side send and generate the node log order.
Step S22, at least one wireless sensor node receive and generate the node log order, generate node log, to the daily record of user side sending node.
In the embodiment of the invention two step S21, user side sends and generates the node log order, comprising:
Step S211 receives the operational order of user's input, and the operational order operational order comprises row number and generates the condition of node log, and the node log that receives, and node log is fed back to the user;
Step S212 according to row number, obtains the absolute address` number corresponding with row, and generates the node log order, generates the node log order and comprises, row number, absolute address` and generate the condition of node log;
Step S213 will generate the node log order and send to wireless sensor node.
In the embodiment of the invention two step S22, wireless sensor node receives and generates the node log order, generates node log, comprising:
Step S221 receives and generates the node log order;
Step S222 according to generating the node log order, obtains the variable in the wireless sensor node in real time, generates node log.
In the step S222 of the embodiment of the invention two, according to generating the node log order, obtain the variable in the wireless sensor node in real time, generate node log, comprising:
Step S2221 explain to generate the node log order, obtains row number, with number corresponding absolute address` of row with generate the condition of node log;
Step S2222, when variable satisfied the condition that generates node log, record variable generated node log;
Step S2223 behind memory module generation node log, makes wireless sensor node continue operation and receives the node log order program before that generates.
In the embodiment of the invention two, when the receiver module of wireless sensor node receives the order of generation node log, preserve the context of the program of moving, generate node log, when after the daily record of user side sending node, continue the program context that operation is preserved, thereby can record node log on the basis of not influence program operation.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can realize with the executable program code of computer installation, carried out by calculation element thereby they can be stored in the storage device, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to the combination of any specific hardware and software.
Be the preferred embodiments of the present invention only below, be not limited to the present invention, to those skilled in the art, the present invention can have various changes and variation.All any modifications of within spirit of the present invention and principle, doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a device that generates the wireless sensor network node daily record is characterized in that, comprising:
User side and at least one wireless sensor node;
Described user side is used for sending the order of generation node log;
Described wireless sensor node is used for receiving the order of described generation node log, generates node log, sends described node log to described user side.
2. according to the device of claim 1, it is characterized in that described user side comprises:
User interface be used for to receive the operational order of user's input, and described operational order comprises row number and generates the condition of node log, and the described node log that receives, and described node log is fed back to described user;
The order maker is used for according to described row number, obtains the absolute address` number corresponding with described row, and generates the order of described generation node log, and the order of described generation node log comprises described row number, the condition of described absolute address` and described generation node log;
Communication module is used for the order of described generation node log is sent to described wireless sensor node.
3. according to the device of claim 1, it is characterized in that described wireless sensor node comprises:
Receiver module is used for receiving the order of described generation node log;
The journaling agent device is used for obtaining the variable in the described wireless sensor node in real time according to the order of described generation node log, generates described node log;
Sending module is used for sending described node log to described user side.
4. according to the device of claim 3, it is characterized in that described journaling agent device comprises:
Interpreter be used for to be explained the order of described generation node log, obtains row number, with number corresponding absolute address` of described row with generate the condition of node log;
Memory module is used for recording described variable when described variable satisfies the condition of described generation node log, generates described node log;
Program redirect module is used for after described memory module generates described node log, makes described wireless sensor node continue operation and receives described generation node log order program before.
5. a method that generates the wireless sensor network node daily record is characterized in that, comprising:
User side sends and generates the node log order;
At least one wireless sensor node receives the order of described generation node log, generates node log, sends described node log to described user side.
6. according to the method for claim 5, it is characterized in that described user side sends the order of described generation node log, comprising:
Receive the operational order of user's input, described operational order comprises row number and generates the condition of node log, and the described node log that receives, and described node log is fed back to described user;
According to row number, to obtain the absolute address` number corresponding with described row, and generate the order of described generation node log, the order of described generation node log comprises, described row number, the condition of described absolute address` and described generation node log;
The order of described generation node log is sent to described wireless sensor node.
7. according to the method for claim 5, it is characterized in that described wireless sensor node receives the order of described generation node log, generates described node log, comprising:
Receive the order of described generation node log;
According to the order of described generation node log, obtain the variable in the described wireless sensor node in real time, generate described node log.
8. the method according to claim 7 is characterized in that, the described variable in the described wireless sensor node is obtained in the order of the described generation node log of described foundation in real time, generates described node log, comprising:
Explain the order of described generation node log, obtain row number, with number corresponding absolute address` of described row with generate the condition of node log;
When described variable satisfies the condition of described generation node log, record described variable, generate described node log;
After described memory module generates described node log, make described wireless sensor node continue operation and receive described generation node log order program before.
CN201310243172.7A 2013-06-18 2013-06-18 A kind of device and method for generating wireless sensor network node daily record Active CN103347277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310243172.7A CN103347277B (en) 2013-06-18 2013-06-18 A kind of device and method for generating wireless sensor network node daily record

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310243172.7A CN103347277B (en) 2013-06-18 2013-06-18 A kind of device and method for generating wireless sensor network node daily record

Publications (2)

Publication Number Publication Date
CN103347277A true CN103347277A (en) 2013-10-09
CN103347277B CN103347277B (en) 2017-08-25

Family

ID=49282046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310243172.7A Active CN103347277B (en) 2013-06-18 2013-06-18 A kind of device and method for generating wireless sensor network node daily record

Country Status (1)

Country Link
CN (1) CN103347277B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463648A (en) * 2017-07-26 2017-12-12 苏州乐麟无线信息科技有限公司 Data analysing method and system based on distributed communication

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863359A (en) * 2005-11-01 2006-11-15 华为技术有限公司 Method and apparatus for implementing call diary
WO2010021652A1 (en) * 2008-08-18 2010-02-25 Sensormatic Electronics Llc Mobile wireless network for asset tracking and supply chain monitoring
CN101795294A (en) * 2010-02-01 2010-08-04 东南大学 Large generator set safety monitoring wireless sensor network system and method thereof
CN101969438A (en) * 2010-10-25 2011-02-09 胡祥义 Method for realizing equipment authentication, data integrity and secrecy transmission for Internet of Things
CN102981933A (en) * 2012-12-18 2013-03-20 武汉邮电科学研究院 Method and system for data increment backup of sensing layer of Internet of Things

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863359A (en) * 2005-11-01 2006-11-15 华为技术有限公司 Method and apparatus for implementing call diary
WO2010021652A1 (en) * 2008-08-18 2010-02-25 Sensormatic Electronics Llc Mobile wireless network for asset tracking and supply chain monitoring
CN101795294A (en) * 2010-02-01 2010-08-04 东南大学 Large generator set safety monitoring wireless sensor network system and method thereof
CN101969438A (en) * 2010-10-25 2011-02-09 胡祥义 Method for realizing equipment authentication, data integrity and secrecy transmission for Internet of Things
CN102981933A (en) * 2012-12-18 2013-03-20 武汉邮电科学研究院 Method and system for data increment backup of sensing layer of Internet of Things

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107463648A (en) * 2017-07-26 2017-12-12 苏州乐麟无线信息科技有限公司 Data analysing method and system based on distributed communication

Also Published As

Publication number Publication date
CN103347277B (en) 2017-08-25

Similar Documents

Publication Publication Date Title
Rani et al. Voice controlled home automation system using natural language processing (NLP) and internet of things (IoT)
CN103532949B (en) Self adaptation wooden horse communication behavior detection method based on dynamical feedback
Munir et al. On the impact of mobility on battery-less RF energy harvesting system performance
GB2458048A (en) Method and apparatus for mobile intelligence
EP3323052A1 (en) Machine learning of physical conditions based on abstract relations and sparse labels
US20190163530A1 (en) Computation apparatus, resource allocation method thereof, and communication system
CN107301765A (en) Remote control thereof, device and terminal
Huang et al. Distributed-neuron-network based machine learning on smart-gateway network towards real-time indoor data analytics
CN106878041A (en) Log information processing method, apparatus and system
Boano et al. Dependability for the Internet of Things-from dependable networking in harsh environments to a holistic view on dependability.
Marcus et al. An eye on visual sensor networks
Wicaksono loT for Residential Monitoring Using ESP8266 and ESP-NOW
Manda et al. An elegant home automation system using GSM and ARM-based architecture
EP3502866B1 (en) Systems and methods for audio-based augmented reality
CN103347277A (en) Device and method for generating wireless sensor network node log
US10051452B2 (en) Notification system and method of environment abnormality
US20170160892A1 (en) Individual customization system and method
CN110378154A (en) A kind of method and device of file set completeness check
Vatsa et al. Raspberry Pi based Implementation of Internet of Things using mobile messaging application-‘Telegram’
CN104598572A (en) Content processing method and device
CN104283940A (en) Sharing path tracking system and method
CN107818663B (en) Indoor intelligent security method, system and medium based on WiFi networking
Babayigit et al. Development of a novel 6LoWPAN‐based multipurpose sensor monitoring and notification system
Jiao et al. Model for human dynamics based on habit
Kumar et al. FIDEL: Fog integrated federated learning framework to train neural networks

Legal Events

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