Page 1 of 2

Crossfire telemetry and GPS data

Posted: Wed Jan 09, 2019 10:36 pm
by oyvinla
Hi,

I just flashed ersky9x to my taranis plus and was wondering if it is possible to get the crossfire LQ and GPS data from betaflight shown and logged on the taranis?

I have already found the telemetry and logging menus, but I can't find any GPS coordinates or LQ. I scrolled through the posts in this forum, and as I understand it, the "discover new sensors" option I know from opentx is not present in ersky9x.

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Thu Jan 10, 2019 12:19 am
by MikeB
In the LOGGING menu, you should find LAT and LONG near the end. These are the GPS coordinates.

I don't have any crossfire hardware, so cannot test anything. You should find these 6 telemetry items placed in the 6 "custom" telemetry values Cus1 to Cus6:
RX_RSSI1
RX_RSSI2
RX_QUALITY
RX_SNR
RX_ANTENNA
RF_MODE

Mike

Re: Crossfire telemetry and GPS data

Posted: Thu Jan 10, 2019 11:22 am
by oyvinla
Thanks, I must have missed those when going through the different variables

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Thu Jan 10, 2019 6:35 pm
by oyvinla
It doesn't look like they are present in the list. Do I need to change the user protocol in the telemetry menu? I can't find crossfire in the protocolsImageImageImageImageImage

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Thu Jan 10, 2019 8:00 pm
by oyvinla
Ok, found them on the screen. But it doesn't look like the crossfire telemetry is working. It might as well be myself that I haven't configured the telemetry as I should in the taranis fw, but as you can see from the pictures, the crossfire module receives the GPS dataImageImageImageImage

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Thu Jan 10, 2019 11:06 pm
by MikeB
When you select XFIRE as the protocol for the external module, the telemetry processing should change automatically.
Please have a look on the DEBUG menu (UP LONG then LEFT a few times). At the bottom are two numbers beside "TelRxCount". The first counts received telemetry bytes and will be counting up if some sort of telemetry is being received. The second is a code to indicate the type of telemetry being processed.

Please let me know what values you have there.

Mike

Re: Crossfire telemetry and GPS data

Posted: Fri Jan 11, 2019 10:36 pm
by oyvinla
As you can see from the pictures, the first value is a rolling value, while the other is staticImageImage

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Fri Jan 11, 2019 11:06 pm
by MikeB
Please create a raw log file and post it (zipped) so I may see what is being received. See here https://openrcforums.com/forum/viewtopi ... t=#p123508 for how to create one. Note the Raw Logging option is not preserved through a power cycle.

Mike

Re: Crossfire telemetry and GPS data

Posted: Sat Jan 12, 2019 8:07 am
by oyvinla
Thanks Mike,

Attached you'll find a 10 sec log

Re: Crossfire telemetry and GPS data

Posted: Sat Jan 12, 2019 10:26 pm
by MikeB
I've had a quick look and I can see valid crossfire telemetry frames. The GPS frame with LAT and LONG in seems to always contain all zeros!
I'm a bit short of time so it may be a couple of days before I can check everything. I may try building a special test version that provides some debug information relating to the crossfire telemetry processing.

Mike

Re: Crossfire telemetry and GPS data

Posted: Sun Jan 13, 2019 8:56 pm
by MikeB
Could you let me know what value you have for the telemetry item "TmOK"? To see it, you may need to put it on a custom telemetry screen.
On the "Logging menu" do you have any ticks at the very right of the display for RSSI and ACCX, ACCY and ACCZ?

Mike

Re: Crossfire telemetry and GPS data

Posted: Sun Jan 13, 2019 9:24 pm
by oyvinla
Thanks Mike,

As you can see from the picture, it seems to be 0ImageImageImage

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Sun Jan 13, 2019 10:25 pm
by MikeB
Did you flash the last release version of ersky9x or one of the test versions?

Mike

Re: Crossfire telemetry and GPS data

Posted: Mon Jan 14, 2019 5:35 am
by oyvinla
I flashed revision 221 for taranis plus from this page: http://www.er9x.com/

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Mon Jan 14, 2019 1:34 pm
by MikeB
Please go here: https://openrcforums.com/forum/viewtopi ... 676#p65894, and download ersky9xProvR222d2.zip.
Backup your existing EEPROM and then flash ersky9xr_rom.bin x9dp_rom.bin from the zip file.

I think the crossfire telemetry will then work OK.

Mike

Re: Crossfire telemetry and GPS data

Posted: Mon Jan 14, 2019 1:38 pm
by oyvinla
Thanks,

How do I backup the eeprom?

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Mon Jan 14, 2019 2:12 pm
by jhsa

Re: Crossfire telemetry and GPS data

