Update BlueIO firmware using RaspberryPi

The BleuIO comes with a bootloader to allow you to update the firmware or flash your own application to the dongle. To flash the dongle, you will need an image file containing the new firmware or your own application and a host USB loader application.

You can download the latest firmware, and host USB loader from our getting started guide.

This article will explain how to update a BleuIO dongle using a RaspberryPi.

Connect the BleuIO dongle to your Linux / RaspberryPi.

Dongle

To identify which device name the dongle is connected to, you will need to run ls /dev on the terminal.
You might need to do it twice, once before you connect the dongle and once after, to be able to identify which one is the device name.

The following screenshot shows devices list before and after connecting the dongle.

The BleuIO includes a bootloader that allows you to update the firmware easily. When starting up, the dongle will open up a COM port for the bootloader for 10 seconds to allow you to update the firmware (or flash your own application). Afterwards, it will close that port and open a new port for the BleuIO application. 

Now that you know the device name, you can run the following command to update the dongle. 

sudo ./host_usb_updater /dev/ttyACM0 ./example_firmware.img -verbose 

The /dev/ttyACM0 means USB-CDC driver of Linux.

NOTE: The device name may vary and may not be the same as in the picture above.

After running this command successfully, you will see Result: Pass on your terminal.  

Share this post on :

Bleuio Firmware Update V2.0.6

A new firmware update v 2.0.6 has been released for BleuIO and Smart USB Dongle 2.0. You can download the updated firmware from
 https://www.bleuio.com/getting_started/docs/firmware/

Added features:

  • Added a new command AT+CLEARNOTI that will clear notification for the selected handle. For example AT+CLEARNOTI=0012
  • Updated command for AT+GAPCONNECT. Now you can set Connection interval,Slave latency,Connection supervision timeout while connecting to a peripheral. 

Understand BLE connection parameters

For a BLE connection, The connection parameters determine when and how the Central and a Peripheral in a link transmits data. The Central always sets the connection parameters; however, the Peripheral can send a Connection Parameter Update Request that the Central can accept or reject.

There are basically three different parameters:

Connection interval: Defines how often the Central will ask for data from the Peripheral. It contains minimum and maximum connection interval values. 

The parameter value has to be chosen with a balance of throughput and power consumption in mind. A high connection interval value (e.g. 4 seconds) will decrease power consumption and reduce data throughput, and vice versa.

Therefore, if you want to increase the data throughput, you can decrease the connection interval value, but keep in mind that this will also increase power consumption.

Slave latency: slave latency can be applied to help the peripheral (slave) device reduce power consumption further. This parameter is useful to avoid changing connection parameters frequently to achieve both high-speed data transfer and low power consumption when idle.

For example, suppose there is a 30 ms connection interval with a slave latency of 4. In that case, the connection can handle data transfers with 30 ms connection intervals, and when idle, it sends empty packets to keep the connection only once every 150 ms (on the slave side).

Connection supervision timeout: This timeout is determined from the last data exchange until a link is considered lost. A Central will not start trying to reconnect before the timeout has passed, so if you have a device that goes in and out of range often, and you need to notice when that happens, it might make sense to have a short timeout.

To meet the demands of users, the BleuIO team will continue to update and add new features. To find out more about the updates of the dongles new firmware 2.0.6, please visit our Getting Started Guide

Share this post on :

Bleuio Firmware Update V2.0.5

Smart Sensor Devices is announcing a firmware update v2.0.5 for BleuIO and Smart USB dongle 2.0. We invite all the users to apply the updated firmware. The new firmware will be available to download on 2nd July 2021, at https://www.bleuio.com/getting_started/docs/firmware/

Added features:

  • Added a new command ATASPS that will allow you to choose if the SPS responses will be shown as ASCII or Hex. ASCII is shown by default at startup.

Bug fixes

  • Fixed a bug where if you sent more than 244 characters at once before sending a carriage return (or pressed Enter) the dongle would restart.

To meet the demands of users, the BleuIO team will continue to update and add new features. To find out more about the updates of the dongles new firmware 2.0.5, please visit our Getting Started Guide

Share this post on :

Bleuio Firmware Update V2.0.4

Smart Sensor Devices is announcing a firmware update v2.0.4 for BleuIO and Smart USB dongle 2.0. We invite all the users to apply the updated firmware. The new firmware will be available to download on 21st May 2021, at https://www.bleuio.com/getting_started/docs/firmware/

Added features:

  • Added two new AT command for writing without response. AT+GATTCWRITEWR for ASCII and AT+GATTCWRITEWRB for hex.
  • Added a new command AT+GETSERVICESONLY that will discover only all the services of the connected peripherals.
  • Added a new command AT+GETSERVICEDETAILS that will discover all the characteristics and descriptors of a selected service. Must run AT+GETSERVICESONLY command first to get the service handle.

To meet the demands of users, the BleuIO team will continue to update and add new features. To find out more about the updates of the dongles new firmware 2.0.4, please visit our Getting Started Guide

Share this post on :

BleuIO Firmware v2.0.3 is now available

