Board index FlightGear Support Tools FGCom

FGCom-mumble

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

Re: FGCom-mumble

Postby benih » Tue Jul 14, 2020 12:24 pm

Today, i conducted a load test with a little more than 100 bots flying around (i think, more can't be handled by my computer).
From time to time i did check and all was still well after i finally shut it down 5 hours later.
This currently really seem to scale well enough already :)
benih
 
Posts: 161
Joined: Tue Aug 15, 2017 9:34 am
Callsign: D-EBHX

Re: FGCom-mumble

Postby benih » Tue Jul 21, 2020 7:01 am

New release: https://github.com/hbeni/fgcom-mumble/r ... tag/v0.2.0

Aside from a (hopefully) fully working radio simulation, this release brings various bugfixes and small enhancements.

Most notably, this release brings RDF client support (ATC-Pie as reference client!), allows clients to set the radios squelch setting, and bandwith usage of plugin communication has been reduced. The radio effects like static/noise can be disabled now.

On the server side, the bots are now more stable and set useful mumble client comments. They also will report their release version when called (--version too), so its a little more easy to detect if updates are needed.
We now also have a nice live-status page written in PHP, showing the clients locations and frequencies on a dynamic map!

The windows version is now statically linked against pthreads, so i hope it will run in windows. As there is no mumble windows build available so far, i had no chance of testing. It would be cool if someone having the capability could look into this, and see if it loads and if it accepts UDP messages.


Now we basically have to wait for the mumble project to release the plugin framework version, and for us to see if we have some hardware to run this on.
For testing i may can use my server, however i'm not sure this is the right choice for final installation.
benih
 
Posts: 161
Joined: Tue Aug 15, 2017 9:34 am
Callsign: D-EBHX

Re: FGCom-mumble

Postby benih » Mon Aug 03, 2020 12:11 pm

New release 0.3.0: https://github.com/hbeni/fgcom-mumble/releases/tag/v.0.3.0

This release brings various improvements and bug fixes:

  • Frequency handling was improved: the plugin operates on the real wave frequency internally now. That also affects the expected UDP COMn_FRQ field, which now assumes the value is a real wave frequency if its precision is >= 4 decimals. <4 decimals is tried to be parsed as 25/8.33kHz channel name. In essence the plugin is now capable of establishing comms with the 8.33 channel names, as well as basic frequency overlap for the 25kHz channels.
  • RDF output was improved and is compatible to ATC-Pie dev branch
  • The plugin now supports several clients. For distinguishing the clients, the client's UDP sending port is used. For special cases there is also a new IID field in the UDP protocol that can ovverride this.
  • The plugin (and the server bots) have an garbage collector now, that will clean out data from stale clients
  • Some bugs where fixed in the radio model and the plugin behaviour
  • The serverside botmanager now has a watchdog that restarts died bots
  • German translation for some readmes
benih
 
Posts: 161
Joined: Tue Aug 15, 2017 9:34 am
Callsign: D-EBHX

Re: FGCom-mumble

Postby benih » Thu Aug 06, 2020 5:04 pm

I added some commits yesterday that split the IO code out a bit, so catching up on this later should be more easy now., because the plugin_io.cpp is not a novel anymore.

I just did a sloccount analysis for fun (wow that was a lot of work - i used kate to write all of this).
Code: Select all
github.com/AlDanial/cloc v 1.86  T=0.13 s (719.2 files/s, 149219.7 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
C/C++ Header                    34           1403           1883           4631
C++                             27           1212           1598           4018
Lua                             12            468            633           1550
Markdown                         8            296              0            687
Bourne Shell                     4             44             52            246
CSS                              1             22              9            179
PHP                              1             41             84            163
XML                              1             29             24            163
SVG                              1              0              0            128
make                             2             27             18             88
C                                1             22             39             66
JavaScript                       3              8             12             44
INI                              1              7             14             10
-------------------------------------------------------------------------------
SUM:                            96           3579           4366          11973
-------------------------------------------------------------------------------


Ok, and the markdown documentation is a short novel already: 9211 words. :P
benih
 
Posts: 161
Joined: Tue Aug 15, 2017 9:34 am
Callsign: D-EBHX

Re: FGCom-mumble

Postby Johan G » Thu Aug 06, 2020 8:18 pm

I remember this parenthesis from your first post that in depth discussed the features you would like to see.
benih wrote in Fri Jun 05, 2020 7:20 am:(Please note that sadly my c++ programming skills lack the means to implement most of this that stuff myself).

And that was just a month ago. :mrgreen:

I am looking forward to seeing your work getting used when production Mumble can use plugins. And I think this will help a lot with that: :D
benih wrote in Thu Aug 06, 2020 5:04 pm:[...] the markdown documentation is a short novel already [...]
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)
Johan G
Moderator
 
Posts: 5785
Joined: Fri Aug 06, 2010 5:33 pm
Location: Sweden
Callsign: SE-JG
IRC name: Johan_G
Version: 3.0.0
OS: Windows 7, 32 bit

Re: FGCom-mumble

Postby benih » Thu Aug 06, 2020 8:48 pm

Thanks Johan, i learned alot in the process!

But its far from perfect and could use professionals looking over the code.
benih
 
Posts: 161
Joined: Tue Aug 15, 2017 9:34 am
Callsign: D-EBHX

Re: FGCom-mumble

Postby benih » Mon Aug 10, 2020 1:33 pm

Hi again, another small addition.

I recently rewrote the radio model to be object oriented, so now we can swap/add models easily.
I took the opportunity and added a very basic HF and UHF simulation in addition to the just ported VHF model.
So now we can now tune HF frequencies and chatter over the horizon :)

(Please note, the models are still very basic, for example HF does not simulate time-of-day effects or sunspots; the UHF one is just an VHF with reduced range, so no detection of buldings/trees etc. Refining this would need radio comms knowledge i don't possess yet.)
benih
 
Posts: 161
Joined: Tue Aug 15, 2017 9:34 am
Callsign: D-EBHX

Previous

Return to FGCom

Who is online

Users browsing this forum: No registered users and 1 guest