Posted: Mon Jan 14, 2019 6:56 pm
by oyvinla
MikeB wrote: Mon Jan 14, 2019 1:34 pm Please go here: https://openrcforums.com/forum/viewtopi ... 676#p65894, and download ersky9xProvR222d2.zip.
Backup your existing EEPROM and then flash ersky9xr_rom.bin from the zip file.

I think the crossfire telemetry will then work OK.

Mike
Thank you.

I assume that the correct version to flash was x9dp_rom, not ersky9xr as I have a Taranis X9D plus?

I flashed the file from the zip, and I get telemetry for a short period of time, but get "no telemetry" voice alert and telemetry doesnt work after. in the video, you can see how it behaves.

https://www.youtube.com/watch?v=_J6SXTen25A

Re: Crossfire telemetry and GPS data

Posted: Mon Jan 14, 2019 7:18 pm
by MikeB
I assume you still have controls working when the telemetry stops?
Please create a raw logfile once the telemetry has stopped.

Mike

Re: Crossfire telemetry and GPS data

Posted: Mon Jan 14, 2019 7:33 pm
by oyvinla
Yeah, full control regardless of the telemetry.

Re: Crossfire telemetry and GPS data

Posted: Mon Jan 14, 2019 11:01 pm
by MikeB
I found one small bug that might explain the loss of telemetry, if the telemetry data wasn't correct at some point. I've posted a test version with this fixed, and also some debug counters added. These counters may help locate where the telemetry data, that looks OK in your log file, is going missing. They are displayed on the debug menu, 4 on the 4th line and 1 on the 5th line.
If telemetry stops working, please let me know which of these 5 counters is still counting.

Mike

Re: RE: Re: Crossfire telemetry and GPS data

Posted: Tue Jan 15, 2019 6:33 pm
by oyvinla
MikeB wrote:I found one small bug that might explain the loss of telemetry, if the telemetry data wasn't correct at some point. I've posted a test version with this fixed, and also some debug counters added. These counters may help locate where the telemetry data, that looks OK in your log file, is going missing. They are displayed on the debug menu, 4 on the 4th line and 1 on the 5th line.
If telemetry stops working, please let me know which of these 5 counters is still counting.

Mike
I'm sorry, but I'm not sure if I know where the debug screen you are talking about is. The only debug screen I can find is this one, and I can't see the information you are askingImage

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Tue Jan 15, 2019 6:37 pm
by MikeB
That's the screen, did you flash the special test version I posted (on the test versions thread)?

Mike

Re: Crossfire telemetry and GPS data

Posted: Tue Jan 15, 2019 7:02 pm
by oyvinla
yes, I downloaded ersky9xProvR222d2.zip from the first post in the link you provided (https://openrcforums.com/forum/viewtopi ... 676#p65894) and flashed x9dp_rom.bin

Re: Crossfire telemetry and GPS data

Posted: Tue Jan 15, 2019 7:07 pm
by MikeB
I have since posted "x9dp_romXfireTest.zip", which has the fix and added debug in.
Please flash that and re-test.

Mike

Re: Crossfire telemetry and GPS data

Posted: Tue Jan 15, 2019 7:38 pm
by oyvinla
Thanks, it looks like that version is working. I havent lost telemetry for several minutes, and I can see the GPS coordinates on the screen. The altitude doesnt seem to be right, 21meters on my OSD and 2.1m on the taranis.

Re: Crossfire telemetry and GPS data

Posted: Tue Jan 15, 2019 9:22 pm
by oyvinla
In opentx, there are two crossfire telemetry variables I normally use for signal strength warnings. That is RQly (Receive Quality) and RFMD (2=150Hz fast mode, 1=50Hz normal mode, 0=4Hz slow mode). I couldn't find them in the list of telemetry variables in the ersky9x firmware. Do they have a different name in this firmware?Image

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Wed Jan 16, 2019 12:04 am
by MikeB
Check the second post of this thread, I think you need Cus3 and Cus6.
You may assign a new name for these (see the Telemetry|Sensors menu), although this is a very new feature so the new name is not used everywhere (yet).

Mike

Re: Crossfire telemetry and GPS data

Posted: Wed Jan 16, 2019 9:02 am
by oyvinla
Ok, from my testing yesterday, it seemed like cus6 was the mode as you describe in post #2. I will do some more real-life testing as soon as the weather clears and I'm able to get out and fly, not just messing around with it insideImage

Sent fra min SM-G930F via Tapatalk


Re: Crossfire telemetry and GPS data

Posted: Wed Jan 16, 2019 7:04 pm
by MikeB
I've just been testing a change so the Cus1-6 values display their new names in most places if they are re-named. This will be in the next test version I post.

Mike