Pagine: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1) ho provato il modello indicato e venduto da sailoog.com sul rasp 2 e funziona; sul rasp 3 che è in barca non l'ho provato 2) lo configuri nello stesso modo, cambia solo l'interfaccia. Sul 3 ho provato a configurare una wlan per l'accesso esterno ed una seconda wlan per il collegamento alla rete interna senza problemi. Puoi anche usare una lan ed una wlan sul 3 senza bisogno di altre pennette
1) che alimentatore stai usando? Se la inserisci a sistema avviato? Per smanettarci comunque ha bisogno di essere in riva al mare, perchè senza traffico AIS non puoi fare la calibrazione. Comunque intanto puoi vedere se la riconosce (deve comparire il segnale di spunta nella sezione SDR-AIS. 2) Vai sereno anche con quello interno. Ti compare una tendina dove ti vai a scegliere wlan0 e spunti in alto, ma prima metti un nome di rete ed una password. Scusate, appena avrò del tempo da perdere aggiornerò la guida. Vi segnalo che anche su raspberry è possibile aggiungere un RSS reader: tra i pacchetti cercando RSS saltano fuori tanti programmini da provare. Ecco un link ad una discussione che ho creato ad hoc
http://forum.amicidellavela.it/showthrea...tid=117136
Mi sa che aspetto l'aggiornamento guida di edolo, anche se la cosa mi sta veramente affascinando e l'attesa è dura. alimento con il normale caricabatterie cellulare Grazie ad entrambi per i vostri tempestivi interventi.
Probabilmente è proprio mancanza di "corrente". Prova con un carica batteria da 2 A, in genere sono quelli dei tablet. Io, che sto inserendo parecchia roba, ho avuto gli stessi problemi un giorno che non trovavo il carica batt da 2 A e ho adoperato quello da cell da 1 A. Per risolvere i prob di assorbimento dei giochini che ci si attacca ho preso un aggeggio con quattro prese USB però con alimentazione separata. Per esempio mi serve per collegare un HD esterno da 2.5". Mi resta il prob del collegamento della radio AIS SH2200E. Dovrebbe portare sia il segnale del GPS che l'AIS sul OpenCPN... ma non va! Qualcuno sa qualcosa? Speak easy please, sono un inetto!
i caricabatterie per cellulari possono erogare una considerevole corrente, ma non garantiscono la tensione costante di 5 V. Non è una regola, possono capitare dei caricabatterie (magari cinesate) che con il RPI funzionano benissimo, ed altri magari di marche famose che invece fanno piantare il RPI 2 volte ogni 3. Quindi, se il led power (rosso) del RPI alternativamente si accende e spegne, o ancora peggio rimane spento dopo il boot, significa che l'alimentatore sta erogando meno di 4,65V tensione minima di funzionamento del RPI.
sto cercando di configurare il RPI come access point e ho trovato il seguente articolo:
"Using your new Raspberry Pi 3 as a WiFi access point with hostapd
04 March 2016 on wifi, raspberrypi, hostapd, softap
There's a new Raspberry Pi. This is exciting. It also has on-board WiFi. This makes it doubly exciting! One of my first thoughts was, can I use it as a SoftAP for some ESP8266 sensor nodes? As it turns out, you can, and it's not that difficult, as the BCM43438 chip is supported by the open-source brcmfmac driver! Packages The first step is to install the required packages: sudo apt-get install dnsmasq hostapd
I'll go into a little detail about the two:
• hostapd - This is the package that allows you to use the built in WiFi as an access point
• dnsmasq - This is a combined DHCP and DNS server that's very easy to configure
If you want something a little more 'heavyweight', you can use the isc-dhcp-server and bind9 packages for DHCP and DNS respectively, but for our purposes, dnsmasq works just fine. Configure your interfaces
The first thing you'll need to do is to configure your wlan0 interface with a static IP.
If you're connected to the Pi via WiFi, connect via ethernet/serial/keyboard first.
In newer Raspian versions, interface configuration is handled by dhcpcd, so open up the dhcpcd configuration file with sudo nano /etc/dhcpcd.conf. We need to tell it that our wlan0 has a static IP address, so add the following lines to the bottom of the file:
interface wlan0 static ip_address=172.24.1.1/24 EDIT: We also need to prevent wpa_supplicant from running and interfering with setting up wlan0 in access point mode. To do this open up the interface configuration file with sudo nano /etc/network/interfaces and comment out the line containing wpa-conf in the wlan0 section, so that it looks like this: allow-hotplug wlan0 iface wlan0 inet manual # wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf Restart dhcpcd with sudo service dhcpcd restart and it should assign your wlan0 interface with a static IP.
Configure hostapd
Next, we need to configure hostapd. Create a new configuration file with sudo nano /etc/hostapd/hostapd.conf with the following contents:
# This is the name of the WiFi interface we configured above
interface=wlan0
# Use the nl80211 driver with the brcmfmac driver
driver=nl80211
# This is the name of the network
ssid=Pi3-AP
# Use the 2.4GHz band
hw_mode=g
# Use channel 6
channel=6
# Enable 802.11n
ieee80211n=1
# Enable WMM
wmm_enabled=1
# Enable 40MHz channels with 20ns guard interval
ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40]
# Accept all MAC addresses
macaddr_acl=0
# Use WPA authentication
auth_algs=1
# Require clients to know the network name
ignore_broadcast_ssid=0
# Use WPA2
wpa=2
# Use a pre-shared key
wpa_key_mgmt=WPA-PSK
# The network passphrase
wpa_passphrase=raspberry
# Use AES, instead of TKIP
rsn_pairwise=CCMP
We can check if it's working at this stage by running sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf. If it's all gone well thus far, you should be able to see to the network Pi3-AP! If you try connecting to it, you will see some output from the Pi, but you won't receive and IP address until we set up dnsmasq in the next step. Use Ctrl+C to stop it. We aren't quite done yet, because we also need to tell hostapd where to look for the config file when it starts up on boot. Open up the default configuration file with sudo nano /etc/default/hostapd and find the line #DAEMON_CONF="" and replace it with DAEMON_CONF="/etc/hostapd/hostapd.conf".
Configure dnsmasq
The shipped dnsmasq config file contains a wealth of information on how to use it, but the majority of it is largely redundant for our purposes. I'd advise moving it (rather than deleting it), and creating a new one with
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.orig
sudo nano /etc/dnsmasq.conf
Paste the following into the new file:
interface=wlan0 # Use interface wlan0
bind-interfaces # Bind to the interface to make sure we aren't sending things elsewhere
server=8.8.8.8 # Forward DNS requests to Google DNS
domain-needed # Don't forward short names
bogus-priv # Never forward addresses in the non-routed address spaces.
dhcp-range=172.24.1.50,172.24.1.150,12h # Assign IP addresses between 172.24.1.50 and 172.24.1.150 with a 12 hour lease time
Set up IPv4 forwarding One of the last things that we need to do before we send traffic anywhere is to enable packet forwarding. To do this, open up the sysctl.conf file with sudo nano /etc/sysctl.conf, and remove the # from the beginning of the line containing net.ipv4.ip_forward=1. This will enable it on the next reboot, but because we are impatient, activate it immediately with : sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward" We also need to share our Pi's internet connection to our devices connected over WiFi by the configuring a NAT between our wlan0 interface and our eth0 interface. We can do this using the following commands:
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT However, we need these rules to be applied every time we reboot the Pi, so run sudo sh -c "iptables-save > /etc/iptables.ipv4.nat" to save the rules to the file /etc/iptables.ipv4.nat. Now we need to get dhcpcd to run this, so create a new file with sudo nano /lib/dhcpcd/dhcpcd-hooks/70-ipv4-nat with the contents:
iptables-restore < /etc/iptables.ipv4.nat
We're almost there! Now we just need to start our services: sudo service hostapd start sudo service dnsmasq start And that's it! You should now be able to connect to the internet through your Pi, via the on-board WiFi! To double check we have got everything configured correctly, reboot with sudo reboot."
Può essere utile???
No perché su openplotter è già contemplata questa possibilità semplicemente spuntando l'opzione nella finestra wifi in fase di configurazione di OpenPlotter (il simbolo in alto con l'ancora). Ci sarà da settare il nome della rete, una password e selezionare quale apparecchio usare, solitamente wlan0. Con la RSP non c'è da aggiungere hardware, per le precedenti invece ci sarà da aggiungere un dongle wifi con determinate caratteristiche (il dettaglio nel primo messaggio) Appena aggiorno aggiungerò anche questo perché è un aspetto interessante che racchiude altre cosine simpatiche.
ok quindi mi fermo e non faccio casini stasera proverò di nuovo l'ais aumentando l'alimentazione come suggeritomi
Trovo molto interessante questa discussione e mi complimento con chi la porta avanti, piacerebbe anche a me cimentarmi ma sicuramente riuscirei a combinare poco sia per le scarse conoscenze che ho del raspberry e sia per il poco tempo. Per il chartplotter mi sto orientando su sistemi standard + un supporto con pc. Troverei comunque interesse se con un Raspberry si riuscirebbe a gestire monitoraggi aggiuntivi normalmente non integrabili facilmente con un chartplotter standard su una barca un po' datata, es. monitoraggi del motore, delle batterie, sorveglianza remota, ecc. Teoricamente sono tutte cose sicuramente gestibili ma su queste cose dalla teoria alla pratica il percorso non sempre è breve...
In realtà penso che per fare i monitoraggi da sensore che dici tu, imho oltre ai sensori/trasduttori dovrai inserire dell'ulteriore hardware di interfaccia (magari un arduino) per commutare i segnali analogici in digitali e magari codificarli contemporaneamente in stringhe fruibili a diverse utenze.
Si certo, e poi c'è anche la parte sw, ma magari qualcosa del genere qualcuno l'ha gia realizzata. OK, ho letto qualcosa in più e non ho resistito, ho seguito la guida e l'ho in installato su un PI 2 che avevo inutillizzato, tutto funziona. Nella prossima settimana mi procurerò il sintonizzatore per l'AIS e qualche sensore. Se funziona il tutto eliminerò lo shipmodul ethernet + interfaccia wifi sostituendoli con 1 raspberry 3. Ho letto che per la prossima release tra altre cose c'è in programma l'implementazione dei sensori analogici. Grazie Edolo per l'ottimo lavoro che rendi a disposizione. Cercando il dongle per l'AIS mi sono accorto che il chip segnalato come alternativo più nuovo è invece il secondo chip (il sintonizzatore) dell stesso dongle, cioè il dongle deve avere entrambe i chip citati: RTL2832U + R820T2.
Si, nella traslazione si è persa una parte della frase originaria scritta dei manteiner dell'applicazione RTL-SDR. "Il più recente R820T2" è da riferirsi al precedente R820T.
Riporto la mia esperienza per la ricerca del sintonizzatore AIS che credo sia una delle caratteristiche più interessanti in questo progetto. Non trovandolo disponibile sul sito degli sviluppatori di openplotter l'ho trovato su Ebay con gli stessi chip ma non trovando gli stessi si possono cercare questi alternativi: il demodulatore RTL2832U + uno di questi chip sintonizzatori: R820T2, E4000, R828D, FC0012, FC0013, FC2580. Per i curiosi di questa tecnologia è interessante questa pagina che spiega la storia ed il funzionamento del RTL-SDR:
Questo contenuto non e' visualizzabile da te Ospite. Se vuoi vederlo, REGISTRATI QUI . E' indicato anche il software per windows utile per testare la ricezione.
Interessante! Io ero rimasto al classico
Questo contenuto non e' visualizzabile da te Ospite. Se vuoi vederlo, REGISTRATI QUI .
io mi sto perdendo ho una vecchia msi digi vox ii ho cercato qualcosa su internet e mi dice "The Digivox II V3.0 is a low cost DVB-T Stick with HD TV support. You can get it for 6-8€. Lock here Actually out of Stock (maybe discontinued?) Support OpenELEC Compatibility: Working Fixes Required: None Configuration: TvHeadend shows 2 Adapter (Realtek DVB-T RTL2832), afaik it is not a dualtuner. You have to configure only the first (dev/dvb/adapter0) one. Make sure to disable "Monitor signal quality".
Adittional Informations: There are 3 Versions of the Stick with 3 different Chipsets inside, but there is no possibillity to see which one you will get until you have it. I was not lucky and got the version with the RTL Chipset. Normally it is not well supported with Linux. The other 2 versions are well supported by the Kernel. I don't know why but Openelec supports my Version too. So i think all Versions of this stick should bee supported by OpenELEC. LinuxTV Wiki"
può andar bene???
Da quello che ho trovato la risposta sembra possa essere ni. Dexatek 1D19:1102 RTL2832U/FC0013 [Also branded as the MSI DigiVox mini II V3.0 (but not all use Realtek’s chipset)] Quindi vale l'approccio provuma e veduma (eventualmente cambiuma), se te la riconosce sei a posto sennò su amazon per qualche euro. Se hai voglia di controllare cosa c'e' realmente dentro, da linea di comando digiti: lsusb Dovrebbe risultare la lista di dispositivi USB collegati e riconosciuti...
sto provando facendo lsusb da ubuntu legge la penna poi ho guardato il sito indicato e sto istallano il software indicato speriamo niente, troppo difficile per me aspetto le guide for dummies di edolo nel frattempo vorrei acquistare una nuova pennetta che faccia sia da gps che lettore ais, quale?
Ho aggiornato all 0.8.0 seguendo la guida qui:
Questo contenuto non e' visualizzabile da te Ospite. Se vuoi vederlo, REGISTRATI QUI . sembra tutto ok. Ci mette un po' di tempo perché sembra aggiornare principalmente il sistema operativo Raspbian. Ripristina l'icona del bluetooth. Attualmente il mio sistema è composto da: - Raspberry pi3 - Software V. 0.8.0 - Dongle RTL-SDR preso qui:
Questo contenuto non e' visualizzabile da te Ospite. Se vuoi vederlo, REGISTRATI QUI . Ho in ordine gli altri sensori e l'interfaccia nmea. Il dongle l'ho testato per ora su windows con il software SDRSHARP, con la sua antenna riceve solo qualche stazione FM, ho provato a collegarci una antenna di TV portatile amplificata ed i segnali migliorano abbastanza (la frequenza VHF AIS è più o meno la stessa del canale 1 TV).
Ho esattamente lo stesso decoder, il ricevitore è un pò sordo, ma le cose cambiano sensibilmente con un'antenna accordata sulle frequenze VHF intorno ai 160 MHz.
Si infatti, se troverò un po' di tempo proverò con l'autocostruzione di una antenna semplice, il problema per fare le prove da casa è anche posizionarla dove vede il mare senza ostacoli. Ho visto poi che nella scheda AIS di openplotter c'è un menu per la trasmissione AIS (non so se è una novità della 8) questo significa che ci sono trasmettitori che si possono interfacciare.
Pagine: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16