× Benvenuti sul nostro forum su Sint Wind PI!

Postate qui domande o segnalate problemi / bug che riscontrate,

file Sint Wind Pi che non ne vuole sapere di avviarsi...

More
6 years 4 months ago - 6 years 4 months ago #7967 by Fisico
Dopo che SWPI mi si è bloccato, ho flashato nuovamente la Sd, come fatto almeno altre 10 volte nel giro di 3 anni.
Peccato che questa volta il problema non sembra volersi risolvere. Infatti, se guardo cosa succede, ecco cosa leggo:
[04/10/2017-23:19:55] Starting SINT WIND PI  ... 
************************************************************************
*                      Sint Wind PI 01.24.95                           *
*                                                                      *
*          2012-2017 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.....
[05/11/2017-16:03:28] System revision : 0010
[05/11/2017-16:03:28] Running  power save ...
[05/11/2017-16:03:30] loading plugins
[05/11/2017-16:03:30] Starting sensor reading - Sensor type is : WMR100
[05/11/2017-16:03:30] Thread started
[05/11/2017-16:03:30] USB initialization
[05/11/2017-16:03:30] USB WMR100 found
[05/11/2017-16:03:30] USB WMR100 open
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/swpi/web_server.py", line 242, in run
    s=SocketServer.TCPServer(("",port),ScriptRequestHandler)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/SocketServer.py", line 430, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use
ls: impossibile accedere a /dev/ttyUSB0: File o directory non esistente
[05/11/2017-16:03:30] Checking internet connection ...
[05/11/2017-16:03:30] Internet ok
[05/11/2017-16:03:30] Checking internet connection ...
[05/11/2017-16:03:30] Internet ok
dom  5 nov 2017, 16.03.31, CET
[05/11/2017-16:03:31] System time adjusted from NTP server : europe.pool.ntp.org
[05/11/2017-16:03:31] Connected with IP xxxxxxxxxxxxx

[05/11/2017-16:03:31] Local IP :xxxxxxxxxx Public IP : xxxxxxxxxxx

