× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file Nuovo driver USB RTL-SDR per SWPI

More
8 years 1 day ago - 8 years 1 day ago #6678 by seven
Nell'immagine che utilizzo (che tra non molto ti metterò ben volentieri a disposizione) non ho mai provato a disabilitare il sync automatico del clock con DCF77, non vorrei aver trascurato qualcosa, adesso provo un po'.
Quella che sto usando è proprio una chiavetta USB DVB-T che consente la ricezione della TV sul pc, naturalmente con il chipset RTL2832U. Non è questa che stai usando anche tu?

(EDIT: comunque mi pare che ormai ci siamo molto vicini, i segnali di tempo non vengono più interpretati come dati meteo, come hai notato anche tu nel 'buco' presente nel tuo log tra le 19:59 e le 20:08. L'unica cosa che avevo trascurato è il comportamento del sistema quando in quei 10 minuti non riceve dati meteo validi ed il clock sync è disattivato: il watchdog riavvia (giustamente) SWPI. :)
Ora ho introdotto una modifica, la provo e poi vediamo.)
Last edit: 8 years 1 day ago by seven.

Please Log in to join the conversation.

More
8 years 1 day ago #6679 by Roberto Vaccaro
Ok attendo, questo fine settimana dovrebbe piovere così vedo cosa succede con la pioggia.
Per quanto riguarda la chiavetta, ne uso una un po' più sofisticata.
Sul mio sito trovi la mia e-mail, mandami un msg con quella che usi tu e ti rispondo specificandoti la mia.

Please Log in to join the conversation.

More
8 years 1 day ago - 8 years 1 day ago #6682 by Roberto Vaccaro
Come ti havevo detto la mia posizione non è il massimo per ricevere il DCF.
Questa sera alle 18 e alle 20 il segnale è stato ricevuto ti allego il log
ven 22 apr 2016, 20.01.28, CEST


[22/04/2016-20:03:56] *** WH1080_RTL-SDR: Datetime data received ***
ven 22 apr 2016, 20.03.53, CEST
[22/04/2016-20:03:53] System time adjusted from WH1080_RTL-SDR.
[22/04/2016-20:03:53] Datetime data received from WH1080_RTL-SDR. Sleeping while waiting for weather data...
[22/04/2016-20:05:01] Last main Thread delay ratio: 0.4
[22/04/2016-20:05:25] New data received from WH1080_RTL-SDR station Time. Processing...


[22/04/2016-20:05:25] *** WH1080_RTL-SDR: Datetime data received ***
ven 22 apr 2016, 20.05.29, CEST
[22/04/2016-20:05:29] System time adjusted from WH1080_RTL-SDR.
[22/04/2016-20:05:29] Datetime data received from WH1080_RTL-SDR. Sleeping while waiting for weather data...
[22/04/2016-20:06:58] New data received from WH1080_RTL-SDR station Time. Processing...
[22/04/2016-20:06:58] BMP085 - Temperature: 17.7 C Pressure:    961.8 
[22/04/2016-20:06:58] Calculating Meteo data and statistics
[22/04/2016-20:06:58] Logging data to Database
[22/04/2016-20:06:58] Dir: SE - Spd: 2.45 - Gst: 3.67 - Tout: 12.2 - Tin: 17.7 - Hout: 86.0 - P: 1012 - Rtot: 540.0 - RDay: 0.3 - R1h: 0.0 - R24h: 0.3 - CB: 707 - Trend: 1.02
Se riesci ad ovviare al problema del riavvio di swpi siamo a cavallo.
Non ho trovato la possibilità di disabilitare il watchdog da configurazione.
Bisognerebbe disattivarlo con l'SDR in fondo con questo rx i buchi sono veramente pochi
Per quanto riguarda la pioggia ha funzionato, vediamo cosa dice domani.
Last edit: 8 years 1 day ago by Roberto Vaccaro.

Please Log in to join the conversation.

