Telnet usage: Difference between revisions

Jump to navigation Jump to search
Line 234: Line 234:


== Use Case: Radio Stack ==
== Use Case: Radio Stack ==
If you'd like to build a hardware radio stack and interface it to FG. There are a couple of ways you could attack this.
For the easiest start, I'd use a single fg instance, with the telnet server enabled, and write a little (eg. perl) script that reads the parallel port where you have your switch connected, and changes a property via the telnet interface when the switch gets opened/closed. If you'd like to build a hardware radio stack and interface it to FG. There are a couple of ways you could attack this.


* Add a module (i.e. some code) inside FG that runs every frame. Your code would read all your hardware switches through whatever mechanism you have devised and update the FG internals. It would also send things like frequencies (probably cooked up in the best flavor for your hardware) so that the radio stack can display the frequencies.
* Add a module (i.e. some code) inside FG that runs every frame. Your code would read all your hardware switches through whatever mechanism you have devised and update the FG internals. It would also send things like frequencies (probably cooked up in the best flavor for your hardware) so that the radio stack can display the frequencies.

Navigation menu