gammu, NOKIA 6822 and Mobile Action 620
Manolis Nazlidis
emnazli at ath.forthnet.gr
Sun Feb 5 00:09:35 EET 2006
Kalhspera se olous,
trexo linux kai zhtao th bohtheia sas, gia na kano to kinhto moy na
epikoinonhsei sosta me to pc moy. Exo NOKIA 6822 kai to infrared adaptor MA-620
apo Mobile Action. Pistevo oti to en logo thema, mporei na apasxolei arketo
kosmo, kathos to MA-620 exei poulhsei arketa sthn ellada, kai tha itan poly
endiaferon an htan dynato na dieftheto to kinhto moy apo lunux. Symfona me osa
brhka sto google, to en logo dongle (MA-620), an kai einai syskevh usb, den
exei kapoia amesh sxesh me to irda-usb yposysthma. Prokeitai gia mia syskevh
poy apoteleitai apo to usb=>RS232 bridge PL2303 ths Prolific mazi me pompodekth
Standard Infrared (SIR). Kai epeidh to MA-620 einai symbato me to MA-600 (poy
einai h idia syskevh alla seiriakh ?), mporei na xrhsimopoihthei to serial
dongle ma600.
$ uname -a
Linux saturn.myhomenet 2.6.15 #2 SMP PREEMPT Wed Jan 11 14:15:11 EET 2006 i686
i686 i386 GNU/Linux
$ lsusb -v -s 5:2
Bus 005 Device 002: ID 0df7:0620 Mobile Action Technology, Inc. MA-620 Infrared
Adapter
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0df7 Mobile Action Technology, Inc.
idProduct 0x0620 MA-620 Infrared Adapter
bcdDevice 0.10
iManufacturer 0
iProduct 0
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
Remote Wakeup
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x000a 1x 10 bytes
bInterval 1
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Xrhsimopoio ton 2.6.15 kernel kai me
CONFIG_IRDA=y
CONFIG_IRLAN=m
CONFIG_IRNET=m
CONFIG_IRCOMM=m
CONFIG_IRDA_DEBUG=y
CONFIG_IRTTY_SIR=m
CONFIG_DONGLE=y
CONFIG_MA600_DONGLE=m
CONFIG_USB_IRDA=m
CONFIG_USB_SERIAL=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_PL2303=m
Molis syndeo to MA-620 dongle, exo ta ekshs:
[ 15.958696] /mnt/sda3/src/kernels/linux-2.6.15/drivers/usb/serial/usb-serial.c:
USB Serial support registered for pl2303
[ 15.959529] pl2303 5-1:1.0: usb_probe_interface
[ 15.959532] pl2303 5-1:1.0: usb_probe_interface - got id
[ 15.960149] usb 5-1: pl2303 converter now attached to ttyUSB0
[ 15.960165] usbcore: registered new driver pl2303
[ 15.960169] /mnt/sda3/src/kernels/linux-2.6.15/drivers/usb/serial/pl2303.c:
Prolific PL2303 USB to serial adaptor driver
ta access rights sto /dev/ttyUSB0 einai ok.
kano:
$ cat /proc/bus/usb/devices
[ ... ]
T: Bus=05 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=12 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0df7 ProdID=0620 Rev= 0.10
C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303
E: Ad=81(I) Atr=03(Int.) MxPS= 10 Ivl=1ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
[...]
sth synexeia, exontas fortosei ta katallhla modules, trexo
$ irattach -s -d ma600
sto /var/log/messages pairno
Feb 4 20:40:54 saturn irattach: executing: 'echo saturn
> /proc/sys/net/irda/devname'
Feb 4 20:40:54 saturn irattach: executing: 'echo 1
> /proc/sys/net/irda/discovery'
Feb 4 20:40:54 saturn irattach: Starting device irda0
Ta pragmata fainetai na phgainoyn kala:
$ ifconfig irda0
irda0 Link encap:IrLAP HWaddr 00:00:00:00
UP RUNNING NOARP MTU:2048 Metric:1
RX packets:177 errors:0 dropped:0 overruns:0 frame:0
TX packets:22363 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:8
RX bytes:5165 (5.0 KiB) TX bytes:336146 (328.2 KiB)
kathos kai opote energopoio tis yperythres sto kinhto moy, kanontas ena dump exo
$ irdadump
14:10:35.122732 xid:cmd 9e45ae27 > ffffffff S=6 s=0 (14)
14:10:35.213912 xid:cmd 9e45ae27 > ffffffff S=6 s=1 (14)
14:10:35.305096 xid:cmd 9e45ae27 > ffffffff S=6 s=2 (14)
14:10:35.385688 xid:rsp 9e45ae27 < 0000c063 S=6 s=2 Nokia 6822 hint=b125 [ PnP
Modem Fax Telephony IrCOMM IrOBEX ] (27)
14:10:35.396280 xid:cmd 9e45ae27 > ffffffff S=6 s=3 (14)
14:10:35.487463 xid:cmd 9e45ae27 > ffffffff S=6 s=4 (14)
14:10:35.578646 xid:cmd 9e45ae27 > ffffffff S=6 s=5 (14)
14:10:35.669832 xid:cmd 9e45ae27 > ffffffff S=6 s=* saturn hint=0400
[ Computer ] (22)
14:10:38.122182 xid:cmd 9e45ae27 > ffffffff S=6 s=0 (14)
14:10:38.213361 xid:cmd 9e45ae27 > ffffffff S=6 s=1 (14)
14:10:38.304544 xid:cmd 9e45ae27 > ffffffff S=6 s=2 (14)
14:10:38.395729 xid:cmd 9e45ae27 > ffffffff S=6 s=3 (14)
14:10:38.486922 xid:cmd 9e45ae27 > ffffffff S=6 s=4 (14)
14:10:38.567499 xid:rsp 9e45ae27 < 0000c063 S=6 s=4 Nokia 6822 hint=b125 [ PnP
Modem Fax Telephony IrCOMM IrOBEX ] (27)
14:10:38.578097 xid:cmd 9e45ae27 > ffffffff S=6 s=5 (14)
14:10:38.669280 xid:cmd 9e45ae27 > ffffffff S=6 s=* saturn hint=0400
[ Computer ] (22)
14:10:41.121630 xid:cmd 9e45ae27 > ffffffff S=6 s=0 (14)
14:10:41.212813 xid:cmd 9e45ae27 > ffffffff S=6 s=1 (14)
14:10:41.303994 xid:cmd 9e45ae27 > ffffffff S=6 s=2 (14)
14:10:41.385580 xid:rsp 9e45ae27 < 0000c063 S=6 s=2 Nokia 6822 hint=b125 [ PnP
Modem Fax Telephony IrCOMM IrOBEX ] (27)
14:10:41.395180 xid:cmd 9e45ae27 > ffffffff S=6 s=3 (14)
14:10:41.486362 xid:cmd 9e45ae27 > ffffffff S=6 s=4 (14)
14:10:41.577547 xid:cmd 9e45ae27 > ffffffff S=6 s=5 (14)
14:10:41.668728 xid:cmd 9e45ae27 > ffffffff S=6 s=* saturn hint=0400
[ Computer ] (22)
Epipleon,
$ lsmod
Module Size Used by
ma600_sir 3072 1
irtty_sir 6656 2
sir_dev 14668 2 ma600_sir,irtty_sir
ircomm_tty 29576 0
ircomm 16772 1 ircomm_tty
pl2303 15364 1
usbserial 24680 3 pl2303
kai
$ for i in /proc/net/irda/*; do echo "$i: "; cat $i; done
/proc/net/irda/discovery:
IrLMP: Discovery log:
nickname: Nokia 6822, hint: 0xb125, saddr: 0xbf8ee575, daddr: 0x00006d19
/proc/net/irda/ircomm:
/proc/net/irda/irias:
LM-IAS Objects:
name: Device, id=0
- Attribute name: "IrLMPSupport", value[IAS_OCT_SEQ]: octet sequence (3 bytes)
- Attribute name: "DeviceName", value[IAS_STRING]: "saturn"
/proc/net/irda/irlap:
irlap0 state: LAP_NDM
device name: irda0, hardware name: ttyUSB0
caddr: 0xd6, saddr: 0xbf8ee575, daddr: 0x16430000
win size: 1, win: 1, line capacity: 4800, bytes left: 4800
tx queue len: 0 win queue len: 0 rbusy: FALSE mbusy: FALSE
retrans: 24 vs: 0 vr: 0 va: 7
qos bps maxtt dsize winsize addbofs mintt ldisc comp
tx 9600 0 64 1 12 0 0
rx 9600 0 64 1 12 0 0
/proc/net/irda/irlmp:
Unconnected LSAPs:
lsap state: LSAP_DISCONNECTED, slsap_sel: 0x0, dlsap_sel: 0xff, (IrIAS srv)
Registered Link Layers:
lap state: LAP_STANDBY, saddr: 0xbf8ee575, daddr: 0xffffffff, num lsaps: 0
Connected LSAPs:
/proc/net/irda/irttp:
kathos kai
$ for i in /proc/sys/net/irda/*; do echo -n "$i="; cat $i; done
/proc/sys/net/irda/debug=0
/proc/sys/net/irda/devname=saturn
/proc/sys/net/irda/discovery=1
/proc/sys/net/irda/discovery_slots=6
/proc/sys/net/irda/discovery_timeout=3
/proc/sys/net/irda/fast_poll_increase=50
/proc/sys/net/irda/lap_keepalive_time=2000
/proc/sys/net/irda/max_baud_rate=115200
/proc/sys/net/irda/max_noreply_time=12
/proc/sys/net/irda/max_tx_data_size=2042
/proc/sys/net/irda/max_tx_window=7
/proc/sys/net/irda/min_tx_turn_time=10
/proc/sys/net/irda/slot_timeout=90
/proc/sys/net/irda/warn_noreply_time=3
Trexo to gammu gia na do ti ginetai me to kinhto moy kai de fainetai na yparxei
kanena apotelesma.
Kanena allo paketo de metadidetai (symfona me to irdadump), kai bgazei to ekshs
$ gammu textall --identify
[Gammu - 1.04.00 built 12:17:43 Dec 29 2005 in gcc 4.0]
[Connection - "irda"]
[Model type - ""]
[Device - "/dev/ttyUSB0"]
[Run on - Linux, kernel 2.6.15]
[ERROR 14: No response in specified timeout. Probably phone not connected.]
No response in specified timeout. Probably phone not connected.
Exo dokimasei polles diaforetikes configurations gia to gammurc sto ~/.gammurc
alla tipota. To kinhto 6822 ths NOKIA, typika den yposthrizetai, alla einai
apogonos toy 6820, pou yposthirizetai sthn teleftaia ekdosh toy gammu.
Tha ektimousa idiaitera th bohtheia sas, pano se olo afto to thema h tis
protaseis sas gia th xrhsh enallaktikou logismikou gia thn epikoinonia
pc<-->mobile, an fysika gnorizete kati.
Me ektimhsh,
Manolis Nazlidis
More information about the Linux-greek-users
mailing list