× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file Houston abbiamo un problema

More
10 years 4 months ago #2986 by roberto2011
Da un mese nessun problema, ieri che il vento era incerto :) (x la famosa legge di Murphy) il sint si è bloccato.
Niente sms, tel. libero, quindi alimentato..
Ecco il log !
[18/12/2013-10:10:52] Starting sensor reading - Sensor type is : DAVIS-SENSOR
clk mmap error -1272967168
[18/12/2013-10:10:52] Error initializing mcp3002 library.Try to continue
[18/12/2013-10:10:54] sms reset

[18/12/2013-10:10:54] Modem Model : E1692
[18/12/2013-10:10:54] Revision : 11.126.08.00.192
[18/12/2013-10:10:54] Modem Serial Number : B14CAB19B1203668
[18/12/2013-10:10:54] Pin Status : READY
[18/12/2013-10:10:54] Device Center : +393359609600 145
[18/12/2013-10:10:54] Signal quality : 19
[18/12/2013-10:10:54] Checking new sms messages...
[18/12/2013-10:10:54] Checking internet connetion ...
[18/12/2013-10:10:54] No Internet
[18/12/2013-10:10:54] Trying to connect to internet with 3G dongle ....
[18/12/2013-10:10:57] Waiting for a valid IP ...
[18/12/2013-10:10:57] No IP yet. Retrying ..59
[18/12/2013-10:10:59] No IP yet. Retrying ..58
[18/12/2013-10:11:03] Wed Dec 18 10:11:41 2013
mer 18 dic 2013, 10.11.41, CET
[18/12/2013-10:11:41] sms reset
[18/12/2013-10:11:41] Checking internet connetion ...
[18/12/2013-10:11:41] Internet ok
[18/12/2013-10:11:42] Connected with IP : 62.18.194.50 
[18/12/2013-10:11:42] Halter: System will Halt in 24378.0 seconds
[18/12/2013-10:11:42] Try to disconnect
[18/12/2013-10:11:42] Starting General WatchDog
[18/12/2013-10:11:43] sms reset
[18/12/2013-17:17:38] Starting SINT WIND PI  ... 
************************************************************************
*                      Sint Wind PI 01.21.04                           *
*                                                                      *
*          2012-2013 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.....
[18/12/2013-17:18:03] Starting sensor reading - Sensor type is : DAVIS-SENSOR
[18/12/2013-17:18:06] sms reset

[18/12/2013-17:18:06] Modem Model : E1692
[18/12/2013-17:18:06] Revision : 11.126.08.00.192
[18/12/2013-17:18:06] Modem Serial Number : B14CAB19B1203668
[18/12/2013-17:18:06] Pin Status : READY
[18/12/2013-17:18:06] Device Center : +393359609600 145
[18/12/2013-17:18:06] Signal quality : 19
[18/12/2013-17:18:06] Checking new sms messages...
[18/12/2013-17:18:09] Processind SMS : 0 - Text:  wobinda RBT  - Sender :+393356684732
[18/12/2013-17:18:09] Receiced rebooting command  
[18/12/2013-17:18:09] Rebooting system ..
[18/12/2013-17:18:51] Starting SINT WIND PI  ... 
************************************************************************
*                      Sint Wind PI 01.21.04                           *
*                                                                      *
*          2012-2013 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.....
[18/12/2013-17:19:17] Starting sensor reading - Sensor type is : DAVIS-SENSOR
[18/12/2013-17:19:19] sms reset

