Table of Contents

Advertisement

Quick Links

LM068
LM068 BLE Adapter
USER GUIDE v1.1
Firmware Version: LM068_BLE_PERI_0205
© All rights reserved.
All trade names are registered trademarks of respective manufacturers listed.

Advertisement

Table of Contents
loading

Summary of Contents for LM LM068

  • Page 1 LM068 LM068 BLE Adapter USER GUIDE v1.1 Firmware Version: LM068_BLE_PERI_0205 © All rights reserved. All trade names are registered trademarks of respective manufacturers listed.
  • Page 2 This manual may not be copied in any media or form without the written consent of original maker.
  • Page 3 User Manual for “LM068_BLE_Peri_0204” FW Revision Date Changes Description v1.0 21-05-2019 Created user manual for LM068_BLE_Peri_0201 firmware V1.1 02-12-2019 Improved the BLE Data upload rate © Copyright LM Technologies Ltd Page 2 of 41 www.lm-technologies.com...
  • Page 4: Table Of Contents

    5.4.2 BLE advertiser-mode: ..............19 5.4.3 Pairing State ................. 19 AT command Parser on LM devices: ........... 20 Basic configuration AT commands ............. 21 Basic configuration AT commands for Quick reference: ......21 7.1.1 General settings AT commands: ............. 21 7.1.2...
  • Page 5 “AT*LEBOND”\r\n ................. 31 8.2.4 “AT*LECONFIG”\r\n ..............31 Firmware upgrade on LM devices ............33 Firmware upgrade over UART interface ..........33 10 Simple Secure Pairing between LM device and remote device ..35 11 Appendix .................... 36 11.1 Abbreviations ................36 11.2 BLE Peripheral characteristics ............
  • Page 6: Firmware Version History

    User Manual for “LM068_BLE_Peri_0204” FW Firmware version History Version: LM068_BLE_Peri_0201 1. LM068 adapter behaves as GAP peripheral only. 2. No support for SPP profile. 3. Firmware Upgrade provided over UART interface. 4. BT5.0 compliant stack. Version: LM961_LE_Peri_0204 1. Released for LM961 2.
  • Page 7: Introduction

    LM068 is an adapter provides standard DB9 connector for serial interface, USB mini plugin for Powering or pin9 of DB9 connector can be used for Powering. LM068 adapter provides DTE/DCE selection Switch to switch the DTE and DCE role. LM068 adapter provides LEDs for different state indications.
  • Page 8: Flowchart Of Operation

    User Manual for “LM068_BLE_Peri_0204” FW Flowchart of operation Figure 2: Flowchart for LM068_BLE_Peri_0201 firmware © Copyright LM Technologies Ltd Page 7 of 41 www.lm-technologies.com...
  • Page 9: Overview Of Lm068_Ble_Peri_0201 Firmware

    A short name of the BLE adapter is added in the scan response data as “LM068BLE”. A full name of the device can be read using Generic Access service after connection is completed. Figure 3: BLE adapter in Scanned devices List © Copyright LM Technologies Ltd Page 8 of 41 www.lm-technologies.com...
  • Page 10: Ble Advertising Data

    Advertising filers for considering the BLE security as per the whitelist devices is applied as per the LESEC configuration on the BLE adapter. This is described in more detail in LESEC section further in the document. © Copyright LM Technologies Ltd Page 9 of 41 www.lm-technologies.com...
  • Page 11: Figure 4: More Data In Ble Adapter Advertisements

    User Manual for “LM068_BLE_Peri_0204” FW Figure 4: More data in BLE adapter advertisements © Copyright LM Technologies Ltd Page 10 of 41 www.lm-technologies.com...
  • Page 12: Figure 5: Hex Data In Ble Adapter Advertisements

    User Manual for “LM068_BLE_Peri_0204” FW Figure 5: Hex data in BLE adapter advertisements © Copyright LM Technologies Ltd Page 11 of 41 www.lm-technologies.com...
  • Page 13: Ble Connection

    Connection is dropped if the pairing is not completed successfully. iii. After the connection is successful, the Data transmission can be done using Serial over GATT service. iv. The 128-bit UUID of Serial-over-GATT service is ”0000-5500-d102-11e1- 9b23-0002-5b00-a5a5”. © Copyright LM Technologies Ltd Page 12 of 41 www.lm-technologies.com...
  • Page 14: Figure 7: Services On Ble Adapter

    User Manual for “LM068_BLE_Peri_0204” FW Figure 7: Services on BLE adapter © Copyright LM Technologies Ltd Page 13 of 41 www.lm-technologies.com...
  • Page 15: Serial Over Gatt Service

    When BLE adapter receives data on its UART (to be sent to GAP-Central), it sends the data in packets of 20 bytes after every 50mSec. BLE adapter provides a 200 bytes internal buffer to store the data, when the buffer is © Copyright LM Technologies Ltd Page 14 of 41 www.lm-technologies.com...
  • Page 16: Messages On Uart Of Ble Adapter

    Serial communication with the BLE adapter can be performed using Serial- Over-GATT-Service provided by CSR/Qualcomm with 128-bit UUID as ”0000-5500-d102-11e1-9b23-0002-5b00-a5a5”. v. The above “Serial over GATT” service supports one characteristic with 128- bit UUID as “0000-5501-d102-11e1-9b23-0002-5b00-a5a5”. © Copyright LM Technologies Ltd Page 15 of 41 www.lm-technologies.com...
  • Page 17: Figure 10: Default Settings On Hercules For Serial Communication

    The GAP central device sends data to BLE adapter using Write-WO- Response command. viii. The BLE adapter sends data to Gap-Central device using Notifications request. Figure 10: Default settings on Hercules for serial communication © Copyright LM Technologies Ltd Page 16 of 41 www.lm-technologies.com...
  • Page 18: Figure 11: Serial Messages On Ble Adapter For Ble Connection And Data Receive

    User Manual for “LM068_BLE_Peri_0204” FW Figure 11: Serial messages on BLE adapter for BLE Connection and Data receive © Copyright LM Technologies Ltd Page 17 of 41 www.lm-technologies.com...
  • Page 19: Figure 12: Data Transfer In Full Duplex Over Ble Link

    User Manual for “LM068_BLE_Peri_0204” FW Figure 12: Data transfer in full Duplex over BLE link © Copyright LM Technologies Ltd Page 18 of 41 www.lm-technologies.com...
  • Page 20: Led Indication

    2. The LM device shows the power on LED sequence after AT*Reset=1 and AT*Reset=2 commands. 5.2 LED0 1. LED0 (RED LED on LM068) is constantly ON to indicate that the LM device is powered and is ready to process AT commands and is in working condition.
  • Page 21: At Command Parser On Lm Devices

    LM device takes requested action or it will output report to the user on UART. If LM device does not receive “AT” as a start of new command, the LM device may not respond to this command even if it is terminated with “\r\n” (e.g.
  • Page 22: Basic Configuration At Commands

    AT*FLOW Query and set AT*UARTCONF Query and set Throughput 7.1.3 Firmware Upgrade AT commands: AT command Command Default string type setting AT*UPGRADEINT Query and set UART interface AT*UPGRADE Execution only © Copyright LM Technologies Ltd Page 21 of 41 www.lm-technologies.com...
  • Page 23: Adapter Settings Commands

    Address query report: “REP*:ADDR=00025b00a5a5” v. Normally the AT parser of LM devices, responds OK/ERR to the AT command and then issues the report, but only for Address query command, AT parser first gives the report i.e. BD address and then replies OK.
  • Page 24: At*Echo"\R\N

    “OK” “ERR” every command string before sending report/response of the command. viii. When response is OFF, the LM device will not provide “OK” “ERR” reply to any AT command. This might not be helpful to © Copyright LM Technologies Ltd Page 23 of 41 www.lm-technologies.com...
  • Page 25: At*Ver"\R\N

    REP*:NAME=068LM_SPP_0104 xi. Below is the sequence of messages when ECHO and RESP are both off. The LM device will show only reports for the query commands. The LM device will not show any indication messages for connect or disconnect. This is to ensure backwards compatibility with LM048/LM058/LM072 adapter/module firmware.
  • Page 26: At*Settings"\R\N

    Baud rate set command: “AT*BAUD=3” (Set Adapter baud rate as 38400 bps) v. LM device need not to perform power-on-off after change of baud rate setting. vi. Refer below table for baud rate settings: Actual LM device...
  • Page 27: At*Par"\R\N

    Parity set command: “AT*PAR=1” (Set Adapter parity as odd) v. LM device need not to perform power-on-off after change of parity setting. vi. Refer below table for parity settings: Actual LM device...
  • Page 28: At*Uartconf"\R\N

    “REP*:FLOW_CHANGE= IN_Progress” vi. LM device will perform reboot in changed flow control mode vii. If LM device is in flow control OFF mode and user gives command to make the flow control OFF, then it will respond as OK but shall not perform reboot.
  • Page 29: Bluetooth Security Settings Commands

    Upgrade interface cannot be changed on BLE adapter. vi. When the upgrade interface is set as UART, the new firmware image is sent to the LM device using its own UART. vii. While performing FW upgrade operation, make sure the UARTCONF (UART configuration) is set to Maximum throughput.
  • Page 30: At*Upgrade"\R\N

    User Manual for “LM068_BLE_Peri_0204” FW 7.5.2 “AT*UPGRADE”\r\n i. Execution only command. ii. Using this command, the LM device can be set ready to receive the new firmware image. iii. The command format is “AT*upgrade=password”. iv. The password is dependent on the actual type of LM device and current firmware version on the LM device.
  • Page 31: Gap Peripheral Role Related At Commands

    User Manual for “LM068_BLE_Peri_0204” FW 8 GAP Peripheral Role related AT commands This section describes the AT commands for the GAP Peripheral role for LM device to advertise, pair, whitelist and send/receive data on BLE connection. The BLE adapter enables only BLE connections being as BLE peripheral device.
  • Page 32: At*Clrwhite"\R\N

    User Manual for “LM068_BLE_Peri_0204” FW Once the LM device completes the pairing procedure successfully the BLE device is added to its white list. Then the LM device can use the setting “AT*LESEC=ON” for further connections with the same device. 8.2.2 “AT*CLRWHITE”\r\n i.
  • Page 33 The BLE adapter uses static public address mentioned in above command for advertising (some devices use random BD address for the security concern but BLE adapter uses Static-public address for advertisements). © Copyright LM Technologies Ltd Page 32 of 41 www.lm-technologies.com...
  • Page 34: Firmware Upgrade On Lm Devices

    9.1 Firmware upgrade over UART interface When UPGARDEINT setting is set to UART, the firmware on LM device can be upgraded over its local UART interface i.e. the Rx line of LM device can receive the new image. Below section describes the steps for firmware upgrade over UART interface.
  • Page 35 User Manual for “LM068_BLE_Peri_0204” FW iv. After LM device outputs the string “Ready For OTA file receive...” then user can start sending the file over UART. v. Once LM device starts receiving the file, it keeps updating the status messages on the UART for upgrade progress.
  • Page 36: Simple Secure Pairing Between Lm Device And Remote Device

    User Manual for “LM068_BLE_Peri_0204” FW 10 Simple Secure Pairing between LM device and remote device The BLE adapter is BT5.0 compliant device. BLE adapter provides only BLE connection so it defaults to the BT4.1, BT4.2 and BT 5.0 devices. It cannot connect to the BT2.0/BT2.1 device.
  • Page 37: Appendix

    0x04 "Wr_cmd " Writes of the Characteristic Value without response. User can write on this characteristic with AT*WRWORESP command write 0x08 "Wr_req " Writes of the Characteristic Value with response. © Copyright LM Technologies Ltd Page 36 of 41 www.lm-technologies.com...
  • Page 38: Gatt Uuid Type

    6. If the service-UUID is 128-bit, it is completely mentioned in the report of FindServ e.g. “00005500-d102-11e1-9b23-00025b00a5a5” 7. If the characteristic has 128-bit UUID then only first 32 bits are shown e.g. © Copyright LM Technologies Ltd Page 37 of 41 www.lm-technologies.com...
  • Page 39: Gatt_Status_Code

    0x10 gatt_status_unsupported_group_type 0x11 gatt_status_insufficient_resources gatt_status_application_error 0x12 0x13 gatt_status_initialising 0x14 gatt_status_failure 0x15 gatt_status_att_reg_failure 0x16 gatt_status_att_db_failure 0x17 gatt_status_max_connections 0x18 gatt_status_abnornal_disconnection 0x19 gatt_status_link_loss © Copyright LM Technologies Ltd Page 38 of 41 www.lm-technologies.com...
  • Page 40 0x20 gatt_status_retrying 0x21 gatt_status_peer_aborted 0x73 gatt_status_device_not_found 0x74 gatt_status_sign_failed 0x75 gatt_status_busy 0x76 gatt_status_timeout 0x77 gatt_status_invalid_mtu 0x78 gatt_status_invalid_uuid gatt_status_success_more 0x79 0x7a gatt_status_success_sent 0x7b gatt_status_invalid_cid 0x7c gatt_status_invalid_db 0x7d gatt_status_db_full gatt_status_invalid_phandle 0x7e 0x7f gatt_status_invalid_permissions © Copyright LM Technologies Ltd Page 39 of 41 www.lm-technologies.com...
  • Page 41: Ble Service Uuids

    0x180E Pulse Oximeter Service 0x1822 Reference Time Update Service 0x1806 Running Speed and Cadence 0x1814 Scan Parameters 0x1813 Transport Discovery 0x1824 Tx Power 0x1804 User Data 0x181C Weight Scale 0x181D © Copyright LM Technologies Ltd Page 40 of 41 www.lm-technologies.com...

Table of Contents