working on serial connection to ui

This commit is contained in:
Richard Unger
2024-03-01 01:16:55 +01:00
parent e92e697cfa
commit 462ff5fa65
9 changed files with 262 additions and 61 deletions

View File

@@ -10,4 +10,32 @@ Haptic configuration tool
## Connecting your Nano
TODO
Plug the nano to the USB port. :-)
ZERO/ONE will automatically detect the Nano_D++ device.
### Device connection states
The connection between the device and the haptic controller software can be in the following states. Entering each state is associated with equivalent events emitted in the ZERO/ONE software:
**Attached**
The device is attached when it is connected to USB.
**Detached**
The device is detached when disconnected from USB.
**Connected**
The device is in connected state when the USB serial port is successfully opened.
**Disconnected**
The device enters disconnected state when the USB serial port is closed.
Note that a **connected** device is also always **attached**, and if the USB plug is pulled on a **connected** device, it becomes both **disconnected** and **detached** simultaneously. If the connection is closed without disconnecting USB, the device becomes **disconnected** but remains **attached**.