More
8 years 1 day ago #6684 by seven
Ottima notizia Roberto, ne sono felice!
Confido anche di aver risolto il problema watchdog, lo saprò alla prossima ora pari, cioè mezzanotte :lol:
Se funziona faccio l'ultima (spero) richiesta di pull al buon Tony e poi ti posto il link per l'immagine (spero) definitiva.
Ho girato il tuo sito che è pieno di cose fantastiche, vedo che anche tu ti appassioni al meraviglioso mondo HF e non solo :lol:
Non ho trovato però un link alla tua email, e sì che ho guardato (credo) dappertutto... Mi mandi la pagina dove la posso trovare?

Please Log in to join the conversation.

More
8 years 1 day ago - 8 years 1 day ago #6685 by Roberto Vaccaro
Hai ragione, è sull'iw1pur.it che è in costruzione.
Comunque in fondo a questa pagina c'è
www.iw1pur.com/TL922_mod.html
E' questa This email address is being protected from spambots. You need JavaScript enabled to view it.
Per l'immagine ok, ma penso che a questo punto anche la mia vada.
Aggiungo una foto del raspi in test, è in mezzo al disordine. Ma nella mia stanza laboratorio ci devo mettere mano solo io :lol: :lol:
L'antenna che vedi è una ground plane tagliata per gli 820 Mhz con ros praticamente inesistente.
Ho anche altri progetti in cantiere ........ manca solo il tempo.


Attachment IMG_0876.JPG not found



Considera che il tx è a circa 50 metri e ho tuuta la casa davanti.
Davvero impossibile per l'RFM01
Attachments:
Last edit: 8 years 1 day ago by Roberto Vaccaro.

Please Log in to join the conversation.

More
8 years 1 day ago #6686 by tony
Ricordatevi di inviarmi una mail ( This email address is being protected from spambots. You need JavaScript enabled to view it. ) o messaggio watsapp (3476178918) per i pull perché GitHub non invia notifiche e quindi spesso mi sfuggono. Ho appena mergiato l'ultimo pull di Seven.
Grazie a tutti.
TT
The following user(s) said Thank You: seven

Please Log in to join the conversation.

More
8 years 21 hours ago - 8 years 21 hours ago #6687 by seven
Ringrazio innanzitutto Tony per la sempre grande gentilezza e disponibilità. Davvero grazie Tony! Non ti ho segnalato il pull perché temevo (a ragione) che ne sarebbero stati necessari altri... :) ...Come quello che ti proporrò molto presto, che salvo colpi di scena dovrebbe concludere almeno questa prima fase di beta testing di questo driver.
Pare infatti che la magagna scoperta dall'ottimo Roberto sia stata sistemata.
Ecco qua, Roby, il log della mia ultima 'ora pari' con il sync del clock disabilitato:
[23/04/2016-01:59:03] New data received from WH1080_RTL-SDR station 0005. Processing...
[23/04/2016-01:59:03] Calculating Meteo data and statistics
[23/04/2016-01:59:03] Logging data to Database
[23/04/2016-01:59:04] Dir: NE - Spd: 4.9 - Gst: 7.34 - Tout: 15.0 - Hout: 84.0 - Rtot: 358.8 - RDay: 0.0 - R1h: 0.0 - R24h: 297.8 - CB: 327 - Trend: 0.81
[23/04/2016-02:00:01] Log to Wunderground : INVALIDPASSWORDID|Password or key and/or id are incorrect
[23/04/2016-02:00:01] Error sending  file to server : meteo.txt
[23/04/2016-02:00:01] Deleted file : /dev/shm/meteo.txt
[23/04/2016-02:00:27] Last main Thread delay ratio: 0.4
[23/04/2016-02:01:01] Log to Wunderground : INVALIDPASSWORDID|Password or key and/or id are incorrect
[23/04/2016-02:01:01] Error sending  file to server : meteo.txt
[23/04/2016-02:01:01] Deleted file : /dev/shm/meteo.txt
[23/04/2016-02:01:01] Error connecting to server : http://www.yoursite.it/swpi_logger.php
[23/04/2016-02:03:02] New data received from WH1080_RTL-SDR station 0005. Processing...
[23/04/2016-02:03:02] *** Note - WH1080_RTL-SDR: Datetime data received. rtlsdr_timesync is disabled.
[23/04/2016-02:03:02] Datetime data received from WH1080_RTL-SDR. Sleeping while waiting for weather data...
[23/04/2016-02:04:42] New data received from WH1080_RTL-SDR station Time. Processing...
[23/04/2016-02:04:42] *** Note - WH1080_RTL-SDR: Datetime data received. rtlsdr_timesync is disabled.
[23/04/2016-02:04:42] Datetime data received from WH1080_RTL-SDR. Sleeping while waiting for weather data...
[23/04/2016-02:06:18] New data received from WH1080_RTL-SDR station Time. Processing...
[23/04/2016-02:06:18] *** Note - WH1080_RTL-SDR: Datetime data received. rtlsdr_timesync is disabled.
[23/04/2016-02:06:18] Datetime data received from WH1080_RTL-SDR. Sleeping while waiting for weather data...
[23/04/2016-02:06:26] No digital cameras found
[23/04/2016-02:06:26] Disk space left = 3795 Mb
[23/04/2016-02:06:26] Sleeping 600 seconds
[23/04/2016-02:07:54] New data received from WH1080_RTL-SDR station Time. Processing...
[23/04/2016-02:07:54] Calculating Meteo data and statistics
[23/04/2016-02:07:54] Logging data to Database
[23/04/2016-02:07:54] Dir: NE - Spd: 3.67 - Gst: 6.12 - Tout: 15.0 - Hout: 84.0 - Rtot: 358.8 - RDay: 0.0 - R1h: 0.0 - R24h: 297.8 - CB: 327 - Trend: 0.98
[23/04/2016-02:08:01] Log to Wunderground : INVALIDPASSWORDID|Password or key and/or id are incorrect
[23/04/2016-02:08:02] Error sending  file to server : meteo.txt
[23/04/2016-02:08:02] Deleted file : /dev/shm/meteo.txt

Lasciando da parte i messaggi di errore generati dal plugin wunderground che non avevo disabilitato, come vedi il cane da guardia se n'è stato buono buono ed ha lasciato proseguire swpi fino a che non sono tornati i dati meteo. :)
Ora sistemo un po' i messaggi di log riducendoli all'osso e poi uppo tutta la cartella swpi, così puoi sostituire la tua con questa versione che contiene già le modifiche da far mergiare al buon Tony.
Per il resto... Che dire... La tua ground plane è mitica! :cheer: :cheer: Non traspare nemmeno un po' la genuina, inconfondibile passione del radioamatore eh?... HI
Mi scuso con il forum per l'OT, ma questo driver esiste anche 'per colpa' di questa passione. :P
Roberto ci sentiamo domani in email.
Last edit: 8 years 21 hours ago by seven.

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6709 by asy961
Ciao Seven
sto provando a sperimentare anch'io swpi con la RTL
però mi dà un errore
************************************************************************
*                      Sint Wind PI 01.23.82                           *
*                                                                      *
*          2012-2016 by Tonino Tarsi  <tony.tarsi@gmail.com>           *
*                                                                      *
*     System will start in 10 seconds - Press Ctrl-C to cancel         *
************************************************************************
10.....9.....8.....7.....6.....5.....4.....3.....2.....1.....
[06/05/2016-14:30:59] loading plugins
[06/05/2016-14:30:59] Starting sensor reading - Sensor type is : WH1080_RTL-SDR
[06/05/2016-14:30:59] Config Server running on port 80
[06/05/2016-14:30:59] *************************************************************
[06/05/2016-14:30:59] *                                                           *
[06/05/2016-14:30:59] *   ERROR : No RTL-SDR compatible USB DVB-T dongle found!   *
[06/05/2016-14:30:59] *                  SWPI execution aborted.                  *
[06/05/2016-14:30:59] *                                                           *
[06/05/2016-14:30:59] *************************************************************
[06/05/2016-14:30:59] Checking internet connetion ...
[06/05/2016-14:30:59] Internet ok
[06/05/2016-14:30:59] Checking internet connetion ...
[06/05/2016-14:30:59] Internet ok

e subito dopo si blocca

in pratica ho aggiornato swpi (swpi-update)
poi ho aggiornato il FW (apt-get update + upgrade)
aggiornato RPI (rpi-update)

sto provando con RaspberryPI B
con i sensori collegati in GPIO funziona tutto

puoi darmi suggerimenti??

Valerio.

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah
Last edit: 7 years 11 months ago by asy961.

