Skip to content

Software Serial #4

@tjb8907

Description

@tjb8907

I am trying to convert you code to use software serial, so I can use it the the analyzer board I built based on Zapta's project (https://github.com/zapta/linbus/tree/master/analyzer)

It uses a ATA6631 Lin Transceiver with the RX pin hooked do D2 and TX hooked to C2 (Analog 2, but used at digital)

Goal is to be able send a full frame at a given time. I have already reverse engineered the frame that I need.

Could you maybe give me some pointers?

Lin(LIN_SERIAL& ser=Serial,uint8_t txPin=1);

I know I would change the TX pin to 16 (A2).
I tried defining a software serial by including the Library, and then

'Software Serial mySerial(2,16);'

and then changing ser=Serial to ser=mySerial, but it said mySerial was not not declared in this scope.

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