Irda MA-620

#lsusb
Bus 002 Device 003: ID 0df7:0620 Mobile Action Technology, Inc. MA-620 Infrared Adapter

Netről összevadászot infók alapján:
modprobe uhci_hcd
modprobe pl2303
modprobe irda
modprobe irtty-sir
modprobe ma600-sir
modprobe ircomm-tty
irattach /dev/ttyUSB0 -d ma600 -s

irdadump szerint keresi a telefont, de ha telefonról (Siemens C75) szeretnék valamit küldeni (ircp-vel probalom) akkor nem találják egymást.

Ha az irdadump mukodik akkor elvileg minden rendben van a betöltött kernelmodulok és a konfigurárlás körül? Valami tipp kellene hogy merre tovább.

Hozzászólások

ja, és ha a telefont az infraport közelébe viszem miközben fut az irdadump, akkor:
"21:11:22.825831 xid:rsp 9c865eb7 < 00001164 S=6 s=5 SIEMENS C75 hint=b124 [ PnP Modem Fax IrCOMM IrOBEX ] (28)"

Szal valami van...

szerkesztve:
közben nézegettem az OpenObex oldalát, és a SiemensC75-ön nem műküdik. Így kiesett az ObexFTP és az ircp is. Van más progi erre?

A netről ezt sikerült összeszedni:
1.command:
Code:

sudo apt-get install irda-utils

command:
Code:

sudo gedit /etc/default/irda-utils

Code:

ENABLE="true"
AUTOMATIC="true"
DISCOVERY="true"
DEVICE="/dev/ttyUSB0"
DONGLE="ma600"
SETSERIAL=""

* for Dapper and Edgy (not necessary for Breezy) *
command:
Code:

sudo modprobe irda

command:
Code:

sudo gedit /etc/modules

add new line:
Code:

irda

**********************************

command:
Code:

sudo /etc/init.d/irda-utils start

command:
Code:

sudo irdadump

dump:
Code:

16:00:42.064181 xid:cmd c3d543e3 > ffffffff S=6 s=0 (14)
16:00:42.154104 xid:cmd c3d543e3 > ffffffff S=6 s=1 (14)
16:00:42.244091 xid:cmd c3d543e3 > ffffffff S=6 s=2 (14)
16:00:42.334077 xid:cmd c3d543e3 > ffffffff S=6 s=3 (14)
16:00:42.424063 xid:cmd c3d543e3 > ffffffff S=6 s=4 (14)
16:00:42.514049 xid:cmd c3d543e3 > ffffffff S=6 s=5 (14)
16:00:42.604039 xid:cmd c3d543e3 > ffffffff S=6 s=* ubuntu hint=0400 [ Computer ] (22)

when i used sony ericsson K300i:
Code:

16:01:15.059106 xid:cmd c3d543e3 > ffffffff S=6 s=0 (14)
16:01:15.149089 xid:cmd c3d543e3 > ffffffff S=6 s=1 (14)
16:01:15.239074 xid:cmd c3d543e3 > ffffffff S=6 s=2 (14)
16:01:15.325057 xid:rsp c3d543e3 < 00007c49 S=6 s=2 K300 series hint=9124 [ PnP Modem IrCOMM IrOBEX ] (28)
16:01:15.329063 xid:cmd c3d543e3 > ffffffff S=6 s=3 (14)
16:01:15.419053 xid:cmd c3d543e3 > ffffffff S=6 s=4 (14)
16:01:15.509041 xid:cmd c3d543e3 > ffffffff S=6 s=5 (14)
16:01:15.599022 xid:cmd c3d543e3 > ffffffff S=6 s=* ubuntu hint=0400 [ Computer ] (22)

so it works...

Majd:
2. sudo-ként futtatom az alábbi tartalmú fájlt (pl. infra.sh)
modprobe irlan && modprobe irtty_sir && modprobe sir_dev && modprobe irtty_sir && modprobe ircomm_tty && modprobe usbserial && modprobe irda_usb && modprobe pl2303 && modprobe ircomm && modprobe ircomm_tty && modprobe irda && modprobe ma600-sir && echo 9600 > /proc/sys/net/irda/max_baud_rate && irattach /dev/ircomm0 -s -d ma600 && ifconfig irda0 up
3. sudo irdadump -i irda0
Ezzel felismeri a telefont.
4. Telefonról fájl fogadása:
sudo ircp -r
és kiválasztjuk a telefonról a küldést infrán át.
5. küldés telóra számítógépről:
sudo ircp /útvonal/elküldendő.jpg

Ezekkel működik, igaz csak a számítógépről telefonra való átvitel (Nokia 6234 esetében). Telóról küldést nem sikerült életre kelteni számítógépre. (Talán butított az infraport ?)