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
385 stars 303 forks source link

Error running ussd_demo.py #100

Open ambiflextrous opened 5 years ago

ambiflextrous commented 5 years ago

I ran the ussd_demo.py and got this message: ussd_demo.py|24 error| in main modem.waitForNetworkCoverage(10) /home/hugoweslien/.local/lib/python2.7/site-packages/gsmmodem/modem.py|602 error| in waitForNetworkCoverage cregResult = lineMatching(r'^\+CREG:\s*(\d),(\d)$', self.write('AT+CREG?', parseEr ror=False)) # example result: +CREG: 0,1 3 /home/hugoweslien/.local/lib/python2.7/site-packages/gsmmodem/modem.py|413 error| in write responseLines = super(GsmModem, self).write(data + writeTerm, waitForResponse=waitForResponse, time out=timeout, expectedResponseTermSeq=expectedResponseTermSeq)

What am I missing?