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

fix: check both SBUS trainer ports regardless of TRAINER_MODULE_SBUS_USART #5149

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

raphaelcoeffic
Copy link
Member

Fixes #5139

Summary of changes:

  • removed #if defined(TRAINER_MODULE_SBUS_USART) and just check presence of potential ports instead.

@mha1
Copy link
Contributor

mha1 commented Jun 10, 2024

Thanks

@bug400
Copy link
Contributor

bug400 commented Jun 10, 2024

Successfully tested with QX7Acces radio (main and 2.10.1)

@pfeerick pfeerick added the bug/regression ↩️ A new version of EdgeTX broke something label Jun 10, 2024
@pfeerick pfeerick added this to the 2.10.2 milestone Jun 10, 2024
@pfeerick pfeerick merged commit 61a52b8 into main Jun 10, 2024
45 checks passed
@pfeerick pfeerick deleted the fix-5139 branch June 10, 2024 23:51
pfeerick pushed a commit that referenced this pull request Jun 10, 2024
.. regardless of TRAINER_MODULE_SBUS_USART define
@Tiefflieger68
Copy link

Tiefflieger68 commented Jul 2, 2024

@pfeerick

I've struggled about an "issue" with my RM MT12.
SBUS Trainer at SPort Pin worked fine at 2.10.1. But with 2.10.2 SBUS input was moved back from SPort Pin to HB Pin.
For my understanding HB should be used if there is no independend SPort Pin in the Module Bay (shared Pin for internal and external Module). But there is a independent SPort Pin in the MT12 Radio. So SPort should be used for SBUS Trainer.

Find the discussion started by me at Discord:
https://discord.com/channels/839849772864503828/839895574244229152/1257669878924705792

@raphaelcoeffic
Copy link
Member Author

For my understanding HB should be used if there is no independend SPort Pin in the Module Bay (shared Pin for internal and external Module). But there is a independent SPort Pin in the MT12 Radio. So SPort should be used for SBUS Trainer.

It's the opposite: S.PORT pin is only used if no heartbeat pin can be used (no hardware serial). It was mistaken in 2.10.1 and has been fixed in 2.10.2.

@Tiefflieger68
Copy link

OK - Thanks for clarification

@mha1
Copy link
Contributor

mha1 commented Jul 3, 2024

@raphaelcoeffic I have yet to check TX16s 2.10.2. It has a hardware serial on HB but as you know not functional for receiving serial data without a hairy mod. Place your bets if the change killed Master/SBUS on the TX16s.

@3djc
Copy link
Collaborator

3djc commented Jul 3, 2024

The HB pin on TX16S does not support inversion, so SPORT pin is used there with 2.10.2

@mha1
Copy link
Contributor

mha1 commented Jul 3, 2024

yes, tested, TX16s works with SBUS on SPort.

@Will-Ac
Copy link

Will-Ac commented Sep 29, 2024

Using V2.10.4
I have tried to get Master/SBUS feature working on Radiomaster Zorro without luck.
I used a Happymodel EP2 RX connected to module bay.
Before connecting to module bay, EP2 was set to SBUS and confirmed as outputting SBUS using ToolkitRC SBUS input checker, when moving sticks on student (Slave) RM pocket radio.
When I connected EP2 to Instructor radio (Master) module bay, I used a 5V voltage regulator to avoid hurting the EP2, which powered up fine when Master/SBUS was selected as trainer source in model settings and bound to student radio as expected.
I tried connecting the TX pad on EP2 to both the HB and SPORT pins with no luck.
I tried with EP2 set to both SBUS and Inverted SBUS.

I also tried using ToolkitRC SBUS output hooked up to module bay again to both HB and SPORT pins also without luck.

I also tried the above with Pocket and Zorro reversed. No luck.
Has this feature been tested on either Zorro or Pocket?

I do hope I can get it working as it’s a really nice feature and would be great to have it up &running and fully documented.

I tried the wired trainer method and all worked fine as expected.
I also repeated all of the above with Radiomaster ER4 receiver, with working SBUS out, but without success

@Will-Ac
Copy link

Will-Ac commented Oct 3, 2024

I have finally figured it out. :)
TLDR: on Zorro, for SBUS in I had to use Module pin PXX IN (EXT_RX) rather than SPORT to get it to work.

It appears that different pins may have to be used on different radios.
To make this feature usable the documentation needs to be updated to clarify which pin on which radio, if they are indeed different. and maybe also whether it requires SBUS or Inverted SBUS isignal in ELRS setup. On my RX I used SBUS.

My working setup is as follows:
EdgeTX V2.10.4 ELRS v3.5
Master setup->
Radio: Zorro internal ELRS
Setup in Module bay (right pin1 - left pin8) ->
Module GND (pin2) VMAIN (pin3) provide 8.4V
Micro BEC steps 8.4V down to 5V. (I will use smallest available being Matek Micro BEC) mine is a bit bigger.
Happymodel EP2 receiver wired to BEC (Max 5V input)
Module PXX IN or EXT_RX (pin6) wired to EP2 TX pad. (I had wrongly tried SPORT and Heartbeat pins, but these might work on other radios) this needs to be better documented
External RF Mode: OFF
Trainer Mode: Master/SBUS
Global functions (or model sepcfic Special functions)->
On push button - Trainer - Axis (or Chans)

Pupil Setup ->
Radio: Pocket internal ELRS
Internal RF - Mode: CRSF (ie ELRS)
Internal module bound to EP2 receiver in Master Radio using different Bind phrase from phrase used between Master radio TX and plane RX

@Will-Ac
Copy link

Will-Ac commented Oct 11, 2024

I found same pinout works on RM Pocket.

Here's is my final hardware setup using smaller RX and DC-DC converter, so it fits under module cover.

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/regression ↩️ A new version of EdgeTX broke something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trainer SBUS does not work on TARANIS QX7-Access
7 participants