Mlink-FrSky-Telemetry converter

General Help and support for the Taranis Radio.
Tobi
Posts: 56
Joined: Sun Jul 26, 2015 8:17 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Tobi »

Hallo Sigi,

in meiner Horus (OpenTX2.2) habe ich ein ganz neues HF-Teil drin. In der Taranis ist es ein älteres. Da muss ich ml nachsehen, ob es V1 oder V2 ist. In beiden Fällen läuft es aber ohne Modifikationen. Horch einfach erst mal das Tx vom HF-Teil ab und lass Dir mal über Tx vom Nano die Werte ausgeben. Du kannst auch den FTDI direkt an Tx vom HF-teil hängen, wenn Du es aber über den Nano führst, bist Du sicher, dass der es richtig ausliesst.
Versuche mal folgenden Code:

loop()
{
if(Serial.avaible())
{
Serial.println(Serial.read());
}
}

Viele Grüsse

Tobi

User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: Mlink-FrSky-Telemetry converter

Post by kalle123 »

Hallo Tobi, erst mal schön, wieder von dir zu hören. ;)

Hab da mal eine Frage.

Bei fpv-community schreibt Sigi https://fpv-community.de/showthread.php ... ost1012207
- Tobi verwendet auch nur den Mini, ich den Nano.

- Tobi ist sich nicht sicher, ob der NANO die gleiche Serielle Funktion hat wie der Mini.
Tobi Sagt: " Die MLink-Library braucht die native RS232-Schnittstelle. Mit Softwareserial gibt es ggf. Timing-Proboleme."
Wo soll da der Unterschied sein? Ich pack deinen hex code per Progger direkt auf den Atmel 328P. M.E. unterscheiden sich Uno, Nano und Pro mini nur dadurch, daß bei Uno und Nano die USB Schnittstelle mit auf dem board ist. Aber sonst?

Ist das jetzt nur eine Vermutung von dir, oder ...?

Grüße KH
Tobi
Posts: 56
Joined: Sun Jul 26, 2015 8:17 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Tobi »

Moin moin,

klar, da ich den Nano nicht da habe, kann ich nur spekulieren. Ich weiss nicht wie der FTDI-Adapter beim Nano an der RS232 hängt. Beim Uno habe ich keine Probleme das HF-Teil Tx auszulesen. Ich muss bei Gelegenheit mal einen Nano besorgen. Da ich bisher noch nie Probleme hatte mit dem Auslesen des Tx - egal mit welchem Board (ausser Nano) - vermute ich die Probleme allerdings wo anders.
Tatsächlich gibt es bei SoftwareSerial manchmal Timing-Probleme. Ich habe zwar die SoftwareSerial auf Pin 10 Rx und 11 Tx im Treiber wieder mit drin, empfehle aber die Verwendung nicht, solange ich nicht weiss, warum es manchmal hakt. Da bleibe ich aber dran.
Mir wäre es auch lieber das ganze MLink über SoftwareSerial laufen zu lassen, damit man die native Schnittstelle zum Debuggen hat...

Viele Grüsse

Tobi
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: Mlink-FrSky-Telemetry converter

Post by kalle123 »

Hallo Tobi.

Hatte meine laienhafte Frage auch Reinhardt gestellt, der den aktuellen M-Link Konverter in C macht/gemacht hat.

Hier seine Antwort. Ist ja vielleicht interessant.

http://www.rc-network.de/forum/showthre ... ost4433879

Grüße KH
Tobi
Posts: 56
Joined: Sun Jul 26, 2015 8:17 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Tobi »

Hallo Kalle,

ich vermute, dass es nicht an der Hardware liegt. Aus der Entfernung ist das leider nur ganz schwer zu analysieren. Dazu bräuchte ich die gesamte Hardware auf dem Tisch, damit ich mal nach dem Fehler suchen kann. Momentan kann ich nur den Tip geben sich ranzutasten und erst mal zu versuchen, den Tx-Datenstrom vom HF-Teil auszulesen. Erst wenn das klappt, kann man den nächsten Schritt machen. Wichtig ist bei der Fehlersuche nicht zu viele Schritte gleichzeitig zu gehen.

Aber vielleicht hilft ja schon ein Foto vom Aufbau. Wo immer es nicht klappt möge man mal ein möglichst übersichtliches Bild machen und hier einstellen. Vielleicht sieht man dann ja schon was.

Viele Grüsse

Tobi

sigimann
Posts: 8
Joined: Mon Oct 09, 2017 3:38 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by sigimann »

Hallo Tobi

Bin etwas weiter gekommen. Ich hab die ganze IDE auf einen anderen Rechner installiert.

Hier läuft es jetzt.

1. Programm auf den Nano geladen, an ACT/Taranis anstecken = wie gehabt, es werden keine Telemetrie Sensoren gefunden.

2. FTDI mit Mini angesteckt - Sketch wird sofort ohne Probleme geladen = Programm ist jetzt auf dem Mini Pro

Weiter geht's mit Kabel anlöten und in Taranis testen, aber erst morgen..

