LSD4BTB-PBC1000001 User Manual Rev01 User Guide 2020-12-16
File revision history Firmware Document version revision date 201216 Author Change description LJ Initial Version 2
1 Features An ultra-low power beacon device that supports iBeacon and Eddystone UID & URL. 2 APP communication protocol APP sends instructions to the Beacon module through the FE61 channel. After receiving the instructions, the module parses and executes the instructions, and returns the result of the instruction execution to the APP through the FE62 channel. The whole process is shown in the following figure. Figure 2 1 APP operation Beacon flow chart 2.
04 FC xx xx xx xx……xx Start character: all command frames must start with "01 FC", and all response frames start with "04 FC". Command ID: The IDs of commands with different functions are unique. The following is an enumeration and detailed explanation of all commands. Command length: The input frame length is the number of bytes of the input frame command parameters, and the response frame length is the sum of the execution status and the length of the response data.
Name: The name of the device, usually a visible string. Return: 04 FC 03 01 status 04 Query Format: 01 FC 04 00 device Returns: 04 FC 04 len status [Name] / name 05 Set the uuid 06 Format: 01 FC 05 len uuid YES len: 1-byte unsigned integer, the length of uuid, fixed at 0x10. Big endian. broadcast uuid: 16-byte unsigned integer, beacon specific uuid.
3 Default parameters Table 4 1 Module default parameter list project Default parameters Production serial test port 115200bps baud rate Broadcast Broadcast interval: 100ms parameters Broadcast data: single ibeacon broadcast, if two kinds of broadcast carousels, the switching frequency is 1s. Broadcast channel: 37, 38, 39 Scan response: switch between scan response format 1 and scan response format 2, see 5.3 for details. The switching frequency is 1s.
service / 0xFE60 / Lierda Bluetooth Low Energy Data Transmission Service Eigenval Data M-S 0xFE61 WN/W Command setting channel Data S-M 0xFE62 N Command setting status return channel ues Eigenval ues M:Master,表示主机 N:Notify W:Write S:Slave,表示从机 R:Read WN:Write no response,不回复的写入 4.2 Broadcast settings Beacon broadcast includes three types: standard ibeacon broadcast, Eddystone UID broadcast and Eddystone URL broadcast. 4.2.
4.2.2 Eddystone Broadcast format 4.2.
Type is a value with a common standard. You can check the meaning of the specific number on the official website of the Bluetooth Alliance. The commonly used ones are as follows: Incomplete 16Bit service UUID (0x02), incomplete 128Bit service UUID (0x06), device full name (0x08), device abbreviation (0x09), vendor-defined data (0xFF), ··· When setting a custom broadcast, the broadcast data must conform to the format of the user data unit shown in the figure above, otherwise the setting cannot be successful.
4.4 Mode setting Beacon has two modes: deployment mode and factory mode Factory mode: In this mode, the device connection does not require an authentication process. Deployment mode: After switching to this mode, the device needs to complete authentication within 10 seconds after being connected. The authentication method is to write the same configuration key as set in the authentication channel to complete the authentication. If the authentication fails Pass to disconnect. 4.
4 GND GND / Ground Reset pin 5 RESET RESET input High level: normal operation of the module Low level: the module keeps reset 6 SWCLK SWCLK / / 7 SWD SWD / / 8 P0.16 INT Input 9 P0.00 LED2 output The key pin is detected as low level at startup and enters the test mode. Used to display the connection status, flashes at a frequency of 500ms after connection, and the disconnection light is off.
5 Warning to users You are welcome to use the products of Lierda Technology Co., Ltd. Before using our products, please read this warning; if you have started to use the instructions, you have read and accepted this warning. Lierda Technology Co., Ltd. reserves the right of final interpretation and modification of all materials provided, and subject to change without notice. Prepared by: Lierda Technology Group Co., Ltd.
FCC regulatory conformance: This device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference. (2) This device must accept any interference received, including interference that may cause undesired operation. NOTE: This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules.