Quantcast
Channel: Objective Development Forums
Viewing all articles
Browse latest Browse all 4524

Re: Atmega328p + V-USB Linux Problems

$
0
0
Hi martinay,
thanks for your answer!
I have tried what you suggested (no timer) like this:
void loop(){
  serial.poll();
}

This does not produce errors but does not output anything ether… When I disconnect the device cable, there is an error »hid_read() returned error« (in »HID API Test Tool«).
When I add a print() to it like this:
void loop(){
  serial.poll();
  serial.print("?");
}

Now I receive 8 bytes multiple times and after a vey short time I see the same error like without the print() multiple times (for every print-call!?).

The same code runs fine for hours on Mac/Windows.

Do you know about USB driver differences between Mac/Windows and Linux which could cause this? I am using LibUSB as a driver.

Viewing all articles
Browse latest Browse all 4524

Trending Articles