Background technology
Utilizing sensor network to monitor environmental variance is means indispensable in modern industry.The variable of monitoring, can be divided into stationary monitoring system and moving monitoring system as required.For example, video monitoring belongs to stationary monitoring system, and the monitoring system of logistic industry need to, with freight transportation, belong to moving monitoring system.
For mobile sensor monitoring network, general sensor terminal comprises telecommunication module, such as the satellite communication such as mobile communication network, iridium satellite/marine satellite/Big Dipper network, Ethernet, Wifi and Lan network communications such as GSM/GPRS/WCDMA/LTE.After a sensor terminal collects needed data, the remote communication module comprising by sensor terminal, transfers to server end by remote data.
For the sensor network that need to monitor mobile device, self comprise telecommunication module, can realize real-time remote and send monitor data to server.But add remote communication module in sensor assembly after, cost can significantly rise, overall dimension is not easy to do small and exquisitely yet.The more important thing is, the needed power of telecommunication is larger, and for battery-powered mobile device, continuous running will inevitably be very difficult for a long time.Concerning a lot of wireless systems, power problems is a bottleneck that limits its application.
In addition, owing to requiring each sensor terminal to have and the ability of server communication, support specific communication protocol, the versatility of sensor terminal is reduced.Further, if need to add new transducer in existing sensor network, the transducer adding of must looking for novelty has the add-on module communicating with server, and this causes a lot not supporting with the sensor assembly of server direct communication unavailable.
The present invention, by the design of communication adaptive device, is intended to existing sensor network network cost, arrangement, overall dimension to be optimized, and can also strengthen its flying power.In addition can also improve, the versatility of sensor terminal.
Summary of the invention
The object of this invention is to provide a kind of communication adaptive device for sensor network multi protocol supporting, solve defect and deficiency that prior art exists.
The invention provides a kind of communication adaptive device for sensor network multi protocol supporting, comprise some sensor assemblies of communication adapter and coupling, sensor data interface, memory that described communication adapter comprises microcontroller and is connected with described microcontroller, described sensor data interface connects some sensor assemblies to be processed in order to sensing data is transferred to described microcontroller, and described microcontroller stores sensing data after treatment into described memory.
Described communication adapter also comprises data upload communication interface, described data upload communication interface interconnection network server is in order to be uploaded to the described webserver by sensing data after treatment described microcontroller, and the communication protocol between described data upload communication interface and the described webserver comprises telecommunication agreement or short-range communication agreement.
Described sensor assembly comprises and gathers the transducer of environmental parameter and connected in order to described environmental parameter is transferred to the sensor interface of described communication adapter, described sensor interface further comprises change-over circuit, signal processing module, coding module and sending module, and the Data Transport Protocol between described sensor interface and described communication adapter comprises wireless or wired short-range communication protocols.
Described communication adapter also comprises protocol stack memory, described protocol stack memory stores communication protocol between described sensor data interface and described sensor assembly and the communication protocol between described data upload interface and the webserver.
Described communication adapter also comprises association's control panel, and described control panel comprises a user interface, in order to add or delete one or more described sensor assemblies or described protocol stack memory is upgraded and added communications protocol.
The present invention is by the sensor data interface, the memory that the microcontroller of communication adapter are set and are connected with described microcontroller, make described sensor data interface connect some sensor assemblies and process in order to sensing data is transferred to described microcontroller, described microcontroller stores sensing data after treatment into described memory.The present invention to existing sensor network cost, arrangement, be optimized, strengthened in addition the versatility of its flying power and sensor terminal.
Embodiment
Further illustrate technical scheme of the present invention below in conjunction with drawings and embodiments.
Referring to Fig. 1, the invention provides a kind of communication adaptive device for sensor network multi protocol supporting, comprise some sensor assembly (10a of communication adapter 2 and coupling, 10n), sensor data interface 9, memory 4 that described communication adapter 2 comprises microcontroller 7 and is connected with described microcontroller 7, described sensor data interface 9 connects some sensor assembly (10a, 10n) process in order to sensing data is transferred to described microcontroller 7, described microcontroller 7 stores sensing data after treatment into described memory.
As an embodiment, described communication adapter 2 also comprises data upload communication interface 3, described data upload communication interface 3 interconnection network servers 1 are in order to be uploaded to the described webserver 1 by described microcontroller 7 sensing data after treatment, and the communication protocol between described data upload communication interface 3 and the described webserver 1 comprises telecommunication agreement or short-range communication agreement.
Microcontroller 7 reads sensing data from sensor data interface 9, carries out certain processing, for example, removes the singular point that external interference causes.Then data are stored into data storage 5, memory 4 comprises data storage 5 and protocol stack memory 6.For the not high data of requirement of real-time, can wait for when the webserver 1 needs, inquire about.Or uploading network condition when not good, the data that collect are stored, treat to upload after communication recovery.For the higher data of requirement of real-time, also can directly data be sent to the webserver 1 by data upload communication interface 3.
Communication protocol between data upload communication interface 3 and the webserver 1 can comprise multiple telecommunication agreement or short-range communication agreement (from the space length of network close to time), for example, GSM, WiFi, USB, Lan.
Bottom in Fig. 1 is multiple sensor assembly (10a, 10n), sensor assembly (10a, internal structure 10n) is as Fig. 2, in Fig. 2, as an embodiment, described sensor assembly (10a, 10n) comprise and gather the transducer 11 of environmental parameter and connected in order to described environmental parameter is transferred to the sensor interface 12 of described communication adapter 2, described sensor interface 12 further comprises change-over circuit 13, signal processing module 14, coding module 15 and sending module 16, Data Transport Protocol between described sensor interface 12 and described communication adapter 2 comprises wireless or wired short-range communication protocols.
Transducer 11 gathers the ambient signal needing, the multi-signals such as such as temperature, humidity, light intensity, GPS/ Big Dipper position, pressure, vibration, acceleration.Transducer 11 sends to communication adapter 2 the primary signal collecting by sensor interface 12.In sensor interface 12 inside, initial data sends to signal processing module 14 after change-over circuit 13, carries out certain preliminary treatment.Then after coding module 15 codings, send to communication adapter 2 by sending module 16.Data Transport Protocol between sensor interface 12 and communication adapter 2 comprises multiple wireless or wired short-distance transmission agreement, for example RFID, Zigbee, Bluetooth (BLE), NFC, Beacon, WiMax, ANT+, USB, WiFi, serial ports etc.
As an embodiment, described communication adapter 2 also comprises protocol stack memory 6, described protocol stack memory 6 has been stored the communication protocol between communication protocol and described data upload interface and the webserver 1 between described sensor data interface 9 and described sensor assembly (10a, 10n).
As an embodiment, described communication adapter 2 also comprises association's control panel 8, described control panel 8 comprises a user interface, in order to add or delete one or more described sensor assemblies (10a, 10n) or described protocol stack memory 6 is upgraded and added communications protocol.Control panel 8 provides a user interface, and user can pass through control panel 88, adds or deletes one or more sensor assemblies (10a, 10n).User also can pass through control panel 88, assigns instruction, and protocol stack memory 6 is upgraded, for example, be upgraded to USB3.0 from USB2.0; Can also add new communications protocol at protocol stack memory 6, to support emerging communication equipment.Agreement upgrading or interpolation, can be by user by control panel 8, and circumscribed USB equipment or Ethernet complete; Also can carry out online upgrading by server end.
Multi-protocol communication adapter of the present invention, by the system architecture of multisensor+communication adapter, realize the flexible arrangement of multiple sensor assemblies locus within the scope of short haul connection, the transmission of data both can wire communication, radio communication that again can low-power consumption.Sensor assembly sends to data after closely interior communication adapter in real time, and uploading data is completed by adapter to the work of server.Owing to having reduced long-range communications module, sensor assembly can be controlled better on size and cost.What is more important, for wireless sensor assembly, power consumption can reduce, and therefore can extend the time of system continuous firing.The present invention in adapter storage inside the communication protocol needing, can support the access of sensor assembly of various communications protocols and sending out of server data to receive.In addition, also support user manually upgrade or by server end online upgrading, realize the renewal of communication protocol and increase new agreement, very convenient to adding new sensor assembly, the versatility of system improves greatly.
By an embodiment, the present invention is described again below, referring to Fig. 3.Communication adapter 2 is arranged on haulage vehicle the position of cable, passes through cable power supply.GPS/ Big Dipper transducer 10c is for monitoring the position of haulage vehicle.Because GPS/ Big Dipper transducer can be arranged on the optional position on vehicle, for convenience, be directly installed near of communication adapter 22, be connected with communication adapter 2 by USB, realize communication and power supply.Pressure, vibrating sensor 10b are arranged on the surface of container, the pressure that monitoring containers is suffered and the situation of vibratory impulse.Pressure, vibrating sensor and communication adapter 2 close together, adopt Bluetooth mode to communicate.Temperature-humidity sensor 10a is arranged on the inside of container, temperature, the humidity information of monitoring goods environment of living in.Adopt communication distance far away, the Zigbee communication mode with certain penetration capacity, communicate with communication adapter 2.Communication adapter 2 receives GPS/ Big Dipper transducer 10c, pressure, vibrating sensor 10b, temperature-humidity sensor 10a, carries out certain processing, then sends the data to the webserver 1 by GSM mode.Communication adapter 2 connects the data of the sensor assembly to obtaining, and is stored in the memory of communication adapter 2 inside.The data not high to requirement of real-time as GPS/ Big Dipper positional information, can be read by the webserver 1 in the time that the webserver 1 needs.The information higher to requirement of real-time, as temperature, pressure etc., after communication adapter 2 receives data, sends to the webserver 1 in real time.In the time that communication conditions is not good, can store memory into, in the time of communication recovery, send.The webserver 1 is analyzed after receiving the data that communication adapter 2 sends.When being necessary, report to the police.For example, after temperature exceedes limit value, the warning device on unlocking vehicle, or conveying people is sent to warning message.
Communication adapter 2 inside comprise protocol stack memory, have stored USB, Zigbee, Bluetooth and gsm communication agreement.Protocol stack can or add new communication protocol by the webserver 1 end online upgrading, also can upgrade by the USB interface of communication adapter 2 or Ethernet interface.
Those of ordinary skill in the art will be appreciated that, above execution mode is only for the present invention is described, and be not used as limitation of the invention, as long as within the scope of connotation of the present invention, variation, modification to above execution mode all will drop within the scope of claims of the present invention.