View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 23 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: ira-3 oem
PostPosted: Thu Nov 16, 2006 1:23 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
Hi i have purchased a ira-3 oem serial ir. Running Rd51 backend with RC57 frotend.

I see on the wiki at the very end they have a section on the ira-3 universal receiver (basically the same thing). The wiki says its for r5a22-26 and I have also seen a bunch of posts basically saying the wiki is old and don't use for the newer versions.

So can anyone give advice on how to install.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 2:16 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
TJC how about some love.

I really want to get this going.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 5:40 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
Perhaps he isn't responding because he know nothing about this remote. Or perhaps he is tending to his life. Or perhaps he is waiting for you to post something that makes sense. Exactly what problem are you having? What don't you understand about the wiki post? Where are you stuck?

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 17, 2006 10:49 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
Ok thats fair. I realize everyone has lives. He is usually helps out and is responsive so I thought I would ask. Geez I won't joke around anymore.

So to make it clear. If I am running RC57 or RD51 is the post on the wiki for reconfiguring LIRC still valid to setup this receiver?. As it says below it was for r5a22 and r5a26.

IRA-3 Universal Receiver HOWTO

I managed to get the IRA-3 Universal receiver up and running with a few steps in R5A22 and R5A26. It tooks quite a bit of research and toying around, so I figured I could write a quick summary of the final steps I used to get things working.


I have seen replies from you as well as others saying that none of this is needed anymore because of changes in these later builds. however I dont know if that was for lirc in general or if this is considered a special case.

I didnt see any options for irman configurations in the setup menu for lirc as I have seen in other tutorials for irman.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 21, 2006 6:26 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
So I tried to follow the instructions on the wiki despite the fact they are old. I got hung up on step 2 and 3.

2. wget http://http://lirc.sourceforge.net/soft ... 4.3.tar.gz

3. wget http://lirc.sourceforge.net/software/sn ... e1.tar.bz2


I think it is a typo but I am not sure.

I get the following when I try it.

resolving http...failed: name or service not known.


Also the newest libirman is 0.4.4 now right?

So any help is appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 12:55 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
So I took another stab at this. I fixed the errors with the downloads. I needed to apt-update first.

I am still running into issues. I followed the IRA -3 setup to the letter on and RC57 frontend and it resulted in the box just continuously rebooting. I kept running into issues with the command to test my remote commands "/test_io /dev/ttyS0" I get a handshake error even though i followed the instructions to change the handshake gap from 500 to 2000. I will need to do this step for creating the commands for a custom remote file for my RCA universal remote. This will be put in Lircd file. That I will need to create.

I researched that issue using google and the lirc mailing list said this error is caused by a improper port possible. However when I issue the command the red led comes on and it registers a few remote keypresses before it stops and gives the timeout error.

I also read that its meaningless and irrecord works despite.


So I rebooted thats when the box just would not boot properly.

So I rebuilt with Rd51. However I thought I would be more careful. I was successful with the following steps.

1. apt-get remove lirc

2. wget http://lirc.sourceforge.net/software/sn ... 4.3.tar.gz

3. wget http://lirc.sourceforge.net/software/sn ... e1.tar.bz2

4. tar -xvzpf libirman-0.4.3.tar.gz

5. tar -xvjpf lirc-0.8.0pre1.tar.bz2

6. cd libirman-0.4.3

7. edit irman.h and change the IR_HANDSHAKE_GAP? from 500 to 2000

"#define IR_HANDSHAKE_GAP? (2000 USEC)"

8. ./configure && make && make install

9. cd ../lirc-0.8.0pre1

10. ./setup.sh

11. Driver Configuration -> Other Serial Port Drivers -> IRMan/UIR

12. Save configuration and run configure

13. rm /dev/lirc

14. make && make install



It is the 15th step and beyond that I don't understand.

"15. edit /etc/init.d/bootmisc.sh and comment out the line (near the bottom):

setserial /dev/ttyS0 uart none "

I dont have the setserial entry in Rd51 bootmisc.

The next step I am not sure is relevant because I dont have pvr cards in this box it is just a frotend. Do I need to do this?

16. edit /etc/mythtv/modules/ivtv (assuming a pvr card ) and comment out the line:

alias char-major-61lirc_i2c?

The next steps I think are for modifying the original "lirc" and creating a new lirc file called "lirc.default". However this is not clear at all. Also in step 20 I am really confused with "cp reboot lirc". It seems he is saying to copy the reboot lirc file. However was I supposed to create a new lirc startup file called reboot lirc? In that file I am supposed to make changes to the original edited Lirc file?