An meinem WIN10 LAptop geht der FTDT nicht, auch jetzt nicht.

Sigi
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: Mlink-FrSky-Telemetry converter

Post by kalle123 »

Tobi, Sigi ist das "guinea pig" ;)

Ich hab doch kein ACT! Versuch nur ein bisschen zu helfen ....

Grüße KH
Tobi
Posts: 56
Joined: Sun Jul 26, 2015 8:17 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Tobi »

Hallo Sigi,

schön, dass wenigstens der Upload ging. Jetzt bin ich mal gespannt, wie es weiter geht.

Hallo Kalle,

ich weiss, ich habs allgemein formuliert, weil es ja ggf. noch mehr Leute betrifft, die ein ähnliches Problem haben könnte. ;)

Viele Grüsse

Tobi
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Mlink-FrSky-Telemetry converter

Post by jhsa »

Tobi wrote: Fri Nov 03, 2017 7:15 pm ..weil es ja ggf.noch mehr Leute betrifft, die ein ähnliches Problem haben könnte. ;)
:mrgreen: Wenn wir in Englisch schreiben, können mehr Leute das verstehen :mrgreen: ;)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: Mlink-FrSky-Telemetry converter

Post by kalle123 »

João, don't be so critical with us ;)

Amazing, that people with ACT equipment and an interest of using this in combination with FrSky are around!

KH
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Mlink-FrSky-Telemetry converter

Post by jhsa »

No, not critical, it was a joke. But really that information won't reach as many people as it could / should because they just don't understand it.
I would love to post in Portuguese here, but I don't because this is an English forum and I respect that. When I post some info I want it to reach as many people as possible. Ok, there are other Portuguese speaking users that contact me via PM in Portuguese. That is fine :)

Please do not take it as criticism, just common sense :)

It would be nice if we all spoke the same language, maybe this would be a better world..
Wow, I start sounding like Ronald Reagan :mrgreen:

He said something like:
"If we were invaded by an alien race from another world, how quick would we forget our own differences??"

:) ;)

João



Sent from my BLN-L21 using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
kalle123
Posts: 905
Joined: Sat Mar 29, 2014 10:59 am
Country: -
Location: Moenchengladbach

Re: Mlink-FrSky-Telemetry converter

Post by kalle123 »

I think, it was "our" foreign secretary, Mr. Westerwelle, who bitched at a BBC reporter, when that person asked a question in English at a German press conference .... :D "

MAN SPRICHT DEUTSCH!"

And the only words, I remember from a stay in Brasil. "Obrigado" and "Bom dia!". So I can not help you with that! Long time ago and totally OFF TOPIC :mrgreen:

br KH
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Mlink-FrSky-Telemetry converter

Post by jhsa »

:mrgreen: :mrgreen:
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
sigimann
Posts: 8
Joined: Mon Oct 09, 2017 3:38 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by sigimann »

So einfach könnte das Leben sein.

Das Flashen des Mini hat gestern mal ein paar Minuten gekostet.
gelötet, angesteckt und nach Sekunden waren die Telemetriewerte in der Taranis zu sehen.
Der Mini Pro funktioniert sofort.

Der Nano funktioniert somit nicht, ich habe den auch heute nochmal neu gefläsht und getestet, geht nicht.

Die ACT - RSSI liegt auf Adresse 3 / 0C00 und reagiert gut.
Auch die Empfängerspannung folgt sauber.

Sigi
Quaxwilly
Posts: 8
Joined: Sun Nov 05, 2017 6:09 pm
Country: -

Re: Mlink-FrSky-Telemetry converter / Nano geht jetzt

Post by Quaxwilly »

Hallo Zusammen,

ich hab' heute endlich meine Nano probieren können und hatte das gleiche Problem.

Beim Messen hat sich herausgestellt, dass der Serielle Eingangspegel einen kleinen Hub hat und nicht vernünftig nach unten geht. Hintergrund ist wohl, dass der Nano (wegen der COM-USB-Brücke) wohl eine andere Eingangsbeschaltung von Rx0 als andere Ardus hat.
Ich habe jetzt zwei mögliche Lösungen mit Erfolg erprobt:
a) Rx0 mit 680-820 Ohm auf GND ziehen (macht die Amplitude klein, aber geht gerade noch)
b) Den 1K Ohm Vorwiderstand komplett weg lassen, dann ist das Signal bei 2 Vpp bei low auf ca. 2V, also ein recht vernünftiger Hub (das ist meine favorisierte Lösung)

Hinweis: Serielle Ausgänge sind i.d.R. hochohmig und killen sich nicht gegenseitig, aber zum Download sollte man natürlich den Sender ausschalten ;)

And for João: Hola, just remove the resistor at Rx0 and it will work :)

Ich hab' den Nano jetzt nur am Ausgang vom ACT-Modul und noch nicht in der X9E erprobt, aber nachdem auch ordentliche Signale raus kommen bin ich guten Mutes.

Willy
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Mlink-FrSky-Telemetry converter

Post by jhsa »

