Re: Plugin SMS
Publié : 23 févr. 2015, 22:38
J'ai réinstallé la dernière version du plugin et voici les dernières lignes du mode debug. Ma clé HUAWEI reste non visible dans le port.
2015-02-23 22:33:27,381 - MainThread - smscmd:620 - DEBUG - Write PID file
2015-02-23 22:33:27,384 - MainThread - smscmd:627 - DEBUG - Deactivate screen printouts
2015-02-23 22:33:27,386 - MainThread - smscmd:630 - DEBUG - Start daemon
2015-02-23 22:33:27,435 - MainThread - smscmd:333 - DEBUG - Writing PID 18970 to /tmp/sms.pid
2015-02-23 22:33:27,469 - MainThread - smscmd:197 - DEBUG - Start listening...
2015-02-23 22:33:27,482 - MainThread - smscmd:200 - DEBUG - Connecting to GSM Modem...
INFO: Connecting to modem on port None at 115200bps
DEBUG: write: ATZ
2015-02-23 22:33:27,733 - MainThread - smscmd:224 - ERROR - Exception: 'Serial' object has no attribute 'fd'
ERROR: Exception: 'Serial' object has no attribute 'fd'
2015-02-23 22:33:27,736 - MainThread - smscmd:226 - DEBUG - Execute shell : /usr/bin/php /usr/share/nginx/www/jeedom/plugins/sms/ressources/smscmd/../../core/php/jeeSMS.php number="none" message="'Serial' object has no attribute 'fd'"
DEBUG: Execute shell : /usr/bin/php /usr/share/nginx/www/jeedom/plugins/sms/ressources/smscmd/../../core/php/jeeSMS.php number="none" message="'Serial' object has no attribute 'fd'"
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/share/nginx/www/jeedom/plugins/sms/ressources/smscmd/gsmmodem/serial_comms.py", line 93, in _readLoop
data = self.serial.read(1)
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 439, in read
if self.fd is None: raise portNotOpenError
AttributeError: 'Serial' object has no attribute 'fd'
Exception: 'Serial' object has no attribute 'fd'
2015-02-23 22:33:27,779 - Thread-2 - smscmd:108 - DEBUG - Thread started, timeout = 10
DEBUG: Thread started, timeout = 10
2015-02-23 22:33:29,188 - Thread-2 - smscmd:111 - DEBUG - Return code: 0
DEBUG: Return code: 0
2015-02-23 22:33:29,191 - Thread-2 - smscmd:112 - DEBUG - Thread finished
DEBUG: Thread finished
2015-02-23 22:33:27,381 - MainThread - smscmd:620 - DEBUG - Write PID file
2015-02-23 22:33:27,384 - MainThread - smscmd:627 - DEBUG - Deactivate screen printouts
2015-02-23 22:33:27,386 - MainThread - smscmd:630 - DEBUG - Start daemon
2015-02-23 22:33:27,435 - MainThread - smscmd:333 - DEBUG - Writing PID 18970 to /tmp/sms.pid
2015-02-23 22:33:27,469 - MainThread - smscmd:197 - DEBUG - Start listening...
2015-02-23 22:33:27,482 - MainThread - smscmd:200 - DEBUG - Connecting to GSM Modem...
INFO: Connecting to modem on port None at 115200bps
DEBUG: write: ATZ
2015-02-23 22:33:27,733 - MainThread - smscmd:224 - ERROR - Exception: 'Serial' object has no attribute 'fd'
ERROR: Exception: 'Serial' object has no attribute 'fd'
2015-02-23 22:33:27,736 - MainThread - smscmd:226 - DEBUG - Execute shell : /usr/bin/php /usr/share/nginx/www/jeedom/plugins/sms/ressources/smscmd/../../core/php/jeeSMS.php number="none" message="'Serial' object has no attribute 'fd'"
DEBUG: Execute shell : /usr/bin/php /usr/share/nginx/www/jeedom/plugins/sms/ressources/smscmd/../../core/php/jeeSMS.php number="none" message="'Serial' object has no attribute 'fd'"
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 505, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/share/nginx/www/jeedom/plugins/sms/ressources/smscmd/gsmmodem/serial_comms.py", line 93, in _readLoop
data = self.serial.read(1)
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 439, in read
if self.fd is None: raise portNotOpenError
AttributeError: 'Serial' object has no attribute 'fd'
Exception: 'Serial' object has no attribute 'fd'
2015-02-23 22:33:27,779 - Thread-2 - smscmd:108 - DEBUG - Thread started, timeout = 10
DEBUG: Thread started, timeout = 10
2015-02-23 22:33:29,188 - Thread-2 - smscmd:111 - DEBUG - Return code: 0
DEBUG: Return code: 0
2015-02-23 22:33:29,191 - Thread-2 - smscmd:112 - DEBUG - Thread finished
DEBUG: Thread finished