Please Log in to join the conversation.

More
7 years 11 months ago #6710 by Roberto Vaccaro
Sembra che tu non abbia una chiavetta RTL o che non sia compatibile

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6711 by asy961
Ciao Roberto,
potrebbe essere, l'ho avuta in prestito da un amico,
la chiavetta è di quelle azzurre ma....
come posso fare un test per accertarmi della compatibilità RTL??


aggiungo una foto della chiavetta

820T2 non va bene??

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah
Last edit: 7 years 11 months ago by asy961.

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6712 by seven
Ciao Valerio!
Il messaggio di swpi sembrerebbe dare ragione al buon Roberto, ma allo stesso tempo conosco quella chiavetta e so per certo che è compatibile... Mi viene da pensare che forse non hai installato le librerie rtl-sdr e rtl_433. Prova a dare il comando:
/usr/local/bin/rtl_eeprom

Se il sistema ti dice che il comando non esiste allora è così. Con la stessa chiavetta il mio sistema risponde:
root@swpi(ro):/usr/local/bin# ./rtl_eeprom
Found 1 device(s):
  0:  Generic RTL2832U OEM

Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner

Current configuration:
__________________________________________
Vendor ID:              0x0bda
Product ID:             0x2838
Manufacturer:           Realtek
Product:                RTL2838UHIDIR
Serial number:          00000001
Serial number enabled:  yes
IR endpoint enabled:    yes
Remote wakeup enabled:  no
__________________________________________
Reattached kernel driver

Installarle è molto semplice e richiede pochi minuti. Controlla se la tua attuale cartella /swpi contiene le due directory:

rtl-sdr

e

rtl_433

Se non le hai scaricale direttamente da Github ( github.com/ToninoTarsi/swpi ) e copiale nella cartella /swpi.

Poi installa i seguenti pacchetti:
sudo apt-get -y install libusb-1.0-0-dev cmake

Ora dai rw per mettere il sistema in lettura-scrittura e dai i seguenti comandi:

    cd rtl-sdr
    mkdir build
    cd build

    cmake ../ -DDETACH_KERNEL_DRIVER=ON -DINSTALL_UDEV_RULES=ON

    make
    sudo make install



Tocca ora a rtl_433. Torna in /swpi e dai i comandi seguenti:

    cd rtl_433
    mkdir build
    cd build
    cmake ../
    make
    sudo make install


A questo punto riprova a dare /usr/local/bin/rtl_eeprom e vedi se ti riconosce la chiavetta. Se si il gioco è fatto, se no ci risentiamo per di qua. :)
Last edit: 7 years 11 months ago by seven.

Please Log in to join the conversation.

More
7 years 11 months ago #6713 by asy961
...allora......
la chiavetta del mio amico è questa
Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x2838 RTL2838 DVB-T
  bcdDevice            1.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 

sembrerebbe una RTL2838.....

però avrei trovato anche questo. ...

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
7 years 11 months ago #6714 by asy961
Ah.....provo subito Nicola

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
7 years 11 months ago #6715 by asy961
il comando /usr/local/bin/rtl_eeprom ritorna file o directory inesistente

le cartelle rtl_433 e rtl_sdr ci sono nella directory swpi


infatti avevo fatto l'update all'ultima versione 01.23.82

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
7 years 11 months ago #6716 by asy961
ho fatto come hai detto da
sudo apt-get -y install libusb-1.0-0-dev cmake

in poi

e questo è risultato
pi@swpi ~/swpi $ /usr/local/bin/rtl_eeprom
/usr/local/bin/rtl_eeprom: error while loading shared libraries: librtlsdr.so.0: cannot open shared object file: No such file or directory
pi@swpi ~/swpi $

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
7 years 11 months ago #6717 by seven
Ah... Prova a dare

sudo ldconfig
The following user(s) said Thank You: asy961

Please Log in to join the conversation.

More
7 years 11 months ago #6720 by asy961
ok...provo domani...il raspi in prova è montato sul banco al lavoro....

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6721 by asy961
Funziona!!!!

ho dovuto prima mettere il sistema in lettura/scrittura (rw)
e poi il comando sudo ldconfig ha funzionato

