Crreating LIRC config file for Dishnetwork VIP222k in Linux

Having problems? Use this forum to find help!

Moderator: jrhees

Crreating LIRC config file for Dishnetwork VIP222k in Linux

Postby Darkstar » Fri May 07, 2010 5:41 pm

Since I cannot find a working version of an lircd.conf file for the Dishnetwork VIP222k satellite settop box, I have decided to pursue the course of making my own. Towards that goal I purchase a USB-UIRT and have made some headway in creating an lircd.conf file but am running into some snags so need some help. (I also have an IR Blaster which I could use to transmit but not receive.)

I am running under openSuSE11.2 x86_64 architecture. The version of LIRC that I am using is 0.8.5

I configured the lirc daemon to use the device /dev/ttyUSB0 and initially I tried to follow the table at lirc.org and use the driver - usb_uirt_raw which it says I should use for the USB-UIRT hardware. But I had absolutely no luck getting anything to work with that configuration. Internet Google searches led me to find that others were having success using the UIRT2 driver so I decided to give that a try instead. And indeed irrecord did start to act as if it worked so I went ahead and used it to record keys from my remote. I have attached the resulting config file I created but I noticed something funny about it that does not make sense to me. The definitions for the pulse and space lengths for zero and one are all set to 0 and that strikes me as wrong.... The command I used for irrecord was -

irrecord -f --driver=uirt2 --device=/dev/ttyUSB0 VIP222k.conf

Anywise, not being a guru on this, I tried to forge on ahead and see if irsend would indeed be able to send the codes for various keys and control my satellite settop box. No joy! This is what I get when I try -

nova:/home/marc/lirc # irsend --device=/dev/ttyUSB0 SEND_ONCE VIP222k key_8
irsend: could not connect to socket
irsend: Connection refused

The man pages don't give much help on using the --device option so I fooled around with it a lot, with and without the option, but always get the same error no matter what I tried. There is another option called SET_TRANSMITTERS which looks interesting but I was unable to find any documentation on how to use this parameter.

As I mentioned, I have set up a separate daemon to handle the IR Blaster so I attempted to send a key code with it, and that perhaps offers a bit of a clue, which makes me even more suspicious about the definitions of pulse and space lengths for zero and one as defined by irrecord....

nova:/home/marc/lirc # /usr/local/lirc-ledxmit/bin/ledxmit-irsend SEND_ONCE VIP222k key_8
irsend: command failed: SEND_ONCE VIP222k key_8
irsend: transmission failed

From the log file I get the following interesting results...

May 5 22:48:57 nova ledxmitd: accepted new client on /dev/ledxmitd
May 5 22:48:57 nova ledxmitd: invalid send buffer
May 5 22:48:57 nova ledxmitd: this remote configuration cannot be used to transmit
May 5 22:48:57 nova ledxmitd: error processing command: SEND_ONCE VIP222k key_8
May 5 22:48:57 nova ledxmitd: transmission failed
May 5 22:48:57 nova ledxmitd: removed client

So I am stuck now and sure would appreciate some help getting me out of these woods! And thanks in advance.. I have attached my lircd.conf and hope that will prove useful.

Marc..


lircd.conf


# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.5(uirt2) on Wed May 5 18:21:28 2010
#
# contributed by Marc Chamberlin marc@marcchamberlin.com
#
# brand: DishNetwork
# model no. of remote control: VIP222K
# devices being controlled by this remote: High Def Satellite Settop Box
#
# remote is operating on Channel 2
#

begin remote

name VIP222k
bits 48
eps 30
aeps 100

one 0 0
zero 0 0
gap 3988
toggle_bit_mask 0x19670043002B

begin codes
key_1 0x8FA209760935
key_2 0xBB8209760935
key_3 0x873209760935
key_4 0x8F1209760A35
key_5 0xE9E209760935
key_6 0x3CA209760935
key_7 0x17C209760935
key_8 0x38D209760935
key_9 0x56B209760935
key_0 0x302209760935
KEY_RIGHT 0x9D1209760A35
KEY_LEFT 0xD5820A750935
KEY_CHANNELUP 0x7BD2051A0503
KEY_CHANNELDOWN 0x7B12051A0503
KEY_SELECT 0x28E209760935
KEY_VOLUMEUP 0x7302B1560B0A
KEY_VOLUMEDOWN 0xF922B1560B0A
KEY_MUTE 0x0302B1560B0A
KEY_MENU 0xE7A209760935
KEY_PROGRAM 0x573209760935 # Guide
KEY_PAGEUP 0x890209760935
KEY_PAGEDOWN 0xAE6209760935
KEY_CANCEL 0x706209760935
KEY_FASTFORWARD 0x04620976091E
KEY_FORWARD 0xC5020976091E
KEY_REWIND 0xE7920976091E
KEY_PREVIOUS 0x7FA20976091E
KEY_BACK 0xDCA20976091E
KEY_STOP 0x80F20976091E
KEY_RECORD 0x409209760935
KEY_PLAY 0xF01209760935
KEY_PAUSE 0xDEA209760A1E
KEY_SEARCH 0xDD420976091E
KEY_INFO 0xEE9209760935
KEY_POWER 0xBA720A750A35
KEY_RED 0x9FF20A760935
KEY_GREEN 0x06420976091E
KEY_YELLOW 0xB3420976091E
KEY_BLUE 0x6DA20976091E
end codes

end remote
Darkstar
 
Posts: 2
Joined: Wed May 05, 2010 10:03 pm

Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 32 guests

cron