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.
This project will demonstrate how to easily create an android app and transfer data between PC and mobile phone.
At first, we will connect BleuIO dongle to our pc. This dongle will help us connect our pc to mobile app and also the data transfer between them.
We already created a simple android app for this project. All you need to clone this project and run the app on your mobile phone. You can make changes if you need to.
Requirements
BleuIO connected to a pc with ionic framework installed.
We will set BleuIO dongle as peripheral, and our mobile app will connect to this dongle. Then we can start sending data back and forth.
Connect your BleuIO dongle to the computer.
Connect to dongle using comport and start advertising by AT+ADVSTART.
Clone this git repo. git clone https://github.com/smart-sensor-devices-ab/bleuio_sps_example_mobileapp.git
go inside the folder and run npm install on terminal
The most important file of this script is Home.tsx , which is inside src/pages folder. This script has the service UUID information to communicate with the dongle which is connected to our computer.
It also helps the mobile app to connects to the computer and send messages using SPS.
This file also works as front end of the mobile app and takes input from user to send message to computer or receive and display message on mobile screen.
if you run ionic serve on terminal, you will be able to see the layout on the browser. But for this app, we need mobile phones native feature because we need Bluetooth connection. Therefore connect your android phone to your computer and run ionic cap run android on terminal.
If you get an error regarding gradle, Type ionic capacitor update and run ionic cap run android again.
Your app will install and open up on your mobile phone.
Make sure the dongle is on peripheral mode and advertising.
Click scan for BleuIO devices.
On the scan result, select one of your dongles to connect.
After a successful connection, you can send data back and forth, and you will be able to see your messages on both the mobile app and the terminal.
Recently, Bluetooth Low Energy (BLE) has become one of the most popular wireless standards for IoT devices. Most applications are now using this technology to transfer sensitive information between devices. Therefore, designers looking to integrate BLE into their products should be aware of the BLE security features and limitations.
The main security issues with the pairing between devices with BLE are passive eavesdropping, man in the middle (MITM) attacks and identity tracking.
BLE offers several security features and levels for communication between devices. A designers has to be aware of the specific security threats facing BLE, and try to implement and mitigate security risk in both hardware and firmware design.
BleuIO team is continuously updating its firmware and libraries to make the BLE connection more secure between devices.
At the moment, we have Numeric Comparison, Just Works or Passkey Entry for pairing and bonding.
Numeric Comparison: In this scenario, both the devices have a display unit able to display a six-digit number. Both displays show the same number, and the user is asked to confirm that these numbers match.
Passkey Entry: The Passkey Entry is initially intended for the case that one device has a keyboard, but no display unit and the other device has at least a display unit, for example, a BLE and a PC keyboard scenario. The user is shown a six-digit number (from “000000” to “999999”) on the device with a display and then is asked to enter the number on the other device. If the value entered on the second device is correct, the pairing is successful.
Just Works: This model is primarily intended for the most constrained devices in terms of I/O. The Just Works association model uses the Numeric Comparison protocol, but the user is never shown a number, and the application may simply ask the user to accept the connection. This method doesn’t offer protection against a Man in the Middle (MITM) attack, but it provides the same protection level against passive eavesdropping as the Numeric Comparison.
BleuIO security features :
Set the passkey for passkey authentication on your dongle yourself.
Set the minimum security level your dongle will use. This can be done either when already connected to a device or before. If the device you are connecting to does not meet the security level requirement, the dongle will disconnect from it.
Choose if the dongle should auto accept the numeric comparison authentication request or manually.
Can access protected characteristics that need an increased Security Level.
Please take a look at our Get Started guide to know more about it.
Following video shows how to securely pair between two BleuIO devices.