CN104640151A - Wireless management method for sensor - Google Patents

Wireless management method for sensor Download PDF

Info

Publication number
CN104640151A
CN104640151A CN201510034180.XA CN201510034180A CN104640151A CN 104640151 A CN104640151 A CN 104640151A CN 201510034180 A CN201510034180 A CN 201510034180A CN 104640151 A CN104640151 A CN 104640151A
Authority
CN
China
Prior art keywords
data
microprocessor
receive
wireless communication
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.)
Pending
Application number
CN201510034180.XA
Other languages
Chinese (zh)
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.)
Qingdao Zhongtian Xintong Iot Technology Co Ltd
Original Assignee
Qingdao Zhongtian Xintong Iot Technology Co Ltd
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 Qingdao Zhongtian Xintong Iot Technology Co Ltd filed Critical Qingdao Zhongtian Xintong Iot Technology Co Ltd
Priority to CN201510034180.XA priority Critical patent/CN104640151A/en
Publication of CN104640151A publication Critical patent/CN104640151A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a wireless management method for a sensor. The wireless management method comprises the following steps: on the basis of a manager which is composed of a data input interface, a microprocessor and a wireless communication module, receiving sensor data by the data input interface; processing the sensor data by the microprocessor, encapsulating and transmitting the sensor data through the wireless communication module; monitoring whether a serial port of the wireless communication module receives data or not by the microprocessor; if UDP (user datagram protocol) data exist, receiving and processing the data; if no data exist, executing network connection monitoring and connecting a network. According to the wireless management method for the sensor provided by the invention, the problem of difficulty in sensor network access is solved by a wireless communication technology and an embedded technology; the cost is low; data are encapsulated into a uniform format; integration and application of a system are facilitated.

Description

A kind of sensor wireless management method
Technical field
The present invention relates to wireless communication technology field, particularly a kind of sensor wireless management method.
Background technology
At present, market does not have special sensor wireless management equipment, transducer wants access network to pass through gateway device, gateway has data acquisition and management function, can connect transducer, be forwarded by processor to after data processing, the communication mode of gateway can be wireless or wired.But the design of gateway is complicated, and equipment cost is high, and due to the standard disunity of gateway, cause the wasting of resources, and inconvenience that is integrated and application, therefore, limit application and the popularization of product.
Summary of the invention
The present invention proposes a kind of sensor wireless management method, utilizes wireless communication technology and embedded technology, solves the problem of sensor network access, and with low cost, encapsulates data as unified form, facilitates the Integration and application of system.
Technical scheme of the present invention is achieved in that
A kind of sensor wireless management method, based on the manager be made up of Data Input Interface, microprocessor and wireless communication module,
Data Input Interface receiving sensor data;
Microprocessor processes sensing data and encapsulates sensing data, is sent by wireless communication module;
Whether microprocessor also monitoring wireless communication module serial ports has data receiver, if there is UDP message, carries out reception and the process of data, if do not have data, performs network and connects monitoring, interconnection network.
Alternatively, microprocessor processes sensing data and the step encapsulated sensing data, be specially: microprocessor is intercepted the data that Data Input Interface receives, data are judged whether, and carry out data acquisition, microprocessor, to the unified form being packaged into standard of the data of the different input modes collected, sends sensing data to wireless communication module, reset reception pointer.
Alternatively, microprocessor sends the step of sensing data to wireless communication module, is specially: first, prepares data; Then, calculate and fill in CRC inspection, calculated data length; Finally, call and send function transmission data, return after completing transfer of data.
Alternatively, microprocessor receives the step of radio communication mold blocks of data, is specially:
Step one, closes and interrupts;
Step 2, determines whether receive interruption, if so, then and receiving flag position RIO clear 0;
Step 3, judges whether receiving flag mode bit RECEIVE FLAG is 0;
If RECEIVE FLAG position is 0, judge whether buffered data SBUF0 is 0x7e, be then RECEIVE FLAG position 1, reception buffer zone pointer initialization, carries out step 4;
If RECEIVE FLAG position is not 0, judge whether SBUF0 is 0x7e;
If SBUF0 is 0x7e, judge whether current pointer is reception buffer zone first address, be not then RECEIVE FLAG position clear 0, finish receiving mode bit PPP_Rec_Complete and put 1, carry out step 4;
If SBUF0 is not 0x7e, judge whether data receiver pointer flag bit ADDING Flag is 1;
If ADDING Flag position is 1, by the data received and 0x20 step-by-step phase with after be stored into reception buffer zone, data store pointer mark P ADDING Flag clear 0, and reception buffer zone pointer adds 1, carries out step 4;
If ADDING Flag position is not 1, that judge whether to receive is 0x7d;
If what receive is 0x7d, PADDING Flag position 1, carry out step 4;
If that receive is not 0x7d, the data received are stored into reception buffer zone, reception buffer zone pointer adds 1, carries out step 4;
Step 4, opens interruption;
Step 5, terminates.
The invention has the beneficial effects as follows:
(1) problem of sensor network access is solved, and with low cost;
(2) encapsulate data as unified form, facilitate the Integration and application of system.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the control block diagram of radio management method system platform of the present invention;
Fig. 2 is the flow chart that the present invention processes input data and encapsulates;
Fig. 3 is that microprocessor of the present invention sends data flowchart to wireless communication module;
Fig. 4 is that microprocessor of the present invention is from wireless communication module receiving data stream journey figure.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
As shown in Figure 1, method of the present invention is based on the manager system platform be made up of Data Input Interface, microprocessor and wireless communication module, and this manager provides supply of electric power by power module.Such as microprocessor can be cortex32 microprocessor, wireless communication module is wifi/zigbee wireless communication module, above-mentioned microprocessor and choosing of wireless communication module are only schematic, and those skilled in the art can choose according to the needs of design.
Based on above-mentioned manager, sensor wireless management method of the present invention comprises the following steps: Data Input Interface receiving sensor data, and above-mentioned Data Input Interface can complete the access of the sensing datas such as analog quantity, digital quantity and RS232 or RS485; Microprocessor processes sensing data and encapsulates sensing data, is sent by wireless communication module; Whether microprocessor also monitoring wireless communication module serial ports has data receiver, if there is UDP message, carries out reception and the process of data, if do not have data, performs network and connects monitoring, interconnection network.
Be described in detail below in conjunction with accompanying drawing each step to sensor wireless management method of the present invention.
As shown in Figure 2, microprocessor processes sensing data and the step encapsulated sensing data, be specially: microprocessor is intercepted the data that Data Input Interface receives, data are judged whether, and carry out data acquisition, microprocessor, to the unified form being packaged into standard of the data of the different input modes collected, sends sensing data to wireless communication module, reset reception pointer.Method of the present invention, by unified for the various nonstandard data form being packaged into standard, eliminates upper computer software developer to the concern of bottom and exploitation, substantially increases the efficiency of transfer of data.
As shown in Figure 3, microprocessor sends the step of sensing data to wireless communication module, is specially: first, prepares data; Then, calculate and fill in CRC inspection, calculated data length; Finally, call and send function transmission data, return after completing transfer of data.Method of the present invention completes uploading of local sensor supplemental characteristic by above-mentioned steps, user can remote inquiry local sensor parameter, further increase the efficiency of transfer of data, save time and transmission equipment, while saving transmission equipment, improve the reliability of transfer of data.
As shown in Figure 4, microprocessor receives the step of radio communication mold blocks of data, is specially:
Step one, closes and interrupts;
Step 2, determines whether receive interruption, if so, then and receiving flag position RIO clear 0;
Step 3, judges whether receiving flag mode bit RECEIVE FLAG is 0;
If RECEIVE FLAG position is 0, judge whether buffered data SBUF0 is 0x7e, be then RECEIVE FLAG position 1, reception buffer zone pointer initialization, carries out step 4;
If RECEIVE FLAG position is not 0, judge whether SBUF0 is 0x7e;
If SBUF0 is 0x7e, judge whether current pointer is reception buffer zone first address, be not then RECEIVE FLAG position clear 0, finish receiving mode bit PPP_Rec_Complete and put 1, carry out step 4;
If SBUF0 is not 0x7e, judge whether data receiver pointer flag bit ADDING Flag is 1;
If ADDING Flag position is 1, by the data received and 0x20 step-by-step phase with after be stored into reception buffer zone, data store pointer mark P ADDING Flag clear 0, and reception buffer zone pointer adds 1, carries out step 4;
If ADDING Flag position is not 1, that judge whether to receive is 0x7d;
If what receive is 0x7d, PADDING Flag position 1, carry out step 4;
If that receive is not 0x7d, the data received are stored into reception buffer zone, reception buffer zone pointer adds 1, carries out step 4;
Step 4, opens interruption;
Step 5, terminates.
Sensor wireless management method of the present invention adopts embedded technology and wireless communication technology, CORTEX microprocessor and WIFI or zigbee chip is used to build system platform, with low cost, definite functions is exclusively used in the access of transducer and the smart machine of management; Sensing data is encapsulated as consolidation form, facilitates integrated and application.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (4)