Smart Sensor Devices is announcing a firmware update v2.0.3 for BleuIO and Smart USB dongle 2.0. We invite all the users to apply the updated firmware. The new firmware will be available to download at https://www.bleuio.com/getting_started/docs/firmware/

Added features:

  • Added new AT command ATDS that turns on (ATDS0) or turns off (ATDS1) auto-discovery of services from the device you are connecting to or when you’re in DUAL mode, and a device connects to you. Auto discovers services are on by default.
  • Added a new command AT+GAPDISCONNECTALL that disconnects all current connections.

Bug fixes

  • Fixed a bug where the services that were being auto-discovered upon a connection event was from the connection set in target connection instead of the current connection.
  • Fixed a bug where you had to put a small timeout between the actual command and the carriage return (‘\r’) to run a command when using scripts to communicate with the dongle. You should now be able to send the command and the return character at the same time.
  • Updated the response from a successful AT+GAPDISCONNECT command. It should now reply with a ‘handle_evt_gap_disconnected: conn_idx=conn_idx address=mac_address_of_disconnected_device.’ and then the ‘DISCONNECTED.’ line for easily discerning which device has been disconnected.

To meet the demands of users, the BleuIO team will continue to update and add new features. To find out more about the updates of the dongles new firmware 2.0.3, please visit our Getting Started Guide

Share this post on :

Bleuio Firmware Update V2.0.2

Smart Sensor Devices is announcing a firmware update v2.0.2 for BleuIO and Smart USB dongle 2.0. We invite all the users to apply the updated firmware. The new firmware will be available to download on 7th April 2021, at https://www.bleuio.com/getting_started/docs/firmware/

Added features:

  • Added new AT command ATA that hides (ATA0) or shows (ATA1) ASCII values from Notification, Indication, or GATT Read responses. ASCII values are shown by default.

Bug fixes

  • Fixed a bug where running a scan and stopping it repeatedly would, in rare cases, cause a hard restart of the dongle.

To meet the demands of users, the BleuIO team will continue to update and add new features. To find out more about the updates of the dongles new firmware 2.0.2, please visit our Getting Started Guide

Share this post on :

A new firmware update (v 2.0.0) enabling multiple connection.

Smart Sensor Devices is announcing a firmware update v2.0.0 for Bleuio and Smart USB dongle 2.0. We invite all the users to apply the updated firmware. The new firmware will be available to download on 26th March 2021, at https://www.bleuio.com/getting_started/docs/firmware/

Improvments:

  • You can now connect with up to 8 devices at the same time. And with the new dual mode role, you can scan, advertise, and connect to other devices without changing roles or disconnect. 
  • In dual mode you can switch between acting as a server or client depending on your needs, while in Peripheral mode, you will always be acting as a server and in Central mode as a client.
  • When connected to multiple devices, keep an eye on the conn_idx (connection index) when receiving or sending data to know which device you are sending to/receiving data from.

Added features:

  • Increased possible connections to max 8. (Previously max 1).
  • Added a new dual role with the capabilities of both Peripheral and Central.
  • Added 5 new AT commands; 
    • AT+DUAL for dual role, 
    • AT+CLIENT and AT+SERVER for switching behaviour in Dual role towards targeted connection, 
    • AT+GETCONN for getting a list of active connections,
    • AT+TARGETCONN for choosing which connection you want to interact with.
  • Added number of connections and maximum connections when connected in the ATI command info.
  • Added a line with (conn_idx=conn_idx) above the [Received]: line when using the SPS service as a server with multiple connections to be able to tell which device sent the data.
  • Added a line with (conn_idx=conn_idx) above the DISCONNECTED. line when connected to more than one other device to be able to tell which device disconnected.

To meet the demands of users, the BleuIO will continue to update and add new features.

Share this post on :

A new firmware update (v 1.2.0) has been released for BleuIO

Smart Sensor Devices is announcing a firmware update for Bleuio and Smart USB dongle 2.0. We invite all the users to apply the updated firmware. The new firmware will be available to download on 5th February 2021, at https://www.bleuio.com/getting_started/docs/firmware/

Firmware Update Improvements 

  • It is now possible to access protected characteristics that need an increased security level. 
  • Security level can be increased by successfully pairing/bonding.
  • Security level will now be displayed when changed.

Newly Added features 

  • Added AT Command AT+GAPIOCAP for setting or querying dongle input and output capabilities. Important for what type of security responses is available.
  • Added AT Command AT+GAPPAIR for manually starting a pairing or bonding procedure.
  • Added AT Command AT+GAPUNPAIR for unpairing all or selected devices.
  • Added AT Command AT+ENTERPASSKEY for handling passkey requests when pairing/bonding.
  • You are now able to secure the connection between other devices and the dongle or between dongles via pairing/bonding.
  • The dongle is now capable of initialising or handling pairing and/or bonding requests. Depending on what Input/Output capability you’ve set on it.
  • The dongle can now handle numeric comparison authentication or passkey authentication (with the new AT+ENTERPASSKEY command).

To meet the demands of users, the BleuIO will continue to update and add new features.

Share this post on :