Skip to content

Add support to AltSoftSerial #6

@gutierrezps

Description

@gutierrezps

Hi again. After facing issue #5 on ESP8266, my workaround was to move the RDM6300 to an Arduino Nano (that I'm already using for other functions) that communicates with the ESP through I2C. And to my surprise, while a tag was being read, the Arduino returned garbage on the I2C, and sometimes even locked the bus by keeping the SDA line low.

So I plugged a logic analyzer and there it was: the I2C transaction was becoming corrupt if data was being sent by the RFID reader.

Here's a proper I2C transaction between the Arduino and the ESP:

Proper I2C transaction

And here's the I2C transaction being corrupted while the RFID is sending the tag data.

Corrupted I2C transaction

Notice that the I2C transaction is fragmented, and also the bus is locked up after that. After searching about problems with SoftwareSerial, I came across PaulStoffregen/AltSoftSerial library, replaced it on RDM6300 library, and the I2C problems vanished. The downside was that only pin 8 could be used for Serial RX, but it wasn't a problem for me.

That said, what do you think about adding support to AltSoftSerial library on ATmega328 based Arduinos (Uno, Nano, Pro Mini, etc)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions