(24-11-2019, 05:13 PM)Kenny escribió: Gypsylyon.... driver instalado correctamente!
hoy he ido al barco a quitar algo de sal.... ajjajajjaa ayer navegando con rachas de 30 knts los rociones me dejaron todo el inox hecho una porqueria.... bueno al grano; que he mirado lo de los plugins pero no he sabido qué hacer.... ya me diras... cuando puedas. Thanks
desgraciadamente tengo malas noticias, no hay plugin para OpenCPN 5 para la raspi4, asi que nos vamos a tener que esforzar un poco mas.
Bien si con "rtl_test" te sale algo asi:
0: Realtek, RTL2838UHIDIR, SN: 00000001
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 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 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
Info: This tool will continuously read from the device, and report if
samples get lost. If you observe no further output, everything is fine.
Reading samples in async mode…[/size][/color]
Allocating 15 zero-copy buffers
La cosa va bien. Seguimos con los siguientes paso. Ojo que yo no lo he hecho en la Raspi4 asi que no te puedo garantizar si funciona. En cuanto pueda lo voy a probar
El siguiente paso seria calibrar el RDS
con
cd
te mueves al directorio raiz (home)
Tienes que compilar
sudo apt install build-essential libtool automake autoconf librtlsdr-dev libfftw3-dev
Clonamos software de github
git clone https://github.com/steve-m/kalibrate-rtl
Compilamos he instalamos
cd kalibrate-rtl/
./bootstrap && CXXFLAGS='-W -Wall -O3'
./configure
make
[i]sudo make install
Calculamos la desviacion PPM (de la frecuencia del oscilador)
rtl_test -p
Debera salir algo asi
[/i][color=rgba(51, 51, 51, 0.7)]
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001[/color]
[color=rgba(51, 51, 51, 0.7)]
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Supported gain values (29): 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 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
[R82XX] PLL not locked!
Sampling at 2048000 S/s.
Reporting PPM error measurement every 10 seconds…
Press ^C after a few minutes.
Reading samples in async mode…
lost at least 168 bytes
real sample rate: 2047684 current PPM: -154 cumulative PPM: -154
real sample rate: 2048101 current PPM: 50 cumulative PPM: -52
real sample rate: 2048077 current PPM: 38 cumulative PPM: -22
real sample rate: 2048198 current PPM: 97 cumulative PPM: 8
real sample rate: 2048066 current PPM: 33 cumulative PPM: 13
real sample rate: 2048093 current PPM: 46 cumulative PPM: 18
real sample rate: 2048072 current PPM: 36 cumulative PPM: 21
real sample rate: 2047986 current PPM: -6 cumulative PPM: 17
real sample rate: 2048079 current PPM: 39 cumulative PPM: 20
real sample rate: 2048108 current PPM: 53 cumulative PPM: 23
real sample rate: 2048037 current PPM: 18 cumulative PPM: 23
^CSignal caught, exiting![/color]
[color=rgba(51, 51, 51, 0.7)]User cancel, exiting…
Samples per million lost (minimum): 0[/color]
[color=rgba(51, 51, 51, 0.701960784313725)]Lo dejamos funcionar hasta que el valor de PPM acumulativo es constante y suspendemos la ejecucion pulsando control+C .[/color][color=rgba(51, 51, 51, 0.701960784313725)]En este caso tomamos el valor de PPM acumulativo final de 23[/color]
[color=rgba(51, 51, 51, 0.701960784313725)]Buscamos estaciones en la banda de 900 [/color][color=rgba(51, 51, 51, 0.701960784313725)]MHZ [/color]
kal -s 900 -g 49.6 -e 23
[color=rgba(51, 51, 51, 0.701960784313725)]fijate que el valor PPM lo hemos colocado al final de la orden. En tu caso tienes que poner el que te salga a ti (no tiene por que ser 23)[/color]
[color=rgba(51, 51, 51, 0.701960784313725)]Te saldra algo asi:[/color]
[color=rgba(51, 51, 51, 0.7)][color=rgba(51, 51, 51, 0.7)]
Found 1 device(s):
0: Generic RTL2832U OEM[/color][/color]
[color=rgba(51, 51, 51, 0.7)][color=rgba(51, 51, 51, 0.7)]
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Exact sample rate is: 270833.002142 Hz
[R82XX] PLL not locked!
Setting gain: 49.6 dB
kal: Scanning for GSM-900 base stations.
GSM-900:
chan: 2 (935.4MHz – 16.587kHz) power: 869529.54
chan: 4 (935.8MHz + 38.960kHz) power: 2190452.67
chan: 5 (936.0MHz – 16.799kHz) power: 4623109.31
chan: 15 (938.0MHz + 38.865kHz) power: 815597.24
chan: 16 (938.2MHz – 15.502kHz) power: 2225985.25
chan: 20 (939.0MHz + 38.956kHz) power: 1047025.60
chan: 78 (950.6MHz – 12.733kHz) power: 3137623.08
chan: 123 (959.6MHz – 12.483kHz) power: 1856407.90
[/color][/color][color=rgba(51, 51, 51, 0.701960784313725)]Tomamos el canal[/color][color=rgba(51, 51, 51, 0.701960784313725)] mas fuerte, en este caso el Canal 5 y lo introducimos en la orden[/color]
kal -c 5 -g 49.6 -e 23
Te saldra algo asi:
[color=rgba(51, 51, 51, 0.7)]Found 1 device(s):
0: Generic RTL2832U OEM
[color=rgba(51, 51, 51, 0.7)]Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Exact sample rate is: 270833.002142 Hz
[R82XX] PLL not locked!
Setting gain: 49.6 dB
kal: Calculating clock frequency offset.
Using GSM-900 channel 5 (936.0MHz)
average [min, max] (range, stddev)
– 11.901kHz [-11934, -11871] (63, 18.615683)
overruns: 0
not found: 0
average absolute error: 35.715 ppm
[/color][/color]
Es decir que el erro absoluto de PPM es 35.715 ( a ti te puede salir otro valor)
[color=rgba(51, 51, 51, 0.701960784313725)]Instalamos el Software de RTL-AIS[/color]
cd
[color=rgba(51, 51, 51, 0.701960784313725)]Para ir al directorio raiz[/color]
[color=rgba(51, 51, 51, 0.701960784313725)]Tecleamos[/color]
git clone https://github.com/dgiardini/rtl-[color=rgba(51, 51, 51, 0.7)]ais[/color]
Luego
cd rtl-ais
make
Y ya podemos arrancar el software con:
./rtl_ais -p 35 -n -h 192.168.1.15
En la que
p es el error absoluto de PPM obtenido
-n es para visualizar los mensajes de AIS en la consola que trabajas
-h 192.168.1.15 es la IP donde manda os datos para poderlos leer con OpenCPN
Te saldra algo asi:
[color=rgba(51, 51, 51, 0.7)]
Edge tuning disabled.
DC filter enabled.
RTL AGC disabled.
Internal AIS decoder enabled.
Buffer size: 163.84 mS
Downsample factor: 64
Low pass: 25000 Hz
Output: 48000 Hz
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: 00000001[/color]
[color=rgba(51, 51, 51, 0.7)]
Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Log NMEA sentences to console ON
AIS data will be sent to 192.168.1.15 port 10110
Tuner gain set to automatic.
Tuner error set to 35 ppm.
Tuned to 162000000 Hz.
Sampling at 1600000 S/s.
!AIVDM,1,1,,B,6>jCJckfJjOt>db70104@00,0*71
!AIVDM,1,1,,B,E>jCJcl32bh87ab@87a:1RP0000?rnLv=Q?ih50[/color]
!AIVDM,1,1,,B,6>jCJckfJjOt>db7@104@00,0*01
!AIVDM,1,1,,A,6>jCJckfJjOt>db70104@00,0*72
!AIVDM,1,1,,B,E>jCJcl32bh87ab@87a:1RP0000?rnLn=Q?j@50
[color=rgba(51, 51, 51, 0.7)]0,0*59[/color]
[color=rgba(51, 51, 51, 0.7)]
!AIVDM,1,1,,B,6>jCJckfJjOt>db70104@00,0*71
!AIVDM,1,1,,A,6>jCJckfJjOt>db5P104@00,0*10
!AIVDM,1,1,,B,E>jCJcl32bh87ab@87a:1RP0000?rnM4=Q?ih50[/color]
b>:0,0*29
!AIVDM,1,1,,B,E>jCJcl32bh87ab@87a:1RP0000?rnLv=Q?gh50
[color=rgba(51, 51, 51, 0.7)]b>:0,0*64[/color]
[color=rgba(51, 51, 51, 0.7)]
!AIVDM,1,1,,B,E>jCJcl32bh87ab@87a:1RP0000?rnLm=Q?k050[/color]
b>:0,0*2B
!AIVDM,1,1,,B,6>jCJckfJjOt>db70104@00,0*71
!AIVDM,1,1,,A,33IWVk0Ohvwma3BK1nlAIQ@L01vP,0*64
!AIVDM,1,1,,B,33IWVk0Ohrwma5vK1o2QRQFV00qh,0*27
!AIVDM,1,1,,A,13IWVk0Ohrwma74K1o;iS1Hd0L10,0*6E
!AIVDM,1,1,,B,33IWVk000bwmabjK1pdC8jBj01r0,0*33
!AIVDM,1,1,,B,E>jCJcl32bh87ab@87a:1RP0000?rnLk=Q?ih50
[color=rgba(51, 51, 51, 0.7)]b>:0,0*77[/color]
[color=rgba(51, 51, 51, 0.7)]
!AIVDM,1,1,,A,13IWVk000IwmbLnK1qS8;h6d08jCJckfJjOt>db6h104@00,0*28
!AIVDM,1,1,,B,33IWVk0Oh5wmbIJK1qALP@l:01o@,0*31
!AIVDM,1,1,,A,33IWVk0Oh7wmbI8K1qBdEPnB00pP,0*18
!AIVDM,1,1,,B,13IWVk0Oh6wmbHVK1qCdQhpJ087:,0*69
!AIVDM,1,1,,B,33IWVk0Oh7wmbHHK1qEdDPpT013@,0*36
!AIVDM,1,1,,A,13IWVk0Oh7wmbH0K1qFt00rd05C0,0*7E
!AIVDM,1,1,,A,33IWVk0Oh8wmbGJK1qHch0rr00ih,0*26
!AIVDM,1,1,,B,13IWVk1009wmbG:K1qJ;g0s005C0,0*11
!AIVDM,1,1,,A,13IWVk1008wmbFRK1qLKl@wB0<10,0*7A !AIVDM,1,1,,B,13IWVk1Oh6wmbDPK1qTu0QjCJckfJjOt>db5P104@00,0*10
!AIVDM,1,1,,B,13IWVk1Oh4wmbCnK1qadqQE000R@,0*3A
!AIVDM,1,1,,A,13IWVk1Oh3wmbCrK1qcM0iGB08Gw,0*2A
!AIVDM,1,1,,B,13IWVk1Oh3wmbD6K1qeP@1KV05C4,0*0B
!AIVDM,1,1,,A,13IWVk1003wmbChK1qh=jCJcl32bh87ab@87a:1RP0000?rnLq=Q?gh50[/color]
b>:0,0*63
!AIVDM,1,1,,A,33IWVk1003wmbCFK1qlej1Rd0AfJ,0*48
!AIVDM,1,1,,A,13IWVk1003wmbCFK1qp@:1WB0000,0*5D
!AIVDM,1,1,,A,13IWVk1Oh1wmbCJK1qru21f40000,0*0C
!AIVDM,1,1,,B,33IWVk1001wmbBLK1qsnP1v80Dhr,0*27
!AIVDM,1,1,,A,33IWVk1000wmbCDK1qeoHAp20EjCJcl32bh87ab@87a:1RP0000?rnLq=Q?j@50
[color=rgba(51, 51, 51, 0.7)]b>:0,0*46[/color]
[color=rgba(51, 51, 51, 0.7)]
!AIVDM,1,1,,B,6>jCJckfJjOt>db70104@00,0*71
!AIVDM,1,1,,A,E>jCJcl32bh87ab@87a:1RP0000?rnLi=Q?j@50[/color]
[color=rgba(51, 51, 51, 0.7)]b>:0,0*5D[/color]
[color=rgba(51, 51, 51, 0.7)]
!AIVDM,1,1,,A,6>jCJckfJjOt>db70104@00,0*72
!AIVDM,1,1,,B,6>jCJckfJjOt>db5h104@00,0*2B[/color]
En OpenCPN pones los datos en una UDP