17. cd /etc/init.d

18. mv lirc lirc.default

19. update-rc.d lirc remove

20. cp reboot lirc

21. edit the new lirc startup script and change the line:

Rebooting... to Starting LIRC...

and the next line to:

/usr/local/sbin/lircd --device=/dev/ttyS0 --driver=irman

22. update-rc.d lirc defaults 20



Any help is appreciated. I believe I have the device connected properly. I also have lirc recompiled with support for libirman. I just need to be able to now go and create the lircd and lircc files and make sure they are loaded at startup.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 01, 2007 1:12 pm 
Offline
Joined: Thu Mar 22, 2007 9:08 am
Posts: 12
I have similar problems with version R5E50. Playing with ira-3 oem receiver.
I have done next:
Code:
apt-get remove lirc
cd /usr/src
http://lirc.sourceforge.net/software/snapshots/lirc-0.8.2pre1.tar.bz2
http://lirc.sourceforge.net/software/snapshots/libirman-0.4.4.tar.gz
wget && tar jxvf  lirc-0.8.2pre1.tar.bz2 && tar zxvf libirman-0.4.4.tar.gz
cd libirman-0.4.4
./configure && make && make install
cd ../lirc-0.8.2pre1
./setup.sh
[i]Driver configuration-->Other serialport...-->Irman / UIR --> Com2(motherboard ir connector) --> save and run conf..[/i]
make && make install

irman.h was already configured right way in ver.0.4.4:
#define IR_HANDSHAKE_GAP (2000 USEC)

After that i edited /etc/init.d/lirc:
Code:
#! /bin/sh
#
#

load_modules ()
{
        local MODULES_MISSING=false

        for mod in $*
        do
                modprobe -k $mod 2> /dev/null || MODULES_MISSING=true
        done

        if $MODULES_MISSING; then
                echo "#####################################################"
                echo "## I couldn't load the required kernel modules     ##"
                echo "## You should install lirc-modules-source to build ##"
                echo "## kernel support for your hardware.               ##"
                echo "#####################################################"
                echo "## If this message is not appropriate you may set  ##"
                echo "## LOAD_MODULES=false in /etc/lirc/hardware.conf   ##"
                echo "#####################################################"
                START_LIRCMD=false
                START_LIRCD=false
        fi

        if test -x /sbin/udevsettle
        then
                if ! /sbin/udevsettle; then
                  echo "timeout waiting for devices to be ready"
                fi
        fi
}
build_args ()
{
        local ARGS="$*"

    ## Try to find an lirc device.
    ## udev uses /dev/lirc0
    ## static dev uses /dev/lirc
    ## devfs uses /dev/lirc/0
    if [ -z "$DEVICE" ]; then
        for dev in /dev/lirc0 /dev/lirc /dev/lirc/0; do
                if [ -c $dev ]; then
                                DEVICE="$dev"
                                break
                        fi
                done
        fi

        if [ -n "$DEVICE" ] && [ "$DEVICE" != "none" ]; then
                ARGS="--device=$DEVICE $ARGS"
        fi
        if [ -n "$DRIVER" ] && [ "$DRIVER" != "none" ]; then
                ARGS="--driver=$DRIVER $ARGS"
        fi
        echo $ARGS
}
test -f /usr/local/sbin/lircd || exit 0
test -f /usr/local/sbin/lircmd || exit 0
echo "joo"
#test -f /etc/lirc/lircd.conf || exit 0
#test -f /etc/lirc/lircmd.conf || exit 0

START_LIRCMD=false
START_LIRCD=true

if [ ! -f /etc/lirc/lircd.conf ] \
        || grep -q "^#UNCONFIGURED"  /etc/lirc/lircd.conf;then
        if [ "$1" = "start" ]; then
          echo "##################################################"
          echo "## LIRC IS NOT CONFIGURED                       ##"
          echo "##                                              ##"
          echo "## read /usr/share/doc/lirc/html/configure.html ##"
          echo "##################################################"
        fi
        START_LIRCD=false
        START_LIRCMD=false
fi
if [ ! -f /etc/lirc/lircmd.conf ] \
        || grep -q "^#UNCONFIGURED" /etc/lirc/lircmd.conf;then
        START_LIRCMD=false
fi

if [ -f /etc/lirc/hardware.conf ];then
        . /etc/lirc/hardware.conf
ficase "$1" in
  start)
    if [ "$LOAD_MODULES" = "true" ] && [ "$START_LIRCD" = "true" ]; then
        load_modules $MODULES
    fi
    echo -n "Starting lirc daemon:"
    if $START_LIRCD; then
      echo -n " lircd"
      LIRCD_ARGS=`build_args $LIRCD_ARGS`
      start-stop-daemon --start --quiet --exec /usr/local/sbin/lircd -- $LIRCD_ARGS \
                < /dev/null
    fi
    if $START_LIRCMD; then
      echo -n " lircmd"
      start-stop-daemon --start --quiet --exec /usr/local/sbin/lircmd \
                < /dev/null
    fi
    echo "."
    ;;
  stop)
    echo -n "Stopping lirc daemon:"
    echo -n " lircmd"
    start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircmd
    echo -n " lircd"
    start-stop-daemon --stop --quiet --exec /usr/local/sbin/lircd
    echo "."
    ;;
  reload|force-reload)
    if $START_LIRCD; then
      start-stop-daemon --stop --quiet --signal 1 --exec /usr/local/sbin/lircd
    fi
    if $START_LIRCMD; then
      start-stop-daemon --stop --quiet --signal 1 --exec /usr/local/sbin/lircmd
    fi
    ;;
  restart)
    $0 stop
    $0 start
    ;;
  *)    exit 1
    echo "Usage: /etc/init.d/lircd {start|stop|reload|restart|force-reload}"
esac

exit 0


/etc/lirc/hardware.conf:
Code:
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
START_LIRCMD=false

#Try to load appropriate kernel modules
LOAD_MODULES=false

# Run "lircd --driver=help" for a list of supported drivers.
#DRIVER="bw6130"
DRIVER="irman"
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
#DEVICE="/dev/usb/hiddev0"
DEVICE="/dev/ttyS1"
MODULES="lirc_dev lirc_serial"
# Default configuration files for your hardware if any
LIRCD_CONF="/etc/lirc/lircd.conf"
LIRCMD_CONF="/etc/lirc/lircmd.conf"


BOOT

Code:
su
cd /usr/src/libirman-0.4.4
./test_io /dev/ttyS1
root@HomeBOX:/usr/src/libirman-0.4.4# ./test_io /dev/ttyS1
IR
}!ÿ!ÿ!}!ÿ!ÿ!ÿ!error reading handshake (Connection timed out)


some error in handshake ?

Edit:
can somebody provide correct pinout for ira-3 oem ? i'm not sure is tx/rx at correct pins on my motherboard.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 01, 2007 4:20 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
i had the exact same issues. i tried the pinout both ways and verified with the motherboard manual.

I could not get it to work. Someone on the mythtv-users gossamer threads mailing lists said he got his to work, so perhaps you could try thier. If you figure it out could you please post


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 6:38 am 
Offline
Joined: Thu Mar 22, 2007 9:08 am
Posts: 12
I got correnct pinout from manufactor:
PinoutIraOEM.pdf
Maeby I'll try this thru serial port at this week. At moment device is connected to ASRock k7s8xe's ir-connector.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 11:28 am 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
i connected it through the serial port and I got the same errors.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 11:55 am 
Offline
Joined: Thu Mar 22, 2007 9:08 am
Posts: 12
did you get same strange return charaters after test_io program sends "IR" code to receiver. In my case ira-3 receiver returns "}!ÿ!ÿ!}!ÿ!ÿ!ÿ!" while it should return "OK". Meaby I have broken pic on circuit.
OR.. is this some kinda charter decoding error ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 3:19 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
i got the timeout error yes


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 7:01 pm 
Offline
Joined: Thu Mar 22, 2007 9:08 am
Posts: 12
i got way to try out correct baud_base:
Code:
for((i=9600;i<6553600;i++)); do echo $i; setserial /dev/ttyS0 baud_base $i; ./test_io dev/ttyS0; done;

let see at morning if i found right base :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 05, 2007 9:25 am 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
Pete did you get this working?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 10, 2007 10:57 am 
Offline
Joined: Thu Mar 22, 2007 9:08 am
Posts: 12
nope. my girlfrend turned off the machine and i havent started it since then. I think my asrock mb serial port is not working properly.

i'm going to test that ira-3 receiver with some other mobo later.

i think my only problem is to find correct speed for mobo serial port. when i change it with setserial i got different answer from ira-3, but still some strange letters. when test_io program send "IR" to ira-3 device it should response with "OK", but it answers with some strange letters like "}!ÿ!ÿ!}!ÿ!ÿ!ÿ!" with default baud_base (115200) and default 9600 baud_rate.

is easy to tweek libirman code and get more debug information what your receiver is sending back.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu