zergosfr wrote:
Is it possible to make serial communication trough HID ?
You mean something slow like RS232? If that's your final goal you'd better look for some FT232 instead.
If not, I'll try to guess: you have a stream of data and you want to transfer it using USB, specifically using the HID class cause this one is well-supported and fairly easy to use on host-side. If so, I'd say yes, it is possible, but no, it doesn't seem like a good idea, and I'll try to make my point clear to you.
HID doesn't mean it must interface with a human in order to be classified so, but you know, while using such a class of devices you're supposed not to transfer big amounts of data, it uses interrupt transfers, which are not the
ideal way to transfer such a load of data (you spoke about MBytes, that's way more than a lot for a report).
Furthermore HID-compliant devices are usually classified so because they fall into something meant in the
Hid Usage Tables, this gives the device a fair grade of portability. IMHO transferring serial data trough HID reports is just an exploit that defeats the purpose of the HID class itself.
PS: I can't help with ATMEL's USB stack because I've never used it, but I do have some working HID firmware implemented on my own. It quite sucks and I won't put it into a product that has to get on the marked, but it could be good if you need something to get some inspiration from... lemme know if you need it.