This project contains source for the TAP USB dongle demonstration. Control/monitor your PC with an auto generated mobile application through a Tapioca USB-to-Wireless dongle.
It's composed of 3 projects:
- app: Source for the mobile application built with Ionic. It was auto generated by IoTize mobile app build server.
- modbus-slave: Source for the modbus slave application for
node
. This modbus application will listen for modbus request on the given serial port (See Modbus registers defined in annex). - tap-config/modbus-slave-demo.iotz: IoTize Studio configuration file to configure the
Tapioca
for the demo.
- Plugin the Tapioca USB dongle to your PC
- Open
tap-config/modbus-slave-demo.iotz
with IoTize Studio. If you don't have it yet, it's here; - Configure your
Tapioca
withIoTize Studio
- Setup connection to your Tap
- Click on
Configure
button and wait for the end of the configuration process.
- Start the Modbus Slave application:
Go to modbus-slave
directory and run commands:
npm install
npm start
Note: node
and npm
are required (tested with node
version >=10
). If you don't have node, see node installation page
-
Install client application on your phone:
- Android: build/app-debug.apk
- iOS: build from the ionic sources in the app folder. See Ionic documentation
-
Run the mobile application, connect to the
Tapioca
and start monitoring hard drive usage, CPU usage and control screen luminosity with your phone.
Address | Size | Content |
---|---|---|
0x002 | 1 Word | Hard drive memory free in MB |
0x004 | 1 Word | Total hard drive memory in MB |
0x009 | 1 Word | Percentage of free memory |
0x006 | 1 Word | Number of CPUs |
0x00B | 1 Word | CPU usage (in %) |
0x100 | 1 Word | Screen brightness in % |