[18/12/2013-17:19:19] Modem Model : E1692
[18/12/2013-17:19:19] Revision : 11.126.08.00.192
[18/12/2013-17:19:19] Modem Serial Number : B14CAB19B1203668
[18/12/2013-17:19:19] Pin Status : READY
[18/12/2013-17:19:19] Device Center : +393359609600 145
[18/12/2013-17:19:19] Signal quality : 19
[18/12/2013-17:19:19] Checking new sms messages...
[18/12/2013-17:19:20] Processind SMS : 1 - Text:  wobinda MALOG  - Sender :+393356684732
[18/12/2013-17:19:30] BMP085 - Temperature: 0.3 C Pressure:    867.3 
[18/12/2013-17:19:30] DHT - Temperature: 0.1 C Humidity:    55.2 
[18/12/2013-17:19:30] Calculating Meteo data and statistics
[18/12/2013-17:19:43] Checking internet connetion ...
[18/12/2013-17:19:44] No Internet
[18/12/2013-17:19:44] Trying to connect to internet with 3G dongle ....
[18/12/2013-17:19:46] Logging data to Database
[18/12/2013-17:19:47] Waiting for a valid IP ...
[18/12/2013-17:19:47] No IP yet. Retrying ..59
[18/12/2013-17:19:47] Dir: SW - Spd: 27.761184 - Gst: 28.968192 - Tout: 0.3 - Tin: 0.1 - Hout: 55.2 - P: 1019 - CB: 2306
[18/12/2013-17:19:49] No IP yet. Retrying ..58
[18/12/2013-17:19:51] No IP yet. Retrying ..57
[18/12/2013-17:19:56] Thu Dec 19 8:32:29 2013
gio 19 dic 2013, 08.32.29, CET
[19/12/2013-08:32:29] Checking internet connetion ...
p.s. oggi tutto funziona regolarmente ...

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)

Please Log in to join the conversation.

More
10 years 4 months ago #2993 by alegrechi
Mi sembra un problema dovuto alla connessione 3G / chiavetta... o sbaglio?

Please Log in to join the conversation.

More
10 years 4 months ago #2995 by roberto2011
alla fine il problema è qui
[18/12/2013-10:11:43] sms reset
[18/12/2013-17:17:38] Starting SINT WIND PI  ...
7 ore bloccato e poi un rbt


Questo non ho idea !!! clk mmap error -1272967168 ???

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)

Please Log in to join the conversation.

More
10 years 4 months ago #2997 by tony
Replied by tony on topic Houston abbiamo un problema
Scusate i pochi interventi in questi ultimi giorni ma ero incasinato col lavoro.

Anche io ho dei problemi con la stazione al Cucco bloccata oramai da diversi giorni. Dovrò salire nei prossimi giorni per vedere.

Per la stazione di Sigillo ho avuto tempo fà un problema con la scheda SD che non ne voleva più sapere di andare neanche dopo riscrittura da 0.
Vedrà se sostituendo la SD il problema si risolve.

Nel tuo caso il messaggio "clk mmap error -1272967168" da dove viene ??

Please Log in to join the conversation.

More
10 years 4 months ago #2998 by roberto2011
Ciao Tony
Dal Log
clk mmap error -1272967168
[18/12/2013-10:10:52] Error initializing mcp3002 library.Try to continue

cmq anche oggi tutto ok ...

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)

Please Log in to join the conversation.

More
10 years 4 months ago - 10 years 4 months ago #3007 by tony
Replied by tony on topic Houston abbiamo un problema
Il mio problema credo fosse dovuto all'alimentatore switching ( di quelli cinesi regalabili con LMXXXX ) che era sceso a 4.9V. Ora ho ripristinato 5.1 ....
Last edit: 10 years 4 months ago by tony.

Please Log in to join the conversation.

More
10 years 4 months ago - 10 years 4 months ago #3013 by ulisse
Replied by ulisse on topic Houston abbiamo un problema
Da un pezzetto ho il mio SWPI fuori sul campo (ancora in postazione provvisoria).
Con la configurazione definitiva, con il Raspberry modello
A, ho avuto qualche blocco simile al tipo descritto da Roberto.
Adesso, per provare, ho messo su il modello B con una scheda SD diversa e per ora sta andando sempre bene.
In questi giorni conto di provare a rimettere il modello A lasciando la scheda SD attuale, per vedere di isolare bene il problema.

--AGGIORNAMENTO: Sono rintronato dalle feste! :silly: :blink:
La scheda SD l'avevo già cambiata, mettendo sul mod.B quella che avevo sul mod.A quando mi dava problemi, quindi sembrerebbe che il mio problema sia nel Raspberry.
Per controprova rimetterò comunque il mod.A e mi aspetterò problemi ;)
Last edit: 10 years 4 months ago by ulisse.

Please Log in to join the conversation.

More
10 years 3 months ago #3107 by ulisse
Replied by ulisse on topic Houston abbiamo un problema
Ho riprovato un paio di volte a rimettere il modello A, ma non funziona quasi mai, mentre col modello B va che è una bellezza.
Temo di aver fritto la GPIO del modello A con qualche collegamento maldestro, dopo le feste dovrei avere la possibilità di farmi prestare un nuovo modello A per avere la conferma finale.

