Ok, I've successfully setup my remote and a usb ir blaster, so I figured, how hard could it be to set up a serial ir blaster? Well, I just submitted a new post asking for help cause' I can't get mine working... I'm using different hardware than you are, but I can give you a few things to try out, maybe you'll get lucky. First go to /etc/lirc/ and make a backup of hardware.conf and lircd.conf
At the terminal, type this:
It will bring up a graphical window a la' 1986, I think the first screen you just hit enter to continue, then the following screen is where you use the arrow key to move down and select : Manually, then exit out of the window. What you are doing is telling the lirc program not to overwrite this file in the future, and mess up the manual changes you've made.
sudo dpkg-reconfigure setserial
Now you need to modify a file. (these are all just regular text files btw) It's located in /etc/modprobe.d/lirc - it might be called lirc-serial.conf You have to un-comment, ie. remove the hash mark, so that the program reads the line. It should look like this:
#COM1 equivalent , /dev/ttyS0
options lirc_serial irq=4 io=0x3f8
#COM1 equivalent , /dev/ttyS2
#options lirc_serial irq=3 io=0x2f8
Another file to edit, it's located in /var/lib/setserial/autoserial.conf You're going to add or modify if it's already there, a line at the bottom:
Then, you are going to add that exact line again into another file, located at: /etc/serial.conf If the file doesn't exist, create it.
/dev/ttyS0 uart none
2: Back to the command line, type: dpkg-reconfigure lirc
The first screen/section is for setting up a remote, use the arrows key to move up to NONE, hit enter. This next section is where lirc will create a hardware.conf file for you, based on what you choose. You want to move down to where it says, SERIAL, I think there is a choice of SERIAL IR of some sort, and one for SERIAL (UART) Direct TV Receiver. Try the ir one first. Next screen you should choose ttyS0, and exit out of the program. Next is to open your /etc/lirc/hardware.conf file. This is what lirc just created, see in the transmitter section where it says:
change the name in quotes to "SERIAL"
TRANSMITTER=" what ever the name is here "
Next, go to the file: /usr/share/lirc/transmitters/directtv/general.conf About 10 lines down or so it will say: name .
enter SERIAL here, no quotes or anything. Save this file.
Back to the command line: Enter this:
This is where we try to tell the program lirc to send the code for guide, (the direct tv guide) to the STB. Copy any errors that you see if this doesn't work, ie. if it doesn't bring up your Direct TV guide. But, hopefully your Direct TV Guide came up. If not, post back and hopefully I've learned more and can help debug.
sudo irsend -d /dev/lircd0 SEND_ONCE SERIAL guide