ATmega USB IR Master

First test V-USB with ATmega8
Based on V-USB tutorials



sudo apt-get install libusb-dev

the complete code for usbtest.c from project zip file

gcc -I/usr/include -L/usr/lib/x86_64-linux-gnu -O -Wall usbtest.c -o usbtest.exe -lusb

sudo ./usbtest.exe on
sudo ./usbtest.exe off
#############

usbconsole.zip

mega8usb.zip

##############
JVC TV pwr:
0,0,0,94,218,94,218,94,61,94,61,94,61,94,60,94,61,94,61,94,218,94,218,94,218,94,61,94,218,94,61,94,61,94,61,94,  0,94,218,94,218,94,61,94,61,94,61,94,61,94,61,94,61,94,218,94,218,94,218,94,61,94,218,94,61,94,61,94,61,94,    0,94,218,94,218,94,61,94,61,94,61,94,61,94,61,94,61,94,218,94,218,94,218,94,61,94,218,94,61,94,61,94,61,94,0,94,218,94,218,94,61,94,61,94,61,94,61,94,61,94,61,94,218,94,218,94,218,94,61,94,218,90,65,94,61,94,61,94,0,94,218,94,218,94,61,94,61,94,61,94,61,94,61,94,61,94,218,94,218,94,218,94,61,94,218,94,61,94,61,94,61,94,0,94,218,94,218,94,61,94,61,94,61,94,61,94,61,94,61,94,218,94,218,94,218,94,61,94,218,94,61,94,61,94,61,94,0,94,218,94,218,94,61,94,61,94,61,94,61,94,61,94,61,94,218,94,218,94,218,94,61,94,218,90,65,94,61,94,61,94,0,0,0,0,0,0,0,0,0,0

0,158,77,10,28,10,28,10,8,10,8,10,8,10,8,10,8,10,8,10,28,10,28,10,28,10,8,10,28,10,8,10,8,10,8,10,       0,10,28,10,28,10,8,10,8,10,8,10,8,10,8,10,8,10,28,10,28,10,28,10,8,10,28,10,8,10,8,10,8,10,       0,10,28,10,28,10,8,10,9,10,9,10,9,10,9,10,9,10,28,10,28,10,28,10,8,10,28,10,8,10,9,10,9,10,0,10,28,10,28,10,8,10,9,10,9,10,9,10,9,10,9,10,28,10,28,10,28,10,8,10,28,10,8,10,9,10,9,10,0,10,28,10,28,10,8,10,9,10,9,10,9,10,9,10,9,10,28,10,28,10,28,10,8,10,28,10,8,10,9,10,9,10,0,10,28,10,28,10,8,10,9,10,9,10,9,10,9,10,9,10,28,10,28,10,28,10,8,10,28,10,8,10,9,10,9,10,0,10,28,10,28,10,8,10,8,10,9,10,9,10,9,10,9,10,28,10,28,10,28,10,8,10,28,10,8,10,9,10,9,1

stty -F /dev/ttyUSB0 9600 cs8 -cstopb -parenb -icanon min 1 time 1;  while true; do         cat -v < /dev/ttyUSB0; done

No comments: