Crossfire telemetry and GPS data

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Crossfire telemetry and GPS data

Post by oyvinla » Wed Jan 09, 2019 10:36 pm

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



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

Re: Crossfire telemetry and GPS data

Post by MikeB » Thu Jan 10, 2019 12:19 am

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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Thu Jan 10, 2019 11:22 am

Thanks, I must have missed those when going through the different variables

Sent fra min SM-G930F via Tapatalk


oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Thu Jan 10, 2019 6:35 pm

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


oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Thu Jan 10, 2019 8:00 pm

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



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

Re: Crossfire telemetry and GPS data

Post by MikeB » Thu Jan 10, 2019 11:06 pm

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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Fri Jan 11, 2019 10:36 pm

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


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

Re: Crossfire telemetry and GPS data

Post by MikeB » Fri Jan 11, 2019 11:06 pm

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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Sat Jan 12, 2019 8:07 am

Thanks Mike,

Attached you'll find a 10 sec log
Attachments
Crossfire telemetry log.zip
(13.67 KiB) Downloaded 26 times

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

Re: Crossfire telemetry and GPS data

Post by MikeB » Sat Jan 12, 2019 10:26 pm

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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

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

Re: Crossfire telemetry and GPS data

Post by MikeB » Sun Jan 13, 2019 8:56 pm

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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Sun Jan 13, 2019 9:24 pm

Thanks Mike,

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

Sent fra min SM-G930F via Tapatalk


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

Re: Crossfire telemetry and GPS data

Post by MikeB » Sun Jan 13, 2019 10:25 pm

Did you flash the last release version of ersky9x or one of the test versions?

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Mon Jan 14, 2019 5:35 am

I flashed revision 221 for taranis plus from this page: http://www.er9x.com/

Sent fra min SM-G930F via Tapatalk


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

Re: Crossfire telemetry and GPS data

Post by MikeB » 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 x9dp_rom.bin from the zip file.

I think the crossfire telemetry will then work OK.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Mon Jan 14, 2019 1:38 pm

Thanks,

How do I backup the eeprom?

Sent fra min SM-G930F via Tapatalk


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

Re: Crossfire telemetry and GPS data

Post by jhsa » Mon Jan 14, 2019 2:12 pm

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

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Mon Jan 14, 2019 6:56 pm

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

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

Re: Crossfire telemetry and GPS data

Post by MikeB » Mon Jan 14, 2019 7:18 pm

I assume you still have controls working when the telemetry stops?
Please create a raw logfile once the telemetry has stopped.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Mon Jan 14, 2019 7:33 pm

Yeah, full control regardless of the telemetry.
Attachments
CrsfTlmLog20190114 2031.zip
(76.39 KiB) Downloaded 14 times

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

Re: Crossfire telemetry and GPS data

Post by MikeB » Mon Jan 14, 2019 11:01 pm

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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: RE: Re: Crossfire telemetry and GPS data

Post by oyvinla » Tue Jan 15, 2019 6:33 pm

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


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

Re: Crossfire telemetry and GPS data

Post by MikeB » Tue Jan 15, 2019 6:37 pm

That's the screen, did you flash the special test version I posted (on the test versions thread)?

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Tue Jan 15, 2019 7:02 pm

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

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

Re: Crossfire telemetry and GPS data

Post by MikeB » Tue Jan 15, 2019 7:07 pm

I have since posted "x9dp_romXfireTest.zip", which has the fix and added debug in.
Please flash that and re-test.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Tue Jan 15, 2019 7:38 pm

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.

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Tue Jan 15, 2019 9:22 pm

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


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

Re: Crossfire telemetry and GPS data

Post by MikeB » Wed Jan 16, 2019 12:04 am

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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

oyvinla
Posts: 21
Joined: Wed Jan 09, 2019 10:26 pm
Country: Norway

Re: Crossfire telemetry and GPS data

Post by oyvinla » Wed Jan 16, 2019 9:02 am

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


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

Re: Crossfire telemetry and GPS data

Post by MikeB » Wed Jan 16, 2019 7:04 pm

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
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


Post Reply

Return to “erskyTx (was ersky9x)”