-
Notifications
You must be signed in to change notification settings - Fork 155
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
ExpressLRS support #1009
ExpressLRS support #1009
Conversation
Hi Phobos, I see that firmware, nr c84450e it is excact same nr, as version i flashed in my Tx 30december2020. There is no ELRS protocol in the list, but when selecting CRSF protocol, (note no module present in bay), I can see an empty menu, no txt, just yellow line which can be changed 4 positions up/down. Thanks for all your great help and efforts !! |
Hi, thanks for the comment. For CRSF it is different, it is a hardware UART implementation: Deviation uses STM32F103RET6 at least for t8sg which I have on hand - that processor is incapable of inverting the UART signal in software, there are additional hardware inverters needed. That would not be the case if an F3 family was used. I actually also have an R9M module which I flashed and modded to work with ExpressLRS and Deviation, but I modded it in a way that only allows for one way communication between the module and TX. What it means is you can only send stick information to the module, but you will not receive any communication back, like configuration data, telemetry, etc. If you still want to do the mod you can refer to the short tutorial I posted on RCGroups: You will be able to use ExpressLRS gear, but still this Pull Request will not help you, you will see a blank page. With ESP based module module, you can invert/uninvert the signal on the module side via software. Communication to and from the module would then work as expected, and the CRSF protocol menu should look like this: |
I have recompiled source for the 2400_TX_ESP32_SX1280_E28_via_UART (-DUART_INVERTED be commented out in user_defines.txt) DIY_2400_TX_ESP32_SX1280_E28_via_UART.zip (this way you have not to do the 'dirty work' of installing Visual Studio, settings ,for compiling etc....) |
And what about the R9M, i assume there is an hardware inverter onboard? The resistor mod and alos the temperature issues in R9M were serial comms are affected, maybe we could also get rid off as bot bit of strange issues.... Is there any shematic of R9M or the Happymodel 868? |
Hey! This is great. Would it be possible to also do a build for the V2 non-plus? The Carbon T8SG uses that firmware. Thanks! |
with diy esp-01f+sx127x 868mhz it works fine https://github.com/ExpressLRS/ExpressLRS/wiki/Building-an-Esp-Rx#custom-esp-900-mhz-rx |
That's awesome!! Thanks.. As soon as my module arrives I'll get going with this. Thank you very much! |
Got it up and running. Nice one. |
Thats great, have you tried on fligth allready? mine fell a loot more reactive... |
I pushed a small bugfix that caused the menus to glitch sometimes. Builds are updated in the first (top) comment. |
Hello my friends... I would like a little help over here, just to be clear that my Jumper/RadioMaster TX8 (deviation-t8sg_v2) would work ok with Happymodel 2.4Ghz TX/RX combo. - In order to make it work I must do the next steps?? 1- Crossfire pin mod. I would appreciate your help.... not understanding what to do... it's what have me with my purchase on hold. Thanks in advance from Chile (Venezuelan guy) |
Hi, I installed the firmware and completed the hardware mod, but I was wondering: |
@jviticofpv yes, that's it, just remember to flash Happymodel tx with -DUART_INVERTED commented out : |
@Thomas-Lawford no need, just follow the same steps as @jviticofpv described in the comment above yours. |
perfect.... but this part is what I don't understand. I'm sorry to insist, but could you tell me where to get the "how to" about this part.... specially the "comment out part"... if this means that I must do some coding? (installing coding software)? if is like this last part (I'll hope) will. be perfect, because I know that I can do it 😅😅.. thanks again for your help... |
@jviticofpv You can use the ExpressLRS configurator to flash the firmware: here are two examples, there are many more tutorials on youtube. |
thanks so much.... I'm already purchased my expresslrs setup... thanks for clarify my doubts.... |
Hey! I just flashed this to my radio, seemed fine.. except, when I accidentally switched to sbus and back to crsf the menu was gone. I had to load another model, switch off the radio, switch on, reload elrs and it was back. Also, I doesn't look like wifi update is working on MacOs.. Chrome stalls at 17% and then wifi is lost... which brings me to another question, is there a way for me to see what version of expresslrs I'm running on my radio? ("version" in the menu would be nice..) Thanks for the awesome work! |
Wait for eLRS 1.1, it'll arrive soon and will work using the same code as existing CRSF support in deviation nightly builds. No need for the special build above (which is probably causing the issue you report with menus). No idea why WiFi update doesn't work- please report on eLRS GitHub. Edit- the lua menu changes are now planned for 2.x cos they're incompatible with prior 1.x menu code. |
Wait? Haha.. with something this exciting? ;-) .. But that's really good to hear. I'll ask about the wifi update 'issue' on the elrs github/ discord... Like I said.. it's also possible it does work, but there's (in deviationtx at least atm) not an easy way to check version running on the tx afaik.... |
Well.. i think if update dont work and it work on rx, they cant bind if both dont have same version.. |
Just to inform I had r9m running in t8sg v2 plus fine. (inc telemetry) (modified the tray) I connected Rx1, to the CPPM pin. (and removed the transistor) I flashed https://github.com/DeviationTX/deviation/files/6503349/deviation-t8sg_v2_plus-v5.0.0-1dc62dc.zip However in CRSF menu, I get an empty bar which I can move up and down. |
Did you change the UART inversion when building eLRS? Setting for T8SG is opposite of OpenTX. |
I used R9M. Inversion is only availble for DIY ESP? However I connected direct to tx rx pins as by picture above, so it should bypass the Frsky invertors on the pcb of the R9M ? |
Just flashed my T8SG v2 carbon with deviation-t8sg_v2-v5.0.0-575ef03 . |
I'm using carbon T8SG with deviation-t8sg_v2-v5.0.0-575ef03.zip and ELRS1.0-1.1 works fine. |
What is your device name? Names > 12 characters don't render properly in DeviationTX. |
@kotyatokino I am currently adding support for v1.2 to spi rx, I will take a look at deviationtx side after bf side is done 😅 Please stick to v1.1 for the time being. |
If you know where the device name length limits are in DeviationTX that would be awesome to fix @phobos- , myself and @StonedDawg hunted for that and couldn't see where the 12 char limit is set. |
@kotyatokino I was able to reproduce your issue, looks like ExpressLRS/ExpressLRS#897 breaks compatibility with deviationTX. I will look into it. |
@phobos- But the value didn't get from TX module by crashed. I clearly understand current situation. BTW, Do you have debug and build instruction page for deviation tx? DO you know the instruction availabe? |
Hmm... I didn't understand everything. |
@kotyatokino this change is what BREAKS it, not fixes it. I removed this line from expresslrs code, compiled & flashed my ExpressLRS TX module and it started working again. I changed: |
Hi guys still to get back to use cases for the old red R9M's in T8SG still laying around covered in dust; Anybody tried to hook up the external R9M UART Port into bay of T8SGV2 Plus ? Change ExpressLRS targets.h the RC pins to that port , so we should get rid of any nasty invertors ? #define GPIO_PIN_RCSIGNAL_RX PA10 #elif defined(TARGET_R9M_TX) || defined(TARGET_TX_ES915TX) #define GPIO_PIN_RFamp_APC1 PA6 //APC2 is connected through a I2C dac and is handled elsewhere #define GPIO_PIN_NSS PB12 #define GPIO_PIN_DEBUG_RX PA10 // confirmed #define GPIO_PIN_BUFFER_OE PA5 //CONFIRMED #define DAC_I2C_ADDRESS 0b0001100
|
Thank you for your explation. |
hmmm.. I just giving up debugging... |
Yes, it's the most awkward debug system. I thought the same thing. |
I just gave it a re-try T8SG V2 Plus, with R9M ExpressLRS flashed, but the CRSF menu is not working for me. |
Hi ! I 've just received my new HappyModel elrs 2.4 Tx module and trying it with T8SG plus .I get the classic problem with blankCRSF menus. Thank you for your time |
Try this #1018 (comment) |
Hi, First things first, thank you all for trying to keep Deviationtx alive and usable with ELRS! It is thanks to this post if I'm able to use a HGLRC TX 2.4Ghz on my beloved T8SG V2 PLUS! - THANK YOU ALL - (@phobos- you're the best) Now, as many of you I was stuck with fw 1.1 since I read that 1.2 wasn't good yet. But yesterday I flashed my tx with ELSR fw version 1.2.1 and everything seem to work just fine. The only bug I noticed is the power value that you can add on the main page of your model freeze sometimes and come back if you go in the model setup and re-int the CRFS module. Other values like LQ, RSSI work fine on both radio and Betaflight. Thoughts? Questions? Comments? Do you want me to do some tests? Thank you guys and happy flying |
@harlock00999 elrs stable V2 has been released, please use V2, and this PR from Phobos for your deviationtx |
I'm going right now!!! Thank you! |
Based on the deviation pull for T8SG elrs setup menu. This change implement the setup package, you have to manually setup the code. And press button to update the setup in the TX module. Optimization needed to remove the press operation. DeviationTX/deviation#1009
closing this, as expresslrs v2.0 is natively supported in deviationTX. |
There's still the 12 character limit, which many users struggle with. I'm using -DDEVICE_NAME to compile my eLRS TX with a shorter name, but would be great if the CRSF code could just concat fields to 12 chars instead of rendering a blank line. |
This adds the same functionality as ExpressLRS LUA in DeviationTX:
https://github.com/ExpressLRS/ExpressLRS/blob/develop/src/lua/ELRS.lua
This code works with ExpressLRS v1.0.0-RC1 onwards.
Attached test binaries for Jumper T8SG V2 Plus.
Feedback is very much welcome.
(Note - only esp based ExpressLRS tx modules are supported -> -DUART_INVERTED needs to be commented out in user_defines.txt)
(Note2 - you need hardware CRSF mod in your radio in order for CRSF to work on the correct pin. Tutorial here: https://www.youtube.com/watch?v=Lr_YRGJl5x8)
deviation-t8sg_v2_plus-v5.0.0-1dc62dc.zip
deviation-t8sg_v2-v5.0.0-1dc62dc.zip