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


Replies
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
Hello Thomas,
I modified the earlier Airconnect (one with a pin code). This was done using the user interface described for the Microchip WiFly module used in these earlier units. I turned off the detection of LF (0xA) and set it to instead send out a Wifi packet when there was a gap of 100ms or more in the datastream to force it to send the GPS data in fewer, bigger chunks. This seemed to work OK on the ground - capturing the input data to Airconnect from flarm and also the output data on wifi and comparing the two showed no differences whereas with the original set-up it had occasional  errors. (The newer Airconnect unit without a pin code had errors every few seconds. This uses a design from a German company In-Circuit and is not configurable afaik ).

Our gliding airfield has been flooded for a while and so I only managed to fly with the modified Airconnect once.  Whilst it was 100% reliable on the ground.  it still caused a Skydemon error in the air during the flight - when I was close to some busy airspace, close to patchy cloud and a bit stressed. This was with a Powerflarm Core.  I haven't tried it again. 

I gave up at that point and bought some serial to Wifi adapters from ebay and used them to replace the Airconnects on both of the aircraft I fly with Skydemon - a Falke motorglider and an AA5. I tested the adaptor at home in the same way as the Airconnect units and didn't see any data loss or corruption. I also tried a second different Taiwanese adaptor and that worked OK too. 

When I tried it last week in the AA5 with a Powerflarm (FlarmBat) it was perfect for the whole 1 hour flight.  We had two android tablets running Skydemon connected to it as my passenger also used his. Both worked perfectly and showed all of the traffic as expected. It worked 100% reliably on the ground when tested - no data corruption. .  

The adaptor I used is this one:
(I did try another adaptor from Taiwan as well and that worked fine too)

It’s simple enough to program it to emulate the Airconnect protocol – 192.168.1.1 and Port 2000. I set it to detect a gap in the serial data of greater than 100ms and send a Wifi packet out. I used a 9 way D-Type to rj15 adapter and then a bit of rj15-rj15 cable (6p6c) was quick and easy to knock up. It only needs +12V, 0V, TXdata and Rxdata connected.

A suitable adaptor plug is here:

I've chased Airconnect a few times but they don't have a fix for their units.  Having said that several people seem to have them working without any issues - even on Powerflarms. Things tend to go wrong when I go near them I guess.  Life it just too short to sort out other people's mistakes though. 

Alastair 


Thomas
Thomas
Too Much Forum (739 reputation)Too Much Forum (739 reputation)Too Much Forum (739 reputation)Too Much Forum (739 reputation)Too Much Forum (739 reputation)Too Much Forum (739 reputation)Too Much Forum (739 reputation)Too Much Forum (739 reputation)Too Much Forum (739 reputation)
Group: Forum Members
Posts: 9, Visits: 138
Alastair Mutch - 3/20/2020 10:13:27 AM
Hello Thomas,
I modified the earlier Airconnect (one with a pin code). This was done using the user interface described for the Microchip WiFly module used in these earlier units. I turned off the detection of LF (0xA) and set it to instead send out a Wifi packet when there was a gap of 100ms or more in the datastream to force it to send the GPS data in fewer, bigger chunks. This seemed to work OK on the ground - capturing the input data to Airconnect from flarm and also the output data on wifi and comparing the two showed no differences whereas with the original set-up it had occasional  errors. (The newer Airconnect unit without a pin code had errors every few seconds. This uses a design from a German company In-Circuit and is not configurable afaik ).

Our gliding airfield has been flooded for a while and so I only managed to fly with the modified Airconnect once.  Whilst it was 100% reliable on the ground.  it still caused a Skydemon error in the air during the flight - when I was close to some busy airspace, close to patchy cloud and a bit stressed. This was with a Powerflarm Core.  I haven't tried it again. 

I gave up at that point and bought some serial to Wifi adapters from ebay and used them to replace the Airconnects on both of the aircraft I fly with Skydemon - a Falke motorglider and an AA5. I tested the adaptor at home in the same way as the Airconnect units and didn't see any data loss or corruption. I also tried a second different Taiwanese adaptor and that worked OK too. 

When I tried it last week in the AA5 with a Powerflarm (FlarmBat) it was perfect for the whole 1 hour flight.  We had two android tablets running Skydemon connected to it as my passenger also used his. Both worked perfectly and showed all of the traffic as expected. It worked 100% reliably on the ground when tested - no data corruption. .  

The adaptor I used is this one:
(I did try another adaptor from Taiwan as well and that worked fine too)

It’s simple enough to program it to emulate the Airconnect protocol – 192.168.1.1 and Port 2000. I set it to detect a gap in the serial data of greater than 100ms and send a Wifi packet out. I used a 9 way D-Type to rj15 adapter and then a bit of rj15-rj15 cable (6p6c) was quick and easy to knock up. It only needs +12V, 0V, TXdata and Rxdata connected.

A suitable adaptor plug is here:

I've chased Airconnect a few times but they don't have a fix for their units.  Having said that several people seem to have them working without any issues - even on Powerflarms. Things tend to go wrong when I go near them I guess.  Life it just too short to sort out other people's mistakes though. 

Alastair 


Hello Alastair, thank you very much for your Description. I have ordered this Adapter and will report when its installed.
Thomas

