gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 8210 and IrDa


From: Thomas Watz
Subject: Re: 8210 and IrDa
Date: Tue, 3 Sep 2002 10:53:08 +0200

[...]
> let's start from the beginning. Please show:
>  o irda configuration from the kernel


# IrDA (infrared) support
#
CONFIG_IRDA=m

#
# IrDA protocols
#
CONFIG_IRLAN=m
CONFIG_IRNET=m
CONFIG_IRCOMM=m
# CONFIG_IRDA_ULTRA is not set

#
# IrDA options
#
CONFIG_IRDA_CACHE_LAST_LSAP=y
CONFIG_IRDA_FAST_RR=y
CONFIG_IRDA_DEBUG=y

#
# Infrared-port device drivers
#

#
# SIR device drivers
#
CONFIG_IRTTY_SIR=m
CONFIG_IRPORT_SIR=m

#
# Dongle support
#
CONFIG_DONGLE=y
# CONFIG_ESI_DONGLE is not set
CONFIG_ACTISYS_DONGLE=m
CONFIG_TEKRAM_DONGLE=m
# CONFIG_GIRBIL_DONGLE is not set
# CONFIG_LITELINK_DONGLE is not set
# CONFIG_OLD_BELKIN_DONGLE is not set

#
# FIR device drivers
#
# CONFIG_USB_IRDA is not set
CONFIG_NSC_FIR=m
CONFIG_WINBOND_FIR=m
CONFIG_TOSHIBA_FIR=m

>  o all irda related configuration (how do you run it, modules.conf,
> etc) o loaded irda modules when running gnokii/minicom

gamma:/boot# lsmod
ircomm-tty             30144   0  (autoclean)
ircomm                 13180   0  (autoclean) [ircomm-tty]
irtty                   7296   2  (autoclean)
serial                 44128   1  (autoclean)
actisys                 1408   1
irda                  138060   1  [ircomm-tty ircomm irtty actisys]
[...]

gamma:/boot# cat /etc/irda.conf
#irda.conf Version: 1.0
IRDADEV=/dev/ttyS0
DONGLE=actisys+
DISCOVERY=-s
ENABLE=yes # if you do not need to start irattach, set "no"

address@hidden:~$ dmesg | grep ir
mtrr: v1.40 (20010327) Richard Gooch (address@hidden)
Installing knfsd (copyright (C) 1996 address@hidden).
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hub.c: hub controller current requirement: 0mA
hub.c: hub controller current requirement: 0mA
hub.c: hub controller current requirement: 0mA
cmpci: found CM8738 adapter at io 0xb800 irq 9
irda_init()
hub.c: hub controller current requirement: 100mA
printer.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 1 proto 2 
vid 0x03F0 pid 0x1004
  Type:   Direct-Access                      ANSI SCSI revision: 02
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
IrDA: Registered device irda0
irtty_net_open()
irlap_change_speed(), setting speed to 9600
parport0: irq 7 detected
ircomm_tty_attach_cable()
ircomm_tty_ias_register()
ircomm_tty_close()
ircomm_tty_shutdown()
ircomm_tty_detach_cable()
ircomm_close()
IrDA: Registered device irda0
irtty_net_open()
irlap_change_speed(), setting speed to 9600
ircomm_tty_attach_cable()
ircomm_tty_ias_register()
irlap_change_speed(), setting speed to 115200
ircomm_param_service_type(), services in common=04
ircomm_param_service_type(), resulting service type=0x04
ircomm_param_port_type(), port type=1
ircomm_param_port_type(), port type=1
ircomm_param_xon_xoff(), XON/XOFF = 0x11,0x13
ircomm_param_enq_ack(), ENQ/ACK = 0x13,0x11
ircomm_tty_check_modem_status()
ircomm_tty_check_modem_status()
ircomm_tty_check_modem_status()
ircomm_tty_check_modem_status()
ircomm_tty_close()
ircomm_tty_shutdown()
ircomm_tty_detach_cable()
ircomm_close()
irlap_change_speed(), setting speed to 9600

gamma:/boot# cat /etc/modutils/irda
alias tty-ldisc-11 irtty
alias char-major-161 ircomm-tty
alias char-major-60 ircomm_tty

# for dongle
alias irda-dongle-0 tekram
alias irda-dongle-1 esi
alias irda-dongle-2 actisys
alias irda-dongle-3 actisys
alias irda-dongle-4 girbil
alias irda-dongle-5 litelink
alias irda-dongle-6 airport
alias irda-dongle-7 old_belkin

# for FIR device
#alias irda0 nsc-ircc dongle_id=0x09

gamma:/boot# ls -l /dev/ir*
crw-rw-rw-    1 root     dialout  161,   0 Aug 17 14:35 /dev/ircomm0
crw-rw-rw-    1 root     dialout  161,   1 Aug 17 14:35 /dev/ircomm1
crw-rw-rw-    1 root     lp       161,  16 Aug  9 14:31 /dev/irlpt0
crw-rw-rw-    1 root     lp       161,  17 Aug  9 14:31 /dev/irlpt1

