Transfer idea needed
Posted: Tue Jul 26, 2011 10:35 pm
Hi,
I'm quite unexperienced with USB/HID in general so I need some help.
Using HID is mandatory. On my µC I have a table full of data. It's pretty much as big as the eeprom is. The host software (written in Delphi using a TJvHidDeviceController component) needs to be able to update each line in this table. I already figured this out (SetFeature). Using GetFeature to read a predefined line also works.
The "problem" now is to read out any other line of the table. Or all of them. Let's say I want to read line 23. My idea was to introduce a new report id just to tell the µC which line is next with SetFeature, then use GetFeature. A bit complicated, isn't it? How would you do it?
Thanks.
I'm quite unexperienced with USB/HID in general so I need some help.
Using HID is mandatory. On my µC I have a table full of data. It's pretty much as big as the eeprom is. The host software (written in Delphi using a TJvHidDeviceController component) needs to be able to update each line in this table. I already figured this out (SetFeature). Using GetFeature to read a predefined line also works.
The "problem" now is to read out any other line of the table. Or all of them. Let's say I want to read line 23. My idea was to introduce a new report id just to tell the µC which line is next with SetFeature, then use GetFeature. A bit complicated, isn't it? How would you do it?
Thanks.