Hi Curt,
Thank you for your help. I disabled any firewall and virus protection,
but it still does not work. I also tried on Windows 7, but the result is
the same as on XP.
I'm currently using the version 2.0.0. Is there a newer version ?
As a way to avoid this problem, I tried using a file as input to
FlightGear with these options:
--generic=socket,out,20,localhost,5600,udp,autopilot
--generic=file,in,20,C:\\fg.in,autopilot
In my Java application, I write a new line in the fg.in file each time I
receive information from FlightGear. Instead of writing in a socket, I
write in a file.
But, it only works if I replay a scenario with the fg.in file previously
filled with values. But it does not work if I fill the fg.in file during
the simulation. To be accurate, the control values I write in the file
are sort of taken into account, but these values oscillate randomly. Is
the input file only used for replaying a scenario ? Or can I also use it
for doing the same thing as I did with the socket ?
Regards,
Julien
Le 08/01/2011 15:31, Curtis Olson a écrit :
Hi Julien,
It may be something deeper than this, but my very first thought when
you mention socket communication problems on Windows XP is to check
the firewall settings.
If you are brave (or have a well patched or well isolated machine) you
could try turning off the firewall and see if this improves your
situation. Or you could leave the firewall on and make sure that the
ports you using are open. If you have some sort of 3rd party firewall
or virus protection, maybe that also could be getting in the way and
preventing basic socket communication from working?
That's just a thought.
I didn't see which version of FlightGear you are running so if you are
running an older version, you might try upgrading ... I know that
every once in a while we have spotted bugs or made improvements in the
socket communication and generic protocol layer of the FlightGear code.
Regards,
Curt.
On Sat, Jan 8, 2011 at 5:53 AM, Julien Bruneau wrote:
Hello,
I'm trying to use the generic protocol feature of FlightGear, but I'm
having issues to send input to FlightGear. To do that, I defined
my own
protocol. My protocol has an input and output sections. I use this
protocol to control an aircraft with a Java application I developed. I
first tried my application with the Mac OS X version of FlightGear and
it worked.
However, I'm now trying to do the same on Windows XP, but it does not
work. I can't even start FlightGear. I got the following error message
just before FlightGear stops:
Error: bind() failed in make_server_socket()
SG_IO_IN socket creation failed
Error opening channel communication layer.
I/O Channel config failed.
For information, I launch FlightGear with the following options:
--generic=socket,out,20,localhost,5600,udp,autopilot
--generic=socket,in,20,localhost,5660,udp,autopilot
If I remove the input option, I receive correctly the information sent
by FlightGear.
I also first launch my Java application so that it binds on the 5660
port before FlightGear starts. If I do not do that, I get the
following
message:
FGMultiplayMgr - No receiver port, Multiplayermode disabled
Do you know what could be the problem ? I really do not understand why
it works on Mac but not on Windows... Or else, is it possible to input
values to FlightGear with a file instead of a socket by writing in the
file each time I receive a new output from the simulator ?
Thanks,
Julien
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of
any company
that requires sensitive data to be transmitted over the Web.
Learn how to
best implement a security strategy that keeps consumers'
information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
<mailto:Flightgear-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/flightgear-users
--
Curtis Olson:
http://www.atiak.com - http://aem.umn.edu/~uav/
<http://aem.umn.edu/%7Euav/>
http://www.flightgear.org -
http://www.flightgear.org/blogs/category/curt/
<http://www.flightgear.org/blogs/category/personal/curt/>
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users
------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web. Learn how to
best implement a security strategy that keeps consumers' information secure
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Flightgear-users mailing list
Flightgear-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-users