1. a sensor wireless management method, based on the manager be made up of Data Input Interface, microprocessor and wireless communication module, is characterized in that,
Data Input Interface receiving sensor data;
Microprocessor processes sensing data and encapsulates sensing data, is sent by wireless communication module;
Whether microprocessor also monitoring wireless communication module serial ports has data receiver, if there is UDP message, carries out reception and the process of data, if do not have data, performs network and connects monitoring, interconnection network.
2. sensor wireless management method as claimed in claim 1, it is characterized in that, microprocessor processes sensing data and the step encapsulated sensing data, be specially: microprocessor is intercepted the data that Data Input Interface receives, judged whether data, and carried out data acquisition, microprocessor is to the unified form being packaged into standard of the data of the different input modes collected, sensing data is sent, reset reception pointer to wireless communication module.
3. sensor wireless management method as claimed in claim 2, is characterized in that, microprocessor sends the step of sensing data to wireless communication module, is specially: first, prepares data; Then, calculate and fill in CRC inspection, calculated data length; Finally, call and send function transmission data, return after completing transfer of data.
4. sensor wireless management method as claimed in claim 1, is characterized in that, microprocessor receives the step of radio communication mold blocks of data, is specially:
Step one, closes and interrupts;
Step 2, determines whether receive interruption, if so, then and receiving flag position RIO clear 0;
Step 3, judges whether receiving flag mode bit RECEIVE FLAG is 0;
If RECEIVE FLAG position is 0, judge whether buffered data SBUF0 is 0x7e, be then RECEIVE FLAG position 1, reception buffer zone pointer initialization, carries out step 4;
If RECEIVE FLAG position is not 0, judge whether SBUF0 is 0x7e;
If SBUF0 is 0x7e, judge whether current pointer is reception buffer zone first address, be not then RECEIVE FLAG position clear 0, finish receiving mode bit PPP_Rec_Complete and put 1, carry out step 4;
If SBUF0 is not 0x7e, judge whether data receiver pointer flag bit ADDING Flag is 1;
If ADDING Flag position is 1, by the data received and 0x20 step-by-step phase with after be stored into reception buffer zone, data store pointer mark P ADDING Flag clear 0, and reception buffer zone pointer adds 1, carries out step 4;
If ADDING Flag position is not 1, that judge whether to receive is 0x7d;
If what receive is 0x7d, PADDING Flag position 1, carry out step 4;
If that receive is not 0x7d, the data received are stored into reception buffer zone, reception buffer zone pointer adds 1, carries out step 4;
Step 4, opens interruption;
Step 5, terminates.
CN201510034180.XA 2015-01-19 2015-01-19 Wireless management method for sensor Pending CN104640151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510034180.XA CN104640151A (en) 2015-01-19 2015-01-19 Wireless management method for sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510034180.XA CN104640151A (en) 2015-01-19 2015-01-19 Wireless management method for sensor

Publications (1)

