The communication works perfectly, if I don't try to call socket.bind() on the server socket. In my Python program, I configured like this:Ĭode: Select all For Port 52866 (FG out, Python in), I configured a client socket, binding to Port 52866 on localhost.įor Port 52867 (FG in, Python out), I configured a server socket, listening on Port 52867. generic = socket, in, 10, localhost, 52867, udp, AP_I Physically, I have the following configuration:Ĭode: Select all fgfs -generic = socket, out, 10, localhost, 52866, udp, AP_O What am I doing wrong? And why does none of the many descriptions of the generic protocol, you can find in the internet, give an example for the "input" direction? It would be helpful to get a functional example of how to send data to Flightgear from external applications.Īutowings Autowings Posts: 11 Joined: Thu 9:09 am The port numbers are definitely not in use. I examined the port numbers with netstat, but this does not raise any conflicts. I get this message whenever I try to open a socket on the FG "in" port, no matter, which port number I use. Whenever I try to establish the connection, I get an error message on the call to Iface.bind(): Self.Iface = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) In Python, I use the following class member code to establish a connection: Data transfer from Flightgear to the Python program is already working perfectly.įor data transfer from Python to Flightgear, I start FG using AP_I.xml as input protocol file withĬode: Select all fgfs -generic = socket, in, 10, localhost, 52867, udp, AP_I I try to establish a data exchange between Flightgear and a Python application through UDP sockets.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |