Important: These forums are for discussions between SkyDemon users. They are not routinely monitored by SkyDemon staff so any urgent issues should be sent directly to our Customer Support.

Flarm data / checksum error causes exit from navigation mode on Android


Author
Message
Alastair Mutch
A
Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)
Group: Forum Members
Posts: 17, Visits: 0
I'm using 3.13.3.0 on an Android tablet - Samsung S2 - with data from a Powerflarm via an Airconnect wifi interface. 

A couple of times now I've got a pop-up dialogue saying "Flarm data invalid" along with a flarm data string displayed. Clicking to acknowledge this results in the program going back to planning mode.  This has happened on the ground before take-off only and not in the air (so far at least).

Interesting enough I was playing with the set-up in the house with both the tablet and my PC connected to the Airconnect and Skydemon running in navigation mode on both.  Both were using the current latest version - 3.13.3  When I got the error on the tablet the PC continued quite happily with the data with no errors.

If it is a checksum error on a data sentence please, please, please could you just dump that sentence and continue on to the next. I don't really want to know about what is probably a single bit error in the data transfer.  If there are multiple or frequent errors then by all means put up a warning or refuse to use the data stream.  Yes it shouldn't go wrong... but it obviously can do. 

Thanks.

Alastair


Reply
Alastair Mutch
A
Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)Too Much Forum (156 reputation)
Group: Forum Members
Posts: 17, Visits: 0
Alastair Mutch - 1/23/2020 1:18:06 PM
Tim Dawson - 1/23/2020 11:19:10 AM
I think the situation you describe is easily detected and avoided by TCP/IP itself and the existing checksum mechanism.

If you look at the error you posted, it does not fall into the category of what you just described. It is a whole and complete sentence, but with invalid (broken) fields. Wouldn't you agree?

Err. No. 
In the screenshot above it's a partial GPS sentence with an incomplete Flarm PFLAU sentence appended to it.  The checksum belongs to the Flarm sentence - which is missing its $ prefix.  If it were a CRC checksum then it would be much easier to determine that is was complete and uncorrupted prior to parsing but that boat sailed a long time ago. 

After further investigation I agree that the Airconnect data transfer is what one might call "fragile" or perhaps just "broken" with output data not matching input data.   I'm working with them to see if they can get it a bit better... or even correct.  The serial data output from the Flarm itself looks OK. 

The Airconnect device does detect the LF at the end of a sentence in the data stream and uses this to trigger a TCP/IP wifi packet with a single sentence in it so the example I gave above should never actually happen.  It still seems a bit nasty to the poor user to dump them out of nav mode on a single GPS data error - but it's just a suggestion to change this. 

For me it would be *so* much simpler if Skydemon could accept a BT serial data stream with GPS and Flarm traffic data.  I used to think BT was the spawn of the devil but the current implementations seem to work fairly reliably and it would save all the faffing about with wifi and switching networks. 

Alastair

It turns out there are two different version of hardware / firmware for Airconnects on the "new" 192.168.1.1 address. The ones with the "Pin-Code" on the label use the Microchip WiFly module.  Newer units with a Hex serial number use an InCircuit Radino 32 Wifi module and don't have a Pin-code.  

I have one of each (for different aircraft). Neither is particularly good at transferring all Flarm data without corruption but I can get the older WiFly one to work 100% reliably with a minor reconfiguration - so that can go back into our Falke.  

I'm working with AirAvionics on the newer one but no fix so far.  If you have an AirConnect that doesn't have a Pin-Code then you should expect problems with Flarm connections to Skydemon - i.e. regular "Unexpected GPS data encountered" errors. I

t's not a Skydemon problem (even if I do moan about the hard error handling)

Alastair


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Alastair Mutch - 1/18/2020 7:29:57 PM
Tim Dawson - 1/20/2020 10:42:23 AM
Alastair Mutch - 1/20/2020 1:57:16 PM
Alastair Mutch - 1/20/2020 5:03:40 PM
Alastair Mutch - 1/20/2020 7:47:28 PM
                         I spoke too soon. I got an Unexpected GPS error after a couple of...
Alastair Mutch - 1/20/2020 10:07:02 PM
Tim Dawson - 1/21/2020 11:01:59 AM
Alastair Mutch - 1/21/2020 12:21:15 PM
Tim Dawson - 1/23/2020 11:19:10 AM
Alastair Mutch - 1/23/2020 1:18:06 PM
Alastair Mutch - 1/24/2020 7:54:17 PM
Tim Dawson - 1/24/2020 12:16:15 PM
Alastair Mutch - 1/24/2020 8:00:59 PM
Alastair Mutch - 1/24/2020 8:30:55 PM
Tim Dawson - 1/27/2020 12:11:51 PM
Alastair Mutch - 1/27/2020 2:27:58 PM
ken@blackman.co.uk - 2/4/2020 1:27:56 PM
ken@blackman.co.uk - 2/4/2020 1:29:30 PM
Alastair Mutch - 2/4/2020 7:21:31 PM
tarutino - 3/20/2020 7:40:00 AM
Alastair Mutch - 3/20/2020 10:13:27 AM
                         Hello Alastair, thank you very much for your Description. I have...
tarutino - 3/23/2020 2:43:39 PM
                         Dear Alastair, I have been struggling with the same data transfer...
Europa XS - 6/1/2020 10:35:18 AM
                             Dear Herbert, The instructions are dependant on the type of Wifi unit...
Alastair Mutch - 6/1/2020 1:34:31 PM
ken@blackman.co.uk - 3/20/2020 11:50:25 AM
Tim Dawson - 3/23/2020 11:38:27 AM
Alastair Mutch - 3/23/2020 11:42:32 AM
ken@blackman.co.uk - 3/23/2020 2:56:21 PM
                 Hi Ken, which firmware is on your PF Portable?
Fliegerpeer - 5/5/2020 10:08:07 AM
ken@blackman.co.uk - 5/18/2020 12:38:17 PM

Reading This Topic

Login

Explore
Messages
Mentions
Search