Cordova Bluetooth Terminal
Simple app for communication with devices via bluetooth based on Apache Cordova (PhoneGap). It was made to fetch data from one of IoT (Internet of Things) device, so it's source code can be helpful as a base for your own project.
$ npm install -g cordova
Clone repository, jump into, pull platforms (only android by default) and plugins:
$ git clone https://github.com/1oginov/Cordova-Bluetooth-Terminal.git$ cd Cordova-Bluetooth-Terminal$ cordova prepare
Also, you can check Cordova requirements (optional or is something failed):
$ cordova requirements
$ cordova build
Or run on connected Android device via USB:
$ cordova run
Emulator is useless here, because you need working bluetooth module.
You can try android build from here without installing anything.
With Arduino Uno
- Smartphone (tablet, etc)
- Arduino Uno
- Bluetooth module (HC-05 for example)
script to make serial bridge between PC and device connected to Arduino Uno via bluetooth. Wire bluetooth module to
Arduino Uno as mentioned there, upload script, open Serial Monitor on PC and pair smartphone with BT module.
Open Terminal app, select paired device, connect to it and now whatever you send in Serial Monitor on PC will appear in app and vice versa. Because of using SoftwareSerial this script is not reliable at all, some symbols can be skipped, etc. So... buy Mega! Or STM32.