User Tools

Site Tools


projects:a4sim:udp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
projects:a4sim:udp [2019/08/17 16:14]
dwheele
projects:a4sim:udp [2020/02/22 17:07] (current)
admin ↷ Links adapted because of a move operation
Line 1: Line 1:
 ====== UDP Notes ====== ====== UDP Notes ======
  
-X-Plane can communicate with external editities a couple of ways.+X-Plane can communicate with external entities a couple of ways.
  
   - Within X-Plane, configuration can be set up to send to a selected IP address selected parameters via UDP   - Within X-Plane, configuration can be set up to send to a selected IP address selected parameters via UDP
-  - From outside of X-Plane, where another entity can send UDP packets which request registration to known X-Plane IP address/port: {{ :projects:a4sim:xplaneudpcommunications.pdf |X-Plane UDP Docs (from Instructions directory}} "NOTE: X-Plane always receives on port 49000."+  - From outside of X-Plane, where another entity can send UDP packets which request registration to known X-Plane IP address/port: {{ a4sim:xplaneudpcommunications.pdf |X-Plane UDP Docs (from Instructions directory}} "NOTE: X-Plane always receives on port 49000." 
 + 
 +----------------------- 
 + 
 +[9/7/2019] 
 + 
 +Worked several hours today and yesterday trying to get the RREF part of UDP communications to work between the Raspberry Pi and X-Plane 11.36r2. After looking at the log.txt, it appears that when I send a request for a Dataref to be sent, it starts sending the data on a random port. And I can't determine that port - only available in Log.txt. Sent a Bug report to X-Plane to see if they will take a look. Solution was to change the parameters of the code that sends to X-Plane so that it includes the port. 
 + 
 +Right now, I'm coding on the Raspberry Pi via Geany, which is a GUI application. I am using VNC to remotely access the Raspberry Pi. At this point, the code is all "play" - trying to get the communications to work. 
 + 
 +Was successful in sending from the Raspberry Pi to run a X-Plane Command (Flaps Up), and it works perfectly. 
 + 
 +Wrote ''a4SimData.json'' in the Projects A4Simulator directory. Considering letting one file be read by a like X-Plane plugin, as well as by the Raspberry Pi Connector code. 
  
  
projects/a4sim/udp.1566058499.txt.gz · Last modified: 2019/08/17 16:14 by dwheele