Getting Started
Introduction
You can either use python or Google's chrome.serial web API to run example script that we have prepared here.
Python
To use these scripts you will need to have Python installed. Both Python2 and Python3 should work but the scripts are made with Python3 in mind. But there are comments where the script need to be edited to work with Python2. You will also need to install the module pySerial. The easiest way to install it is through pip (which you should already have after installing Python) by running:
Python2:
pip install pyserial
Python3:
python3 -m pip install pyserial
Now you can download the script you want to use, from our GitHub page. Then open up the command prompt inside the directory where the script you want to run is. Then run:
python scriptname.py
NOTE: You will need to manually change the COM port in the script to which ever your dongle uses. The number may vary from machine to machine.
Follow the video tutorial to learn how to get started using the Smart USB Dongle 2.0.
Google's chrome.serial web API
Requirements: Chrome 78 or later and you need to enable the #enable-experimental-web-platform-features flag in chrome://flags
Open chrome://flags/#enable-experimental-web-platform-features in Google Chrome browser.
You can use chrome.serial to create web apps that can access the Smart USB Dongle 2.0.
To get started quickly take a look at our chrome.serial examples and use one of those as a template or you can download the example you want to use from our GitHub page.
More info about the chrome.serial:
chrome.serial: https://developer.chrome.com/apps/serial
Serial API: https://reillyeon.github.io/serial