Board index FlightGear Support Tools FGCom

Help needed to get FGCOM to work with Mac

FGCom is a realtime voice communication system specially designed for FlightGear.

Re: Help needed to get FGCOM to work with Mac

Postby jomo » Sun Sep 01, 2013 7:55 am

Again I am rather confused and not sure what you did try and how. Especially I am so confused that I cannot really be sure if we are talking about a
    "users" misunderstandig
    or a technical problem
    or a MAC-problem
    or whatever
Sorry enough I do not have a MAC to verify (I only have an "APPLE II plus" - but actually work on a modern PC with UBUNTU) - so maybe some MAC-users with a running FGCOM can comment to that here!
Benny-DLH130 wrote in Sat Aug 31, 2013 8:43 pm:Hi there,
- I started fgcom with at delta384.server4you.de
- FG-Command-line-options are --generic=socket,out,10,localhost,16661,udp,fgcom
Pls try to replace "localhost" with your actual IP-Nr - just to make sure. And check your firewall that the "port 16661" is free -- e.g. my router "Fritz!Box 7390" needs to have the Port defined (e.g.: FGCOM TCP 166661-16664) (-- you see I am prepared to use 4 FGCOM sessions on my LAN - and always use 2 in order to verify that my ATC-msgs really went out and returned via the network! That could be a nice test also for you - if you have a second PC available with FGCOM running - maybe not a MAC!))

Benny-DLH130 wrote:- Starting FG with Cessna at KSFO with f120.00
That is one of the confusions:
    Here you say "freq 120.00 for KSFO" (which is not available for KSFO!)
    while the log is saying you used "f120.5" (which would be OK for KSFO)
    but then the log says "Call rejected by remote" - which would say you were not at KSFO at that time!
I am not sure if you had a good connection via the MPservers - they are obviously in an "update modus" - i.e. some work, some have problems, some are down. e.g. yesterday I used 2 PCs, 1 on MPserver01 one on 02: The "02" worked fine while the "01" was very much delayed and even "forgot" some MPchat-lines! So always test with http://mpserver15.flightgear.org/mpserverstatus/ which server is working ok/best! (FGCOM needs the MP-servers to verify where you are etc.! Try to use several different MPservers!

And then pls start FGCOM by typing the start-command into the "command-window" and then place the whole printout here. Include some word about what you did!
The "-i0.93 -o0.92" (in the following command-line) set the input/output volume - just to make sure! (compare http://wiki.flightgear.org/Fgcom#Commandline_Parameters)

The output should look similar to:
Code: Select all
...(path).../fgcom -Sdelta384.server4you.de[b] -i0.93 -o0.92[/b] -p16661
fgcom - a communication radio based on VoIP with IAX/Asterisk
Original (c) 2007-2011 by H. Wirtz <wirtz@dfn.de>
OSX and Windows ports 2012-2013 by Yves Sablonier and Geoff R. McLane, resp.
Version 2.10.0 compiled Mar 20 2013, at 14:00:43
Using iaxclient library Version SVN 261

Successfully parsed commandline options.
Loaded file [...(path).../fgcom/special_frequencies.txt].
Reading airports [...(path).../fgcom/share/fgcom/positions.txt]... loaded 36741 entries.
Initializing IAX client as guest:xxxxxxxxxxx@delta384.server4you.de
Selected frequency: 910.000
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
Echo-Box
Call 0 answered
Special freq : 910.000
[SPEAK] unmute mic
Special freq : 910.000
[LISTEN] mute mic
.....
Special freq : 910.000
Selected frequency: 127.320
Hanging up call 0
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 1.9 km)
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
EDDF Frankfurt am Main 127.320 TWR
Call 0 answered
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 1.9 km)
[SPEAK] unmute mic, mute speaker
[LISTEN] mute mic, unmute speaker
[SPEAK] unmute mic, mute speaker
[LISTEN] mute mic, unmute speaker
....
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 1.9 km)
Selected frequency: 910.000
Hanging up call 0
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
Echo-Box
Call 0 answered
Special freq : 910.000
Special freq : 910.000
[SPEAK] unmute mic
Special freq : 910.000
[LISTEN] mute mic
...
Special freq : 910.000
Selected frequency: 911.000
Hanging up call 0
Call rejected by remote
You see I started with 910 - changed to EDDF 127.32 - and back to 910
I also tried the 911 (music) - but seems that was available only temporarily.

So please try again and show your printout. I especially am interested to find out more about why (according to your writing):
910.00 is working fine as standalone and from within the Cessna
120.50 gets rejected (when on KSFO!)
and after that "error" 910.00 does not work any more

Have a nice Sunday
jomo / ATCjomo + EDDFjo + EDDFjo1 + EDDFjo2
ATC at EDDF Fr,Sa,Su,We from 20:00 to 24:00 CET/MEZ., see http://www.emmerich-j.de
User avatar
jomo
 
Posts: 1000
Joined: Thu Feb 12, 2009 7:46 pm
Location: Mainz, Germany
Callsign: jomo EDDFjo1+2
OS: UBUNTU 18.4

Re: Help needed to get FGCOM to work with Mac

Postby Benny-DLH130 » Sun Sep 01, 2013 2:20 pm

HI,
so I tried nearly all the things you told me, jomo. But in my last post, I forgot to mention one thing.
I always startet fgcom in the Terminal with this command :
Code: Select all
/Users/******/Desktop/FLIGHTGEAR/flightgear/FlightGear.app/Contents/MacOS/fgcom -Sdelta384.server4you.de -p16661

or another port I was checking...
Whether before starting up FG or after while on the runway, the Echo-Test behaved always the same (switch freq, switch back>> no echo)

What I´ve tried after your tipps, jomo (every time with Terminal Command to start fgcom as dicribed above):

1. In the FG-Command-line, change localhost to iP-Adress
>>> nothing happens .... FG and fgcom are not comunicating, and YES i had the correct iP-adress...even looked on the web to find it then for safety :D

2. Check firewall for port 16661
>>> The firewall in macs with OS X 10.7.5. are application-based... there is no link or menu to control ports. I now told the firewall to let fgcom through in every direction. For concrete discription see http://support.apple.com/kb/HT1810?viewlocale=en_US

Confusion:
And check your firewall that the "port 16661" is free -- e.g. my router "Fritz!Box 7390" needs to have the Port defined (e.g.: FGCOM TCP 166661-16664)

Here you told your port to be TCP....
In the FG command-line we say its udp .
I don´t know if that matters but I was wondering about that....

For Info:
Im using Alice-Wlan and in the Setup window I found the following:
Port-Forwarding: (sorry only german)
Durch ein Port Forwarding wird es Computern innerhalb eines lokalen Netzes möglich, auch außerhalb dieses Netzes zu arbeiten. Sie sind damit für andere Computer erreichbar. Dies ist z. B. wichtig, um Daten über das Internet auszutauschen oder bei Spielen im Netz mit anderen Computern zu kommunizieren.


Then I have the possibility to create ports. But can choose diferent services like Userdefined, eMule, IRC, FTP, HTTP, SMTP, SSH, Telnet, MS Remote, VNC.
I can also choose the protocol TCP or UDP.

Not to know about these Services (IRC, eMule etc) I took Userdefined and set the protocol to UDP and ports 16661 to 16664.

Then I found a table on the web where ports by Apple devices are used http://support.apple.com/kb/TS1629
There is said:
16384-16387 - UDP - Real-Time Transport Protocol (RTP), Real-Time Control Protocol (RTCP) -connected, - FaceTime, Game Center
16393-16402 s.o.
16403-16472 s.o.

So i tried some ports of these ...

>>> Nothing changed. Same Echo-Test behaviour ...

3. different PC
>>> No other PC available BUT>>> I quickly tried to use a virtual machine with an application called "Parallels".
So im now running Windows 7.
Quickly installed fgcom and openradar AND FGCOM WORKS !!!!!
In the options of the GUI there is port 16661 used ...
So this port seem to work with the VM ??!!...omg

4.
That is one of the confusions:
Here you say "freq 120.00 for KSFO" (which is not available for KSFO!)
while the log is saying you used "f120.5" (which would be OK for KSFO)
but then the log says "Call rejected by remote" - which would say you were not at KSFO at that time!

Sorry about the confusion, I only made a typing mistake here...sorry sorry....
The frequeny automatically started on 120.5 at KSFO.

5. different mpservers
>>> I think i´ve been through all by now...:/
>>> Nothing changed. Same Echo-Test behaviour ...

6. start fgcom by typing the start command
Do you meen the FG command-line or the terminal ??

