Okay, I am very confused right now.
I used a Beagle 480 to check the "over the wire" data on a USB serial device. The data sent with my program is the same as the original, the only difrence is the host->device data using multiple USB packets. But the data my program reads is not the same as what the original reads, despite the same data being sent over the wire.
What in the world is going on here?
@gudenau are the descriptors identical? Same max packet size, etc?
@MacVette It's the same device, different software. Everything is identical USB wise.
@gudenau what about the buffer storage in your software. Can it handle the max packet size or the entire chunk of data? Are interrupts being used?
@MacVette The data is coming back different, for example 0xAA becomes 0x2A.
@gudenau does that happen if you memcpy() your buffer with zero after reading each chunk? Could the 0x2A be stale data?
@MacVette I'm effectively using read.
@gudenau maybe reading single bytes cannot keep up with the transfer rate.
@MacVette The AA from the device is an ACK and it waits for a response. All the data is correct on the line.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!