ZigBee-network coherent system and mobile phone mobile monitor method based on voice communication
?
Technical field
The present invention relates to a kind of ZigBee-network coherent system based on voice communication and mobile phone mobile monitor method, is a kind of audio interface mechanics of communication of directly utilizing, and realizes that common smart mobile phone namely can be used as the mobile monitoring terminal equipment of ZigBee Wireless Communication Equipment.The present invention can be applicable to the wisdom city, agricultural facility modernization, many technology of Internet of things fields such as intelligent medical and Smart Home.
Background technology
ZigBee is a kind of emerging short-distance wireless communication technology, is used for sensing control and uses (Sensor and Control).By proposing in IEEE 802.15 working groups, and formulate standard by its TG4 working group.The Three roles such as the be divided into telegon of equipment in the ZigBee-network (Coordinator), aggregation node (Router), sensor node (End Device).Wherein, telegon (Coordinator) is responsible for carrying out data interaction with monitoring and control management software as management node.The ZigBee-network main feature is low-power consumption, low cost, low rate, support great deal of nodes, support multiple network topology, low complex degree, quick, reliable, safety.
At present, in the ZigBee application, most monitoring management end is mainly realized at host computer.And for the mobile monitoring terminal equipment of ZigBee, mainly occur in two ways: a kind of is the portable terminal of Custom Prosthesis, mainly by the ZigBee set of devices, and primary processor, display screen, the hardware such as Wi-Fi/ sim module and intelligent operating system and software form; Another is the special ZigBee mobile phone that individual handset manufacturer releases, and the hardware that being about to the ZigBee function needs directly adds regular handset to.Comparatively speaking, the still Custom Prosthesis portable terminal mode of more employing.Because low, the function singleness of cost performance causes the Custom Prosthesis terminal mode can not be as desirable portable terminal, and the ZigBee mobile phone has also limited development and the application of this mode owing to needing cell phone manufacturer to support but in actual applications.
Therefore, need a kind of effective and feasible mobile monitoring terminal technology for ZigBee-network of exploitation.
Summary of the invention
Goal of the invention: for problems of the prior art, the invention provides a kind of ZigBee-network coherent system based on voice communication and mobile phone mobile monitor method, by inserting the ZigBee-network telegon at the handset audio receiver J-Horner, can be with common smart mobile phone as ZigBee wireless network monitor terminal; For all having good practical value based on the portable terminal solution in the various application scenarioss of Zigbee protocol technology.
Technical scheme: a kind of ZigBee-network coherent system based on voice communication, comprise the ZigBee Coordination module, the background server database, and be arranged on mobile phone application module APP in the mobile phone; Wherein, the ZigBee Coordination module is provided with the plug that docks with the mobile audio interface jack, and in the use state, plug is inserted in the jack of mobile audio interface, and described ZigBee Coordination module communicates by plug and mobile phone.
Described ZigBee Coordination module comprises encode/decode audio signal chip and Zigbee protocol realization chip, the encode/decode audio signal chip is responsible for converting mobile phone to digital signal by the audio analog signals that plug sends on the one hand, and digital signal is sent to Zigbee protocol realization chip; Also be responsible on the other hand Zigbee protocol is realized that the digital signal that chip sends converts audio analog signals to, and audio analog signals is sent to mobile phone by plug; Described Zigbee protocol realizes that chip is responsible for realizing mainly that the coordinator node function of ZigBee-network (do not do here about the ABC of Zigbee protocol and wireless network thereof and to give unnecessary details, details can obtain from IEEE802.15.4 standard and ZigBee standard agreement, only relate to the correlation function of ZigBee-network telegon here.), and and the encode/decode audio signal chip carry out exchanges data.
A kind of mobile phone mobile monitor method based on voice communication comprises the steps:
Step 1 is opened mobile phone application module APP at mobile phone first;
Step 2, the driving of mobile phone application module APP calling mobile phone sound intermediate frequency device, by L channel and R channel circuit to ZigBee Coordination module transmitted signal, described signal mainly comprises the various instructions to the ZigBee-network telegon that mobile phone sends, wake up such as low power consuming devices in the network, Handshake Protocol, equipment operating instruction, checking data etc.;
Step 3, the ZigBee Coordination module is decoded to mobile phone sending signal (audio analog signals) by the encode/decode audio signal chip, obtains the mobile phone command information;
Step 4, ZigBee Coordination module realize chip according to the mobile phone command information by Zigbee protocol, realize the various functions of coordinator node (Coordinator) in ZigBee-network in the ZigBee-network.Concrete reference IEEE802.15.4 agreement and the regulation of Zigbee protocol;
Step 5, the ZigBee Coordination module is the related data information that obtains from ZigBee-network, encode by the encode/decode audio signal chip, convert audio analog signals to, and audio analog signals is sent to the audio chip of mobile phone by M circuit (Mike's section);
Step 6, mobile phone application module APP samples to the audio analog signals that earphone jack M circuit receives by the audio chip driver in the mobile phone, obtains digital signal;
Step 7, mobile phone application module APP obtains actual data message by digital signal is carried out protocol-decoding, and data message is shown to the user by human-computer interaction interface;
Step 8, the so far communication of mobile phone and ZigBee-network Coordination module is finished, and mobile phone application module APP is undertaken alternately the data of ZigBee-network being carried out storage backup by mobile communications network and background server database again.
Beneficial effect: compared with prior art, ZigBee-network coherent system and mobile phone mobile monitor method based on voice communication provided by the invention, mainly utilize the extensive present situation of popularizing of smart mobile phone, adopt the mobile audio interface communication modes, by being connected with the ZigBee Coordination module at mobile audio interface, can be with common smart mobile phone as ZigBee wireless network monitor terminal.Realize simply, reliable and practical, software is configurable, and cost performance is high, and is easy to use portable.The present invention can be applicable to the wisdom city, the agricultural facility modernization, and the practical scene in many Internet of Things fields such as intelligent medical and Smart Home has widely practical value and application prospect.
Description of drawings
Fig. 1 is systematic schematic diagram of the present invention;
Fig. 2 is plug construction schematic diagram of the present invention;
Fig. 3 is mobile phone terminal of the present invention and ZigBee Coordination module Principle of Communication figure;
Fig. 4 is ZigBee Coordination module inner frame schematic diagram of the present invention.
Embodiment
Below in conjunction with specific embodiment, further illustrate the present invention, should understand these embodiment only is used for explanation the present invention and is not used in and limits the scope of the invention, after having read the present invention, those skilled in the art all fall within the application's claims limited range to the modification of the various equivalent form of values of the present invention.
As shown in Figure 1, the ZigBee-network coherent system based on voice communication comprises the ZigBee Coordination module, the background server database, and be arranged on mobile phone application module APP in the mobile phone; Wherein, the ZigBee Coordination module is provided with the plug that docks with mobile audio interface (earphone interface) jack, and in the use state, plug is inserted in the jack of mobile audio interface, and the ZigBee Coordination module communicates by plug and mobile phone.
Further, as shown in Figure 2, according to country's mark, plug is followed successively by L channel L, R channel R, Mike's section MIC and ground section GND from the top to the end; Wherein, L channel and R channel are the outward interfaces of output signal of mobile phone, and Mike's section is the interface channel that mobile phone receives signal.According to international standard, opposite among the position of Mike's section MIC and earth terminal and the figure.
Further, as shown in Figure 3, the ZigBee Coordination module comprises encode/decode audio signal chip and Zigbee protocol realization chip, the encode/decode audio signal chip is responsible for converting the handset audio chip to digital signal by the audio analog signals that L channel and R channel send on the one hand, and digital signal is sent to Zigbee protocol realization chip; Also be responsible on the other hand Zigbee protocol is realized that the digital signal that chip sends converts audio analog signals to, and the M passage (Mike section) of audio analog signals by plug sent to the handset audio chip; Zigbee protocol realizes that chip is responsible for realizing mainly that the coordinator node function of ZigBee-network (do not do here about the ABC of Zigbee protocol and wireless network thereof and to give unnecessary details, details can obtain from IEEE802.15.4 standard and ZigBee standard agreement, only relate to the correlation function of ZigBee-network telegon here.), and and the encode/decode audio signal chip carry out exchanges data.
Further, mobile phone application module APP mainly is responsible for carrying out exchanges data and processing by plug and ZigBee Coordination module, realizes man-machine interaction, and carries out data interaction with the background server database.In use, the ZigBee Coordination module sends to signal the audio chip of mobile phone, audio chip driver in the mobile phone application module APP calling mobile phone software, and by the audio chip driver communication data in the audio chip is read and write, thereby realize the data transmit-receive of audio interface.Simultaneously, mobile phone application module APP shows the mode of these transceiving datas by human-computer interaction interface; And by mobile communications network, these data are stored into the server database on backstage.
Further, as shown in Figure 4, Zigbee protocol realizes that chip carries out the mutual of data by the ZigBee antenna in the circuit board and ZigBee-network, realizes ZigBee-network monitoring of tools function.The ZigBee Coordination module also comprises an internal battery, is its power supply.L, R, M and G represent that this module and outside interface are audio interface among the figure.In the present embodiment, Zigbee protocol is realized chip take the CC2530 chip as example, and this built-in chip type is 8051 kernels and FLASH independently, and RAM etc. provide the SPI interface of standard to link to each other with the encode/decode audio signal chip.
Mobile phone mobile monitor method based on voice communication comprises the steps:
Step 1 is opened mobile phone application module APP at mobile phone first;
Step 2, the driving of mobile phone application module APP calling mobile phone sound intermediate frequency device, by L channel and R channel circuit to ZigBee Coordination module transmitted signal, described signal mainly comprises the various instructions to the ZigBee-network telegon that mobile phone sends, wake up such as low power consuming devices in the network, Handshake Protocol, equipment operating instruction, checking data etc.;
Step 3, the ZigBee Coordination module is decoded to mobile phone sending signal (audio analog signals) by the encode/decode audio signal chip, obtains the mobile phone command information;
Step 4, ZigBee Coordination module realize chip according to the mobile phone command information by Zigbee protocol, realize the various functions of coordinator node (Coordinator) in ZigBee-network in the ZigBee-network.Concrete reference IEEE802.15.4 agreement and the regulation of Zigbee protocol;
Step 5, the ZigBee Coordination module is the related data information that obtains from ZigBee-network, encode by the encode/decode audio signal chip, convert audio analog signals to, and audio analog signals is sent to the audio chip of mobile phone by M circuit (Mike's section);
Step 6, mobile phone application module APP samples to the audio analog signals that earphone jack M circuit receives by the audio chip driver in the mobile phone, obtains digital signal;
Step 7, mobile phone application module APP obtains actual data message by digital signal is carried out protocol-decoding, and data message is shown to the user by human-computer interaction interface;
Step 8, the so far communication of mobile phone and ZigBee-network coordinator module is finished, and mobile phone application module APP is undertaken alternately the data of ZigBee-network being carried out storage backup by mobile communications network and background server database again.
Further, described Zigbee protocol realizes that chip also can compatible RF4CE consensus standard for consumer electronics, then can be called ZigBee RF4CE agreement and realize chip in this applications, and ZigBee RF4CE agreement realization chip is connected with the audio signal decoding chip; The audio signal decoding chip sends over mobile phone by L channel and R channel interface audio analog signals converts digital signal to and sends to ZigBee RF4CE agreement realization chip, ZigBee RF4CE agreement realizes chip according to digital signal, by the radio-frequency antenna in the circuit board to outside electric equipment or home electronics emissioning controling signal; ZigBee RF4CE agreement realizes that chip FEEDBACK CONTROL consequential signal is to the audio signal decoding chip simultaneously, the audio signal decoding chip realizes that with ZigBee RF4CE agreement the feedback signal that chip sends converts audio analog signals to, sends to mobile phone by Mike's segment interface.