Thank you for your mail!
In my case I don't think the problem is in the serial port configuration
since i.e. gnokii and gammu can find and use my Nokia 6210 phone as a
modem.
What I'm trying to do now is to use the gnokii virtual modem
(/dev/gnokii) provided by the gnokiid daemon and gnokii driver with
kannel instead of the real serial port and kannels own modem driver.
After modifying smsc_at.c a little bit I have managed to initialize the
virtual modem with kannel but I still can't send any wap-push message. I
uncommented the sending of AT&F (reset modem to factory defaults) and
AT+CPIN (PIN related command, not sure) commands in smsc_at.c because
gnokiid didn't seem to understand those commands.
When I start the bearerbox my log looks like this:
-----------------------------------------------------------------------------------------------
2006-03-10 10:33:57 [2026] [0] INFO:
----------------------------------------
2006-03-10 10:33:57 [2026] [0] INFO: Kannel bearerbox II version
cvs-20060223 starting
2006-03-10 10:33:57 [2026] [0] INFO: MAIN: Start-up done, entering mainloop
2006-03-10 10:33:57 [2026] [0] DEBUG: AT2[/dev/gnokii]: start called
2006-03-10 10:33:57 [2032] [5] DEBUG: sms_router: gwlist_len = 0
2006-03-10 10:33:57 [2032] [5] DEBUG: Thread 5
(gw/bb_smscconn.c:sms_router) terminates.
2006-03-10 10:33:57 [2039] [12] DEBUG: Thread 12
(gw/bearerbox.c:wdp_router) maps to pid 2039.
2006-03-10 10:33:58 [2031] [4] DEBUG: AT2[/dev/gnokii]: device opened
2006-03-10 10:33:58 [2031] [4] INFO: AT2[/dev/gnokii]: init device
2006-03-10 10:33:58 [2031] [4] INFO: AT2[/dev/gnokii]: speed set to 115200
2006-03-10 10:33:58 [2031] [4] DEBUG: AT2[/dev/gnokii]: --> ATZ^M
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- ATZ
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- OK
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: --> AT^M
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- AT
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- OK
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: --> ATE0^M
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- ATE0
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- OK
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: --> AT+CMGF=0^M
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- OK
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: --> AT+CSMS=?^M
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- ERROR
2006-03-10 10:33:59 [2031] [4] ERROR: AT2[/dev/gnokii]: Generic error: ERROR
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: --> AT+CGMI^M
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- Nokia Mobile
Phones
2006-03-10 10:33:59 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- OK
2006-03-10 10:33:59 [2031] [4] INFO: AT2[/dev/gnokii]: AT SMSC
successfully opened.
-----------------------------------------------------------------------------------------------
But when i try to send a WAP-PUSH I get the follwing error:
-----------------------------------------------------------------------------------------------
2006-03-10 10:35:21 [2056] [13] DEBUG: boxc_receiver: got sms from wapbox
2006-03-10 10:35:21 [2056] [13] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]:
TP-Validity-Period: 24.0 hours
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]: --> AT+CMGS=103^M
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- ERROR
2006-03-10 10:35:23 [2031] [4] ERROR: AT2[/dev/gnokii]: Generic error: ERROR
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]: send command
status: -1
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]: --> AT+CMGS=103^M
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- ERROR
2006-03-10 10:35:23 [2031] [4] ERROR: AT2[/dev/gnokii]: Generic error: ERROR
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]: send command
status: -1
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]: --> AT+CMGS=103^M
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]: <-- ERROR
2006-03-10 10:35:23 [2031] [4] ERROR: AT2[/dev/gnokii]: Generic error: ERROR
2006-03-10 10:35:23 [2031] [4] DEBUG: AT2[/dev/gnokii]: send command
status: -1
-----------------------------------------------------------------------------------------------
I think the problem is that gnokiid can't handle the AT+CMGS (send sms)
command that kannel is sending. But I have not figured out how to fix this
yet.
Anyone have any clue?
Regards
Jonny Karlsson
Julius David Bacolod wrote:
I suspect the problem is in the serial port configuration, i don't know if you
have read this but you may try... (I'm still browsing through the pages, no
solution yet)
http://tldp.org/HOWTO/Modem-HOWTO.html
http://tldp.org/HOWTO/Modem-HOWTO-18.html#ss18.1
http://tldp.org/HOWTO/Serial-HOWTO.html
Hope this will help the two of us!
Jonny Karlsson <[EMAIL PROTECTED]> wrote: Does anyone have an answer for this?
--------------------------------------------------------
Hello!
Has anyone managed to use a Nokia 6210 mobile phone with serial data
cable as virtual SMSC for Kannel? I don't understand how it is supposed
to work. Does Kannel include modem and cable drivers or do I need to use
separate drivers, such as gnokii or gammu? I have tried the
configuration below but it does not work. It does not give me any errors
but it does not work either. When I try to send a WAP Push message the
logs look the same independently wheter I have the phone connected or
not. So I suppose that kannel can't find my phone at all.
modems.conf
---------------
....
....
group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
#enable-mms = true
----------------
kannel.conf
---------------
....
....
include = "/etc/kannelconf/modems.conf"
# SMSC GSM
group = smsc
smsc-id = nokia_smsc
smsc = "at"
modemtype = "auto"
device = /dev/ttyS1
#speed = 9600
#pin = 0000
#validityperiod = 167
#keepalive = 60
#sms-center = "+358409050048
....
....
-----------------
--------------------------------------------------------
I know it should work because I have read about people that have successfully
used Nokia 6210 with datacable as
virtual SMSC. But I can't find any solutions anywhere.
I would be very very grateful for an answer because I'm getting nutts with
this...
Jonny
---------------------------------
Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.