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

  • #76
    Originally posted by Phil21 View Post
    It's output is something like: MSG,3,,,A7A25F,,,,,,,4925,,,44.82532,266.92599,,,0 ,0,0,0

    Note the 266.92599 longitude - which is obviously impossible. This seems to happen for *all* airplanes, and is in the ~266.xxx range most/all of the time.
    Phil,

    looking to the code for "MSG,3" (adsb.c line 507) it seems that homelon is not used in order to compute the field of the message but only to detect values grossly out of range.

    Comment


    • #77
      Originally posted by SR-71 View Post
      Phil,

      looking to the code for "MSG,3" (adsb.c line 507) it seems that homelon is not used in order to compute the field of the message but only to detect values grossly out of range.
      Thanks SR-71, it got me started in the right direction.

      As someone on the Yahoo groups for the Mode-S Beast pointed out 266 = 360 = -93, which is the correct number I'm looking for. I feel rather stupid for not catching that myself! This is apparently a common error in software written by easterners for easterners, and now exposed to western longitudes.

      In case anyone else runs across this, the simple fix I put in place is at line 548:
      // Testing fix for Western longitudes
      if (rlon > 180) {
      rlon = rlon - 360;
      }

      I'll send this to the author for hopeful inclusion in the next release.

      Thanks!

      -Phil

      Comment


      • #78
        Hello all!

        My linux feeding software stops sending data packets after a while.
        Initialization and first time is ok, but sometime later is nothing in data packets for fr24. Below my logs and capture data.
        Code:
        [i]FR24Feed v225 - built on Oct  8 2012/09:38:58
        [i]Downloading configuration...OK
        [i]Parsing configuration...OK
        [c]Interval: 5s
        [c]Latitude: 51.8100
        [c]Longitude: 39.2200
        [c]GND: YES
        [c]NonADSB: YES
        [i]Source defined as Basestation
        [b]connecting to localhost:30003
        [b]connected
        [b]working
        [n]UUOO1@83.140.247.21:8099/UDP
        [n]connecting
        [n]connected
        [n]switching to UDP
        [n]working
        [i]sent 3 planes in 1 packets
        [i]sent 4 planes in 1 packets
        [i]sent 2 planes in 1 packets
        [i]sent 3 planes in 1 packets
        [i]sent 2 planes in 1 packets
        [i]sent 2 planes in 1 packets
        [i]sent 3 planes in 1 packets
        [i]sent 2 planes in 1 packets
        [i]sent 2 planes in 1 packets
        [i]sent 2 planes in 1 packets
        [i]sent 3 planes in 1 packets
        [i]sent 3 planes in 1 packets
        [i]sent 4 planes in 1 packets
        [n]pinging the server
        [n]disconnected
        [n]waiting 10 seconds
        [n]UUOO1@83.140.247.21:8099/UDP
        [n]connecting
        [n]connected
        [n]switching to UDP
        [n]working
        [n]ping
        [n]disconnected
        [n]waiting 5 seconds
        [n]UUOO1@83.140.247.21:8099/UDP
        [n]connecting
        [n]connected
        [n]switching to UDP
        [n]working
        [n]ping
        [n]disconnected
        [n]waiting 5 seconds
        [n]UUOO1@83.140.247.21:8099/UDP
        [n]connecting
        [n]connected
        [n]switching to UDP
        [n]working
        [n]ping
        [n]disconnected
        [n]waiting 5 seconds
        [n]UUOO1@83.140.247.21:8099/UDP
        [n]connecting
        [n]connected
        [n]switching to UDP
        [n]working
        [n]ping
        [n]disconnected
        [n]waiting 5 seconds
        wireshark dump:
        Code:
        No.     Time        Source                Destination           Protocol Length Info
              1 0.000000    192.168.254.11        83.140.247.20         TCP      74     36614 > http [SYN] Seq=0 Win=5840 Len=0 MSS=1460 SACK_PERM=1 TSval=17019898 TSecr=0 WS=4
              2 0.101861    83.140.247.20         192.168.254.11        TCP      62     http > 36614 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 WS=512
              3 0.101936    192.168.254.11        83.140.247.20         TCP      54     36614 > http [ACK] Seq=1 Ack=1 Win=5840 Len=0
              4 0.102169    192.168.254.11        83.140.247.20         HTTP     149    GET /key.php?key=xxx HTTP/1.1 
              5 0.204623    83.140.247.20         192.168.254.11        TCP      60     http > 36614 [ACK] Seq=1 Ack=96 Win=6144 Len=0
              6 0.208727    83.140.247.20         192.168.254.11        HTTP     955    HTTP/1.1 200 OK  (text/plain)
        ...skip...
             27 5.107349    192.168.254.11        83.140.247.21         UDP      154    Source port: 50884  Destination port: 8099
             28 9.880391    192.168.254.11        83.140.247.21         UDP      186    Source port: 50884  Destination port: 8099
             29 15.207248   192.168.254.11        83.140.247.21         UDP      122    Source port: 50884  Destination port: 8099
             30 19.899268   192.168.254.11        83.140.247.21         UDP      154    Source port: 50884  Destination port: 8099
             31 24.867885   192.168.254.11        83.140.247.21         UDP      122    Source port: 50884  Destination port: 8099
             32 29.887269   192.168.254.11        83.140.247.21         UDP      122    Source port: 50884  Destination port: 8099
             33 34.897004   192.168.254.11        83.140.247.21         UDP      154    Source port: 50884  Destination port: 8099
             34 40.000384   192.168.254.11        83.140.247.21         UDP      122    Source port: 50884  Destination port: 8099
             35 45.110461   192.168.254.11        83.140.247.21         UDP      122    Source port: 50884  Destination port: 8099
             36 49.887028   192.168.254.11        83.140.247.21         UDP      122    Source port: 50884  Destination port: 8099
             37 55.040418   192.168.254.11        83.140.247.21         UDP      154    Source port: 50884  Destination port: 8099
             38 59.967041   192.168.254.11        83.140.247.21         UDP      154    Source port: 50884  Destination port: 8099
             39 64.897060   192.168.254.11        83.140.247.21         UDP      186    Source port: 50884  Destination port: 8099
             40 64.897250   192.168.254.11        83.140.247.21         UDP      62     Source port: 50884  Destination port: 8099
             41 -3532.871830 192.168.254.11        83.140.247.21         TCP      74     52339 > 8099 [SYN] Seq=0 Win=5840 Len=0 MSS=1460 SACK_PERM=1 TSval=17029391 TSecr=0                                        42 -3532.761518 83.140.247.21         192.168.254.11        TCP      74     8099 > 52339 [SYN, ACK] Seq=0 Ack=1 Win=14480 Len=0 MSS=1460 SACK_PERM=1
             43 -3532.761425 192.168.254.11        83.140.247.21         TCP      66     52339 > 8099 [ACK] Seq=1 Ack=1 Win=5840 Len=0 TSval=17029402 TSecr=2653236365
             44 -3532.650661 83.140.247.21         192.168.254.11        TCP      82     8099 > 52339 [PSH, ACK] Seq=1 Ack=1 Win=14592 Len=16 TSval=2653236476 TSecr=17029402
             45 -3532.650611 192.168.254.11        83.140.247.21         TCP      66     52339 > 8099 [ACK] Seq=1 Ack=17 Win=5840 Len=0 TSval=17029413 TSecr=2653236476
        ...skip...
             57 -3502.272797 192.168.254.11        83.140.247.21         UDP      62     Source port: 49516  Destination port: 8099
        UDP packets in range 27-40 contain valid data with aircraft info, but begin from packet 57 and below no more data in it... But in the same time I see that my ADS-B receiver still receive data and success decode packets:
        Code:
        MSG,4,,,424046,,,,,,,,468.0,161.1,,,-64,,0,0,0,0
        MSG,5,,,14A571,,,,,,,30000,,,,,,,,,,
        MSG,3,,,424046,,,,,,,32975,,,50.76228,39.81483,,,0,0,0,0
        MSG,4,,,424046,,,,,,,,468.0,161.1,,,-64,,0,0,0,0
        MSG,5,,,424046,,,,,,,32950,,,,,,,,,,
        MSG,3,,,14A571,,,,,,,30000,,,50.69622,41.72417,,,0,0,0,0
        MSG,3,,,424046,,,,,,,32950,,,50.76107,39.81552,,,0,0,0,0
        MSG,4,,,424046,,,,,,,,468.0,161.1,,,-64,,0,0,0,0
        MSG,3,,,14F10E,,,,,,,13000,,,52.55776,38.87857,,,0,0,0,0
        MSG,5,,,14A571,,,,,,,30000,,,,,,,,,,
        MSG,3,,,424046,,,,,,,32950,,,50.75986,39.81621,,,0,0,0,0
        MSG,4,,,424046,,,,,,,,468.0,161.1,,,-64,,0,0,0,0
        MSG,5,,,424046,,,,,,,32950,,,,,,,,,,
        MSG,3,,,14A571,,,,,,,30000,,,50.69725,41.72211,,,0,0,0,0
        MSG,1,,,424046,,,,,,SBI1045 ,,,,,,,,0,0,0,0
        MSG,4,,,424046,,,,,,,,468.0,161.1,,,-64,,0,0,0,0
        MSG,3,,,14F10E,,,,,,,13000,,,52.55621,38.87894,,,0,0,0,0
        MSG,3,,,424046,,,,,,,32950,,,50.75786,39.81728,,,0,0,0,0
        MSG,5,,,424046,,,,,,,32950,,,,,,,,,,
        MSG,3,,,14A571,,,,,,,30000,,,50.69829,41.72073,,,0,0,0,0
        MSG,4,,,424046,,,,,,,,468.0,161.1,,,-64,,0,0,0,0
        MSG,4,,,424046,,,,,,,,468.0,161.1,,,0,,0,0,0,0
        MSG,3,,,14A571,,,,,,,30000,,,50.70000,41.71867,,,0,0,0,0
        MSG,4,,,424046,,,,,,,,468.0,161.1,,,0,,0,0,0,0
        MSG,4,,,424046,,,,,,,,468.0,160.9,,,-64,,0,0,0,0
        MSG,3,,,14A571,,,,,,,30000,,,50.70067,41.71761,,,0,0,0,0
        What are the problems with my installation? Any suggestions?
        Last edited by wizeman; 2012-11-16, 08:14.

        Comment


        • #79
          Hello,

          On linux Ubuntu, I have compiled adsbox with success.

          On term :
          ubuntu1110@ACER:~$ lsusb
          Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
          Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
          Bus 001 Device 006: ID 07c4:a604 Datafab Systems, Inc.
          Bus 002 Device 002: ID 145f:015e Trust
          Bus 004 Device 002: ID 058f:9360 Alcor Micro Corp. 8-in-1 Media Card Reader
          Bus 004 Device 003: ID 04fc:05da Sunplus Technology Co., Ltd
          Bus 005 Device 002: ID 046d:08f0 Logitech, Inc. QuickCam Messenger
          Bus 006 Device 003: ID 04d8:000a Microchip Technology, Inc. CDC RS-232 Emulation Demo <--- my MicroADSB

          I tried

          ubuntu1110@ACER:~$ > /dev/ttyACMO
          bash: /dev/ttyACMO: Permission non accordée
          ubuntu1110@ACER:~$ sudo -s
          [sudo] password for ubuntu1110:
          root@ACER:~# echo '#43.02' > /dev/ttyACMO
          root@ACER:~#

          try :
          ubuntu1110@ACER:~/ADSBOX/adsbox$ ./adsbox
          adsbox ADS-B decoder version 20120427.
          Init database.
          Using /dev/ttyS0 as input serial device.
          sbs-1 bind(): Address already in use
          Abandon



          new try

          ubuntu1110@ACER:~/ADSBOX/adsbox$ ./adsbox --serial /dev/ttyACMO
          adsbox ADS-B decoder version 20120427.
          Init database.
          Using /dev/ttyACMO as input serial device.
          sbs-1 bind(): Address already in use
          Abandon

          Where I am wrong ?
          Thank you
          Last edited by speedbird1960; 2012-11-21, 11:03. Reason: word edit

          Comment


          • #80
            thank you, speedbird1960

            Comment


            • #81
              Originally posted by porto49 View Post
              thank you, speedbird1960
              What was the solution?

              It's very hard for others to follow when the Mods edit a member's post and we're all left trying to work out what happened.
              Mike


              www.radarspotting.com

              Radarspotting since 2005

              Comment


              • #82
                Originally posted by Anmer View Post
                What was the solution?

                It's very hard for others to follow when the Mods edit a member's post and we're all left trying to work out what happened.
                Hi Mike.

                I only edited one word, 'Tanks' was change to 'Thanks' and i left a Mod edit 'Word Edit'.

                Which means i have not helped Porto with his problem, he still needs help.
                AMS Daily Fight Information: http://schiphol.dutchplanespotters.nl/

                Comment


                • #83
                  All the more reason for not editing a post without highlighting the change. Maybe add Mod Edit in red to the original post with an explanation of the change?

                  Just a suggestion.
                  Mike


                  www.radarspotting.com

                  Radarspotting since 2005

                  Comment


                  • #84
                    Originally posted by porto49 View Post

                    ubuntu1110@ACER:~/ADSBOX/adsbox$ ./adsbox --serial /dev/ttyACMO
                    adsbox ADS-B decoder version 20120427.
                    Init database.
                    Using /dev/ttyACMO as input serial device.
                    sbs-1 bind(): Address already in use
                    Abandon
                    Probably another instance of adsbox is lingering around, check for it with the following command:

                    ps -ef | grep adsbox

                    in my Rasberry PI sytem I get

                    root 1868 1866 58 18:52 ? 02:39:44 ./adsbox -s /dev/ttyUSB0 --baud 3000000 -l yyyy -g xxxx

                    you can kill it with

                    sudo kill 1868


                    Moreover, you need to correctly configure udev's rules in order to gain access to ttyACM0 without becoming root.


                    Create the file /etc/udev/rules.d/99-microchip.rules:

                    SUBSYSTEMS=="usb",ATTRS{idVendor}=="04d8",ATTRS{id Product}=="000a",MODE="666"

                    next reload udev daemon with

                    sudo udevadm control --reload-rules

                    lastly reconnect the receiver to the USB and check that you can access it without sudo.

                    Comment


                    • #85
                      Hello,

                      merci SR-71

                      -I killed the number shows as the example (sorry, i have closed the term without copying the result of command line)
                      -I have created the file /etc/udev/rules.d/99-microchip.rules
                      SUBSYSTEMS=="usb", ATTRS{idVendor}=="04d8", ATTRS{idProduct}=="000a", MODE="666"
                      -reload rules

                      In a term:
                      ubuntu1110@ACER:~$ echo '#43.02' > /dev/ttyACM0
                      ubuntu1110@ACER:~$ cd ADSBOX/adsbox
                      ubuntu1110@ACER:~/ADSBOX/adsbox$ ./adsbox --serial /dev/ttyACM0
                      adsbox ADS-B decoder version 20120427.
                      Init database.
                      Using /dev/ttyACM0 as input serial device.
                      Run SBS-1 data server on port 30003
                      Run HTTP server on port 8080

                      DF:4
                      DF:11
                      DF:11
                      DF:17 ICAO:4786fd Speed:447.0 Track:38.2 Vertical:64

                      in other term

                      ubuntu1110@ACER:~$ cd Flightradar24
                      ubuntu1110@ACER:~/Flightradar24$ ./fr24feed_x86_225 --fr24key=xxxxxxxxxxxxx
                      [i]FR24Feed v225 - built on Oct 8 2012/09:28:20
                      [i]Downloading configuration...OK
                      [i]Parsing configuration...OK
                      [c]Interval: 5s
                      [c]Latitude: yy.yyy
                      [c]Longitude: -x.xxxx
                      [c]GND: YES
                      [c]NonADSB: YES
                      [i]Source defined as Basestation
                      [n]LFJR1@xxxxxx/UDP
                      [n]connecting
                      [b]connecting to localhost:30003
                      [b]connected
                      [b]working
                      [n]connected
                      [n]switching to UDP
                      [n]working
                      [n]ping
                      [n]ping
                      [i]sent 0 planes in 0 packets
                      [i]sent 1 planes in 1 packets
                      [i]sent 1 planes in 1 packets


                      Youppiiiii !
                      Last edited by porto49; 2012-11-22, 18:17.

                      Comment


                      • #86
                        v226 for Linux

                        Hi all,

                        is a release v226 also for Linux/ARM needed/available ?

                        Comment


                        • #87
                          hello to all!

                          my situation:
                          SBS-3 only connectet to lan
                          Raspberry Pi also connected to lan.
                          no usb or serial connections

                          what i want:
                          feed my data from sbs-3 with my raspberry pi to fr24 without usb or serial connection.

                          what i have installed to my raspberry pi:
                          remserial 1.4, to create a virtual serial port to my sbs-3
                          adsbox(-latest), for decoding
                          fr24feed_arm-le_225s, to feed the data

                          1st ssh window (192.168.170 is my sbs3, remserial1 is the virtual serial port):
                          pi@raspberrypi /etc/fr24/remserial $ sudo ./remserial -r 192.168.0.170 -p 10001 -l /dev/remserial1 /dev/ptmx &
                          [1] 2014
                          pi@raspberrypi /etc/fr24/remserial $
                          =>serial port is running

                          2nd ssh window:
                          pi@raspberrypi /etc/fr24/adsbox sudo ./adsbox -s /dev/remserial1 --baud 3000000 -l 48.2300 -g 14.1800
                          adsbox ADS-B decoder version 20120728.
                          Your lat 48.23000 lon 14.18000
                          Init database.
                          Using /dev/remserial1 as input serial device.
                          Run SBS-1 data server on port 30003
                          Run HTTP server on port 8080

                          DF:10
                          DF:10
                          DF:10
                          DF:10
                          DF:10
                          DF:10
                          DF:10
                          DF:10
                          DF:10
                          DF:1
                          DF:10
                          DF:10

                          =>seems to connect but no plane data. when i connect with basestation lots of planes are shown.

                          3rd ssh window:
                          pi@raspberrypi /etc/fr24 $ ./fr24-225s --fr24key=xxxxxxxxxxxxx
                          [i]FR24Feed v225 - built on Oct 8 2012/09:38:58
                          [i]Downloading configuration...OK
                          [i]Parsing configuration...OK
                          [c]Interval: 5s
                          [c]Latitude: 48.2300
                          [c]Longitude: 14.1800
                          [c]GND: YES
                          [c]NonADSB: YES
                          [i]Source defined as Basestation
                          [b]connecting to localhost:30003
                          [b]connected
                          [b]working
                          [n]LOWL1@83.140.247.21:8099/UDP
                          [n]connecting
                          [n]connected
                          [n]switching to UDP
                          [n]working
                          [n]ping
                          [n]ping

                          =>no data sending, because of no data from adsbox

                          i killed the remserial process (2014) an made a telnet to my sbs-3 port 10001:
                          telnet 192.168.0.170 10001 and strange data appeared:
                          E????`/?K?إL?(0`^?;?xd?HA?h???"??:>;?;?;?????}0???<I&?~?? <I&??mg???`/?K?u??? 0?E?N??;???(?BI?
                          6?ᠾo6???7?Q0??|k???W8???K?h?b????~k:
                          ?E?NQ?;?;?;?dQ?
                          ???`/d?<2\;?;?;???? ?K??o;??A????8???WǓ??a??K?A‡?W?;?;???? ?Dz??w;??f????j)L???;?;?;?????D?? 8);??c?(
                          K??y<n?]K???;?;?;?=??<Q??;?;??????5#5 ?PlE?;?;?????.u??????[?E? ?$\`
                          ?G?;?;?;?;?3 ?gV??;?;?;?x?? ?@
                          ????.
                          D?UM;?G?? ?H?
                          ?/;?U'?(L?M
                          ??I;?;?;?;??D? Pr?`"?;?;?I? ;?;?;??:?(L?M?PE?($@
                          D?q0;?|? ?Dz?o~;??n]<dF??;? ?]9F???;??5?@fo?E????;?;?ug_Dz?߱T??@dY???2;?;????@f? E????P;?;?;?;??]<Mg??;?;??? ?L?M?;?;???
                          L?eq
                          ;?;?j?
                          ?<Q8P??
                          (L?M??;?;?;?;?;?;?;?V?(?L?e?#?w?@
                          ՙE? ??;?;??u?9F?`?Qy?7?;?;??S&yA%??!;???9F?s??mI;????D ?`??7I??y???D??W?$?8??0?y?$ DX??N]@dY?;?>? ?Dz??(;?;?w????S?-?DX??;? J]F???1;?;??????8DX*;?;?;?;?;?;?;?;?;?;?;?c%?<I&???? ????;?;?;?.X ?K??X???`??;??? ?E?N?!;?t!(?K?]?2*!?8?80<dF?A?P!(E?N?;?;??b"?<dF ?7`8 ?v;?8Y#(E?Nf?;?;?;?;?;?@?%(E?N???% ?.???
                          &?$??0 dF6l;?

                          any idea what i have done wrong?
                          please help!
                          Last edited by LOWL1; 2013-01-21, 22:48.

                          Comment


                          • #88
                            Originally posted by LOWL1 View Post
                            pi@raspberrypi /etc/fr24/remserial $ sudo ./remserial -r 192.168.0.170 -p 10001 -l /dev/remserial1 /dev/ptmx &
                            ..../....
                            Run SBS-1 data server on port 30003
                            Run HTTP server on port 8080

                            .../...
                            [b]connecting to localhost:30003
                            [b]connected
                            [b]working
                            [n]LOWL1@83.140.247.21:8099/UDP
                            .../..

                            telnet 192.168.0.170 10001 and strange data appeared:

                            ../...
                            any idea what i have done wrong?
                            please help!
                            Hello
                            perhaps an answer page 6 #53-55 p on this thread.


                            Problem about port? 10001 / base on 30003
                            Last edited by porto49; 2013-01-22, 18:28.

                            Comment


                            • #89
                              Originally posted by porto49 View Post
                              Hello
                              perhaps an answer page 6 #53-55 p on this thread.


                              Problem about port? 10001 / base on 30003
                              thank you for the quick answer, but i know that the data on sbs's port 10001 is cryptet.
                              if i connect the feeder software to my BS at port 30003 it works perfect, but i have to
                              run an windows pc with BS software. i want to do it without BS, only SBS-3 and my Pi.
                              the adsbox software should be able to decrypt the data from SBS-3, but it doesn't work.
                              maybe the virtual serial port is the problem. adsbox only likes serial ports no ip connections.

                              Comment


                              • #90
                                ok,

                                remserial isn't needed to connect adsbox to SBS-3
                                pi@raspberrypi /etc/fr24/adsbox $ sudo ./adsbox --avr_server 192.168.0.170 --avr_server_port 10001 -l 48.2300 -g 14.800
                                shows the same result:
                                adsbox ADS-B decoder version 20120728.
                                Your lat 48.23000 lon 14.18000
                                Init database.
                                Connecting to ascii data server 192.168.0.170:10001...
                                Connected.
                                Run SBS-1 data server on port 30003
                                Run HTTP server on port 8080

                                DF:10
                                DF:1
                                DF:10
                                DF:10
                                DF:10
                                DF:10
                                DF:10
                                DF:10
                                DF:10
                                DF:10
                                DF:10

                                the problem is the data from ip:10001 of sbs-3 isn't avr-hex format like *8D4000FB5875444148D9A70B023A;...
                                but basestation-software connetcs via usb or ip. do they use different datasource?

                                any help please

                                Comment

                                Working...
                                X