Table of Contents:

1. Overview

There are some new models of Dragino sensors support BLE remote configure. User can use mobile phone to configure the sensor via BLE.

2. Support Models & Firmware

2.1 Hardware Models

Here list the models that support BLE and the method to activate BLE function.

ModelsBLE Activate MethodComments

All NB-IoT /LTE-M models with BLE support

Normally Suffix -NB / -NS, -CB/-CS

Device is battery power type and BLE will be only activate on below case:

  • Press button to send an uplink
  • Press button to active device.
  • Device Power on or reset.

If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode

 
   

2.2 Where to find firmware

User can find the firmware in the NB-IoT Product Share directory: There are two kind of firmware:

  • .bin : original firmware file.
  • .hex : file with control / meta info.

Please note that user needs to use .bin file for update.

Note: Using Dragino Sensor Management Tool to upgrade firmware only supports burning firmware without bootloader. If the firmware with bootloader is burned, the node will always restart after running.

3. How to use PC to upgrade via BLE?

Step1: Connect a BLE USB to TTL Host into PC

Below is the example BLE to USB TTL adapter. Insert it to PC

image-20230601152950-4.png

Step2:  Modify Bluetooth host parameters to support Dragino Sensor Management Tool v1.4

The default baudrate of the general Bluetooth host is 9600, we can use the three commands: AT+BAUD7; AT+TIMEINQ40; AT+RESET to change the baudrate of the Bluetooth host to 115200, in order to support the use of Dragino Sensor Management Tool V1.4 to download the firmware faster.

If your Bluetooth host's baud rate is already 115200, please refer to Step3 directly.

  • Check if the Bluetooth host is functioning properly.

Open the serial assistant and send AT+INQ (remember to bring carriage return and line feed).

Seeing this interface proves that the host is working properly:

image-20240912174330-9.png

  • Connect to Bluetooth host through serial port and send AT+BAUD7; AT+TIMEINQ40; AT+RESET successively, confirm that each command returns OK, and finally disconnect the serial port connection.

An example diagram is as follows:

image-20240912174428-10.png

Note:

1. Because the baudrate of the unmodified Bluetooth host is 9600, the serial port baud rate needs to be selected 9600 when sending the above three instructions.

2. These commands need to be used only once. After successful modification, the Bluetooth host baud rate is changed to 115200 and this change is maintained.

  • If the serial command sending fails, please modify the sending settings of the serial assistant as below:

image-20240912174714-12.png

Step3: Download Dragino Sensor Management Tool

Download URL 

Step4: Update .bin Firmware

Note: Before upgrading, it is necessary to ensure that the baud rate of the Bluetooth host is 115200(Refer to Step 2).

  • Select the Dragino Sensor Management Tool parameter:

image-20240912165247-1.png

  • Before clicking "Start", make sure that the switch of the node is in FLASH.

image-20240912170209-3.png

  • Click "Start", then reset the node, and the node's Bluetooth will turn on. Dragino Sensor Management prints the Bluetooth information searched by the Bluetooth tool.

The following screen indicates that the Bluetooth host has successfully connected to the node and started the upgrade

image-20240912171847-5.png

Note:

  1. Reset the node: Hold down the ACT key for 3s or press the Reset key to reset the node, then  the node's Bluetooth will turn on.
  2. If the node has been restarted before the upgrade, wait two minutes before the upgrade.
  3. The Bluetooth of the node will be enabled for 8~15seconds. If the operation is not timely, reset the Bluetooth tool and node again.
  4. Ensure that the IMEI entered is correct, and the firmware upgrade will only be performed when the Bluetooth host scans the Bluetooth of the corresponding node.

image-20240912092847-6.png

  • Successful firmware upgrade will print “Upgrade Successful”.

image-20240912170859-4.png

4. Access Password and Command

Each device is shipped with a label as below include 6 chars AT PIN. this is the PIN to access the console of sensor.

For AT Commands list please refer user manual for each sensor.

image-20240204111847-1.png

5.FAQ

5.1 What should I do if the upgrade process is automatically interrupted?

Example:

image-20240912172143-6.png

How to operate:

1. After the upgrade is interrupted, you need to close the wireless upgrade tool and reopen it later.

2. Before restarting the upgrade, you need to reset the Bluetooth host, otherwise the upgrade may not be possible.

  • If your Bluetooth host has a RESET button, you can use the RESET button to reset it.
  • If your Bluetooth host does not have a RESET button, you can directly unplug the Bluetooth tool from the computer to power it off, and then reconnect it to the computer.

5.2 Why does the node keep resetting even though the firmware upgrade is successful?

If the user burns the firmware with a boot loader, the following situation may occur.
Therefore, users need to select firmware without boot loader when burning firmware.

image-20240913172520-1.png

 

Tags:
    
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0