Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sms_handler fails #96

Open
fmarzocca opened this issue May 10, 2021 · 2 comments
Open

sms_handler fails #96

fmarzocca opened this issue May 10, 2021 · 2 comments

Comments

@fmarzocca
Copy link

fmarzocca commented May 10, 2021

Hi,

my GSM modem is a Huawei:
Bus 001 Device 008: ID 12d1:155e Huawei Technologies Co., Ltd.

I am trying to run sms_handler.py, but it always fails on start and exits after printing "Waiting for SMS messages":

Initializing modem...
INFO: Connecting to modem on port /dev/ttyUSB2 at 115200bps
DEBUG: write: ATZ
DEBUG: response: ['OK']
DEBUG: write: ATE0
DEBUG: response: ['OK']
DEBUG: write: AT+CFUN?
DEBUG: response: ['+CFUN: 1', 'OK']
DEBUG: write: AT+CMEE=1
DEBUG: response: ['OK']
DEBUG: write: AT+CPIN?
DEBUG: response: ['+CPIN: READY', 'OK']
DEBUG: write: AT+CLAC
DEBUG: response: ['ERROR']
DEBUG: write: AT
DEBUG: response: ['OK']
DEBUG: write: AT^CVOICE=?
DEBUG: response: ['^CVOICE: (0)', 'OK']
DEBUG: write: AT+VTS=?
DEBUG: response: ['+VTS: (0-9,A-D,*,#)', 'OK']
DEBUG: write: AT^DTMF=?
DEBUG: response: ['ERROR']
DEBUG: write: AT^USSDMODE=?
DEBUG: response: ['^USSDMODE: (0-1)', 'OK']
DEBUG: write: AT+WIND=?
DEBUG: response: ['ERROR']
DEBUG: write: AT+ZPAS=?
DEBUG: response: ['ERROR']
DEBUG: write: AT+CSCS=?
DEBUG: response: ['+CSCS: ("IRA","UCS2","GSM")', 'OK']
DEBUG: write: AT+CNUM=?
DEBUG: response: ['OK']
DEBUG: write: AT^CVOICE=0
DEBUG: response: ['OK']
DEBUG: write: AT^USSDMODE=0
DEBUG: response: ['OK']
DEBUG: write: AT+CGMI
DEBUG: response: ['Vodafone (Huawei)', 'OK']
DEBUG: write: AT+CGMI
DEBUG: response: ['Vodafone (Huawei)', 'OK']
DEBUG: write: AT+ZPAS?
DEBUG: response: ['ERROR']
INFO: Unknown/generic modem type - will use polling for call state updates
DEBUG: write: AT+COPS=3,0
DEBUG: response: ['OK']
DEBUG: write: AT+CMGF=0
DEBUG: response: ['OK']
DEBUG: write: AT+CSCA?
DEBUG: response: ['+CSCA: "+393205858500",145', 'OK']
DEBUG: write: AT+CSMP=49,167,0,0
DEBUG: response: ['ERROR']
DEBUG: write: AT+CSCA?
DEBUG: response: ['+CSCA: "+393205858500",145', 'OK']
DEBUG: write: AT+CPMS=?
DEBUG: response: ['+CPMS: ("SM","ME"),("SM","ME"),("SM","ME")', 'OK']
DEBUG: write: AT+CPMS="ME","ME","ME"
DEBUG: response: ['+CPMS: 0,20,0,20,0,20', 'OK']
DEBUG: write: AT+CNMI=2,1,0,2
DEBUG: response: ['OK']
DEBUG: write: AT+CLIP=1
DEBUG: response: ['OK']
DEBUG: write: AT+CRC=1
DEBUG: response: ['ERROR']
WARNING: Extended format incoming call indication not supported by modem. Error: AT+CRC=1
DEBUG: write: AT+CVHU=0
DEBUG: response: ['ERROR']
Waiting for SMS message...
@debackel
Copy link

Same problem with my Huawei E303.
Bus 001 Device 007: ID 12d1:1c05 Huawei Technologies Co., Ltd. Broadband stick (modem on)

@OhSoGood
Copy link

OhSoGood commented Oct 24, 2022

Did anyone find the cause of this problem?

For info, with the very same hardware (Simcom Sim7600, same Raspberry),

  • the sample code has the same issue that you described, on Debian 11 32bit, with python 3.7, python-gsmmodem-new v0.13.0, pyserial 3.4
  • but is running fine with Debian 11 64bit, with python 3.9, python-gsmmodem-new v0.13.0, pyserial 3.5b0

Hack to bypass the issue: change modem.rxThread.join(2**31) into modem.rxThread.join()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants