[Technical dry goods] Industrial grade BLE5.2 Bluetooth module SKB378 tutorial, AT command set

SKB378 is a highly integrated Bluetooth 5.2 module , which can be used for high-speed, short-range wireless communication in the 2.4GHz ISM frequency band. Industrial-grade standard, supports master-slave mode (1 master to 8 slaves), supports serial port transparent transmission, AT command control, and supports AoA Bluetooth high-precision indoor positioning, the module integrates a 32-bit ARM Cotex-M33 processor with a main frequency of 76.8 MHz, and built-in 32kB RAM and 512kB Flash, supporting analog or digital peripherals. The receiving sensitivity is as high as -106.7dBm, and it can realize data transparent transmission at a distance of 50+ meters . It is the preferred Bluetooth solution for IoT data collection, data transparent transmission, intelligent control, AoA Bluetooth beacon, and AoA Bluetooth gateway.

picture

 SKB378 has rich peripherals, such as UART, SPI, SmartCard-ISO7816, IrDA, I2S , I2C, PDM, etc.

SKB378 is more cost-effective, supports low power consumption mode, and the sleep current is less than 1.8μA . The size, module appearance, and package are consistent with the existing BLE4.2 Bluetooth module SKB369 and BLE5.0 Bluetooth module SKB501. In terms of performance, SKB378 has lower power consumption and can transmit longer distances.

SKB378 tutorial

picture

1. First, connect the module to the computer through the USB-TTL serial cable.

2. Open the serial port debugging assistant, and select the correct port number and serial port baud rate (the initial baud rate value of some modules is 115200, but the actual value may be 9600 during actual use, and attention should be paid when using it).

3. Send the following commands through the serial port debugging assistant to confirm whether the Bluetooth module is working normally and configure the Bluetooth module.


1. Obtain SKB378 AT command

AT+? or AT+HELP , the command is used to query the AT commands supported by the module and the usage instructions, and to judge whether the Bluetooth module SKB378 is working normally. If the AT command is output normally, it can be judged that the module is working normally.

picture

2. Get the firmware version

AT+VER , used to check the firmware version of SKB378.

picture

3. View SKB378MAC address

AT+MAC , get the Bluetooth MAC address.

picture

4. Obtain the Bluetooth MAC address of the connected device

AT+PEER , get the MAC address of the connected device.

picture

5. Reset the Bluetooth module

AT+RESET , reset the Bluetooth module.

picture

6. Search for Bluetooth devices

AT+FACTORY , restore factory settings

picture

7. Obtain the working status of SKB378

AT+STATUS , get module status.

picture

8. Connect Bluetooth devices

AT+CON_MAC , use MAC address to connect a slave device, AT+CON_MAC=MAC address\r\n

picture

9. Disconnect the Bluetooth device

AT+DISCON , use the MAC address to disconnect the connected Bluetooth device: AT+DISCON=s\r\n m: disconnect as master; s: disconnect as slave.

picture

10. Query/set SKB378 serial port baud rate

AT+BAUD , you can query the current baud rate, or choose one of the fixed baud rates to set as the current baud rate, and it must be reset to take effect after setting.

picture

11. Query/Set SKB378 transmit power

AT+TXPWR , set the wireless transmission power of the module. The command is used to set the wireless transmission power of the module, and this command can increase or decrease the transmission distance. The SKB378 module only supports the following transmission power: -20/-16/-12/-8/-4/0/2/4/6.

picture

12. Query and set the broadcast name

AT+DEV_NAME , the command is used to query and set the broadcast name of SKB378, the name can be up to 20 bytes.

picture

13. Query and set the broadcast interval

AT+ADVINTVL , the command is used to query and set the broadcast interval of SKB378, the broadcast interval setting range of SKB378 module is 20ms~10000ms, step: 10ms.

picture

14. Scan the surrounding Bluetooth devices

AT+SCAN_BLE, scan and output BLE devices through the serial port, up to 100 devices can be output.

picture

15. Open or close the serial port

AT+UART_EN , open or close the serial port (not saved after power off), close the serial port to reduce power consumption; after closing the serial port, you cannot send commands through the serial port to open the serial port, you can choose to use the mobile phone to connect to the device and send this command to open the serial port or restart Power-on.

picture

16. Wake up other modules

AT+WAKE_UP , the module pulls up the wake-up pin (PB.00) by default, and the pin level follows the set value.

picture

After the above Bluetooth commands, a simple connection between Bluetooth modules can be realized, and then data can be sent between modules through the serial port. This is the serial port transparent transmission of a simple Bluetooth module working in master-slave mode. For more configuration details of SKB378, please refer to SKB378 AT command set . Refer to the data download of the SKB378 product page on the SKYLAB official website.

Application of SKB378

It can be widely used in advanced wearable devices, virtual and augmented reality, high-performance HID controllers, smart home, Bluetooth AoA positioning and industrial and IoT devices. Smart home, Internet of Things, LED lights, building management, Beacon, indoor positioning, Bluetooth gateway .

Guess you like

Origin blog.csdn.net/SKYLAB01/article/details/131944552