armadsen / ORSSerialPort

Serial port library for Objective-C and Swift macOS apps
MIT License
753 stars 183 forks source link

I can't seem to receive the last byte #120

Closed JetForMe closed 7 years ago

JetForMe commented 7 years ago

I'm talking to these IonMC motor controllers. They have a packet serial mode (and built-in USB that shows up as a serial port) that returns the response to a request, and a 2-byte CRC. It seems no matter what I do, I don't get the last byte back.

Now, I don't think this is necessarily a bug, as a loopback test works fine; I get back all the bytes I send.

But something odd is happening and I'm at a loss as to what to try next. It always fails to deliver to my code the last byte. I've inquired with IonMC to see if there's any chance it's not sending the last byte, but I haven't heard back yet.

Any suggestions what to try? Thanks!

JetForMe commented 7 years ago

Okay, I think it was the firmware on these things. Too old, and wasn't responding with the documented result.