[05/11/2017-16:03:31] Starting General WatchDog
dom  5 nov 2017, 16.03.32, CET
[05/11/2017-16:03:32] System time adjusted from NTP server : europe.pool.ntp.org
[05/11/2017-16:03:41] USB initialization
[05/11/2017-16:03:41] USB WMR100 found
[05/11/2017-16:03:41] USB WMR100 open
[05/11/2017-16:03:51] USB initialization
[05/11/2017-16:03:51] USB WMR100 found
[05/11/2017-16:03:51] USB WMR100 open
[05/11/2017-16:04:01] USB initialization
[05/11/2017-16:04:01] USB WMR100 found
[05/11/2017-16:04:01] USB WMR100 open
[05/11/2017-16:04:11] USB initialization
[05/11/2017-16:04:11] USB WMR100 found
[05/11/2017-16:04:11] USB WMR100 open
[05/11/2017-16:04:21] USB initialization
[05/11/2017-16:04:21] USB WMR100 found
[05/11/2017-16:04:21] USB WMR100 open
[05/11/2017-16:04:31] USB initialization
[05/11/2017-16:04:31] USB WMR100 found
[05/11/2017-16:04:31] USB WMR100 open
[05/11/2017-16:04:41] USB initialization
[05/11/2017-16:04:41] USB WMR100 found
[05/11/2017-16:04:41] USB WMR100 open
[05/11/2017-16:04:51] USB initialization
[05/11/2017-16:04:51] USB WMR100 found
[05/11/2017-16:04:51] USB WMR100 open
[05/11/2017-16:04:51] USB WMR100 initialized
[05/11/2017-16:05:28] USB initialization
[05/11/2017-16:05:28] USB WMR100 found
[05/11/2017-16:05:28] USB WMR100 open
[05/11/2017-16:05:31] Checking internet connection ...
[05/11/2017-16:05:31] Internet ok
[05/11/2017-16:05:31] Rereading config file ..
[05/11/2017-16:05:31] Disk space left = 520 Mb
[05/11/2017-16:05:31] Sleeping 600 seconds
dom  5 nov 2017, 16.05.32, CET
[05/11/2017-16:05:32] System time adjusted from NTP server : europe.pool.ntp.org
[05/11/2017-16:05:38] USB initialization
[05/11/2017-16:05:38] USB WMR100 found
[05/11/2017-16:05:38] USB WMR100 open
[05/11/2017-16:05:38] USB WMR100 initialized
[05/11/2017-16:06:16] USB initialization
[05/11/2017-16:06:16] USB WMR100 found
[05/11/2017-16:06:16] USB WMR100 open
[05/11/2017-16:06:16] USB WMR100 initialized
[05/11/2017-16:06:54] USB initialization
[05/11/2017-16:06:54] USB WMR100 found
[05/11/2017-16:06:54] USB WMR100 open
[05/11/2017-16:07:04] USB initialization
[05/11/2017-16:07:04] USB WMR100 found
[05/11/2017-16:07:04] USB WMR100 open
[05/11/2017-16:07:14] USB initialization
[05/11/2017-16:07:14] USB WMR100 found
[05/11/2017-16:07:14] USB WMR100 open
[05/11/2017-16:07:24] USB initialization
[05/11/2017-16:07:24] USB WMR100 found
[05/11/2017-16:07:24] USB WMR100 open
[05/11/2017-16:07:34] USB initialization
[05/11/2017-16:07:34] USB WMR100 found
[05/11/2017-16:07:34] USB WMR100 open
[05/11/2017-16:07:44] USB initialization
[05/11/2017-16:07:44] USB WMR100 found
[05/11/2017-16:07:44] USB WMR100 open
[05/11/2017-16:07:54] USB initialization
[05/11/2017-16:07:54] USB WMR100 found
[05/11/2017-16:07:54] USB WMR100 open
[05/11/2017-16:08:04] USB initialization
[05/11/2017-16:08:04] USB WMR100 found
[05/11/2017-16:08:04] USB WMR100 open
^[[05/11/2017-16:08:14] USB initialization
[05/11/2017-16:08:14] USB WMR100 found
[05/11/2017-16:08:14] USB WMR100 open

E in un altro tentativo...
************************************************************************
*                      Sint Wind PI 01.23.03                           *
*                                                                      *
*          2012-2015 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.....
[05/11/2017-17:10:09] loading plugins
[05/11/2017-17:10:09] Starting sensor reading - Sensor type is : WMR100
 [05/11/2017-17:10:09] Checking internet connetion ...
[05/11/2017-17:10:09] Thread started
[05/11/2017-17:10:09] USB initialization
[05/11/2017-17:10:09] USB WMR100 found
[05/11/2017-17:10:09] USB WMR100 open
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/swpi/web_server.py", line 242, in run
    s=SocketServer.TCPServer(("",port),ScriptRequestHandler)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/SocketServer.py", line 430, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use

[05/11/2017-17:10:09] Internet ok
[05/11/2017-17:10:09] Checking internet connetion ...
[05/11/2017-17:10:09] USB WMR100 initialized
[05/11/2017-17:10:09] Internet ok
dom  5 nov 2017, 17.10.10, CET
[05/11/2017-17:10:10] System time adjusted from NPT server : europe.pool.ntp.org
[05/11/2017-17:10:10] Connected with IP :<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /ip.php was not found on this server.</p>
</body></html>

[05/11/2017-17:10:10] Starting General WatchDog
dom  5 nov 2017, 17.10.11, CET
[05/11/2017-17:10:11] System time adjusted from NPT server : europe.pool.ntp.org
[05/11/2017-17:12:10] Checking internet connetion ...
[05/11/2017-17:12:10] Internet ok
[05/11/2017-17:12:11] Rereading config file ..
[05/11/2017-17:12:11] Disk space left = 238309376
[05/11/2017-17:12:11] Sleeping 600 seconds
dom  5 nov 2017, 17.12.11, CET
[05/11/2017-17:12:11] System time adjusted from NPT server : europe.pool.ntp.org
[05/11/2017-17:22:10] Checking internet connetion ...
[05/11/2017-17:22:10] Internet ok
[05/11/2017-17:22:10] Rereading config file ..
[05/11/2017-17:22:11] Disk space left = 238309376
[05/11/2017-17:22:11] Sleeping 600 seconds
dom  5 nov 2017, 17.22.12, CET
[05/11/2017-17:22:12] System time adjusted from NPT server : europe.pool.ntp.org
[05/11/2017-17:25:10] Last main Thread delay ratio: 0.3
[05/11/2017-17:32:11] Checking internet connetion ...
[05/11/2017-17:32:11] Internet ok
[05/11/2017-17:32:12] Rereading config file ..
[05/11/2017-17:32:12] Disk space left = 238309376
[05/11/2017-17:32:12] Sleeping 600 seconds
dom  5 nov 2017, 17.32.12, CET
[05/11/2017-17:32:12] System time adjusted from NPT server : europe.pool.ntp.org
[05/11/2017-17:35:10] Last main Thread delay ratio: 0.3
[05/11/2017-17:42:11] Checking internet connetion ...
[05/11/2017-17:42:11] Internet ok
[05/11/2017-17:42:12] Rereading config file ..
[05/11/2017-17:42:12] Disk space left = 238309376
[05/11/2017-17:42:12] Sleeping 600 seconds
dom  5 nov 2017, 17.42.13, CET
[05/11/2017-17:42:13] System time adjusted from NPT server : europe.pool.ntp.org
[05/11/2017-17:45:10] Last main Thread delay ratio: 0.3
[05/11/2017-17:52:12] Checking internet connetion ...
[05/11/2017-17:52:12] Internet ok
[05/11/2017-17:52:13] Rereading config file ..
[05/11/2017-17:52:13] Disk space left = 238309376
[05/11/2017-17:52:13] Sleeping 600 seconds
dom  5 nov 2017, 17.52.13, CET
[05/11/2017-17:52:13] System time adjusted from NPT server : europe.pool.ntp.org
[05/11/2017-17:55:10] Last main Thread delay ratio: 0.3
[05/11/2017-18:02:12] Checking internet connetion ...
[05/11/2017-18:02:12] Internet ok
[05/11/2017-18:02:13] Rereading config file ..
[05/11/2017-18:02:13] Disk space left = 238309376
[05/11/2017-18:02:13] Sleeping 600 seconds
dom  5 nov 2017, 18.02.14, CET
[05/11/2017-18:02:14] System time adjusted from NPT server : europe.pool.ntp.org
[05/11/2017-18:05:10] Last main Thread delay ratio: 0.3
[05/11/2017-18:12:13] Checking internet connetion ...
[05/11/2017-18:12:13] Internet ok
[05/11/2017-18:12:14] Rereading config file ..
[05/11/2017-18:12:14] Disk space left = 238309376
[05/11/2017-18:12:14] Sleeping 600 seconds
dom  5 nov 2017, 18.12.14, CET
[05/11/2017-18:12:14] System time adjusted from NPT server : europe.pool.ntp.org
[05/11/2017-18:15:10] Last main Thread delay ratio: 0.3

Secondo voi qual è il problema? Forse la schede SD si è corrotta? (ma ho lasciato fdisk da terminale Mac e non ha trovato errori...)
Scorrendo il listato vedo una cosa strana:

Exception in thread Thread-2:

e poi degli errori sulla usb:

error: [Errno 98] Address already in use
ls: impossibile accedere a /dev/ttyUSB0: File o directory non esistente

ma non capisco... ho fatto la procedura di creazione della sd fatta sempre...
Last edit: 6 years 4 months ago by Fisico. Reason: errori di layout messsaggio

Please Log in to join the conversation.

More
6 years 4 months ago #7968 by Fisico
Ho esaminato più in dettaglio cosa succede quando riavvio SWPI.
Ho notato questo:
10.....9.....8.....7.....6.....5.....4.....3.....2.....1.....
[06/11/2017-13:45:46] System revision : 0010
[06/11/2017-13:45:47] loading plugins
[06/11/2017-13:45:47] Starting sensor reading - Sensor type is : WMR100
[06/11/2017-13:45:47] Thread started
[06/11/2017-13:45:47] USB initialization
[06/11/2017-13:45:47] USB WMR100 found
[06/11/2017-13:45:47] USB WMR100 open
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/swpi/web_server.py", line 242, in run
    s=SocketServer.TCPServer(("",port),ScriptRequestHandler)
  File "/usr/lib/python2.7/SocketServer.py", line 419, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/SocketServer.py", line 430, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
error: [Errno 98] Address already in use

ls: impossibile accedere a /dev/ttyUSB0: File o directory non esistente

In pratica, se interpreto bene, non viene effettuata una corretta connessione USB con la stazione meteo (che è fisicamente connessa via USB con il Raspberry.
Quello che non riesco a capire è se il problema è lato Rasp o lato stazione. Può essere che il Rasp ha i connettori USB fuori uso?

Please Log in to join the conversation.

More
6 years 4 months ago #7970 by tony
No. L'errore e sul server web. La porta che hai scelto è in uso da qualcje altro programma. Disabilita il webserver o cambia porta o spegni il servizio su quella porta.
TT

Please Log in to join the conversation.

More
6 years 4 months ago #7971 by Fisico
Grazie Tony. Scusa, ma non sono un granché come smanettone.
Sapresti darmi qualche dettaglio su come realizzare una delle soluzioni che suggerisci? Come faccio ad esempio a cambiare porta? E' per caso la porta indicata nel file config? Quindi di default la 80? Nel caso volessi verificare e spegnerla come faccio?

Please Log in to join the conversation.

More
6 years 4 months ago #7972 by tony
config_web_server = False

Per spegnerlo

config_web_server_port = ??

Per cambiare porta

TT

Please Log in to join the conversation.

More
6 years 4 months ago #7973 by Fisico
Non capisco come sia avvenuto il conflitto. Non ho cambiato nulla nella rete. In ogni caso, volendo cambiare porta, quale mi consigli per evitare di creare altri conflitti con altre servizi?

Please Log in to join the conversation.

More
6 years 4 months ago #7974 by Fisico
Ho cambiato la porta da 80 a 89, ma continuava a coprire l'errore. Allora, ho disabilitato del tutto il servizio web server. Ho riavviato sopii ed ora compare questo:
************************************************************************
*                      Sint Wind PI 01.24.60                           *
*                                                                      *
*          2012-2017 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/11/2017-21:53:56] System revision : 0010
[06/11/2017-21:53:58] loading plugins
[06/11/2017-21:53:58] Starting sensor reading - Sensor type is : WMR100
[06/11/2017-21:53:58] Thread started
[06/11/2017-21:53:58] USB initialization
[06/11/2017-21:53:58] USB WMR100 found
[06/11/2017-21:53:58] USB WMR100 open
ls: impossibile accedere a /dev/ttyUSB0: File o directory non esistente
[06/11/2017-21:53:58] Checking internet connection ...
[06/11/2017-21:53:58] Internet ok
[06/11/2017-21:53:58] Checking internet connection ...
[06/11/2017-21:53:58] Internet ok
lun  6 nov 2017, 21.53.58, CET
[06/11/2017-21:53:58] System time adjusted from NTP server : europe.pool.ntp.org
[06/11/2017-21:53:58] Connected with IP :xxxxxxxxxx

[06/11/2017-21:53:58] Local IP :xxxxxxxxxx Public IP : xxxxxxxxxxx

[06/11/2017-21:53:58] Starting General WatchDog
lun  6 nov 2017, 21.53.59, CET
[06/11/2017-21:53:59] System time adjusted from NTP server : europe.pool.ntp.org
[06/11/2017-21:54:08] USB initialization
[06/11/2017-21:54:08] USB WMR100 found
[06/11/2017-21:54:08] USB WMR100 open
[06/11/2017-21:54:08] USB WMR100 initialized
[06/11/2017-21:55:06] USB initialization
[06/11/2017-21:55:06] USB WMR100 found
[06/11/2017-21:55:06] USB WMR100 open
[06/11/2017-21:55:16] USB initialization
[06/11/2017-21:55:16] USB WMR100 found
[06/11/2017-21:55:16] USB WMR100 open
[06/11/2017-21:55:26] USB initialization
[06/11/2017-21:55:26] USB WMR100 found
[06/11/2017-21:55:26] USB WMR100 open
[06/11/2017-21:55:36] USB initialization
[06/11/2017-21:55:36] USB WMR100 found
[06/11/2017-21:55:36] USB WMR100 open
[06/11/2017-21:55:46] USB initialization
[06/11/2017-21:55:46] USB WMR100 found
[06/11/2017-21:55:46] USB WMR100 open
[06/11/2017-21:55:56] USB initialization
[06/11/2017-21:55:56] USB WMR100 found
[06/11/2017-21:55:56] USB WMR100 open
[06/11/2017-21:55:58] Checking internet connection ...
[06/11/2017-21:55:58] Internet ok
[06/11/2017-21:55:59] Disk space left = 519 Mb
[06/11/2017-21:55:59] Sleeping 600 seconds
lun  6 nov 2017, 21.55.59, CET
[06/11/2017-21:55:59] System time adjusted from NTP server : europe.pool.ntp.org
[06/11/2017-21:56:05] USB initialization
[06/11/2017-21:56:05] USB WMR100 found
[06/11/2017-21:56:05] USB WMR100 open
[06/11/2017-21:56:06] USB WMR100 initialized
[

In pratica non trova ttyUSB0, che in effetti non c'è nella cartella dev... ma come è possibile?

Please Log in to join the conversation.

More
6 years 4 months ago #7975 by Fisico
e niente... il problema è ce non viene creato ttyUSB0...

Please Log in to join the conversation.

More
6 years 4 months ago #7976 by tony
No. Quel messaggio non centra nulla. Il problema è la stazione.
Prova il comando : lsusb

Please Log in to join the conversation.

More
6 years 4 months ago #7977 by Fisico
Ecco cosa produce lsusb spostando la connessione usb delle stazione su tre delle quattro porte del Raspberry:
pi@swpi /dev $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0fde:ca01  
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
pi@swpi /dev $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 005: ID 0fde:ca01  
pi@swpi /dev $ lsusb
Bus 001 Device 006: ID 0fde:ca01  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 

Please Log in to join the conversation.

More
6 years 4 months ago #7978 by tony
La stazione c'è . E' la :

Bus 001 Device 004: ID 0fde:ca01

Strano ...

Please Log in to join the conversation.

More
6 years 4 months ago #7979 by Fisico
Ogni volta che riconnetto la stazione si incrementa il numero device con id 0fde:ca01

Please Log in to join the conversation.

More
6 years 4 months ago #7980 by Fisico
In /dev/ dove dovrebbe esserci ttyUSB0, ho notato un ttyAMA0, ma non credo abbia un senso...

Please Log in to join the conversation.

More
6 years 4 months ago #7981 by Fisico
La cosa che non capisco è se il problema del mancato riconoscimento dell'usb sia da imputare alla stazione o al Raspberry a livello fisico, oppure se c'è qualche conflitto software.
Ho installato nella mia rete domestica un altro rasp con altre funzioni e vi accedo con un ssh terminal da iOS: questa è l'unica cosa che mi viene in mente che ho fatto il giorno in cui il mio SWPI ha smesso di funzionare...
Non riesco a venirne a capo... uffa...

Please Log in to join the conversation.

More
6 years 4 months ago #7982 by Fisico
Sempre che possa interessare, vi aggiorno di qualche prova fatta:
- ho inserito la sd in una altro Raspberry e avviato. Ancora lo stesso start:

10.....9.....8.....7.....6.....5.....4.....3.....2.....1.....
[06/11/2017-21:53:56] System revision : 0010
[06/11/2017-21:53:58] loading plugins
[06/11/2017-21:53:58] Starting sensor reading - Sensor type is : WMR100
[06/11/2017-21:53:58] Thread started
[06/11/2017-21:53:58] USB initialization
[06/11/2017-21:53:58] USB WMR100 found
[06/11/2017-21:53:58] USB WMR100 open
ls: impossibile accedere a /dev/ttyUSB0: File o directory non esistente

Ne deduco che il problema usb non è lato Raspberry bensì o si è fatta fuori la porta usb della stazione, oppure è un baco software del swpi...

Please Log in to join the conversation.

More
6 years 4 months ago #7983 by tony
Non c'è nessun problema sulla USB. il messaggio /dev/ttyUSB0 (come detto anche sopra ) non c'entra nulla con la tua stazione. E' un messaggio del driver per la chiavetta telefonica. La tua stazione viene riconosciuta ed inizializzata correttamente ma per qualche motivo non sembra restituire dati.
Non ho una WMR per testare e anche il driver è stato sviluppato a distanza con i test di Stefano ... prova a vedere i vecchi messaggi sull'argomento ... per ora non so come aiutarti.
TT

Please Log in to join the conversation.

More
6 years 4 months ago #7984 by Fisico
Scusa Tony, io pensavo che ttyUSB0 fosse la porta che comunica con la stazione...
La cosa allora è più che strana.
Uno... non ho nessuna chiavetta telefonica sul rasp,
Due... il collegamento con la stazione WMR88 ha funzionato egregiamente fino due settimane fa.
L’unica cosa che ho fatto in questi giorni è stato installare la versione nuova swpi_1038, ma non credo che questo sia la causa

Please Log in to join the conversation.

More
6 years 4 months ago #7985 by tony
o... non ho nessuna chiavetta telefonica sul rasp,

Ed è per quello che ti da quel messaggio ... IGNORALO.
ni è stato installare la versione nuova swpi_1038,

Si allora si tratta di qualche incompatibilità della nuova versione con la gestion USB.

Prova a reinstallare la 8xx ..

TT

Please Log in to join the conversation.

More
6 years 4 months ago #7990 by Fisico
Dunque... reinstallato swpi 845 (versione swpi 1.23.72). Appena avviato, carico il mio file config, ma lascio stazione SIMULATE.
Il risultato è che mi legge i dati meteo e li invia in rete.
A questo punto penso di essere a posto, così, imposto stazione WMR100... e il risultato è questo:
[08/11/2017-10:42:57] Starting SINT WIND PI  ... 
************************************************************************
*                      Sint Wind PI 01.23.72                           *
*                                                                      *
*          2012-2015 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.....
[08/11/2017-10:43:09] loading plugins
[08/11/2017-10:43:09] Starting sensor reading - Sensor type is : WMR100
[08/11/2017-10:43:09][08/11/2017-10:43:09] Thread started
[08/11/2017-10:43:09]  Config Server running on port 8080
USB initialization
[08/11/2017-10:43:09] USB WMR100 found
[08/11/2017-10:43:09] USB WMR100 open
ls: impossibile accedere a /dev/ttyUSB0: File o directory non esistente
[08/11/2017-10:43:09] Checking internet connetion ...
[08/11/2017-10:43:09] USB WMR100 initialized
[08/11/2017-10:43:09] Internet ok
[08/11/2017-10:43:09] Checking internet connetion ...
[08/11/2017-10:43:09] Internet ok
mer  8 nov 2017, 10.43.09, CET
[08/11/2017-10:43:09] System time adjusted from NPT server : europe.pool.ntp.org
[08/11/2017-10:43:09] Connected with IP :<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /ip.php was not found on this server.</p>
</body></html>

[08/11/2017-10:43:09] Starting General WatchDog
mer  8 nov 2017, 10.43.10, CET
[08/11/2017-10:43:10] System time adjusted from NPT server : europe.pool.ntp.org
[08/11/2017-10:45:09] Checking internet connetion ...
[08/11/2017-10:45:09] Internet ok
[08/11/2017-10:45:10] Rereading config file ..
[08/11/2017-10:45:10] Disk space left = 530 Mb
[08/11/2017-10:45:10] Sleeping 600 seconds
mer  8 nov 2017, 10.45.10, CET
[08/11/2017-10:45:10] System time adjusted from NPT server : europe.pool.ntp.org
[08/11/2017-10:55:09] Checking internet connetion ...
[08/11/2017-10:55:09] Internet ok
[08/11/2017-10:55:10] Rereading config file ..
[08/11/2017-10:55:10] Disk space left = 530 Mb
[08/11/2017-10:55:10] Sleeping 600 seconds
mer  8 nov 2017, 10.55.11, CET
[08/11/2017-10:55:11] System time adjusted from NPT server : europe.pool.ntp.org
[08/11/2017-10:58:09] Last main Thread delay ratio: 0.3
[08/11/2017-11:05:10] Checking internet connetion ...
[08/11/2017-11:05:10] Internet ok
[08/11/2017-11:05:11] Rereading config file ..
[08/11/2017-11:05:11] Disk space left = 530 Mb
[08/11/2017-11:05:11] Sleeping 600 seconds
mer  8 nov 2017, 11.05.11, CET
[08/11/2017-11:05:11] System time adjusted from NPT server : europe.pool.ntp.org
[08/11/2017-11:08:09] Last main Thread delay ratio: 0.3
[08/11/2017-11:15:10] Checking internet connetion ...
[08/11/2017-11:15:10] Internet ok
[08/11/2017-11:15:11] Rereading config file ..
[08/11/2017-11:15:11] Disk space left = 530 Mb
[08/11/2017-11:15:11] Sleeping 600 seconds
mer  8 nov 2017, 11.15.12, CET
[08/11/2017-11:15:12] System time adjusted from NPT server : europe.pool.ntp.org
[08/11/2017-11:18:09] Last main Thread delay ratio: 0.3

Continua a rileggere il file di configurazione e non va avanti. Ovviamente nessun dato viene trasferito da stazione a swpi...
Tra l'altro noto dei comportamenti strani con le connessioni in rete. Ho impostato il web server sulla porta :8080 perché la :80 mi aveva dato problemi (address already in use). Peccato che ora riesco ad accedere alla configurazione web sia sulla porta :80 sia sulla porta :8080.
Per altro se invio comandi tramite web server (es. reboot) questi non vengono eseguiti e mi butta fuori dal web server (videata con richiesta password).
Davvero è un rompicapo... credo ci siano problemi multipli...
e il bello è che fino all'altro ieri funzionava tutto perfettamente...

Please Log in to join the conversation.

More
6 years 4 months ago #7991 by tony
A questo punto quindi credo puoi escludere che il problema sia SWPI visto che prima quella versione funzionava ed ora no. Qualche problema alla stazione ?
TT

Please Log in to join the conversation.

More
6 years 4 months ago - 6 years 4 months ago #7992 by Fisico
Oggi in effetti ho notato che la stazione non riceve più i dati dall’anemometro a causa di batterie scariche. Forse che non avendo la stazione dati del vento da trasmettere a swpi, lo manda in palla?
Last edit: 6 years 4 months ago by Fisico. Reason: Errore digitazione

Please Log in to join the conversation.

More
6 years 4 months ago #8003 by Fisico
Finalmente sono venuto a capo della questione. Ve lo scrivo perché penso possa tornare utile a livello generale. In pratica l’anemometro collegato alla stazione wmr88, aveva le batterie scariche. Quindi la stazione non aveva i dati di vento (solo il vento!) da trasmettere a swpi. Tutti gli altri dati meteo c’erano.
Ebbene la mancanza dei dati di vento bloccava la comunicazione con swpi.
Due batterie AA il problema di è risolto.
Ma non è finita. Ora swpi va per qualche ora e poi, generalmente di notte non loggia più al database. Avete ipotesi/tentativi di soluzione da proporre...
Se non riesco a risolvere questi problemi che ormai mi affliggono da più di un mese, sarò mio malgrado costretto ad abbandonare il progetto...

Please Log in to join the conversation.

More
6 years 1 week ago #8145 by netsoul
Temo ci sia un problema con l'alimentazione USB e le pile della stazione. Mi spiego meglio: dopo molti mesi di utilizzo continuo e senza problemi della versione per Raspberry Pi 3, l'altro giorno decido di cambiare le pile della stazione. Al momento del riavvio, ho notato che il comportamento del pannello della stazione era molto strano: tutti gli allarmi erano attivi e c'erano impostazioni che non avevo mai visto. Casualità? Da quel momento il SintWind pi si è bloccato proprio con gli stessi errori. Dopo aver letto il post ho fatto una prova: il pannello ricevitore ora è senza batterie stilo, alimentato dall'usb del raspberry e funziona perfettamente. Che vuol dire?

Please Log in to join the conversation.

More
6 years 1 week ago #8146 by Bendinelli
Ciao,
se hai un tester controlla la tensione delle pile, molto probabilmente una è scarica.

Claudio

PCE-FSW 20
Raspberry Pi 2 Modello B
swpi - Raspbian GNU/Linux 8.0 (jessie) #884 4.4.9-v7+
Sint Wind PI 01.27.27

Please Log in to join the conversation.

More
6 years 1 week ago #8149 by netsoul
Nuovissime! In realtà una è anche leggermente sovraccarica 1,6

Please Log in to join the conversation.

More
6 years 1 week ago #8151 by Bendinelli
Io farei questa prova:
- verificare con un tester che le pile siano perfettamente cariche
- scollegare l'USB, da dove attualmente prende l'alimentazione
- attendere un minuto
- inseire le nuove pile
- attendere il riavvio della stazione
se il riavvio si conclude con esito positivo ricollegare il cavetto USB.
Fammi sapere
Ciao

Claudio

PCE-FSW 20
Raspberry Pi 2 Modello B
swpi - Raspbian GNU/Linux 8.0 (jessie) #884 4.4.9-v7+
Sint Wind PI 01.27.27

Please Log in to join the conversation.

Time to create page: 1.050 seconds