From: Glen41 <vd...@fr...> - 2007-12-02 13:29:17
|
I don't get anything when running the script ! I mean I did put the script in /opt/misterhouse and as a result I only get /opt/misterhouse/testscript.sh <serial port> and then I'm back to the prompt. > #! /bin/bash > > # Display output (in hex) from WGL W800RF32A RF receiver > > if [ $# -ne 1 ] ; then > echo "Usage: $0 <serial port>" > exit > fi > > echo "Reading from port: "$1 > stty -F $1 4800 cs8 raw cread clocal -parenb -cstopb -echo cat $1 | xxd -g > 1 > -c 4 > I tried to "bypass" the first pass and replace the $1 by /dev/ttyUSB0 but without result. When doing dmesg the related part is as follows: [ 26.584000] usbcore: registered new interface driver usbserial [ 26.584000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic [ 26.584000] usbcore: registered new interface driver usbserial_generic [ 26.584000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial Driver core [ 26.648000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device [ 26.648000] ftdi_sio 1-1:1.0: FTDI USB Serial Device converter detected [ 26.648000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/ftdi_sio.c: Detected FT232RL [ 26.648000] usb 1-1: FTDI USB Serial Device converter now attached to ttyUSB0 [ 26.648000] usbcore: registered new interface driver ftdi_sio [ 26.648000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver When doing lsusb: Bus 001 Device 003: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical Bus 001 Device 002: ID 0403:6001 Future Technology Devices International, Ltd 8-bit FIFO Bus 001 Device 001: ID 0000:0000 Bus 002 Device 001: ID 0000:0000 Regards, VD -- View this message in context: http://www.nabble.com/RFXCOM-on-Misterhouse---Ubuntu-tf4865244.html#a14115515 Sent from the Misterhouse - User mailing list archive at Nabble.com. |