CN101232310B - Blue tooth module, blue tooth equipment and information processing method thereof - Google Patents

Blue tooth module, blue tooth equipment and information processing method thereof Download PDF

Info

Publication number
CN101232310B
CN101232310B CN 200710046074 CN200710046074A CN101232310B CN 101232310 B CN101232310 B CN 101232310B CN 200710046074 CN200710046074 CN 200710046074 CN 200710046074 A CN200710046074 A CN 200710046074A CN 101232310 B CN101232310 B CN 101232310B
Authority
CN
China
Prior art keywords
bluetooth
hci
control command
bluetooth module
carry out
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN 200710046074
Other languages
Chinese (zh)
Other versions
CN101232310A (en
Inventor
施林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Flaircomm Technologies Inc.
Original Assignee
FUJIAN FLAIRCOMM TECHNOLOGIES Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FUJIAN FLAIRCOMM TECHNOLOGIES Inc filed Critical FUJIAN FLAIRCOMM TECHNOLOGIES Inc
Priority to CN 200710046074 priority Critical patent/CN101232310B/en
Publication of CN101232310A publication Critical patent/CN101232310A/en
Application granted granted Critical
Publication of CN101232310B publication Critical patent/CN101232310B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a Bluetooth module, a Bluetooth device, and an information processing method thereof. The Bluetooth module comprises a RF transceiver which is used for receiving and sending a Bluetooth signal; a memory, which is used for memorizing a Bluetooth module application program, a Bluetooth protocol application program, a HCI driver and an assignment program; a baseband microcontroller, which is used for connecting with the RF transceiver to complete the bottom hardware application under HCI of a Bluetooth protocol stack, and is also used for connecting and driving the memory, transforming a control command into a corresponding HCI command, transforming the HCI command into a corresponding control event, transforming the response generated after the control command or the HCI command is executed into the corresponding control command response, and completing the software protocol application above the HCI of the Bluetooth protocol stack; and a communication interface, which is used for transmitting the control command, the control command response and the control event. The Bluetooth module is applied to develop the Bluetooth device, therefore, the design is simplified, the development time is shortened, and the developing and designing cost is saved.

Description

Bluetooth module, bluetooth equipment and information processing method thereof
Technical field
The present invention relates to wireless communication field, particularly relate to a kind of bluetooth module, use electronic equipment and the information processing method thereof of this bluetooth module.
Background technology
Bluetooth (Bluetooth) is a kind of short-distance wireless communication technology, is operated in the 2.4GHz industry unified and open to the whole world, science, medical science (ISM) frequency range.The electronic equipments such as the various mobile devices of being furnished with Bluetooth technology, fixed communication apparatus, computer, set-top box, onboard system can (generally being within the 10m to 100m) communicating with each other and carry out the wireless messages exchange within closely.
Bluetooth specification is exactly the Bluetooth wireless communication consensus standard, and it has stipulated the standard that bluetooth applications should be followed and the requirement that need to reach, and according to the logic function of Bluetooth protocol, bluetooth protocol repertory divides bottom hardware, intermediate protocol layer and higher layer applications.Bottom hardware partly comprises Bluetooth RF (Bluetooth RF), base band (Baseband) and link controller, link manager (LMP), defined respectively bluetooth transceiver on the 2.4GHz frequency range, must satisfied requirement with safety and the control institute of mode transmission information frame, transmission link establishment of connection or dismounting and the link of frequency hopping.Intermediate protocol layer comprises logic link control and adapting protocol (L2CAP), service discovery protocol (SDP), serial ports simulation protocol (RFCOMM) and telephone communication agreement (TCS), finishes respectively service and service characteristic, emulation serial port (RS-232) available in the dismounting, service quality control, protocol multiplexing, discovering network of data, the functions such as call control signalling of speech and data between bluetooth equipment are provided.The higher layer applications part has been stipulated the conventional application such as Dial-up Network, earphone, local area network (LAN) access, file transfer at present, and various intermediate protocols and higher layer applications can realize radio communication by each self-corresponding Bluetooth protocol application program (Profile).
Bluetooth specification has been stipulated host controller interface (HCI) between bottom hardware and intermediate protocol layer, this is the interface between the software and hardware in the bluetooth protocol repertory, and HCI provides the unity of command interface of the hardware such as a control base band and link controller, link manager, status register.Existing exploitation with electronic equipment of Bluetooth function is based on HCI's more, as shown in Figure 1, the bluetooth chipset that main frame 10 and the chip business of electronic equipment provides (BT chipset) 11 is connected by HCI, the above software protocol application entity of HCI is that application program 101, Bluetooth protocol application program 102 operate on the main frame 10, and the following bottom hardware of HCI is used and finished by radio frequency 111, base band and link controller 112, the link manager 113 of bluetooth chipset 11.The physical bus interface 12 of HCI transport layer can adopt UART Universal Asynchronous Receiver Transmitter (UART), USB (USB), serial port etc., communication between main frame 10 and the bluetooth chipset 11 is undertaken by physical bus interface 12, physical bus interface 12 connects by the physical bus interface driver 103 in the main frame 10 and drives HCI driver 100, is connected with the HCI firmware 110 of bluetooth chipset 11 simultaneously.
HCI driver 100 and 110 unifications of HCI firmware are HCI, HCI transmits data, order and event by the mode of wrapping, wherein packet is two-way, the order bag can only be sent to bluetooth chipset 11 from main frame 10, the event bag is to be sent to main frame 10 from bluetooth chipset 11 all the time, most of order bags that main frame 10 sends all can trigger bluetooth chipset, and bluetooth chipset can produce corresponding event bag as response.HCI driver 100 is positioned at main frame 10, and when main frame 10 received that the notice of HCI event finds that event occurs, HCI driver 100 was analyzed the event bag of receiving and determined which kind of event occurs.The HCI driver 100 of main frame 10 on the one hand by interface be employed program 101, Bluetooth protocol application program 102 is called, finish the encapsulation of HCI order bag and packet, realization is to the carrying of upper layer application, realized on the other hand the HCI function collection in the agreement, made main frame 10 send HCI order bag and packet or to receive HCI event bag and the packet that bluetooth chipset 11 is returned to bluetooth chipset 11.HCI firmware 110 is positioned at bluetooth chipset 11, by the access to base band, link manager, hardware status register, control register and event registers, realizes bluetooth hardware HCI order.
Please refer to Chinese invention patent and the patent No. that the patent No. is ZL01123698.1 about the exploitation of bluetooth equipment is the Chinese utility model patent of ZL03234714.6.
Yet, above-mentioned exploitation based on HCI need to realize the bluetooth software protocol application at main frame, for general development technique personnel, grasp at short notice the ins and outs of HCI, bluetooth protocol repertory and protocol application, have sizable difficulty thereby develop the electronic equipment that meets Bluetooth specification.
Because bluetooth chipset has only been finished the following bottom hardware of HCI and has been used, when the bluetooth equipment of exploitation difference in functionality, need to use different application program and Bluetooth protocol application program at main frame. therefore, use above-mentioned bluetooth chipset exploitation bluetooth equipment and do not have versatility; And when the new function of exploitation bluetooth equipment, all to do larger modification to existing application program on the main frame and Bluetooth protocol application program, will increase like this exploitation and the difficulty that designs, prolong the construction cycle of product and slow down research and development of products to the speed in market.
In addition, owing to will realize bluetooth software agreement and protocol application thereof at main frame, thereby require all higher to the hardware and software of main frame, exploitation and design cost are higher, could realize the exploitation of Bluetooth function such as 16 of the primary processor on main frame needs even 32 s' microcontroller (MCU).
Summary of the invention
The problem that the present invention solves is to provide a kind of general bluetooth module, bluetooth equipment and information processing method thereof, with simplified design, shortening development time, saving exploitation and design cost.
For addressing the above problem, the invention provides a kind of bluetooth module, comprising:
Radio-frequency (RF) transceiver is used for receiving and sending Bluetooth signal;
Memory is used for storing bluetooth module application program, Bluetooth protocol application program, HCI driver and allocator;
The base band microcontroller, be used for being connected with described radio-frequency (RF) transceiver, finishing the following bottom hardware of HCI of bluetooth protocol repertory uses, also be used for connecting and driving described memory, need to be converted to corresponding HCI order with the mutual control command of other bluetooth equipment, will need to be converted to corresponding control event with the mutual HCI order of ancillary equipment, will execute the response that control command or HCI order produce and be converted to corresponding control command response, and finish software protocol application more than the HCI of bluetooth protocol repertory;
Communication interface is used for the control command that ancillary equipment sends is sent to described base band microcontroller and sends control command response, control event that described base band microcontroller sends to ancillary equipment.
Optionally, described radio-frequency (RF) transceiver and base band microcontroller are integrated in bluetooth chipset.
Optionally, described bluetooth module also comprises the digital signal processor that is connected with described base band microcontroller, for the treatment of audio digital signals.Described radio-frequency (RF) transceiver, base band microcontroller and digital signal processor are integrated in bluetooth chipset.
Optionally, described bluetooth module also comprises the pulse code modulation interface, is used for transmitting the audio digital signals of described digital signal processor processes.
Optionally, described bluetooth module comprises that also external memory storage drives expansion interface, is used for connecting described base band microcontroller and memory, drives memory for the base band microcontroller.
Optionally, described communication interface is the UART Universal Asynchronous Receiver Transmitter interface.
Optionally, described communication interface is internal integrate circuit bus interface, and described bluetooth module also comprises the interface conversion circuit of asynchronism transceiver and internal integrate circuit bus.
Optionally, described communication interface is USB (universal serial bus) or serial port.
Optionally, described bluetooth module also comprises: radio-frequency filter is used for being undertaken by the Bluetooth signal that antenna is received bandpass filtering and disturbs inhibition, and sends to described radio-frequency (RF) transceiver; Also be used for the analog signal that radio-frequency (RF) transceiver produces is carried out being gone out by antenna transmission after the filtering.
For addressing the above problem, the present invention also provides a kind of information processing method of bluetooth module, comprising:
Reception is from the control command of communication interface, need to carry out mutual control command with other bluetooth equipment and be converted to corresponding HCI order, carrying out does not need to carry out mutual control command with other bluetooth equipment, if produce the control command response that the response that responds, then will produce is converted to correspondence after executing control command;
Reception is from the HCI order of radio-frequency (RF) transceiver, need to carry out mutual HCI order with ancillary equipment and be converted to corresponding control event, carrying out does not need to carry out mutual HCI order with ancillary equipment, is converted to corresponding control command response if execute the rear response that produces response, then will produce of HCI order.
Optionally, describedly will need to carry out mutual control command with other bluetooth equipment and be converted to corresponding HCI order and refer to carry out the bluetooth module application program, judge whether the control command that receives needs to carry out mutual order with other bluetooth equipment, if then control command is converted to corresponding HCI order.
Optionally, described execution does not need to carry out mutual control command with other bluetooth equipment and refers to carry out the bluetooth module application program, judge whether the control command that receives needs to carry out mutual order with other bluetooth equipment, if not, then judge the type of control command: if control command is relevant with the bottom hardware of bluetooth protocol repertory, then call the HCI driver, finish the function of bluetooth bottom hardware by the HCI firmware of base band microcontroller; If control command is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then call the Bluetooth protocol application program, finish the function of bluetooth intermediate protocol layer, higher layer applications; If control command is relevant with the hardware of bluetooth module, then carry out the bluetooth module application program, the hardware of bluetooth module is operated.
Optionally, the described response that will produce is converted to corresponding control command response and refers to carry out the bluetooth module application program, and bluetooth module application program or Bluetooth protocol application program are carried out the control command response that the response that produces after the control command is converted to correspondence.
Optionally, describedly will need to carry out mutual HCI order with ancillary equipment and be converted to corresponding control event and refer to carry out allocator, according to the analysis result of HCI driver to the HCI order, judge whether the HCI order needs to carry out mutual order with ancillary equipment, if, then carry out the bluetooth module application program, the HCI order is converted to corresponding control event.
Optionally, described execution does not need to carry out mutual HCI order with ancillary equipment and refers to carry out allocator, according to the analysis result of HCI driver to the HCI order, judge whether the HCI order needs to carry out mutual order with ancillary equipment, if not, then according to the analysis result of HCI driver to the HCI order, judge the type of HCI order: if the HCI order is relevant with the bottom hardware of bluetooth protocol repertory, then carry out the bluetooth module application program, by bluetooth module application call HCI driver, and finished the function of bluetooth bottom hardware by the base band microcontroller; If the HCI order is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then carry out the Bluetooth protocol application program, finish the function of bluetooth intermediate protocol layer, higher layer applications.
Optionally, change the generation event if the information processing method of described bluetooth module also comprises the hardware state because of bluetooth module, then the event that produces is converted to corresponding control event.Described event with generation is converted to corresponding control event and refers to carry out the bluetooth module application program, and the event that produces is converted to corresponding control event.
For addressing the above problem, the present invention also provides a kind of bluetooth equipment, comprises main frame, is used for sending control command and receives control command response, control event; Bluetooth module, be used for receiving the control command that described main frame sends, need to carry out mutual control command with other bluetooth equipment and be converted to corresponding HCI order, carrying out does not need to carry out mutual control command with other bluetooth equipment, be converted to the control command response with executing the response that produces after the control command, receive the HCI order that other bluetooth equipment sends, need to carry out mutual HCI order with main frame and be converted to corresponding control event, carrying out does not need to carry out mutual HCI order with main frame, be converted to the control command response with executing the response that produces after the HCI order, control command is responded, the control event sends to main frame.
For addressing the above problem, the present invention also provides a kind of information processing method of bluetooth equipment, and described bluetooth equipment comprises main frame and bluetooth module, and described information processing method comprises:
Described main frame sends control command to bluetooth module, described bluetooth module will need to carry out mutual control command with other bluetooth equipment and be converted to corresponding HCI order, described bluetooth module is carried out not to be needed to carry out mutual control command with other bluetooth equipment, if there is the response that response occurs, described bluetooth module will produce to be converted to the control command response and to send described control command response to main frame after executing control command;
Described bluetooth module receives the HCI order, described bluetooth module will need to be converted to corresponding control event and to send described control event to main frame with the mutual HCI of main frame order, described bluetooth module is carried out does not need the HCI order mutual with main frame, if after executing the HCI order, have response to occur, the response that described bluetooth module will produce is converted to the control command response, and sends described control command response to main frame.
Compared with prior art, the bluetooth module of technique scheme to the periphery equipment (main frame) provides the interface of the response of control command, control command and control event, in bluetooth module, realize control command and HCI order conversion, carry out the response and the conversion of control command response and the conversion of HCI order and control event that produce after control command, the HCI order; Gather simultaneously bluetooth protocol repertory, realized the application of the bottom hardware that HCI is following and the application of the software protocol more than the HCI.Therefore, when using above-mentioned bluetooth module exploitation bluetooth equipment, the main frame of bluetooth equipment just can be controlled bluetooth module by control command and control command response and realize various Bluetooth functions.Because the application (bluetooth protocol repertory) relevant with bluetooth all is integrated in the bluetooth module, bluetooth module can be common to the exploitation of various bluetooth equipments, development technique personnel do not need to be grasped the ins and outs of HCI, bluetooth protocol repertory and application framework, just can develop at short notice the bluetooth equipment with Bluetooth function and only need grasp the response of simple control command and control command; And when the new function of exploitation bluetooth equipment, the control command that only need to increase in the application program of main frame corresponding Bluetooth function gets final product, and has so also just reduced the difficulty of exploitation and design.
In addition, because the main frame of bluetooth equipment only need send simple control command and receive simple control command response, do not need to realize bluetooth software agreement and application framework, thus not high for the controller requirement of main frame yet, and the microcontroller that normal operation is 8 just can be realized.Therefore, technique scheme has simplified design, shortens the development time, saves exploitation and design cost, the raising research and development of products is to the advantages such as speed in market.
Description of drawings
Fig. 1 is the structural representation that the main frame of electronic equipment in the prior art is connected with bluetooth chipset;
Fig. 2 is the hardware configuration schematic diagram of the bluetooth module of the embodiment of the invention;
Fig. 3 A and 3B are the flow charts of information processing method of the bluetooth module of the embodiment of the invention;
Fig. 4 is the system configuration schematic diagram of the bluetooth equipment of the embodiment of the invention;
Fig. 5 A and 5B are the flow charts of information processing method of the bluetooth equipment of the embodiment of the invention.
Embodiment
The bluetooth module of the embodiment of the invention to the periphery equipment (main frame) provides the interface of the response of control command, control command and control event, and the conversion, execution control command, the HCI that realize control command and HCI order in bluetooth module order the conversion of the rear response that produces and control command response and HCI orders and the conversion of the event of control, bluetooth module has been gathered bluetooth protocol repertory (comprising bottom hardware, HCI, intermediate protocol layer and higher layer applications) simultaneously, has realized the application of the bottom hardware that HCI is following and the application of the software protocol more than the HCI.Be described in detail below in conjunction with accompanying drawing and the preferred embodiment embodiment to bluetooth module of the present invention, bluetooth equipment and information processing method thereof.
Please refer to Fig. 2, it has shown the hardware configuration of the bluetooth module of the present embodiment.Described bluetooth module 2 comprises: bluetooth chipset 21, clock generator 22, radio-frequency filter (RF filter) 23, memory 24, UART interface 25, power supervisor 26, pulse code modulation (PCM) interface 27, audio output interface 28, audio input interface 29.
Described bluetooth chipset 21 comprises that radio-frequency (RF) transceiver 210, base band microcontroller 211, digital signal processor (DSP) 212, digital to analog converter (DAC) 213, analog to digital converter (ADC) 214, UART interface 215, pcm interface 216, external memory storage drive expansion interface 217.
Radio-frequency (RF) transceiver 210, base band microcontroller 211 are finished the HCI firmware of bluetooth protocol repertory and the function and application of the bottom hardware agreement below the HCI, the HCI firmware is realized bluetooth hardware HCI order by the access to base band, link manager, hardware status register, control register and event registers.Radio-frequency (RF) transceiver 210 receives the signal of other bluetooth equipment transmission and carries out the processing such as demodulation, analog-to-digital conversion, digital signal after base band microcontroller 211 received RF transceivers 210 are processed is also finished the operations such as corresponding bluetooth baseband processing, equipment room establishment of connection and condition managing, if have data feedback or bluetooth module 2 to send data to other bluetooth equipment, base band microcontroller 211 sends the data to radio-frequency (RF) transceiver 210, is undertaken converting analog signal to after the processing such as digital-to-analogue conversion, modulation by 210 pairs of data of radio-frequency (RF) transceiver and sends.
If what receive is audio signal, then base band microcontroller 211 sends to digital signal processor 212 processing such as decode with audio digital signals, audio digital signals after digital signal processor 212 is processed is through digital to analog converter 213 output audio analog signals, and digital to analog converter 213 can external loudspeaker or earphone.In addition, audio digital signals after digital signal processor 212 is processed also can be by pcm interface 21 6 or internal integrated circuit audio-frequency bus (I2S) output, and pcm interface 216 also can the audio reception digital signal and sent to digital signal processor 212 and process simultaneously.
Analog to digital converter 214 can be connected with microphone, the audio analog signals input of external microphone is through analog to digital converter 214 output audio digital signals, the processing such as encode of the audio digital signals of 212 pairs of analog to digital converters of base band microcontroller 211 control figure signal processors 214 output, audio digital signals after by base band microcontroller 211 digital signal processor 212 being processed again sends to radio-frequency (RF) transceiver 210, and 210 pairs of audio digital signals of radio-frequency (RF) transceiver carry out converting analog signal to after the processing such as digital-to-analogue conversion, modulation and send.
UART interface 215 provides the communication interface of bluetooth chipset 21 with ancillary equipment, described ancillary equipment is the main frame of the bluetooth equipment of the described bluetooth module 2 of application, and it sends control commands and receive the control command response by the base band microcontroller 211 of communication interface to bluetooth chipset 21.Except UART interface 215, bluetooth chipset 21 can also provide the communication interface of interfaces (not shown) conducts such as SPI, USB, programming input and output (PIO) with ancillary equipment.
Described clock generator 22 is used for providing work clock to bluetooth chipset 21.In the present embodiment, clock generator 22 is crystal oscillator (Crystal), can produce stable clock signal.
Described radio-frequency filter 23, be used for being undertaken by the bluetooth high-frequency signal (2.4GHz) that antenna 20 is received bandpass filtering and disturb the radio-frequency (RF) transceiver 210 that suppresses and send into bluetooth chipset 21, the analog signal that while radio-frequency (RF) transceiver 210 produces is launched by antenna 20 after radio-frequency filter 23 filtering.
Described memory 24 is used for storing bluetooth module application program, Bluetooth protocol application program, HCI driver and allocator (Dispatcher).Memory 24 is flash memory (Flash Memory), the base band microcontroller 211 of bluetooth chipset 21 drives expansion interface 217 connections and drives memory 24 by external memory storage, the response that control command is converted to HCI order, carries out control command, produces after the HCI order is converted to the control command response, the HCI order is converted to the control event, and the application that realizes the software protocol that the HCI of bluetooth protocol repertory is above.
Please in conjunction with reference to figure 2 and Fig. 4, bluetooth module 2 among Fig. 2 is identical with bluetooth module 4 among Fig. 4, memory 24 is identical with memory 44, stores bluetooth module application program 440, Bluetooth protocol application program 441, HCI driver 442 and allocator 443 in the memory 44.
Bluetooth module application program 440 is used for judging whether the control command that main frame sends needs the order mutual with other bluetooth equipment, if then control command is converted to corresponding HCI order; If not, then judge the type of control command: if control command is relevant with the bottom hardware of bluetooth protocol repertory, then call HCI driver 442; If control command is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then call Bluetooth protocol application program 441; If control command is relevant with the hardware of bluetooth module, then carry out control command, the hardware of bluetooth module is operated (such as control PIO, pcm interface etc.).
Bluetooth module application program 440 also is used for executing the response that produces after control command, the HCI order and is converted to the control command response; Need to carry out mutual HCI order with main frame and be converted to corresponding control event what allocator 443 distributed; According to the relevant HCI order of the bottom hardware with bluetooth protocol repertory that allocator 443 distributes, call HCI driver 442.
Bluetooth module application program 440 also is used for changing and generation event (for example PIO is drawn high) at the hardware state of bluetooth module, and the event that produces is converted to corresponding control event.
Bluetooth protocol application program 441 is used for receiving calling of bluetooth module application program 440, carries out control command, finishes the intermediate protocol layer of bluetooth protocol repertory, the Bluetooth function of higher layer applications.If produce response after executing control command, the response that then will produce returns to bluetooth module application program 440.
Bluetooth protocol application program 441 also is used for carrying out the HCI order that allocator 443 distributes, and finishes the intermediate protocol layer of bluetooth protocol repertory, the Bluetooth function of higher layer applications.If produce response after executing the HCI order, the response that then will produce sends to bluetooth module application program 440.
HCI driver 442 is used for receiving calling of bluetooth module application program 440, carries out control command, HCI order, finishes the function of bluetooth bottom hardware by the HCI firmware 418 of base band microcontroller 411.If produce response after the control command of executing, the HCI order, the response that then will produce returns to bluetooth module application program 440.
HCI driver 442, the HCI order that also is used for other bluetooth equipment is sent is resolved, and analysis result is sent to allocator 443.
Allocator 443 is used for the analysis result according to 442 pairs of HCI orders of HCI driver, judges whether the HCI order needs to carry out mutual order with main frame, if then the HCI call allocation is changed to bluetooth module application program 440; If not, then judge the type of HCI order:, then the HCI call allocation is carried out to bluetooth module application program 440 if the HCI order is relevant with the bottom hardware of bluetooth protocol repertory; If the HCI order is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then the HCI call allocation is carried out to Bluetooth protocol application program 441.
Control command, control command response and control event are corresponding to the various application of bluetooth, in the present embodiment, control command, control command response and control event comprise AT Command Set and the self-defining expansion AT command collection of phone control protocol, therefore, just can control bluetooth module 2 by control command, control command response and control event and realize various Bluetooth functions.
Described UART interface 25, be connected with the UART interface 215 of bluetooth chipset 21, be used for to the periphery that equipment provides communication interface, bluetooth module 2 receives the control command that ancillary equipment send by UART interface 25,215, and perhaps equipment sends control command response, control event to the periphery.Corresponding to SPI interface, USB interface, the PIO interface that bluetooth chipset 21 provides, bluetooth module 2 also can provide the corresponding SPI interface that connects, USB interface, PIO interface (not shown) as with the communication interface of ancillary equipment.In addition, bluetooth module 2 can also provide internal integrate circuit bus (I2C) interface, only needs to increase a U2C (UART to I2C) interface conversion circuit and get final product in bluetooth module 2.
Described power supervisor 26 is used for the power supply of input is carried out voltage transitions, provides required power supply to bluetooth chipset 21, clock generator 22, radio-frequency filter (RF filter) 23, memory 24, UART interface 25.
Described pcm interface 27 is connected with the pcm interface 216 of bluetooth chipset 21, is used for the audio digital signals after output digit signals processor 212 is processed and receives the audio digital signals of inputting.
Described audio output interface 28 is used for the audio analog signals that the digital to analog converter 213 of bluetooth chipset 21 is exported is delivered to external loud speaker or earphone.
Described audio input interface 29 is for the analog to digital converter 214 of the audio analog signals input of external microphone being delivered to bluetooth chipset 21.
Radio-frequency (RF) transceiver 210 shown in Figure 2, base band microcontroller 211 also can not be integrated in the bluetooth chipset 21, and directly be integrated in the bluetooth module 2, base band microcontroller 211 can directly connect UART interface 25, communicate by UART interface 25 and ancillary equipment, base band microcontroller 211 also can directly not connect and drive memory 24 by external memory storage driving expansion interface 217.Digital signal processor 212 also can not be integrated in the bluetooth chipset 21, and directly is integrated in according to actual needs in the bluetooth module 2, perhaps is external in bluetooth module 2.In addition, digital to analog converter 213, analog to digital converter 214 also can be integrated in the bluetooth module 2 according to actual needs, perhaps are external in bluetooth module 2; Clock generator 22, radio-frequency filter 23, power supervisor 26 also can be external in bluetooth module 2 as required.
The information processing method of above-mentioned bluetooth module please refer to Fig. 3 A and 3B.
Please in conjunction with reference to figure 3A and Fig. 4, Fig. 3 A is that bluetooth module receives the message processing flow from the control command of communication interface, and the hardware of bluetooth module 4 shown in Figure 4 is corresponding with the hardware of bluetooth module shown in Figure 22.
Step S11 receives the control command from communication interface.Ancillary equipment (main frame 3) sends control command by host communication interface (UART interface) 31, bluetooth module communication interface 45 to the base band microcontroller 411 of bluetooth module 4.
Step S12 judges whether described control command needs to carry out mutual order with other bluetooth equipment, if, then carry out step S13, if not, then carry out step S14.Base band microcontroller 411 drives memory 44, carries out bluetooth module application program 440, judges whether the control command that receives needs to carry out mutual order with other bluetooth equipment.
Step S13 is converted to the HCI order with control command.If described control command is to carry out mutual order with other bluetooth equipment, carry out bluetooth module application program 440, control command is converted to corresponding HCI order, finish this message processing flow.HCI order through being converted to sends to other bluetooth equipment through HCI firmware 418 and the radio-frequency (RF) transceiver 410 of HCI driver 442, base band microcontroller 411.
Step S14 carries out control command.If described control command is not to carry out mutual order with other bluetooth equipment, carry out bluetooth module application program 440, judge the type of control command: if control command is relevant with the bottom hardware of bluetooth protocol repertory, then call HCI driver 442, finish the function of bluetooth bottom hardware by the HCI firmware 418 of base band microcontroller 411; If control command is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then call Bluetooth protocol application program 441, finish the function of bluetooth intermediate protocol layer, higher layer applications; If control command is relevant with the hardware of bluetooth module, then carry out bluetooth module application program 440, the hardware of bluetooth module is operated (such as control PIO, pcm interface etc.).After executing control command, if there is response to occur, then carry out step S15; If response does not occur, then finish this message processing flow.
Step S15 is converted to the control command response with executing the response that produces after the control command.Carry out bluetooth module application program 440, bluetooth module application program 440 or Bluetooth protocol application program 441 are carried out the control command response that the response that produces after the control command is converted to correspondence.Control command response through being converted to is sent to the main frame microcontroller 30 of main frame 3 by bluetooth module communication interface 45, host communication interface 31 by base band microcontroller 411.
Please in conjunction with reference to figure 3B and Fig. 4, Fig. 3 B is that bluetooth module receives the message processing flow from the HCI order of radio-frequency (RF) transceiver 410, and the hardware of bluetooth module 4 shown in Figure 4 is corresponding with the hardware of bluetooth module shown in Figure 22.
Step S21 receives the HCI order from radio-frequency (RF) transceiver 410.The radio-frequency (RF) transceiver 410 of bluetooth module 4 receives the HCI order that other bluetooth equipment sends, and send to the HCI firmware 418 of base band microcontroller 411, base band microcontroller 411 drives memory 44, carries out HCI driver 442, and the HCI order that receives is resolved.
Step S22 judges whether described HCI order needs to carry out mutual order with main frame, if, then carry out step S23, if not, then carry out step S24.Carry out allocator 443, according to the analysis result of 442 pairs of HCI orders of HCI driver, judge whether the HCI order needs to carry out mutual order with main frame.
Step S23 is converted to the control event with the HCI order.If described HCI order is to carry out mutual order with main frame, then carry out bluetooth module application program 440, the HCI order is converted to corresponding control event, finish this message processing flow.Control event through being converted to is sent to the control event by bluetooth module communication interface 45, host communication interface 31 the main frame microcontroller 30 of main frame 3 by base band microcontroller 411.
Step S24 carries out the HCI order.If described HCI order is not to carry out mutual order with main frame, carry out allocator 443, analysis result according to 442 pairs of HCI orders of HCI driver, judge the type of HCI order: if the HCI order is relevant with the bottom hardware of bluetooth protocol repertory, then carry out bluetooth module application program 440, call HCI driver 442 by bluetooth module application program 440, and finished the function of bluetooth bottom hardware by base band microcontroller 411; If the HCI order is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then carry out Bluetooth protocol application program 441, finish the function of bluetooth intermediate protocol layer, higher layer applications.After executing the HCI order, if there is response to occur, then carry out step S25; If response does not occur, then finish this message processing flow.
Step S25 is converted to the control command response with executing the response that produces after the HCI order.Carry out bluetooth module application program 440, the response that produces after bluetooth module application program 440 or the 441 execution HCI orders of Bluetooth protocol application program is converted to corresponding control command responds.Control command response through being converted to is sent to the main frame microcontroller 30 of main frame 3 by bluetooth module communication interface 45, host communication interface 31 by base band microcontroller 411.
In addition, change the event (for example PIO is drawn high) that produces because of the hardware state of bluetooth module, then also can carry out bluetooth module application program 440, the event that produces is converted to corresponding control event, and by bluetooth module communication interface 45, host communication interface 31 the control event is sent to the main frame microcontroller 30 of main frame 3 by base band microcontroller 411.
Use above-mentioned bluetooth module and can develop easily the bluetooth equipment with Bluetooth function, Fig. 4 is the system configuration schematic diagram of described bluetooth equipment, comprises main frame 3 and bluetooth module 4.
Main frame 3 is used for sending control command and receives control command response, control event.Host hardware comprises main frame microcontroller 30 and host communication interface 31.Store host application program 300 in the main frame microcontroller 30, main frame microcontroller 30 calls host application program 300, sends control command and receives control command response, control event to bluetooth module 4 by host communication interface 31.
Bluetooth module 4 is used for the control command that Receiving Host 3 sends, if the control command that main frame 3 sends is to carry out mutual order with other bluetooth equipment, then control command is converted to corresponding HCI order; If the control command that main frame 3 sends is not to carry out mutual order with other bluetooth equipment, then carry out control command.If have response to occur after executing control command, then will execute the response that produces after the control command and be converted to the control command response, and send to main frame 3.
Bluetooth module 4 also is used for receiving the HCI order that other bluetooth equipment sends, if the HCI that other bluetooth equipment sends order is to carry out mutual order with main frame 3, then the HCI order is converted to corresponding control event, and sends to main frame 3; If the HCI that other bluetooth equipment sends order is not to carry out mutual order with main frame 3, then carry out the HCI order, if have response to occur after executing the HCI order, then will execute the response that produces after the HCI order and be converted to the control command response, and send to main frame 3.
In addition, change the event that produces because of the hardware state of bluetooth module 4, also can the event that produce be converted to the control event of correspondence by bluetooth module 4, and send to main frame 3.
The hardware of bluetooth module 4 comprises radio-frequency (RF) transceiver 410, base band microcontroller 411, memory 44 and bluetooth module communication interface 45.Radio-frequency (RF) transceiver 410 is used for receiving and sending Bluetooth signal; Radio-frequency (RF) transceiver 410 and base band microcontroller 411 are finished the application of the bottom hardware agreement below HCI firmware 418 and the HCI; Store bluetooth module application program 440, Bluetooth protocol application program 441, HCI driver 442 and allocator 443 in the memory 44, base band microcontroller 411 connects and driving memory 44, control storage 44 is converted to corresponding HCI order with the control command that receives, the response that produces is converted to corresponding control command response, the HCI order is converted to corresponding control event, and realizes the application of the software protocol that HCI is above; Bluetooth module communication interface 45 is connected with host communication interface 31, is used for sending the control command that main frame 3 sends to described base band microcontroller 411 and control command response, control event that described base band microcontroller 411 is sent send main frame to.The bluetooth protocol repertory relevant with bluetooth all is integrated in the bluetooth module 4, and therefore, bluetooth module 4 can be realized various Bluetooth functions, comprises the application of the bottom hardware that HCI is following and the application of the software protocol more than the HCI.Bluetooth module communication interface 45 has identical standard with the host communication interface 31 of main frame 3, is used for transfer control order, control command response and control event, and in the present embodiment, host communication interface 31 and bluetooth module communication interface 45 all are the UART interfaces.
The bluetooth module 4 of the present embodiment also is integrated with clock generator, radio-frequency filter, power supervisor, pcm interface, audio output interface, audio input interface, digital signal processor, digital to analog converter, analog to digital converter, external memory storage and drives expansion interface, and bluetooth module among the particular hardware structure of the bluetooth module 4 among Fig. 4 and Fig. 22 is corresponding and be described in detail in the above.
Illustrate that below in conjunction with Fig. 4 and Fig. 5 A the main frame 3 of above-mentioned bluetooth equipment sends the message processing flow of control command to bluetooth module 4.
Step S31, main frame 3 sends control command to bluetooth module 4.The console controller 30 of main frame 3 sends control command by host communication interface 31, bluetooth module communication interface 45 to bluetooth module 4.
Step S32, bluetooth module 4 judges whether described control command needs to carry out mutual order with other bluetooth equipment, if, then carry out step S33, if not, then carry out step S34.The base band microcontroller 411 of bluetooth module 4 receives control command and drives memory 44, carries out bluetooth module application program 440, judges whether the control command that receives needs to carry out mutual order with other bluetooth equipment.
Step S33, bluetooth module 4 is converted to the HCI order with control command.If described control command is to carry out mutual order with other bluetooth equipment, carry out bluetooth module application program 440, control command is converted to corresponding HCI order, finish this message processing flow.HCI order through being converted to sends to other bluetooth equipment through HCI firmware 418 and the radio-frequency (RF) transceiver 410 of HCI driver 442, base band microcontroller 411.
Step S34, bluetooth module 4 is carried out control command.If described control command is not to carry out mutual order with other bluetooth equipment, carry out bluetooth module application program 440, judge the type of control command: if control command is relevant with the bottom hardware of bluetooth protocol repertory, then call HCI driver 442, finish the function of bluetooth bottom hardware by the HCI firmware 418 of base band microcontroller 411; If control command is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then call Bluetooth protocol application program 441, finish the function of bluetooth intermediate protocol layer, higher layer applications; If control command is relevant with the hardware of bluetooth module, then carry out bluetooth module application program 440, the hardware of bluetooth module is operated (such as control PIO, pcm interface etc.).After executing control command, if there is response to occur, then carry out step S35; If response does not occur, then finish this message processing flow.
Step S35, bluetooth module 4 will execute the response that produces after the control command and be converted to the control command response.Carry out bluetooth module application program 440, bluetooth module application program 440 or Bluetooth protocol application program 441 are carried out the control command response that the response that produces after the control command is converted to correspondence.
Step S36, bluetooth module 4 sends the control command response to main frame 3.Control command response through being converted to is sent to the main frame microcontroller 30 of main frame 3 by bluetooth module communication interface 45, host communication interface 31 by the base band microcontroller 411 of bluetooth module 4.
Illustrate that below in conjunction with Fig. 4 and Fig. 5 B the bluetooth module 4 of above-mentioned bluetooth equipment sends the message processing flow of control command response, control event to main frame 3.
Step S41, bluetooth module 4 receives the HCI order.The radio-frequency (RF) transceiver 410 of bluetooth module 4 receives the HCI order that other bluetooth equipment sends, and send to the HCI firmware 418 of base band microcontroller 411, base band microcontroller 411 drives memory 44, carries out HCI driver 442, and the HCI order that receives is resolved.
Step S42, bluetooth module 4 judge whether described HCI order needs to carry out mutual order with main frame 3, if, then carry out step S43, if not, then carry out step S45.Carry out allocator 443, according to the analysis result of 442 pairs of HCI orders of HCI driver, judge whether the HCI order needs to carry out mutual order with main frame 3.
Step S43, bluetooth module 4 is converted to the control event with the HCI order.If described HCI order is to carry out mutual order with main frame, then carry out bluetooth module application program 440, the HCI order is converted to corresponding control event.
Step S44, bluetooth module 4 sends the control event to main frame 3.The base band microcontroller 411 of bluetooth module 4 sends to the control event by bluetooth module communication interface 45, host communication interface 31 the main frame microcontroller 30 of main frame 3, finishes this message processing flow.
Step S45, bluetooth module 4 is carried out the HCI order.If described HCI order is not to carry out mutual order with main frame 3, carry out allocator 443, analysis result according to 442 pairs of HCI orders of HCI driver, judge the type of HCI order: if the HCI order is relevant with the bottom hardware of bluetooth protocol repertory, then carry out bluetooth module application program 440, call HCI driver 442 by bluetooth module application program 440, and finished the function of bluetooth bottom hardware by base band microcontroller 411; If the HCI order is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then carry out Bluetooth protocol application program 441, finish the function of bluetooth intermediate protocol layer, higher layer applications.After executing the HCI order, if there is response to occur, then carry out step S46; If response does not occur, then finish this message processing flow.
Step S46, bluetooth module 4 will execute the response that produces after the HCI order and be converted to the control command response.Carry out bluetooth module application program 440, the response that produces after bluetooth module application program 440 or the 441 execution HCI orders of Bluetooth protocol application program is converted to corresponding control command responds.
Step S47, bluetooth module 4 sends the control command response to main frame 3.Control command response through being converted to is sent to the main frame microcontroller 30 of main frame 3 by bluetooth module communication interface 45, host communication interface 31 by the base band microcontroller 411 of bluetooth module 4.
In addition, change the event (for example PIO is drawn high) that produces because of the hardware state of bluetooth module 4, then also can carry out bluetooth module application program 440, the event that produces is converted to corresponding control event, and by bluetooth module communication interface 45, host communication interface 31 the control event is sent to the main frame microcontroller 30 of main frame 3 by the base band microcontroller 411 of bluetooth module 4.
In sum, the bluetooth module of technique scheme to the periphery equipment (main frame) interface of the response of control command, control command and control event is provided and in bluetooth module, realizes control command and the conversion of HCI order, carry out the response and the conversion of control command response and the conversion of HCI order and control event that produce after control command, the HCI order; Bluetooth module has been gathered bluetooth protocol repertory (comprising bottom hardware, HCI, intermediate protocol layer and higher layer applications) simultaneously, has realized the application of the bottom hardware that HCI is following and the application of the software protocol more than the HCI.Therefore, when using above-mentioned bluetooth module exploitation bluetooth equipment, the main frame of bluetooth equipment just can be controlled bluetooth module by control command, control command response and control event and realize various Bluetooth functions.Because the application (bluetooth protocol repertory) relevant with bluetooth all is integrated in the bluetooth module, bluetooth module can be common to the exploitation of various bluetooth equipments, development technique personnel do not need to be grasped the ins and outs of HCI, bluetooth protocol repertory and application framework, just can develop at short notice the bluetooth equipment with Bluetooth function and only need grasp simple control command, control command response and control event; And when the new function of exploitation bluetooth equipment, the control command that only need to increase in the application program of main frame corresponding Bluetooth function gets final product, and has so also just reduced the difficulty of exploitation and design.
In addition, because the main frame of bluetooth equipment only need send simple control command and receive simple control command response, control event, do not need to realize bluetooth software agreement and application program thereof, thus not high for the controller requirement of main frame yet, and the microcontroller that normal operation is 8 just can be realized.Therefore, technique scheme has simplified design, shortens the development time, saves exploitation and design cost, the raising research and development of products is to the advantages such as speed in market.
Although the present invention with preferred embodiment openly as above; but it is not to limit the present invention; any those skilled in the art without departing from the spirit and scope of the present invention; can make possible change and modification, so protection scope of the present invention should be as the criterion with the scope that claim of the present invention was defined.

Claims (29)

1. a bluetooth module is characterized in that, comprising:
The first module, be used for carrying out the bluetooth module application program, will need to be converted to corresponding HCI order with the mutual control command of other bluetooth equipment, need to be converted to corresponding control event with the mutual HCI of ancillary equipment order, call the HCI driver and carry out the control command relevant with the bottom hardware of bluetooth protocol repertory, call the intermediate protocol layer of the execution of Bluetooth protocol application program and bluetooth protocol repertory, the control command that higher layer applications is relevant, carry out the control command relevant with the hardware of bluetooth module, and will execute the response that control command or HCI order produces and be converted to corresponding control command response;
The second module, be used for carrying out allocator, change to the bluetooth module application program will need to carry out mutual HCI call allocation with ancillary equipment, the HCI call allocation relevant with the bottom hardware of bluetooth protocol repertory carried out to the bluetooth module application program, and the HCI call allocation relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory carried out to the Bluetooth protocol application program.
2. the information processing method of a bluetooth module is characterized in that, comprising:
Reception is from the control command of communication interface, need to carry out mutual control command with other bluetooth equipment and be converted to corresponding HCI order, carrying out does not need to carry out mutual control command with other bluetooth equipment, if produce the control command response that the response that responds, then will produce is converted to correspondence after executing control command;
Reception is from the HCI order of radio-frequency (RF) transceiver, need to carry out mutual HCI order with ancillary equipment and be converted to corresponding control event, carrying out does not need to carry out mutual HCI order with ancillary equipment, is converted to corresponding control command response if execute the rear response that produces response, then will produce of HCI order; Wherein, the judgement of control command type is passed through to carry out the bluetooth module application program realize, the judgement of HCI command type is passed through to carry out the allocator realization.
3. the information processing method of bluetooth module according to claim 2, it is characterized in that, describedly will need to carry out mutual control command with other bluetooth equipment and be converted to corresponding HCI order and refer to carry out the bluetooth module application program, judge whether the control command that receives needs to carry out mutual order with other bluetooth equipment, if then control command is converted to corresponding HCI order.
4. the information processing method of bluetooth module according to claim 2, it is characterized in that, described execution does not need to carry out mutual control command with other bluetooth equipment and refers to carry out the bluetooth module application program, judge whether the control command that receives needs to carry out mutual order with other bluetooth equipment, if not, then judge the type of control command:
If control command is relevant with the bottom hardware of bluetooth protocol repertory, then call the HCI driver, finish the function of bluetooth bottom hardware by the HCI firmware of base band microcontroller;
If control command is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then call the Bluetooth protocol application program, finish the function of bluetooth intermediate protocol layer, higher layer applications;
If control command is relevant with the hardware of bluetooth module, then carry out the bluetooth module application program, the hardware of bluetooth module is operated.
5. the information processing method of bluetooth module according to claim 2, it is characterized in that, the described response that will produce is converted to corresponding control command response and refers to carry out the bluetooth module application program, and bluetooth module application program or Bluetooth protocol application program are carried out the control command response that the response that produces after the control command is converted to correspondence.
6. the information processing method of bluetooth module according to claim 2, it is characterized in that, describedly will need to carry out mutual HCI order with ancillary equipment and be converted to corresponding control event and refer to carry out allocator, according to the analysis result of HCI driver to the HCI order, judge whether the HCI order needs to carry out mutual order with ancillary equipment, if, then carry out the bluetooth module application program, the HCI order is converted to corresponding control event.
7. the information processing method of bluetooth module according to claim 2, it is characterized in that, described execution does not need to carry out mutual HCI order with ancillary equipment and refers to carry out allocator, according to the analysis result of HCI driver to the HCI order, judge whether the HCI order needs to carry out mutual order with ancillary equipment, if not, then according to the analysis result of HCI driver to the HCI order, judge the type of HCI order:
If HCI order is relevant with the bottom hardware of bluetooth protocol repertory, then carry out the bluetooth module application program, by bluetooth module application call HCI driver, and finished the function of bluetooth bottom hardware by the base band microcontroller;
If the HCI order is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then carry out the Bluetooth protocol application program, finish the function of bluetooth intermediate protocol layer, higher layer applications.
8. the information processing method of bluetooth module according to claim 2 is characterized in that, changes the generation event if also comprise the hardware state because of bluetooth module, then the event that produces is converted to corresponding control event.
9. the information processing method of bluetooth module according to claim 8 is characterized in that, described event with generation is converted to corresponding control event and refers to carry out the bluetooth module application program, and the event that produces is converted to corresponding control event.
10. a bluetooth equipment is characterized in that, comprising:
Main frame is used for sending control command and receives control command response, control event;
Bluetooth module, be used for receiving the control command that described main frame sends, need to carry out mutual control command with other bluetooth equipment and be converted to corresponding HCI order, carrying out does not need to carry out mutual control command with other bluetooth equipment, be converted to the control command response with executing the response that produces after the control command, receive the HCI order that other bluetooth equipment sends, need to carry out mutual HCI order with main frame and be converted to corresponding control event, carrying out does not need to carry out mutual HCI order with main frame, be converted to the control command response with executing the response that produces after the HCI order, control command is responded, the control event sends to main frame;
Wherein, the judgement of control command type is passed through to carry out the bluetooth module application program realize, the judgement of HCI command type is passed through to carry out the allocator realization.
11. bluetooth equipment according to claim 10, it is characterized in that, described main frame comprises: main frame microcontroller and host communication interface, described main frame microcontroller sends control command and receives control command response, control event to described bluetooth module by host communication interface.
12. bluetooth equipment according to claim 11 is characterized in that, described bluetooth module comprises:
Radio-frequency (RF) transceiver is used for receiving and sending Bluetooth signal;
Memory is used for storing bluetooth module application program, Bluetooth protocol application program, HCI driver and allocator;
The base band microcontroller, be used for being connected with described radio-frequency (RF) transceiver, finishing the following bottom hardware of HCI of bluetooth protocol repertory uses, also be used for connecting and driving described memory, need to be converted to corresponding HCI order with the mutual control command of other bluetooth equipment, will need to be converted to corresponding control event with the mutual HCI order of main frame, will execute the response that control command or HCI order produce and be converted to corresponding control command response, and finish software protocol application more than the HCI of bluetooth protocol repertory;
The bluetooth module communication interface is connected with described host communication interface, is used for the control command that main frame sends is sent to described base band microcontroller and sends control command response, control event that described base band microcontroller sends to main frame.
13. bluetooth equipment according to claim 12 is characterized in that, described radio-frequency (RF) transceiver and base band microcontroller are integrated in bluetooth chipset.
14. bluetooth equipment according to claim 12 is characterized in that, described bluetooth module also comprises: the digital signal processor that is connected with described base band microcontroller, and for the treatment of audio digital signals.
15. bluetooth equipment according to claim 14 is characterized in that, described radio-frequency (RF) transceiver, base band microcontroller and digital signal processor are integrated in bluetooth chipset.
16. bluetooth equipment according to claim 14 is characterized in that, described bluetooth module also comprises: the pulse code modulation interface, and for the audio digital signals that transmits described digital signal processor processes.
17. according to claim 13 or 15 described bluetooth equipments, it is characterized in that, also comprise: external memory storage drives expansion interface, is used for connecting described base band microcontroller and memory, drives memory for the base band microcontroller.
18. bluetooth equipment according to claim 12 is characterized in that, described host communication interface and bluetooth module communication interface are the UART Universal Asynchronous Receiver Transmitter interface.
19. bluetooth equipment according to claim 12, it is characterized in that, described host communication interface and bluetooth module communication interface are internal integrate circuit bus interface, and described bluetooth module also comprises the interface conversion circuit of asynchronism transceiver and internal integrate circuit bus.
20. bluetooth equipment according to claim 12 is characterized in that, described host communication interface and bluetooth module communication interface are USB (universal serial bus) or serial port.
21. bluetooth equipment according to claim 12 is characterized in that, described bluetooth module also comprises: radio-frequency filter is used for being undertaken by the Bluetooth signal that antenna is received bandpass filtering and disturbs inhibition, and sends to described radio-frequency (RF) transceiver; Also be used for the analog signal that radio-frequency (RF) transceiver produces is carried out being gone out by antenna transmission after the filtering.
22. the information processing method of a bluetooth equipment, described bluetooth equipment comprises main frame and bluetooth module, it is characterized in that, comprising:
Described main frame sends control command to bluetooth module, described bluetooth module will need to carry out mutual control command with other bluetooth equipment and be converted to corresponding HCI order, described bluetooth module is carried out not to be needed to carry out mutual control command with other bluetooth equipment, if there is the response that response occurs, described bluetooth module will produce to be converted to the control command response and to send described control command response to main frame after executing control command;
Described bluetooth module receives the HCI order that other bluetooth equipment sends, described bluetooth module will need to be converted to corresponding control event and to send described control event to main frame with the mutual HCI of main frame order, described bluetooth module is carried out does not need the HCI order mutual with main frame, if after executing the HCI order, have response to occur, the response that described bluetooth module will produce is converted to the control command response, and sends described control command response to main frame;
Wherein, the judgement of control command type is passed through to carry out the bluetooth module application program realize, the judgement of HCI command type is passed through to carry out the allocator realization.
23. the information processing method of bluetooth equipment according to claim 22, it is characterized in that, described bluetooth module will need to carry out mutual control command with other bluetooth equipment and be converted to corresponding HCI order and refer to that bluetooth module carries out the bluetooth module application program, judge whether the control command that receives needs to carry out mutual order with other bluetooth equipment, if then control command is converted to corresponding HCI order.
24. the information processing method of bluetooth equipment according to claim 22, it is characterized in that, described bluetooth module execution does not need to carry out mutual control command with other bluetooth equipment and refers to bluetooth module execution bluetooth module application program, judge whether the control command that receives needs to carry out mutual order with other bluetooth equipment, if not, then judge the type of control command:
If control command is relevant with the bottom hardware of bluetooth protocol repertory, then call the HCI driver, finish the function of bluetooth bottom hardware by the HCI firmware of base band microcontroller;
If control command is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then call the Bluetooth protocol application program, finish the function of bluetooth intermediate protocol layer, higher layer applications;
If control command is relevant with the hardware of bluetooth module, then carry out the bluetooth module application program, the hardware of bluetooth module is operated.
25. the information processing method of bluetooth equipment according to claim 22, it is characterized in that, the described response that will produce is converted to corresponding control command response and refers to bluetooth module execution bluetooth module application program, and bluetooth module application program or Bluetooth protocol application program are carried out the control command response that the response that produces after the control command is converted to correspondence.
26. the information processing method of bluetooth equipment according to claim 22, it is characterized in that, describedly will need to carry out mutual HCI order with main frame and be converted to corresponding control event and refer to bluetooth module execution allocator, according to the analysis result of HCI driver to the HCI order, judge whether the HCI order needs to carry out mutual order with ancillary equipment, if, then carry out the bluetooth module application program, the HCI order is converted to corresponding control event.
27. the information processing method of bluetooth equipment according to claim 22, it is characterized in that, described bluetooth module execution does not need to carry out mutual HCI order with ancillary equipment and refers to bluetooth module execution allocator, according to the analysis result of HCI driver to the HCI order, judge whether the HCI order needs to carry out mutual order with ancillary equipment, if not, then according to the analysis result of HCI driver to the HCI order, judge the type of HCI order:
If HCI order is relevant with the bottom hardware of bluetooth protocol repertory, then carry out the bluetooth module application program, by bluetooth module application call HCI driver, and finished the function of bluetooth bottom hardware by the base band microcontroller;
If the HCI order is relevant with intermediate protocol layer, the higher layer applications of bluetooth protocol repertory, then carry out the Bluetooth protocol application program, finish the function of bluetooth intermediate protocol layer, higher layer applications.
28. the information processing method of bluetooth equipment according to claim 22, it is characterized in that, change the generation event if also comprise the hardware state because of bluetooth module, then described bluetooth module is converted to corresponding control event with the event that produces, and sends described control event to main frame.
29. the information processing method of bluetooth equipment according to claim 22, it is characterized in that, described bluetooth module is converted to corresponding control event with the event that produces and refers to bluetooth module execution bluetooth module application program, and the event that produces is converted to corresponding control event.
CN 200710046074 2007-09-18 2007-09-18 Blue tooth module, blue tooth equipment and information processing method thereof Expired - Fee Related CN101232310B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710046074 CN101232310B (en) 2007-09-18 2007-09-18 Blue tooth module, blue tooth equipment and information processing method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710046074 CN101232310B (en) 2007-09-18 2007-09-18 Blue tooth module, blue tooth equipment and information processing method thereof

Publications (2)

Publication Number Publication Date
CN101232310A CN101232310A (en) 2008-07-30
CN101232310B true CN101232310B (en) 2013-01-16

Family

ID=39898527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710046074 Expired - Fee Related CN101232310B (en) 2007-09-18 2007-09-18 Blue tooth module, blue tooth equipment and information processing method thereof

Country Status (1)

Country Link
CN (1) CN101232310B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101499827B (en) * 2009-03-03 2012-10-10 青岛海信移动通信技术股份有限公司 Mobile terminal and Bluetooth communication method thereof
CN101895319B (en) * 2009-05-22 2014-08-06 触动多媒体技术(上海)有限公司 Vehicle bluetooth wireless communication system
CN101895318B (en) * 2009-05-22 2013-12-18 触动多媒体技术(上海)有限公司 Bluetooth device and personal handheld equipment interacting system
CN101634976B (en) * 2009-08-27 2012-02-29 中兴通讯股份有限公司 Method and terminal for providing Bluetooth function for computer
KR20110054609A (en) * 2009-11-18 2011-05-25 삼성전자주식회사 Method and apparatus for remote controlling of bluetooth device
CN104378212A (en) * 2014-11-26 2015-02-25 上海爱信诺航芯电子科技有限公司 Safe Bluetooth secret key and encryption and decryption method thereof
CN104537745A (en) * 2014-12-31 2015-04-22 宁波江东索雷斯电子科技有限公司 Multifunctional electronic lock system
CN105608878B (en) * 2016-03-31 2019-05-10 武汉邮电科学研究院有限公司 A kind of multipoint acquisition data set and method based on bluetooth
CN105831934A (en) * 2016-05-23 2016-08-10 李志坚 Luggage with call reminding function
WO2017223411A1 (en) * 2016-06-23 2017-12-28 Jpmorgan Chase Bank, N.A. Systems and methods for implementing a proximity lock using bluetooth low energy
CN106961292A (en) * 2017-03-13 2017-07-18 合肥极友软件开发有限公司 A kind of multifunction blue tooth chip system
CN107784817A (en) * 2017-09-27 2018-03-09 无锡威达智能电子股份有限公司 Blue tooth voice control system
CN110519740B (en) * 2019-09-04 2022-07-22 大唐半导体科技有限公司 Link layer processing device
CN114040370B (en) * 2021-11-01 2023-10-20 国芯科技(广州)有限公司 Debugging system of many bluetooth equipment
CN114211501A (en) * 2021-12-27 2022-03-22 北京理工大学 Bluetooth-based wireless control module and control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367586A (en) * 2001-08-16 2002-09-04 金纯� Universal blue tooth circumscribing module
CN1426265A (en) * 2002-12-31 2003-06-25 艾威梯软件技术(北京)有限公司 Equipment and method for adding blue-tooth function on cellular telephone and smart Phone platform
CN2617083Y (en) * 2003-05-31 2004-05-19 金纯� Blue tooth development platform
CN1536776A (en) * 2003-04-08 2004-10-13 威海蓝牙科技有限公司 Blue-tooth intelligent module
CN1838054A (en) * 2005-03-22 2006-09-27 联想(北京)有限公司 Blue tooth data transmission processing apparatus and transmission method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367586A (en) * 2001-08-16 2002-09-04 金纯� Universal blue tooth circumscribing module
CN1426265A (en) * 2002-12-31 2003-06-25 艾威梯软件技术(北京)有限公司 Equipment and method for adding blue-tooth function on cellular telephone and smart Phone platform
CN1536776A (en) * 2003-04-08 2004-10-13 威海蓝牙科技有限公司 Blue-tooth intelligent module
CN2617083Y (en) * 2003-05-31 2004-05-19 金纯� Blue tooth development platform
CN1838054A (en) * 2005-03-22 2006-09-27 联想(北京)有限公司 Blue tooth data transmission processing apparatus and transmission method thereof

Also Published As

Publication number Publication date
CN101232310A (en) 2008-07-30

Similar Documents

Publication Publication Date Title
CN101232310B (en) Blue tooth module, blue tooth equipment and information processing method thereof
CN100490545C (en) Single transmitter-receiver set, radio communication equipment and radio communicating method thereof
JP5198247B2 (en) Method and apparatus for operating a wireless PAN network using an overlay protocol that enhances coexistence with the wireless LAN network
JP5268844B2 (en) Wireless communication system
CN100367187C (en) Method for simultanuously supporting multiple path blue-tooth audio application
US20040162108A1 (en) Communication adapter and method
CN102457618A (en) Novel mobile communication terminal
CN205277054U (en) Vehicle remote control key system
CN100596033C (en) Method for expanding blue-tooth chip
CN102857274A (en) Short range wireless communication apparatus
EP3247048B1 (en) System and method for embedded operating system achieving bluetooth slave device function
CN101651473B (en) Communication apparatuses, methods for manufacturing chips and method for providing wireless communication profile
KR19990016315A (en) Intercom method between mobile devices in time division wireless telephone
CN101123608A (en) Full frequency band and full duplex transmission power adjustable wireless network adapter and its implementation method
CN102904623A (en) Vehicle-mounted Bluetooth communication device
US20120230229A1 (en) Radio access data terminal and system and method for implementing data communication thereof
CN109525972B (en) Method, terminal and system for controlling other terminals through Bluetooth information
CN201700009U (en) Wireless access point with universal serial bus interface
CN101881965A (en) Bluetooth equipment used in engineering machinery and engineering machinery
CN201708939U (en) Communication terminal, communication subsystem and application subsystem
KR101653656B1 (en) Wifi-bluetooth bridge system and wifi-bluetooth connecting method using the same
CN201966912U (en) 2.4G wireless communication system
US20030086485A1 (en) Master to multi-slave asynchronous transmit fifo
KR100540567B1 (en) Massive storage data wireless receive-send system and method thereof
US20060234629A1 (en) Method for operating a short haul radio transmitting/ radio receiving system conforming to a short haul radio communication standard and a master device for implementing said method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: FUJIAN FLAIRCOMM TECHNOLOGIES INC.

Free format text: FORMER OWNER: SHANGHAI FLAIR INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20110104

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 201203 4/F, NO.5, BIBO ROAD, HIGH-TECH PARK, ZHANGJIANG, PUDONG, SHANGHAI TO: 350015 7/F, GUOMAI BUILDING, GUOMAI SCI-TECH PARK, NO.116, JIANGBIN EAST AVENUE, FUZHOU CITY, FUJIAN PROVINCE

TA01 Transfer of patent application right

Effective date of registration: 20110104

Address after: Riverside East Road in Fuzhou city of Fujian province 350015 Guomai Science Park No. 116, Guomai building 7

Applicant after: Fujian Flaircomm Technologies Inc.

Address before: 201203, Shanghai, Pudong Zhangjiang hi tech park, Blue Road No. 5, 4 floor

Applicant before: Shanghai Flair Information Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130116

Termination date: 20130918