msrc icon indicating copy to clipboard operation
msrc copied to clipboard

HOTT protocol support

Open slowake opened this issue 7 months ago • 11 comments

HOTT protocol is not working. I am prepared to test it further, as we allready did it with DanielGA on RCGroups

slowake avatar Jun 04 '25 13:06 slowake

Sure. I've just upload a massive update due to increasing the accuracy for the GPS and improving the serial monitor.

This was a small change, but a lot of coding. Let's restart the tests. You'll need to download latest binaries for both firmware and MSRC Link.

Now, you can read Serial Monitor at GPIOs 1, 5 & 6.

Enable only analog voltage and post output. If nothing, select Serial Monitor at GPIO 1 and post output.

dgatf avatar Jun 05 '25 20:06 dgatf

It is ok with Hott protocol and transmitter ON. MSRC is sending the packet, but the receiver is not reading it. It can be that is malformed or the circuit.

  • Do you have any resistor on the telemetry line (GPIO 1&2)?
  • Do you have a genuine Hott sensor the read the telemetry frames?

dgatf avatar Jun 09 '25 21:06 dgatf

Sorry for my late answer, your mail were in my spam.

Yes, HOTT packets are presented, but after some secods they disappears.

  1. I have resistor 120 ohm between GPIO0 and 1 (is the resistance OK?). I have tested direct connections to receiver from both GPIOs. Both give the same result.

  2. I have genuine Graupner vario sensor, it is working. And i have a vario sensor MS5611 connected to MSRC too.

All my testing is now with firmare from github issue (not regular github firmware) with only voltage activated.

slowake avatar Jun 11 '25 06:06 slowake

Yes, HOTT packets are presented, but after some secods they disappears.

Maybe because the receiver is not reading the packages.

I have resistor 120 ohm between GPIO0 and 1 (is the resistance OK?). I have tested direct connections to receiver from both GPIOs. Both give the same result.

It's ok. Though you can remove it for testing to discard weak signal.

I have genuine Graupner vario sensor, it is working. And i have a vario sensor MS5611 connected to MSRC too.

Please connect the genuine sensor to the receiver and MSRC as shown below (read Hott where Spektrum) and select Receiver -> Serial Monitor, 19200, GPIO 5 (or GPIOs 1 or 6 if you prefer), timeout 3ms, format HEX. Post the log.

Image

All my testing is now with firmare from github issue (not regular github firmware) with only voltage activated.

Use latest firmware & MSRC Link from binaries.

dgatf avatar Jun 11 '25 08:06 dgatf

Latest firmware from github. Vario and receiver connected together to GPIO5

Log1: Serial monitor, GPIO5, 19200, 1, none, String

Log2: Serial monitor, GPIO5, 19200, 1, none, HEX

On transmitter is vario detected

MSRC_debug Log1.txt MSRC_debug Log2.txt

slowake avatar Jun 11 '25 12:06 slowake

Only HEX format is needed. There is something odd with the crc. If you compare three packets from the genuine sensor, being the packets the same bytes, the crc is different (and different from MSRC calcs, which is 0x33):

0x7C 0x89 0x0 0x90 0x0 0xF4 0x1 0xF4 0x5 0x0 0x0 0x0 0xBE 0x0 0x0 0x0 0x75 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x7D 0xC1
0x7C 0x89 0x0 0x90 0x0 0xF4 0x1 0xF4 0x5 0x0 0x0 0x0 0xBE 0x0 0x0 0x0 0x75 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x7D 0xB6
0x7C 0x89 0x0 0x90 0x0 0xF4 0x1 0xF4 0x5 0x0 0x0 0x0 0xBE 0x0 0x0 0x0 0x75 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x7D 0xE9

dgatf avatar Jun 11 '25 13:06 dgatf

I've added a delay of 50ms based on the log. Please flash latest firmware and enable vario in MSRC. No need to connect the vario physical sensor. Select protocol Hott and connect to gpio 0&1. It will send one of the genuine sensor packet:

0x7C 0x89 0x0 0x90 0x0 0xF4 0x1 0xF4 0x5 0x0 0x0 0x0 0xBE 0x0 0x0 0x0 0x75 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x7D 0xC1

Check for telemetry and post the log.

dgatf avatar Jun 11 '25 13:06 dgatf

Latest firmware loaded. Vario sensor enabled, but not connected. HOTT protocol. GPIO0 and 1. HOTT messages at the end of log disappear. Interesting - after i reconnect the MSRC, vario in msrc_link is not checked.

MSRC_debug Log3.txt

slowake avatar Jun 11 '25 17:06 slowake

I can't reproduce that. Check that you are not grounding GPIO 15. This is a new feature to reset to default config.

Check that you have selected one of the three varios, no only the check box.

Just in case, restore default config with gpio 15 or from the file menu.

dgatf avatar Jun 11 '25 17:06 dgatf

Sorry, i have not selected sensor type. HOTT messages are presented and they are equal, as you posted here. After some seconds they disappear. On transmitter no vario sensor

MSRC_debug Log4.txt

slowake avatar Jun 12 '25 10:06 slowake

The receiver is not reading MSRC packets. Please try the same test with a pullup resistor to the telemetry line. Values from 1k to 10k.

dgatf avatar Jun 22 '25 12:06 dgatf

HOTT and Vario MS5611 activated (not connected). Pullup resistor 1K to 3,3V (HOTT receivers input level is max 3,3V). Transmitter ON, MSRC ON, MSRC_link Connect, enable log. HOTT messages disappear after some seconds

MSRC_debug Log5.txt

slowake avatar Jun 23 '25 08:06 slowake

Based on MAVLink2Hott, I've added interbyte delays (500us) and adjusted telemetry response delay (5000us).

Please repeat test with the latest binaries.

dgatf avatar Jul 10 '25 14:07 dgatf

Now it is working with some exceptions.

Configuration is here: Image

On transmitter are detected three modules: Vario, Electr. Air and GP. Thats OK.

  • Vario MS-5611 is working OK.
  • GPS is Beitian BN-220. I mean, it is working, as on transmitter are GPS coordinates showing.
  • Electr. Air: Voltage and Current are working. Capacity is showed on LOG and is increased. But on transmitter is allways 0 mAh. NTC temperature is not working.

Here is log:

MSRC_debug Log6.txt

slowake avatar Jul 11 '25 08:07 slowake

Sorry, NTC temperature is working too. Bad connections

slowake avatar Jul 11 '25 09:07 slowake

Great. I'll check the capacity.

dgatf avatar Jul 11 '25 11:07 dgatf

Fixed analog current consumption with commit 1221031.

dgatf avatar Jul 11 '25 11:07 dgatf