una domanda, all'inizio quando si avvia swpi c'è un msg di warning

"Warning could not delete wh1080-rtl_433.txt file"

è normale???

Grazie Nicola.


update:
subito all'avvio da anche un'altro msg

"amixer: Control default open error: No such file or directory"

nelle versioni precedenti non avveniva

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah
Last edit: 7 years 11 months ago by asy961.

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6723 by seven
Ottimo Valerio!!

La riga "Warning could not delete wh1080-rtl_433.txt file" è normale appena avviato swpi. Succede perché non essendoci stata ancora nessuna rilevazione dati, swpi non riesce a cancellare la rilevazione precedente... Perché non c'è ancora stata. :)

Per quanto riguarda il messaggio "amixer: Control default open error: No such file or directory" invece si tratta di un messaggio di errore del sottosistema audio ed è strano che appaia così di punto in bianco. Dubito che sia causato da swpi o dall'installazione delle librerie rtl-sdr/rtl_433.

Se non utilizzi swpi come risponditore telefonico puoi tranquillamente ignorarlo, altrimenti prova in rw a dare

sudo modprobe snd_bcm2835

e vedere se si sistema. Se si allora occorrerà aggiungere un'istruzione specifica in modo che il caricamento di questo modulo avvenga ad ogni reboot, altrimenti... Qualcosa si è spippolato nel sistema e dovresti considerare la reinstallazione dell'immagine, fatta salva l'intera cartella swpi che potrai mantenere così com'è per non perdere le tue configurazioni attuali.

(EDIT: per inciso: salvati la cartella swpi attuale ed usala per sovrascrivere quella fresca di installazione :) )

(EDIT 2: Rileggendo il tuo post più indietro ho forse individuato la causa dell'ambaradan: purtroppo a volte apt-get upgrade e soprattutto rpi-update anziché risolvere i problemi ne creano di nuovi. L'ultimo dei due comandi in particolar modo... Ho scoperto a mie spese che sono più i guai che crea che quelli che risolve!
Se il caricamento del modulo audio menzionato prima non funziona prova (con molta attenzione) a modificare il file /boot/config.txt

Aggiungi come ultima riga la seguente:

dtparam=audio=on


E riavvia la Raspberry. Se ancora non va devi entrare in raspi-config:
sudo raspi-config


Seleziona la voce 9 Advanced Options e poi la A5 Device Tree ed abilitala, poi riavvia la Rasp.
Se ancora non va... Fai prima a reinstallare :cheer: :cheer: :cheer: )
Last edit: 7 years 11 months ago by seven.

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6726 by asy961
Ok!! Grazie Nicola

è bastato aggiungere dtparam=audio=on



adesso tengo tutto in prova ancora qualche giorno, poi dovrò restituire la chiavetta al mio amico.....intanto ne ho già ordinata una per me ;)

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah
Last edit: 7 years 11 months ago by asy961.

Please Log in to join the conversation.

More
7 years 11 months ago #6728 by seven
Beeeeenissimo, di nulla Valerio! :cheer:

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6776 by asy961
allora...

dopo un funzionamento ininterrotto per circa 3 giorni la chiavetta improvvisamente ha smesso di ricevere...

ho fatto un test usb è questo è il risutato
Bus 001 Device 004: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x2838 RTL2838 DVB-T
  bcdDevice            1.00
  iManufacturer           1 Realtek
  iProduct                2 RTL2838UHIDIR
  iSerial                 3 00000001
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          2
    bConfigurationValue     1
    iConfiguration          4 USB2.0-Bulk&Iso
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 Bulk-In, Interface
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        1
      bAlternateSetting       0
      bNumEndpoints           0
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              5 Bulk-In, Interface
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  bNumConfigurations      2
Device Status:     0x0000
  (Bus Powered)


poi con il comando da terminale
rtl_433 -f 868300000 -F json -l 0

