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

Multiplex FHSS M-LINK Protocol

Open Josep65 opened this issue 6 years ago • 50 comments

Hi There, Is it possible to add the Multiplex FHSS M-LINK Protocol or do they use different hardware? I have various receivers and would like to use them with my new Jumper. I have looked around the forum and I have not been able to see if it has already been asked before. Thank you.

Josep65 avatar Aug 25 '20 16:08 Josep65

I've already looked at this protocol but failed to reverse engineer it in the given time and I needed to send back all the hardware (TX+RX). The issue was mainly around the use of a pseudo random generator for the hopping frequencies... rwijnhov is supposed to send me a TX+RX so I can try again but I haven't received anything. Without the hardware there is no chance to get it done.

pascallanger avatar Aug 25 '20 16:08 pascallanger

Thank you very much for your quick reply. I can send you a receiver, but not a transmitter, because it's broken. That is the reason why I have multiple receivers. If you need a receiver, do not hesitate to ask me and I will send it to you. Thanks again. Josep

Missatge de pascallanger [email protected] del dia dt., 25 d’ag. 2020 a les 18:39:

I've already looked at this protocol but failed to reverse engineer it in the given time and I needed to send back all the hardware (TX+RX). The issue was mainly around the use of a pseudo random generator for the hopping frequencies... rwijnhov is supposed to send me a TX+RX so I can try again but I haven't received anything. Without the hardware there is no chance to get it done.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/pascallanger/DIY-Multiprotocol-TX-Module/issues/420#issuecomment-680138386, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQXXNEUXGM4QTZQGJEJY2RLSCPSLNANCNFSM4QK3CQFA .

Josep65 avatar Aug 25 '20 17:08 Josep65

Hello Pascal I can send you a radio and a transmitter

weixelgeist avatar Oct 04 '20 13:10 weixelgeist

I've made some progress on reversing this protocol. I think I should be able to replicate the TX I currently have on my desk but only this specific TX. More ground work is needed to understand how to create more IDs if possible but definitively getting there.

pascallanger avatar Nov 02 '20 17:11 pascallanger

Basically they've added a 8 bits CRC at the end of the payload with a poly of 0x31 reflected in and out with no xorout. The problem is now to determine the CRC init value which is a combination of the hopping table index and something else depending on ???. More to come when I'll have time.

pascallanger avatar Nov 02 '20 17:11 pascallanger

M-Link is kind of working:

  • Bind works most of the time but not 100%
  • On 2 RXs, one works fine including telemetry, the second works for a couple of seconds and stops...

pascallanger avatar Feb 01 '21 15:02 pascallanger

Good job Pascal, I think there will be a lot of users hopeful with your progress. If you need any other receiver I can send it to you. Thank you very much for the work you are doing.

Josep65 avatar Feb 01 '21 16:02 Josep65

The M-Link protocol is part of the test build available here: https://downloads.multi-module.org/latest-test/ Details:

  • 16 channels
  • Extended limits supported
  • No failsafe for now but working on it
  • Telemetry is "strange". I have 2 RXs RX-5 and RX-9-DR both sends completly different telemetry packets so I'm not sure how to decode it. I also don't have a TX capable of displaying telemetry neither sensors or even an understanding on how telemetry works for M-Link...
  • Full ID support
  • Bind works. One of the RX binds within a meter but the other needs to be 10cm or less away so put your RX really close (even nearly touching the antennas if bind doesn't work).
  • It is NOT part of the T18 build since there is not enough flash space...

Please report.

pascallanger avatar Feb 05 '21 18:02 pascallanger

This protocol took Ben and me a long time to figure out. The implementation has been a real pain which has been going on for several months because some RXs where working and not others... I hope all this has been addressed now and that we will get positive reports.

If you know how the telemetry works, have sensors, an original radio that display it and an external multi module contact me!

pascallanger avatar Feb 05 '21 18:02 pascallanger

Failsafe has now been added. Warning: Failsafe MUST be configured once with the desired channel values (position) while the RX is up (wait 10+sec for the RX to learn the config) and then failsafe MUST be set to RX/Receiver otherwise the servos will jitter!!!

pascallanger avatar Feb 06 '21 09:02 pascallanger

Thanks Pascal. I will tray and report.

Josep65 avatar Feb 06 '21 09:02 Josep65

Hi Pascal, great job, I like to test the protocol on my T18 but unfortunately MLINK is excluded for the T18. No problem I downloaded the sources and changed the configuration. Unfortunately I must change validate.h, which make it more complicated to adapt new versions. I'm not familiar with the project how to implement a elegant solution ( #define T18_EXCL_MLINK ? ) Coming week I will test MLINK for a friend.

hgo-be avatar Feb 07 '21 14:02 hgo-be

Hi Pascal. I have tried several receivers with success. Two RX-7, one RX-7-DR and one RX-5 Light. All of them have easily bind to 30 cm. I have also configured Failsafe as you have explained without jitter. In all of them I received a telemetry signal (except RX-5 light, don’t has this function). I try to connect a Vario/altimeter sensor without results, I’m not sure if its due to no signal or my poor hability getting results. I’m really satisfied with your job. Thanks.

Josep65 avatar Feb 07 '21 19:02 Josep65

@Josep65 if you use the latest test version v1.3.2.31, you'll be able to plug some sensors. I haven't added the vario but I've added current, tempetature, voltage and rpm. Let me know if it works as I have no way to test since I don't have sensors. If it works I'll add more if them.

pascallanger avatar Feb 07 '21 19:02 pascallanger

Hi Pascal, great job, I like to test the protocol on my T18 but unfortunately MLINK is excluded for the T18. No problem I downloaded the sources and changed the configuration. Unfortunately I must change validate.h, which make it more complicated to adapt new versions. I'm not familiar with the project how to implement a elegant solution ( #define T18_EXCL_MLINK ? ) Coming week I will test MLINK for a friend.

I'm not sure how to deal with flash saturation. Since I've added M-Link, there is no more flash space for the normal and T18 build... So something has to give up, I'm just unsure what to do. If you have an idea... I'll remove the validate.h hack that I've just put there to enable me to do the release. I'll modify the automatic builds instead.

pascallanger avatar Feb 07 '21 20:02 pascallanger

Hi Pascal, great job, I like to test the protocol on my T18 but unfortunately MLINK is excluded for the T18. No problem I downloaded the sources and changed the configuration. Unfortunately I must change validate.h, which make it more complicated to adapt new versions. I'm not familiar with the project how to implement a elegant solution ( #define T18_EXCL_MLINK ? ) Coming week I will test MLINK for a friend.

I'm not sure how to deal with flash saturation. Since I've added M-Link, there is no more flash space for the normal and T18 build... So something has to give up, I'm just unsure what to do. If you have an idea... I'll remove the validate.h hack that I've just put there to enable me to do the release. I'll modify the automatic builds instead. I like the idea to modify the automatic builds

hgo-be avatar Feb 08 '21 07:02 hgo-be

Have you seen the MPX Sensor bus configuration here or is this only useful for developing sensors.

Srelliks avatar Feb 08 '21 10:02 Srelliks

Have you seen the MPX Sensor bus configuration here or is this only useful for developing sensors.

This is exactly the document I'm using to decode the telemetry: beschreibung-sensor-bus-v2.pdf

pascallanger avatar Feb 08 '21 13:02 pascallanger

@Josep65 if you use the latest test version v1.3.2.31, you'll be able to plug some sensors. I haven't added the vario but I've added current, tempetature, voltage and rpm. Let me know if it works as I have no way to test since I don't have sensors. If it works I'll add more if them.

Unfortunately I only have vario sensor. I'm trying to get some of the ones you implemented to test, but I'm not sure I can get them. I'll keep you informed.

Josep65 avatar Feb 08 '21 18:02 Josep65

Pascal, I am in the UK so probably not practical to send you any of my sensors. You note that the telemetry is strange, one thing that occurred to me is the ability to set up a priority telemetry address on the Multiplex receivers so that the sensor value on that address is transmitted to the transmitter on a more regular basis and it maybe that this affects the way the telemetry is sent. You can check this on the Multiplex receivers through the Multiplex launcher program.

Srelliks avatar Feb 08 '21 18:02 Srelliks