3 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
4 <meta name="Author" content="Marcin Wiacek">
5 <title>Configuration</title>
6 <link REL=stylesheet HREF="../styl.css" TYPE="text/css">
11 <p align="RIGHT"><a class="autoremail" href="../index.htm">Main page</a></p>
12 <center><font color="#1F409F" size=+2 class="tytul">Configuration</font></center>
14 <p><hr size="2" noshade width="60%" align="center" style="color: #004080">
16 <p><font color="#1F409F" size=+2 class="dzial">How to install it from the source ?</font><br>
17 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
19 <p>If you get the sources you need to create script
20 <i>configure</i>. You do it by typing:
21 <PRE>tfuj:~/gnokii-0.3.3pre5$ autoconf</PRE>
23 <P>If you get the sources from the tarball you don't need to do
24 this - <TT>configure</TT> is already made for you. For quick install do simply:
25 <PRE>tfuj:~/gnokii-0.3.3pre5$ ./configure
26 tfuj:~/gnokii-0.3.3pre5$ make
27 tfuj:~/gnokii-0.3.3pre5$ make install
30 <P>But <i>configure</i> has some options. Except obvious
31 parameters as <i>--prefix</i> which specifies a path to install GNOKII, you
32 can specify one of the following:
36 <dd>Shows you list of available options</dd></dl>
38 <DT><i>--enable-debug</i>
39 <DD>Turns on debugging. It's usefull especially for developers. But if you
40 find a bug in GNOKII, please compile the sources with debugging enabled and
41 send this output to the GNOKII mailing list. This is used by <i>gnokii</i>
44 <DT><i>--enable-xdebug</i>
45 <DD>The same as above but used by <i>xgnokii</i>. </DD></DL>
47 <DT><i>--enable-rlpdebug</i>
48 <DD>This option turns on debugging specific to the RLP stuff. Note, that it's
49 very important at the moment as this part of GNOKII is under the hardest
50 development. </DD></DL>
52 <DT><i>--without-x</i>
53 <DD>Don't include X Window system support - <i>xgnokii</i>. </DD></DL>
55 <DT><i>--enable-security</i>
56 <DD>Turns on some security functions:.... Use them with caution. </DD></DL>
58 <DT><i>--enable-win32</i>
59 <DD>Include MS Windows support. Yes, it really exists. ;-) </DD></DL>
61 <DT><i>--with-model=MODEL</i>, <i>--with-port=PORT</i>
62 <DD>Specify the model of the phone (eg. 6150) and the port it is connected to
63 (eg. /dev/ttyS1). These values can be overwritten with ones from the config
69 <PRE>tfuj:~/gnokii-0.3.3pre5$ ./configure --prefix=/usr2 --enable-debug --without-x \
70 --enable-security --with-model=6130 --with-port=/dev/ttyS1
73 <P>When the <i>configure</i> succeed, it shows options GNOKII
74 will be compiled with:
75 <PRE> Host system: linux-gnulibc1
76 Gnokii version: 0.3.3_pre5
77 Xgnokii version: 20000613
79 Serial port: /dev/ttyS1
90 <P>Now, the only thing left to do is just ro run:
91 <PRE>tfuj:~/gnokii-0.3.3pre5$ make
92 tfuj:~/gnokii-0.3.3pre5$ make install
95 <P>Finally, you have GNOKII installed in your system. And now REAL
98 <p><font color="#1F409F" size=+2 class="dzial">How to install it from binaries ?</font><br>
99 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
101 <p>If you downloaded gnokii as a pre-built binary you should install
102 it in the conventional manner for the package type in question.
103 For example if you downloaded a .rpm file you can install it by
104 running the following as root.
106 <p>rpm -i gnokii-0.3.2-i386.rpm
108 <p>If you are using a Debian based system, you can use dpackage
109 to do the installation (FIXME - is this correct ?)
111 <p><font color="#1F409F" size=+2 class="dzial">How to make connection with phone ?</font><br>
112 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
114 <p>There are three ways to make it:
117 <li>connecting phone with computer using cable. All phones allow to make it
118 (even 3210 - connector is inside). If you want to know more
119 about creating your own cable, read <a href=../gsm/cables/cables.htm>cables faq</a>.</li>
120 <li>using IrDa port in phone and computer. Notice, that your computer
121 and phone must have it (only some series of Nokia phones has it - for example,
123 <li>connecting to phone special device called "dongle" (it has IrDa port)
124 and making IrDa connection between it and phone. Current gnokii cas use
125 Tekram IRmate 210 - see patches</li>
128 <p><font color="#1F409F" size=+2 class="dzial">How to configure gnokii ?</font><br>
129 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
131 <p>First it to use <i>--with-model</i> and <i>--with-port</i> options for
132 configure script. But I do not recommend this. In my opinion these should be
133 removed from configure. Second disadvantage is that you can't use it when
134 you are installing a binary package.
136 <p>So, will use better method :-).
137 You should copy the <a href=../examples/gnokiirc>gnokiirc</a>
138 file from the Docs/examples directory to your
139 home directory and name it gnokiirc or copy it into /etc directory
142 <p>Using your favorite
143 editor ensure that the settings are correct for your system,
144 the sample file has details of the various options available. The most
145 difficult problem could be discovering model of your phone - go into
146 our <a href=../gsm/firmware/firmware.htm>firmware page</a>
147 and try to use codes written in column
148 <b>Firmware version code</b>. If your phone will display something,
149 see model number on the third line, look on the
150 <a href=../gsm/firmware/firmware.htm>firmware page</a>
151 again (for it) and read phone model then.
153 <p>Note that you will need read/write permissions on whatever
154 serial port you specify in gnokiirc. You can now use gnokii
157 <P>Of course, you don't have to make any config, if you will use
158 these config options. There are default:
167 bindir=/usr/local/sbin
170 <p><font color="#1F409F" size=+2 class="dzial">How to configure infrared connection ?</font><br>
171 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
176 <li>Go into configuration of your IrDa port (the most often it's made in
177 BIOS, sometimes using program provided by computer's producer):
182 <li>Setup the COM-Port on which it should work.
184 <br>ttyS0 (COM1): 3F8, IRQ: 4
185 <br>ttyS1 (COM2): 2F8, IRQ: 3
186 <br>ttyS2 (COM3): 3E8, IRQ: 4
187 <br>ttyS3 (COM4): 2E8, IRQ: 3
193 <li>Configure gnokii (see previous question)
194 setting type of connection to
197 <li>If you are using linux, put linux-irda off (you can't use gnokii over infrared and
198 linux-irda at the same time - it means too, if you want use
199 linux-irda you must close all gnokii-applications what
200 use the infrared-port in moment).
204 <p><font color="#1F409F" size=+2 class="dzial">How to configure gnokii driver for data connection ?</font><br>
205 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
207 <p>After installing and configuring gnokii you should make another group
208 and allow mgnokiidev (it our virtual modem driver)
209 to use it. For example (if you have installed gnokii
213 <i>groupadd gnokii<br>
214 chown root:gnokii /usr/local/sbin/mgnokiidev<br>
215 chmod 4750 /usr/local/sbin/mgnokiidev</i>
217 <p><b>And now connect (FIRST EXAMPLE):</b>
219 <p>Then connect your phone to your PC and then run gnokiid:
221 <PRE>[ first console ]
222 tfuj:/home/pawel/gnokii# ./gnokiid/gnokiid
225 <p>If successful, you should see a message saying that mgnokiidev has been
226 run to create /dev/gnokii. If you're using a 5110/6110 series phone
227 you should hear a beep and see an "accessory connected" message on
228 the phone. If you're using a 3810 series phone you won't see anything
236 [- running minicom -]
239 [- when connection is estabilished -]
240 tfuj:/etc/ppp# /usr/sbin/pppd -d -detach /dev/gnokii 115200
242 Connect: ppp0 <--> /dev/gnokii
243 sent [LCP ConfReq id=0x1 <MRU 552> <ASYNCMAP 0x0> <MAGIC 0xc5c718fb> <PCOMP> <ACCOMP>]
244 rcvd [LCP ConfReq id=0x8e <ASYNCMAP 0xa0000> <MAGIC 0x56292222> <PCOMP> <ACCOMP> < 11 04 05 f4> < 13 0d 01 70 69 65 6b 6e 61 2d 61 73 34>]
245 sent [LCP ConfRej id=0x8e < 11 04 05 f4> < 13 0d 01 70 69 65 6b 6e 61 2d 61 73 34>]
246 rcvd [LCP ConfNak id=0x1 <MRU 1500>]
247 sent [LCP ConfReq id=0x2 <ASYNCMAP 0x0> <MAGIC 0xc5c718fb> <PCOMP> <ACCOMP>]
248 rcvd [LCP ConfReq id=0x8f <ASYNCMAP 0xa0000> <MAGIC 0x56292222> <PCOMP> <ACCOMP>]
249 sent [LCP ConfAck id=0x8f <ASYNCMAP 0xa0000> <MAGIC 0x56292222> <PCOMP> <ACCOMP>]
250 rcvd [LCP ConfAck id=0x2 <ASYNCMAP 0x0> <MAGIC 0xc5c718fb> <PCOMP> <ACCOMP>]
251 sent [IPCP ConfReq id=0x1 <ADDR 192.168.1.10> <COMPRESS 01 0f VJ>]
252 sent [CCP ConfReq id=0x1 <DEFLATE 15> <DEFLATE(OLD#) 15> <BSD 15 v1>]
253 rcvd [IPCP ConfReq id=0x16 <COMPRESS 0f VJ 00> <ADDR 157.25.75.129>]
254 sent [IPCP ConfAck id=0x16 <COMPRESS 0f VJ 00> <ADDR 157.25.75.129>]
255 rcvd [IPCP ConfNak id=0x1 <ADDR 157.25.94.141>]
256 sent [IPCP ConfReq id=0x2 <ADDR 157.25.94.141> <COMPRESS 01 0f VJ>]
257 rcvd [LCP ProtRej id=0x90 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f]
258 rcvd [IPCP ConfAck id=0x2 <ADDR 157.25.94.141> <COMPRESS 01 0f VJ>]
259 local IP address 157.25.94.141
260 remote IP address 157.25.75.129
261 Terminating on signal 2.
262 sent [LCP TermReq id=0x3 "User request"]
263 rcvd [LCP TermAck id=0x3]
264 Connection terminated.
265 Connect time 5.6 minutes.
266 Sent 30568 bytes, received 197133 bytes.
270 <p><b>SECOND EXAMPLE (I used such scripts):</b>
272 <PRE>/home/pawel/.gnokiirc
273 ---------------------
285 NETMASK=255.255.255.0
286 DIALER_SCRIPT=/etc/ppp/ppp-gnokii
287 exec /usr/sbin/pppd debug /dev/gnokii 115200 \
288 $LOCAL_IP:$REMOTE_IP \
289 connect $DIALER_SCRIPT
297 ABORT '\nNO ANSWER\r' \
298 ABORT '\nRINGING\r\n\r\nRINGING\r' \
299 ABORT '\nNO CARRIER\r' \
318 <P>Number 501808080 is an Internet access number for all Idea
319 Centertel (Polish GSM operator) abonents. With these files the only thing to do
320 is to run <i>gnokiid</i> and <i>/usr/sbin/ppp-gnokii</i>. Note that both:
321 <i>/usr/sbin/ppp-gnokii</i> and <i>/etc/ppp/ppp-gnokii</i> must be
322 executable files. At the moment you have to run <i>ppp-gnokii</i> as the
323 superuser unless the simple user has a permission to write to a <I>pty</I>
324 device. <i>gnokiid</i> must be run as the user belinging to <I>gnokii</I>
329 tfuj:~S /usr/sbin/gnokiid
331 Slave pty is /dev/ttyp9, calling /usr/sbin/mgnokiidev to create /dev/gnokii.
334 tfuj:~# /usr/sbin/ppp-gnokii
335 Serial connection established.
337 Connect: ppp0 <--> /dev/gnokii
338 Warning - secret file /etc/ppp/pap-secrets has world and/or group access
339 sent [LCP ConfReq id=0x1 ]
340 rcvd [LCP ConfReq id=0xbb ]
341 sent [LCP ConfAck id=0xbb ]
342 rcvd [LCP ConfNak id=0x1 ]
343 sent [LCP ConfReq id=0x2 ]
344 rcvd [LCP ConfAck id=0x2 ]
345 Warning - secret file /etc/ppp/pap-secrets has world and/or group access
346 sent [PAP AuthReq id=0x1 user="ppp" password="ppp"]
347 rcvd [PAP AuthAck id=0x1 ""]
349 sent [IPCP ConfReq id=0x1 ]
350 sent [CCP ConfReq id=0x1 ]
351 rcvd [IPCP ConfReq id=0x49 ]
352 sent [IPCP ConfAck id=0x49 ]
353 rcvd [IPCP ConfNak id=0x1 ]
354 sent [IPCP ConfReq id=0x2 ]
355 rcvd [IPCP ConfAck id=0x2 ]
356 local IP address 192.168.23.55
357 remote IP address 192.168.9.2
360 <p><b>THIRD EXAMPLE:</b>
362 <p>Use /dev/gnokii as a modem:
364 <p><i>e.g. ppp session<br>
365 --------------- /etc/ppp/peers/demon-gnokii ---------------------<br>
366 /dev/gnokii 115200<br>
367 modem crtscts defaultroute<br>
368 connect 'chat -v ABORT BUSY ABORT ERROR ABORT "NO CARRIER" "" AT OK-AT-OK ATD02083389666 CONNECT'<br>
369 user XXXX.demon.co.uk<br>
373 ----------------------------------------------------------------<br>
374 --------------- /etc/ppp/pap-secrets ---------------------------<br>
375 XXXX.demon.co.uk demon-gnokii <yourpassword><br>
376 ----------------------------------------------------------------<br>
379 <p>Then "pppd call demon-gnokii" should connect
380 <br>('tail -f /var/log/messages' to see what is happening)
382 <p>If a call terminates you should get 'NO CARRIER' and gnokiid should
383 continue to work, but this is early code and you may find you have to
384 Ctrl-C and restart gnokiid (especially if the phone says the terminal
385 connection has been lost)
387 <p><b>AND ANOTHER EXAMPLE PPP SCRIPT FROM <a href="mailto:wikne@lynx.uio.no">Jon Wikne</a>:</b>
393 # Script to launch PPP over a Nokia 5110 / 6110 mobile phone<br>
394 # 20-06-2000 -- Jon Wikne<br>
396 ### NOTE: "01234567" and "username" below must be replaced<br>
397 ### with your actual ISP's phone number and your user name.<br>
399 ### NOTE 2: If you are calling an ISDN number or a digital<br>
400 ### line you may also need ATS35=0 in the chat sequence.<br>
402 # Launch gnokiid....<br>
403 echo "Launching gnokiid... "<br>
404 /usr/local/sbin/gnokiid &<br>
406 # Wait for gnokiid to find the phone.<br>
409 # Now, down to business!<br>
410 echo "Calling and starting pppd... "<br>
411 pppd /dev/gnokii 115200 debug connect \<br>
412 'chat -v ECHO ON ABORT BUSY ABORT ERROR ABORT "NO CARRIER" \<br>
413 "" AT OK ATDT01234567 CONNECT ""' \<br>
414 noipdefault ipcp-accept-local ipcp-accept-remote \<br>
417 # Some cleaning up to do....<br>
419 echo -n "Stopping gnokiid... "<br>
420 ps ax | awk 'BEGIN { prog="/usr/local/sbin/gnokiid"; ARGC=1 } <br>
421 { if (prog == $5) { print $1 ; exit 0 } }' $1<br>
426 <p><font color="#1F409F" size=+2 class="dzial">Permission problem...</font><br>
427 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
430 > Now xgnokii want to connecting..... and some minutes later it's say:
431 > Gnokii serial_open: open: Permission denied
432 > Couldn't open FB61 device: Permission denied
434 you should set your /dev/ttySx to:
436 crw-rw---- 1 root dialout 4, 65 Jul 5 2000 /dev/ttyS1
438 and add yourself to the group dialout. or make a new group gnokii
439 and do the same thing for this group. see the gnokii doc about
440 this, especialy if you want to use gnokiid.
443 <p><font color="#1F409F" size=+2 class="dzial">Xgnokii files missed...</font><br>
444 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
447 > > I start to configure:
449 > > elwinx:/usr/src/gnokii# ./configure --prefix=/usr/local/
451 > > checking for X... (cached) libraries /usr/X11R6/lib, headers
452 > > /usr/X11R6/include
453 > > checking for X11/xpm.h... (cached) no
454 > > configure: warning: Cannot find include X11/xpm.h
455 > > configure: warning: Disabling xgnokii.
458 <p>For Debian GNU/Linux 2.2 potato:
464 > and show the result. You can't use xgnokii without libxpm.
466 After I installed the xpm4g-dev_3.4k-5.deb xgnokii found my X
468 My next Problem was the Program didn't find the gtk.h
470 I installed this lib's
472 libgtk1.2-dev_1.2.7-1.deb
474 and xgnokii are start up
481 On Red Hat 6.2 (or derived?)
483 sloth:danielm[12]% locate xpm.h
484 /usr/X11R6/include/X11/xpm.h
485 sloth:danielm[13]% rpm -qf /usr/X11R6/include/X11/xpm.h
488 On Red Hat 7 (or derived?)
490 mouth:danielm[4]% locate xpm.h
491 /usr/X11R6/include/X11/xpm.h
492 mouth:danielm[5]% rpm -qf /usr/X11R6/include/X11/xpm.h
493 XFree86-devel-4.0.1-1
496 <p><font color="#1F409F" size=+2 class="dzial">Infrared problem</font><br>
497 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
500 > I'm having trouble getting Gnokii to work with my Nokia 6110 using the
501 > infrared connection. It works perfectly with the cable. When I run gnokii
502 > as non-root I get the following output:
504 > Added new section global
505 > Adding key/value port//dev/ttyS3
506 > Adding key/value model/6110
507 > Adding key/value initlength/default
508 > Adding key/value connection/infrared
509 > Adding key/value bindir//usr/local/sbin/
510 > Entering monitor mode...
511 > Initialising GSM interface...
512 > Starting IR mode...!
513 > Couldn't open FB61 infrared device: Device or resource busy
514 > Hmmm... GSM_LinkOK never went true. Quitting.
516 > And if I run it as root it looks like this:
518 > Added new section global
519 > Adding key/value port//dev/ttyS3
520 > Adding key/value model/6110
521 > Adding key/value initlength/default
522 > Adding key/value connection/infrared
523 > Adding key/value bindir//usr/local/sbin/
524 > Entering monitor mode...
525 > Initialising GSM interface...
526 > Starting IR mode...!
527 > PC: 1c:00:0c:02:00:09:00:01:00:0d:00:00:02:01:40:00:52:06:
529 > PC: 1c:00:0c:02:00:09:00:01:00:0d:00:00:02:01:41:00:53:06:
531 > PC: 1c:00:0c:02:00:09:00:01:00:0d:00:00:02:01:42:00:50:06:
533 > PC: 1c:00:0c:02:00:09:00:01:00:0d:00:00:02:01:43:00:51:06:
535 > PC: 1c:00:0c:02:00:09:00:01:00:0d:00:00:02:01:44:00:56:06:
537 > Hmmm... GSM_LinkOK never went true. Quitting.
539 > It makes no difference if IR-reception is activated or not (well maybe the
540 > numbers are different, I haven't checked)
542 > I have followed the Alessandro's beta-HOWTO which was posted June 22 2000
543 > with the subject "Re: IR setup".
545 > In /var/log/messages I have found the following:
547 > Feb 18 23:34:16 bmw kernel: ircomm_tty: virtual tty driver for IrCOMM (
548 > revision:Wed May 26 00:49:11 1999 )
549 > Feb 18 23:34:16 bmw kernel: ttyS00 at 0x03f8 (irq = 4) is a 16550A
550 > Feb 18 23:34:16 bmw kernel: ttyS03 at 0x02e8 (irq = 3) is a 16550A
552 > I have tried both with and without the irda-module loaded (insmod
553 > irda) but without luck.
555 > I'm using a Fujitsu C325 Lifebook (labtop) and my Nokia 6110 is version
556 > 4.33. Has anyone experienced problems like these and hopefully has found a
557 > solution, or maybe just have some ideas for what I should try next.
559 "I also had removed the Ethernet PCcard.
560 That thing got assigned the _interrupt_ (irq 3) that the serial interface
561 for the IR port needs. Without it gnokii works."
563 Now I've got contact to my Nokia 6110 using the infrared port.
566 <p><font color="#1F409F" size=+2 class="dzial">Answering data calls problem...</font><br>
567 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
570 > It seems like it's some sort of PacBell or Verizon thing, because I
571 > get a ring when I try to dial a voice call, but when I dial from
572 > minicom/gnokiid I get "NO CARRIER" ("Check Operator Services" on the
573 > phone), and dialing in from the Palm still gets no ring.
575 First we should know how operators manage data call services,
576 is there any international standard (it would be, to make international data
577 calls possible). I described, how it works with my operator (Plusgsm/PL)
578 and I'm interesting if it's a worldwide standard for these services?
579 Did somebody tried to make a cellular-to-cellular international data transfer ?
581 In Plusgsm there are three kinds of data calls :
582 1. OUTGOING CALLS. Service activation is free with no additional monthly charge.
583 For default this service is disabled, you have to call operator's helpdesk
584 to enable. With this service is possible to call:
587 c) any "private" computer with own transfer protocol
588 d) ?? send a fax ?? (with special fax software for cellular modem
590 1 minute charge is similar to voice calls. It's not allowed by the operator
591 to answer incoming data call.
592 2. INCOMING CALLS. You have to pay for service activation (5$) and additional
593 monthly charge (10$). Then you will get a new SIM card with 2 phone numbers:
594 one for voice/sms and second one - for incoming data calls only.
595 1 min charge depends on the network from the call was initiated,
596 generally 1...2 times x voice call.
597 3. FAX CALLS. Another payable service, not covered by above mentioned.
598 There is a special trick for incoming fax: it's stored in "FAX mailbox",
599 you can call this mailbox with standard fax machine
600 (or cellular modem connected to PC) to receive it.
602 I guess your operator have similar restrictions for incoming data calls and
603 here is your problem. Incoming call is recognized as a data type and rejected.
604 It would be nice to know if it's rejected on the operator's software level or
605 by the phone software (acc. to informations stored in the SIM).
606 In the second case it's easier to omit these restrictions. But be careful !
607 You will be treated by the law in the same way as if you try to hack
608 Bill Gates credit card number ;-) .
611 <p><font color="#1F409F" size=+2 class="dzial">Xgnokii works, gnokii not...</font><br>
612 <hr align="LEFT" size="3" width="300" color="#60c0a0" noshade>
615 > 1. Why is it that xgnokii communicates perfectly with my 3210, while the
616 > only thing that the command line gnokii does is:
617 > GSM/FBUS init failed! (Unknown model ?). Quitting.
618 > [cvd@sirius gnokii]$ ./gnokii --monitor
619 > Opened configuration file /home/cvd/.gnokiirc
620 > Added new section global
621 > Adding key/value port//dev/ttyS1
622 > Adding key/value model/3210
623 > Adding key/value initlength/default
624 > Adding key/value connection/serial
626 Look into latest gnokiirc from /docs/default. "serial" setting for connection
627 is not used from long time. Change to other actual parameter ("fbus" ?)...