HOTT protocol support
HOTT protocol is not working. I am prepared to test it further, as we allready did it with DanielGA on RCGroups
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.
I tested it. In all cases no data on transmitter. File names are selfexplaining
HOTT,voltage activated,transmitter OFF.txt HOTT,voltage activated,transmitter ON.txt Serial monitor,input1,19200,1,,none,1,string.txt Serial monitor,input5,19200,1,,none,1,string.txt Serial monitor,input6,19200,1,,none,1,string.txt
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?
Sorry for my late answer, your mail were in my spam.
Yes, HOTT packets are presented, but after some secods they disappears.
-
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.
-
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.
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.
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.
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
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
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.
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.
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.
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
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.
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
Based on MAVLink2Hott, I've added interbyte delays (500us) and adjusted telemetry response delay (5000us).
Please repeat test with the latest binaries.
Now it is working with some exceptions.
Configuration is here:
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:
Sorry, NTC temperature is working too. Bad connections
Great. I'll check the capacity.
Fixed analog current consumption with commit 1221031.