questo è il risultato
pi@swpi ~ $ rtl_433 -f 868300000 -F json -l 0
Registering protocol "Silvercrest Remote Control"
Registering protocol "Rubicson Temperature Sensor"
Registering protocol "Prologue Temperature Sensor"
Registering protocol "Waveman Switch Transmitter"
Registering protocol "Steffen Switch Transmitter"
Registering protocol "ELV EM 1000"
Registering protocol "ELV WS 2000"
Registering protocol "LaCrosse TX Temperature / Humidity Sensor"
Registering protocol "Acurite 5n1 Weather Station"
Registering protocol "Acurite 896 Rain Gauge"
Registering protocol "Acurite Temperature and Humidity Sensor"
Registering protocol "Oregon Scientific Weather Sensor"
Registering protocol "Mebus 433"
Registering protocol "Intertechno 433"
Registering protocol "KlikAanKlikUit Wireless Switch"
Registering protocol "AlectoV1 Weather Sensor (Alecto WS3500 WS4500 Ventus W155/W044 Oregon)"
Registering protocol "Cardin S466-TX2"
Registering protocol "Fine Offset Electronics, WH-2 Sensor"
Registering protocol "Nexus Temperature & Humidity Sensor"
Registering protocol "Ambient Weather Temperature Sensor"
Registering protocol "Calibeur RF-104 Sensor"
Registering protocol "X10 RF"
Registering protocol "DSC Security Contact"
Registering protocol "Brennstuhl RCS 2044"
Registering protocol "GT-WT-02 Sensor"
Registering protocol "Danfoss CFR Thermostat"
Registering protocol "Energy Count 3000 (868.3 MHz)"
Registering protocol "Valeo Car Key"
Registering protocol "Chuango Security Technology"
Registering protocol "Generic Remote SC226x EV1527"
Registering protocol "TFA-Twin-Plus-30.3049 and Ea2 BL999"
Registering protocol "Fine Offset WH1080 Weather Station"
Registering protocol "WT450"
Registering protocol "LaCrosse WS-2310 Weather Station"
Registering protocol "Esperanza EWS"
Registering protocol "Efergy e2 classic"
Registering protocol "Inovalley kw9015b rain and Temperature weather station"
Registering protocol "Generic temperature sensor 1"
Registering protocol "Acurite 592TXR Temperature/Humidity Sensor and 5n1 Weather Station"
Registering protocol "Acurite 986 Refrigerator / Freezer Thermometer"
Registering protocol "HIDEKI TS04 Temperature and Humidity Sensor"
Registering protocol "Watchman Sonic / Apollo Ultrasonic / Beckett Rocket oil tank monitor"
Registering protocol "CurrentCost Current Sensor"
Registering protocol "emonTx OpenEnergyMonitor"
Registering protocol "HT680 Remote control"
Registering protocol "S3318P Temperature & Humidity Sensor"
Registering protocol "Akhan 100F14 remote keyless entry"
Registering protocol "Quhwa"
Registering protocol "OSv1 Temperature Sensor"
Registering protocol "Proove"
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000.
Bit detection level set to 0.
Tuner gain set to Auto.
Reading samples in async mode...
Tuned to 868300000 Hz.
{"time" : "2016-05-18 14:16:39", "model" : "Fine Offset WH1080 weather station", "msg_type" : 0, "id" : 56, "temperature_C" : 28.500, "humidity" : 36, "direction_str" : "N", "direction_deg" : "0", "speed" : 0.000, "gust" : 0.000, "rain" : 0.000}
{"time" : "2016-05-18 14:16:39", "model" : "Fine Offset WH1080 weather station", "msg_type" : 0, "id" : 56, "temperature_C" : 28.500, "humidity" : 36, "direction_str" : "N", "direction_deg" : "0", "speed" : 0.000, "gust" : 0.000, "rain" : 0.000}
{"time" : "2016-05-18 14:17:27", "model" : "Fine Offset WH1080 weather station", "msg_type" : 0, "id" : 56, "temperature_C" : 28.500, "humidity" : 36, "direction_str" : "N", "direction_deg" : "0", "speed" : 0.000, "gust" : 0.000, "rain" : 0.000}
cb transfer status: 5, canceling...
cb transfer status: 5, canceling...
rtlsdr_demod_write_reg failed with -4
Errore di segmentazione


che sarà successo?? chiavetta guasta??