Europa XS
Europa XS
Too Much Forum (2.4K reputation)Too Much Forum (2.4K reputation)Too Much Forum (2.4K reputation)Too Much Forum (2.4K reputation)Too Much Forum (2.4K reputation)Too Much Forum (2.4K reputation)Too Much Forum (2.4K reputation)Too Much Forum (2.4K reputation)Too Much Forum (2.4K reputation)
Group: Forum Members
Posts: 22, Visits: 215
Alastair Mutch - 3/20/2020 10:13:27 AM
Hello Thomas,
I modified the earlier Airconnect (one with a pin code). This was done using the user interface described for the Microchip WiFly module used in these earlier units. I turned off the detection of LF (0xA) and set it to instead send out a Wifi packet when there was a gap of 100ms or more in the datastream to force it to send the GPS data in fewer, bigger chunks. This seemed to work OK on the ground - capturing the input data to Airconnect from flarm and also the output data on wifi and comparing the two showed no differences whereas with the original set-up it had occasional  errors. (The newer Airconnect unit without a pin code had errors every few seconds. This uses a design from a German company In-Circuit and is not configurable afaik ).

Our gliding airfield has been flooded for a while and so I only managed to fly with the modified Airconnect once.  Whilst it was 100% reliable on the ground.  it still caused a Skydemon error in the air during the flight - when I was close to some busy airspace, close to patchy cloud and a bit stressed. This was with a Powerflarm Core.  I haven't tried it again. 

I gave up at that point and bought some serial to Wifi adapters from ebay and used them to replace the Airconnects on both of the aircraft I fly with Skydemon - a Falke motorglider and an AA5. I tested the adaptor at home in the same way as the Airconnect units and didn't see any data loss or corruption. I also tried a second different Taiwanese adaptor and that worked OK too. 

When I tried it last week in the AA5 with a Powerflarm (FlarmBat) it was perfect for the whole 1 hour flight.  We had two android tablets running Skydemon connected to it as my passenger also used his. Both worked perfectly and showed all of the traffic as expected. It worked 100% reliably on the ground when tested - no data corruption. .  

The adaptor I used is this one:
(I did try another adaptor from Taiwan as well and that worked fine too)

It’s simple enough to program it to emulate the Airconnect protocol – 192.168.1.1 and Port 2000. I set it to detect a gap in the serial data of greater than 100ms and send a Wifi packet out. I used a 9 way D-Type to rj15 adapter and then a bit of rj15-rj15 cable (6p6c) was quick and easy to knock up. It only needs +12V, 0V, TXdata and Rxdata connected.

A suitable adaptor plug is here:

I've chased Airconnect a few times but they don't have a fix for their units.  Having said that several people seem to have them working without any issues - even on Powerflarms. Things tend to go wrong when I go near them I guess.  Life it just too short to sort out other people's mistakes though. 

Alastair 


Dear Alastair,
I have been struggling with the same data transfer problems with AirConnect (with pin) for a long time. Have actually given up. I am interested again through your research. I bought a serial / WIFI connector that is largely freely programmable. But I'm not a specialist. Can you give me some tips or even better instructions? I'm grateful for any support.
Thank you very much
Herbert

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
Europa XS - 6/1/2020 10:35:18 AM
Alastair Mutch - 3/20/2020 10:13:27 AM
Hello Thomas,
I modified the earlier Airconnect (one with a pin code). This was done using the user interface described for the Microchip WiFly module used in these earlier units. I turned off the detection of LF (0xA) and set it to instead send out a Wifi packet when there was a gap of 100ms or more in the datastream to force it to send the GPS data in fewer, bigger chunks. This seemed to work OK on the ground - capturing the input data to Airconnect from flarm and also the output data on wifi and comparing the two showed no differences whereas with the original set-up it had occasional  errors. (The newer Airconnect unit without a pin code had errors every few seconds. This uses a design from a German company In-Circuit and is not configurable afaik ).

Our gliding airfield has been flooded for a while and so I only managed to fly with the modified Airconnect once.  Whilst it was 100% reliable on the ground.  it still caused a Skydemon error in the air during the flight - when I was close to some busy airspace, close to patchy cloud and a bit stressed. This was with a Powerflarm Core.  I haven't tried it again. 

I gave up at that point and bought some serial to Wifi adapters from ebay and used them to replace the Airconnects on both of the aircraft I fly with Skydemon - a Falke motorglider and an AA5. I tested the adaptor at home in the same way as the Airconnect units and didn't see any data loss or corruption. I also tried a second different Taiwanese adaptor and that worked OK too. 

When I tried it last week in the AA5 with a Powerflarm (FlarmBat) it was perfect for the whole 1 hour flight.  We had two android tablets running Skydemon connected to it as my passenger also used his. Both worked perfectly and showed all of the traffic as expected. It worked 100% reliably on the ground when tested - no data corruption. .  

The adaptor I used is this one:
(I did try another adaptor from Taiwan as well and that worked fine too)

It’s simple enough to program it to emulate the Airconnect protocol – 192.168.1.1 and Port 2000. I set it to detect a gap in the serial data of greater than 100ms and send a Wifi packet out. I used a 9 way D-Type to rj15 adapter and then a bit of rj15-rj15 cable (6p6c) was quick and easy to knock up. It only needs +12V, 0V, TXdata and Rxdata connected.

A suitable adaptor plug is here:

I've chased Airconnect a few times but they don't have a fix for their units.  Having said that several people seem to have them working without any issues - even on Powerflarms. Things tend to go wrong when I go near them I guess.  Life it just too short to sort out other people's mistakes though. 

Alastair 


Dear Alastair,
I have been struggling with the same data transfer problems with AirConnect (with pin) for a long time. Have actually given up. I am interested again through your research. I bought a serial / WIFI connector that is largely freely programmable. But I'm not a specialist. Can you give me some tips or even better instructions? I'm grateful for any support.
Thank you very much
Herbert

Dear Herbert,
The instructions are dependant on the type of Wifi unit you have bought. If it is the WA-232F that I mentioned above then I can give you a link to some screen dumps of how to set it up easily enough.  Alternatively you can send me your unit and I'll set it up and knock up a cable for you.  Best PM me rather than clutter up Tim's nice forum.  
aim (at) scottishglidingcentre.com 
will get through. 

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