1405 lines
26 KiB
HTML
1405 lines
26 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<HTML
|
|
><HEAD
|
|
><TITLE
|
|
>Cellular Phone Connection</TITLE
|
|
><META
|
|
NAME="GENERATOR"
|
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
|
REL="HOME"
|
|
TITLE="Linux Infrared HOWTO"
|
|
HREF="index.html"><LINK
|
|
REL="UP"
|
|
TITLE="Specific Connections and IrDA - Protocols"
|
|
HREF="infrared-howto-c-specific-connections.html"><LINK
|
|
REL="PREVIOUS"
|
|
TITLE="Connecting from Linux to WinCE 3.0 (aka PocketPC)"
|
|
HREF="infrared-howto-s-pocketpc-connection.html"><LINK
|
|
REL="NEXT"
|
|
TITLE="Digital Camera Connection"
|
|
HREF="infrared-howto-s-digital-camera-connection.html"></HEAD
|
|
><BODY
|
|
CLASS="sect1"
|
|
BGCOLOR="#FFFFFF"
|
|
TEXT="#000000"
|
|
LINK="#0000FF"
|
|
VLINK="#840084"
|
|
ALINK="#0000FF"
|
|
><DIV
|
|
CLASS="NAVHEADER"
|
|
><TABLE
|
|
SUMMARY="Header navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TH
|
|
COLSPAN="3"
|
|
ALIGN="center"
|
|
>Linux Infrared HOWTO</TH
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="left"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="infrared-howto-s-pocketpc-connection.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="80%"
|
|
ALIGN="center"
|
|
VALIGN="bottom"
|
|
>Chapter 3. Specific Connections and IrDA - Protocols</TD
|
|
><TD
|
|
WIDTH="10%"
|
|
ALIGN="right"
|
|
VALIGN="bottom"
|
|
><A
|
|
HREF="infrared-howto-s-digital-camera-connection.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"></DIV
|
|
><DIV
|
|
CLASS="sect1"
|
|
><H1
|
|
CLASS="sect1"
|
|
><A
|
|
NAME="infrared-howto-s-cellular-phone-connection"
|
|
></A
|
|
>3.10. Cellular Phone Connection</H1
|
|
><P
|
|
> As far as I know some cellular phones use the IrCOMM standard, e.g.
|
|
Ericsson SH888 and NOKIA 6110 (I'm not sure about the NOKIA 8110).
|
|
Some cellular phones (Ericsson T68) use the IrOBEX standard or IrMC.
|
|
For more and general information about Linux and cell phones see
|
|
<A
|
|
HREF="http://tuxmobil.org/phones_linux.html"
|
|
TARGET="_top"
|
|
>TuxMobil</A
|
|
>
|
|
. You may use IrCOMM to set up a PPP modem connection and OpenOBEX
|
|
to send or retrieve files (e.g. addressbook entries, logo, ringtones).
|
|
</P
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="AEN684"
|
|
></A
|
|
>3.10.1. Generic Instructions</H2
|
|
><P
|
|
> This chapter describes how to connect your mobile
|
|
phone via IrDA with your Linux box. It is based
|
|
on a report by Matthias Schmidt. It was
|
|
tested with the following mobiles:
|
|
</P
|
|
><P
|
|
>
|
|
<P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
>Ericsson T39m</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Siemens S25</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Siemens S35i</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Siemens ME45</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Nokia 6110</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>Nokia 6210</P
|
|
></LI
|
|
></UL
|
|
>
|
|
|
|
</P
|
|
><P
|
|
> Configure the IrDA basics as described above (kernel configuration,
|
|
/etc/modules.conf, irattach, PPP) (for detailed
|
|
information about PPP see also the
|
|
<A
|
|
HREF="http://tldp.org/HOWTO/PPP-HOWTO/"
|
|
TARGET="_top"
|
|
>PPP-HOWTO</A
|
|
>.
|
|
Now check whether your mobile phone was found:
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> # irdadump
|
|
xid:rsp be1eb736 > 08666644 S=6 s=4 SIEMENS S35 hint=9024 [ Modem IrCOMM IrOBEX ] (28)
|
|
# irdadump
|
|
xid:rsp be1eb736 > 35450000 S=6 s=4 Nokia 6100 hint=8101 [ PnP Telephony ] (28)
|
|
# irdadump
|
|
xid:rsp be1eb736 > 04489982 S=6 s=5 SIEMENS ME45 hint=b124 [ PnP Modem Fax IrCOMM IrOBEX ] (29)
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN704"
|
|
></A
|
|
>3.10.1.1. PPP dial-up Software</H3
|
|
><DIV
|
|
CLASS="sect4"
|
|
><H4
|
|
CLASS="sect4"
|
|
><A
|
|
NAME="AEN706"
|
|
></A
|
|
>3.10.1.1.1. minicom</H4
|
|
><P
|
|
> There are several ways to connect to your ISP. The easiest
|
|
(and sometimes the only) way is to
|
|
use a terminal program like <B
|
|
CLASS="command"
|
|
>minicom</B
|
|
>.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect4"
|
|
><H4
|
|
CLASS="sect4"
|
|
><A
|
|
NAME="AEN710"
|
|
></A
|
|
>3.10.1.1.2. wvdial</H4
|
|
><P
|
|
> If you prefer more comfort, you can use
|
|
<A
|
|
HREF="http://www.worldvisions.ca/wvdial/"
|
|
TARGET="_top"
|
|
>wvdial</A
|
|
>.
|
|
It's easy to configure and it works
|
|
with a lot of roaming providers and the german Tante T. gh0st and me did
|
|
some testing yesterday and we weren't able to connect to
|
|
the dial-in server of the HRZ with wvdial. wvdial
|
|
always failed with "Bad password", because the server
|
|
respondend faster that the mobile softmodem could send
|
|
the login and password strings.
|
|
See the standard ppp config below.
|
|
|
|
<TT
|
|
CLASS="filename"
|
|
>/etc/wvdial.conf</TT
|
|
>:
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> [Dialer Defaults]
|
|
Modem = /dev/ircomm0
|
|
Baud = 9600
|
|
Init1 = ATZ
|
|
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
|
|
Password = internet
|
|
Username = internet
|
|
Phone = 00393492002800
|
|
ISDN = 0
|
|
Modem Type = Analog Modem
|
|
|
|
[Dialer shh]
|
|
Init3 = ATM0
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect4"
|
|
><H4
|
|
CLASS="sect4"
|
|
><A
|
|
NAME="AEN716"
|
|
></A
|
|
>3.10.1.1.3. PPP Tools</H4
|
|
><P
|
|
> Problems with wvdial (see explanation above)? IMHO the best way is to use the standard
|
|
<A
|
|
HREF="http://ppp.samba.org/ftp/unpacked/ppp/"
|
|
TARGET="_top"
|
|
>PPP tools</A
|
|
>
|
|
|
|
. You can configure
|
|
them via <B
|
|
CLASS="command"
|
|
>pppconfig</B
|
|
>, start with <B
|
|
CLASS="command"
|
|
>pon</B
|
|
>
|
|
and stop connection with <B
|
|
CLASS="command"
|
|
>poff</B
|
|
>.
|
|
</P
|
|
><P
|
|
>
|
|
Example files for PPP with a connection named <TT
|
|
CLASS="filename"
|
|
>irda</TT
|
|
>:
|
|
|
|
<TT
|
|
CLASS="filename"
|
|
>/etc/ppp/pap-secrets</TT
|
|
>
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> # username connection-name password
|
|
test irda test
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
<TT
|
|
CLASS="filename"
|
|
>/etc/ppp/peers/irda</TT
|
|
>
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> hide-password
|
|
noauth
|
|
connect "/usr/sbin/chat -v -f /etc/chatscripts/irda"
|
|
debug
|
|
/dev/ircomm0
|
|
9600
|
|
defaultroute
|
|
noipdefault
|
|
user test
|
|
remotename irda
|
|
ipparam irda
|
|
usepeerdns
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
<TT
|
|
CLASS="filename"
|
|
>/etc/chatscripts/irda</TT
|
|
>
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE'
|
|
ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED
|
|
'' ATZ
|
|
# dial-in number of the ISP
|
|
OK-AT-OK ATDT<YOUR_ISP_PHONE_NUMBER>
|
|
CONNECT \d\c
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN731"
|
|
></A
|
|
>3.10.1.2. Logos, Sounds, SMS, ...</H3
|
|
><P
|
|
> If you get your mobile working via infrared, you can do some nice stuff
|
|
with it. You can save your phonebook or your SMS, send SMS, put new
|
|
logos (BMP format) on it, save the old logo to your harddisk and do the same with
|
|
your ringtones (MIDI). To do all this nice things, you'll need the following:
|
|
</P
|
|
><P
|
|
>
|
|
<P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
>a OBEX capable mobile phone, e.g. a Siemens mobile-phone
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>a working infrared connection
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>the <A
|
|
HREF="http://www.hendrik-sattler.de/scmxx/"
|
|
TARGET="_top"
|
|
>scmxx</A
|
|
> tool
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
>gscmxx (optional)
|
|
</P
|
|
></LI
|
|
></UL
|
|
>
|
|
|
|
</P
|
|
><P
|
|
> Bind your mobile phone to IrDA services
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
>
|
|
# irattach /dev/ttyS1 -s
|
|
IrDA: Registered device irda0
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
><P
|
|
>
|
|
Check the connection
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> # irdadump
|
|
xid:cmd 9d5dcefa < ffffffff S=6 s=3 (14)
|
|
xid:cmd 9d5dcefa < ffffffff S=6 s=4 (14)
|
|
xid:rsp 9d5dcefa > 08666644 S=6 s=3 SIEMENS S35 hint=9024 [ Modem IrCOMM IrOBEX ] (28)
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
><P
|
|
> Show general information about your mobile phone
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> # scmxx -i
|
|
Accessing device /dev/ircomm0
|
|
OK, a modem device is present.
|
|
Vendor: SIEMENS
|
|
Model: S35i
|
|
Revision: 20
|
|
Serial (Phone): xxxxxxxxxxxxxxx
|
|
Serial (SIM): xxxxxxxxxxxxxxx
|
|
SIM-ID: xxxxxxxxxxxxxxxxxxxxx
|
|
Operator: D2
|
|
SMS Server: +491722270333
|
|
Charset: GSM
|
|
Battery: 40%
|
|
Signal/BER: -79 dBm/?
|
|
Time: 02/10/07,11:48:49
|
|
Readable Slots: bmp: 0-1, mid: 0, vcs: 1-30
|
|
Phonebooks: FD, SM, ON, ME, LD, MC, RC, OW, MS, CD, BL, RD, CS
|
|
SMS storages: SM
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
><P
|
|
> Save your phonebook to disk
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> # scmxx -g -PSM -f phonebook
|
|
Accessing device /dev/ircomm0
|
|
OK, a modem device is present.
|
|
Detected SIEMENS S35i
|
|
phonebook created.
|
|
Receiving: 1 2 3 4 5 6 7 8 9 [...]
|
|
Received all gettable entries
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
><P
|
|
> Show your SMS (here in slot 3)
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> # scmxx -g -S3 -f -
|
|
Accessing device /dev/ircomm0
|
|
OK, a modem device is present.
|
|
Detected SIEMENS S35i
|
|
Looking for SMS of specified type...
|
|
Receiving incoming, read SMS from slot 3.
|
|
Slot: 3
|
|
From: xxxxxxxxxxxxxx
|
|
Date: 2002-10-03 23:11:47 (GMT+0)
|
|
SMSC number: xxxxxxxxxxxxxxxx
|
|
PDU type: SMS-DELIVER MMS
|
|
Data Coding Scheme: 7bit-GSM
|
|
Message length: 160
|
|
Message:
|
|
xxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
><P
|
|
> Save your current logo to disk
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> # scmxx -g -B0 -f logo.bmp
|
|
Accessing device /dev/ircomm0
|
|
OK, a modem device is present.
|
|
Detected SIEMENS S35i
|
|
Slot 0...
|
|
Receiving packet 1 of 5...
|
|
logo.bmp created.
|
|
Receiving packet 2 of 5...
|
|
Receiving packet 3 of 5...
|
|
Receiving packet 4 of 5...
|
|
Receiving packet 5 of 5...
|
|
File transfer complete.
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
><P
|
|
> Save your current ringtone to disk
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> # scmxx -g -M0 -f sound.mid
|
|
Accessing device /dev/ircomm0
|
|
OK, a modem device is present.
|
|
Detected SIEMENS S35i
|
|
Slot 0...
|
|
Receiving packet 1 of 1...
|
|
sound.mid created.
|
|
File transfer complete.
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="AEN759"
|
|
></A
|
|
>3.10.2. OBEX Connection</H2
|
|
><P
|
|
> See the OpenOBEX chapter below. Detailed information about
|
|
OBEX connections to mobile phones will follow soon hopefully.
|
|
See also the Palm III section for information about setting up a connection.
|
|
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="AEN762"
|
|
></A
|
|
>3.10.3. Specific Mobile Phones</H2
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN764"
|
|
></A
|
|
>3.10.3.1. Motorola</H3
|
|
><P
|
|
> Michael McConnell
|
|
has posted an initial version of a guide to get the Motorola Timeport GSM
|
|
phone and Linux-IrDA talking on
|
|
<A
|
|
HREF="http://www.eridani.co.uk/docs/linux-timeport/"
|
|
TARGET="_top"
|
|
>his website</A
|
|
>.
|
|
</P
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN768"
|
|
></A
|
|
>3.10.3.2. Ericsson</H3
|
|
><P
|
|
> Note for T39 users (maybe for T300, too).
|
|
Please check the web page of
|
|
<A
|
|
HREF="http://www.hpl.hp.com/personal/Jean_Tourrilhes/IrDA/index.html"
|
|
TARGET="_top"
|
|
>Jean Tourrilhes</A
|
|
>
|
|
, you will need to apply kernel patches and tweak
|
|
<TT
|
|
CLASS="filename"
|
|
>/proc/sys/net/irda/max_tx_window</TT
|
|
>
|
|
</P
|
|
><P
|
|
> 1. Configuration
|
|
|
|
To start a communication session with <TT
|
|
CLASS="filename"
|
|
>/dev/ircomm0</TT
|
|
> , for instance, say:
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> dip -t
|
|
> port ircomm0
|
|
> term
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
Probably you may use <B
|
|
CLASS="command"
|
|
>cu</B
|
|
> or <B
|
|
CLASS="command"
|
|
>xc</B
|
|
> instead of
|
|
<B
|
|
CLASS="command"
|
|
>dip</B
|
|
>, too <B
|
|
CLASS="command"
|
|
>cu -l /dev/ircomm0</B
|
|
>
|
|
or <B
|
|
CLASS="command"
|
|
>xc -l /dev/ircomm0</B
|
|
>. There are also reports
|
|
about some efforts with
|
|
the Ericsson GF768 and IR Modem DI 27.
|
|
</P
|
|
><P
|
|
> Benny Amorsen wrote: The SH888 emulates an IRDA-port when you connect
|
|
it using the serial cable. Why someone would think up something weird
|
|
like that is beyond me, but that is the way you get it to work in
|
|
Windows. Not that I ever managed to make it work in Windows, though.
|
|
</P
|
|
><P
|
|
> Ales Dryak has send this survey (looks like a Debian/GNU Linux
|
|
distribution, please modify your configuration accordingly). Mobile
|
|
Ericsson SH888 <B
|
|
CLASS="command"
|
|
>ati1 = 980408 1035 PRGCXC125101</B
|
|
>:
|
|
</P
|
|
><P
|
|
>
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> mknod /dev/ircomm0 c 161 0
|
|
mknod /dev/ircomm1 c 161 1
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
2. /etc/conf.modules:
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> alias tty-ldisc-11 irtty
|
|
alias char-major-161 ircomm-tty
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
3. /etc/irda/drivers: irattach /dev/ttyS0 -s # (IrDA port in SIR mode)
|
|
4. /etc/chatscripts/sh888
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> <ABORT stuff>
|
|
"" \d\d\d\d\d\dATZE0
|
|
OK ATD<phone number to call)
|
|
CONNECT \d\c
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
5. /etc/ppp/peers/sh888
|
|
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> noauth
|
|
connect "/usr/sbin/chat -v -f /etc/chatscripts/sh888"
|
|
/dev/ircomm
|
|
115200
|
|
defaultroute
|
|
noipdefault
|
|
user <your username> # don't forget to add your password to chap secrets or chat script
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
><P
|
|
> A few seconds (app. 30) after executing
|
|
<B
|
|
CLASS="command"
|
|
>pppd call sh888</B
|
|
> I get
|
|
connected to our Intranet/Internet having full IP connectivity
|
|
(telnet, ftp, www, icmp tested). Futhermore I can connect to
|
|
<TT
|
|
CLASS="filename"
|
|
>/dev/ircomm</TT
|
|
>
|
|
using <B
|
|
CLASS="command"
|
|
>minicom</B
|
|
> and play with AT command. Great! And looks
|
|
stable!
|
|
</P
|
|
><DIV
|
|
CLASS="sect4"
|
|
><H4
|
|
CLASS="sect4"
|
|
><A
|
|
NAME="AEN793"
|
|
></A
|
|
>3.10.3.2.1. Tools</H4
|
|
><P
|
|
> Gerhard Gonter reported: Several members of the list are successfully
|
|
using the Ericsson mobile phone SH888 with the Linux-IrDA software,
|
|
usually to use it as a modem. The software is also quite useful to
|
|
access other parts of the phone using AT commands. The built-in
|
|
phonebook is an interesting target.
|
|
</P
|
|
><P
|
|
> After A quick research on the Internet (FreshMeat, Deja, YAHOO), I did
|
|
not find any phonebook tool for Linux (or another Unix). To solve that
|
|
problem, I wrote a small Perl script and a related module. Since this
|
|
now works acceptably well for me, I decided to wrap that up and
|
|
release it at this early stage of development. The tarball can be
|
|
retrieved
|
|
<A
|
|
HREF="http://falbala.wu-wien.ac.at:8684/pub/english.cgi/0/172903"
|
|
TARGET="_top"
|
|
>here</A
|
|
>
|
|
|
|
.
|
|
</P
|
|
><P
|
|
> In the mailing list <B
|
|
CLASS="command"
|
|
>gsmlib</B
|
|
> was also recommended, though ... there was
|
|
no way for me to use this over infrared, no connection with my sh888.
|
|
Florian Lohoff reported: Works (kind of) with the S25. I needed to
|
|
change a ifdef as it seems the S25 does not respond with CR LF. But
|
|
setting a link from /dev/mobilephone -> /dev/ircomm lets me send SMS
|
|
via the S25 without a problem. Phonebook backup does NOT work because
|
|
the S25 does some silly responses to probably empty phonebooks.
|
|
</P
|
|
><P
|
|
> The specifications for SMS messages and phone books can be downloaded
|
|
free (of charge, not FSF free ;-) from ETSI. Search for GSM 07.07 (you
|
|
might also want GSM 07.05). You have to register before downloading
|
|
it. The standards are in Acrobat PDF format. The S25 supported
|
|
commands are available on the Siemens websites as a PDF for free.
|
|
</P
|
|
><P
|
|
> A survey of the AT commands for the SH888 is at
|
|
<A
|
|
HREF="http://mobileinternet.ericsson.se/emi_download/sh888/888_R1D.pdf"
|
|
TARGET="_top"
|
|
>Ericsson</A
|
|
>
|
|
.
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN803"
|
|
></A
|
|
>3.10.3.3. NOKIA</H3
|
|
><P
|
|
> Carlos Vidal wrote: Correct me if I'm wrong, but it seems to me that
|
|
Nokia telephones do not contain a genuine hardware modem, but
|
|
something which is similar in principle to WinModems for PC. Whenever
|
|
Nokia writes about modem communication, they use the name "Windows
|
|
software modem" (or something similar). Which is actually backed up by
|
|
the need to use special Nokia software for Windows (called Nokia
|
|
Cellular Data Suite).
|
|
</P
|
|
><P
|
|
> Joonas Lehtinen wrote: This is true with 61xx models. Models: 8810,
|
|
9000(i) and 9110 should work fine. (They have inbuilt modem). My Nokia
|
|
9000 reports IrCOMM with linux.
|
|
</P
|
|
><P
|
|
> Some suggestion by Carlos Vidal carlos_at_tarkus.se : "I'm doing some
|
|
tests trying to see how far can I get with my Nokia 6110 on Linux.
|
|
I've just compiled gnokii-0.2.4 [
|
|
<A
|
|
HREF="http://www.gnokii.org/"
|
|
TARGET="_top"
|
|
>gnokii</A
|
|
>
|
|
|
|
is a tool set for Nokia mobile phones connected via serial cable for Linux and *BSD
|
|
, WH], but it doesn't work [please check current <B
|
|
CLASS="command"
|
|
>gnokii</B
|
|
>
|
|
, the behaviour should have been improved, there is also useful
|
|
documentation about IrDA connections to phones, WH]. As I have Nokia Data Suite I did the following connection:
|
|
</P
|
|
><P
|
|
> Nokia 6110 <-- Nokia Cable --> PC/Linux <-- Null-modem cable -->
|
|
PC/W95
|
|
</P
|
|
><P
|
|
> In the PC/Linux I run the program snooper (by Jun-ichiro itojun Itoh
|
|
, sorry couldn't find an URL maybe some other
|
|
sniffer will do it also, e.g. sniffit, see also appendix about serial
|
|
sniffers, WH) with small modifications in order to configure the
|
|
serial port correctly.
|
|
</P
|
|
><P
|
|
> Normally, if snooper has the correct baud rate, the phone and the
|
|
PC/W95 should communicate as if there was no snooper in between. This
|
|
worked pretty well when I cracked the protocol of my Minolta camera.
|
|
The problem here is that the phone doesn't answer or hangs after a
|
|
while.
|
|
</P
|
|
><P
|
|
> It seems that the timing is quite important during the initial phase
|
|
of the communication. The log I obtain is:
|
|
</P
|
|
><P
|
|
> <TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> 0>1: UUUUUUUUUUUUUUUUUUUUUUUU
|
|
line 0: LE *DTR *RTS ST SR CTS CD RI *DSR
|
|
line 1: LE *DTR *RTS ST SR CTS CD RI *DSR
|
|
0>1: UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
|
|
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
|
|
UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
|
|
UUUUUUUUUUUUUUU\x1e\x00\x0c\x02\x00\x09\x00\x01\x00\x0d\x00\x00\x02\x01@\x00P\x
|
|
06
|
|
1>0: \x18\x00\x00\x00\xfc\x18\x00\x00\x00\x00\x00\x00\xc0\xf0
|
|
0>1: \x1e\x00\x0c\x02\x00\x09\x00\x01\x00\x0d\x00\x00\x02\x01@\x00P\x06
|
|
1>0: \x18\x00\x00\x00\x18\x00\x00\xc0\xf0\x18\x00\x00\x00\x00\x00\x00\xc0\xf0
|
|
0>1: \x1e\x00\x0cd\x00\x06\x00\x01\x00\x10\x01`\x13\x13
|
|
1>0: \x18\x00\x00\xf0\x00\x00\xfc
|
|
0>1: \x1e\x00\x0cd\x00\x06\x00\x01\x00\x10\x01`\x13\x13
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
0 is the PC/95 and 1 is the phone. The communication starts with a
|
|
stream of 'U' (0x55) and with DSR/DTR on. The phone answers with '0x18
|
|
0x00 ...'. This dialog continues for a while as if both were deaf and
|
|
finally the phone crashes and the only way to reset it is to remove
|
|
the batteries!
|
|
</P
|
|
><P
|
|
> I guess that what happens is that the phone is trying to find the
|
|
correct baud-rate and fails because of the delays introduced by
|
|
snooper. This probably has to do with some IrDA protocol used with
|
|
also with the infrared connection."
|
|
</P
|
|
><P
|
|
> Wessel de Roode "I managed to get the
|
|
Discovery IR hint bits (with my Palm Pilot):
|
|
</P
|
|
><P
|
|
> <TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> Discover:
|
|
0:xxxxxxxx:81.01
|
|
01 IR_HINT_PNP 01 IR_HINT_TELEPHONY (IrMC ?)
|
|
80 IR_HINT_EXT
|
|
|
|
Device info query:
|
|
\006Device\012DeviceName
|
|
4e 6f 6b 69 61 20 36 31 30 30 Nokia 6100
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
I also managed to query the PNP device of the Nokia. It has one PNP
|
|
device. It's PNPC100 which equalt a 9600 baud modem. I deleted the
|
|
query, if somene can send me a hint to restore it. was somthing like
|
|
IrDA:<dunno>:PNP:Comp#01 The same query with IrDA:<dunno>:PNP:CompCnt
|
|
gives the number of PNP-devices are available in the Nokia. Which is
|
|
here only one."
|
|
</P
|
|
><P
|
|
> There are also reports about gsmlib for sending and receiving sms
|
|
messages, updating address books etc). These functions are working,
|
|
except for minor charset problems.
|
|
</P
|
|
><DIV
|
|
CLASS="sect4"
|
|
><H4
|
|
CLASS="sect4"
|
|
><A
|
|
NAME="AEN821"
|
|
></A
|
|
>3.10.3.3.1. Recommended Tools</H4
|
|
><P
|
|
> <A
|
|
HREF="http://www.gnokii.org"
|
|
TARGET="_top"
|
|
>gnokii</A
|
|
>
|
|
is a Linux/Unix tool suite and soon to be modem/fax driver
|
|
for Nokia (GSM) mobile phones. Phones supported include 3110,
|
|
3810, 8110, 5110, 6110 and their derivatives.
|
|
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect3"
|
|
><H3
|
|
CLASS="sect3"
|
|
><A
|
|
NAME="AEN825"
|
|
></A
|
|
>3.10.3.4. Siemens</H3
|
|
><P
|
|
> Configuration
|
|
|
|
By Florian Lohoff: "Do it step by step - Get your
|
|
irda working <B
|
|
CLASS="command"
|
|
>irattach /dev/ttySx</B
|
|
> etc. Then have a look at the
|
|
<TT
|
|
CLASS="filename"
|
|
>/proc/net/irda/discovery</TT
|
|
>
|
|
whether you find something like this:
|
|
</P
|
|
><P
|
|
>
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> (flo@paradigm)~# cat /proc/net/irda/discovery
|
|
IrLMP: Discovery log:
|
|
nickname: SIEMENS S25, hint: 0x9024, saddr: 0x4286ce23, daddr: 0x04295741
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
Now load ircomm and ircomm-tty and normally(tm) you should be able to
|
|
connect to the correct /dev/ircomm and you can easily dial and
|
|
load/backup the phonebook etc ...", e.g. with minicom.
|
|
</P
|
|
><P
|
|
> Timo Felbinger describes the connection between a Toshiba and a
|
|
Siemens S25:
|
|
</P
|
|
><P
|
|
>
|
|
<P
|
|
></P
|
|
><UL
|
|
><LI
|
|
><P
|
|
> kernel 2.2.12 and patch-2.2.12-irda3, IrDA support in the kernel,
|
|
ircomm and ircomm-tty as a module
|
|
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> <B
|
|
CLASS="command"
|
|
>mknod /dev/ircomm0 c 161 0</B
|
|
>
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> <B
|
|
CLASS="command"
|
|
>modprobe ircomm</B
|
|
>, <B
|
|
CLASS="command"
|
|
>modprobe ircomm-tty</B
|
|
>
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> start irattach with modprobe toshoboe in the start section of
|
|
/etc/irda/drivers . Note: don't load toshoboe before the
|
|
irattach, this may cause device or resource busy
|
|
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> after <B
|
|
CLASS="command"
|
|
>dip -t</B
|
|
> and the command port ircomm0 the S25 shows a
|
|
connection. Note: the IR port of the S25 has to be activated of
|
|
course, the distance between the two devices seems not critical.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> After term the S25 behaves like the usual Hayes modem and can be
|
|
used with the AT commands.
|
|
</P
|
|
></LI
|
|
><LI
|
|
><P
|
|
> dial-out with pppd works out of the box.
|
|
</P
|
|
></LI
|
|
></UL
|
|
>
|
|
|
|
</P
|
|
><DIV
|
|
CLASS="sect4"
|
|
><H4
|
|
CLASS="sect4"
|
|
><A
|
|
NAME="AEN853"
|
|
></A
|
|
>3.10.3.4.1. Recommended Tools</H4
|
|
><P
|
|
> <A
|
|
HREF="http://www.hendrik-sattler.de/scmxx"
|
|
TARGET="_top"
|
|
>SCMxx</A
|
|
>
|
|
can copy files to and from a Siemens mobile phone and also delete
|
|
stored files. Files can read from a given file or through stdin and stored to
|
|
a given file or stdout. SMS can also be directly sent or received without
|
|
storing in the mobile phone. SCMxx was tested with several mobile phones
|
|
manufactured by Siemens (only S25 and later).
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="sect2"
|
|
><H2
|
|
CLASS="sect2"
|
|
><A
|
|
NAME="AEN857"
|
|
></A
|
|
>3.10.4. German e-plus</H2
|
|
><P
|
|
> A note to German e-plus users:
|
|
</P
|
|
><P
|
|
> Every e-plus contract (except Free&Easy) contains a PPP conncetion to
|
|
the WWW (no separate registration necessary). This service is
|
|
available around Germany under the phone number 123100. This worked
|
|
also out of the box.
|
|
</P
|
|
><P
|
|
> pppd configuration:
|
|
</P
|
|
><P
|
|
>
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> /dev/ircomm0
|
|
defaultroute
|
|
netmask 255.255.255.0
|
|
debug
|
|
mtu 552
|
|
crtscts
|
|
noauth
|
|
connect '/usr/sbin/chat -v -f /etc/ppp/eplus.chat'
|
|
chat script /etc/ppp/eplus.chat:
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
</P
|
|
><P
|
|
>
|
|
<TABLE
|
|
BORDER="0"
|
|
BGCOLOR="#E0E0E0"
|
|
WIDTH="100%"
|
|
><TR
|
|
><TD
|
|
><FONT
|
|
COLOR="#000000"
|
|
><PRE
|
|
CLASS="programlisting"
|
|
> ABORT "BUSY"
|
|
ABORT "ERROR"
|
|
ABORT "NO CARRIER"
|
|
ABORT "NO DIALTONE"
|
|
ABORT "NO ANSWER"
|
|
SAY "initializing modem..."
|
|
"" "AT"
|
|
"OK" "ATZ"
|
|
SAY "dialing..."
|
|
"OK" "ATDT123100"
|
|
SAY "waiting for CONNECT..."
|
|
"CONNECT" ""
|
|
SAY "connected!"
|
|
SAY ""
|
|
</PRE
|
|
></FONT
|
|
></TD
|
|
></TR
|
|
></TABLE
|
|
>
|
|
|
|
For the nameserver you may use 192.76.144.66 . Username or password
|
|
are not necessary.
|
|
</P
|
|
></DIV
|
|
></DIV
|
|
><DIV
|
|
CLASS="NAVFOOTER"
|
|
><HR
|
|
ALIGN="LEFT"
|
|
WIDTH="100%"><TABLE
|
|
SUMMARY="Footer navigation table"
|
|
WIDTH="100%"
|
|
BORDER="0"
|
|
CELLPADDING="0"
|
|
CELLSPACING="0"
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="infrared-howto-s-pocketpc-connection.html"
|
|
ACCESSKEY="P"
|
|
>Prev</A
|
|
></TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="index.html"
|
|
ACCESSKEY="H"
|
|
>Home</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="infrared-howto-s-digital-camera-connection.html"
|
|
ACCESSKEY="N"
|
|
>Next</A
|
|
></TD
|
|
></TR
|
|
><TR
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="left"
|
|
VALIGN="top"
|
|
>Connecting from Linux to WinCE 3.0 (aka PocketPC)</TD
|
|
><TD
|
|
WIDTH="34%"
|
|
ALIGN="center"
|
|
VALIGN="top"
|
|
><A
|
|
HREF="infrared-howto-c-specific-connections.html"
|
|
ACCESSKEY="U"
|
|
>Up</A
|
|
></TD
|
|
><TD
|
|
WIDTH="33%"
|
|
ALIGN="right"
|
|
VALIGN="top"
|
|
>Digital Camera Connection</TD
|
|
></TR
|
|
></TABLE
|
|
></DIV
|
|
></BODY
|
|
></HTML
|
|
> |