Announcement

Collapse
No announcement yet.

Linux feeder software for Flightradar24 (Old software)

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hello Ken,

    The alternative solution with modesmixer2, when the SBS-3 RAW binary data are obtained directly from the SBS-3 receiver through its Ethernet interface, decoding to MSG format and outputted for fr24 sender, which sends it to the flightradar24.

    On RPi:
    pi@raspberrypi:~$./modesmixer2 --inConnect 192.168.1.170:10001 --outServer msg:30003
    pi@raspberrypi:~$./fr24-225s --fr24key=xxxxxxxxxxxxx

    Raspberry Pi modesmixer2_rpi_20140616.tgz

    For automatic running and monitoring can be used supervisor, which can be installed in the RPi from the package.

    More detail on the website radarspotters.eu

    Thanks,
    sergsero
    Last edited by sergsero; 2014-07-25, 12:27.

    Comment


    • Originally posted by sergsero View Post
      Hello Ken,

      The alternative solution, when the SBS-3 RAW binary data are obtained directly from the SBS-3 receiver through its Ethernet interface, decoding to MSG format and outputted for fr24 sender, which sends it to the flightradar24.

      On RPi:
      pi@raspberrypi:~$./modesmixer2 --inConnect 192.168.1.170:10001 --outServer msg:30003
      pi@raspberrypi:~$./fr24-225s --fr24key=xxxxxxxxxxxxx

      Raspberry Pi modesmixer2_rpi_20140616.tgz
      More detail on the website radarspotters.eu

      Thanks,
      sergsero
      Well worth trying - just thinking of translating to and from serial form just to move data from one box to another makes me tired.

      BTW. Do replace the fr24 v225 feeder by the currenr RPi specific one.

      Comment


      • Optionally, to display Mode-S data as aircraft tracking on another computer through any visualization program, you can add more options to the modesmixer2 command line, for example: --outServer beastort for VRS or/and --outServer sbs10001:10001 for Basestation.exe and so on...

        If you have multiple data feeds or physical receivers with serial/USB interface and though they have different types of data formats, modesmixer2 able to merge them in one.

        For automatic running and monitoring can be used supervisor, which can be installed in the RPi from the package.
        Last edited by sergsero; 2014-07-25, 12:43.

        Comment


        • Originally posted by koro View Post
          LOWL1,

          Any succes yet?

          I have the same configuration, and don't know how to start?
          Hi, Ken,

          get the latest adsbox http://diseqc.alh.org.ua/projects/ha...0140405.tar.gz
          run with --sbs3-server ... --sbs3-server-port ... options.

          Comment


          • Hi, tnx for the reply,

            Are you sure of the downloadlink?

            Seems to be not working...



            Originally posted by uubb View Post
            Hi, Ken,

            get the latest adsbox http://diseqc.alh.org.ua/projects/ha...0140405.tar.gz
            run with --sbs3-server ... --sbs3-server-port ... options.
            Ken
            Near EBAW

            Comment


            • Originally posted by koro View Post
              Hi, tnx for the reply,

              Are you sure of the downloadlink?

              Seems to be not working...
              Some days ago the page was online.


              here is the link for adsbox-20140405.tar.gz
              | T-EDDB8 |T-EDDB28 | Virtual Radar | Dump1090 | ModesMixer2 |

              Comment


              • Hi Serge,

                I tried this...

                After the last line i don't get a prompt to enter the FR24 command...

                MM2.jpg

                73 de Ken


                Originally posted by sergsero View Post
                Hello Ken,

                The alternative solution with modesmixer2, when the SBS-3 RAW binary data are obtained directly from the SBS-3 receiver through its Ethernet interface, decoding to MSG format and outputted for fr24 sender, which sends it to the flightradar24.

                On RPi:
                pi@raspberrypi:~$./modesmixer2 --inConnect 192.168.1.170:10001 --outServer msg:30003
                pi@raspberrypi:~$./fr24-225s --fr24key=xxxxxxxxxxxxx

                Raspberry Pi modesmixer2_rpi_20140616.tgz

                For automatic running and monitoring can be used supervisor, which can be installed in the RPi from the package.

                More detail on the website radarspotters.eu

                Thanks,
                sergsero
                Ken
                Near EBAW

                Comment


                • Tnx Sven...


                  Originally posted by papasven View Post
                  Some days ago the page was online.


                  here is the link for adsbox-20140405.tar.gz
                  Ken
                  Near EBAW

                  Comment


                  • Hi Ken,

                    All right, if you run programs in the console, then each of them requires its own. Open now another console and run there program fr24 sender. And everything will work.

                    Your screenshot shows that modesmixer2 successfully connected to SBS-3, receives RAW data, decodes them to MSG and output them to network through port 30003. All is well!

                    Also in another console, you can run the program nc 127.0.0.1 30003 and will see already decoded messages in MSG format that will be sent from you to the site flightradar24.com.



                    How to automatically run programs in Linux, each finds his way.

                    In the simplest case, to start some program in the background without quiting or holding anything up from the console where it is running, you need to add the & at the end of the line. Thus to demonize her. It is recommended to add in command line of modesmixer2 the option: --log-noconsole.

                    I prefer to use the supervisor from the raspbian wheezy packages. Supervisor is a system for controlling and maintaining process state, similar to what init does. It will manage individual processes or groups of processes that need to be started and stopped in order, and it is possible to control individual process state via an rpc mechanism, thus allowing ordinary users to restart processes.

                    So the command sudo apt-get install supervisor will install it to system. Then in /etc you will find a directory supervisor/conf.d with configuration files. Place custom configuration files for supervisor here. They will be read after the main configuration file in /etc/supervisor/supervisord.conf.

                    The number of custom configuration files according to the number of running programs. For example, two in the our case: fr24-ebaw.conf and mm-ebaw.conf:



                    If your executable program files fr24feed and modesmixer2 are located in the /opt directory in the same name subdirectory:


                    then the content can be made in such:

                    /etc/supervisor/conf.d$ cat mm-ebaw.conf
                    Code:
                    [program:mm-ebaw]
                    directory=/opt/modesmixer2
                    command=/opt/modesmixer2/modesmixer2 --inConnect 192.168.1.170:10001 --outServer msg:30003
                    user=nobody
                    umask=022
                    autostart=True
                    autorestart=True
                    redirect_stderr=True
                    If you want to create simultaneously feeds with the same data in other formats, for example, a binary BEAST (--outServer beastort) or the other - just add their options to command line of modesmixer2.

                    and

                    /etc/supervisor/conf.d$ cat fr24-ebaw.conf
                    Code:
                    [program:fr24-ebaw]
                    directory=/opt/fr24feed
                    command=/opt/fr24feed/fr24feed --fr24key=xxxxxxxxx --bs-ip=127.0.0.1 --bs-port=30003
                    user=nobody
                    umask=022
                    autostart=True
                    autorestart=True
                    redirect_stderr=True

                    Reboot the system and and both programs start automatically. To check their condition, you can run the command: sudo supervisorctl status.

                    Or run a command to reload the settings of supervisor: sudo supervisorctl reload.

                    A list of other available commands management and monitoring:
                    sudo supervisorctl help
                    Code:
                    default commands (type help <topic>):
                    =====================================
                    add    clear  fg        open  quit    remove  restart   start   stop  update
                    avail  exit   maintail  pid   reload  reread  shutdown  status  tail  version
                    Thanks,
                    sergsero
                    Attached Files
                    Last edited by sergsero; 2014-07-27, 14:10.

                    Comment


                    • Tnx Serge,

                      It's working fine now...

                      I'll give the autostart a try...



                      Originally posted by sergsero View Post
                      Hi Ken,

                      All right, if you run programs in the console, then each of them requires its own. Open now another console and run there program fr24 sender. And everything will work.

                      Your screenshot shows that modesmixer2 successfully connected to SBS-3, receives RAW data, decodes them to MSG and output them to network through port 30003. All is well!

                      Also in another console, you can run the program nc 127.0.0.1 30003 and will see already decoded messages in MSG format that will be sent from you to the site flightradar24.com.



                      How to automatically run programs in Linux, each finds his way.

                      In the simplest case, to start some program in the background without quiting or holding anything up from the console where it is running, you need to add the & at the end of the line. Thus to demonize her. It is recommended to add in command line of modesmixer2 the option: --log-noconsole.

                      I prefer to use the supervisor from the raspbian wheezy packages. Supervisor is a system for controlling and maintaining process state, similar to what init does. It will manage individual processes or groups of processes that need to be started and stopped in order, and it is possible to control individual process state via an rpc mechanism, thus allowing ordinary users to restart processes.

                      So the command sudo apt-get install supervisor will install it to system. Then in /etc you will find a directory supervisor/conf.d with configuration files. Place custom configuration files for supervisor here. They will be read after the main configuration file in /etc/supervisor/supervisord.conf.

                      The number of custom configuration files according to the number of running programs. For example, two in the our case: fr24-ebaw.conf and mm-ebaw.conf:



                      If your executable program files fr24feed and modesmixer2 are located in the /opt directory in the same name subdirectory:


                      then the content can be made in such:

                      /etc/supervisor/conf.d$ cat mm-ebaw.conf
                      Code:
                      [program:mm-ebaw]
                      directory=/opt/modesmixer2
                      command=/opt/modesmixer2/modesmixer2 --inConnect 192.168.1.170:10001 --outServer msg:30003
                      user=nobody
                      umask=022
                      autostart=True
                      autorestart=True
                      redirect_stderr=True
                      and

                      /etc/supervisor/conf.d$ cat fr24-ebaw.conf
                      Code:
                      [program:fr24-ebaw]
                      directory=/opt/fr24feed
                      command=/opt/fr24feed/fr24feed --fr24key=xxxxxxxxx --bs-ip=127.0.0.1 --bs-port=30003
                      user=nobody
                      umask=022
                      autostart=True
                      autorestart=True
                      redirect_stderr=True

                      Reboot the system and and both programs start automatically. To check their condition, you can run the command: sudo supervisorctl status.

                      Or run a command to reload the settings of supervisor: sudo supervisorctl reload.

                      A list of other available commands management and monitoring:
                      sudo supervisorctl help
                      Code:
                      default commands (type help <topic>):
                      =====================================
                      add    clear  fg        open  quit    remove  restart   start   stop  update
                      avail  exit   maintail  pid   reload  reread  shutdown  status  tail  version
                      Thanks,
                      sergsero
                      Ken
                      Near EBAW

                      Comment


                      • Hi Serge,


                        I installed supervisor...
                        But when i try to make a file in the conf.d$ folder i get "Permission denied"

                        The same when i try to make a folder in opt.



                        Originally posted by sergsero View Post
                        Hi Ken,

                        All right, if you run programs in the console, then each of them requires its own. Open now another console and run there program fr24 sender. And everything will work.

                        Your screenshot shows that modesmixer2 successfully connected to SBS-3, receives RAW data, decodes them to MSG and output them to network through port 30003. All is well!

                        Also in another console, you can run the program nc 127.0.0.1 30003 and will see already decoded messages in MSG format that will be sent from you to the site flightradar24.com.



                        How to automatically run programs in Linux, each finds his way.

                        In the simplest case, to start some program in the background without quiting or holding anything up from the console where it is running, you need to add the & at the end of the line. Thus to demonize her. It is recommended to add in command line of modesmixer2 the option: --log-noconsole.

                        I prefer to use the supervisor from the raspbian wheezy packages. Supervisor is a system for controlling and maintaining process state, similar to what init does. It will manage individual processes or groups of processes that need to be started and stopped in order, and it is possible to control individual process state via an rpc mechanism, thus allowing ordinary users to restart processes.

                        So the command sudo apt-get install supervisor will install it to system. Then in /etc you will find a directory supervisor/conf.d with configuration files. Place custom configuration files for supervisor here. They will be read after the main configuration file in /etc/supervisor/supervisord.conf.

                        The number of custom configuration files according to the number of running programs. For example, two in the our case: fr24-ebaw.conf and mm-ebaw.conf:



                        If your executable program files fr24feed and modesmixer2 are located in the /opt directory in the same name subdirectory:


                        then the content can be made in such:

                        /etc/supervisor/conf.d$ cat mm-ebaw.conf
                        Code:
                        [program:mm-ebaw]
                        directory=/opt/modesmixer2
                        command=/opt/modesmixer2/modesmixer2 --inConnect 192.168.1.170:10001 --outServer msg:30003
                        user=nobody
                        umask=022
                        autostart=True
                        autorestart=True
                        redirect_stderr=True
                        and

                        /etc/supervisor/conf.d$ cat fr24-ebaw.conf
                        Code:
                        [program:fr24-ebaw]
                        directory=/opt/fr24feed
                        command=/opt/fr24feed/fr24feed --fr24key=xxxxxxxxx --bs-ip=127.0.0.1 --bs-port=30003
                        user=nobody
                        umask=022
                        autostart=True
                        autorestart=True
                        redirect_stderr=True

                        Reboot the system and and both programs start automatically. To check their condition, you can run the command: sudo supervisorctl status.

                        Or run a command to reload the settings of supervisor: sudo supervisorctl reload.

                        A list of other available commands management and monitoring:
                        sudo supervisorctl help
                        Code:
                        default commands (type help <topic>):
                        =====================================
                        add    clear  fg        open  quit    remove  restart   start   stop  update
                        avail  exit   maintail  pid   reload  reread  shutdown  status  tail  version
                        Thanks,
                        sergsero
                        Ken
                        Near EBAW

                        Comment


                        • Hi Ken,

                          The owner of the directory /conf.d, as well as /opt is root. "Root" is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system. It is also referred to as the root account, root user and the superuser.
                          The permissions system in Unix-like operating systems is set by default to prevent access by ordinary users to critical parts of the system and to files and directories belonging to other users. That is, rather than routinely logging into the system as root, administrators should log in with their ordinary user accounts and then use command, such as sudo, that provide them with root privileges only as needed and without requiring a new login.

                          So you, as normal users do not have sufficient access rights on the changes there.

                          Use the sudo command together with your actions to get once-only administrator (root) rights. For example: sudo mkdir ... and so on.

                          Or obtain root privileges on the entire session by typing: sudo -s. It will ask you to enter your password to confirm that it really is you. Enter your password. Then you will be able to perform any desired action without restriction.

                          Thanks,
                          sergsero
                          Last edited by sergsero; 2014-07-27, 14:37.

                          Comment


                          • Hi Serge,

                            I did all as you told me...

                            Ater reboot i heve to give UN ans password like pi and raspberry...

                            After that nothing happened... when i use sudo supervisorctl status i see something like...

                            FATAL can't find command '/opt/fr24/fr24feed\xc2\xa0--fr24key............



                            Originally posted by sergsero View Post
                            Hi Ken,

                            The owner of the directory /conf.d, as well as /opt is root. "Root" is the user name or account that by default has access to all commands and files on a Linux or other Unix-like operating system. It is also referred to as the root account, root user and the superuser.
                            The permissions system in Unix-like operating systems is set by default to prevent access by ordinary users to critical parts of the system and to files and directories belonging to other users. That is, rather than routinely logging into the system as root, administrators should log in with their ordinary user accounts and then use command, such as sudo, that provide them with root privileges only as needed and without requiring a new login.

                            So you, as normal users do not have sufficient access rights on the changes there.

                            Use the sudo command together with your actions to get once-only administrator (root) rights. For example: sudo mkdir ... and so on.

                            Or obtain root privileges on the entire session by typing: sudo -s. It will ask you to enter your password to confirm that it really is you. Enter your password. Then you will be able to perform any desired action without restriction.

                            Thanks,
                            sergsero
                            Ken
                            Near EBAW

                            Comment


                            • Hi Ken,

                              This message says that the supervisor does not find an executable program in this directory.
                              Do you put it there beforehand?
                              Or does not match the name of the file: we have configured fr24feed, but in reality his name fr24feed_arm-le_225s.

                              In fr24-ebaw.conf in the string: command=/opt/fr24feed/fr24feed --fr24key=xxxxxxxxx --bs-ip=127.0.0.1 --bs-port=30003 its components must be separated by a space.
                              At feedback message, which you give exemplify, this string contain unknown characters instead of a space:

                              111.png



                              If this does not resolve the problem, then let we once again will check all the stages of supervisor installation. Most likely all of the infrastructure you already have. Therefore, re-create it is not necessary. Just check it the step by step.
                              All the actions described below are performed in the console (terminal window).

                              1. Temporarily are take the root privileges for himself. For this execute the command: sudo -s.

                              2. Create two new subdirectories in the directory /opt. We have agreed that their names will be the same as the programs themselves. For this execute the command: mkdir /opt/fr24feed and mkdir /opt/modesmixer2

                              3. Copied executable program files, each into her corresponding directory: file fr24feed -> /opt/fr24feed/ and file modesmixer2 -> /opt/modesmixer2/. Check that all things are done right: the programs now really are in their place and have the necessary attributes to run.
                              Check the attributes of the file: ls -l /opt/fr24feed/ and ls -l /opt/modesmixer2/. The results of these commands must be like:

                              -rwxr-xr-x 1 root root 1687012 apr. 12 18:14 modesmixer2
                              -rwxr-xr-x 1 root root 176272 apr. 23 15:19 fr24feed

                              Notice, the date of the files and their sizes in your case will be other.


                              At this stage with the executable files we have finished.

                              4. Now go to the configuration directory. For this execute the command:
                              cd /etc/supervisor/conf.d/

                              5. Using any editor like nano, create two configuration mm-ebaw.conf and fr24-ebaw.conf files with the contents as shown above.

                              6. Execute the command: supervisorctl stop all.

                              7. Execute the command: supervisorctl reload all.

                              8. Execute the command: supervisorctl status.

                              9. Also, run the command: ps -ax and bring its results accurately here, please. The part of it where strings that contain: fr24feed and modesmixer2.

                              10. Lower your rights in the system from root to a normal user - execute command: exit

                              Thanks,
                              sergsero
                              Last edited by sergsero; 2014-07-29, 07:14.

                              Comment


                              • Hi Serge,

                                Here some output... it seems that FR24 is running after i removed the --bs-ip and --bs-port....

                                root@raspberrypi:/opt/modesmixer2# supervisorctl status
                                fr24-ebaw RUNNING pid 2066, uptime 1:01:24
                                mm-ebaw FATAL can't find command '/opt/modesmixer2/modesmixer2\xc2\xa0--inConnect\xc2\xa0192.168.1.170:10001\xc2\xa0--outServer\xc2\xa0msg:30003'
                                root@raspberrypi:/opt/modesmixer2# ls
                                modesmixer2 modesmixer2.readme
                                root@raspberrypi:/opt/modesmixer2# modesmixer2 --inConnect 192.168.1.170:10001 --outServer msg:3003
                                bash: modesmixer2: opdracht niet gevonden (NOT FOUND)
                                root@raspberrypi:/opt/modesmixer2# ls -l /opt/modesmixer2/
                                totaal 1448
                                -rwxr-xr-x 1 root root 1474408 jun 16 20:01 modesmixer2
                                -rwxr-xr-x 1 root root 5388 jun 16 19:59 modesmixer2.readme


                                Originally posted by sergsero View Post
                                Hi Ken,

                                This message says that the supervisor does not find an executable program in this directory.
                                Do you put it there beforehand?
                                Or does not match the name of the file: we have configured fr24feed, but in reality his name fr24feed_arm-le_225s.

                                In fr24-ebaw.conf in the string: command=/opt/fr24feed/fr24feed --fr24key=xxxxxxxxx --bs-ip=127.0.0.1 --bs-port=30003 its components must be separated by a space.
                                At feedback message, which you give exemplify, this string contain unknown characters instead of a space:

                                [ATTACH=CONFIG]4497[/ATTACH]



                                If this does not resolve the problem, then let we once again will check all the stages of supervisor installation. Most likely all of the infrastructure you already have. Therefore, re-create it is not necessary. Just check it the step by step.
                                All the actions described below are performed in the console (terminal window).

                                1. Temporarily are take the root privileges for himself. For this execute the command: sudo -s.

                                2. Create two new subdirectories in the directory /opt. We have agreed that their names will be the same as the programs themselves. For this execute the command: mkdir /opt/fr24feed and mkdir /opt/modesmixer2

                                3. Copied executable program files, each into her corresponding directory: file fr24feed -> /opt/fr24feed/ and file modesmixer2 -> /opt/modesmixer2/. Check that all things are done right: the programs now really are in their place and have the necessary attributes to run.
                                Check the attributes of the file: ls -l /opt/fr24feed/ and ls -l /opt/modesmixer2/. The results of these commands must be like:

                                -rwxr-xr-x 1 root root 1687012 apr. 12 18:14 modesmixer2
                                -rwxr-xr-x 1 root root 176272 apr. 23 15:19 fr24feed

                                Notice, the date of the files and their sizes in your case will be other.


                                At this stage with the executable files we have finished.

                                4. Now go to the configuration directory. For this execute the command:
                                cd /etc/supervisor/conf.d/

                                5. Using any editor like nano, create two configuration mm-ebaw.conf and fr24-ebaw.conf files with the contents as shown above.

                                6. Execute the command: supervisorctl stop all.

                                7. Execute the command: supervisorctl reload all.

                                8. Execute the command: supervisorctl status.

                                9. Also, run the command: ps -ax and bring its results accurately here, please. The part of it where strings that contain: fr24feed and modesmixer2.

                                10. Lower your rights in the system from root to a normal user - execute command: exit

                                Thanks,
                                sergsero
                                Ken
                                Near EBAW

                                Comment

                                Working...
                                X