Двойной режим Bluetooth
Last updated
Last updated
The Bluetooth module is a standard transparent transmission module, which sends serial port data to devices connected to Bluetooth.
Insert the Bluetooth module into the Nyboard downloader socket and open the serial downloader to search for the Bluetooth signal of Bittle-xxxx (random number). The default password for pairing is “1234” or “0000” (for the convenience of connection, the default password for the newer version is set to “0000”). Please enter the password before pairing. After the pairing is successful, the system will assign a serial port number, and you can select the corresponding serial port number on the Arduino.
For Win10 users, the system will assign the "incoming" COM port and the "outgoing" COM port to Bluetooth, please use the "outgoing" COM port. For details, please check in the "Bluetooth Settings" of Win10.
If you want to use the BLE connection, please scan and connect to BittleBLE-xxxx (random number), and you can use the Lightblue or other tools to communicate with the Bittle.
If you want to configure the Bluetooth module, please refer to "JDY-23 AT Command List". Plug the Bluetooth module into the USB communication module debugging interface. The commonly used commands are listed below:
When you use serial terminal like "Arduino serial monitor" to set JDY-23 with AT commands, you must set "NL and CR", or JDY-23 module will not identify any AT command you send.
Usage
Command
Demo
Check BT module version
AT+VER
AT+VER
>+VER=JDY-23A-V2.21,Bluetooth V3.0+BLE
(BT module version infomation)
Check BT broadcast name
AT+NAME
AT+NAME
>+NAME=BITTLE
Change BT broadcast name
AT+NAME(名字)
AT+NAMEPiggy
>+OK
AT+NAME
>+NAME=Piggy
Check serial baud rate
AT+BAUD
AT+BAUD
>+BAUD=8 (8 = 115200, 7=57600)
Change serial baud rate
AT+BAUD
AT+BAUD7
>+OK (Set serial monitor to 57600)
AT+BAUD
>+BAUD=7