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
Tim Dawson - 1/21/2020 11:01:59 AM
I believe this has been discussed on the forum before. What you're seeing is a situation where the checksum passes, but the data is invalid/nonsense. The fact the checksum passes means whatever third-party device you're using has a bug and it sending invalid data.

We think it's the right thing to do, to stop talking to the device at that point and alert the user. Presumably you'll want to return your device and get one that doesn't emit invalid data.

Hi Tim,
I captured the serial data out of the Flarm on the rs232 port at the same time to see where the problem lies. The data from the Flarm at the time of the error on sky demon was fine and didn't show the same corruption as the error from Skydemon  so it's obviously a problem in the Airconnect / wifi TCP/IP device.. I'll recheck at the lower baud rate and see if that problem is also located in the airconnect device. 

I would say this though.  
We are using a wireless link to transfer the data that is unaware of the underlying data format. Any temporary interruption in the wifi connection will result the possibility of  some data packeets being lost since there is no flow control. The TCP/IP protocol will ensure that packets themselves are either delivered or dropped but there is no way to control how GPS sentences get spilt into different TCP/IP packets - therefore it is entirely possible that on a "good" system in a busy wifi area or with interference causing drop outs that partial GPS sentences will be received, quite probably with the next data sentence appended to it.  A simple checksum will not detect all errors and if these errors that are being thrown up have a valid checksum (I haven't checked myself) then I would say the correct response is to dump the sentence on a parsing error and not fail the system hard. I understand your reasoning for the current handling but don't agree with it.  

I'll go log the data into and out of the Airconnect and then go back to TQ/AirAvionics with hard evidence of the problem.   

I think you should reconsider your handling of this particular error and recognise that a wireless connection is inherently unreliable - therefore consider how it will fail and how best to handle it - without causing the user additional problems by dropping out of navigation mode on a single error. 


Regards,
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