;) :) :mrgreen:

Sent from my BLN-L21 using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Quaxwilly
Posts: 8
Joined: Sun Nov 05, 2017 6:09 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Quaxwilly »

Hello All,

I just tested my Nano on the X9E and again had problems. There has been a horrible signal on S.Port after switch on the transmitter. I could'nt believe it and nearly produced a knot in my brain. :? :?:
But after a little chocolate and looking out of the window I had an idea. :idea:
The signal is a mixture of PWM and S.Port !?!?!?
So I checked and .... tataaaa! After turning my connector 180 deg the X9E is receiving sensor-data :D

The HF-Bay in the schematic of Tobi is up side down (for X9E)!

In reality the S.Port is on the top and PWM is on the bottom.
So starting at the antenna/handle of X9E the order is:
S.Port
GND
VBatt
nc
PWM
so for the converter we need the upper 3 connectors.

I hope that is helpful to all the other X9E-guys.

regards
Willy
Tobi
Posts: 56
Joined: Sun Jul 26, 2015 8:17 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Tobi »

Hello,

if the resistors make problems, you can put them away. They are only a little protection for the port and not really necessarry.

Is the connector in Taranis x9e realy mirrored? Good to know. I will make a notice in schematic. Thanks!

Best regards

Tobi
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Mlink-FrSky-Telemetry converter

Post by jhsa »

Are you guys talking about the module bay pins? If so that is weird as it would mean normal RF modules wouldn't work, or if they did, the antenna would be at the bottom of the radio. :)

All my radios have:
PPM
NC
VCC
GND
SPORT / HUB

João

Sent from my BLN-L21 using Tapatalk

My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Tobi
Posts: 56
Joined: Sun Jul 26, 2015 8:17 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Tobi »

Hello João,

in Taranis 9XD+ and Horus the pins are like you wrote. A friend of me have got a Taranis X9E. I will check the pins of his radio as soon as possible.

Best regards

Tobi
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Mlink-FrSky-Telemetry converter

Post by MikeB »

João: The X9E doesn't have a module bay. Everything is internal, so if you fit a module, you need to route the antenna somewhere, possibly using the bluetooth antenna connection.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Mlink-FrSky-Telemetry converter

Post by jhsa »

Thanks for the explanation.. I never held a X9E in my hands so obviously I don't also know the internals.. :(
But I did find it strange..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Quaxwilly
Posts: 8
Joined: Sun Nov 05, 2017 6:09 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Quaxwilly »

Yes and no
the X9E has a module-port internally, but it's the other way round. The contacts are on top-side (near the handle).

regards
Willy
DSC08485.JPG
DSC08488.JPG
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Mlink-FrSky-Telemetry converter

Post by jhsa »

well well, surprise surprise :) Is the power to it controlled by the radio's firmware, or is it always ON?

Thanks for the pics

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Quaxwilly
Posts: 8
Joined: Sun Nov 05, 2017 6:09 pm
Country: -

Re: Mlink-FrSky-Telemetry converter / ACT-Protocol

Post by Quaxwilly »

Hello Tobi,

I have a little problem with my converter. One Information is not recognized. It's a "distance in m" from sensor 6. I's recognized by Vspeak, but not by converter (or Taranis).
So it could help me to understand your code in MlinkEx.cpp if I would have the ACT-protocoll. I looked for it in inet, but I couldn't find sufficient information. Could you publish that protocoll please (or send me in an PN)?

regards
Willy
Quaxwilly
Posts: 8
Joined: Sun Nov 05, 2017 6:09 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Quaxwilly »

Hello João,

it's controlled by the firmware. So it's only switched on after all warnings/confirmations (like the internal module).

regards
Willy
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Mlink-FrSky-Telemetry converter

Post by jhsa »

but independently from the main module, or are they switches together? I'm asking because Ersky9x supports 2 modules ( internal and external) on all radios.. On the 9x radios with upgrade boards it is possible to have this power control via software on both modules with a little circuit I designed and Mike implemented in the firmware.. So, knowing this is very interesting for people that wish to run Ersky9x on the X9E..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17979
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Mlink-FrSky-Telemetry converter

Post by MikeB »

The X9E has independently switched power to both internal and the "external" (inside) modules, fully supported by ersky9x.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Mlink-FrSky-Telemetry converter

Post by jhsa »

sweet.. :) Very nice indeed.. I don't fly with tray radios, but i start liking it :)
So, ersky9x guys, now you know :D
Thanks

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
Quaxwilly
Posts: 8
Joined: Sun Nov 05, 2017 6:09 pm
Country: -

Re: Mlink-FrSky-Telemetry converter

Post by Quaxwilly »

Hello Tobi,
i've got it :)
I just check the fixed adress and send it via A1.

Btw, I tried to understand MLinkEx::act_servo, but (very late) :roll: I recognized that that's a dead end because it's non used code.
Now I know why I could not understand the relation to the MLink-protocoll :lol:

regards
Willy

Post Reply

Return to “General help (FrSky Taranis radio)”