Recently received a project, need to use microchip company produced Bluetooth module, the module comes with ceramic antenna, Bluetooth communication effective distance of 20 meters, support serial, I²c Drive. This is mainly if the study of serial drive, because it is the first contact with Bluetooth, then the first need to be familiar with some concepts.
The technical information of the Bluetooth module can be downloaded from the URL: http://download.csdn.net/detail/camelbrand/8957967, the preferred need to know the hardware connection diagram of the module, according to the previous download of the Data manual "Bm77_data_ sheet_v2.0r "The package diagram for this module is shown in
I only use the Bluetooth module's pass-through function, that is, Bluetooth power on, received from the Bluetooth wireless data A, Bluetooth through 23-pin TXD forwarding a out, from 22-pin RXD input data b, Bluetooth through the wireless side send B out, this test uses the minimum system hardware connection is pin 1, 2, 3, 33 , 32, 31 GND, pin 4, 5, 7 VCC3.3. Note If you use the USB-to-TTL module to power the Bluetooth module, the Bluetooth module may not function properly due to insufficient module drive capability, and if you want to test whether the Bluetooth module is powered up, Only the above VCC3.3 and GND pins are all connected to the DC regulated power supply (the driving voltage is 3.3V, be careful not to use 5V), and then through the Bluetooth phone or notebook (notebook need to bring Bluetooth) search Bluetooth module, the default factory Bluetooth name is DUAL-SPP, shown as a Bluetooth headset connection icon. My Android phone is Huawei Glory 4X full Netcom (Huawei P7 and P8 can be connected successfully), tested unable to search for the module, the iphone can be searched, but unable to connect, I finally use the Lenovo Notebook g40-70m connection success, and just started unable to search for the peripheral, The DUAL-SPP bluetooth module can be searched after the driver has upgraded the notebook Bluetooth driver to the latest version.
After the connection is successful, you can view the Bluetooth connection status via the Bluetooth open settings
By looking at the COM port, if you have the following list of ports, you can use the Serial debugging assistant to communicate with the Bluetooth module via COM5
Note that the default factory BM77SPPS3 module serial baud rate is 115200, the computer debugging software uses the following configuration, wherein the HELLO1 is through the BM77 module of the 22-pin RXD period input character data, The string data is finally sent through the Bluetooth module to the notebook serial debugging assistant software. The actual use of single-chip driver BM77SPPS3 module does not need any BM77SPPS3 initialization code, only the microcontroller corresponding to the Bluetooth module connected to the serial port configuration good baud rate and other basic parameters can be sent through the Bluetooth module data transmission operation, It can be seen that the Bluetooth module by default factory transmission mode operation is very convenient.
Bluetooth parameter Configuration :
Bluetooth burning configuration If you need to modify the name of the Bluetooth module, you can pass the driver code (reference URL, url 2, I have not tested the verification, interested friends can try, the driver code based on the STM32 platform) modification, you can also use the resources provided at the beginning of this article to download the directory/HTTP/ download.csdn.net/detail/camelbrand/8957967 in the Windows Configuration tool modification, it is important to note that Windows software can be configured via the serial port Bluetooth module, note that the Bluetooth module through the serial port to modify the parameters before To connect the module's 18-pin P20 to a 1k or 2K resistor and then ground, use the "bm77spp03 UI v301.106.exe" software configuration to generate a TXT configuration document XX, and then use the "E2prom_tool_100913.exe" Software load txt document XX, using the serial port to burn configuration parameters to the BM77SPPS3 module, if you want to continue to use the Bluetooth module, you need to be 18 pins (P20) floating.
Reference URL:
URL 1: The module's Companion information booklet is available at the following URL:
Http://www.stmcu.org/module/forum/forum.php?mod=viewthread&tid=600292&extra=page%3D&page=1
Address 2: Serial port driver Bm77spps reference driver code:
Http://www.pudn.com/downloads669/sourcecode/embedded/detail2709075.html
BM77SPPS3 Bluetooth Module Serial drive research (notebook through the serial Software debugging Bluetooth module)