How do I start sharing and what are the choices of who to share to

Discussion in 'Tutorials' started by pooky248, Oct 8, 2019.

  1. wiedehopf

    wiedehopf Administrator Staff Member

    So this usually happens when the voltage to the dongle is low.

    Are you by chance using an USB extension for the dongle?
    Try without if you are.
    If not, try one of the other USB ports on the RPi.

    To restart, you may need to forcibly end dump1090-fa:
    sudo pkill -9 dump1090-fa
    sudo systemctl restart dump1090-fa

    Or you may even need to reboot.
     
  2. pooky248

    pooky248 Member

    Yes, I am using a USB extension., it's a 10m one. I will have to move things about to be able to try without a USB extension, I will try with a shorter USB extension first. I won't have this probles later as I will be giving my Pi box a permanent home in our bedroom, which won't need an extension for it to be connected.

    I tried the commands you mention above and it reset OK. I will wait and see how long it lasts this time and then try with a shorter USB and then look at moving the Pi box closer to the end of the cable to the aerial as I've got the cable coming in through the kitchen into the front room where my main PC is with the Pi box next to it. Theres a socket nearer the kitchen (we live in a bungalow), so I will try putting it there later. But I will have to connect the HDMI cable to the TV as it wont reach the PC when moved.
     
  3. wiedehopf

    wiedehopf Administrator Staff Member

    I suppose you can try boosting the voltage, as in a better power supply for the Raspberry Pi. (Official one)
    Or you can use a powered USB hub at the end of the USB extension, would that work for you?

    You shouldn't need to connect the Raspberry Pi to the TV unless you want to watch videos on it?
    For configuration and viewing the planes, using your main PC is a better option.

    This is a good explanation on how to use Putty:
    https://discussions.flightaware.com/t/for-beginners-how-to-ssh-to-rpi-setup-putty-in-windows/44432
     
  4. pooky248

    pooky248 Member

    I have an official Pi power supply, which came with the Pi box.

    I'll have a look at Putty as it will help me save time swappig USB recievers all the time (kbd/mouse)

    It happened again, quite shortly after, so I did this... (hope it's of use)

    [email protected]:~ $ sudo systemctl status adsbexchange-feed
    ● adsbexchange-feed.service - adsbexchange-feed
    Loaded: loaded (/lib/systemd/system/adsbexchange-feed.service; enabled; vendor preset: enabled)
    Active: active (running) since Thu 2019-10-10 12:26:39 BST; 11h ago
    Main PID: 24995 (adsbexchange-fe)
    Tasks: 2 (limit: 4915)
    Memory: 1.3M
    CGroup: /system.slice/adsbexchange-feed.service
    ├─24995 /bin/sh /usr/local/bin/adsbexchange-feed.sh
    └─26598 /usr/bin/socat -u TCP:127.0.0.1:30005 TCP:feed.adsbexchange.com:30005

    Oct 10 19:44:01 raspberrypi adsbexchange-feed[24995]: Connected to feed.adsbexchange.com:30005
    Oct 10 19:47:30 raspberrypi adsbexchange-feed[24995]: 2019/10/10 19:47:30 socat[22442] E write(6, 0x1ee0248, 11): Broken pipe
    Oct 10 19:47:30 raspberrypi adsbexchange-feed[24995]: Disconnected
    Oct 10 19:48:02 raspberrypi adsbexchange-feed[24995]: Connected to feed.adsbexchange.com:30005
    Oct 10 19:53:02 raspberrypi adsbexchange-feed[24995]: 2019/10/10 19:53:02 socat[23634] E write(6, 0x2e2248, 11): Broken pipe
    Oct 10 19:53:02 raspberrypi adsbexchange-feed[24995]: Disconnected
    Oct 10 19:53:33 raspberrypi adsbexchange-feed[24995]: Connected to feed.adsbexchange.com:30005
    Oct 10 19:57:33 raspberrypi adsbexchange-feed[24995]: 2019/10/10 19:57:33 socat[25168] E write(6, 0xc5b248, 11): Broken pipe
    Oct 10 19:57:33 raspberrypi adsbexchange-feed[24995]: Disconnected
    Oct 10 19:58:05 raspberrypi adsbexchange-feed[24995]: Connected to feed.adsbexchange.com:30005

    [email protected]:~ $ sudo systemctl status adsbexchange-mlat
    ● adsbexchange-mlat.service - adsbexchange-mlat
    Loaded: loaded (/lib/systemd/system/adsbexchange-mlat.service; enabled; vendor preset: enabled)
    Active: active (running) since Thu 2019-10-10 12:26:39 BST; 11h ago
    Main PID: 24983 (mlat-client)
    Tasks: 1 (limit: 4915)
    Memory: 4.6M
    CGroup: /system.slice/adsbexchange-mlat.service
    └─24983 /usr/bin/python3.7 /usr/bin/mlat-client --input-type dump1090 --no-udp --input-connect 127.0.0.1:30005 --server feed.adsbexchange.com:31090 --user pky2483

    Oct 10 23:26:50 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:26:50 2019 Receiver status: connected
    Oct 10 23:26:50 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:26:50 2019 Server status: ready
    Oct 10 23:26:50 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:26:50 2019 Receiver: 0.0 msg/s received 0.0 msg/s processed (0%)
    Oct 10 23:26:50 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:26:50 2019 Server: 0.0 kB/s from server 0.0kB/s TCP to server 0.0kB/s UDP to server
    Oct 10 23:26:50 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:26:50 2019 Aircraft: 0 of 0 Mode S, 0 of 0 ADS-B used
    Oct 10 23:41:51 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:41:51 2019 Receiver status: connected
    Oct 10 23:41:51 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:41:51 2019 Server status: ready
    Oct 10 23:41:51 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:41:51 2019 Receiver: 0.0 msg/s received 0.0 msg/s processed (0%)
    Oct 10 23:41:51 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:41:51 2019 Server: 0.0 kB/s from server 0.0kB/s TCP to server 0.0kB/s UDP to server
    Oct 10 23:41:51 raspberrypi adsbexchange-mlat[24983]: Thu Oct 10 23:41:51 2019 Aircraft: 0 of 0 Mode S, 0 of 0 ADS-B used
     
  5. wiedehopf

    wiedehopf Administrator Staff Member

    It's quite clear it's the insufficient voltage, don't need any more logs.
    The above log doesn't say anything ;)

    The extension just drops too much voltage.
    As i said use a powered hub after the extension and it might work fine.

    Generally once you have figured out putty you can just put the RPi where the dongle is now.
     
  6. pooky248

    pooky248 Member

    Managed to install putty and login OK
     
    Last edited: Oct 11, 2019
  7. pooky248

    pooky248 Member

    I've noticed something wrong with viewing the tracking on the web.
    When I enter http://192.168.XXX.XXX/tar1090/ , at the bottom, a colour altitude graph shows and then disapears.
    While doing the same, using http://192.168.XXX.XXX:8080/ , the colour altitude graph shows and does not disapear.
     
  8. wiedehopf

    wiedehopf Administrator Staff Member

    That's not something wrong with it, that's just how it is.
    The colors are customized, so the bar isn't displayed.
     
  9. pooky248

    pooky248 Member

  10. wiedehopf

    wiedehopf Administrator Staff Member

    That level of precision is very much irrelevant ;)

    MLAT isn't that precise anyway.
     
  11. pooky248

    pooky248 Member

    Just a thought, could you make the location that the graph data is saved, changeable - Save to USB stick instead if nicro USB where the OS is, so as to save on space. Also, with the change, you could increase the amount of data saved from 3 years to much more, say 10 years or more, depending on the size of USB stick.
     
  12. wiedehopf

    wiedehopf Administrator Staff Member

    Sorry, no.

    Most microSD cards nowadays are 16 GB and larger.
    The data occupies around 20 MB.
    If you want to reduce the amount of data written, there is instruction on the graphs1090 github page for that.

    If your image doesn't have the filesystem using the whole card yet:
    sudo raspi-config
    And select that the filesystem is expanded.
     
  13. pooky248

    pooky248 Member

    I'm on about increasing the amount of storage so the length of time can be extended from 3 years to however many is wanted by the use of a USB stick.
     
  14. wiedehopf

    wiedehopf Administrator Staff Member

    You'll get longer storage at coarser data.
    Introducing an extra table for 10 year graphs is only a couple of Megabytes extra.
    Anyway, you'll have to figure that out yourself.
     
  15. pooky248

    pooky248 Member

  16. wiedehopf

    wiedehopf Administrator Staff Member

    That cable is probably not low loss at 1090 MHz.
    Even if they published attenuation numbers, i wouldn't trust them.

    Before you actually put it up there, test with and without the cable to get an idea of how much signal it blocks. (cable just rolled up)
     
  17. MDA

    MDA Administrator Staff Member

    RG58 is absolutely no go for 1090MHz. Find LMR240 or any equivalent (N240, TriLan240 etc.) or even better LMR400 for this length (15m).
     
    pooky248 and Jhonny Monclair like this.
  18. pooky248

    pooky248 Member

    I'm already testing it, it looks like a 50% loss I put it in just after 3pm. Cable's still rolled up so no problems sending it back.
    [​IMG]
    [​IMG]
     
  19. pooky248

    pooky248 Member

    I can find 174 if thats any good, struggling to find 240 or 400
    https://amzn.to/2qg8ry7
    https://amzn.to/35Jj3G2
    https://amzn.to/2MFvN7V
    https://amzn.to/33qsTui

    I've had a good look on the web and the results I got were rubbish, the only place I could find any was on Amazon...
    https://amzn.to/2VIqNTX - LMR240
    https://amzn.to/33B6xGr - LMR400
    The price difference is shocking, going from slightly under £10 for LMR175 to under £50 for LMR240 and almost £100 for LMR400 - But then again, you're paying for quality...

    This is the range loss using RG58 cable
    [​IMG]
     
    Last edited: Oct 15, 2019
  20. MDA

    MDA Administrator Staff Member