Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art, provide one to have alarm indication function, can by alarm sound Signal transmissions to the Bluetooth adapter of bluetooth earphone.
The object of the present invention is achieved like this: a kind of Bluetooth adapter with alarm indication function, is made up of, it is characterized in that Bluetooth control chip, USB control chip and LED light:
A, USB control chip is connected to regulation and control person's work station by USB interface, and the UART serial ports of USB control chip is connected with the UART serial ports of Bluetooth control chip, for transmitting alert files mark and CODEC coded audio data;
CPU in B, USB control chip according to the mark of institute's audio reception alert files not in the same way the respective pins cycle write all-zero code, drive the LED light-emitting flash of three groups of different colours to report to the police, the warning that significance level is different is distinguished by the mark of alert files and is represented by the LED of different colours;
The multi-functional I/O output port of C, USB control chip is connected with the LED of three groups of different colours, and during output low level, driving LED is luminous;
The CPU of D, Bluetooth control chip carries out CODEC software decode to CODEC coded audio data, and together with audible alarm file identification, passes to bluetooth earphone by the form of agreement by wireless blue tooth signal.
The present invention utilizes the transmission of Bluetooth audio signals to isolate the acoustic signal of different zone of responsibility, and can ensure that operating personnel can monitor the abnormality alarming in operation of power networks under mobile status, and its structure is simple, and reliable operation is low in energy consumption, size and weight little.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described:
As shown in Figure 1, USB interface J1 has 4 pins, and 1 pin (VBUS) transmits+5V voltage; 2 pin (Data-), 3 pin (Data+) adopt synchronous, asynchronous, interrupt mode transmitting user data; 4 pin (Gnd) ground connection.USB interface outside is connected to regulation and control person's work station, and inside is connected with USB chip IC 1.
USB control chip IC1 has 28 pins, and 1 pin of USB interface is connected to 20 pin (VCC) of USB control chip through the quick resistance of FE1 frequency, quick resistance FE1 filters electrophoresis and noise signal together with electric capacity C1 frequently, plays the effect of steady voltage; 2,3 pin of USB interface are connected to 16 pin (USBDM) and 15 pin (USBDP) of USB control chip, and the electric capacity C2 that centre connects over the ground and electric capacity C3 plays the filtration of noise signal; 19 pin (RESET#) of USB control chip are connected with 20 pin, power on and chip is automatically reset; 17 pin (3V3OUT) of USB control chip are 3.3V output port of power source, and the electric capacity C4 connected plays the effect of filtering electrophoresis and noise signal.17 pin are also connected with chip 12 pin (CBUS4) by resistance R1, Light-Emitting Diode LED1, and during 12 pin output low level, LED1 is luminous; 17 pin are also connected with chip 14 pin (CBUS3) by resistance R2, Light-Emitting Diode LED2, and during 14 pin output low level, LED2 is luminous; 17 pin are also connected with chip 13 pin (CBUS2) by resistance R3, Light-Emitting Diode LED3, and during 13 pin output low level, LED3 is luminous.12,13,14,22,23 pin (CBUS4, CBUS2, CBUS3, CBUS1, CBUS0) of USB control chip are multi-functional I/O output port, work in bit bang pattern, respective pins output low level will be driven when writing all-zero code, and there is stronger suction stream ability (>50mA), CPU in USB control chip according to the mark of institute's audio reception alert files not in the same way the respective pins cycle write all-zero code, and then drive different light-emitting diode tube light-emitting flash, reach the object of classification warning instruction.25,7,18,21,26 pin (AGND, GND, GND, GND, TEST) ground connection of USB control chip; 1,5,3,11 pin (TXD, RXD, RTS#, CTS#) work in UART serial ports pattern, are connected with Bluetooth control chip IC 2.USB control chip uses internal clocking, and other pin is not drawn, and is in state of insulation.
Bluetooth control chip has 56 pins.Its 49 pin (VDD2) is connected with 17 pin of USB control chip, as the digital circuit power source of 3.3V; 13 pin (VDD1) are also connected with 17 pin of USB control chip, as the analog circuit power supply of 3.3V; 47 pin (DIO7/RXD), 46 pin (DIO6/TXD), 45 pin (DIO5/RTSOUT), 44 pin (DIO4/CTSOUT) are connected with 1,5,3,11 pin of USB control chip respectively by UART serial ports, and these 4 pairs of pins are for completing the mark from USB control chip to Bluetooth control chip and CODEC coded audio data of transmitting alert files from; 32,6,3,7 pin (VSS1, VSS2, VSS3, VSSS) ground connection, for chip internal circuits provides shielding and reference level reliably; 8,9 pin (XTAL_OUT, XTAL_IN) are connected to the crystal oscillating circuit be made up of crystal oscillator Y1, electric capacity C5, electric capacity C6, for Bluetooth chip provides external clock reference; 10 pin (VB_SYNTH), by capacitor C13, C12 earth, make the reference voltage of this pin keep stable; 12 pin (VB_VCO), by capacitor C7, C8 earth, make the reference voltage of this pin keep stable; 18 pin (VB_RF), by capacitor C10, C11 earth, make the reference voltage of this pin keep stable; 27 pin (VB_A), by capacitor C14, C15 earth, make the reference voltage of this pin keep stable; 35 pin (VB_RAM), by capacitor C16 ground connection, make the reference voltage of this pin keep stable; 15 pin (VREF), by capacitor C9 ground connection, make the reference voltage of this pin keep stable; 14 pin (IBIAS), by resistance R4 ground connection, carry out bias current control by this pin; 16 pin (VB_RF2) are connected with 18 pin (VB_RF), and by capacitor C10, C11 earth, make the reference voltage of these 2 pins keep stable and filtered noise, these 2 pins are connected with 17 pin (RF_IN) by inductance L 1; 17 pin are antenna integrated by capacitor C17, inductance L 2 series connection access.Other pin of Bluetooth control chip is not drawn, and is in state of insulation.
First CPU in Bluetooth control chip carries out software CODEC decoding after receiving the CODEC coded audio data that USB control chip transmits, and together with the mark of audible alarm file, then pass to bluetooth earphone by the form of agreement by wireless blue tooth signal.
The external equipment of USB interface provides the data such as 5V working power and audio signal for USB control chip; The UART serial ports of USB control chip is connected with the UART serial ports of Bluetooth control chip, for transmitting mark and the CODEC coded audio data of alert files; The 3.3V output port of power source of USB control chip provides working power, simultaneously for Light-Emitting Diode provides driving power for Bluetooth control chip; The multi-functional I/O output port of USB control chip is connected with Light-Emitting Diode, to the Light-Emitting Diode connected be driven luminous during output low level, the Light-Emitting Diode of the present embodiment is 3, in order to realize classification alarm indication function, report to the police as redness represents category-A, orangely represent category-B warning etc., the warning that significance level is different is distinguished by the mark of alert files; The CODEC coded audio data received is carried out CODEC software decode by the CPU of Bluetooth control chip, and together with the mark of audible alarm file, bluetooth earphone is passed to by wireless blue tooth signal by the form of agreement, thus on Bluetooth adapter, realize alarm sound signal by the transmission of wireless blue tooth signal, drive specific Light-Emitting Diode to realize classification alarm indication function simultaneously.