(chiavetta inserita nell'usb del raspberry)

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah
Last edit: 7 years 11 months ago by asy961.

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6778 by seven
Il fatto che per un po' funzioni e poi si blocchi mi fa propendere verso un possibile problema hardware, tra cui:

- Alimentatore troppo piccolo o instabile;

- Surriscaldamento della chiavetta (prova a rimuovere il suo coperchietto ed a farla funzionare aperta. Eventualmente un piccolo dissipatore sul chip del tuner interno risolverà la questione)

- Compresenza di altri dispositivi/chiavette usb collegati alla Raspberry, magari con velocità USB diversa dalla chiavetta DVB-T (USB 1.0 - USB 1.1)

Jolly da giocare subito: prova a collegarla ad un'altra porta USB della Rasp. :)

Infine sarebbe interessante vedere se con un pc 'normale' la chiavetta si comporta normalmente per escludere possibili difetti della chiavetta stessa. Se non disponi di un sistema Linux trovi rtl_433 per windows qui:

cognito.me.uk/computers/rtl_433-windows-binary-32-bit/

Nik
Last edit: 7 years 11 months ago by seven.

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6779 by asy961
si effettivamente la chiavetta si scalda me ne ero accorto e il coperchio l'avevo già tolto.....
l'alimentatore uso quello originale del raspi2 che è 2A....
all'altra usb c'è collegata una tastiera.....sai com'è, in qualche modo devo pur interagire col raspi.. ;-)
ho un portatile con linux....cosa devo installare??

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah
Last edit: 7 years 11 months ago by asy961.

Please Log in to join the conversation.

More
7 years 11 months ago #6781 by seven
Aspetta Valerio, perché non stacchi prima la tastiera e provi ad accedere via ssh da un altro PC? Secondo me il problema è quello...
Per accedere da Windows usa il programma putty (così si chiama...), lo trovi facilmente in rete. Da portatile Linux basta che da console digiti

ssh pi@<ipdellaraspi>

Ed è come se fossi collegato al raspberry via tastiera, ma non c'è il prelievo di corrente aggiuntiva dalle porte usb

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6782 by asy961
Nicola i risultati dei comandi nel post sopra sono tutti tramite ssh....
devo provare a staccare la tastiera...
ma credo che sia un problema della chiavetta.....era abbastanza calda...

edit...
cmq se fosse la tastiera perchè il problema è avvenuto dopo circa 3 giorni??
mmmm sono sempre più convinto che sia la chiavetta...
quale è il chip ddel tuner?? quello più vicino alla presa dell'antenna??
provo a mettere qualcosa per dissipare il calore...

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah
Last edit: 7 years 11 months ago by asy961.

Please Log in to join the conversation.

More
7 years 11 months ago #6783 by asy961
chiavetta fredda.....
tastiera staccata....
pi@swpi ~ $ rtl_433 -f 868300000 -F json -l 0
Registering protocol "Silvercrest Remote Control"
Registering protocol "Rubicson Temperature Sensor"
Registering protocol "Prologue Temperature Sensor"
Registering protocol "Waveman Switch Transmitter"
Registering protocol "Steffen Switch Transmitter"
Registering protocol "ELV EM 1000"
Registering protocol "ELV WS 2000"
Registering protocol "LaCrosse TX Temperature / Humidity Sensor"
Registering protocol "Acurite 5n1 Weather Station"
Registering protocol "Acurite 896 Rain Gauge"
Registering protocol "Acurite Temperature and Humidity Sensor"
Registering protocol "Oregon Scientific Weather Sensor"
Registering protocol "Mebus 433"
Registering protocol "Intertechno 433"
Registering protocol "KlikAanKlikUit Wireless Switch"
Registering protocol "AlectoV1 Weather Sensor (Alecto WS3500 WS4500 Ventus W155/W044 Oregon)"
Registering protocol "Cardin S466-TX2"
Registering protocol "Fine Offset Electronics, WH-2 Sensor"
Registering protocol "Nexus Temperature & Humidity Sensor"
Registering protocol "Ambient Weather Temperature Sensor"
Registering protocol "Calibeur RF-104 Sensor"
Registering protocol "X10 RF"
Registering protocol "DSC Security Contact"
Registering protocol "Brennstuhl RCS 2044"
Registering protocol "GT-WT-02 Sensor"
Registering protocol "Danfoss CFR Thermostat"
Registering protocol "Energy Count 3000 (868.3 MHz)"
Registering protocol "Valeo Car Key"
Registering protocol "Chuango Security Technology"
Registering protocol "Generic Remote SC226x EV1527"
Registering protocol "TFA-Twin-Plus-30.3049 and Ea2 BL999"
Registering protocol "Fine Offset WH1080 Weather Station"
Registering protocol "WT450"
Registering protocol "LaCrosse WS-2310 Weather Station"
Registering protocol "Esperanza EWS"
Registering protocol "Efergy e2 classic"
Registering protocol "Inovalley kw9015b rain and Temperature weather station"
Registering protocol "Generic temperature sensor 1"
Registering protocol "Acurite 592TXR Temperature/Humidity Sensor and 5n1 Weather Station"
Registering protocol "Acurite 986 Refrigerator / Freezer Thermometer"
Registering protocol "HIDEKI TS04 Temperature and Humidity Sensor"
Registering protocol "Watchman Sonic / Apollo Ultrasonic / Beckett Rocket oil tank monitor"
Registering protocol "CurrentCost Current Sensor"
Registering protocol "emonTx OpenEnergyMonitor"
Registering protocol "HT680 Remote control"
Registering protocol "S3318P Temperature & Humidity Sensor"
Registering protocol "Akhan 100F14 remote keyless entry"
Registering protocol "Quhwa"
Registering protocol "OSv1 Temperature Sensor"
Registering protocol "Proove"
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Detached kernel driver
Found Rafael Micro R820T tuner
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
Sample rate set to 250000.
Bit detection level set to 0.
Tuner gain set to Auto.
Reading samples in async mode...
Tuned to 868300000 Hz.
Errore di segmentazione


mi sa che devo ricomprargliela la chiavetta al mio amico :S

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6786 by seven
Eh ma che sfiga!... La mia funziona ininterrottamente da novembre scorso, 24 ore su 24 senza perdere un colpo...
No dai, prova nell'altro pc, nel portatile con linux.

Da console dai:
sudo apt-get update
sudo apt-get -y install build-essential libusb-1.0-0-dev i2c-tools libi2c-dev cmake git


portati in una cartella scrivibile e dai:

git clone git clone git://git.osmocom.org/rtl-sdr.git

cd rtl-sdr

mkdir build

cd build

cmake ../ -DINSTALL_UDEV_RULES=ON -DDETACH_KERNEL_DRIVER=ON

make

sudo make install

sudo ldconfig

sudo reboot


dopo il riavvio, in una cartella scrivibile dai
git clone https://github.com/merbanan/rtl_433.git
cd rtl_433/
mkdir build
cd build
cmake ../
make
sudo make install

a questo punto sei pronto per lanciare rtl_433:
rtl_433 -f 868200000 -l 0

Se la chiavetta funziona senza intoppi per un bel po' allora il problema non è la chiavetta......
Last edit: 7 years 11 months ago by seven.

Please Log in to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #6787 by asy961
Grazie Nicola...domani provo....tutto l'occorrente ce l'ho al lavoro.....
intanto ne ho ordinate 3 su un sito cinese....
una per il mio amico, una per fare esperimenti e una per una nuova stazione...se tutto andrà bene....


edit:
ore 11.15
sono 3 ore che la chiavetta è collegata al portatile e stà funzionando....
senza involucro e con una piccolissima vite posizionata sul tuner con pasta siliconica a mo di dissipatore...
resto in osservazione....

Stazione Meteo: Raspberry PI B, Sensori Vento PCE, BME280, Camera PI, Web Cam HD, Huawei K3765, Pannello Fotovoltaico 50W - 1 Batteria 12V-40Ah
Last edit: 7 years 11 months ago by asy961.

Please Log in to join the conversation.

More
7 years 11 months ago #6795 by seven
Ottimo Valerio, meno male che (almeno per ora) sembra che non dovrai ricomprare la chiavetta al tuo amico :cheer:
Vediamo come butta, per me rimane un problema di alimentazione della Rasp... Magari con un'altra chiavetta il problema svanisce per questioni di tolleranza di questi prodotti fatti in serie.

Please Log in to join the conversation.

Time to create page: 0.897 seconds