Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
apogarteOffline
Post subject: lirc : howto install ? old analogic pctv serial remote  PostPosted: 26.01.2012, 19:07



Joined: 2011-01-25
Posts: 83

Status: Offline
hello !
i'm starting to look for lirc configuration to use an "old" remote from an old pinnacle pctv card (analogic tuner)
this was shipped with a serial ir receiver.

it seems lirc.conf for it is available according to http://lircconfig.commandir.com/,
but at the moment, the receiver is'nt recognised and i am trying to understand how to fix this : any suggestion will be welcome, in case you have any ... (/proc/bus/input/devices do not show the receiver)

(i am lost beetween several docs and reading aptosid forum did not helped yet)


i'm uncertain wether i did the right lirc installation by now... just installed the packages...

thanks,

apoG

as i was starting this thread to the wrong place here is the
reply from slh :



      Quote:

CommandIR is only used for USB receivers - but if you mention pctvsat and serial, I'm reminded of something like http://www.mjk-trading.de/bilder/produkte/gross/1962_1.jpg.

If that is the case, you need the "pinsys" userspace driver for lirc (part of the normal lirc packages).

Needed packages: lirc
must not be installed/ purge: setserial

/etc/lirc/hardware.conf:

Code:
      Quote:

# /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

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=false

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="pinsys"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/ttyS0"
MODULES=""

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""


/etc/lirc/lircd.conf:


      Quote:

# Please make this file available to others
# by sending it to <lirc>
#
# this config file was automatically generated
# using lirc-0.9.0(pinsys) on Tue Jan 24 17:25:42 2012
#
# contributed by
#
# brand: Pinnacle Systems
# model no. of remote control: PCTV Remote
# devices being controlled by this remote: serial/pinsys
#

begin remote

name PinnacleSysPCTVRemote
bits 16
eps 30
aeps 100

one 0 0
zero 0 0
pre_data_bits 8
pre_data 0xFE
gap 83506
toggle_bit_mask 0x0

begin codes
KEY_1 0x9F31 # 1
KEY_2 0x3D32 # 2
KEY_3 0xEC33 # 3
KEY_POWER 0x2D2F # off
KEY_4 0xA834 # 4
KEY_5 0x7935 # 5
KEY_6 0xDB36 # 6
KEY_EPG 0xFC2E # P
KEY_7 0x0A37 # 7
KEY_8 0x5338 # 8
KEY_9 0x8239 # 9
KEY_TV 0x631F # L
KEY_SUBTITLE 0x5E2D # Fullscreen
KEY_0 0x203A # 0
KEY_ZOOM 0xB21E # Zoom
KEY_INFO 0xCB2B # I
KEY_VOLUMEUP 0x851B # Vol. +
KEY_MUTE 0xB53C # Mute
KEY_PREVIOUS 0x4325 # Ch. last
KEY_CHANNELUP 0x7E17 # Ch. +
KEY_VOLUMEDOWN 0x590F # Vol. -
KEY_UP 0x173F # up
KEY_LEFT 0x643D # left
KEY_OK 0x541A # ok
KEY_RIGHT 0xF13B # right
KEY_MENU 0x101D # Menu
KEY_DOWN 0xC63E # down
KEY_NEXT 0xF619 # next
KEY_BACK 0xAF16 # undo
KEY_RECORD 0x3027 # Rec.
KEY_PAUSE 0x0D15 # pause
KEY_REDO 0x9813 # redo
KEY_REWIND 0x880E # rewind
KEY_PLAY 0x2A0D # play
KEY_STOP 0xBF0B # stop
KEY_FORWARD 0x4407 # fastforward
KEY_RED 0xE126 # TV
KEY_GREEN 0xB829 # Teletext
KEY_YELLOW 0x1A2A # Radio
KEY_BLUE 0x2718 # EPG
end codes

end remote




(be aware that the lowest row (TV, Teletext, Radio, EPG) has been redefined to be used as colour keys (red, green, yellow, blue), with P (EPG), L (TV), I (Info) on the top right taking over).

…or create your own lircd.conf with ("/etc/init.d/lirc stop" first):

Code:
      Quote:

irrecord -H pinsys -d /dev/ttyS0 /etc/lirc/lircd.conf


use "irw" (as user) to confirm your key configuration.

(but this would have been better suited for a new thread --> easier to find)



hi slh so i will try what you say (only thing my remote was not from sat card but from studio pctv analog tuner)

anyways i will come back to say how things are going

thanks for your patience,

apoG
 
 View user's profile Send private message  
Reply with quote Back to top
dieresOffline
Post subject:   PostPosted: 27.01.2012, 11:31



Joined: 2010-09-12
Posts: 30

Status: Offline
for serial adapter you probably have to use setserial with "uart none" .

for example
setserial /dev/ttyS0 uart none

to get this autmatic on boot you have to edit /etc/serial.conf
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject:   PostPosted: 27.01.2012, 13:26



Joined: 2010-08-25
Posts: 760

Status: Offline
The receiver originally shipped with old Pinnacle pctvsat cards (this one http://www.mjk-trading.de/bilder/produkte/gross/1962_1.jpg) does not follow the "serial home-brew receiver" design or lirc_serial, but is covered by lirc's userspace "pinsys" driver - for this one you mustn't use setserial.

http://lirc.org/html/table.html

As a sidenote, serial IR receivers can not be used with serial2usb adaptors due to their extreme timing sensitive needs, which can not be met by the (IRQ-less) USB protocol. If your mainboard is not equipped with a real/ original serial RS-232-C port, you need a native USB IR receiver.
 
 View user's profile Send private message  
Reply with quote Back to top
apogarteOffline
Post subject:   PostPosted: 28.01.2012, 16:12



Joined: 2011-01-25
Posts: 83

Status: Offline
      slh wrote:
The receiver originally shipped with old Pinnacle pctvsat cards (this one http://www.mjk-trading.de/bilder/produkte/gross/1962_1.jpg) does not follow the "serial home-brew receiver" design or lirc_serial, but is covered by lirc's userspace "pinsys" driver - for this one you mustn't use setserial.

http://lirc.org/html/table.html

As a sidenote, serial IR receivers can not be used with serial2usb adaptors due to their extreme timing sensitive needs, which can not be met by the (IRQ-less) USB protocol. If your mainboard is not equipped with a real/ original serial RS-232-C port, you need a native USB IR receiver.


After removing setserial (apt-get purge setserial) i moved mu hardware.conf and lircd.conf to a backup, and created the new hardware.conf and lircd.conf you've posted

but then i got stuck : i feel like i hav'nt understood a word about how to use lirc


      Quote:


leblov@cinema:~$ lircd
lircd: can't open or create /var/run/lirc/lircd.pid
lircd: Permission denied
leblov@cinema:~$ su
password :
root@cinema:/home/leblov# lircd
lircd: there seems to already be a lircd process with pid 1320
lircd: otherwise delete stale lockfile /var/run/lirc/lircd.pid
root@cinema:/home/leblov#

also i've noted /etc/modules is empty :

leblov@cinema:~$ more /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be
loaded
# at boot time, one per line. Lines beginning with "#" are igno
red.
# Parameters can be specified after the module name.




dmesg | grep input or | grep ir gives nothing...

also : irw gives nothing...

how do i use pinsys driver ?
how do i start/stop/make autostarting lirc ?

so what do i miss ? after installing lirc package, rewriting the 2 .conf files, do i have to do anything more in order to use lirc ? if somebody will explain what i must read/do i'd be glad to learn...

apoG
 
 View user's profile Send private message  
Reply with quote Back to top
apogarteOffline
Post subject:   PostPosted: 02.02.2012, 15:40



Joined: 2011-01-25
Posts: 83

Status: Offline
i am still stuck...sorry, but would someone help checking my install ?

i have a rs232 remote receiver NOT USB, pc is equiped with true rs232C connector
it was from pinnacle pctv pro

remote is NOT the one displayed by slh (wich is from a SAT pinnacle pctv set)

i think my installation is not good and i do not found how to fix it, since i did not understood the lirc installation

thanks you

apoG
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio