Skip to content

Conversation

@NanoNM
Copy link

@NanoNM NanoNM commented Jan 9, 2026

fix pl18 can not use trainer port

Fixes #6710

Summary of changes:
change radio/targets/pl18/hal.h
origin

#define TRAINER_IN_GPIO                 GPIO_PIN(GPIOD, 12) // PD.12
#define TRAINER_IN_TIMER_Channel        LL_TIM_CHANNEL_CH1

#define TRAINER_OUT_GPIO                GPIO_PIN(GPIOD, 13) // PD.13
#define TRAINER_OUT_TIMER_Channel       LL_TIM_CHANNEL_CH2

fixed

#define TRAINER_IN_GPIO                 GPIO_PIN(GPIOD, 12) // PD.12
#define TRAINER_IN_TIMER_Channel        LL_TIM_CHANNEL_CH1

#define TRAINER_OUT_GPIO                GPIO_PIN(GPIOD, 12) // PD.12
#define TRAINER_OUT_TIMER_Channel       LL_TIM_CHANNEL_CH1

Tested functions:

  1. Use Phoenix Simulator √
  2. As Master/Jack √
  3. As Salve/Jack √

fix pl18 can not use trainer port
@pfeerick
Copy link
Member

pfeerick commented Jan 10, 2026

This however makes no sense... the PL18 schematic clearly shows PPM IN(PD.12) and PPM OUT (PD.13), which is the trainer in and out. So at worst they should be swapped.

  • You are using the RM Pocket as the master/trainer, and the PL18 as the slave/student - correct?
  • Are you using a stereo or mono cable?

@NanoNM
Copy link
Author

NanoNM commented Jan 10, 2026

This however makes no sense... the PL18 schematic clearly shows PPM IN(PD.12) and PPM OUT (PD.13), which is the trainer in and out. So at worst they should be swapped.

  • You are using the RM Pocket as the master/trainer, and the PL18 as the slave/student - correct?
  • Are you using a stereo or mono cable?

The video to the above questions : https://drive.google.com/file/d/1ZQR0Pr_-Pckyst7F9M-It3zP30XnRof9/view?usp=drive_link

@NanoNM
Copy link
Author

NanoNM commented Jan 10, 2026

sorry i dont have PL18 schematic. The pins I found using a multimeter and an oscilloscope.
and i tested swapped pd12 and pd13 and their timer,If the audio cable is plugged in properly the pl18 can only to be the Salve, Unless it is not properly placed.
I think it might be because the soldering sequence of the audio interface is different from that of other radio.

I'll upload a video .

https://drive.google.com/file/d/1UrN8vdMA-1iDjjzMChsjBW4T1nTTtYK0/view?usp=drive_link

The same result using stereo audio

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

Successfully merging this pull request may close these issues.

pl18 can not use Trainer port

2 participants