Re: Connecting a GSM Phone to Linux

2009-01-08 Thread Pham Ngoc Khanh
Thanks Nikos. I will try that

--- On Wed, 7/1/09, Nikos Balkanas nbalka...@gmail.com wrote:

 From: Nikos Balkanas nbalka...@gmail.com
 Subject: Re: Connecting a GSM Phone to Linux
 To: pnk...@yahoo.com, Jovan Kostovski chomb...@gmail.com, sangprabv 
 sangpr...@gmail.com
 Cc: users@kannel.org
 Date: Wednesday, 7 January, 2009, 8:56 PM
 Give an smsbox-id to group smsbox. Also put in an
 smsbox-route group (see 
 manual p. 77). Finally you might need to pass
 smsc=smsc-id or 
 smsc-id=smsc-id in your URL (I don't
 remember which is the correct one).
 
 BR,
 Nikos
 - Original Message - 
 From: Pham Ngoc Khanh pnk...@yahoo.com
 To: Jovan Kostovski chomb...@gmail.com;
 sangprabv 
 sangpr...@gmail.com
 Cc: users@kannel.org
 Sent: Wednesday, January 07, 2009 10:09 AM
 Subject: Re: Connecting a GSM Phone to Linux
 
 
 Sorry if I post my question in the wrong place. I just
 think that my problem 
 is also about sending message via GSM modem.
 Here is my configuration:
 
 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 #log-file = /tmp/kannel.log
 #log-level = 0
 #box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 
 group = modems
 id = nokiaphone
 name = Nokia Phone
 detect-string = Nokia Mobile Phone
 need-sleep = true
 keepalive-cmd = AT+CBC;+CSQ
 
 group = smsc
 smsc = at
 smsc-id=nokia
 modemtype = nokiaphone
 device=/dev/ttyS0
 my-number = xxx
 sms-center = xxx
 #connect-allow-ip = 127.0.0.1
 log-level = 0
 speed = 0
 
 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 global-sender = xx
 log-level = 0
 
 group = sendsms-user
 username = user
 password = user
 concatenation= true
 max-messages = 10
 
 And I try to send message by:
 http://localhost:13013/cgi-bin/sendsms?username=userpassword=userfrom=xxto=xxtext=hello
 
 I got the feedback as: 3: Queued for later
 delivery.
 Could someone help me out to send message?
 P/S: I use Nokia E51 as GSM modem and connect via USB
 cable.
 
 I really appreciate it.
 
 --- On Thu, 1/1/09, sangprabv sangpr...@gmail.com
 wrote:
 
  From: sangprabv sangpr...@gmail.com
  Subject: Re: Connecting a GSM Phone to Linux
  To: Jovan Kostovski
 chomb...@gmail.com
  Cc: users@kannel.org
  Date: Thursday, 1 January, 2009, 12:31 AM
  Dig some archieves from users list, there's a post
 from
  me about
  configuring P990i as AT SMSC. TIA.
 
 
  Willy
  A tall, dark stranger will have more fun than you.
 
 
  -Original Message-
  From: Jovan Kostovski chomb...@gmail.com
  To: David Edwards davi...@gmail.com
  Cc: users@kannel.org
  Subject: Re: Connecting a GSM Phone to Linux
  Date: Wed, 31 Dec 2008 18:16:49 +0100
 
  On Wed, Dec 31, 2008 at 3:04 PM, David Edwards
  davi...@gmail.com wrote:
   Hi,
  
   I have a very lame question, I want to use a Sony
  Ericsson P990i as a modem
   SMSC via Kannel, but I don't know how to
 connect
  it to Linux?  Can someone
   help me?  My system is as follows:
  
   Desktop:
   Ubuntu 8.04 (2.6.24-22-generic)
  
   Kannel:
   1.4.1-2ubuntu1 (installed via package manager).
  
   I don't have bluetooth enabled on my desktop,
 I do
  have a USB cable for the
   P990i.
  
   Sorry if this is a lame request, but I am
 reasonable
  new to Linux and very
   new to Kannel, if someone could send me in the
 right
  direction, I would
   appreciate it.
 
  When you connect the phone to the computer with usb
 cable
  ubuntu
  should detect it (you'll see a message saying
 New
  mobile broadband
  device detected in the network manager)
  Than open a terminal and type: sudo wvdialconf
 
  You'll get output similar to the one in
 wvdialconf.log
  - see the
  attachment (i'm using my SE K750i)
 
  Take note on lines
  ttyACM0*1: Modem Identifier: ATI -- Sony
  Ericsson K750 - you'll
  need this info for the modems group detection-string
 and
  detection
  string parameters. I presume you'll get something
 like
  Sony Ericsson
  P990
 
  Found an USB modem on /dev/ttyACM0 - for
 smsc
  group - device parameter
 
  Create a smsc group:
  group = smsc
  smsc = at
  modemtype = auto
  device=/dev/ttyACM0
  my-number = YOUR_MOBILE_NUMBER
  connect-allow-ip = 127.0.0.1
 
  than create a modem group
  group = modems
  id = sonyericsson_K750
  name = Sony Ericsson_K750
  detect-string = Sony Ericsson
  detect-string2 = K750
  init-string = AT+CNMI=2,3,0,0,0
  # speed = 9600 [Default]
  # enable-hwhs = AT+IFC=2,2 [Default]
  # need-sleep = false [Default]
  # no-pin = false [Default]
  # no-smsc = false [Default]
  # sendline-sleep = 100 [Default, miliseconds]
  # keepalive-cmd = AT [Default]
  # broken = false [Default]
  # message-storage = SM
  # enable-mms = false [Default]
 
  You might check the init-string and the other
 parameters i
  order to
  get it working.
  Usually people are experiencing problems due to bad
 init
  string
 
  after this try to start the bearerbox manually in
 debug
  mode:
  ./bearerbox -v 0 /etc/kannel.conf
  i think that ubuntu stores the config in
 /etc

Re: Connecting a GSM Phone to Linux

2009-01-07 Thread Nikos Balkanas
Give an smsbox-id to group smsbox. Also put in an smsbox-route group (see 
manual p. 77). Finally you might need to pass smsc=smsc-id or 
smsc-id=smsc-id in your URL (I don't remember which is the correct one).


BR,
Nikos
- Original Message - 
From: Pham Ngoc Khanh pnk...@yahoo.com
To: Jovan Kostovski chomb...@gmail.com; sangprabv 
sangpr...@gmail.com

Cc: users@kannel.org
Sent: Wednesday, January 07, 2009 10:09 AM
Subject: Re: Connecting a GSM Phone to Linux


Sorry if I post my question in the wrong place. I just think that my problem 
is also about sending message via GSM modem.

Here is my configuration:

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#log-file = /tmp/kannel.log
#log-level = 0
#box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1

group = modems
id = nokiaphone
name = Nokia Phone
detect-string = Nokia Mobile Phone
need-sleep = true
keepalive-cmd = AT+CBC;+CSQ

group = smsc
smsc = at
smsc-id=nokia
modemtype = nokiaphone
device=/dev/ttyS0
my-number = xxx
sms-center = xxx
#connect-allow-ip = 127.0.0.1
log-level = 0
speed = 0

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = xx
log-level = 0

group = sendsms-user
username = user
password = user
concatenation= true
max-messages = 10

And I try to send message by:
http://localhost:13013/cgi-bin/sendsms?username=userpassword=userfrom=xxto=xxtext=hello

I got the feedback as: 3: Queued for later delivery.
Could someone help me out to send message?
P/S: I use Nokia E51 as GSM modem and connect via USB cable.

I really appreciate it.

--- On Thu, 1/1/09, sangprabv sangpr...@gmail.com wrote:


From: sangprabv sangpr...@gmail.com
Subject: Re: Connecting a GSM Phone to Linux
To: Jovan Kostovski chomb...@gmail.com
Cc: users@kannel.org
Date: Thursday, 1 January, 2009, 12:31 AM
Dig some archieves from users list, there's a post from
me about
configuring P990i as AT SMSC. TIA.


Willy
A tall, dark stranger will have more fun than you.


-Original Message-
From: Jovan Kostovski chomb...@gmail.com
To: David Edwards davi...@gmail.com
Cc: users@kannel.org
Subject: Re: Connecting a GSM Phone to Linux
Date: Wed, 31 Dec 2008 18:16:49 +0100

On Wed, Dec 31, 2008 at 3:04 PM, David Edwards
davi...@gmail.com wrote:
 Hi,

 I have a very lame question, I want to use a Sony
Ericsson P990i as a modem
 SMSC via Kannel, but I don't know how to connect
it to Linux?  Can someone
 help me?  My system is as follows:

 Desktop:
 Ubuntu 8.04 (2.6.24-22-generic)

 Kannel:
 1.4.1-2ubuntu1 (installed via package manager).

 I don't have bluetooth enabled on my desktop, I do
have a USB cable for the
 P990i.

 Sorry if this is a lame request, but I am reasonable
new to Linux and very
 new to Kannel, if someone could send me in the right
direction, I would
 appreciate it.

When you connect the phone to the computer with usb cable
ubuntu
should detect it (you'll see a message saying New
mobile broadband
device detected in the network manager)
Than open a terminal and type: sudo wvdialconf

You'll get output similar to the one in wvdialconf.log
- see the
attachment (i'm using my SE K750i)

Take note on lines
ttyACM0*1: Modem Identifier: ATI -- Sony
Ericsson K750 - you'll
need this info for the modems group detection-string and
detection
string parameters. I presume you'll get something like
Sony Ericsson
P990

Found an USB modem on /dev/ttyACM0 - for smsc
group - device parameter

Create a smsc group:
group = smsc
smsc = at
modemtype = auto
device=/dev/ttyACM0
my-number = YOUR_MOBILE_NUMBER
connect-allow-ip = 127.0.0.1

than create a modem group
group = modems
id = sonyericsson_K750
name = Sony Ericsson_K750
detect-string = Sony Ericsson
detect-string2 = K750
init-string = AT+CNMI=2,3,0,0,0
# speed = 9600 [Default]
# enable-hwhs = AT+IFC=2,2 [Default]
# need-sleep = false [Default]
# no-pin = false [Default]
# no-smsc = false [Default]
# sendline-sleep = 100 [Default, miliseconds]
# keepalive-cmd = AT [Default]
# broken = false [Default]
# message-storage = SM
# enable-mms = false [Default]

You might check the init-string and the other parameters i
order to
get it working.
Usually people are experiencing problems due to bad init
string

after this try to start the bearerbox manually in debug
mode:
./bearerbox -v 0 /etc/kannel.conf
i think that ubuntu stores the config in /etc/kannel.conf
if not
change it to the right file location.

Somewhere in the debug output of bearerbox between the at
commands you
should see something similar to:
DEBUG: AT2[/dev/ttyACM0]: found string Sony
Ericsson plus K750,
using modem definition Sony Ericsson_K750

and at the end:
INFO: AT2[/dev/ttyACM0]: AT SMSC successfully opened.

which means that bearerbox has successfully created
connection to the phone.


One more thing, I suggest you to download the kannel source
and
compile it your self to conform your needs.
The compiled package is sort of generically compiled ;)

BR, Jovan








Connecting a GSM Phone to Linux

2008-12-31 Thread David Edwards
Hi,

I have a very lame question, I want to use a Sony Ericsson P990i as a modem
SMSC via Kannel, but I don't know how to connect it to Linux?  Can someone
help me?  My system is as follows:

Desktop:
Ubuntu 8.04 (2.6.24-22-generic)

Kannel:
1.4.1-2ubuntu1 (installed via package manager).

I don't have bluetooth enabled on my desktop, I do have a USB cable for the
P990i.

Sorry if this is a lame request, but I am reasonable new to Linux and very
new to Kannel, if someone could send me in the right direction, I would
appreciate it.

thanks

David


Re: Connecting a GSM Phone to Linux

2008-12-31 Thread Nikos Balkanas
Hi,

I don't have experience with the particular phone.
To use it with kannel you need usb-serial drivers. Kannel can only see serial 
modems.
Unless someone else has direct experience with the phone, I would suggest going 
to the sony site and search for suitable drivers.

This assumes that there is no serial port to the phone.

BR,
Nikos
  - Original Message - 
  From: David Edwards 
  To: users@kannel.org 
  Sent: Wednesday, December 31, 2008 4:04 PM
  Subject: Connecting a GSM Phone to Linux


  Hi,

  I have a very lame question, I want to use a Sony Ericsson P990i as a modem 
SMSC via Kannel, but I don't know how to connect it to Linux?  Can someone help 
me?  My system is as follows:

  Desktop:
  Ubuntu 8.04 (2.6.24-22-generic)

  Kannel:
  1.4.1-2ubuntu1 (installed via package manager).

  I don't have bluetooth enabled on my desktop, I do have a USB cable for the 
P990i.

  Sorry if this is a lame request, but I am reasonable new to Linux and very 
new to Kannel, if someone could send me in the right direction, I would 
appreciate it.

  thanks

  David




Re: Connecting a GSM Phone to Linux

2008-12-31 Thread wahib

hi david !! I dont have a long experience with kannel but still i tested
kannel with both serial port phone, k500i and USB cable phone, W700i and it
worked fine. I had issues when i tried to test W700i but it worked fine when
i changed the port settings in the smsc group in kannel.conf from /dev/ttyS0
to /dev/ttyACM0 !! it connected successfully :)

I hope it does it for u as well !
Regards,
wahib
-- 
View this message in context: 
http://www.nabble.com/Connecting-a-GSM-Phone-to-Linux-tp21231921p21234325.html
Sent from the Kannel - User mailing list archive at Nabble.com.




Re: Connecting a GSM Phone to Linux

2008-12-31 Thread Jovan Kostovski
On Wed, Dec 31, 2008 at 3:04 PM, David Edwards davi...@gmail.com wrote:
 Hi,

 I have a very lame question, I want to use a Sony Ericsson P990i as a modem
 SMSC via Kannel, but I don't know how to connect it to Linux?  Can someone
 help me?  My system is as follows:

 Desktop:
 Ubuntu 8.04 (2.6.24-22-generic)

 Kannel:
 1.4.1-2ubuntu1 (installed via package manager).

 I don't have bluetooth enabled on my desktop, I do have a USB cable for the
 P990i.

 Sorry if this is a lame request, but I am reasonable new to Linux and very
 new to Kannel, if someone could send me in the right direction, I would
 appreciate it.

When you connect the phone to the computer with usb cable ubuntu
should detect it (you'll see a message saying New mobile broadband
device detected in the network manager)
Than open a terminal and type: sudo wvdialconf

You'll get output similar to the one in wvdialconf.log - see the
attachment (i'm using my SE K750i)

Take note on lines
ttyACM0*1: Modem Identifier: ATI -- Sony Ericsson K750 - you'll
need this info for the modems group detection-string and detection
string parameters. I presume you'll get something like Sony Ericsson
P990

Found an USB modem on /dev/ttyACM0 - for smsc group - device parameter

Create a smsc group:
group = smsc
smsc = at
modemtype = auto
device=/dev/ttyACM0
my-number = YOUR_MOBILE_NUMBER
connect-allow-ip = 127.0.0.1

than create a modem group
group = modems
id = sonyericsson_K750
name = Sony Ericsson_K750
detect-string = Sony Ericsson
detect-string2 = K750
init-string = AT+CNMI=2,3,0,0,0
# speed = 9600 [Default]
# enable-hwhs = AT+IFC=2,2 [Default]
# need-sleep = false [Default]
# no-pin = false [Default]
# no-smsc = false [Default]
# sendline-sleep = 100 [Default, miliseconds]
# keepalive-cmd = AT [Default]
# broken = false [Default]
# message-storage = SM
# enable-mms = false [Default]

You might check the init-string and the other parameters i order to
get it working.
Usually people are experiencing problems due to bad init string

after this try to start the bearerbox manually in debug mode:
./bearerbox -v 0 /etc/kannel.conf
i think that ubuntu stores the config in /etc/kannel.conf if not
change it to the right file location.

Somewhere in the debug output of bearerbox between the at commands you
should see something similar to:
DEBUG: AT2[/dev/ttyACM0]: found string Sony Ericsson plus K750,
using modem definition Sony Ericsson_K750

and at the end:
INFO: AT2[/dev/ttyACM0]: AT SMSC successfully opened.

which means that bearerbox has successfully created connection to the phone.


One more thing, I suggest you to download the kannel source and
compile it your self to conform your needs.
The compiled package is sort of generically compiled ;)

BR, Jovan
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan*1: S0   S1   S2   S3   
WvModem*1: Cannot get information for serial port.
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 -- Sony Ericsson K750
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
WvModem*1: Cannot get information for serial port.
ttyACM1*1: ATQ0 V1 E1 -- OK
ttyACM1*1: ATQ0 V1 E1 Z -- OK
ttyACM1*1: ATQ0 V1 E1 S0=0 -- OK
ttyACM1*1: ATQ0 V1 E1 S0=0 C1 -- OK
ttyACM1*1: ATQ0 V1 E1 S0=0 C1 D2 -- OK
ttyACM1*1: ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 -- OK
ttyACM1*1: Modem Identifier: ATI -- Sony Ericsson K750
ttyACM1*1: Speed 4800: AT -- OK
ttyACM1*1: Speed 9600: AT -- OK
ttyACM1*1: Speed 19200: AT -- OK
ttyACM1*1: Speed 38400: AT -- OK
ttyACM1*1: Speed 57600: AT -- OK
ttyACM1*1: Speed 115200: AT -- OK
ttyACM1*1: Speed 230400: AT -- OK
ttyACM1*1: Speed 460800: AT -- OK
ttyACM1*1: Max speed is 460800; that should be safe.
ttyACM1*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.
ttyACM0Info: Speed 460800; init ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0
ttyACM1Info: Speed 460800; init ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0

Re: Connecting a GSM Phone to Linux

2008-12-31 Thread sangprabv
Dig some archieves from users list, there's a post from me about
configuring P990i as AT SMSC. TIA.


Willy
A tall, dark stranger will have more fun than you.


-Original Message-
From: Jovan Kostovski chomb...@gmail.com
To: David Edwards davi...@gmail.com
Cc: users@kannel.org
Subject: Re: Connecting a GSM Phone to Linux
Date: Wed, 31 Dec 2008 18:16:49 +0100

On Wed, Dec 31, 2008 at 3:04 PM, David Edwards davi...@gmail.com wrote:
 Hi,

 I have a very lame question, I want to use a Sony Ericsson P990i as a modem
 SMSC via Kannel, but I don't know how to connect it to Linux?  Can someone
 help me?  My system is as follows:

 Desktop:
 Ubuntu 8.04 (2.6.24-22-generic)

 Kannel:
 1.4.1-2ubuntu1 (installed via package manager).

 I don't have bluetooth enabled on my desktop, I do have a USB cable for the
 P990i.

 Sorry if this is a lame request, but I am reasonable new to Linux and very
 new to Kannel, if someone could send me in the right direction, I would
 appreciate it.

When you connect the phone to the computer with usb cable ubuntu
should detect it (you'll see a message saying New mobile broadband
device detected in the network manager)
Than open a terminal and type: sudo wvdialconf

You'll get output similar to the one in wvdialconf.log - see the
attachment (i'm using my SE K750i)

Take note on lines
ttyACM0*1: Modem Identifier: ATI -- Sony Ericsson K750 - you'll
need this info for the modems group detection-string and detection
string parameters. I presume you'll get something like Sony Ericsson
P990

Found an USB modem on /dev/ttyACM0 - for smsc group - device parameter

Create a smsc group:
group = smsc
smsc = at
modemtype = auto
device=/dev/ttyACM0
my-number = YOUR_MOBILE_NUMBER
connect-allow-ip = 127.0.0.1

than create a modem group
group = modems
id = sonyericsson_K750
name = Sony Ericsson_K750
detect-string = Sony Ericsson
detect-string2 = K750
init-string = AT+CNMI=2,3,0,0,0
# speed = 9600 [Default]
# enable-hwhs = AT+IFC=2,2 [Default]
# need-sleep = false [Default]
# no-pin = false [Default]
# no-smsc = false [Default]
# sendline-sleep = 100 [Default, miliseconds]
# keepalive-cmd = AT [Default]
# broken = false [Default]
# message-storage = SM
# enable-mms = false [Default]

You might check the init-string and the other parameters i order to
get it working.
Usually people are experiencing problems due to bad init string

after this try to start the bearerbox manually in debug mode:
./bearerbox -v 0 /etc/kannel.conf
i think that ubuntu stores the config in /etc/kannel.conf if not
change it to the right file location.

Somewhere in the debug output of bearerbox between the at commands you
should see something similar to:
DEBUG: AT2[/dev/ttyACM0]: found string Sony Ericsson plus K750,
using modem definition Sony Ericsson_K750

and at the end:
INFO: AT2[/dev/ttyACM0]: AT SMSC successfully opened.

which means that bearerbox has successfully created connection to the phone.


One more thing, I suggest you to download the kannel source and
compile it your self to conform your needs.
The compiled package is sort of generically compiled ;)

BR, Jovan