Zigbee adapter and comprise its Headphone device
Technical field
The present invention relates to a kind of Zigbee adapter, also relate to a kind of Headphone device that comprises this Zigbee adapter.
Background technology
The ZigBee technology is a kind of emerging wireless communication technology, advantages such as it has low-power consumption, low cost, prolong in short-term, MANET, but after first standard of ZigBee in 2004 is released, the ZigBee wireless technology is not developed fully, it is exactly to lack the terminal equipment that is integrated with the ZigBee technology that an important reasons is wherein arranged, and expansion brings serious obstruction to the ZigBee The Application of Technology for this.
Smart mobile phone had become an indispensable part in people's life in recent years rapidly, so if can will the development of ZigBee technology be had very important significance with the ZigBee applications of wireless technology to smart mobile phone.
Under the present circumstances, that the design that the ZigBee technology is applied on the smart mobile phone is multifarious.Patent 200810068563.9 (a kind of mobile phone and remote wireless control method based on the ZIGBEE technology) discloses a kind of mobile phone based on the ZigBee technology and remote wireless control method, and making under ZigBee networking network keeps in communication as controller with the mobile phone terminal that has the ZigBee module as controlled end with the equipment that has the ZigBee module is connected.Patent 201010239402.9 (mobile phone intelligent card and a kind of mobile phone of band Zigbee protocol communication function) discloses a kind of mobile phone intelligent card with Zigbee protocol communication function and a kind of mobile phone, both can realize the function of common SIM card, can also realize supplementing with money or function of swiping card of IC-card.Patent 2011110434668.3 (SIM card of integrated zigbee function) provides a kind of SIM card of integrated zigbee function.The main thought of these patents is that the ZigBee module is integrated on mobile phone or the smart card, is integrated in to make on the mobile phone that mobile phone has specificity, is inconvenient to expand; Be integrated on the smart card, be inconvenient to dismantle and control.
Summary of the invention
In order to make smart machine have the Zigbee autgmentability, the present invention is intended to propose a kind of Zigbee adapter based on earphone interface.
Zigbee adapter of the present invention, it comprises: headset plug unit and Zigbee unit; The Zigbee unit comprises power management module, coding and decoding module, Zigbee module; The headset plug unit comprises MIC link, the first sound channel link, second sound channel link; The input of power management module is connected to the first sound channel link, introduces power supply via the first sound channel circuit; The output of power management module is connected to coding and decoding module and Zigbee module respectively, is coding and decoding module and Zigbee module for power supply; First end of coding and decoding module is connected to the Zigbee module, with mutual with the Zigbee module data; Second end of coding and decoding module is connected with the second sound channel link of headset plug unit, via the second sound channel line input signal; The 3rd end of coding and decoding module is connected with the MIC link of headset plug unit, via the MIC line output signal.
Preferably, the modulation of coding and decoding module is a kind of in dual-tone multifrequency, frequency shift keying, phase shift keying, the amplitude shift keying.
Preferably, power management module comprises transformer, AC/DC, boosts/the voltage stabilizing chip; The transformer input is connected to the input of power management module, and the transformer output is connected to the input of AC/DC, and the output of AC/DC is connected to and boosts/voltage stabilizing chip input, boost/output of voltage stabilizing chip is connected to the output of power management module.
Zigbee adapter of the present invention makes smart machine, especially smart mobile phone, can expand easily under the situation that itself does not possess the Zigbee communication function, makes it to possess the Zigbee communication function, thereby is connected with the Zigbee peripheral hardware easily.
The present invention also proposes a kind of Headphone device of the Zigbee of comprising communication function, and it comprises: headset plug unit, headphone unit, Zigbee unit and selector switch unit; The headset plug unit comprises MIC link, the first sound channel link, second sound channel link; Headphone unit comprises first phonation unit, second phonation unit, MIC; The Zigbee unit comprises power management module, coding and decoding module, Zigbee module; The output of power management module is connected to coding and decoding module and Zigbee module respectively, is coding and decoding module and Zigbee module for power supply; First end of coding and decoding module is connected to the Zigbee module, with mutual with the Zigbee module data; The selector switch unit comprises first end, second end and the 3rd end, and the selector switch unit is selectively logical or first end and the 3rd termination led to first end and second termination; Selector switch unit first end is connected to headset plug, and second end is connected to headphone unit, and the 3rd end is connected to the Zigbee unit; When selecting switch element that first end is led to second termination, the MIC link of headset plug unit is connected with the MIC of headphone unit, and the first sound channel link is connected with first phonation unit, and the second sound channel link is connected with second phonation unit; When selecting switch element that first end and the 3rd termination is logical, the input of power management module is connected to the first sound channel link of headset plug unit, via first sound channel circuit introducing power supply; Second end of coding and decoding module is connected with the second sound channel link of headset plug unit, via the second sound channel line input signal; The 3rd end of coding and decoding module is connected with the MIC link of headset plug unit, via the MIC line output signal.
The Headphone device that comprises the Zigbee communication function of the present invention with earphone and Zigbee adapter design together, by the switching of selector switch, is selected ear-phone function or Zigbee adapter functions dexterously easily.
Description of drawings
Fig. 1 is Zigbee adapter theory diagram of the present invention;
Fig. 2 is the theory diagram of Headphone device of the present invention;
Fig. 3 is an embodiment of Headphone device shown in Figure 2;
Fig. 4 is application schematic diagram of the present invention.
Embodiment
Below, will describe in detail to the present invention in conjunction with Figure of description.
As shown in Figure 1, be Zigbee adapter theory diagram of the present invention.The Zigbee adapter comprises headset plug unit and Zigbee unit.
The headset plug unit is the employed headset plug of mobile phone, and it comprises MIC link, the first sound channel link, second sound channel link.
The Zigbee unit comprises: power management module, coding and decoding module, Zigbee module.As shown in Figure 3, power management module comprises transformer, AC/DC, boosts/the voltage stabilizing chip.The modulation demodulation system of coding and decoding module is a kind of in dual-tone multifrequency (DTFM), frequency shift keying (FSK), phase shift keying (PSK), the amplitude shift keying (ASK).
The first sound channel link of headset plug unit is connected to the input of transformer, the output of transformer is connected to the input of AC/DC, the output of AC/DC is connected to and boosts/input of voltage stabilizing chip, boost/output of voltage stabilizing chip is connected to coding and decoding module and Zigbee module respectively, for coding and decoding module and Zigbee module provide electric energy.Like this, first sound channel (can be L channel or R channel) of smart machine (smart mobile phone, panel computer etc.) by earphone interface be to the power management module power supply, then by power management module to coding and decoding module and Zigbee module for power supply.
The second sound channel link of headset plug unit is connected to second end of coding and decoding module, and first end of coding and decoding module is connected to the Zigbee module.The MIC link of headset plug unit is connected to the 3rd end of coding and decoding module.Data-signal in the smart machine is input in the coding and decoding module via the second sound channel link of headset plug unit, carry out coding and decoding in the coding and decoding module and export the Zigbee module to by first end by the coding and decoding module, be sent to outside Zigbee equipment, Zigbee thermometer as shown in Figure 4, blood oxygen instrument etc. by the Zigbee module.The data of outside Zigbee equipment are sent to the Zigbee module, export the coding and decoding module to by the Zigbee module again and carry out coding and decoding, and encoded decoded data export smart machine to via the MIC link of headset plug unit.In brief, the second sound channel of Zigbee adapter by earphone receives the signal of smart machine, by MIC to the smart machine output signal.Thus, finish the mutual of smart machine and outside Zigbee equipment.
Zigbee adapter among Fig. 1 is a kind of adapter of specialty, only is used for adaptive Zigbee equipment.Like this, mobile phone needs special such adapter armature that is equipped with, and carries cumbersome.For this reason, the present invention also proposes a kind of Headphone device that comprises above-mentioned Zigbee adapter, ideally with earphone and above-mentioned Zigbee adapter combination together.
Be Headphone device of the present invention as described in Figure 2.Be compared to the Zigbee adapter of Fig. 1, Fig. 2 Headphone device extremely also comprises headphone unit and selector switch unit.
Headphone unit is exactly conventional earphone heads, comprises first phonation unit, second phonation unit, MIC.
The selector switch unit can equivalence be a multitool commutator, is used for the headset plug unit optionally is connected with headphone unit or Zigbee unit, as Fig. 2, shown in Figure 3.
When the headset plug unit was connected with the Zigbee unit, headphone unit was not worked, and entire circuit can equivalence be above-mentioned Zigbee adapter.When the headset plug unit was connected with headphone unit, Zigbee did not work the unit, and entire circuit can equivalent circuit for ear speaker device commonly used.
Namely, when the headset plug unit is connected with headphone unit (when the selector switch unit is logical with first end and second termination), the MIC link of headset plug unit is connected with the MIC of headphone unit, the first sound channel link is connected with first phonation unit, and the second sound channel link is connected with second phonation unit;
When the headset plug unit is connected with headphone unit (when the selector switch unit is logical with first end and the 3rd termination), the input of power management module is connected to the first sound channel link of headset plug unit, introduces power supply via the first sound channel circuit; Second end of coding and decoding module is connected with the second sound channel link of headset plug unit, via the second sound channel line input signal; The 3rd end of coding and decoding module is connected with the MIC link of headset plug unit, via the MIC line output signal.
Fig. 4 is the concrete application of of Headphone device of the present invention.Various forms of portable medical digital terminal among the figure can be worn on the human body, and these digital terminals at least one and ZigBee module networking of the present invention form the ZigBee star network, realizes collection and the wireless transmission of physiological data.The ZigBee module is carried out coding and decoding after receiving the physiological data of digital terminal transmission, is input in the smart mobile phone by the MIC interface then to show, store; Smart mobile phone can send control command by R channel, by coding and decoding, is wirelessly sent to various forms of portable medical digital terminals through the ZigBee module, realizes that smart mobile phone is to the control of digital terminal.
Headphone device of the present invention passes through selector switch, according to demand gating earphone or Zigbee module, do not need special configuration Zigbee adapter, realize Zigbee communication on the basis of not adding additional attachments, for smart mobile phone or smart machine user provide great convenience with communicating by letter of outside Zigbee equipment.