Thanx Nikos. I can send SMS with Gnokii, with /dev/ttyS0 device. My modem works...
But I've found my issue : with speed 19200, it's works (the speed attribute was redefined with 9600...) ! It's works... almost. Now, I've this issue : ju:/etc/kannel# bearerbox -v 0 /etc/kannel/sms.conf 2009-09-05 18:20:06 [4205] [4] INFO: AT2[/dev/ttyS0]: opening device 2009-09-05 18:20:06 [4205] [4] DEBUG: AT2[/dev/ttyS0]: device opened 2009-09-05 18:20:07 [4205] [4] DEBUG: AT2[/dev/ttyS0]: device opened 2009-09-05 18:20:07 [4205] [4] INFO: AT2[/dev/ttyS0]: init device 2009-09-05 18:20:07 [4205] [4] INFO: AT2[/dev/ttyS0]: speed set to 19200 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> ATZ^M 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- OK 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> AT^M 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- AT 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- OK 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> AT&F^M 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- AT&F 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- OK 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> ATE0^M 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- ATE0 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- OK 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> AT\Q3^M 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- ERROR 2009-09-05 18:20:08 [4205] [4] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR 2009-09-05 18:20:08 [4205] [4] INFO: AT2[/dev/ttyS0]: cannot enable hardware handshake 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> AT+CPIN?^M 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- +CPIN: READY 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- OK 2009-09-05 18:20:08 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGF=0^M 2009-09-05 18:20:09 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- OK 2009-09-05 18:20:09 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> AT+CSMS=?^M 2009-09-05 18:20:09 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- +CSMS: (0,1,128) 2009-09-05 18:20:09 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- OK 2009-09-05 18:20:09 [4205] [4] INFO: AT2[/dev/ttyS0]: Phase 2+ is supported 2009-09-05 18:20:09 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> AT+CSMS=1^M 2009-09-05 18:20:09 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- +CSMS: 1,1,1 2009-09-05 18:20:09 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- OK 2009-09-05 18:20:09 [4205] [4] DEBUG: AT2[/dev/ttyS0]: --> AT+CNMI=1,2,0,1,0^M 2009-09-05 18:20:09 [4205] [4] DEBUG: AT2[/dev/ttyS0]: <-- ERROR 2009-09-05 18:20:09 [4205] [4] ERROR: AT2[/dev/ttyS0]: Generic error: ERROR 2009-09-05 18:20:09 [4205] [4] ERROR: AT2[/dev/ttyS0]: Opening failed. Terminating 2009-09-05 18:20:09 [4205] [4] INFO: AT2[/dev/ttyS0]: closing device In sms.conf, I have : group = core admin-port = 13000 admin-password = bar group = modems id = siemens_m20 name = "Siemens M20" detect-string = "SIEMENS" detect-string2 = "M20" speed = 19200 enable-hwhs = "AT\\Q3" keepalive-cmd = "AT+CBC;+CSQ" need-sleep = true group = smsc smsc = at modemtype = siemens_m20 device = /dev/ttyS0 group = smsbox bearerbox-host = localhost sendsms-port = 13013 group = sendsms-user username = tester password = foobar group = sendsms-user username = kannel password = rL4y user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" group = sms-service keyword = default text = "No service specified" Thanx a lot, again. Nikos Balkanas wrote: > > Hi, > > Your modem doesn't repond. Try the following: > > 1) dmesg | grep tty in Linux. grep tty /var/adm/messages in Solaris. > Verify > you have the correct device for your modem. > > 2) Using minicom or wvdial, connect to device from part (1) and type a > simple AT. If you don't get a response you have a hardware problem (port, > cable, modem). > > Configure correct parameters to kannel and retry. Assuming you have the > correct device, and the modem doesn't respond to kannel, it is almost > certainly case (2). > > BR, > Nikos > ----- Original Message ----- > From: "Juxener" <[email protected]> > To: <[email protected]> > Sent: Saturday, September 05, 2009 3:42 PM > Subject: Re: Send SMS with Siemens M20 on Linux > > >> >> Thank you for your answer. >> >> Since my last message, I've better results : with Gnokii, I can send SMS >> ! >> Gnokii is not interessant in it, but it proves that my M20 works (with my >> new SIM card). And it's configured with the /dev/ttyS0 device... >> >> Unfortunately, it doesn't works with Kannel... always the same error : >> ju:~# bearerbox -v 0 /etc/kannel/sms.conf >> [...] >> 2009-09-05 16:34:33 [2854] [6] DEBUG: AT2[/dev/ttyS0]: device opened >> 2009-09-05 16:34:33 [2854] [6] INFO: AT2[/dev/ttyS0]: init device >> 2009-09-05 16:34:33 [2854] [6] INFO: AT2[/dev/ttyS0]: speed set to 9600 >> 2009-09-05 16:34:33 [2854] [6] DEBUG: AT2[/dev/ttyS0]: --> ATZ^M >> 2009-09-05 16:34:37 [2854] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer >> to >> ATZ, ignoring >> 2009-09-05 16:34:37 [2854] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M >> 2009-09-05 16:34:41 [2854] [6] ERROR: AT2[/dev/ttyS0]: Wrong or no answer >> to >> AT. Trying again >> 2009-09-05 16:34:41 [2854] [6] DEBUG: AT2[/dev/ttyS0]: --> AT^M >> 2009-09-05 16:34:45 [2854] [6] ERROR: AT2[/dev/ttyS0]: Second attempt to >> send AT failed >> 2009-09-05 16:34:45 [2854] [6] ERROR: AT2[/dev/ttyS0]: Opening failed. >> Terminating >> 2009-09-05 16:34:45 [2854] [6] INFO: AT2[/dev/ttyS0]: closing device >> [...] >> >> I don't no what to do.... >> Thanx a lot. >> >> >> >> Nikos Balkanas wrote: >>> >>> Hi, >>> >>> I don't know gnokii, and I am not interested in it. However, I do know >>> wvdial, minicom and statserial all useful tools to diagnose serial >>> problems. >>> >>> Are you sure your modem is at /dev/ttyS0? What does: >>> >>> dmesg | grep tty >>> >>> show? >>> >>> BR, >>> Nikos >>> ----- Original Message ----- >>> From: "Juxener" <[email protected]> >>> To: <[email protected]> >>> Sent: Wednesday, August 19, 2009 9:05 PM >>> Subject: Re: Send SMS with Siemens M20 on Linux >>> >>> >>>> >>>> Thanks for your answer Jovan, >>>> >>>> but in my /etc/kannel/sms.conf I've : >>>> include = "/etc/kannel/modems.conf" >>>> >>>> And in my /etc/kannel/modems.conf I've : >>>> group = modems >>>> id = siemens_m20 >>>> name = "Siemens M20" >>>> detect-string = "SIEMENS" >>>> detect-string2 = "M20" >>>> speed = 19200 >>>> enable-hwhs = "AT\\Q3" >>>> keepalive-cmd = "AT+CBC;+CSQ" >>>> need-sleep = true >>>> >>>> But that doesn't works... >>>> >>>> >>>> >>>> Jovan Kostovski-2 wrote: >>>>> >>>>> On Mon, Aug 17, 2009 at 12:01 AM, Juxener<[email protected]> wrote: >>>>>> >>>>>> Hello, >>>>>> sorry for my english (I'm french). >>>>>> >>>>>> I'm trying to use an Siemens M20 modem >>>>>> (http://www.coster.info/costerit/teleges/doc/gsm812s.pdf), to send a >>>>>> text. >>>>>> I'm on Linux. >>>>> >>>>> Check this list message: >>>>> http://www.ultraviolet.org/mail-archives/kannel.2006/msg01164.html >>>>> >>>>> BR, Jovan >>>>> >>>>> >>>>> >>>> >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/Send-SMS-with-Siemens-M20-on-Linux-tp24941326p25049150.html >>>> Sent from the Kannel - User mailing list archive at Nabble.com. >>>> >>>> >>> >>> >>> >>> >> >> -- >> View this message in context: >> http://www.nabble.com/Send-SMS-with-Siemens-M20-on-Linux-tp24941326p25308016.html >> Sent from the Kannel - User mailing list archive at Nabble.com. >> >> > > > > -- View this message in context: http://www.nabble.com/Send-SMS-with-Siemens-M20-on-Linux-tp24941326p25308940.html Sent from the Kannel - User mailing list archive at Nabble.com.
