{"action":"created","issue":{"url":"https://api.github.com/repos/cyoung/stratux/issues/489","repository_url":"https://api.github.com/repos/cyoung/stratux","labels_url":"https://api.github.com/repos/cyoung/stratux/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/cyoung/stratux/issues/489/comments","events_url":"https://api.github.com/repos/cyoung/stratux/issues/489/events","html_url":"https://github.com/cyoung/stratux/issues/489","id":178339745,"number":489,"title":"FLARM NMEA UDP and TCP prototype","user":{"login":"AvSquirrel","id":14127245,"avatar_url":"https://avatars.githubusercontent.com/u/14127245?v=3","gravatar_id":"","url":"https://api.github.com/users/AvSquirrel","html_url":"https://github.com/AvSquirrel","followers_url":"https://api.github.com/users/AvSquirrel/followers","following_url":"https://api.github.com/users/AvSquirrel/following{/other_user}","gists_url":"https://api.github.com/users/AvSquirrel/gists{/gist_id}","starred_url":"https://api.github.com/users/AvSquirrel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AvSquirrel/subscriptions","organizations_url":"https://api.github.com/users/AvSquirrel/orgs","repos_url":"https://api.github.com/users/AvSquirrel/repos","events_url":"https://api.github.com/users/AvSquirrel/events{/privacy}","received_events_url":"https://api.github.com/users/AvSquirrel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cyoung/stratux/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-21T12:59:49Z","updated_at":"2016-10-19T03:25:04Z","closed_at":null,"body":"This is a functional prototype for output of FLARM-formatted NMEA position, traffic, and status messages over TCP and UDP. The intent is to translate ADS-B / TIS-B position into a format than can be understood by glider computers and UK/EU-oriented EFB software. Ref previous issues #218 and #475.\r\n\r\n**Code:**  \r\nhttps://github.com/AvSquirrel/stratux/tree/flarm-network\r\n\r\n**Description:**\r\nOnce per second, the following NMEA sentences are generated by new code in `traffic.go`: \r\n- One GPRMC (GPS \"recommended minimum\") position message, synthesized from `mySituation` data\r\n- One PFLAA (FLARM data on proximate aircraft) message for each nearby target with known position. \r\n- One PFLAU status / priority message, indicating number of aircraft tracked.\r\n\r\nThese messages are passed to a new message handler (`sendNetFLARM()`), which in turn passes the messages to the existing network handler for port 10110 UDP output (if enabled in the UI) and to a new port 2000 TCP handler. The latter is needed to support software that uses Butterfly Connect / AIR Connect hardware. \r\n\r\nAlso included in the most recent build are four demo traffic targets that circulate around your current GPS position, useful for validation / troubleshooting.\r\n\r\n**Hardware requirements**\r\n1-2 SDRs, and a GPS. Most non-US users will prefer to use a single SDR for 1090 MHz mode S ADS-B.  GPS is required because FLARM traffic messages are based on relative position.\r\n\r\n**Setup and use instructions**\r\nTo build from source, clone my repository or add as a remote, checkout the `network-flarm` branch, and make / make install. Or, wait until I post a compiled .sh build of  1b1024d later today.\r\n\r\nXCSoar works fine with the default Stratux network settings. Enable \"FLARM NMEA over UDP\" in the Stratux UI. Dive down into the XCSoar devices menu, and add new device (UDP connection, port 10110, and FLARM format).\r\n\r\n![xcsoar_demo](https://cloud.githubusercontent.com/assets/14127245/18710776/8aab836c-7fcc-11e6-9614-2d88d551ce2e.png)\r\n\r\nRunwayHD is an easy setup as well. In the FLARM device option, select AIR Connect hardware, 192.168.10.1, port 2000, and any 4-digit code for the password.\r\n\r\n![runwayhd_demo](https://cloud.githubusercontent.com/assets/14127245/18710773/86f404a6-7fcc-11e6-8a41-63a555919eae.PNG)\r\n\r\n\r\nSkyDemon is more fiddly, since you can't specify port / IP settings, and it's hardwired to look at 192.168.1.1. This means changing network settings on your Stratux (`/etc/network/interfaces` and `/etc/dhcp/dhcpd.conf`) to point to the 192.168.1.1 address and 192.168.1.x network. Once that's done and you reboot, you should be able to use 6000 as a passcode and get it to connect. I was able to get it to show position in my testing but not traffic on iOS 10.0.1.\r\n\r\n**Other known issues / future improvements**\r\nBearingless traffic for non-ADS-B mode S isn't currently supported. Too much variation in antennas, gain settings, dongles, etc, between users to have one setting that will work for everyone. It might be possible to add an auto-calibration feature."},"comment":{"url":"https://api.github.com/repos/cyoung/stratux/issues/comments/254700881","html_url":"https://github.com/cyoung/stratux/issues/489#issuecomment-254700881","issue_url":"https://api.github.com/repos/cyoung/stratux/issues/489","id":254700881,"user":{"login":"Axtel4","id":15059010,"avatar_url":"https://avatars.githubusercontent.com/u/15059010?v=3","gravatar_id":"","url":"https://api.github.com/users/Axtel4","html_url":"https://github.com/Axtel4","followers_url":"https://api.github.com/users/Axtel4/followers","following_url":"https://api.github.com/users/Axtel4/following{/other_user}","gists_url":"https://api.github.com/users/Axtel4/gists{/gist_id}","starred_url":"https://api.github.com/users/Axtel4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Axtel4/subscriptions","organizations_url":"https://api.github.com/users/Axtel4/orgs","repos_url":"https://api.github.com/users/Axtel4/repos","events_url":"https://api.github.com/users/Axtel4/events{/privacy}","received_events_url":"https://api.github.com/users/Axtel4/received_events","type":"User","site_admin":false},"created_at":"2016-10-19T03:25:04Z","updated_at":"2016-10-19T03:25:04Z","body":"The charts look like they were created by JMP."}}
{"actor":{"display_login":"Axtel4"}}