JunOllyLi / espidf5_edgetx

EdgeTX build with ESP-IDF v5
Apache License 2.0
23 stars 8 forks source link

Does this source compatible to elrs ?? #5

Open PravarHegde opened 1 month ago

JunOllyLi commented 1 month ago

Good question, by reading the code, it seems that it should be, if that ELRS module supports the same protocol as other MultiProtocolModule over the UART (You can see at least in 2.10 the ELRS code and MPM code are in the same multi.cpp). But I have never tried it. I may have a more clear answer in a few month, since my PCB did have the connector for both 4in1 and ELRS, with the hope they work well. 😄

PravarHegde commented 1 month ago

Okay okay

PravarHegde commented 3 weeks ago

Any update??

JunOllyLi commented 3 weeks ago

Any update??

Oh, sorry. I meant "in a few month" 😄 My PCBs were manufactured but still on their way to me, and I expect a lot more needs to be done after I got it, before I got to the ELRS stuff.

relaxibus commented 3 weeks ago

hi, did you ever connected an elrs or any other JR style TX module with a single line UART (half duplex)?

JunOllyLi commented 3 weeks ago

hi, did you ever connected an elrs or any other JR style TX module with a single line UART (half duplex)?

If you meant half duplex that TX RX uses the same line but at different time, it is possible but that depends on the ELRS module supports it or not. If you meant only one way, then I guess not. At least by reading the code, it is expecting to receive some data from the module.

PravarHegde commented 3 weeks ago

Is it possible to connect the LoRa RFM95W or RA02 directly to the ESP32 as an internal ELRS instead of using an ELRS external module?

JunOllyLi commented 3 weeks ago

Is it possible to connect the LoRa RFM95W or RA02 directly to the ESP32 as an internal ELRS instead of using an ELRS add-on?

I don't see any reason why not. And as a matter of fact, from the ES32 point of view, there is really no difference between internal module and external module (I think this is what you meant by "add-on"). The difference between internal and external are mainly from the mechanical point of view

relaxibus commented 3 weeks ago

hi, did you ever connected an elrs or any other JR style TX module with a single line UART (half duplex)?

If you meant half duplex that TX RX uses the same line but at different time, it is possible but that depends on the ELRS module supports it or not. If you meant only one way, then I guess not. At least by reading the code, it is expecting to receive some data from the module.

I mean, how do you connect a JR style elrs TX module to your ESP32?

JunOllyLi commented 2 weeks ago

hi, did you ever connected an elrs or any other JR style TX module with a single line UART (half duplex)?

If you meant half duplex that TX RX uses the same line but at different time, it is possible but that depends on the ELRS module supports it or not. If you meant only one way, then I guess not. At least by reading the code, it is expecting to receive some data from the module.

I mean, how do you connect a JR style elrs TX module to your ESP32?

Oh, sorry I missed the JR part. ommunication wise you can connect the signal pin to the ESP32 pin used for other TX module. Although my design use those pin as UART, but ESP32 is very flexible about pin muxing, the SW can use that pin for other purpose you like. However, if I understood correctly the JR requires a regulated 6V supply, which yo will need to add your own

relaxibus commented 2 weeks ago

The JR slot only offers a single pin for Tx/Rx, there is no full UART available.

JunOllyLi commented 2 weeks ago

The JR slot only offers a single pin for Tx/Rx, there is no full UART available.

Still, the SW could be coded to support that. Maybe some pullup/pulldown resistors needed? Depending on exactly what protocol is used on that line. I have not really study that. But I don't really see anything preventing ESP32 doing it.