IRDA i Sagem V-55
podlaczamy urzadzenie
[yaro][~]$ lsusb
Bus 004 Device 002: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 005: ID 066f:4200 SigmaTel, Inc. STIr4200 IrDA Bridge
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
[yaro][~]$
[yaro][~]$ dmesg |tail -n 5
[17210339.960000] usb 3-2: new full speed USB device using uhci_hcd and address 5
[17210340.080000] usb 3-2: device descriptor read/64, error -71
[17210340.344000] usb 3-2: configuration #1 chosen from 1 choice
[17210340.352000] SigmaTel STIr4200 IRDA/USB found at address 5, Vendor: 66f, Product: 4200
[17210340.352000] drivers/net/irda/stir4200.c: IrDA: Registered SigmaTel device irda0
[yaro][~]$
[yaro][~]$ lsmod|grep 4200
stir4200 14212 0
irda 200892 3 irda_usb,stir4200,via_ircc
usbcore 130304 9 irda_usb,stir4200,wacom,rt73,usb_storage,libusual,ehci_hcd,uhci_hcd
[yaro][~]$
jesli nie mamy wyswietlonych modulow irda_usb i stir4200 ladujemy je:
[yaro][~]$ sudo modprobe irda_usb stir4200
[yaro][~]$
instalujemy oprogramowanie:
[yaro][~]$ sudo apt-get install irda-utils libopenobex1 openobex-apps obexftp
[yaro][~]$ cd /tmp
[yaro][~]$ wget http://download.gro.clinux.org/ircp-tray/ircp-tray_0.6.1-1_i386.deb
[yaro][~]$ sudo dpkg -i ircp-tray_0.6.1-1_i386.deb
wlaczamy je i sprawdzamy
[yaro][~]$ sudo irattach irda0 -s
[yaro][~]$ ifconfig irda0
irda0 Link encap:IrLAP HWaddr 63:b3:bd:ef
UP RUNNING NOARP MTU:2048 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:49 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:8
RX bytes:0 (0.0 b) TX bytes:749 (749.0 b)
[yaro][~]$ cat /proc/net/irda/discovery
IrLMP: Discovery log:
nickname: SAGEM, hint: 0x9025, saddr: 0x63b3bdef, daddr: 0x428201a6
[yaro][~]$ sudo irdadump
18:25:19.759335 xid:cmd 63b3bdef > ffffffff S=6 s=0 (14)
18:25:19.859282 xid:cmd 63b3bdef > ffffffff S=6 s=1 (14)
18:25:19.959289 xid:cmd 63b3bdef > ffffffff S=6 s=2 (14)
18:25:20.059299 xid:cmd 63b3bdef > ffffffff S=6 s=3 (14)
18:25:20.132218 xid:rsp 63b3bdef < 428201a6 S=6 s=3 SAGEM hint=9025 [ Modem Telephony IrCOMM IrOBEX ] (22)
18:25:20.159317 xid:cmd 63b3bdef > ffffffff S=6 s=4 (14)
18:25:20.259308 xid:cmd 63b3bdef > ffffffff S=6 s=5 (14)
18:25:20.359318 xid:cmd 63b3bdef > ffffffff S=6 s=* siryaro hint=0400 [ Computer ] (23)
18:25:22.759472 xid:cmd 63b3bdef > ffffffff S=6 s=0 (14)
18:25:22.859469 xid:cmd 63b3bdef > ffffffff S=6 s=1 (14)
18:25:22.959477 xid:cmd 63b3bdef > ffffffff S=6 s=2 (14)
18:25:23.032746 xid:rsp 63b3bdef < 428201a6 S=6 s=2 SAGEM hint=9025 [ Modem Telephony IrCOMM IrOBEX ] (22)
18:25:23.059491 xid:cmd 63b3bdef > ffffffff S=6 s=3 (14)
18:25:23.159501 xid:cmd 63b3bdef > ffffffff S=6 s=4 (14)
18:25:23.259504 xid:cmd 63b3bdef > ffffffff S=6 s=5 (14)
18:25:23.359505 xid:cmd 63b3bdef > ffffffff S=6 s=* siryaro hint=0400 [ Computer ] (23)
16 packets received by filter
[yaro][~]$
po przerwaniu kombinacja CTRL+C widzimy ze nasz SAGEM odpowiada na "pingi":
18:25:20.132218 xid:rsp 63b3bdef < 428201a6 S=6 s=3 SAGEM hint=9025 [ Modem Telephony IrCOMM IrOBEX ] (22)
i wysylamy teraz plik:
[yaro][~]$ irobex_palm3 /tmp/youtube.jpg
Send and receive files to Palm3
name=/tmp/youtube.jpg, size=673
.
PUT successful
[yaro][~]$
odbieramy plik z telefonu:
[yaro][~]$ irobex_palm3
Send and receive files to Palm3
Waiting for files
Unknown event!
............HEADER_LENGTH = 5261
put_done() Skipped header 42
Filename = Ania IE.JPG
Wrote Ania IE.JPG (5261 bytes)
[yaro][~]$
jak przeslac na razie wiecej nie wiem :P
jak sie dowiem uzupelnie ten opis.
polaczenie jest bardzo latwe do zerwania :(
w moim przypadku wystarczylo drgniecie telefonu i trzeba bylo irde odlaczac i podlaczac ponownie wywolywac irattach aby znowu zadzialalo.
Jak ktos wie jak np sciagnac cala ksiazke telefoniczna to prosze o kontakt