Using Digi Watchport/H USB Serial Humidity/Temperature Sensor in Linux
Ubuntu 9.04 has everything you need except for minicom. So all I had to do was to:
-
plug it in
dmesg should get you the following output:
usb 2-9: new full speed USB device using ohci_hcd and address 50 usb 2-9: configuration #1 chosen from 1 choice io_ti 2-9:1.0: Edgeport TI 1 port adapter converter detected usb 2-9: Edgeport TI 1 port adapter converter now attached to ttyUSB0'
-
Install minicom:
sudo apt-get install minicom
-
Edit minicom settings:
minicom -s
-
Change the ‘Serial Device’ to ‘/dev/ttyUSB0’
-
Change the ‘Bps/Par/Bits’ field to ‘9600 8N1’, (9600 baud, 8 bits, no parity, 1 stop bit). These are the default settings used by the Linux kernel; they can, if necessary, be overridden from the kernel command line by adding extra parameters to the ‘console=’ option. See ‘kernel-parameters.txt’ and ‘serial-console.txt’.
-
Turn off both ‘Hardware Flow Control’ and ‘Software Flow Control’.
-
In the ‘Modem and dialing’ menu, remove the ‘Init string’ and ‘Reset string’ completely if required.
-
Save your new config
-
start minicom
-
-
Use one of the following commands:
Command |
Now all I need is a perl script to automate the posting of these values to twitter?