Page 1 of 1

360Radar Member needs help with VRS on Rpi2 please

Posted: Sun Jul 31, 2016 1:04 pm
by fotoefex
Hi all,

ok so i have a spare Rpi2 with only a fresh install of Rasperian and mono on a 32gb card so far.

I'm stuck understanding how i get the decompressed VRS from folder on win10 pc to the Rpi2 or should i have somehow downloaded it direct to the RPi2?

Just not getting the install instructions and fairly new to RPi installing so be gentle lol

I should explain all i want this install for is to somehow if possible grab the info from my other Rpi2 running dump1090 so i can have 24/7 running all altitudes splat as we call it and not have to leave my power hungry desktop pc on 24/7 to allow constant building of the said splat

If someone could explain how to get this running in plain english i would be very grateful ;)

Thanks Rob

Re: 360Radar Member needs help with VRS on Rpi2 please

Posted: Sun Jul 31, 2016 2:10 pm
by agw
As it happens I've just configured up a RPi2 myself. I used ArchLinuxARM instead of Raspbian but it'll be the same general process.

I wouldn't bother trying to copy the files from Windows, just download them straight from the Pi. First of all you want to make sure that you have wget installed (I seem to recall Raspbian uses apt-get?)

Code: Select all

sudo apt-get install wget
Then create a folder somewhere for VRS and use wget to download the server, the web admin plugin and the Mono 4 configuration file (I'm assuming that you'll need it, you probably will). The address here is for the release version of the web admin plugin and the Mono 4 config file, but at the time of writing I haven't actually released either of them :) They'll be going up later today, all being well:

Code: Select all

wget http://www.virtualradarserver.co.uk/Files/VirtualRadar.tar.gz
wget http://www.virtualradarserver.co.uk/Files/VirtualRadar.exe.config.tar.gz
wget http://www.virtualradarserver.co.uk/Files/VirtualRadar.WebAdminPlugin.tar.gz
This will create a bin folder within the current folder and then decompress everything into it. Make sure that you don't already have a bin folder that you care about in the current folder before running this (or don't use the rm and mkdir lines):

Code: Select all

rm -rf bin
mkdir -p bin

tar xvf VirtualRadar.tar.gz -C bin
tar xvf VirtualRadar.exe.config.tar.gz -C bin
tar xvf VirtualRadar.WebAdminPlugin.tar.gz -C bin
On the first run you will need to create an admin user and password so that you can get into web admin:

Code: Select all

mono bin/VirtualRadar.exe -nogui -createadmin:admin -password:<your password here>
Then go to http://127.0.0.1:8080/VirtualRadar/WebAdmin/Index.html, user admin, password is whatever you entered above, and configure away.

For second and subsequent runs do:

Code: Select all

mono bin/VirtualRadar.exe -nogui
The important thing is not to run the GUI because the build of Mono for the Pi crashes when it tries to draw text boxes.

Regarding dump1090 - I'm afraid I don't use that so I can't help you much there. From what I can gather dump1090 exposes a Beast / AVR feed on port 30002, so on your new RPI2 you should set the receiver up to point to the address of the other Pi, port 30002, feed format Beast / AVR. I think in principle that should work.

Re: 360Radar Member needs help with VRS on Rpi2 please

Posted: Sun Jul 31, 2016 5:33 pm
by fotoefex
thanks for that appreciated

so just putty into the rpi2 from my pc as normal?

made a spare folder in the rasp file manager area so just putty into that folder then run the above into that folder is that correct?

Re: 360Radar Member needs help with VRS on Rpi2 please

Posted: Sun Jul 31, 2016 6:22 pm
by fotoefex
ok made a folder vrs-rob on new rpi in file manager

added the first vrs file from your link but 2 and 3 are still dead links

in the same folder vrs-rob i have done this next stage so far :
rm -rf bin
mkdir -p bin

tar xvf VirtualRadar.tar.gz -C bin

but i'm stuck until the other two are working

thanks rob

Re: 360Radar Member needs help with VRS on Rpi2 please

Posted: Sun Jul 31, 2016 6:24 pm
by fotoefex
file 2
pi@raspberrypi:~/vrs-rob $ wget http://www.virtualradarserver.co.uk/Fil ... fig.tar.gz
--2016-07-31 17:23:19-- http://www.virtualradarserver.co.uk/Fil ... fig.tar.gz
Resolving http://www.virtualradarserver.co.uk (http://www.virtualradarserver.co.uk)... 5.39.89.202
Connecting to http://www.virtualradarserver.co.uk (http://www.virtualradarserver.co.uk)|5.39.89.202|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-07-31 17:23:19 ERROR 404: Not Found.

file 3
pi@raspberrypi:~/vrs-rob $ wget http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz
--2016-07-31 17:24:33-- http://www.virtualradarserver.co.uk/Fil ... gin.tar.gz
Resolving www.virtualradarserver.co.uk (www.virtualradarserver.co.uk)... 5.39.89.202
Connecting to www.virtualradarserver.co.uk (www.virtualradarserver.co.uk)|5.39.89.202|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2016-07-31 17:24:33 ERROR 404: Not Found.

Re: 360Radar Member needs help with VRS on Rpi2 please