I always started fgcom in the terminal independent from the FG command line ( there´s always set --generic=socket,out,10,localhost,port,udp,fgcom)
maybe there are my big major mistakes ??
Im not very familiar with these computer-stuff and programming or commands :-(
But i set the same options as you discribed to test it:

Code: Select all
/Users/******/Desktop/FLIGHTGEAR/flightgear/FlightGear.app/Contents/MacOS/fgcom -Sdelta384.server4you.de -i0.93 -o0.92 -p16661
fgcom - a communication radio based on VoIP with IAX/Asterisk
Original (c) 2007-2011 by H. Wirtz <wirtz@dfn.de>
OSX and Windows ports 2012 by Yves Sablonier and Geoff R. McLane, respectively.
Version 2.8.0 build 261 date Jan 28 2013, at 23:53:53
Using iaxclient library Version SVN 261

Successfully parsed commandline options.
Loaded file [/Users/******/Desktop/FLIGHTGEAR/flightgear/FlightGear.app/Contents/Resources/fgcom-data/special_frequencies.txt].
Reading airports [/Users/benjamingutzeit/Desktop/FLIGHTGEAR/flightgear/FlightGear.app/Contents/Resources/fgcom-data/positions.txt]... loaded 36741 entries.
Initializing IAX client as guest:xxxxxxxxxxx@delta384.server4you.de
Selected frequency: 910.000
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
Echo-Box
Call 0 answered
Selected frequency: 127.320
Hanging up call 0
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 4.1 km)
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
EDDF Frankfurt am Main 127.320 TWR
Call 0 answered
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 4.1 km)
Selected frequency: 910.000
Hanging up call 0
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
Echo-Box
Call 0 answered
Special freq : 910.000
[SPEAK] unmute mic
Special freq : 910.000
[LISTEN] mute mic
Special freq : 910.000
[SPEAK] unmute mic
Special freq : 910.000
[LISTEN] mute mic
Special freq : 910.000



>>> Nothing changed. Same Echo-Test behaviour ...


So, hopefully i did not produce even more confusions or give too much unneccessary info ...

Have a nice Sunday
Benny-DLH130
 
Posts: 27
Joined: Sat Aug 31, 2013 7:56 pm
Callsign: (AirlineICAO)-130 /
Version: 3.4
OS: Mac OS X 10.7.5

Re: Help needed to get FGCOM to work with Mac

Postby jomo » Sun Sep 01, 2013 5:36 pm

Benny-DLH130 wrote in Sun Sep 01, 2013 2:20 pm:so I tried nearly all the things you told me, jomo.
...
>>> Nothing changed. Same Echo-Test behaviour ...

Well - that output is much more promising than the last one! Now we can see several good things:
Code: Select all
Initializing IAX client as guest:xxxxxxxxxxx@delta384.server4you.de
Selected frequency: 910.000
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
Echo-Box
Call 0 answered
Selected frequency: 127.320
Hanging up call 0
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 4.1 km)
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
EDDF Frankfurt am Main 127.320 TWR
Call 0 answered
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 4.1 km)
Selected frequency: 910.000
Hanging up call 0
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
Echo-Box
Call 0 answered
Special freq : 910.000
[SPEAK] unmute mic
Special freq : 910.000
[LISTEN] mute mic

Thus we see now:
    the communication between FGFS and FGCOM works! (switching frequencies == no port problem)
    the communication you to Mpserver and FGCOM server works (feedback with AP and Freq. and distance)
    BASIC (!!!) soundsystem works (you confirmed that ECHO-Test works on 910)
Why it works - but stops working when you switch frequency - I have no idea at all - there must be a MAC-unique sound-problem (e.g. switching between LineIn, LSP, MIC-on/off, etc.) - there I cannot help you.

I would have only one more suggestion: Try to start FGFS first and set the frequency - and when you start FGCOM afterward it should directly start with that frequency set in FGCOM. Would be nice to know if that works!

Otherwise I hope there is some MAC-user that can help you!
Sorry
jomo / ATCjomo + EDDFjo + EDDFjo1 + EDDFjo2
ATC at EDDF Fr,Sa,Su,We from 20:00 to 24:00 CET/MEZ., see http://www.emmerich-j.de
User avatar
jomo
 
Posts: 1000
Joined: Thu Feb 12, 2009 7:46 pm
Location: Mainz, Germany
Callsign: jomo EDDFjo1+2
OS: UBUNTU 18.4

