RE: nokia phone accepts AT but never gets past start called

2002-08-22 Thread Oded Arbel


 -Original Message-
 From: Wilf (Neil Wilkinson) [mailto:[EMAIL PROTECTED]]

 has anyone managed to get a 6150 to talk to kannel or
 minicom/other-terminal-type-program using a cable?  

Not me. I haven't tried real hard, but with Linux and a DLR3P cable or iRDA I can't 
use it with minicom at any speed setting.

 so how does gnokii do it?  surely that must open a connection 
 to /dev/ttySX
 and send commands/receive data?

You can try to take a look at the gnokii source code and see for your self. me 
personally, last time I tried that - my mind went blank and shut itself down after 5 
minutes, as a protective measure ;-)

 really confused as to how gnokii will work and minicom  kannel wont!

Usually the problem is 'Kannel not working but minicom does' :-) sorry that I cannot 
help further.

--
Oded Arbel
m-Wise mobile solutions
[EMAIL PROTECTED]

+972-9-9581711 (116)
+972-67-340014

::..
You never learn anything by doing it right.




Re: nokia phone accepts AT but never gets past start called

2002-08-22 Thread Randal Law

I am using Nokia 6210 with DLR-3Pcable. My speed setting is 19200

I just make it working today :)

- Original Message -
From: Wilf (Neil Wilkinson) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 22, 2002 5:26 PM
Subject: RE: nokia phone accepts AT but never gets past start called


  -Original Message-
  From: Oded Arbel
   -Original Message-
   From: Wilf (Neil Wilkinson) [mailto:[EMAIL PROTECTED]]
  
   does anyone know the correct speed and modemtype settings
   within kannel for
   a nokia 6150? as it would be great to eliminate these queries from my
   config.
 
  Just use a terminal program to connect to the phone (for example
  - minicom) and test all the possible speeds - there are only
  about 10 options.

 mmm... cant seem to get minicom to connect to 6150 on any speed with any
 flow control (hardware/software/off) with either 8data/no-parity or
 7data/even-parity.

 i've been doing a fair bit of research on 6150s and there seems to be some
 debate whether a 6150 will behave as a GSM modem.  many people claim to be
 able to do it across infra-red but i havent managed to find anyone able to
 do it via a cable (and some people saying its impossible).

 has anyone managed to get a 6150 to talk to kannel or
 minicom/other-terminal-type-program using a cable?  i even tried plugging
it
 into a windoze machine and running hyperterminal with no success.

 so how does gnokii do it?  surely that must open a connection to
/dev/ttySX
 and send commands/receive data?  gnokii works perfectly for me with
 port=/dev/ttyS1 and model=6110 (but i really dont want to have to run a
cron
 job every 30s to get the msgs off the phone, format the output and fire
off
 a http request per msg!)

 i've also found quite a few entries in the kannel mailing lists with
people
 unable to make their connection to a nokia phone.  minicom is often
 suggested and the thread finishes (not sure if that's because they got it
 working or gave up at that point).

 really confused as to how gnokii will work and minicom  kannel wont!

 please help,


 wilf
 --
 Happiness is a state of mind.  If you're not happy, change your mind.







RE: nokia phone accepts AT but never gets past start called

2002-08-19 Thread Wilf \(Neil Wilkinson\)

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Oded Arbel
 Sent: Monday, 19 August 2002 5:10 PM
 To: Wilf (Neil Wilkinson); [EMAIL PROTECTED]
 Subject: RE: nokia phone accepts AT but never gets past start called


 Are you sure that 9600 is the correct speed ? my Nokia phones
 connect at 4800 or 19200 (I have two).
 Also - try autodetecting the modem type.

thanks for the reply.  seems that if i try 4800 or 19200 it gets further:

2002-08-19 17:40:38 [0] DEBUG: AT2[nk6150]: start called
2002-08-19 17:40:38 [6] DEBUG: sms_router: time to sleep
2002-08-19 17:40:38 [6] DEBUG: sms_router: list_len = 0
2002-08-19 17:40:39 [5] DEBUG: AT2[nk6150]: device opened
2002-08-19 17:40:39 [5] INFO: AT2[nk6150]: init device
2002-08-19 17:40:39 [5] INFO: AT2[nk6150]: speed set to 19200
2002-08-19 17:40:39 [5] DEBUG: AT2[nk6150]: -- AT^M

but then never gets past this point.

interestingly, the modem.conf file with the distribution sets the default
speed of the nokia to 9600...

also if i auto the modemtype with 4800 or 19200 it fails and if i auto the
modem and leave the speed blank then it defaults to 57600 and fails.  i
think i've run out of combinations now,


wilf

  -Original Message-
  From: Wilf (Neil Wilkinson) [mailto:[EMAIL PROTECTED]]
  Sent: Monday, August 19, 2002 4:17 AM
  To: [EMAIL PROTECTED]
  Subject: nokia phone accepts AT but never gets past start called
 
 
  Hi all,
 
  I'm new to Kannel and im trying to get my nokia 6150 to work
  as an smsc. i'm
  running gateway-1.2.0 (compiled under redhat 7.2).
 
  the bearer box comes up no problem with no errors and the AT2
  thread gets as
  far as start called (see below) but never sends or receives
  any messages.
  so it seems that i've got the correct device, and the AT command is
  accepted successfully.
 
  Also, the http status page always shows the phone status as
  connecting (my
  guess is that it should change to connected at some point?).
 
  Im using the supplied modems.conf (unaltered) with the
  following excerpt
  from kannel.conf (im fairly confident that my smsbox is
  configured correctly
  as i get Sent. as a response to my sms push):
 
  group = core
  admin-port = 13000
  smsbox-port = 13001
  admin-password = ***
  admin-deny-ip = *.*.*.*
  admin-allow-ip = 127.0.0.1
  log-file = /home/kannel/log/main.log
  log-level = 0
  box-deny-ip = *.*.*.*
  box-allow-ip = 127.0.0.1
  unified-prefix = 00358,0
  access-log = /home/kannel/log/access.log
 
  #include modems
  include = /home/kannel/conf/modems.conf
 
  # SMSC CONNECTIONS
  group = smsc
  smsc = at2
  modemtype = nokiaphone
  device = /dev/ttyS1
  #speed = 9600
  #keepalive = 4
  smsc-id = nk6150
  #port = 1
  #connect-allow-ip = 127.0.0.1
 
 
  the log file:
 
  2002-08-19 11:36:16 [0] INFO: Added logfile
  `/home/kannel/log/main.log' with
  level `0'.
  2002-08-19 11:36:16 [0] INFO: 
  2002-08-19 11:36:16 [0] INFO: Kannel bearerbox II version
  1.2.0 starting
  2002-08-19 11:36:16 [0] INFO: Started access logfile
  `/home/kannel/log/access.log'.
  2002-08-19 11:36:16 [0] DEBUG: HTTP: Opening server at port 13000.
  2002-08-19 11:36:16 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
  2002-08-19 11:36:16 [0] DEBUG: Started thread 2
  (gwlib/http.c:server_thread)
  2002-08-19 11:36:16 [0] DEBUG: Started thread 3
  (gw/bb_http.c:httpadmin_run)
  2002-08-19 11:36:16 [0] DEBUG: starting smsbox connection module
  2002-08-19 11:36:16 [0] DEBUG: Started thread 4
  (gw/bb_boxc.c:smsboxc_run)
  2002-08-19 11:36:16 [0] INFO: AT2[nk6150]: configuration
  shows modemtype
  nokiaphone
  2002-08-19 11:36:16 [0] DEBUG: AT2[nk6150]: Reading modem
  definitions from
  ../conf/kannel.conf
  2002-08-19 11:36:16 [0] DEBUG: Loading include file
  `/home/kannel/conf/modems.conf' (on line 36 of file
  ../conf/kannel.conf).
  2002-08-19 11:36:16 [0] DEBUG: AT2[nk6150]: Found 10 modems
  in config
  2002-08-19 11:36:16 [0] INFO: AT2[nk6150]: read modem
  definition for Nokia
  Phone
  2002-08-19 11:36:16 [0] DEBUG: Started thread 5
  (gw/smsc_at2.c:at2_device_thread)
  2002-08-19 11:36:16 [5] INFO: AT2[nk6150]: trying to use
  speed 9600 from
  modem definition
  2002-08-19 11:36:16 [5] INFO: AT2[nk6150]: opening device
  2002-08-19 11:36:16 [5] DEBUG: AT2[nk6150]: device opened
  2002-08-19 11:36:16 [5] INFO: AT2[nk6150]: speed set to 9600
  2002-08-19 11:36:16 [5] DEBUG: AT2[nk6150]: -- ^M
  2002-08-19 11:36:16 [0] DEBUG: Started thread 6
  (gw/bb_smscconn.c:sms_router)
  2002-08-19 11:36:16 [0] INFO: MAIN: Start-up done, entering mainloop
  2002-08-19 11:36:16 [0] DEBUG: AT2[nk6150]: start called
  2002-08-19 11:36:16 [6] DEBUG: sms_router: time to sleep
  2002-08-19 11:36:16 [6] DEBUG: sms_router: list_len = 0
 
  (Incidently, gnokii code works no problem with the same phone
  and device
  name /dev/ttyS1.)
 
  Any help would be greatly appreciated,
 
 
  Wilf (Neil Wilkinson)
  --
 
 
 







RE: nokia phone accepts AT but never gets past start called

2002-08-19 Thread Wilf \(Neil Wilkinson\)

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]On Behalf Of Oded Arbel
 Sent: Monday, 19 August 2002 9:28 PM
 To: Wilf (Neil Wilkinson); [EMAIL PROTECTED]
 Subject: RE: nokia phone accepts AT but never gets past start called


 I think it would have been a good idea, before running bearerbox
 on the phone, to try to use it through a terminal program,
 setting various speeds and other line settings, until you find
 one that works. possibly this may even be a hardware problem.

yup, that occurred to me too - i ran the gnokii software to make sure that
the phone and correct device were being used and it worked fine.
unfortunatley i cant find anywhere in the gnokii code which talks about the
baud rate to use.

does anyone know the correct speed and modemtype settings within kannel for
a nokia 6150? as it would be great to eliminate these queries from my
config.

thanks,


wilf