hid-data, always 0xff
Posted: Tue Dec 16, 2008 12:15 am
Hello,
i tried to use hid-data example and if i type into commandline "hidtool.exe write 0x45" and subsequently "hidtool.exe read" i always get 0xff (128 times). System found device correctly:
Can anybody help me, how to send simply data to avr and how to get some data back? My idea is communicate via USB similarly as through UART, but i know, it's more complicated. Does anybody have very very simple project with atmega8 under windows?
I'm beginner in this things. Will anybody have nerves for me?
Thanks
Petr Dvorak
i tried to use hid-data example and if i type into commandline "hidtool.exe write 0x45" and subsequently "hidtool.exe read" i always get 0xff (128 times). System found device correctly:
Code: Select all
bus-0/\\.\libusb0-0008--0x16c0-0x05df 16C0/05DF
- Manufacturer : obdev.at
- Product : DataStore
wTotalLength: 34
bNumInterfaces: 1
bConfigurationValue: 1
iConfiguration: 0
bmAttributes: 80h
MaxPower: 10
bInterfaceNumber: 0
bAlternateSetting: 0
bNumEndpoints: 1
bInterfaceClass: 3
bInterfaceSubClass: 0
bInterfaceProtocol: 0
iInterface: 0
bEndpointAddress: 81h
bmAttributes: 03h
wMaxPacketSize: 8
bInterval: 100
bRefresh: 0
bSynchAddress: 0
Can anybody help me, how to send simply data to avr and how to get some data back? My idea is communicate via USB similarly as through UART, but i know, it's more complicated. Does anybody have very very simple project with atmega8 under windows?
I'm beginner in this things. Will anybody have nerves for me?
Thanks
Petr Dvorak