Re: Help needed to get FGCOM to work with Mac

Postby 808-MC » Sun Sep 01, 2013 6:21 pm

Benny, yeah, everything you described is the same exact issue for me too. I've tried so many things as well. It doesn't make much sense to me. I'm sort of wondering if the 2.12 update will affect/change anything regarding this issue. It's hard to get to the bottom of it. Whenever I switch off the echo test frequency, it doesn't work anymore. That's also very strange that FGCOM works on Parallels. I'll try to do some testing with that myself to see what's going on.

Thanks, jomo, for your input and help. I will try to do a test later today with starting FGFS first and setting the frequency and then initializing FGCOM.

I'll let you know if I stumble across a solution. Do let me know if you make any progress too.
808-MC
 
Posts: 11
Joined: Wed Aug 14, 2013 11:27 pm

Re: Help needed to get FGCOM to work with Mac

Postby jomo » Sun Sep 01, 2013 7:25 pm

808-MC wrote in Sun Sep 01, 2013 6:21 pm:Thanks, jomo, for your input and help. I will try to do a test later today with starting FGFS first and setting the frequency and then initializing FGCOM.
I'll let you know if I stumble across a solution. Do let me know if you make any progress too.

Well seems we just found a solution already: Try to start FGFS first and set the frequency -- then start FGCOM.
And when you need to switch freq you have to restart FGCOM after you switched!!
That way it seems to work on MAC!!!!

BUT - that is only a problem on MAC !!!! No idea why! Be happy: That is why the MAC is more expensive !
jomo / ATCjomo + EDDFjo + EDDFjo1 + EDDFjo2
ATC at EDDF Fr,Sa,Su,We from 20:00 to 24:00 CET/MEZ., see http://www.emmerich-j.de
User avatar
jomo
 
Posts: 1000
Joined: Thu Feb 12, 2009 7:46 pm
Location: Mainz, Germany
Callsign: jomo EDDFjo1+2
OS: UBUNTU 18.4

Re: Help needed to get FGCOM to work with Mac

Postby 808-MC » Sun Sep 01, 2013 8:18 pm

jomo wrote in Sun Sep 01, 2013 7:25 pm:Well seems we just found a solution already: Try to start FGFS first and set the frequency -- then start FGCOM.
And when you need to switch freq you have to restart FGCOM after you switched!!
That way it seems to work on MAC!!!!

BUT - that is only a problem on MAC !!!! No idea why! Be happy: That is why the MAC is more expensive !


Haha, times like this make me miss my PC.

This worked! Just now, I was able to copy you loud and clear on FGCOM on 127.32 EDDF Tower. Starting with both FGFS and FGCOM closed, I had to follow these exact steps though:

1. With FGFS closed, initialize FGCOM in Terminal.

2. Start and load FGFS.

3. In FGFS, tune COM1 frequency to 910.00 and perform echo test.

4. Echo test should work. Switch to different frequency and switch back to 910.00.

5. Echo test will not work now. With FGFS running, in FGCOM Terminal window, press Ctrl + c to close FGCOM session and then reinitialize/open FGCOM session again. FGCOM should detect that you are on the 910.00 frequency and echo test works in FGFS.

To talk to jomo on EDDF Tower 127.32, I switched COM1 to 127.32, terminated FGCOM session (ctrl + c) and then reinitialized FGCOM session. I was then able to talk to jomo on 127.32 and hear him respond. If I was to switch to a different frequency, I would need to repeat step 5 (close FGCOM and reinitialize).

Note: This process would not work if I first started FGFS and then initialized FGCOM. I had to first initialize FGCOM before launching FGFS. Additionally, if you exit an FGFS session and try to reload a new one from the launcher, it won't work anymore. You must completely close down FGFS and FGCOM and start the steps over again.

This is a weird way of going about it, but should be a temporary solution for the time being on those running Mac and wanting to use FGCOM. Maybe a FGFS developer will be able to see this and have a better idea of what is going on.
808-MC
 
Posts: 11
Joined: Wed Aug 14, 2013 11:27 pm

Re: Help needed to get FGCOM to work with Mac

Postby Benny-DLH130 » Sun Sep 01, 2013 8:32 pm

Hey,
great thing, we found a solution :-)