Posted: Sun Jul 31, 2016 6:27 pm
by fotoefex
just realised who you are too lol Andrew hi ya i was copied into an email the other week with jon fear regarding login screen on vrs for 360radar not showing unless you press back button on android then it brings the login screen to the front, not sure if you remember the email from jon?

thanks Rob Lloyd

Re: 360Radar Member needs help with VRS on Rpi2 please

Posted: Sun Jul 31, 2016 9:13 pm
by fotoefex
hi Andrew,
followed all instructions but stuck at the first run username and password

Parsing command-line parameters
Initialising the log
Initialising user manager
Loading the configuration
Starting picture folder cache
Opening the BaseStation database
Loading standing data
Missing method .ctor in assembly /usr/lib/mono/gac/Mono.Data.Sqlite/4.0.0.0__0738eb9f132ed756/Mono.Data.Sqlite.dll, type System.Security.SecurityRulesAttribute
Can't find custom attr constructor image: /usr/lib/mono/gac/Mono.Data.Sqlite/4.0.0.0__0738eb9f132ed756/Mono.Data.Sqlite.dll mtoken: 0x0a000222
* Assertion at class.c:5597, condition `!mono_loader_get_last_error ()' not met

Stacktrace:

at <unknown> <0xffffffff>
at VirtualRadar.Database.StandingData.StandingDataManager.CreateOpenConnection () <0x00047>
at VirtualRadar.Database.StandingData.StandingDataManager.GetDatabaseVersionNumber () <0x00037>
at VirtualRadar.Database.StandingData.StandingDataManager.Load () <0x00037>
at VirtualRadar.Library.Presenter.SplashPresenter.LoadStandingData () <0x00093>
at VirtualRadar.Library.Presenter.SplashPresenter.StartApplication () <0x000f3>
at VirtualRadar.Headless.View.SplashView.ShowView () <0x000b3>
at VirtualRadar.Program.StartApplication (string[]) <0x0012f>
at VirtualRadar.Program.Main (string[]) <0x0048f>
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:


Debug info from gdb:

[New LWP 1204]
[New LWP 1203]
[New LWP 1202]
[New LWP 1201]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
0x76e92ee8 in __libc_waitpid (Cannot access memory at address 0x7e
pid=1205, stat_loc=0x7ee41648, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
40 ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
Id Target Id Frame
5 Thread 0x75b7b430 (LWP 1201) "mono" 0x76e90a40 in do_futex_wait (isem=isem@entry=0x3181a4) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
4 Thread 0x74c0c430 (LWP 1202) "mono" 0x76e8eb30 in __pthread_cond_timedwait (Cannot access memory at address 0x1
cond=0x2060918, mutex=0x20608fc, abstime=0x74c0b700) at pthread_cond_timedwait.c:199
3 Thread 0x74c46430 (LWP 1203) "mono" 0x76e92730 in nanosleep () at ../sysdeps/unix/syscall-template.S:81
2 Thread 0x749ff430 (LWP 1204) "mono" 0x76e90c50 in do_futex_timed_wait (isem=isem@entry=0x317edc, rt=rt@entry=0x749fecd8) at ../nptl/sysdeps/unix/sysv/linux/sem_timedwait.c:41
* 1 Thread 0x76fa2000 (LWP 1200) "mono" 0x76e92ee8 in __libc_waitpid (Cannot access memory at address 0x7e
pid=1205, stat_loc=0x7ee41648, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40

Thread 5 (Thread 0x75b7b430 (LWP 1201)):
#0 0x76e90a40 in do_futex_wait (isem=isem@entry=0x3181a4) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
#1 0x76e90af4 in __new_sem_wait (sem=0x3181a4) at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:69
#2 0x00219f98 in mono_sem_wait ()
#3 0x0019091c in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 4 (Thread 0x74c0c430 (LWP 1202)):
Cannot access memory at address 0x1
#0 0x76e8eb30 in __pthread_cond_timedwait (cond=0x2060918, mutex=0x20608fc, abstime=0x74c0b700) at pthread_cond_timedwait.c:199
#1 0x001f68d8 in ?? ()
Cannot access memory at address 0x1
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 3 (Thread 0x74c46430 (LWP 1203)):
#0 0x76e92730 in nanosleep () at ../sysdeps/unix/syscall-template.S:81
#1 0x0020e8b0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 2 (Thread 0x749ff430 (LWP 1204)):
#0 0x76e90c50 in do_futex_timed_wait (isem=isem@entry=0x317edc, rt=rt@entry=0x749fecd8) at ../nptl/sysdeps/unix/sysv/linux/sem_timedwait.c:41
#1 0x76e90d7c in sem_timedwait (sem=0x317edc, abstime=0x749fed1c) at ../nptl/sysdeps/unix/sysv/linux/sem_timedwait.c:96
#2 0x0021a08c in mono_sem_timedwait ()
#3 0x001790f0 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 1 (Thread 0x76fa2000 (LWP 1200)):
Cannot access memory at address 0x7e
#0 0x76e92ee8 in __libc_waitpid (pid=1205, stat_loc=0x7ee41648, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:40
#1 0x000c0ba4 in ?? ()
Cannot access memory at address 0x7e
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted


just not getting it now so if you can comment please thank you