I have a sketch that use two softwareserial ports
It works fine on UNO R3 but when migrating to R4 WiFi I get this error message
"error: 'class SoftwareSerial' has no member named 'listen'
MySerial.listen();
exit status 1
'class SoftwareSerial' has no member named 'listen'"
It seems as the listen class is not included for SoftwareSerial for R4 Wifi
To me this seems strange.
Anyone experiencing the same problem or have a solution on how to use two softwareserial ports on R4 WiFi?
Are you aware that the R4 Unos have two hardware UARTs ? The Serial interface is used by the Serial monitor and to upload code. The completely separate Serial1 interface uses pins 0 and 1 on the board
Are you sure that even a single instance of SoftwareSerial forks on the Uno R4 ?
Hi, I just want to say thank you for the fast response.
To use the Serial1 hardware serial solved the problem.
I am still surprised that the support for multiple software serial is gone on the R4.
The SoftwareSerial they implemented for the UNO R4 is much more complex than what we are used to on AVRs and other MCUs ... suffice it to say that they use DMA for data transfer ... so I understand the difficulties they might have in implementing multiple instances and those related to implementing other methods.
Hi All, After reading the comments, Is the implication that the Uno R4 WiFi is incapable of more then 1 (or 2) Softserial objects?
I have a project that needs at least 6 DFPlayer MP3 players to operate, and each uses a serial connection. Along with a lot of other pins being used for various reasons, I am using a series of MCP23X17 Io extender boards. Without the Softerial.Listen() command, how can I set this up on the UNO R4 WiFi board? If this board is incapable, what is a good replacement for it that is capable?
Hi Jonwall, I was ripping my hair out trying to get DFPlayer Mini to work with the r4. Only to realize it works fine with the R3. What did you adjust to serial connection to work?
Sample code for library uses SoftwareSerial mySoftwareSerial(10,11);
Thanks! How do I tell Serial to use 0 and 1? I.e. what is the equivalent of SoftwareSerial mySoftwareSerial(10,11); using 0 and 1 if not using software serial?]
The Arduino UNO R4 have more physical serials so you don't need a software emulation. The serial port on pin 0 and 1 is identified as Serial1 instead of Serial (which is the one via USB)