gamma:/boot# setserial -bg /dev/ttyS*
/dev/ttyS0 at 0x03f8 (irq = 4) is a 16550A
/dev/ttyS1 at 0x02f8 (irq = 3) is a 16550A

gamma:/boot# irdadump
08:38:09.099784 xid:cmd ef6e1e21 > ffffffff S=6 s=0 (14)
08:38:09.189781 xid:cmd ef6e1e21 > ffffffff S=6 s=1 (14)
08:38:09.279781 xid:cmd ef6e1e21 > ffffffff S=6 s=2 (14)
08:38:09.369784 xid:cmd ef6e1e21 > ffffffff S=6 s=3 (14)
08:38:09.459783 xid:cmd ef6e1e21 > ffffffff S=6 s=4 (14)
08:38:09.549784 xid:cmd ef6e1e21 > ffffffff S=6 s=5 (14)
08:38:09.549772 xid:rsp ef6e1e21 < 902a0000 S=6 s=4 Nokia 8210 
hint=b125 [ PnP Modem Fax Telephony IrCOMM IrOBEX ] (27)
08:38:09.639783 xid:cmd ef6e1e21 > ffffffff S=6 s=* gamma hint=0400 [ 
Computer ] (21)
08:38:12.099784 xid:cmd ef6e1e21 > ffffffff S=6 s=0 (14)
08:38:12.189783 xid:cmd ef6e1e21 > ffffffff S=6 s=1 (14)
08:38:12.279782 xid:cmd ef6e1e21 > ffffffff S=6 s=2 (14)
08:38:12.369786 xid:cmd ef6e1e21 > ffffffff S=6 s=3 (14)
08:38:12.369772 xid:rsp ef6e1e21 < 902a0000 S=6 s=2 Nokia 8210 
hint=b125 [ PnP Modem Fax Telephony IrCOMM IrOBEX ] (27)
08:38:12.459784 xid:cmd ef6e1e21 > ffffffff S=6 s=4 (14)
08:38:12.549782 xid:cmd ef6e1e21 > ffffffff S=6 s=5 (14)
08:38:12.639781 xid:cmd ef6e1e21 > ffffffff S=6 s=* gamma hint=0400 [ 
Computer ] (21)

gamma:/boot# cat /proc/net/irda/discovery
IrLMP: Discovery log:

nickname: Nokia 8210, hint: 0xb125, saddr: 0xef6e1e21, daddr: 
0x84260000

>  o gnokii config

gamma:/boot# cat /etc/gnokiirc
[global]
port = /dev/ircomm0
#port = /dev/ttyS0
model = 8210
initlength = default
connection = irda    #serial
bindir = /usr/sbin/
serial_baudrate = 19200 #115200
use_locking = yes
[connect_script]
TELEPHONE = 12345678
[disconnect_script]

>  o gnokii --identify output with debug enabled

gamma:/boot# gnokii --identify
GNOKII Version 0.5.0pre
cfg_read_file - open /root/.gnokiirc: No such file or directory
Opened configuration file /etc/gnokiirc
Added new section global
Adding key/value port//dev/ircomm0
Adding key/value model/8210
Adding key/value initlength/default
Adding key/value connection/irda    #serial
Adding key/value bindir//usr/sbin/
Adding key/value serial_baudrate/19200 #115200
Adding key/value use_locking/yes
Added new section connect_script
Adding key/value TELEPHONE/12345678
Added new section disconnect_script
Serial device: opening device /dev/ircomm0
Serial device: setting speed to 115200
Serial device: setting RTS to low and DTR to high
Getting phone info (old way)...
Message sent: 0xd1 / 0x0005
00 01 00 03 00                                  |
SM_Block Retry - 0
Message sent: 0xd1 / 0x0005
00 01 00 03 00                                  |
SM_Block Retry - 1
Message sent: 0xd1 / 0x0005
00 01 00 03 00                                  |
SM_Block Retry - 2
Telephone interface init failed: Command timed out. Quitting.

> and then answer these questions:
> 1. Does minicom to the phone work?

Yes, I think so. 

gamma:/etc/minicom# cat minirc._dev_ircomm0
# Machine-generated file - use "minicom -s" to change parameters.
pr port             /dev/ttyS0
pu baudrate         115200
pu bits             8
pu parity           N
pu stopbits         1

Output of minicom:

Welcome to minicom 1.83.1

OPTIONS: History Buffer, F-key Macros, Search History Buffer, I18n
Compiled on Jul 31 2002, 20:59:15.

Press CTRL-A Z for help on special keys

ATZ
OK
at
OK


> 2. Does anything else with the irda dongle work?

I have a successful irdadump output of another phone (Siemens S35i) 
and of a PDA (palm 515). But I did not try to get them running 
with a prog., because they are not mine.

> Sorry for bothering you again, but it will be easier to solve the
> problem having all informations in one email.

No problem, its me who like to run the phone :-)

Thank you for your help.

Thomas

-- 
God said: tar xvzf universe.tar.gz - and the Universe was!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]