SlashDevin / NeoSWSerial

Efficient alternative to SoftwareSerial with attachInterrupt for RX chars, simultaneous RX & TX
173 stars 42 forks source link

Question marks #40

Open unstopp opened 4 years ago

unstopp commented 4 years ago

Works decent for a while, honestly I see no difference between this and SoftwareSerial. I still have corrupted data (only sometimes) in form of question marks (like on SoftwareSerial). This is not even the issue, after a while, all I get in the Serial.print are loads of question marks..

I'm sending data via Bluetooth (HM-10) from Arduino to iPhone and back from iPhone to Arduino, that's it.

I still experience some loss of data or incorrect/corrupted data sometimes. I see no upside into using this.. maybe I'm using it wrong?

Thank you

FlavorJ commented 3 years ago

If you can post code then I or someone else may be able to help.

In using this library, I have come across some corruption, but for me this is <1% and correctable using error checking. Also the library may have nothing to do with the data corruption; it could be hardware.

yaxu commented 2 years ago

The library claims to support simultaneous tx and rx, but in my tests that results in data corruption. Make sure you never transmit data at the same time as receiving it.