Please Log in to join the conversation.

More
10 years 3 months ago - 10 years 3 months ago #3149 by roberto2011
stazione meteo off-line da un paio di giorni.
oggi voletto e recuperato il sint..
ecco il problema
Traceback (most recent call last): 
File "swpi.py", line 655. In <module>
globalvars.meteo_data = meteodata.MeteoData(cfg)
File  "hone/pi/swpi/meteodata.py", line 118. in _init_
if ( not self.getLastTodayFromDB() ):
File "hone/pi/swpi/meteodata.py", line 353. in getLastTodayFronDB
dbCursor execute("SELECT FROM METEO where date(TIMESTAMP_LOCAL) = date('now'localtime' ) order by rowid desc limit 1") 
sqlite3.DatabaseError: database disk inage is malfomed

che faccio.. come possiamo evitare questo problema in futuro??

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)
Last edit: 10 years 3 months ago by roberto2011.

Please Log in to join the conversation.

More
10 years 3 months ago #3150 by alegrechi
A occhio direi un problema di corruzione DB o della SD.... a me non è mai successo per ora.

Ma in questo caso non è intervenuto il tuo watchdog?

Please Log in to join the conversation.

More
10 years 3 months ago #3152 by roberto2011
Giusta osservazione il watchdog non funge!

Pensavo !
un chechdisk ad ogni avvio, con cancellazione del db.
esagerato??:)

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)

Please Log in to join the conversation.

More
10 years 3 months ago #3154 by alegrechi
Forse si...
ma non ho capito, dopo un reboot è ripartito o il db è corrotto?

Please Log in to join the conversation.

More
10 years 3 months ago #3155 by roberto2011
1)Il db è sicuramente corrotto !!
2)dopo il reboot il db rimane corrotto :)

Il raspberry esce da swpi e rimane in shell!
ma niente reboot (watchdog non funge:))!!!

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)

Please Log in to join the conversation.

More
10 years 3 months ago #3156 by alegrechi
capito. Allora mi sa che non ti rimane che ripartire con un DB pulito.
Magari si potrebbe fare una copia di backup automatizzata (che si autosovrascrive ogni giorno) da usare in caso di problemi come questo...

Please Log in to join the conversation.

More
10 years 3 months ago #3158 by roberto2011
Con db pulito tutto ok!

Copia di backup automatizzata!!! Mi piace!

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)

Please Log in to join the conversation.

More
10 years 3 months ago #3160 by tony
Replied by tony on topic Houston abbiamo un problema
Effettivamente mi sembra che non sia il primo caso !!!!
Teniamo d'occhio la cosa

Please Log in to join the conversation.

More
10 years 3 months ago #3167 by roberto2011
Pensavo di modificare il file meteodata.py cosi:
def getLastTodayFromDB(self):
        conn = sqlite3.connect('db/swpi.s3db',200)
        
        dbCursor = conn.cursor()
        try:
            dbCursor.execute("SELECT * FROM METEO where date(TIMESTAMP_LOCAL) = date('now','localtime') order by rowid desc limit 1")
        except sqlite3.OperationalError:
            log("Ripristino Database")
	    os.system( "sudo cp db/swpiori.s3db db/swpi.s3db" )
        data = dbCursor.fetchall()
        if ( len(data) != 1):
            if conn:
                conn.close()
            return False

che ne dite??

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)

Please Log in to join the conversation.

More
10 years 3 months ago #3168 by roberto2011

Attachment meteodata.zip not found


testato..

Sensori Davis +BME280 + Raspberry b+ webCam serrasanta.fleanet.it (Eremo di Serrasanta - Gualdo Tadino - 1.340 m s.l.m.)
Attachments:
The following user(s) said Thank You: alegrechi

Please Log in to join the conversation.

More
10 years 3 months ago #3196 by netsoul
Replied by netsoul on topic Houston abbiamo un problema
Mi pare che di questa cosa se ne sia già parlato in un argomento dal titolo tipo "SintWind si blocca" o qualcosa del genere

Please Log in to join the conversation.

Time to create page: 1.084 seconds