Moderator Control Panel ]

TBS6982 lirc keymap

TBS6982 lirc keymap

Postby daredavil87 » Wed Feb 12, 2014 8:37 am

hi everyone , i'm running openPCTV and i need to know the LIRC keymap of the remote . ther device works fine and the IR receiver gets recognized by the system,but i dont have the right keymap.
DRV_NAME="saa716x"
DRIVER="default"
DEVICE="/dev/lirc0"
---------------------------------

for i in /sys/class/input/input* ; do echo -n "$(basename "$i"): "; cat "$i/name"; done

...
input9: saa716x IR (TurboSight TBS 6982SE)
...

i run then
irrecord --device=/dev/lirc0 --driver=default -f /etc/lircd.conf

And here is what it recorded the program .
i needed first to give the button name (example KEY_CHANNELDOWN ) hold down the button on the ir remote than press enter in pc keyboard

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_CHANNELDOWN

Now hold down button "KEY_CHANNELDOWN".
Got it.
Signal length is 3


and here is the result for all buttons

begin remote

name /etc/lircd.conf
flags RAW_CODES|CONST_LENGTH
eps 30
aeps 100

gap 108177

begin raw_codes

name KEY_MUTE
9054 2232 570

name KEY_POWER2
9032 2257 576

name KEY_EXIT
9031 2256 573

name KEY_1
9031 2259 574

name KEY_2
9029 2258 597

name KEY_3
9031 2258 544

name KEY_4
9030 2260 598

name KEY_5
9028 2260 572

name KEY_6
9030 2256 599

name KEY_7
9053 2233 599

name KEY_8
9057 2229 602

name KEY_9
9030 2258 574

name KEY_0
9028 2258 574

name KEY_BACK
9029 2257 575

name KEY_CLEAR
9029 2256 574

name KEY_AUDIO
9028 2258 572

name KEY_SETUP
9029 2256 574

name KEY_UP
9028 2258 575

name KEY_RIGHT
9029 2256 575

name KEY_LEFT
9025 2259 572

name KEY_DOWN
9028 2260 572

name KEY_BLUE
9027 2261 572

name KEY_GREEN
9054 2233 573

name KEY_YELLOW
9049 2257 575

name KEY_RED
9026 2259 573

name KEY_TV
9026 2259 570

name KEY_ZOOM
9059 2233 573

name KEY_FAVORITES
9027 2258 572

name KEY_MODE
9027 2257 573

name KEY_MENU
9027 2260 572

name KEY_EPG
9028 2255 602

name KEY_SUBTITLE
9030 2256 573

name KEY_ENTER
9027 2256 574

name KEY_RECORD
8990 2258 571

name KEY_PLAY
9026 2259 572 65430 198

name KEY_PAUSE
9023 2258 599

name KEY_STOP
9053 2231 574

name KEY_REWIND
9024 2257 598

name KEY_FORWARD
9022 2258 572

name KEY_FASTFORWARD
9024 2258 570

name KEY_PREVIOUS
9051 2232 576

name KEY_NEXT
9023 2257 571

name KEY_CHANNELUP
9025 2260 572

name KEY_CHANNELDOWN
9023 2256 575

name KEY_VOLUMEUP
9028 2254 599

name KEY_VOLUMEDOWN
9027 2255 573

end raw_codes

end remote


but even this dont works as it should.
Can someone send me the right lirc keymap.
daredavil87
 
Posts: 1
Joined: Tue Feb 11, 2014 12:08 am

Re: TBS6982 lirc keymap

Postby bergqvistjl » Fri Feb 28, 2014 4:33 am

I have a similar problem. I've manged to create an lirc.conf with irrecord (using the -f option as without it, it didn't work fully when naming the keys), and i've created the following config:
Code: Select All Code
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0(default) on Thu Feb 27 19:43:58 2014
#
# contributed by
#
# brand:                       tbs
# model no. of remote control:
# devices being controlled by this remote:
#

