zabsalahid / serialport-gsm

SerialPort-GSM is a simplified plugin for communicating with gsm modems. (Primarily for sms) (Focused in PDU mode)
MIT License
90 stars 47 forks source link

Modem does not initiate #59

Closed Marty56 closed 4 years ago

Marty56 commented 4 years ago

I have tried this module in May last year and it was working. Now I resuming my project and the module is showing error when initializing.

` 2020-02-18 16:43:03.649 - info: javascript.0 (18086) script.js.test.SIM2: Modem Sucessfully Opened

2020-02-18 16:43:04.265 - info: javascript.0 (18086) script.js.test.SIM2: [{'comName':'/dev/ttyAMA0'},{'manufacturer':'MediaTek Inc','pnpId':'usb-MediaTek_Inc_Product-if02-port0','vendorId':'0e8d','productId':'00a5','comName':'/dev/ttyUSB0'},{'manufacturer':'MediaTek Inc','pnpId':'usb-MediaTek_Inc_Product-if03-port0','vendorId':'0e8d','productId':'00a5','comName':'/dev/ttyUSB1'},{'manufacturer':'MediaTek Inc','pnpId':'usb-MediaTek_Inc_Product-if04-port0','vendorId':'0e8d','productId':'00a5','comName':'/dev/ttyUSB2'},{'manufacturer':'MediaTek Inc','pnpId':'usb-MediaTek_Inc_Product-if05-port0','vendorId':'0e8d','productId':'00a5','comName':'/dev/ttyUSB3'},{'manufacturer':'Texas Instruments','serialNumber':'0X00124B0018DF33FC','pnpId':'usb-Texas_Instruments_TI_CC2531_USBCDC0X00124B0018DF33FC-if00','vendorId':'0451','productId':'16a8','comName':'/dev/ttyACM0'}]

2020-02-18 16:43:33.652 - info: javascript.0 (18086) script.js.test.SIM2: Error Initializing Modem - Error: timeout: {"_events":{},"_eventsCount":1,"_maxListeners":100,"command":"ATZ","add_time":"2020-02-18T15:43:03.650Z","id":2,"timeout":30000,"inProgress":true,"execute_time":"2020-02-18T15:43:03.651Z"}

2020-02-18 16:44:35.380 - info: javascript.0 (18086) script.js.test.SIM2: Event Close: {"modem":"/dev/ttyAMA0","status":"Offline"} ` Any thoughts?

Apollon77 commented 4 years ago

Reconnect the USB device? It seems the modem do not answer to ATZ call which should be the initialization call

Marty56 commented 4 years ago

I have unplugged the modem and waited for some time. Did not reboot my raspberry. No change. Update: raspberry has been rebooted but modem cannot initialize.

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.