Hi *@Shally*

You are coorect seems problem with modem. its not initializing.

2014-11-28 13:35:00 [10142] [6] INFO: AT2[/dev/ttyACM0]: opening device
2014-11-28 13:35:00 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: device opened.
Telnet mode = 0
2014-11-28 13:35:00 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: device opened
2014-11-28 13:35:00 [10142] [6] INFO: AT2[/dev/ttyACM0]: Logging in
2014-11-28 13:35:01 [10142] [6] INFO: AT2[/dev/ttyACM0]: init device
2014-11-28 13:35:01 [10142] [6] INFO: AT2[/dev/ttyACM0]: speed set to 19200
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATZ^M
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATZ
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT&F
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2014-11-28 13:35:01 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+IFC=2,2^M
2014-11-28 13:35:02 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ERROR
2014-11-28 13:35:02 [10142] [6] ERROR: AT2[/dev/ttyACM0]: Generic error:
ERROR
2014-11-28 13:35:02 [10142] [6] INFO: AT2[/dev/ttyACM0]: cannot enable
hardware handshake
2014-11-28 13:35:02 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CPIN?^M
2014-11-28 13:35:02 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CPIN: READY
2014-11-28 13:35:02 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK
2014-11-28 13:35:02 [10142] [6] DEBUG: AT2[/dev/ttyACM0]: -->
AT+CSCA="+919084051550"^M
2014-11-28 13:35:06 [10142] [6] ERROR: AT2[/dev/ttyACM0]: Initialization of
device failed.
2014-11-28 13:35:06 [10142] [6] INFO: AT2[/dev/ttyACM0]: Closing device
2014-11-28 13:35:06 [10142] [6] ERROR: AT2[/dev/ttyACM0]: Couldn't connect
(retrying in 10 seconds).


*@Cornejo*

Yeah I have tried wvdialconf

root@inextrix:/home/juned# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S2   S3   S4   S5   S6   S7   S8   S9
Modem Port Scan<*1>: S10  S11  S12  S13  S14  S15  S16  S17
Modem Port Scan<*1>: S18  S19  S20  S21  S22  S23  S24  S25
Modem Port Scan<*1>: S26  S27  S28  S29  S30  S31
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- SAMSUNG GT-C3322
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found an USB modem on /dev/ttyACM0.
Modem configuration written to /etc/wvdial.conf.






Regards
Juned Khan / Network Engineer
+91 9974740823/ juned.k...@inextrix.com

iNextrix Technologies Pvt Ltd.
www.inextrix.com <http://htmlsig.com/www.inextrix.com>

[image: Facebook] <https://www.facebook.com/junedkhan23> [image: Twitter]
<https://twitter.com/juned23> [image: Google Plus]
<https://plus.google.com/+JunedKhan> [image: Linkedin]
<http://htmlsig.com/in.linkedin.com/in/junedk>

This e-mail message may contain confidential or legally privileged
information and is intended only for the use of the intended recipient(s).
Any unauthorized disclosure, dissemination, distribution, copying or the
taking of any action in reliance on the information herein is prohibited.
E-mails are not secure and cannot be guaranteed to be error free as they
can be intercepted, amended, or contain viruses. Anyone who communicates
with us by e-mail is deemed to have accepted these risks. Company Name is
not responsible for errors or omissions in this message and denies any
responsibility for any damage arising from the use of e-mail. Any opinion
and other statement contained in this message and any attachment are solely
those of the author and do not necessarily represent those of the company.

On Thu, Nov 27, 2014 at 9:42 PM, Gabri Shally <gabri...@gmail.com> wrote:

> @Juned Cornejo:
> have you try wvdialconf?
>
> On Thu, Nov 27, 2014 at 10:47 PM, Alvaro Cornejo <cornejo.alv...@gmail.com
> > wrote:
>
>> Hi
>>
>> You have something wrong with the modem setup. It shows CONECTING...
>>
>> post modem logs.
>>
>> 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 Thu, Nov 27, 2014 at 6:24 AM, Juned Khan <jkhan6...@gmail.com> wrote:
>>
>>> Hi All,
>>>
>>> I am trying to send SMS using Kannel to my cellphone but messages are
>>> not getting SMS to my phone. I am using this URL
>>>
>>>
>>> http://localhost:13131/cgi-bin/sendsms?from=9173010133&username=playsms&password=playsms&text=hi%20budddy!&to=9638269138
>>>
>>> I am getting this while running above URL
>>> 3: Queued for later delivery
>>>
>>> I am using my cell phone as a modem. its a dual sim device. below is my
>>> configuration and logs.
>>>
>>> *Kannel.conf*
>>>
>>> # CORE
>>> group = core
>>> admin-port = 13000
>>> admin-password = playsms
>>> status-password = playsms
>>> log-file = /var/log/kannel/kannel.log
>>> log-level = 0
>>> access-log = /var/log/kannel/access.log
>>> smsbox-port = 13001
>>> dlr-storage = internal
>>> store-type = file
>>> store-file = /var/log/kannel/kannel.store
>>> #store-type = spool
>>> #store-location = /var/spool/kannel/store
>>> smsbox-max-pending = 100
>>>
>>> # SMSBOX
>>> group = smsbox
>>> bearerbox-host = localhost
>>> bearerbox-port = 13001
>>> sendsms-port = 13131
>>> sendsms-chars = "0123456789+ "
>>> log-file = /var/log/kannel/smsbox.log
>>> log-level = 0
>>> access-log = /var/log/kannel/access.log
>>> mo-recode = true
>>>
>>>
>>> group = smsc
>>> smsc = at
>>> modemtype = Samsung Electronics Co., Ltd C3322
>>> device = /dev/ttyACM0
>>> speed = 19200
>>> log-file = /var/log/kannel/smsc-default.log
>>> my-number = +919173010133
>>> sms-center = +919084051550
>>> validityperiod = 167
>>> log-level = 0
>>>
>>>
>>> group = modems
>>> broken = true
>>> id = Samsung Electronics Co., Ltd C3322
>>> name = "Samsung Electronics Co., Ltd C3322"
>>> detect-string = "C3322"
>>> init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
>>> speed = 115200
>>> enable-mms = true
>>> message-storage = SM
>>>
>>>
>>> # SENDSMS-USER
>>> group = sendsms-user
>>> default-smsc = at
>>> username = playsms
>>> password = playsms
>>> #max-messages = 6
>>> concatenation = true
>>>
>>> # SMS SERVICE 'default'
>>> group = sms-service
>>> keyword = default
>>> omit-empty = true
>>> max-messages = 0
>>> get-url = "http://192.168.1.28/playsms/index.php";
>>>
>>>
>>> *Kannel status in browser*
>>>
>>> http://localhost:13000/status?password=playsms
>>>
>>> Kannel bearerbox version `1.4.3'. Build `Nov 24 2011 09:54:00', compiler
>>> `4.6.2'. System Linux, release 3.13.0-34-generic, version #60-Ubuntu SMP
>>> Wed Aug 13 15:45:27 UTC 2014, machine x86_64. Hostname inextrix, IP
>>> 127.0.1.1. Libxml version 2.7.8. Using OpenSSL 1.0.0e 6 Sep 2011. Compiled
>>> with MySQL 5.5.17, using MySQL 5.5.38. Using SQLite 3.7.9. Using native
>>> malloc.
>>>
>>> Status: running, uptime 0d 0h 2m 49s
>>>
>>> WDP: received 0 (0 queued), sent 0 (0 queued)
>>>
>>> SMS: received 0 (0 queued), sent 0 (3 queued), store size 3
>>>
>>> SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
>>>
>>> DLR: 0 queued, using internal storage
>>>
>>> Box connections:
>>>     smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 2m 3s)
>>>  SMSC connections:
>>>     *unknown*    AT2[/dev/ttyACM0] (connecting, rcvd 0, sent 0, failed
>>> 0, queued 0 msgs)
>>>
>>>
>>>
>>> *Bearerbox*
>>>
>>> 2014-11-27 16:28:16 [3834] [9] DEBUG: boxc_receiver: sms received
>>> 2014-11-27 16:28:16 [3834] [9] DEBUG: send_msg: sending msg to box:
>>> <127.0.0.1>
>>> 2014-11-27 16:28:25 [3834] [7] DEBUG: sms_router: handling message
>>> (0x7f9220000c20 vs 0x7f9220000c20)
>>> 2014-11-27 16:28:25 [3834] [7] DEBUG: re-queing SMS not-yet-to-be resent
>>> 2014-11-27 16:28:25 [3834] [7] DEBUG: sms_router: handling message
>>> (0x7f9220000c20 vs 0x7f9220000c20)
>>> 2014-11-27 16:28:25 [3834] [7] DEBUG: re-queing SMS not-yet-to-be resent
>>> 2014-11-27 16:28:25 [3834] [7] DEBUG: sms_router: time to sleep 30.00
>>> secs.
>>> 2014-11-27 16:28:28 [3834] [8] DEBUG: Dumping 2 messages to store
>>> 2014-11-27 16:28:48 [3834] [1] DEBUG: Timeout for fd:34 appeares.
>>> 2014-11-27 16:28:48 [3834] [1] DEBUG: HTTP: Destroying HTTPClient area
>>> 0x7f9240000a90.
>>> 2014-11-27 16:28:48 [3834] [1] DEBUG: HTTP: Destroying HTTPClient for
>>> `127.0.0.1'.
>>> 2014-11-27 16:28:55 [3834] [7] DEBUG: sms_router: gwlist_len = 1
>>> 2014-11-27 16:28:55 [3834] [7] DEBUG: sms_router: handling message
>>> (0x7f9220000c20 vs 0x7f9220000c20)
>>> 2014-11-27 16:28:55 [3834] [7] DEBUG: re-queing SMS not-yet-to-be resent
>>> 2014-11-27 16:28:55 [3834] [7] DEBUG: sms_router: handling message
>>> (0x7f9220000c20 vs 0x7f9220000c20)
>>> 2014-11-27 16:28:55 [3834] [7] DEBUG: re-queing SMS not-yet-to-be resent
>>> 2014-11-27 16:28:55 [3834] [7] DEBUG: sms_router: time to sleep 30.00
>>> secs.
>>> 2014-11-27 16:29:25 [3834] [7] DEBUG: sms_router: gwlist_len = 1
>>> 2014-11-27 16:29:25 [3834] [7] DEBUG: sms_router: handling message
>>> (0x7f9220000c20 vs 0x7f9220000c20)
>>> 2014-11-27 16:29:25 [3834] [7] DEBUG: Message routed successfully.
>>>
>>>
>>> *smsbox*
>>>
>>> 2014-11-27 16:28:16 [3874] [2] DEBUG: HTTP: Creating HTTPClient for
>>> `127.0.0.1'.
>>> 2014-11-27 16:28:16 [3874] [2] DEBUG: HTTP: Created HTTPClient area
>>> 0x7fb5d0000a90.
>>> 2014-11-27 16:28:16 [3874] [3] INFO: smsbox: Got HTTP request
>>> </cgi-bin/sendsms> from <127.0.0.1>
>>> 2014-11-27 16:28:16 [3874] [3] INFO: sendsms used by <playsms>
>>> 2014-11-27 16:28:16 [3874] [3] INFO: sendsms sender:<playsms:9173010133>
>>> (127.0.0.1) to:<9974740823> msg:<hi budddy!>
>>> 2014-11-27 16:28:16 [3874] [3] DEBUG: Stored UUID
>>> 7d868996-9a92-4026-ac31-348dd3450c0b
>>> 2014-11-27 16:28:16 [3874] [3] DEBUG: message length 10, sending 1
>>> messages
>>> 2014-11-27 16:28:16 [3874] [3] DEBUG: Status: 202 Answer: <Sent.>
>>> 2014-11-27 16:28:16 [3874] [3] DEBUG: Delayed reply - wait for bearerbox
>>> 2014-11-27 16:28:16 [3874] [0] DEBUG: Got ACK (0) of
>>> 7d868996-9a92-4026-ac31-348dd3450c0b
>>> 2014-11-27 16:28:16 [3874] [0] DEBUG: HTTP: Resetting HTTPClient for
>>> `127.0.0.1'.
>>> 2014-11-27 16:29:16 [3874] [1] DEBUG: Timeout for fd:24 appeares.
>>> 2014-11-27 16:29:16 [3874] [1] DEBUG: HTTP: Destroying HTTPClient area
>>> 0x7fb5d0000a90.
>>> 2014-11-27 16:29:16 [3874] [1] DEBUG: HTTP: Destroying HTTPClient for
>>> `127.0.0.1'.
>>>
>>> How to to figure out the actual problem, why sms is not being sent? Any
>>> idea or thought on this will be appreciated .
>>>
>>>
>>> Regards
>>> Juned Khan / Network Engineer
>>> +91 9974740823/ juned.k...@inextrix.com
>>>
>>> iNextrix Technologies Pvt Ltd.
>>> www.inextrix.com <http://htmlsig.com/www.inextrix.com>
>>>
>>> [image: Facebook] <https://www.facebook.com/junedkhan23> [image:
>>> Twitter] <https://twitter.com/juned23> [image: Google Plus]
>>> <https://plus.google.com/+JunedKhan> [image: Linkedin]
>>> <http://htmlsig.com/in.linkedin.com/in/junedk>
>>>
>>> This e-mail message may contain confidential or legally privileged
>>> information and is intended only for the use of the intended recipient(s).
>>> Any unauthorized disclosure, dissemination, distribution, copying or the
>>> taking of any action in reliance on the information herein is prohibited.
>>> E-mails are not secure and cannot be guaranteed to be error free as they
>>> can be intercepted, amended, or contain viruses. Anyone who communicates
>>> with us by e-mail is deemed to have accepted these risks. Company Name is
>>> not responsible for errors or omissions in this message and denies any
>>> responsibility for any damage arising from the use of e-mail. Any opinion
>>> and other statement contained in this message and any attachment are solely
>>> those of the author and do not necessarily represent those of the company.
>>>
>>
>>
>

Reply via email to