/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 2: Dev 7, If 0, Class=Vendor Specific Class, Driver=, 12M
/: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
|__ Port 2: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=uhci_hcd/2p, 12M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/8p, 480M
root@office:~# lsusb
Bus 005 Device 007: ID 0403:0000 Future Technology Devices International, Ltd H4SMK 7 Port Hub
usbreset:
http://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line
sudo su -
stty -F /dev/ttyUSB0 speed 9600 cs8 -cstopb -parenb -echo
echo -en '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' > /dev/ttyUSB0
while read -r line
do
echo -en $line > /dev/ttyUSB0
done < "$1"
stty -F /dev/ttyUSB0 speed 9600 cs8 -cstopb -parenb
while true; do read -n 1 LINE < /dev/ttyUSB1; echo $LINE | xxd -p; done
while true; do
cat -v < /dev/ttyUSB0
done
while read -rs -n 1 c; do echo $c | xxd -p; done < /dev/ttyUSB0while read -rs -n 1 c; do echo $c | od -x; done < /dev/ttyUSB0
Text2Conv="Aa"
root@encaps-System-Product-Name:~# for letter in $(echo "$Text2Conv" | sed "s/\(.\)/'\1 /g");do printf '%x' "$letter";done
4161