> -----Original Message-----
> From: Oded Arbel [mailto:[EMAIL PROTECTED]]
> > -----Original Message-----
> > From: Wilf (Neil Wilkinson) [mailto:[EMAIL PROTECTED]]
>
> > one phone type i would like to see kannel support is gnokii -
> > that way any
> > phone that gnokii covers will automatically be supported.
> > (those not in the
> > know: gnokiid (the daemon) provides the use of /dev/gnokii to
> > turn a normal
> > nokia into a GSM modem.)
>
> That's an interesting concept - I'll try it.

its one that the FAQ says isnt supported atm.  the trouble with gnokiid
seems to be that it shUts itself down if something terminates connection
with it so it might end up being a pain to develop.  (gnokii doesnt support
the 9110 btw, but it does support the 6150.)

one useful thing though is to run "gnokiid --debug" which allows accepts
commands from stdin and returns output to stout.  for example i've worked
out that the init string is "AT+CGMI" and the response is "Nokia Mobile
Phones" (note the 's').

i've  tried these in modems.conf (see below) but even though minicom can
connect to /dev/gnokii (using 19200, 8-N-1, Software or Hardware Flow),
kannel cant (again logs below).  Kannel version is the daily snapshot.

thanks again for the info Oded - one day i'll get my smsc working and it
certainly wont be through a lack of trying :)


wilf
--

modems.conf:

group = modems
id = gnokii
name = "Gnokii Virtual Phone"
detect-string = "Nokia Mobile Phones"
speed = 19200
need-sleep = true             #not sure what this should be for gnokii
keepalive-cmd = "AT+CBC;+CSQ" #this appears to work
enable-mms = false            #not sure what this should be for gnokii
init-string = "AT+CGMI"       #works on gnokiid --debug and via minicom


kannel.conf:

group = smsc
smsc = at2
modemtype = gnokii
device = /dev/gnokii
#keepalive = 4 #uncommenting this line does not make it work
#smsc-id = gnokii
#port = 10000 #uncommenting this line does not make it work
#connect-allow-ip = 127.0.0.1

logs on start of kannel:

# ./bearerbox -v 0 ../conf/kannel.conf
2002-08-30 15:06:30 [0] INFO: Debug_lvl = 0, log_file = <none>, log_lvl = 0
2002-08-30 15:06:30 [0] DEBUG: Loading include file
`/home/kannel/conf/modems.conf' (on line 36 of file ../conf/kannel.conf).
2002-08-30 15:06:30 [0] WARNING: DLR: using default 'internal' for storage
type.
2002-08-30 15:06:30 [0] DEBUG: Kannel bearerbox version `cvs-'.
System Linux, release 2.4.7-10, version #1 Thu Sep 6 17:27:27 EDT 2001,
machine i686.
Hostname matilda, IP 127.0.0.1.
Libxml version 20423.
Using OpenSSL 0.9.6b [engine] 9 Jul 2001.
Using MySQL 3.23.49a.
Using native malloc.

2002-08-30 15:06:30 [0] INFO: Added logfile `/home/kannel/log/main.log' with
level `0'.
2002-08-30 15:06:30 [0] INFO: Started access logfile
`/home/kannel/log/access.log'.
2002-08-30 15:06:30 [0] DEBUG: HTTP: Opening server at port 13000.
2002-08-30 15:06:30 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2002-08-30 15:06:30 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2002-08-30 15:06:30 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2002-08-30 15:06:30 [0] DEBUG: starting smsbox connection module
2002-08-30 15:06:30 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2002-08-30 15:06:30 [0] INFO: AT2[/dev/gnokii]: configuration shows
modemtype <gnokii>
2002-08-30 15:06:30 [0] DEBUG: AT2[/dev/gnokii]: Reading modem definitions
from <../conf/kannel.conf>
2002-08-30 15:06:30 [0] DEBUG: Loading include file
`/home/kannel/conf/modems.conf' (on line 36 of file ../conf/kannel.conf).
2002-08-30 15:06:30 [0] DEBUG: AT2[/dev/gnokii]: Found <11> modems in config
2002-08-30 15:06:30 [0] INFO: AT2[/dev/gnokii]: read modem definition for
<Gnokii Virtual Phone>
2002-08-30 15:06:30 [0] DEBUG: Started thread 5
(gw/smsc/smsc_at2.c:at2_device_thread)
2002-08-30 15:06:30 [5] INFO: AT2[/dev/gnokii]: trying to use speed <19200>
from modem definition
2002-08-30 15:06:30 [5] INFO: AT2[/dev/gnokii]: opening device
2002-08-30 15:06:30 [5] DEBUG: AT2[/dev/gnokii]: device opened
2002-08-30 15:06:30 [5] INFO: AT2[/dev/gnokii]: speed set to 19200
2002-08-30 15:06:30 [5] DEBUG: AT2[/dev/gnokii]: --> ^M
2002-08-30 15:06:30 [0] DEBUG: Started thread 6
(gw/bb_smscconn.c:sms_router)
2002-08-30 15:06:30 [0] INFO: ----------------------------------------
2002-08-30 15:06:30 [0] INFO: Kannel bearerbox II version cvs- starting
2002-08-30 15:06:30 [0] INFO: MAIN: Start-up done, entering mainloop
2002-08-30 15:06:30 [0] DEBUG: AT2[/dev/gnokii]: start called
2002-08-30 15:06:30 [6] DEBUG: sms_router: time to sleep
2002-08-30 15:06:30 [6] DEBUG: sms_router: list_len = 0
2002-08-30 15:06:32 [5] DEBUG: AT2[/dev/gnokii]: --> AT^M
2002-08-30 15:06:36 [5] DEBUG: AT2[/dev/gnokii]: --> AT^M
2002-08-30 15:06:40 [5] DEBUG: AT2[/dev/gnokii]: --> AT^M
2002-08-30 15:06:44 [5] INFO: AT2[/dev/gnokii]: closing device
2002-08-30 15:06:44 [5] INFO: AT2[/dev/gnokii]: speed in modem definition
don't work, will autodetect

...does the same thing for other speeds with the same result.

Its worth noting that this is exactly what happens regardless of which of my
5110, 6150, 9000i and 9110 phones is plugged in and whether i'm trying to
use /dev/gnokii or /dev/ttyS1 so the problem may be completely unrelated.



Reply via email to