I'm also trying to get a Zalman box to run MythTV, but an HD140. I'm having similar problems with IR.
I think I got a bit further - here's what I did, FWIW:
1. I've got the following kernel settings to run a USB-Serial bridge:
Code: Select all
CONFIG_USB_SERIAL=y
CONFIG_USB_SERIAL_GENERIC=y
2. lsusb -v yields the following:
Code: Select all
Bus 002 Device 002: ID 0403:fc60 Future Technology Devices International, Ltd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0403 Future Technology Devices International, Ltd
idProduct 0xfc60
bcdDevice 4.00
iManufacturer 1 MConsult
iProduct 2 IRTrans USB
iSerial 3 MMUN0000
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 50mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 2 IRTrans USB
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
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 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
3. Downloaded the irtrans SW from the irtrans site & rebuilt it for 64-bit without CCF support - use the irserver_noccf target.
I'm running it with the following parameters:
Code: Select all
irserver -daemon -netmask 127.0.0.1/32 -logfile /var/log/irserver.log /dev/ttyUSB0
To view IR inputs, this will do the trick:
Code: Select all
irserver -loglevel 4 -debug_code /dev/ttyUSB0
4. Using the above IR input data, I built a 'remote' file for the irserver to map IR data to actual events. When you restart the server in debug mode, the output will actually consist of events you defined. The remote file content looks like this:
Code: Select all
[REMOTE]
[NAME]ZALMAN
[TIMING]
[0][RC6]
[COMMANDS]
[POWER][T]0[D]S11101010000000000011110000010000001100
[STOP][T]0[D]S11101010000000000011110000010000011001
...
If you want to, I can send you the file...
5. Created a lircrc file to map the Zalman remote events to mythtv events.
6. The irtrans server creates a /dev/lircd socket for lircd-compliant apps to get their IR events from. This is where I'm stuck for now, so any and all tips & hints appreciated
