maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   QtIrreco for N900 (https://talk.maemo.org/showthread.php?t=37655)

Dragoss91 2011-06-04 12:16

Re: QtIrreco for N900
 
I managed to learn ON/OFF command for my AC , the code I got it's :

0000 006E 0086 0000 00B0 0062 000F 000E 000F 0024 000F 0024 000F 000E 000F 0024 000F 000E 000F 000E 000F 000E 000F 000E 000F 0024 000F 000E 000F 000E 000F 000E 000F 0024 000F 000E 000F 000E 000F 0024 000F 000E 000F 000E 000F 000E 000F 0024 000F 000E 000F 0024 000F 000E 000F 000E 000F 0024 000F 0024 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 0024 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 0024 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 0024 000F 000E 000F 000E 000F 0025 000D 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 0024 000F 0024 000F 0024 000F 0024 000F 000D 000F 02F9 00B0 0118 015F 00BC 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000E 000F 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000E 000F 000D 000F 02F9 00AF 0000

How could I use this in qtirreco ? I've open one remote and I saw there codes are very short , like 0x100D format . Do I need to convert this long code ?

droll 2011-06-04 17:07

Re: QtIrreco for N900
 
i picked this up again after having some fun with Tvbgone widget. :)

the lirc project died quite sometime ago (3-4 years?) but it has recently found a new maintainer. there is also a windows port called winlirc (http://winlirc.sourceforge.net/) which was last updated on May 15, 2011 (very recent!)

since i have a windows desktop, i'm going with the winlirc route. the nice thing is, it includes a utility called IRRecord.exe, which is a command line app to record IR codes from your remote.

the catch is, it only supports a limited number of IR receivers. i went ahead and purchased a Microsoft Media Center Edition IR Receiver + Remote kit from ebay.

my plan is to hook up the receiver to my laptop, and then run IRRecord, and to go through the paces with a number of remotes I have at home (for fan, air conditioning, TV, etc) and see if I can coax it to work.

i'm now waiting for the MCE pakcage to arrive. will report here if i have any success with this approach.

droll 2011-06-04 17:12

Re: QtIrreco for N900
 
as for the question of where remote files are placed, have a look at page 5 of this thread.

"1. sudo gainroot (rootsh needs to be installed)
2. cd /home/user/MyDocs/qtirreco/Remotes
3. rm <remote file name>
4. vi remotes.conf
5. press a for example in vi editor, select the line which contains that remote name and press d to delete that line, then set current remote in line one existing remote. Press ESC and type :wq to save changes."

the remote files created by Winlirc should be compatible with qtirecco (assuming no more changes to winlirc's file formats since the project has now found a new maintainer). i'm guessing he won't break compatibility since there are already a ton of remote files published on http://lirc.sourceforge.net/remotes/

wish me luck :)

vaporeso 2011-06-04 17:59

Re: QtIrreco for N900
 
Drol, ive taken the same aproach (using win lirc and transfer to the phone) some time ago (except for needing sometimes to record the ir signal a few times) it works ok, a few point to take in mind:
-the file generated wil go to the "device" forlder, not the "remote" folder. The remote folder basicaly is the folder for the file generated by qtirreco, it states wich buttons, color, order etc, then it redirects each button to the proper device and command from the device folder (you can have one remote with several devices linked). You have to generate the remote control inside the qtirreco program and the generate the buttons etc selecting the device you generated with winlirc.
-there are some remotes you wont be able to record because the need of a feedback, ex the ac, usually the ac has an ir receiver and transmitter, and signal is exchanged between the remote control and the ac unit, you cant emulate this with the n900 because it wont respond to the ac when it recieves a signal from it, all my other devices work ok, tv, home theatre etc, its preatty easy once you get it working
anyway im here if you need help getting this to work,

droll 2011-06-04 18:13

Re: QtIrreco for N900
 
thanks for the information. yes, i figured out the files used by qtirecco after taking a peek in the folder. i didn't expect some devices to provide feedback via a transmit though. anyway, i'll ping you if i need some pointers.

Dragoss91 2011-06-06 09:05

Re: QtIrreco for N900
 
Could anyone help me to get that lirc code ? I have to convert that very long code to lirc and I've seen there's one program called pronto2lirc but it's only for linux . :(

PS : I used my PDA (dell axim x51v wm6.5) to learn that command .

droll 2011-06-06 09:09

Re: QtIrreco for N900
 
why not install a linux virtual machine? you don't have to nuke or dual boot your windows box. the only painful part is waiting for the download to finish. look for linux live cd on your favourite search engine.

Dragoss91 2011-06-06 09:12

Re: QtIrreco for N900
 
I ran ubuntu 11 with virtual pc but now it crashes everytime I boot . :-s

Dragoss91 2011-06-06 11:05

Re: QtIrreco for N900
 
Later edit : Now I managed to work but I got another problem :(

Codes from lircd.config file looks much different than remotes for qtirreco . In this file it's only one button , one command , still very very long .

Code:

begin remote
        name        inputfile
        flags        RAW_CODES
        eps        30
        aeps        100
        gap        0
                begin raw_codes

                        name ACON
                                4671 2601 398 372 398 955
                                398 955 398 372 398 955
                                398 372 398 372 398 372
                                398 372 398 955 398 372
                                398 372 398 372 398 955
                                398 372 398 372 398 955
                                398 372 398 372 398 372
                                398 955 398 372 398 955
                                398 372 398 372 398 955
                                398 955 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 955 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 955 398 372 398 372
                                398 372 398 372 398 372
                                398 955 398 372 398 372
                                398 982 345 372 398 372
                                398 372 398 372 398 372
                                398 955 398 955 398 955
                                398 955 398 345 398 20195
                                4671 7430 9315 4989 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 372 398 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 372
                                398 372 398 372 398 345
                                398 20195 4644
                end raw_codes
end remote

and a remote looks like this

Code:

#
# this config file was automatically generated
# using lirc-0.7.0pre5(parallel) on Fri Oct  8 23:20:04 2004
#
# contributed by  Christoph Bartelmus
#
# brand:                      Watson
# model no. of remote control: ?
# devices being controlled by this remote: TV set FA 5150
#
begin remote
  name FA_5150
  bits          13
  flags RC5|CONST_LENGTH
  eps            30
  aeps          100
  one          952  848
  zero          952  848
  plead        997
  gap          114232
  toggle_bit      2
      begin codes
          MUTE                    0x100D
          POWER                    0x100C
          PP                      0x100E
          I-II                    0x1023
          1                        0x1001
          2                        0x1002
          3                        0x1003
          4                        0x1004
          5                        0x1005
          6                        0x1006
          7                        0x1007
          8                        0x1008
          9                        0x1009
          0                        0x1000
          --                      0x100A
          P<P                      0x1022
          MENU                    0x1030
          INFO                    0x1012
          CH_UP                    0x1020
          CH_DOWN                  0x1021
          <                        0x1015
          >                        0x1016
          VOL_DOWN                0x1011
          VOL_UP                  0x1010
          SOUND                    0x1037
          PICTURE                  0x1036
          FEATURE                  0x1032
          INSTALL                  0x1034
          TV                      0x103F
          AV                      0x1038
          F1                      0x103C
          F2                      0x102E
          F3                      0x102A
          F4                      0x1029
          F5                      0x102D
          F6                      0x102B
          F7                      0x102C
          F8                      0x102F
      end codes
end remote


droll 2011-06-06 21:26

Re: QtIrreco for N900
 
i don't recognize the file format yet but there is documentation on the net. search for winlirc and look at the faq.


All times are GMT. The time now is 10:03.

vBulletin® Version 3.8.8