SoftwareSerial parameters

Sorry, I'm from China and my English is not very good. I want to know if the software serial can set parameters other than baud rate? There is no documentation. I have a headache!!!

@

TOPIC SPLIT
PLEASE DO NOT HIJACK / NECRO POST !

Could you take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

How hard did you look ?
https://www.arduino.cc/en/Reference/softwareSerial

Hi,
I think this link will tell you more, such as parity settings etc.
https://www.arduino.cc/reference/en/language/functions/communication/serial/begin/

Tom... :smiley: :+1: :coffee: :australia:

First of all, thank you very much. I know the serial. Begin (speed, config) method. My doubt is that the software serial cannot use the serial. Begin (speed, config), which is an ordinary IO analog serial port. No suitable document has been found. Finally, thank you for your help.

I don't think any of the software serial libraries support varying parity bits - ODD, EVEN, MARK, SPACE etc. I think all you have control over is the baud rate.

Do you expect to find a document telling you about something that SoftwareSerial can't do ? The reference that I linked to has a link to the begin() function. It has details of the parameters that can be used and that does not include a config. I would conclude, therefore, that using config is not an option when using SoftwareSerial.

If you want to be certain then you have the source code for SoftwareSerial on your PC and can check for yourself, but I can tell you now that there is only one begin() function and it is not overloaded to accept a config parameter

Well, thank you very much.

Well, thank you very much.I can only simulate the serial port through the delay method.:handshake:

I don't understand what you mean by that. Can you please provide more details ?

The actual reason is the programmer would have to write ALL the error recovery code and this would be way too much thinking for beginning Arduino programmers.
Paul

This is China's CSDN. Can you see it
(使用单片机普通IO口模拟串口的三种方法_HopesunIce的博客-CSDN博客)

You're right