1. The document will be optimized and updated from time to time. Before using this document, please make sure it is the latest version. 2. To obtain the latest document, please download it from the official website: www.rfstariot.com, www.szrfstar.com. Shenzhen RF-star Technology Co., Ltd. Page 1 of 78...
Generic Access UUID: 0x1800 .......................... 17 Device Name ................................17 Peripheral Preferred Connection Parameters ....................17 6 AT Command .................................. 18 6.1 AT Command Format ............................. 18 6.2 AT Command List ............................. 19 Shenzhen RF-star Technology Co., Ltd. Page 2 of 78...
Page 4
• PHY Rate ..............................44 • Baud Rate ..............................45 • Serial Port Frame Size and Timeout Time ..................46 • Serial Port Echo ............................47 • Device Status Display ..........................48 Shenzhen RF-star Technology Co., Ltd. Page 3 of 78...
Page 5
10.5.2 Vulnerable Module ........................... 71 10.5.3 High Bit Error Rate ........................... 71 10.6 Electrostatics Discharge Warnings ......................71 10.7 Soldering and Reflow Condition ......................71 12 Contact Us ..................................73 Appendix A: ..................................74 Shenzhen RF-star Technology Co., Ltd. Page 4 of 78...
Support acquire and modify the MAC address (take effect after resetting) by AT command. 10. Support modify the Bluetooth connection interval and control different transmit rates (dynamic power consumption adjustment) by AT command. Shenzhen RF-star Technology Co., Ltd. Page 6 of 78...
Connection interval: 100 ms 89.27 μA 5 dBm UART Enabled 1.41 mA Disabled broadcasting 2.3 Working Mode Specification The device supports four working modes as below: BLE slave mode BLE master mode Shenzhen RF-star Technology Co., Ltd. Page 7 of 78...
AT commands. 2.6 Description of Default Broadcast Data As shown in the figure above, it is the default broadcast data of the device. Shenzhen RF-star Technology Co., Ltd. Page 8 of 78...
If AT+CONNECT command failed to connect to the device, the prompt will show FAIL, please refer to the command description for the reason. Multi-connection means multiple devices automatically reconnect. When an opposite device disconnects abnormally, the device will initiate reconnection. Please refer to the command description. Shenzhen RF-star Technology Co., Ltd. Page 9 of 78...
Page 11
4 devices, so the data source should be included in the data packets, otherwise it cannot be identified which device the data came from. Figure 1. Multi-Connection Diagram Shenzhen RF-star Technology Co., Ltd. Page 10 of 78...
CC26X2R www.szrfstar.com V1.0 - Aug., 2022 3 Package and Pin Assignment Figure 2. PCB Footprint of RF-BM-2642B1 Figure 3. Pin Assignment of RF-BM-2642B1 Shenzhen RF-star Technology Co., Ltd. Page 11 of 78...
Page 13
MCU. All parameters will be reset to factory settings after this pin is set low RESTORE for 3 s. 10 ~ 16 P09 ~ P15 Connect J-Link JTAG_TMSC - Shenzhen RF-star Technology Co., Ltd. Page 12 of 78...
Page 14
V1.0 - Aug., 2022 Connect J-Link JTAG_TCKC - 19 ~ 33 P16 ~ P30 Power Supply Power supply: 1.8 V~ 3.8 V, recommended to 3.3 V Ground RESET Reset pin, active low (internal pull-up) Shenzhen RF-star Technology Co., Ltd. Page 13 of 78...
5. Most serial port tools on the PC end do not have CTS detection. When the Bluetooth communication rate is lower than the serial port rate, for reliable transparent transmission, please use flow control. It is recommended to use the software SecureCRT. Shenzhen RF-star Technology Co., Ltd. Page 14 of 78...
The command must Remarks end with a carriage return and line feed (CRLF) (\r\n or 0x0D0A etc.). The master needs to open notify to receive the data sent by the module. Shenzhen RF-star Technology Co., Ltd. Page 15 of 78...
Such as RF-BM-26X2B1, which indicates that this firmware is suitable for the corresponding model of the module. Manufacturer Name Characteristics UUID 0x2A29 Executable Operations READ Remarks Shenzhen RF-star Technology Co., Ltd. Shenzhen RF-star Technology Co., Ltd. Page 16 of 78...
The 1 bytes are the minimum coordinated connection interval. The 3 bytes are the maximum coordinated connection interval. Remarks The 5 bytes are Slave Latency. The 7 bytes are Supervision Timeout Multiplier. Shenzhen RF-star Technology Co., Ltd. Page 17 of 78...
7. The parameters in any command cannot contain invisible characters such as spaces and tabs. 8. The setting value can not be exceeding the settable range of the parameters. Shenzhen RF-star Technology Co., Ltd. Page 18 of 78...
Send data via AT command. Take effect immediately. Only effective in master mode and master-slave AT+CONNECT Connect the device. mode. Query the connected device list of the AT+CNT_LIST Take effect immediately. current device. Shenzhen RF-star Technology Co., Ltd. Page 19 of 78...
Page 21
Take effect after the next connection, can be AT+AUTH Query/set the user authentication. saved after power off. AT+AUTH_KEY Enter the user authentication passkey. Only effective in master mode and master-slave Shenzhen RF-star Technology Co., Ltd. Page 20 of 78...
Page 22
Query the device firmware version. Return Value of AT Command Successful operation. FAIL Failed operation. ERROR Error operation. BUSY The operation is busy, please wait for the fulfillment of the previous operation. Shenzhen RF-star Technology Co., Ltd. Page 21 of 78...
Parameter 2: Broadcast name of the current device. The factory default is Tv470u_XXXXXX. XXXXXX is the last three bytes of the MAC address. AT+NAME= Function Set the device name. Example AT+NAME=0,TEST-NAME Example AT+NAME=1,544553542D4E414D45 Shenzhen RF-star Technology Co., Ltd. Page 22 of 78...
Query the parameter range of this command. Example AT+ROLE=? AT+ROLE=[0,1,2,3] Return Value 0: Slave (by default) 1: Master Remark 2: Master-slave 3: Beacon, connectable. (The serial port is disabled by default and unavailable in this mode. The Shenzhen RF-star Technology Co., Ltd. Page 23 of 78...
Query the parameter range of this command. Example AT+POWER= AT+POWER=[-20,-18,-15,-12,-10,-9,-6,-5,-3,0,1,2,3,4,5] Return Value Remark AT+POWER? Function Query the current TX power of the device. Example AT+POWER? AT+POWER=4 Return Value Remark The current TX power is 4 dBm. Shenzhen RF-star Technology Co., Ltd. Page 24 of 78...
Enable unconnectable broadcasting with 500 ms broadcast interval. Take effect immediately under slave mode and Beacon mode, and take effect after reboot under Remark master-slave mode. Can be saved after power off. Shenzhen RF-star Technology Co., Ltd. Page 25 of 78...
DATA? Function Query the user-defined broadcast response packet data. Example AT+RSP_DATA? AT+RSP_DATA=0,XXXXXXXXXXXXXXXXXX…… Return Value Remark Parameter 1: The current device input format of broadcast response packet data. (0: ASCII, 1: HEX) Shenzhen RF-star Technology Co., Ltd. Page 26 of 78...
Function Set the Long Range broadcast (enable/disable). Example AT+LE_CODED=1 Return Value Enable Long Range broadcast. Remark After enabled, the broadcast itself does not carry data, and the command "AT+ADV_EXT" needs to Shenzhen RF-star Technology Co., Ltd. Page 27 of 78...
OK when the specified length is reached, as shown below. If the set timeout time is up but the specified input data length is not reached, it will return to RECEIVE_TIMEOUT. For example: Send →◇AT+ADV_EXT=120,5000 Shenzhen RF-star Technology Co., Ltd. Page 28 of 78...
Remark: In this mode, the serial port is disabled by default and unavailable under this mode. The serial port can be enabled by pulling low the serial port sleep control pin or by waking up through the serial port. Shenzhen RF-star Technology Co., Ltd. Page 29 of 78...
Modifying this parameter can increase the speed of automatic reconnection. In s, 3 seconds is by default. AT+SCAN? Function Query the scan status and timeout time settings. Example AT+SCAN? Return Value AT+SCAN=0,10,1,3 Shenzhen RF-star Technology Co., Ltd. Page 30 of 78...
Page 32
20 seconds), and print the MAC address, RSSI value, and device name of the slave devices, where "0, 1, 2, 3..." is the serial number of the scanned devices (Scan for devices with name by default). Shenzhen RF-star Technology Co., Ltd. Page 31 of 78...
• Connection as a Master AT+CONNECT= Connect to the specified device according to the serial number of the list or MAC address Function returned by "AT+SCAN" command. Example 1 AT+CONNECT=1 Return Value 43:D5:CF:24:60:94 CONNECTED Shenzhen RF-star Technology Co., Ltd. Page 32 of 78...
This command is used with AT+TTM_HANDLE together. For example, AT+TTM_HANDLE=0 means that the master role transparently transmits the data value to the device whose handle value is 0 and the MAC address is FF:1C:2B:D1:4C:BD. Shenzhen RF-star Technology Co., Ltd. Page 33 of 78...
Remark Under the master mode, disconnect the slave device with the handle value of 1. AT+DISCONNECT Function Disconnect all the currently connected devices. Example AT+DISCONNECT Return Value F1:F2:F3:F4:F5:F6 DISCONNECTED 5D:61:9B:78:2E:5E DISCONNECTED Shenzhen RF-star Technology Co., Ltd. Page 34 of 78...
“AT+SLEEP=,1” to enable the BLE function). 2. After using the command "AT+SLEEP=,0" to disable the BLE function, the device will not automatically reconnect. When BLE is enabled again, the device will automatically reconnect. Shenzhen RF-star Technology Co., Ltd. Page 35 of 78...
• Delete Automatic Reconnection Device AT+DEV_DEL= Delete the stored devices. Function Take effect immediately after setting, can be saved after power off. Only effective in master mode and master-slave mode. Example 1 AT+DEV_DEL=FF:1C:2B:D1:4C:BD Return Value Shenzhen RF-star Technology Co., Ltd. Page 36 of 78...
1. The connection interval is set as 20 ms. Take effect immediately after setting, can be saved Remark after power off. 2. The connection interval can reach less than 20 ms (minimum 8 ms), when the Bluetooth module Shenzhen RF-star Technology Co., Ltd. Page 37 of 78...
Use AT+CNT_LIST to get the current handle value of the device to be connected. Remark Take effect immediately after setting, do not be saved after power off. Only effective in master mode and master-slave mode. Shenzhen RF-star Technology Co., Ltd. Page 38 of 78...
Set the basic 128-bit UUID, if it exceeds 16 bytes, only the first 16 bytes will be taken, if it is less Remark than 16 bytes, the end will be filled with 0. Take effect after reboot, can be saved after power off. Shenzhen RF-star Technology Co., Ltd. Page 39 of 78...
Take effect immediately after setting, can be saved after power off. AT+ UUID_SCAN= Function Disable/enable the user-defined UUID transmission channel function. Only effective in master mode and master-slave mode. Shenzhen RF-star Technology Co., Ltd. Page 40 of 78...
Parameter 2: The serial number is scanned and printed by the serial port by "AT+UUID_SCAN". Remark This parameter sets the channel to be selected when the master reads data (channels with Read attribute). Shenzhen RF-star Technology Co., Ltd. Page 41 of 78...
BLE data, it will return: +RECEIVED:1,10 OUTPUT_BLE_DATA 123456789A If it is the data received in transparent transmission mode, there will be no prefix of “+RECEIVED” and the data will be printed directly. Shenzhen RF-star Technology Co., Ltd. Page 42 of 78...
(RSSI). At the same time, the device will not receive broadcast packets, when the observer itself switches channels at the end of each scanning interval. If the device that satisfies the filtering conditions is in the broadcast response packet, the time to Shenzhen RF-star Technology Co., Ltd. Page 43 of 78...
This command only takes effect in slave mode. If the slave device is connected, the parameters will be updated immediately, otherwise, it will take effect at the next connection, and the settings will be Shenzhen RF-star Technology Co., Ltd. Page 44 of 78...
512000 bps can reach a stable transmission rate of up to 42 KB/s. AT+UART? Function Query the current serial port baud rate. Example AT+UART? AT+UART=115200 Return Value Remark The current UART baud rate is 115200 bps. Shenzhen RF-star Technology Co., Ltd. Page 45 of 78...
The current timeout time is 50 ms. If the returned frame receiving size is 0, it means that the module Remark will automatically adjust the frame receiving size according to the current baud rate. Shenzhen RF-star Technology Co., Ltd. Page 46 of 78...
0: Disable echo. (Disable by default). Remark 1: Enable echo. AT+ECHO= Function Set the serial port echo. Example AT+ECHO=1 Return Value Enable echo. Remark Take effect immediately after setting, cannot be saved after power off. Shenzhen RF-star Technology Co., Ltd. Page 47 of 78...
Parameter 2: Key, up to 16 bytes of any visible character. This parameter cannot be empty when authentication is enabled. Parameter 3: Authentication valid time (in s), 15 s is by default. Shenzhen RF-star Technology Co., Ltd. Page 48 of 78...
Example AT+AUTH_KEY=1,123456 Return Value Parameter 1: The connection handle value of the slave role. Remark Parameter 2: When the authentication function is enabled on the slave device to be connected, the Shenzhen RF-star Technology Co., Ltd. Page 49 of 78...
Enable the pairing function of the slave role and set the pairing passkey to 135648. The length of Remark the passkey cannot exceed 6 characters. Take effect after reboot, can be saved after power off. Shenzhen RF-star Technology Co., Ltd. Page 50 of 78...
In this case, both devices must enter the passkey. The master device can generally be regarded as Responder, and the module adopts Keyboard Only in the master role by default (Corresponding pairing method C: Initiator displays, Responder inputs). Shenzhen RF-star Technology Co., Ltd. Page 51 of 78...
Page 53
The current pairing method is Keyboard Only. AT+MASTER_PAIR= Function Set the pairing function of the master role. Example AT+MASTER_PAIR=0 Return Value Remark Set the pairing setting of the master role to Display Only. Shenzhen RF-star Technology Co., Ltd. Page 52 of 78...
When using this command in the slave role, the paired master devices with the slave will be obtained. If switch the working role, the current saved list of paired devices will be cleared. • Delete Paired Device AT+PAIR_DEL= Function Delete the paired device. Example 1 AT+PAIR_DEL=0 Shenzhen RF-star Technology Co., Ltd. Page 53 of 78...
When the device is in the master role (in the master and master-slave mode), and the currently connected device is enabled the automatic reconnection function, the device will not automatically Shenzhen RF-star Technology Co., Ltd. Page 54 of 78...
Take effect immediately after setting, cannot be saved after power off. • Enable/Disable Watchdog AT+WDOG? Function Query the watchdog function status. Example AT+WDOG? AT+WDOG=0 Return Value 0: Disable Watchdog Remark 1: Enable Watchdog. Enabled by default. Shenzhen RF-star Technology Co., Ltd. Page 55 of 78...
The device will be rebooted after setting. Take effect immediately. • Query Firmware Version AT+VERSION Function Query the device firmware version. Example AT+VERSION AT+VERSION= RF_BM_BG22A3_V0.2.1_2021.01.21 Return Value Remark Query the firmware version information and the updated date. Shenzhen RF-star Technology Co., Ltd. Page 56 of 78...
APP side, turn on the notify enable for receiving and AT command operation, and then the bi- directional data transparent transmission and AT command between the mobile phone and the PC (analog MCU) will be started. As shown in the following pictures: Shenzhen RF-star Technology Co., Ltd. Page 57 of 78...
Dongle device for normal use. Click Select device to pop up the device name, and then click to select the corresponding device (this device name corresponds to the MAC address of the device) Shenzhen RF-star Technology Co., Ltd. Page 60 of 78...
Page 62
Notify of the receiving channel, and then start the two-way data transparent transmission and AT between the module and the PC (with the help of Dongle as the master device) Ordered. As shown in the following pictures: Shenzhen RF-star Technology Co., Ltd. Page 61 of 78...
* @param characteristic The characteristic for which the value needs to be read. * @discussion Fetch the value of a characteristic. * The relevant delegate callback will then be invoked with the status of the request. * @see peripheral:didUpdateValueForCharacteristic:error: Shenzhen RF-star Technology Co., Ltd. Page 65 of 78...
Page 67
* characteristic for a peripheral. All reads and notifications come here to be processed. -(void)peripheral:(CBPeripheral*)peripheral didUpdateValueForCharacteristic:(CBCharacteristic *)characteristic error:(NSError *)error Note: after each reading operation, this callback function will be performed. The application layer saves the data that is read in this function. Shenzhen RF-star Technology Co., Ltd. Page 66 of 78...
//Enable RTS, that is, MCU can receive date from BLE module set_rts_enable(); While(1){ //Aquire whether the CTS status is at a low level If(get_cts_state()==0){ // Send test data to BLE module mcu_send_to_ble_string("Test data.\r\n"); // Processing the data obtained by MCU mcu_data_process(mcu_uart_read_data()); Shenzhen RF-star Technology Co., Ltd. Page 67 of 78...
(2) Make sure that there is no signal line or copper foil in each layer below the antenna. (3) It is best to hollow out the antenna position in the following figure to ensure that the S11 of the module is minimally affected. Shenzhen RF-star Technology Co., Ltd. Page 68 of 78...
Figure 4. Recommendation of Antenna Layout Note: The hollow-out position is based on the antenna used. 10.3 Reference Design The reference design is as follows: Figure 5. Reference Design of RF-BM-26X2B1 Shenzhen RF-star Technology Co., Ltd. Page 69 of 78...
The performances of ground absorption and reflection of radio waves will be poor when the module is tested close to the ground. 2. Seawater has a strong ability to absorb radio waves, so the test results by the seaside are poor. Shenzhen RF-star Technology Co., Ltd. Page 70 of 78...
3. If the extension wire or feeder wire is of poor quality or too long, the bit error rate will be high. 10.6 Electrostatics Discharge Warnings The module will be damaged by the discharge of static. RF-star suggests that all modules should follow the 3 precautions below: 1.
Page 73
Max. 6 ℃/s Time from 25 ℃ to Peak Temperature (t Max. 6 minutes Max. 8 minutes Time of Soldering Zone (t 20±10 s 20±10 s Figure 6. Recommended Reflow for Lead-Free Solder Shenzhen RF-star Technology Co., Ltd. Page 72 of 78...
Need help?
Do you have a question about the CC26X2R and is the answer not in the manual?
Questions and answers