DIY-Multiprotocol-TX-Module icon indicating copy to clipboard operation
DIY-Multiprotocol-TX-Module copied to clipboard

Hitec telemetry not fully received

Open pierrotm777 opened this issue 1 year ago • 24 comments

I open this issue for help to complet the hitec telemetry. Actually, my Tx16s MkII 4IN1 receive only TRSS, TQly and RxBt. I should like to have all other features as rpm, current, voltage, temp, and fuel, etc.. For my test, I use:

  • Radiomaster Tx16s MkII 4IN1
  • Hitec optima 7 receiver
  • Hitec telemetry station HTS-SS
  • Hitec RPM sensor
  • Hitec Fuel.

I have a logic analyser. Thanks for your help, Pierre

pierrotm777 avatar May 14 '24 19:05 pierrotm777

Now that you give the sensors you are using, this is strange as it should be working at least the RPM but let's check what the module is receiving.

pascallanger avatar May 14 '24 20:05 pascallanger

How can I do that? That I know is that receiver as the master of the i2c bus and check several frame, x11 to 0x 1b. And the module return the frames populated.

pierrotm777 avatar May 14 '24 20:05 pierrotm777

Reopen sorry

pierrotm777 avatar May 14 '24 21:05 pierrotm777

Frame 11 contains the RXBatt RPM and FUEL should be in frame 15 Frame 1B contains the Vario information which is far from the RPM and Fuel you are talking about... I've looked at both hitec_v2-1 and hitec2. There is only a response on frame 11. Are you using real sensors or playing around? The sensors I've implemented on OpenTX/EdgeTX are at the end of the hitec protocol file with the frames content: https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/blob/2bdbd7088c0846b08be1d47e889d0cb85cf533ff/Multiprotocol/Hitec_cc2500.ino#L405

If you see the frames on the i2c bus then the RX should forward them to the module and the module to the radio to display them. Note that you should be on the sub protocol OPT_FW for the forward between module to radio to happen: https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/blob/master/Protocols_Details.md#sub_protocol-opt_fw---0

pascallanger avatar May 15 '24 07:05 pascallanger

I use real sensor for these tests. But I use optima as subprotocol and not opt_fw. As see if that changes something with opt_fw.

pierrotm777 avatar May 15 '24 08:05 pierrotm777

Curious, my mpm version has only optima, minima, or opt_hub. 20240515_101849

pierrotm777 avatar May 15 '24 08:05 pierrotm777

So Optima is the one you want (not OptHub)

pascallanger avatar May 15 '24 08:05 pascallanger

Do you see the i2c frames of your sensors?

pascallanger avatar May 15 '24 08:05 pascallanger

Curiously yes, I but they are empty.

pierrotm777 avatar May 15 '24 08:05 pierrotm777

If empty then they won't display... Verify the connections, that's all I can say.

pascallanger avatar May 15 '24 08:05 pascallanger

My connections are correct.

pierrotm777 avatar May 15 '24 09:05 pierrotm777

Then may be the telemetry station is faulty or the sensors... We can check what the module is receiving but I fear that it will be the same as what you have on i2c. With an external multi module, download the latest sources, select only a few protocols in _config.h and compile with debug option set to native for an irangex module or ftdi for the others, upload, open the serial monitor and you should see the debug prompts, save them to a file and upload it here.

pascallanger avatar May 15 '24 09:05 pascallanger

I have a diy external module for another radio, but it is not compatible with my tx16s external box. I need to work for adapt it, add power dc converter etc... I see that as soon as possible

pierrotm777 avatar May 15 '24 10:05 pierrotm777

Can i use your mm-stm-xn297dump-usbdebug-v1.3.4.0.bin or i need to compile my own version ?

pierrotm777 avatar May 15 '24 10:05 pierrotm777

I have a diy external module for another radio, but it is not compatible with my tx16s external box. I need to work for adapt it, add power dc converter etc... I see that as soon as possible

Debug is only available on stm32 modules

pascallanger avatar May 15 '24 10:05 pascallanger

Can i use your mm-stm-xn297dump-usbdebug-v1.3.4.0.bin or i need to compile my own version ?

I can't remember which protocols are included in the xn297dump version. The best is to compile by yourself.

pascallanger avatar May 15 '24 10:05 pascallanger

Ok, I use a blackpill board as module. This is my Diy board, here a bluepill but i use a blackpill. MPM_FrskyR9_stm32

I have build a board for my external box. diy_ext_board Witch pin i must to use for Rx (B10) and Tx(A3).

pierrotm777 avatar May 15 '24 11:05 pierrotm777

It might just be easier to add a FTDI on your TX16S internal module...

I would say just that connecting RX to PPM_OUT would be enough to have debug working. You might have to adapt levels. TX would go on SPORT but it needs to be reversed.

pascallanger avatar May 15 '24 12:05 pascallanger

Do you think that this _config.h file would be ok for my blackpill on my external tx16s ? Config.zip

pierrotm777 avatar May 15 '24 15:05 pierrotm777

From a quick review it looks good.

pascallanger avatar May 15 '24 17:05 pascallanger

Ok, i shall try to update and adapt my module tomorrow.

Thanks for your help,

Pierre

pierrotm777 avatar May 15 '24 19:05 pierrotm777

Sorry Pascal, I was very busy this day. What I must define into my config file for build a FTDI debug version. Tx to S-port pin and Rx to PPM_OUT pin. I upload always my firmware with a FTDI module on pins a9/a10 and +5v/gnd. I suppose that the debug uses these pins?

pierrotm777 avatar May 16 '24 18:05 pierrotm777

It's not in the config file but in Arduino. Set Debug Option to FTDI.

pascallanger avatar May 16 '24 18:05 pascallanger

Ok, in the board definition. Yes

pierrotm777 avatar May 16 '24 18:05 pierrotm777

Hello Pascal,

Sorry again for this delay. I have some issue for have a firmware witch bind my hitec receiver. Do i need to uncomment these two lines ? image

I send you again my last config file. _Config.zip

For upload the firmware, i hold the BOOT button and power the module and i use my FTDI module for upload the firmware. I connect well the A3 pin to S-Port and B10 to PPM_OUT pin.

But no bind :-(

pierrotm777 avatar May 19 '24 08:05 pierrotm777

I have tried also to use the flash_multi tool for upload my firmware with same result, no bind. I have also tried the mm-stm-xn297dump-ftdidebug-v1.3.4.0.bin firmware. No bind. My led blink each second.

If i use my internal module, i can bind without issue.

pierrotm777 avatar May 19 '24 09:05 pierrotm777

What does the LED ?

pascallanger avatar May 19 '24 09:05 pascallanger

The LED BLINK each 500ms i think. I have tested my module with my DIY handset and my LED stay well to ON. So my DIY handset see well that HITEC protocol is on the MPM module. But on my TX16S, the LED blink always.

pierrotm777 avatar May 19 '24 10:05 pierrotm777

It's i invert my serial connection, my led is now ON and i can bind :-) I continue now.

pierrotm777 avatar May 19 '24 10:05 pierrotm777

Bind is now ok, i can move a servo on my channel 3, but i haven't telemetry. My stm32 haven't inverted serial port. I have commented all telemetry defines: //#define INVERT_TELEMETRY

//#define INVERT_TELEMETRY_TX

//#define MULTI_TELEMETRY

//#define MULTI_SYNC

pierrotm777 avatar May 19 '24 10:05 pierrotm777