-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Adding NOX Softserial port #5334
Comments
Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details. |
Hi m8 I just modded and compiled for TARGET=NOX to get softserial working and also I2c. Tested with GPS on softserial on LED PAD and PPM PAD. I2c is on UART1. You can still using UART1 as uart and also LED/PPM as their original function (but not both functions at once). target.mk
target.h
target.c
|
Thanks for your code. I looked it over to try to understand it. It is not necessary to change these lines in target.c when you are using softserial on the LED and PPM pads?
I'm planning to use GPS on UART1, Frsky FPORT on UART2 and SmartAudio VTX control on Softserial TX (PPM PAD). Will that combination work? |
I guess there is some kind of conditional anywhere, you can preserve that lines as is. I have already a working GPS on softserial1, located on pins PPM and LED. Your combination should work. Regards. |
This issue / pull request has been automatically marked as stale because it has not had any activity in 60 days. The resources of the INAV team are limited, and so we are asking for your help. |
Automatically closing as inactive. |
I would also need a soft serial port for SmartAudio, preferably on the LED pad. Could someone maybe add that? |
Can Youy show me how to connect Fport, Gps on this board! |
I'm trying to add a SoftSerial port to the NOX target to allow SmartAudio VTX control using the LED pad.
I'm a software developer, but don't have experience with this type of hardware. I hope this is the appropriate place to ask these questions.
I looked over the existing code for NOX and have a couple of questions.
There appears to be a SoftSerial 1 defined already as a workaround for ESC telemetry:
If I don't need ESC telemetry, can I redefine SoftSerial1 on PA0 (LED PAD)?
My current plan is to define SoftSerial2 to PA0.
In target.c, there is a timerHardware section I don't understand.
I assume the line
DEF_TIM(TIM2, CH1, PA0, TIM_USE_LED
needs to change, but I'm not sure to what.Are TIM2 and CH1 still okay? Looking at other targets, there is a mix of TIM_USE_PPM and TIM_USE_ANY for softserial.
Note, I'll make my changes to a new target using the appropriate #ifdefs. I didn't want to complicate the discussion here.
Thanks for any help.
The text was updated successfully, but these errors were encountered: