Re: Kannel and Huawei EC167 and EC156 failed to reponse to AT+CPIN=? command
Hi Always cc the list so you can receive feedback from more people and others can benefit from this info. You can alway hack kannel code and change that setup. Regards, Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Wed, Jun 15, 2016 at 9:01 AM, Paul Isidore wrote: > Thank you very much, > Now I remark my modem accept only PDU text mode (AT+CMGF=1) but Kannel > want to set it to PDU Mode (AT+CMGF=0 in log) and make Error message . > Are there a solution to change this behaviour ? > I don't see anything like no-cmgf or cmgf=1 in config file description. > > Thank you > Cordialy, > > Paul Isidore > > Log file: > 2016-06-15 13:48:53 [1747] [6] DEBUG: AT2[huawei]: device opened > 2016-06-15 13:48:53 [1747] [6] INFO: AT2[huawei]: Logging in > 2016-06-15 13:48:53 [1747] [6] INFO: AT2[huawei]: init device > 2016-06-15 13:48:53 [1747] [6] INFO: AT2[huawei]: speed set to 9600 > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> ATZ^M > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT^M > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- AT > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT&F^M > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- AT&F > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> ATE0^M > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- ATE0 > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT+IFC=2,2^M > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: --> AT+CMGF=0^M > 2016-06-15 13:48:54 [1747] [6] DEBUG: AT2[huawei]: <-- ERROR > 2016-06-15 13:48:54 [1747] [6] ERROR: AT2[huawei]: Generic error: ERROR > 2016-06-15 13:48:54 [1747] [6] ERROR: AT2[huawei]: Initialization of > device failed. > 2016-06-15 13:48:54 [1747] [6] INFO: AT2[huawei]: Closing device > 2016-06-15 13:48:54 [1747] [6] ERROR: AT2[huawei]: Couldn't connect > (retrying in 10 seconds). > > > > ------------------ > *De :* Alvaro Cornejo > *Envoyé :* mercredi 15 juin 2016 13:25 > > *À :* Paul Isidore > *Cc :* users@kannel.org > *Objet :* Re: Kannel and Huawei EC167 and EC156 failed to reponse to > AT+CPIN=? command > > Hi > > The message is clear. You modem does not support the AT+CSCA command. > Remove it from config. > > In most cases, smsc center is configured automatically by the operator > through the sim card and sim initialization. Therefore you shouldn't need > to configure it. > > Regards, > > Alvaro > > > |-| > Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier > celular y Nextel > en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS > y GPRS online > Visitenos en www.perusms.com > > On Tue, Jun 14, 2016 at 6:26 PM, Paul Isidore > wrote: > >> Hi, >> >> Indeed, I take the CPIN command config modem and this time I get a new >> error message about attaching the smsc center number, i also try the >> no-smsc to circumvent this but still get this new error message. (While >> both modem sends and receive sms on Windows 8.1). >> >> >> Best regards, >> >> >> Here is a copy of the log file: >> >> 2016-06-14 22:55:07 [1760] [7] DEBUG: Thread 7 >> (gw/bb_smscconn.c:sms_router) maps to pid 1760. >> 2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: trying to use speed >> <9600> from modem definition >> 2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: opening device >> 2016-06-14 22:55:07 [1760] [0] INFO: Loading store file >> `/var/log/kannel/kannel.store' >> 2016-06-14 22:55:07 [1760] [0] INFO: Store-file size 0, starting to unpack >> 2016-06-14 22:55:07 [1760] [0] INFO: Retrieved 0 messages, >> non-acknowledged messages: 0 >> 2016-06-14 22:55:07 [1760] [6] DEBUG: AT2[huawei]: device opened. Telnet >> mode = 0 >> 2016-06-14 22:55:07 [1760] [0] DEBUG: Started thread 8 >> (gw/bb_store_file.c:store_dumper) >> 2016-06-14 22:55:07 [1760] [0] INFO:
Re: Kannel and Huawei EC167 and EC156 failed to reponse to AT+CPIN=? command
ates. > 2016-06-14 22:55:16 [1760] [4] DEBUG: Thread 4 > (gw/bb_boxc.c:sms_to_smsboxes) terminates. > 2016-06-14 22:55:16 [1760] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) > terminates. > > > -- > *De :* Alvaro Cornejo > *Envoyé :* mardi 14 juin 2016 19:29 > *À :* Paul Isidore > *Cc :* users@kannel.org > *Objet :* Re: Kannel and Huawei EC167 and EC156 failed to reponse to > AT+CPIN=? command > > Hi > > Don't know the solution but here are a couple of workarounds: > > If you don't use it that dongle for sms messaging, don't include it in > kannel config. > > Else you can remove CPIN command in your kannel config for that dongle. > > Regards > > Alvaro > > > |-| > Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier > celular y Nextel > en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS > y GPRS online > Visitenos en www.perusms.com > > On Mon, Jun 13, 2016 at 7:59 PM, Paul Isidore > wrote: > >> Hello, >> >> >> I'm newbie and i try to make a SMSC center woth Kannel and one of two >> Huawei dongle Modem (EC167 and EC156) >> >> After doing kannel configuration and run : >> >> sudo bearerbox -v 0 /etc/kannel/kannel.conf >> >> >> i got error SIM CARD not inserted. >> >> >> There is no need to use a SIM card with the USB dongle because i used it >> to connect to internet but i put one in it and the same error is still >> coming. >> >> >> this is the log file, please help me : >> >> >> 2016-06-14 00:50:05 [8472] [6] INFO: AT2[huawei]: Logging in >> 2016-06-14 00:50:05 [8472] [6] INFO: AT2[huawei]: init device >> 2016-06-14 00:50:05 [8472] [6] INFO: AT2[huawei]: speed set to 9600 >> 2016-06-14 00:50:05 [8472] [6] DEBUG: AT2[huawei]: --> ATZ^M >> 2016-06-14 00:50:05 [8472] [6] DEBUG: AT2[huawei]: <-- OK >> 2016-06-14 00:50:05 [8472] [6] DEBUG: AT2[huawei]: --> AT^M >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- AT >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- OK >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: --> AT&F^M >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- AT&F >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- OK >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: --> ATE0^M >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- ATE0 >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- OK >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: --> AT+IFC=2,2^M >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- OK >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: --> AT+CPIN?^M >> 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- +CME ERROR:SIM not >> inserted >> 2016-06-14 00:50:06 [8472] [6] ERROR: AT2[huawei]: Generic error: +CME >> ERROR:SIM not inserted >> 2016-06-14 00:50:06 [8472] [6] ERROR: AT2[huawei]: Initialization of >> device failed. >> 2016-06-14 00:50:06 [8472] [6] INFO: AT2[huawei]: Closing device >> 2016-06-14 00:50:06 [8472] [6] INFO: AT2[huawei]: Closing device >> >> >> > > -- > > *Paul Isidore A. NIAMIE* > > *?? Directeur G??n??ral??* > > *Micro Computer Programme* > > > *Bur: 00 221 33 864 42 54 * > > *Cell: 00 221 77 561 88 16 * > > ?? >
RE: Kannel and Huawei EC167 and EC156 failed to reponse to AT+CPIN=? command
Hi, Indeed, I take the CPIN command config modem and this time I get a new error message about attaching the smsc center number, i also try the no-smsc to circumvent this but still get this new error message. (While both modem sends and receive sms on Windows 8.1). Best regards, Here is a copy of the log file: 2016-06-14 22:55:07 [1760] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 1760. 2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: trying to use speed <9600> from modem definition 2016-06-14 22:55:07 [1760] [6] INFO: AT2[huawei]: opening device 2016-06-14 22:55:07 [1760] [0] INFO: Loading store file `/var/log/kannel/kannel.store' 2016-06-14 22:55:07 [1760] [0] INFO: Store-file size 0, starting to unpack 2016-06-14 22:55:07 [1760] [0] INFO: Retrieved 0 messages, non-acknowledged messages: 0 2016-06-14 22:55:07 [1760] [6] DEBUG: AT2[huawei]: device opened. Telnet mode = 0 2016-06-14 22:55:07 [1760] [0] DEBUG: Started thread 8 (gw/bb_store_file.c:store_dumper) 2016-06-14 22:55:07 [1760] [0] INFO: MAIN: Start-up done, entering mainloop 2016-06-14 22:55:07 [1760] [0] DEBUG: AT2[huawei]: start called 2016-06-14 22:55:07 [1760] [8] DEBUG: Thread 8 (gw/bb_store_file.c:store_dumper) maps to pid 1760. 2016-06-14 22:55:07 [1760] [8] DEBUG: Dumping 0 messages to store 2016-06-14 22:55:08 [1760] [6] DEBUG: AT2[huawei]: device opened 2016-06-14 22:55:08 [1760] [6] INFO: AT2[huawei]: speed set to 9600 2016-06-14 22:55:08 [1760] [6] DEBUG: AT2[huawei]: --> ^M 2016-06-14 22:55:10 [1760] [6] DEBUG: AT2[huawei]: --> AT^M 2016-06-14 22:55:10 [1760] [6] DEBUG: AT2[huawei]: <-- AT 2016-06-14 22:55:10 [1760] [6] DEBUG: AT2[huawei]: <-- OK 2016-06-14 22:55:10 [1760] [6] INFO: AT2[huawei]: Closing device 2016-06-14 22:55:10 [1760] [6] INFO: AT2[huawei]: speed is 9600 2016-06-14 22:55:10 [1760] [6] INFO: AT2[huawei]: opening device 2016-06-14 22:55:10 [1760] [6] DEBUG: AT2[huawei]: device opened. Telnet mode = 0 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: device opened 2016-06-14 22:55:11 [1760] [6] INFO: AT2[huawei]: Logging in 2016-06-14 22:55:11 [1760] [6] INFO: AT2[huawei]: init device 2016-06-14 22:55:11 [1760] [6] INFO: AT2[huawei]: speed set to 9600 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: --> ATZ^M 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: <-- ATZ 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: <-- OK 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: --> AT^M 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: <-- AT 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: <-- OK 2016-06-14 22:55:11 [1760] [6] DEBUG: AT2[huawei]: --> AT&F^M 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- AT&F 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- OK 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: --> ATE0^M 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- ATE0 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- OK 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: --> AT+IFC=2,2^M 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- OK 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: --> AT+CSCA="+XX"^M 2016-06-14 22:55:12 [1760] [6] DEBUG: AT2[huawei]: <-- COMMAND NOT SUPPORT 2016-06-14 22:55:14 [1760] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2016-06-14 22:55:14 [1760] [0] DEBUG: Shutting down Kannel... 2016-06-14 22:55:14 [1760] [0] DEBUG: shutting down smsc 2016-06-14 22:55:14 [1760] [0] DEBUG: AT2[huawei]: Shutting down SMSCConn, slow 2016-06-14 22:55:14 [1760] [0] DEBUG: shutting down udp 2016-06-14 22:55:16 [1760] [6] ERROR: AT2[huawei]: Initialization of device failed. 2016-06-14 22:55:16 [1760] [6] INFO: AT2[huawei]: Closing device 2016-06-14 22:55:16 [1760] [6] INFO: AT2[huawei]: Closing device 2016-06-14 22:55:16 [1760] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) terminates. 2016-06-14 22:55:16 [1760] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) terminates. 2016-06-14 22:55:16 [1760] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) terminates. De : Alvaro Cornejo Envoyé : mardi 14 juin 2016 19:29 À : Paul Isidore Cc : users@kannel.org Objet : Re: Kannel and Huawei EC167 and EC156 failed to reponse to AT+CPIN=? command Hi Don't know the solution but here are a couple of workarounds: If you don't use it that dongle for sms messaging, don't include it in kannel config. Else you can remove CPIN command in your kannel config for that dongle. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com<http://www.perusms.com> On Mon, Jun 13,
Re: Kannel and Huawei EC167 and EC156 failed to reponse to AT+CPIN=? command
Hi Don't know the solution but here are a couple of workarounds: If you don't use it that dongle for sms messaging, don't include it in kannel config. Else you can remove CPIN command in your kannel config for that dongle. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Mon, Jun 13, 2016 at 7:59 PM, Paul Isidore wrote: > Hello, > > > I'm newbie and i try to make a SMSC center woth Kannel and one of two > Huawei dongle Modem (EC167 and EC156) > > After doing kannel configuration and run : > > sudo bearerbox -v 0 /etc/kannel/kannel.conf > > > i got error SIM CARD not inserted. > > > There is no need to use a SIM card with the USB dongle because i used it > to connect to internet but i put one in it and the same error is still > coming. > > > this is the log file, please help me : > > > 2016-06-14 00:50:05 [8472] [6] INFO: AT2[huawei]: Logging in > 2016-06-14 00:50:05 [8472] [6] INFO: AT2[huawei]: init device > 2016-06-14 00:50:05 [8472] [6] INFO: AT2[huawei]: speed set to 9600 > 2016-06-14 00:50:05 [8472] [6] DEBUG: AT2[huawei]: --> ATZ^M > 2016-06-14 00:50:05 [8472] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-14 00:50:05 [8472] [6] DEBUG: AT2[huawei]: --> AT^M > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- AT > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: --> AT&F^M > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- AT&F > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: --> ATE0^M > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- ATE0 > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: --> AT+IFC=2,2^M > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- OK > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: --> AT+CPIN?^M > 2016-06-14 00:50:06 [8472] [6] DEBUG: AT2[huawei]: <-- +CME ERROR:SIM not > inserted > 2016-06-14 00:50:06 [8472] [6] ERROR: AT2[huawei]: Generic error: +CME > ERROR:SIM not inserted > 2016-06-14 00:50:06 [8472] [6] ERROR: AT2[huawei]: Initialization of > device failed. > 2016-06-14 00:50:06 [8472] [6] INFO: AT2[huawei]: Closing device > 2016-06-14 00:50:06 [8472] [6] INFO: AT2[huawei]: Closing device > > >