Skip to content
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

Frsky D8 SoftwareSerial #69

Open
giubu opened this issue May 7, 2023 · 5 comments
Open

Frsky D8 SoftwareSerial #69

giubu opened this issue May 7, 2023 · 5 comments

Comments

@giubu
Copy link

giubu commented May 7, 2023

Hello, thank you for your hard work.
I am trying to set up a D8 protocol receiver with a NANO.
I would like to use SoftwareSerial, so as to debug via USB.
is this possible?
thank you

@flybrianfly
Copy link
Contributor

It would definitely take some modifications since the library is built around the HardwareSerial interface. SBUS is at a baud rate of 100000, so also not sure if it's feasible to use software serial from a computing standpoint. Maybe it would be better to use the HardwareSerial for SBUS and the software serial to output debug info?

@giubu
Copy link
Author

giubu commented May 8, 2023

Thank you for the reply. That is a very good suggestion, and I have also seen it in another SBUS library. But I have also seen SoftwareSerial used for SBUS. If it can be done, it would be great for developing extra functionalities on the bench.
By the way, everything else is working fine on an Arduino NANO. Thank you

@giubu
Copy link
Author

giubu commented May 8, 2023

I am exploring possibilities of using AltSoftSerial library, which apparently can do 100000 baud rate. Could you give me an indication on how to modify the code? Do I have to implement it in the sbus.h file in /src ?
thank you

@flybrianfly
Copy link
Contributor

You'd have to change the HardwareSerial object to the software serial object. It's declared in sbus.h and the methods are used in sbus.cpp.

@giubu
Copy link
Author

giubu commented May 8, 2023

I will try, but my coding abilities are pretty limited...

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

2 participants