I removed all previously installed software from my computer and i compiled&installed
irda-utils-0.9.17 from source even though my gcc4 refused to compile smcinit included in the package - so i removed it from makefile and succesfully compiled with gcc version 4.0.2 20050901 (prerelease) (SUSE Linux).
Then i connect my infrared adapter MA-620 to the usb port i get :
usb 2-2: new full speed USB device using uhci_hcd and address 4
pl2303 2-2:1.0: PL-2303 converter detected
usb 2-2: PL-2303 converter now attached to ttyUSB0
so I have the device /dev/ttyUSB0
on lsusb -s 002:002 -v i get:
Code:
Bus 002 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 64
idVendor 0x0df7 Mobile Action Technology, Inc.
idProduct 0x0620 MA-620 Infrared Adapter
bcdDevice 3.00
iManufacturer 1 Prolific Technology Inc.
iProduct 2 USB-Serial Controller
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
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
then i load the kernel modules:
modprobe pl2303
modprobe irda
echo 9600 > /proc/sys/net/irda/max_baud_rate
modprobe irtty-sir
modprobe ma600-sir
modprobe ircomm-tty
and i attach the device
irattach /dev/ttyUSB0 -d ma600 -s
From this point on in dmesg i get:
Code:
irda_init()
NET: Registered protocol family 23
irda_register_dongle : registering dongle "MA600" (11).
IrCOMM protocol (Dag Brattli)
sirdev_get_instance - ttyUSB0
irtty_open - ttyUSB0: irda line discipline opened
Framing or parity error!
sirdev_receive - too early: 00000000 / 0!
Framing or parity error!
sirdev_receive - too early: 00000000 / 0!
irlap_change_speed(), setting speed to 9600
Framing or parity error!
sirdev_receive; rx-drop: 0
Framing or parity error!
sirdev_receive; rx-drop: 0
Framing or parity error!
sirdev_receive; rx-drop: 0
Framing or parity error!
sirdev_receive; rx-drop: 0
Framing or parity error!
sirdev_receive; rx-drop: 0
Framing or parity error!
sirdev_receive; rx-drop: 0
Framing or parity error!
sirdev_receive; rx-drop: 0
Framing or parity error!
when i hit a button on the remote with xosview i see IRQ3 show up so the signal is received by my computer.
however if i "watch ifconfig irda0" i see all the packets dropped
Code:
irda0 Link encap:IrLAP HWaddr 00:00:00:00
UP RUNNING NOARP MTU:2048 Metric:1
RX packets:0 errors:0 dropped:77 overruns:0 frame:0
TX packets:511 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:8
RX bytes:0 (0.0 b) TX bytes:8030 (7.8 Kb)
here is where i am.