Publication Number Publication Date
CN104640151A true CN104640151A (en) 2015-05-20

Family

ID=53218351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510034180.XA Pending CN104640151A (en) 2015-01-19 2015-01-19 Wireless management method for sensor

Country Status (1)

Country Link
CN (1) CN104640151A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030154056A1 (en) * 2000-01-13 2003-08-14 Toku Ito System for acquiring data from facilities and method CIP
CN101207602A (en) * 2006-12-22 2008-06-25 中国科学院计算技术研究所 Processing chip for wireless sensor network node
CN102523632A (en) * 2011-12-26 2012-06-27 中国科学院空间科学与应用研究中心 Wireless sensor network system used for environmental monitoring inside spacecraft
CN102546843A (en) * 2012-01-17 2012-07-04 厦门雅迅网络股份有限公司 Method for achieving UART (universal asynchronous receiver/transmitter) communication interfaces through software simulation
CN102629240A (en) * 2012-02-13 2012-08-08 上海创远仪器技术股份有限公司 Method and device for serial communication
CN103810828A (en) * 2012-11-09 2014-05-21 中国科学院沈阳计算技术研究所有限公司 Wireless communication system and method for Internet-of-Things aggregation node of machine tool

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030154056A1 (en) * 2000-01-13 2003-08-14 Toku Ito System for acquiring data from facilities and method CIP
CN101207602A (en) * 2006-12-22 2008-06-25 中国科学院计算技术研究所 Processing chip for wireless sensor network node
CN102523632A (en) * 2011-12-26 2012-06-27 中国科学院空间科学与应用研究中心 Wireless sensor network system used for environmental monitoring inside spacecraft
CN102546843A (en) * 2012-01-17 2012-07-04 厦门雅迅网络股份有限公司 Method for achieving UART (universal asynchronous receiver/transmitter) communication interfaces through software simulation
CN102629240A (en) * 2012-02-13 2012-08-08 上海创远仪器技术股份有限公司 Method and device for serial communication
CN103810828A (en) * 2012-11-09 2014-05-21 中国科学院沈阳计算技术研究所有限公司 Wireless communication system and method for Internet-of-Things aggregation node of machine tool

Similar Documents

Publication Publication Date Title
CN102497630B (en) Machine to machine (M2M) equipment, method for realizing service, intelligent card and communication module
CN103081560B (en) For the method and system of Reseal wireless data
CN108092884A (en) A kind of wireless access gateway system and application process
EP2575300B1 (en) Electrical gateway and communication method therefor
CN104486783B (en) Polymorphic wireless gateway system and control method for polymorphic wireless monitor network
CN101917736B (en) Sensor network test bed system and test method thereof
CN107426806B (en) Method and device for transmitting data by Internet of things terminal
CN104507148A (en) Low-power-consumption wireless sensor network
CN105225449A (en) Supervisory system and monitoring collector
CN106355873B (en) Internet of things intelligent traffic gateway and system thereof
CN101557658B (en) ZigBee/TD-SCDMA gateway
CN107425879A (en) A kind of wireless communications method based on common flue environment
WO2015103848A1 (en) Method, system and terminal for realizing network access via wifi
CN108012250A (en) Data transmission method and data transmission device
CN107613582A (en) A kind of multifunctional intellectual LoRa gateways
CN106603354A (en) Home gateway capable of automatically switching network access mode and network access mode switching method
CN205068378U (en) Multi -functional wireless serial ports device
CN109688564A (en) A kind of power monitoring system and O&M method based on bluetooth and LoRa
CN104066201B (en) Data transmission method, device and electronic equipment
CN103746984A (en) Method for realizing transparent transmission between WIA-PA (wireless network for industrial automation - process automation) industrial wireless protocol and Modbus protocol
CN206461665U (en) A kind of cloud platform system
CN108667488A (en) Low-power consumption bluetooth control chip based on wide area Internet technology and sensor device
CN206235882U (en) The remote control of automobile electronic control unit
CN204667611U (en) A kind of farm field data remote supervision system
CN111682965A (en) FOTA controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150520