faucamp / python-gsmmodem

Python module to control a GSM modem attached to the system: send/receive SMS messages, handle calls, etc
GNU Lesser General Public License v3.0
384 stars 302 forks source link

Timeout for CPIN command may be too short? #50

Closed MaplerStory closed 7 years ago

MaplerStory commented 9 years ago

the timeout for CPIN command is 0.25 cpinResponse = lineStartingWith('+CPIN', self.write('AT+CPIN?', timeout=0.25)) it's very easy to raise TimeoutException. and many other command use the default timeout (timeout=5), so why this command use such a short timeout? dose it mean to?

babca commented 7 years ago

The timeout was probably too short. Your issue should be resolved, see: https://github.com/babca/python-gsmmodem/issues/11

MaplerStory commented 7 years ago

yeah, that's good~~ :+1: