Skip to content

SoftwareSerial (FAIL) #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
schultzda opened this issue Jul 1, 2023 · 11 comments
Closed

SoftwareSerial (FAIL) #3

schultzda opened this issue Jul 1, 2023 · 11 comments

Comments

@schultzda
Copy link

Link to test program -> https://docs.arduino.cc/tutorials/communication/TwoPortReceive
UNO R4 Wifi was configured to use the pins as defined in the program. I was using two ultrasonic sensors (A02YYUW) and their RX and TX pins.
Fails to compile with reported error of " Class SoftwareSerial has no member named 'listen'

I reinstalled the AVR core libraries to make sure that I had updated libraries. I also drilled down to SoftwareSerial.h file on my computer to make sure that listen was included and it was.

FAIL

Hope I did this correctly as this is my first report here.

@schultzda schultzda changed the title SoftwareSerial SoftwareSerial (FAIL) Jul 1, 2023
@phfbertoleti
Copy link

Regarding SoftwareSerial in Uno R4 Minima, I couldn't make it work using GPIOs 10 and 11. It seems nothing is being transmitted nor received using SoftwareSerial in Uno R4 boards in these GPIOs

@Hsubtnarg
Copy link

I have the same issue using pin 10,11. did you get it working with any other pins?

@schultzda
Copy link
Author

schultzda commented Jul 16, 2023 via email

@Hsubtnarg
Copy link

I tryed pins 8 and 9 and it seems to work although now Im getting corruption on the messages Im sending, but I get the same with the hardware serial, so there is still something wrong

@schultzda
Copy link
Author

schultzda commented Jul 16, 2023 via email

@alranel
Copy link

alranel commented Jul 17, 2023

Hello!
Not all pins can be used for SoftwareSerial. See this note in the examples for SoftwareSerial on UNO R4:

// Note any pin can be used for TX, but only the following pins
// can be used for RX:
// D0, D1, D2, D3, D8, D14, D15, A1, A2, A3, A4, A5

@alranel alranel closed this as completed Jul 17, 2023
@schultzda
Copy link
Author

schultzda commented Jul 17, 2023 via email

@Hsubtnarg
Copy link

I have been doing some more investigating on this and looks like the Uno R4 is not sending the stop bit correctly. For 9600baud it should be about 120us, but it is only 62us.
image

This is cause the frame to drift and causing errors on the reciver. This is the same code running on a Lenardo.
image

@Rojasoterom
Copy link

For the record:

I use SoftwareSerial on R4 Wifi, using ports 0,1 (yes, ports of Serial1). When i disconnect USB C, Arduino capture the information without problems (im sending information via MQTT to see the data).

@Hsubtnarg
Copy link

For the record:

I use SoftwareSerial on R4 Wifi, using ports 0,1 (yes, ports of Serial1). When i disconnect USB C, Arduino capture the information without problems (im sending information via MQTT to see the data).

Thanks, but it will depend on how the receiving device handles it. For my application it didn't.

@ShortArrow
Copy link

Hello! Not all pins can be used for SoftwareSerial. See this note in the examples for SoftwareSerial on UNO R4:

// Note any pin can be used for TX, but only the following pins
// can be used for RX:
// D0, D1, D2, D3, D8, D14, D15, A1, A2, A3, A4, A5

Add link to Example of SoftwareSerial on ArduinoCore-renesas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants