zabsalahid / serialport-gsm

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

Enhancements for Huawei K3765 HSPA stick #18

Closed Apollon77 closed 5 years ago

Apollon77 commented 5 years ago

hey, I found your library and tried it with my Vodafone GSM USB stick which in fact is a Huawei K3765. I use this stick so far with "smstools3" which was working fine after some initial stuff some time ago,

Here I have a log what they are sending roughly in this easy case to check for sms on sim, but it shown the initialization stuff. maybe it helps.

2019-04-25 18:14:37,6, GSM1: Checking device for incoming SMS
2019-04-25 18:14:37,6, GSM1: Checking if modem is ready
2019-04-25 18:14:37,7, GSM1: -> AT
2019-04-25 18:14:37,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:14:38,7, GSM1: <- OK
2019-04-25 18:14:38,6, GSM1: Pre-initializing modem
2019-04-25 18:14:38,7, GSM1: -> ATE0+CMEE=1;+CLIP=1;+CREG=2
2019-04-25 18:14:38,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:14:38,7, GSM1: <- OK
2019-04-25 18:14:38,6, GSM1: Checking if modem needs PIN
2019-04-25 18:14:38,7, GSM1: -> AT+CPIN?
2019-04-25 18:14:38,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:14:38,7, GSM1: <- +CPIN: READY OK
2019-04-25 18:14:38,6, GSM1: Initializing modem
2019-04-25 18:14:39,7, GSM1: -> AT^CURC=0
2019-04-25 18:14:39,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:14:39,7, GSM1: <- OK
2019-04-25 18:14:39,7, GSM1: -> AT+CSQ
2019-04-25 18:14:39,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:14:39,7, GSM1: <- +CSQ: 12,99 OK
2019-04-25 18:14:39,6, GSM1: Signal Strength Indicator: (12,99) -89 dBm (Workable), Bit Error Rate: not known or not detectable
2019-04-25 18:14:39,6, GSM1: Checking if Modem is registered to the network
2019-04-25 18:14:40,7, GSM1: -> AT+CREG?
2019-04-25 18:14:40,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:14:40,7, GSM1: <- +CREG: 2,1, 1C00A7, 15E5 OK
2019-04-25 18:14:40,6, GSM1: Modem is registered to the network
2019-04-25 18:14:40,6, GSM1: Selecting PDU mode
2019-04-25 18:14:40,7, GSM1: -> AT+CMGF=0
2019-04-25 18:14:40,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:14:40,7, GSM1: <- OK
2019-04-25 18:14:40,6, GSM1: Checking memory size
2019-04-25 18:14:41,7, GSM1: -> AT+CMGD=?
2019-04-25 18:14:41,7, GSM1: Command is sent, waiting for the answer
2019-04-25 18:14:41,7, GSM1: <- +CMGD: (),(0-4) OK
2019-04-25 18:14:41,6, GSM1: No SMS received

I will also experiment further because right now it is not sending any SMS :-(