This project demonstrates how to use the BleuIO USB dongle as a serial port on an Android device via OTG (On-The-Go) USB. Using Capacitor 6 and the @adeunis/capacitor-serial
plugin, we establish a serial connection, send AT commands, and read responses in real time.
This project supports both BleuIO and BleuIO Pro dongles.
- Establish a serial connection with BleuIO via an Android device
- Send and receive AT commands
- Scan for nearby BLE devices
- Works with Capacitor 6 and Angular
- BleuIO or BleuIO Pro USB dongle
- Android device (with OTG support)
- OTG cable
- Node.js 18+
- Java 17 (required for Capacitor 6)
- Android Studio (for building and running the app)
git clone https://github.com/smart-sensor-devices-ab/bleuio-serial-android-angular-typescript.git
cd bleuio-serial-android-angular-typescript
npm install
ng build --configuration production
npx cap sync android
npx cap open android
- Ensure your Android device is connected via USB.
- Enable USB debugging on your device.
- In Android Studio, click Run to install and launch the app on your device.
- Connect BleuIO: Press the Connect to BleuIO button to establish a serial connection.
- Send AT Command: Press Send ATI Command to retrieve device information.
- Scan BLE Devices: Press Scan BLE Devices to search for nearby BLE devices.
- If you see
Permission Denied
, make sure you have granted OTG USB permissions. - If the app does not detect the BleuIO dongle, check if OTG is enabled on your Android device.
- If the
npx cap sync android
command fails, ensure all dependencies are installed.
This project is open-source and available under the MIT License.