begin remote

  name  tbs
  flags RAW_CODES|CONST_LENGTH
  eps            30
  aeps          100

  gap          107575

      begin raw_codes

          name KEY_NEXT
             8969    2254     598

          name KEY_PREVIOUS
             9005    2204     600

          name KEY_EXIT
             9022    2215     601

          name KEY_POWER
             9009    2198     616

          name KEY_MUTE
             9000    2192     605

          name KEY_NUMERIC_1
             9010    2216     599

          name KEY_NUMERIC_2
             8979    2246     588

          name KEY_NUMERIC_3
             8999    2222     578

          name KEY_NUMERIC_4
             9034    2190     650

          name KEY_NUMERIC_5
             9050    2174     580

          name KEY_NUMERIC_6
             9004    2222     618

          name KEY_NUMERIC_7
             9007    2220     644

          name KEY_NUMERIC_8
             9004    2221     555

          name KEY_NUMERIC_9
             8972    2278     564

          name KEY_NUMERIC_0
             8989    2252     565

          name KEY_NUMERIC_STAR
             8970    2259     529

          name KEY_NUMERIC_POUND
             8970    2257     530

          name KEY_BACK
             9000    2244     573

          name KEY_CLEAR
             9027    2181     591

          name KEY_UP
             9030    2192     623

          name KEY_DOWN
             9030    2143     650

          name KEY_LEFT
             8981    2243     613

          name KEY_RIGHT
             9022    2200     593

          name KEY_OK
             9066    2190     582

          name KEY_RED
             9006    2218     572

          name KEY_YELLOW
             9019    2202     584

          name KEY_GREEN
             9035    2191     568

          name KEY_BLUE
             9004    2224     592

          name KEY_TV
             8998    2228     560

          name KEY_ZOOM
             8994    2254     562

          name KEY_FAVORITES
             9037    2186     600

          name KEY_MODE
             9000    2223     594

          name KEY_MENU
             9026    2194     595

          name KEY_EPG
             9004    2221     569

          name KEY_SUBTITLE
             9002    2221     592

          name KEY_SWITCHVIDEOMODE
             9026    2253     592

          name KEY_RECORD
             8975    2248     594

          name KEY_PLAY
             8997    2225     593

          name KEY_PAUSE
             8998    2228     595

          name KEY_STOP
             8993    2263     554

          name KEY_REWIND
             9001    2224     579

          name KEY_FASTFORWARD
             9002    2187     629
      end raw_codes
end remote


However when I run irw, all the keys come out as either KEY_NEXT or KEY_PREVIOUS (it seems to change between the two on each reboot.), no matter what key I press, yet in irrecord, they all seem to have registered as different keys. Can anyone help? Thanks.

The only protocol I have enabled is the LIRC protocol, could that be why?
bergqvistjl
 
Posts: 13
Joined: Tue Dec 20, 2011 6:26 pm
Location: United Kindgom

Re: TBS6982 lirc keymap

Postby diyhouse » Mon Mar 31, 2014 11:45 pm

Be assured LIRC and remotes do work,.. although it can be a painful road getting there... it took me a while
You certainly need to enable the protocol for your remote,.. just using LIRC will not work I think, as the system will not know what remote codes your are talking in,..
check out this web link,.. install ir-keytable and follow the initial stuff on how to get your remote working,. and check what codes it is sending out.
When you have a correct table mapped then try irw,.. you may need to restart lircd,.. but I don't think I did,... and you should then see the commands appear as you press keys on the remote.

If you were running mythtv and then mapping commands to mythtv,.. create a .lircrc file and you can use ircat mythtv to see which / what commands are being piped to mythtv or your chosen app.

http://forum.xbmc.org/showthread.php?tid=104541

I found these few pages a life line to understanding how lirc hangs together...

Have added my lircd.conf and hardware.conf files for reference ( wrapped in zip file ),.. note you do ( by all accounts need to change the LOAD_MODULES="false" default I think is true ),.. just for info.

Hope this helps
Attachments
LIRC.zip
(1.17 KiB) Downloaded 380 times
diyhouse
 
Posts: 16
Joined: Mon Jan 20, 2014 8:37 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest