On Wed, Dec 31, 2008 at 3:04 PM, David Edwards <[email protected]> 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.
ttyACM0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyACM1<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

Reply via email to