Radarspotting

Other Software => AcarsDeco2 => Topic started by: hm_krause on May 28, 2019, 03:07:05 PM

Title: Acarsdeco2 rpi3 and virtualradar connection error
Post by: hm_krause on May 28, 2019, 03:07:05 PM
Hello
sorry for my bad english
I have a problem with virtualradar and acarsdeco2 on a raspberry pi3 with stretch.
I always get the message:
receiver exception "Exeption caught by connector: connection refused.
I have set the configuration like this:
virtual radar receiver:
AVR or Beast Raw Feed
network
Address 127.0.0.1
port 30005
Here I tried 30001, 30002, 30003, 31001

acarsdeco2:
./acarsdeco2 --gain 48.0 --freq 13150000 --http-port 8686 --vrs-url http://127.0.0.1:8080

acarsdeco2 receives data!
the problem is that the vrs server does not connect!
I hope someone can help me

Title: Re: Acarsdeco2 rpi3 and virtualradar connection error
Post by: glenn68 on June 21, 2019, 06:30:57 PM
I just tried and check all formats and no connections cannot be made.
Title: Re: Acarsdeco2 rpi3 and virtualradar connection error
Post by: abcd567 on September 11, 2019, 10:05:51 PM
In VRS settings, 127.0.0.1 is correct if both the VRS and AcarSDeco2 are running on same computer.

If the VRS and AcarSDeco2 are on different machines, then instead of 127.0.0.1, use local IP of that computer which is running AcarSDeco2.
Title: Re: Acarsdeco2 rpi3 and virtualradar connection error
Post by: abcd567 on September 11, 2019, 10:36:33 PM
(1) Add this to AcarSDeco2 parameters:

--outServer ad2:30008
Sets TCP server for output data on port 30008

(2) In VRS set
port 30008

Title: Re: Acarsdeco2 rpi3 and virtualradar connection error
Post by: abcd567 on September 12, 2019, 08:05:06 PM

sudo nano /usr/share/ad2/ad2.conf



--freq 131550000
--freq 131725000
--http-port 8686
--device-serial 00000102
--outServer ad2:30008
--vrs-url http://192.168.0.10




pi@orangepipc:~$ sudo systemctl status ad2
* ad2.service - AcarSDeco2
   Loaded: loaded (/lib/systemd/system/ad2.service; enabled; vendor preset: enabled)
   Active: active (running) since Thu 2019-09-12 17:55:02 UTC; 16s ago
Main PID: 1359 (bash)
    Tasks: 9 (limit: 2072)
   Memory: 3.9M
   CGroup: /system.slice/ad2.service
           |-1359 /bin/bash /usr/share/ad2/ad2-start.sh
           `-1360 /usr/share/ad2/acarsdeco2 --freq 131550000 --freq 131725000 --http-port 8686 --device-serial 00000102 --outServer ad2:30008 

Sep 12 17:55:02 orangepipc acarsdeco2[1359]: AcarSDeco2 v.20181201
Sep 12 17:55:02 orangepipc acarsdeco2[1359]: Using device:  0 mnf: Realtek prod: RTL2838UHIDIR serial: 00000102
Sep 12 17:55:02 orangepipc acarsdeco2[1359]: 2019-09-12 17:55:02.566  INFO     outServer(AD2:30008) started
Sep 12 17:55:03 orangepipc acarsdeco2[1359]: Sampling rate: 1400000.018544 sps
Sep 12 17:55:03 orangepipc acarsdeco2[1359]: Supported Gains (dB):  0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0
Sep 12 17:55:03 orangepipc acarsdeco2[1359]: Freq: 131.637 MHz
Sep 12 17:55:03 orangepipc acarsdeco2[1359]: Freq Correction: 0 ppm
Sep 12 17:55:03 orangepipc acarsdeco2[1359]: Gain: Auto
Sep 12 17:55:03 orangepipc acarsdeco2[1359]: Uses 16 zero-copy buffers
Sep 12 17:55:03 orangepipc acarsdeco2[1359]: Uses user-space buffers
Sep 12 17:55:07 orangepipc acarsdeco2[1359]: 2019-09-12 17:55:07.160  INFO     outServer(AD2:30008) 192.168.0.10:49758 connected
Sep 12 17:55:07 orangepipc acarsdeco2[1359]: 2019-09-12 17:55:07.160  INFO     outServer(AD2:30008) 192.168.0.10:49758 accepted



NOTE:
(1) In these settings I have used Local IP as follows. You have to use IP pertaining to your setup.

IP of Windows desktop running VRS = 192.168.0.10

IP of Pi running ModeSDeco2 = 192.168.0.22


(2) Please see below the attached screenshot for VRS settings.

(3) AcarSDeco2 installed by automated installation script. Please see this post for details:

Automated Installation of AcarSDeco2 on RPi (https://radarspotting.com/forum/index.php/topic,10333.0.html)

.


[attachment deleted reduce file load]