Hello Alvaro, The modem seems to accept the config modifications and starts up correctly. The SIM card I use can send SMS, that's my usual phone SIM card. I tested the modem under windows XP, and could send SMS.
Although everything seems to be working here, no SMS is actually sent out, and the other phone just doesn't get anything. sierra.log file attached, Thank you a lot for your help ! Eric Alvaro Cornejo a écrit : > Hello Eric > > Try this: > > group = modems > id = sierra > name = "Sierra Wireless, Inc. MC8775 Device" > detect-string = "Sierra Wireless, Inc." > need-sleep = true > init-string = AT+CNMI=2,1,2,0,0;AT+CMEE=2 > message-storage = SM > keepalive-cmd = AT+CBC;+CSQ > reset-string = AT+CFUN=1 > > > group = smsc > smsc = at > smsc-id = sierra > modemtype = auto > device = /dev/ttyUSB0 > speed = 9600 > modemtype = auto > allowed-smsc-id = sierra > sim-buffering = false > keepalive = 60 > max-error-count = 5 > log-file = "/var/log/kannel/sierra.log" > > All logs from the modem will be logged separatly in the sierra.log log. > If modem complain about CMEE=2 try CMEE=1. This enables modem error verbose > > Post logs > > Also check that the sim you are using has credit and is allowed to > send sms. Put it in a regular phone and test sending messages. > > Hope Helps > > 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.NET www.smsglobal.com.mx y > www.pravcom.com > > > > On Wed, Apr 15, 2009 at 4:28 PM, Monchanin Eric <[email protected]> > wrote: > >> Hello Alvaro, >> >> I am using bites of configs found on kannel's mailing list, without >> knowing exactly what I am doing. >> In the modem, I am using a personnal SIM card connected to a standard >> phone plan (voice, MMS, SMS, wap) >> I am merely trying to learn and hopefully get it working :-) >> How do you see I send sms using GPRS command ? Is there another way for >> me to do that with kannel ? >> >> Bests, >> >> Eric >> >> >> >> Alvaro Cornejo a écrit : >> >>> Why are you using GPRS command to send sms? >>> >>> Did your gateway support sms over gprs??? >>> >>> Regards >>> >>> Alvaro >>> >>> On Tue, 2009-04-14 at 20:30 -0400, Monchanin Eric wrote: >>> >>> >>>> Hello guys, >>>> >>>> I am struggling on a little project which goals is to use kannel with a >>>> USB Sierra Wireless modem MC 8775 (it's a 3 bands modem) >>>> >>>> Once plugged in, the modem appears in the lsusb as : >>>> Bus 001 Device 008: ID 1199:6812 Sierra Wireless, Inc. MC8775 Device >>>> >>>> >>>> My configuration file allows me to launch bearerbox and smsbox >>>> apparently correctly check config file included >>>> The log file looks like the file kannel.log >>>> >>>> >>>> So far so good I would say, my problem now is the following, >>>> >>>> >>>> When I want to send an SMS, using the cgi interface, >>>> >>>> http://localhost13013/cgi-bin/sendsms?smsc=sierra&username=tester&password=foobar&from=16xx7x4xx33&to=17yy4y2yy36&text=hello+from+3g+modem >>>> >>>> I get what looks like a successfull message >>>> 0: Accepted for delivery >>>> >>>> and in the smsbox.log file >>>> 2009-04-14 17:41:46 [12913] [2] DEBUG: HTTP: Creating HTTPClient for >>>> `192.168.1.4'. >>>> 2009-04-14 17:41:46 [12913] [2] DEBUG: HTTP: Created HTTPClient area >>>> 0x963c468. >>>> 2009-04-14 17:41:46 [12913] [3] INFO: smsbox: Got HTTP request >>>> </cgi-bin/sendsms> from <192.168.1.4> >>>> 2009-04-14 17:41:46 [12913] [3] INFO: sendsms used by <tester> >>>> 2009-04-14 17:41:46 [12913] [3] INFO: sendsms >>>> sender:<tester:16317046633> (192.168.1.4) to:<17yy4y2yy36> msg:<hello >>>> from 3g modem> >>>> 2009-04-14 17:41:46 [12913] [3] DEBUG: Stored UUID >>>> 1885da2f-0c90-4bb4-961c-66b8f49be6ca >>>> 2009-04-14 17:41:46 [12913] [3] DEBUG: message length 19, sending 1 >>>> messages >>>> 2009-04-14 17:41:46 [12913] [3] DEBUG: Status: 202 Answer: <Sent.> >>>> 2009-04-14 17:41:46 [12913] [3] DEBUG: Delayed reply - wait for bearerbox >>>> 2009-04-14 17:41:46 [12913] [0] DEBUG: Got ACK (0) of >>>> 1885da2f-0c90-4bb4-961c-66b8f49be6ca >>>> 2009-04-14 17:41:46 [12913] [0] DEBUG: HTTP: Resetting HTTPClient for >>>> `192.168.1.4'. >>>> >>>> >>>> >>>> Now, the message is never received on the phone, and in the "status" >>>> page, I see that 0 sms were sent, 0 sms were received, 0 sms are queued >>>> >>>> So, my question is the following, am I doing something wrong, is my >>>> config file correct, and what needs to be fixed in order to have an >>>> actual SMS sending. >>>> >>>> Thank you for your time reading my post, >>>> Hoping the config example, or whatever is right in it, might help >>>> someone in the future ;-) >>>> >>>> Eric >>>> plain text document attachment (kannel_gprs.conf) >>>> group = core >>>> admin-port = 13000 >>>> smsbox-port = 13001 >>>> admin-password = foobar >>>> status-password = foobar >>>> log-file = "/tmp/kannel.log" >>>> log-level = 0 >>>> box-deny-ip = "*.*.*.*" >>>> box-allow-ip = "*.*.*.*" >>>> access-log = "/tmp/access.log" >>>> >>>> >>>> group = smsc >>>> smsc = at >>>> smsc-id = sierra >>>> device = /dev/ttyUSB0 >>>> speed = 9600 >>>> modemtype = auto >>>> >>>> >>>> group = modems >>>> id = sierra >>>> name = "Sierra Wireless, Inc. MC8775 Device" >>>> detect-string = "Sierra Wireless, Inc." >>>> init-string = AT+CGDCONT=1,"IP","proxy" >>>> >>>> >>>> group = smsbox >>>> bearerbox-host = localhost >>>> sendsms-port = 13013 >>>> global-sender = 16xx7x4xx33 >>>> sendsms-chars = "0123456789 +-" >>>> log-file = "/tmp/smsbox.log" >>>> log-level = 0 >>>> access-log = "/tmp/access.log" >>>> >>>> >>>> group = sendsms-user >>>> username = tester >>>> password = foobar >>>> >>>> >>>> group = sms-service >>>> keyword = default >>>> get-url = http://localhost:13014/recv?from=%p&text=%b >>>> max-messages = 0 >>>> >>>> plain text document attachment (kannel.log) >>>> 2009-04-14 17:39:14 [12901] [0] INFO: Added logfile `/tmp/kannel.log' with >>>> level `0'. >>>> 2009-04-14 17:39:14 [12901] [0] INFO: Started access logfile >>>> `/tmp/access.log'. >>>> 2009-04-14 17:39:14 [12901] [0] INFO: HTTP: Opening server at port 13000. >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 1 >>>> (gwlib/fdset.c:poller) >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 2 >>>> (gwlib/http.c:server_thread) >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 3 >>>> (gw/bb_http.c:httpadmin_run) >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: starting smsbox connection module >>>> 2009-04-14 17:39:14 [12901] [0] INFO: BOXC: 'smsbox-max-pending' not set, >>>> using default (100). >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 4 >>>> (gw/bb_boxc.c:sms_to_smsboxes) >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 5 >>>> (gw/bb_boxc.c:smsboxc_run) >>>> 2009-04-14 17:39:14 [12901] [0] INFO: Set SMS resend frequency to 60 >>>> seconds. >>>> 2009-04-14 17:39:14 [12901] [0] INFO: SMS resend retry set to unlimited. >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: smsbox MO concatenated message >>>> handling enabled >>>> 2009-04-14 17:39:14 [12901] [0] INFO: DLR rerouting for smsc id <sierra> >>>> disabled. >>>> 2009-04-14 17:39:14 [12901] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) >>>> maps to pid 12901. >>>> 2009-04-14 17:39:14 [12901] [4] DEBUG: Thread 4 >>>> (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 12901. >>>> 2009-04-14 17:39:14 [12901] [3] DEBUG: Thread 3 >>>> (gw/bb_http.c:httpadmin_run) maps to pid 12901. >>>> 2009-04-14 17:39:14 [12901] [2] DEBUG: Thread 2 >>>> (gwlib/http.c:server_thread) maps to pid 12901. >>>> 2009-04-14 17:39:14 [12901] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) >>>> maps to pid 12901. >>>> 2009-04-14 17:39:14 [12901] [0] INFO: AT2[sierra]: configuration doesn't >>>> show modemtype. will autodetect >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 6 >>>> (gw/smsc/smsc_at.c:at2_device_thread) >>>> 2009-04-14 17:39:14 [12901] [6] DEBUG: Thread 6 >>>> (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 12901. >>>> 2009-04-14 17:39:14 [12901] [6] DEBUG: AT2[sierra]: detecting modem type >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: Started thread 7 >>>> (gw/bb_smscconn.c:sms_router) >>>> 2009-04-14 17:39:14 [12901] [6] INFO: AT2[sierra]: opening device >>>> 2009-04-14 17:39:14 [12901] [0] INFO: >>>> ---------------------------------------- >>>> 2009-04-14 17:39:14 [12901] [0] INFO: Kannel bearerbox II version >>>> cvs-20090407 starting >>>> 2009-04-14 17:39:14 [12901] [0] INFO: MAIN: Start-up done, entering >>>> mainloop >>>> 2009-04-14 17:39:14 [12901] [0] DEBUG: AT2[sierra]: start called >>>> 2009-04-14 17:39:14 [12901] [7] DEBUG: Thread 7 >>>> (gw/bb_smscconn.c:sms_router) maps to pid 12901. >>>> 2009-04-14 17:39:14 [12901] [6] DEBUG: AT2[sierra]: device opened. Telnet >>>> mode = 0 >>>> 2009-04-14 17:39:15 [12901] [6] DEBUG: AT2[sierra]: device opened >>>> 2009-04-14 17:39:15 [12901] [6] INFO: AT2[sierra]: speed set to 9600 >>>> 2009-04-14 17:39:15 [12901] [6] DEBUG: AT2[sierra]: --> ^M >>>> 2009-04-14 17:39:15 [12901] [5] INFO: Client connected from <127.0.0.1> >>>> 2009-04-14 17:39:15 [12901] [5] DEBUG: Started thread 8 >>>> (gw/bb_boxc.c:function) >>>> 2009-04-14 17:39:15 [12901] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) >>>> maps to pid 12901. >>>> 2009-04-14 17:39:15 [12901] [8] DEBUG: Started thread 9 >>>> (gw/bb_boxc.c:boxc_sender) >>>> 2009-04-14 17:39:15 [12901] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) >>>> maps to pid 12901. >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> AT^M >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> AT&F^M >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> ATE0^M >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> ATI^M >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- Sierra Wireless, >>>> Inc. >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- MC8775 >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- APP1 >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: found string <Sierra >>>> Wireless, Inc.>, using modem definition <Sierra Wireless, Inc. MC8775 >>>> Device> >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: --> AT+CSMS=?^M >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:17 [12901] [6] INFO: AT2[sierra]: Closing device >>>> 2009-04-14 17:39:17 [12901] [6] INFO: AT2[sierra]: opening device >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: device opened. Telnet >>>> mode = 0 >>>> 2009-04-14 17:39:17 [12901] [6] DEBUG: AT2[sierra]: device opened >>>> 2009-04-14 17:39:17 [12901] [6] INFO: AT2[sierra]: Logging in >>>> 2009-04-14 17:39:18 [12901] [6] INFO: AT2[sierra]: init device >>>> 2009-04-14 17:39:18 [12901] [6] INFO: AT2[sierra]: speed set to 9600 >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> ATZ^M >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT^M >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT&F^M >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> ATE0^M >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT+IFC=2,2^M >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT+CPIN?^M >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- +CPIN: READY >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT+CMGF=0^M >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> AT+CSMS=?^M >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:18 [12901] [6] DEBUG: AT2[sierra]: --> >>>> AT+CGDCONT=1,"IP","proxy"^M >>>> 2009-04-14 17:39:19 [12901] [6] DEBUG: AT2[sierra]: <-- OK >>>> 2009-04-14 17:39:19 [12901] [6] INFO: AT2[sierra]: AT SMSC successfully >>>> opened. >>>> >>>> >>> >>> >> >> > >
2009-04-16 06:48:29 [1178] [6] DEBUG: AT2[sierra]: detecting modem type 2009-04-16 06:48:29 [1178] [6] INFO: AT2[sierra]: opening device 2009-04-16 06:48:29 [1178] [6] DEBUG: AT2[sierra]: device opened. Telnet mode = 0 2009-04-16 06:48:30 [1178] [6] DEBUG: AT2[sierra]: device opened 2009-04-16 06:48:30 [1178] [6] INFO: AT2[sierra]: speed set to 9600 2009-04-16 06:48:30 [1178] [6] DEBUG: AT2[sierra]: --> ^M 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: --> AT^M 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: --> AT&F^M 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: --> ATE0^M 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: --> ATI^M 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: <-- Sierra Wireless, Inc. 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: <-- MC8775 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: <-- APP1 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: found string <Sierra Wireless, Inc.>, using modem definition <Sierra Wireless, Inc. MC8775 Device> 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: --> AT+CSMS=?^M 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:32 [1178] [6] INFO: AT2[sierra]: Closing device 2009-04-16 06:48:32 [1178] [6] INFO: AT2[sierra]: opening device 2009-04-16 06:48:32 [1178] [6] DEBUG: AT2[sierra]: device opened. Telnet mode = 0 2009-04-16 06:48:33 [1178] [6] DEBUG: AT2[sierra]: device opened 2009-04-16 06:48:33 [1178] [6] INFO: AT2[sierra]: Logging in 2009-04-16 06:48:34 [1178] [6] INFO: AT2[sierra]: init device 2009-04-16 06:48:34 [1178] [6] INFO: AT2[sierra]: speed set to 9600 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: --> ATZ^M 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: --> AT^M 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: --> AT&F^M 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: --> ATE0^M 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: --> AT+IFC=2,2^M 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: --> AT+CPIN?^M 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: <-- +CPIN: READY 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: --> AT+CMGF=0^M 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: --> AT+CSMS=?^M 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:34 [1178] [6] DEBUG: AT2[sierra]: --> AT+CNMI=2,1,2,0,0;AT+CMEE=2^M 2009-04-16 06:48:35 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:48:35 [1178] [6] INFO: AT2[sierra]: AT SMSC successfully opened. 2009-04-16 06:48:37 [1178] [6] DEBUG: AT2[sierra]: --> AT+CBC;+CSQ^M 2009-04-16 06:48:37 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:49:17 [1178] [6] DEBUG: AT2[sierra]: TP-Validity-Period: 24.0 hours 2009-04-16 06:49:17 [1178] [6] DEBUG: AT2[sierra]: --> AT+CMGS=31^M 2009-04-16 06:49:17 [1178] [6] DEBUG: AT2[sierra]: <-- 2009-04-16 06:49:17 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:49:17 [1178] [6] DEBUG: AT2[sierra]: send command status: 0 2009-04-16 06:50:19 [1178] [6] DEBUG: AT2[sierra]: --> AT+CBC;+CSQ^M 2009-04-16 06:50:19 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:51:21 [1178] [6] DEBUG: AT2[sierra]: --> AT+CBC;+CSQ^M 2009-04-16 06:51:21 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:52:23 [1178] [6] DEBUG: AT2[sierra]: --> AT+CBC;+CSQ^M 2009-04-16 06:52:23 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:53:25 [1178] [6] DEBUG: AT2[sierra]: --> AT+CBC;+CSQ^M 2009-04-16 06:53:25 [1178] [6] DEBUG: AT2[sierra]: <-- OK 2009-04-16 06:54:27 [1178] [6] DEBUG: AT2[sierra]: --> AT+CBC;+CSQ^M 2009-04-16 06:54:27 [1178] [6] DEBUG: AT2[sierra]: <-- OK
