Giter VIP home page Giter VIP logo

Comments (9)

lyusupov avatar lyusupov commented on July 17, 2024

AirConnect is one of several inactive experimental features that I still not decided what to do with - either advance or deprecate.
So far as it is not an enabled feature - no any bugs are applicable for it.

AirConnect protocol is fading away now and is giving a way to Garmin GDL90 even on the EU market.

Current implementation of the AirConnect in SoftRF is fine to me since it works Ok with XCSoar and SkyDemon. It is not enabled by default because of:

  1. TCP on ESP8266 is weak and not very reliable when SoftwareSerial operation (GNSS read) is in progress ;
  2. On ESP32 it works better, but shows low flow performance with Android version of XCSoar app (Linux and Windows are fine).

I may give one more chance to the AirConnect few month later. Will see if it works better with AsyncTCP on ESP32.

UDP transfer is of my own preference. GDL90 works good with SkyDemon. And AirNav Pro is known to have kinda "hidden" support for this Garmin protocol: https://github.com/0sander/stratux_air_nav_pro

Current SoftRF implementation of AirConnect has one-way flow only. As I said before, it is Ok for XCSoar and SkyDemon. Other apps may require to do a handshake, say, to enter a pin number: https://www.air-avionics.com/support/Connect_Manual_EN.pdf or something else.
Even a FLARM data link connected device (like LX Nano3) may expect to do some handshake prior to actual data transfer, see this ticket: #19

Sure you are free to fork a copy of my repo and make yourself happy by doing your own development in there. If I will see something valuable there - we may talk then about pull requests & integration....

If you are ready to participate in advancement of AirConnect in the SoftRF - I will re-assign this ticket back to you. If not - please, close it.

from softrf.

JuergenLeber avatar JuergenLeber commented on July 17, 2024

I'll have a look into it, please assign to me!

from softrf.

JuergenLeber avatar JuergenLeber commented on July 17, 2024

I implemented the correct handshake now but Air Navigation Pro is still not working. Seems it has to do with the GPRNC/GNRNC NMEA sentences but I'll need to do a complete record of a working connection to a real AirConnect device with Air Nav Pro. So still on it...

from softrf.

JuergenLeber avatar JuergenLeber commented on July 17, 2024

Was a problem with a missing "\n". The AirConnect protocol waits for four digits and then starts sending the NMEA output if password is correct. Implemented in PR #34 .

from softrf.

lyusupov avatar lyusupov commented on July 17, 2024

Try out this commit: c0038e1

It works for me:

aconnect_1


aconnect_2

And, please, double check that no any CRs or LFs after PASS? and AOK are actually in use in genuine AirConnect. Because I would prefer to see a better look in the monitor window.

from softrf.

JuergenLeber avatar JuergenLeber commented on July 17, 2024

In genuine AirConnect no CRs or LFs are used. It only sends "PASS?" and waits for either LF or exactly four bytes of data without LF and then sends "AOK" if password is/was correct. After that directly the NMEA data is sent. So I don't know if your version will work 100% as it doesn't count the four bytes but instead has a timeout. I'll try!

from softrf.

lyusupov avatar lyusupov commented on July 17, 2024

My opinion that this is an Air Navigation Pro's issue.
SkyDemon is smart enough - when it already sees NMEA sentences in the input stream - there is no need to enter pass codes anymore.
XCSoar does not care about handshake at all.

I am definitely not going to break compatibility with XCSoar, LK8000 and SeeYou as most of glider pilots use this software on daily basis, just in order to make few AirNav Pro users happy.

from softrf.

JuergenLeber avatar JuergenLeber commented on July 17, 2024

I'll try with Air Nav Pro and most probably it's supposed to work with the timeout solution even if it's not the correct AirConnect protocol standard. So I can't tell you where the issue is exactly located. Let's find a solution to make all app's users happy.

from softrf.

JuergenLeber avatar JuergenLeber commented on July 17, 2024

Works with Air Nav Pro. But ANP still says "Bad GPS for navigation", probably something with GPRMC vs. GNRMC. But that's another problem.

from softrf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.