Changes

Jump to: navigation, search

Fit-statUSB

1,132 bytes added, 08:49, 4 December 2018
/* Drivers */
* fit-statUSB provides status indication by changing the LED color, brightness and color cycle.
* fit-statUSB identifies to the PC as a serial device and changes the LED color by text commands received over the serial port.
* See [https://fit-iot.com/web/product/fit-statusb/ fit-statUSB product page]
 
== Commands ==
== Using fit-statUSB in Windows ==
=== Drivers ===
* [https://fit-iot.com/files/download/accessories/fit-statusb/sw/Win7/msp430_ti_signed.inf Fit-statUSB Windows 7 driver]
* [https://fit-iot.com/files/download/accessories/fit-statusb/sw/Win8.1/msp430_cdc.zip Fit-statUSB Windows 8.1 driver]
* Additional drivers are not required for Windows 10 operating systems
 
=== Using fit-statUSB from terminal ===
* Open a terminal utility with serial port support (e.g. [https://ttssh2.osdn.jp Teraterm])
== Using fit-statUSB in Linux ==
=== Using fit-statUSB from terminal ===
==== Using Bash Command line ====
* First you need to configure the Serial port
sudo stty -F /dev/ttyACM0 9600 raw -echo -echoe -echok -echoctl -echoke
* Send the command directly to the TYY port
echo "B#FF0000-1000#00FF00-500" > /dev/ttyACM0
- Please note that some Linux distributions will require sudo privileges to echo directly to serial
 
==== Sample Python code ====
* Python dependencies: pyserial
import serial<br>
ser = serial.Serial("/dev/ttyACM0")
ser.write(b"B#FF0000-500#00FF00-500#0000FF-500\n")
ser.close()
- Note that new line must be addded at the end of the command String
=== Detect fit-statUSB Serial Port ===
Look for fit_StatUSB String and its assigned TTY device
[[Image:dmesg_command_output_fitstatUSB.png|thumb|none|400px|Example of dmesg command output]]
 
== Application notes ==
* [http://fit-pc.com/forum/viewforum.php?f=175 Application notes on fit-PC forum by user hassellbear]
1,586
edits