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 comprising this Zigbee adapter.
Background technology
ZigBee technology is a kind of emerging wireless communication technology, it has the advantages such as low-power consumption, low cost, short time-delay, MANET, but after first specification of ZigBee in 2004 is released, ZigBee wireless technology is not developed fully, wherein have an important reason to be exactly lack the terminal equipment being integrated with ZigBee technology, this brings serious obstruction to the application extension of ZigBee technology.
Smart mobile phone became rapidly an indispensable part in people's life in recent years, if so by ZigBee applications of wireless technology on smart mobile phone, can have very important significance to the development of ZigBee technology.
Under present circumstances, the design be applied to by ZigBee technology on smart mobile phone is multifarious.Patent 200810068563.9 (a kind of mobile phone based on ZIGBEE technology and remote wireless control method) discloses a kind of mobile phone based on ZigBee technology and remote wireless control method, and making keeps in communication using the equipment with ZigBee module as controlled end and the mobile phone terminal with ZigBee module as controller under ZigBee ad-hoc network is connected.Patent 201010239402.9 (mobile phone intelligent card of band Zigbee protocol communication function and a kind of mobile phone) 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 cards, supplementing with money or function of swiping card of IC-card can also have been realized.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 integrated on mobile phone or smart card ZigBee module, is integrated on mobile phone and makes mobile phone have specificity, be inconvenient to expand; On smart cards integrated, be inconvenient to dismantle and control.
Summary of the invention
In order to make smart machine have 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; Zigbee unit comprises power management module, coding and decoding module, Zigbee module; 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, enters power supply via first sound diatom pass; The output of power management module is connected to coding and decoding module and Zigbee module respectively, for coding and decoding module and Zigbee module are powered; The first end of coding and decoding module is connected to Zigbee module, with Zigbee module data interaction; Second end of coding and decoding module is connected with the second sound channel link of headset plug unit, via second sound channel line input signal; 3rd end of coding and decoding module is connected with the MIC link of headset plug unit, via MIC line output signal.
Preferably, the modulation /demodulation of coding and decoding module is the one in dual-tone multifrequency, frequency shift keying, phase shift keying, amplitude shift keying.
Preferably, power management module comprises transformer, AC/DC, boosting/voltage stabilizing chip; Transformer inputs is connected to the input of power management module, and transformer output is connected to the input of AC/DC, and the output of AC/DC is connected to boosting/voltage stabilizing chip input, and the output of boosting/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 when itself not possessing Zigbee communication function, makes it to possess Zigbee communication function, thus is connected with Zigbee peripheral hardware easily.
The present invention also proposes a kind of Headphone device comprising Zigbee communication function, and it comprises: headset plug unit, headphone unit, Zigbee unit and selector switch unit; Headset plug unit comprises MIC link, the first sound channel link, second sound channel link; Headphone unit comprises the first phonation unit, the second phonation unit, MIC; 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, for coding and decoding module and Zigbee module are powered; The first end of coding and decoding module is connected to Zigbee module, with Zigbee module data interaction; Selector switch unit comprises first end, the second end and the 3rd end, and first end and the second termination selectively lead to or first end and the 3rd termination led to by selector switch unit; Selector switch unit first end is connected to headset plug, and the second end is connected to headphone unit, and three-terminal link is to Zigbee unit; When selecting switch element first end and the second termination to be led to, the MIC link of headset plug unit is connected with the MIC of headphone unit, and the first sound channel link is connected with the first phonation unit, and second sound channel link is connected with the second phonation unit; When selecting switch element first end and the 3rd termination to be led to, the input of power management module is connected to the first sound channel link of headset plug unit, enters power supply via first sound diatom pass; Second end of coding and decoding module is connected with the second sound channel link of headset plug unit, via second sound channel line input signal; 3rd end of coding and decoding module is connected with the MIC link of headset plug unit, via MIC line output signal.
Together with earphone designs with Zigbee adapter by the of the present invention Headphone device comprising Zigbee communication function dexterously, by the switching of selector switch, select ear-phone function or Zigbee adapter function easily.
Accompanying drawing explanation
Fig. 1 is Zigbee adapter theory diagram of the present invention;
Fig. 2 is the theory diagram of Headphone device of the present invention;
The embodiment that Fig. 3 is the Headphone device shown in Fig. 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.Zigbee adapter comprises headset plug unit and Zigbee unit.
The headset plug that headset plug unit and mobile phone use, it comprises MIC link, the first sound channel link, second sound channel link.
Zigbee unit comprises: power management module, coding and decoding module, Zigbee module.As shown in Figure 3, power management module comprises transformer, AC/DC, boosting/voltage stabilizing chip.The modulation demodulation system of coding and decoding module is the one in dual-tone multifrequency (DTFM), frequency shift keying (FSK), phase shift keying (PSK), amplitude shift keying (ASK).
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 the input of boosting/voltage stabilizing chip, the output of boosting/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, smart machine (smart mobile phone, panel computer etc.) is powered to power management module by first sound channel (can be L channel or R channel) of earphone interface, is then powered to coding and decoding module and Zigbee module by power management module.
The second sound channel link of headset plug unit is connected to the second end of coding and decoding module, and the first end of coding and decoding module is connected to Zigbee module.The MIC link of headset plug unit is connected to the 3rd end of coding and decoding module.Data-signal in smart machine is input in coding and decoding module via the second sound channel link of headset plug unit, through exporting Zigbee module to by the first end of coding and decoding module after coding and decoding module carries out coding and decoding, outside Zigbee equipment is sent to, Zigbee thermometer as shown in Figure 4, BOLD contrast etc. by Zigbee module.The data of outside Zigbee equipment are sent to Zigbee module, then export coding and decoding module to by Zigbee module and carry out coding and decoding, and encoded decoded data export smart machine to via the MIC link of headset plug unit.In brief, Zigbee adapter receives the signal of smart machine by the second sound channel of earphone, is outputed signal to smart machine by MIC.Thus, the mutual of smart machine and outside Zigbee equipment is completed.
Zigbee adapter in Fig. 1 is a kind of adapter of specialty, only for adaptive Zigbee equipment.Like this, the adapter armature that mobile phone needs special outfit such, carries cumbersome.For this reason, the present invention also proposes a kind of Headphone device comprising above-mentioned Zigbee adapter, ideally earphone and above-mentioned Zigbee adapter is combined.
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 the first phonation unit, the second phonation unit, MIC.
Selector switch unit can be equivalent to a multitool commutator, for being connected with headphone unit or Zigbee unit by headset plug Unit selection, as shown in Figure 2 and Figure 3.
When headset plug unit is connected with Zigbee unit, headphone unit does not work, and whole circuit can be equivalent to above-mentioned Zigbee adapter.When headset plug unit is connected with headphone unit, Zigbee unit does not work, and whole circuit can be equivalent to the circuit of conventional ear speaker device.
Namely, when headset plug unit is connected with headphone unit (when first end and the second termination lead to by selector switch unit), the MIC link of headset plug unit is connected with the MIC of headphone unit, first sound channel link is connected with the first phonation unit, and second sound channel link is connected with the second phonation unit;
When headset plug unit is connected with headphone unit (when first end and the 3rd termination lead to by selector switch unit), the input of power management module is connected to the first sound channel link of headset plug unit, enters power supply via first sound diatom pass; Second end of coding and decoding module is connected with the second sound channel link of headset plug unit, via second sound channel line input signal; 3rd end of coding and decoding module is connected with the MIC link of headset plug unit, via MIC line output signal.
Fig. 4 is an embody rule of Headphone device of the present invention.Various forms of portable medical digital terminal in figure can be worn on human body, and these digital terminals at least one and ZigBee module networking of the present invention form ZigBee star network, realize collection and the wireless transmission of physiological data.ZigBee module carries out coding and decoding after receiving the physiological data of digital terminal transmission, is then input to display in smart mobile phone by MIC interface, is stored; Smart mobile phone can send control command by R channel, by coding and decoding, is wirelessly sent to various forms of portable medical digital terminal, realizes the control of smart mobile phone to digital terminal through ZigBee module.
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, the basis of not adding additional attachments realizes Zigbee communication, for the communication of smart mobile phone or smart machine user and outside Zigbee equipment provides great convenience.