I was flying from EDDF to EDDS and back to EDDF with fgcom all the way through...!!
Just changed the frequency 2 times and restarted fgcom in the terminal ...
Everything worked good :-)

Just for an overview:
Code: Select all
/Users/******/Desktop/FLIGHTGEAR/flightgear/FlightGear.app/Contents/MacOS/fgcom -Sdelta384.server4you.de -i0.93 -o0.92 -p16661
fgcom - a communication radio based on VoIP with IAX/Asterisk
Original (c) 2007-2011 by H. Wirtz <wirtz@dfn.de>
OSX and Windows ports 2012 by Yves Sablonier and Geoff R. McLane, respectively.
Version 2.8.0 build 261 date Jan 28 2013, at 23:53:53
Using iaxclient library Version SVN 261

Successfully parsed commandline options.
Loaded file [/Users/******/Desktop/FLIGHTGEAR/flightgear/FlightGear.app/Contents/Resources/fgcom-data/special_frequencies.txt].
Reading airports [/Users/benjamingutzeit/Desktop/FLIGHTGEAR/flightgear/FlightGear.app/Contents/Resources/fgcom-data/positions.txt]... loaded 36741 entries.
Initializing IAX client as guest:xxxxxxxxxxx@delta384.server4you.de
Selected frequency: 120.500
Call rejected by remote
Selected frequency: 127.320
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 2.3 km)
Ignoring unknown information element 'Unknown IE' (56) of length 9
Call 0 accepted
EDDF Frankfurt am Main 127.320 TWR
Call 0 answered
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 2.3 km)
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 2.3 km)
[SPEAK] unmute mic, mute speaker
[LISTEN] mute mic, unmute speaker
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 2.3 km)
Airport Frankfurt am Main (EDDF TWR at 127.320 MHz) is in range ( 2.3 km)


greetz
Benny-DLH130
 
Posts: 27
Joined: Sat Aug 31, 2013 7:56 pm
Callsign: (AirlineICAO)-130 /
Version: 3.4
OS: Mac OS X 10.7.5

Re: Help needed to get FGCOM to work with Mac

Postby F-JJTH » Sun Sep 01, 2013 9:03 pm

Hi all,

If a Mac user is able to build FGCom and follow my instructions I can try to solve this problem.
Feel you free to contact me by MP or on IRC ( http://wiki.flightgear.org/IRC )

Regards,
Clément
User avatar
F-JJTH
 
Posts: 696
Joined: Fri Sep 09, 2011 12:02 pm

Re: Help needed to get FGCOM to work with Mac

Postby Gijs » Sun Sep 01, 2013 9:10 pm

808-MC wrote in Sun Sep 01, 2013 6:21 pm:I'm sort of wondering if the 2.12 update will affect/change anything regarding this issue.

You can find out by grabbing a release candidate from http://fgfs.goneabitbursar.com/releases ;-)
Airports: EHAM, EHLE, KSFO
Aircraft: 747-400
User avatar
Gijs
Moderator
 
Posts: 9544
Joined: Tue Jul 03, 2007 3:55 pm
Location: Delft, the Netherlands
Callsign: PH-GYS
Version: Git
OS: Windows 10

Re: Help needed to get FGCOM to work with Mac

Postby Benny-DLH130 » Mon Sep 02, 2013 5:46 pm

Hi,
just downloaded the 2.12. release candidate and tried to use fgcom...

Result:

THE SAME PROBLEM APPEARS ...

A frequency-change always "destroys" the connection and you have to restart fgcom ...
Benny-DLH130
 
Posts: 27
Joined: Sat Aug 31, 2013 7:56 pm
Callsign: (AirlineICAO)-130 /
Version: 3.4
OS: Mac OS X 10.7.5

Re: Help needed to get FGCOM to work with Mac

Postby Johan G » Mon Sep 02, 2013 7:11 pm

Maybe this should be documented on the bug tracker... :roll: :wink:
Low-level flying — It's all fun and games till someone looses an engine. (Paraphrased from a YouTube video)
Improving the Dassault Mirage F1 (Wiki, Forum, GitLab. Work in slow progress)
Some YouTube videos
Johan G
Moderator
 
Posts: 6629
Joined: Fri Aug 06, 2010 6:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 2020.3.4
OS: Windows 10, 64 bit

Previous

Return to FGCom

Who is online

Users browsing this forum: No registered users and 3 guests