Closed rvt closed 11 months ago
this was merged
Hi @rvt Thanks for the explanation. Maybe add this to the wiki? Some questions regarding the implementation:
The fanet protocol does not support an address type and therefore the fanet ID should always be one defined in the protocol, usually the gxaircom address (08xxxx) However there seems to be the posibility to send the ICAO address in a HW Info message (type A) which is currently not implemented in gxaircom. See https://github.com/3s1d/fanet-stm32/blob/master/Src/fanet/radio/protocol.txt
Hey all,
I made a PR here : https://github.com/gereic/GXAirCom/pull/133 but since there was no comment or question on it I figured see if I could reach out here and hopefully we can have a discussion/comments and questions going on because I believe this will benefit the flying community.
Basically it allows you to configure and query some of the parameters within GxAirCom over NMEA. The reason why this is usefull is because then it can be configured in automation using other devices, here is such example:
In the above case stratux requested the configuration from GXAirCom using
$PGXCF,?*59
on which GxAirCom responded withPGXCF,1,0,0,0,1,1,1,1,5,2,AAAAAA,Stratux
The format is as follows:
$PGXCF,<version>,<Output Serial>,<eMode>,<eOutputVario>,<output Fanet>,<output GPS>,<output FLARM>,<customGPSConfig>,<Aircraft Type (hex)>,<Address Type>,<Address (hex)>, <Pilot Name>
All the parameters already exists as settings within GzAirCom except:customGPSConfig
andAddress Type
andAddress (hex)
.Equally, you can re-configure GxAirCom with
PGXCF,1,0,0,0,1,1,1,1,5,2,AAAAAA,Stratux
Note that Address and Address type are fully according to the FLARM specification. See http://www.ediatec.ch/pdf/FLARM%20Data%20Port%20Specification%20v7.00.pdf (See also the flarm manuals, but they all seem to download)
Also Skydemon and other EFB's will understand these when received (as what GxAirCom does).
How is this used in Stratux?
here is an example configuration: In the configuration screen Of stratux, when GxAirCom is detected the user is presented with the following screen:
The user can now select it's name, use it's mode-s HEX and configure stratux/GxAirCom.
From this point onward when the user starts flying, GxAirCom will send over FLARM the ICAO address. Here is how it's received in my OGN base station:
When GXAirCom set as FLARM:
note: 8:2 and 8:1 means Airplane type 8 and Address type 1 (Motorised plane==8)
Why setting ICAO.. and why use GxAirCom?
I think GxAirCom is a wonderful product and open source! It allows us to see each other in the sky, and helps taking preventive measures so we do not get any near incidents or worse any accidents. A combination of Stratux + GxAirCom allows us to see FLARM/Fanet, Mode-S, SafeSky, ADSB-Out PAW and a few more, but when using GxAirCom with FLARM it also allows planes equipped with FLARM only to see ous. So see and BE seen.
The reason to set ICAO as the same as mode-s is to ensure you do not see yourself hunting down, but also other planes with not see double targets FLARM + MODE-S will then be see as a double target. By setting GxAirCom as ICAO will prevent the double target.
What about the default behaviour of GxAirCom?
When sending
$PGXCF,1,3,0,1,0,1,1,0,5,2,,GXAirCom*4A
the default behaviour of GxAirCOm is restored. That is it will take again the FLARM address together with the HwAddress and configure the GPS as default. So you could even use GxAirCom in your plane, and still use it as FLARM only in your glider, paraglider etc.The end goal is to be able to have more aircraft to be seen in the sky in area's where FLARM is more dominant than for OGN or ADSB(out).
Hope thus helps understanding the PR and what we are trying to do!