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)

crabsody 2011-03-05 16:04

Re: QtIrreco for N900
 
For a start all the files of qtirreco have a conf extension. Then if I open them in vi editor I get

Quote:

#
# this config file was automatically generated
# using lirc-0.6.5(any) on Wed Sep 24 13:40:39 2003
#
# contributed by Roland Werner
#
# brand: YAMAHA
# model no. of remote control: VU50620
# devices being controlled by this remote: GX-50
#

begin remote

name vu50620
bits 16
flags SPACE_ENC
eps 20
aeps 200

header 8800 4400
one 550 1650
zero 550 550
ptrail 550
repeat 8800 2200
pre_data_bits 16
pre_data 0x1EE1
gap 38500
toggle_bit 0

frequency 38000

begin codes
1 0x0000000000008877

But with the files of qtireco I get

Quote:

Background: default
Image: default

button: MUTING
fileNameUnPressed: /opt/qtirreco/themes/default/buttons/blank/unpressed.png
fileNamePressed: /opt/qtirreco/themes/default/buttons/blank/pressed.png
confFileName: /opt/qtirreco/themes/default/buttons/blank/button.conf
position: 118, 280
commandChain:
command: RAK-CH115WH MUTING
end commandChain
It seems different.

Anyway. I downloaded all the yamaha files of lirc in my MyDocs/qtirecco/remotes directory but when I open qtirreco I can't see them. Should I do something else?

Cue 2011-03-05 16:17

Re: QtIrreco for N900
 
Quote:

Originally Posted by crabsody (Post 961263)
For a start all the files of qtirreco have a conf extension. Then if I open them in vi editor I get




But with the files of qtireco I get



It seems different.

Anyway. I downloaded all the yamaha files of lirc in my MyDocs/qtirecco/remotes directory but when I open qtirreco I can't see them. Should I do something else?

you are looking at the wrong files. The remotes are not actually in
MyDocs/qtirreco/remotes
but
MyDocs/qtirreco/devices

the .conf files you are looking at in
MyDocs/qtirreco/remotes
are actually the layouts for qtirreco. just to clarify, the remotes that are on the sourceforge site should go in
MyDocs/qtirreco/devices
just make sure there is not more than one remote per file as mr_jrt pointed out.

crabsody 2011-03-05 16:19

Re: QtIrreco for N900
 
Thank you very much. I try this out immediately. Thanks again

casketizer 2011-03-05 18:03

Re: QtIrreco for N900
 
@Cue

I have added the file to lircd.conf and made sure there are no missing quotation marks etc. But that specific remote still doesn't work at all.
I can see it and add the commands of the first remote defined in the file but they don't work. Unfortunately I don't have a way to see if anything is sent by the IR at all, but other remotes (generic Bravia TV, DVD, Reciever, etc) work fine.
Could the problem be that it is also two remotes in the file? Do I have to split that into two files?
Do you have any other suggestion?
Thanks!

vaporeso 2011-03-05 18:31

Re: QtIrreco for N900
 
I too had a lot of problems with this program but once it work its great!
A the problem y foun are all related to not having the same name of device in all the apropiate files, AND THIS INCLUDE THE DEVICE NAME IN THE DEVICE FILE ALSO!
so you have to have the file name ok in the lirc con, the remote file, the device file, AND inside the device file in the device name.
i have a remote with 2 devices and it works ok so for mi is not a problem.
Also remember you can generate new devices with lirc on linux and with winlic on windows, youll just need a cable plugged in an audio port, line in, or com port. Ive used one ir receptor from a pc tv tuner i had and it worked ok! so i can generate all the remotes i need exactly.
hope it helps

casketizer 2011-03-05 18:41

Re: QtIrreco for N900
 
I made double-triple sure all the names match and no other formatting errors are in the files....

Cue 2011-03-05 19:15

Re: QtIrreco for N900
 
Quote:

Originally Posted by casketizer (Post 961319)
@Cue

I have added the file to lircd.conf and made sure there are no missing quotation marks etc. But that specific remote still doesn't work at all.
I can see it and add the commands of the first remote defined in the file but they don't work. Unfortunately I don't have a way to see if anything is sent by the IR at all, but other remotes (generic Bravia TV, DVD, Reciever, etc) work fine.
Could the problem be that it is also two remotes in the file? Do I have to split that into two files?
Do you have any other suggestion?
Thanks!

Not sure why it's not working but lets try and isolate the problem.
First make sure it's not QtIrreco

in xterm try

Code:

irsend SEND_ONCE  RemoteName Button
where RemoteName is the exact remote name given in your remote file and button is one of the buttons defined in the remote file. Try to use the power button and see if the device turns off. Stay about 1 meter away from the device and make sure you point the IR port directly at the receiver.

EDIT: some more info. you need to start lircd before you can use irsend. The easiest way to do this is to just start qtirreco.
Then try

irsend LIST "" ""

this will list the remotes. Then do

irsend LIST remotename ""

where "remotename" is one of the listed remote name from the previous command. this will list the buttons. then

irsend SEND_ONCE remotename buttonname

will send the signal. here is an example for a samsung remote

irsend SEND_ONCE BN59-00516A POWER

casketizer 2011-03-05 19:36

Re: QtIrreco for N900
 
Code:

[2|user@Nokia-N900-51-1|~]irsend SEND_ONCE RM-ED035 I+
irsend: could not connect to socket
irsend: Connection refused
[2|user@Nokia-N900-51-1|~]root
Nokia-N900-51-1:~# irsend SEND_ONCE RM-ED035 STANDBY
irsend: could not connect to socket
irsend: Connection refused
Nokia-N900-51-1:~#

Please keep in mind that my other remotes work fine in qtirreco.

Cue 2011-03-05 19:39

Re: QtIrreco for N900
 
Quote:

Originally Posted by casketizer (Post 961389)
Code:

[2|user@Nokia-N900-51-1|~]irsend SEND_ONCE RM-ED035 I+
irsend: could not connect to socket
irsend: Connection refused
[2|user@Nokia-N900-51-1|~]root
Nokia-N900-51-1:~# irsend SEND_ONCE RM-ED035 STANDBY
irsend: could not connect to socket
irsend: Connection refused
Nokia-N900-51-1:~#

Please keep in mind that my other remotes work fine in qtirreco.

start Qtirreco and leave it in the background. see my previous post. I've edited it to include more info. make sure RM-ED035 is listed as a remote
and STANDBY as a button for that remote.

casketizer 2011-03-05 20:30

Re: QtIrreco for N900
 
Partial Success!!!!!

I noticed the header data was different from the generic Bravia remote. So I replaced it with that generic header data.
Now I have the 12bit section working.
This gives me 4 important buttons the generic remote lacks.
Unfortunately I still need the 15bit section which I put in a seperate file. Seems it also has bad header data :(
Thank you for all your kind help so far!

EDIT:
ALL WORKING!!!
Found working Header data for the 15bit commands in another sony Remote for a simpler Bravia Model.

Thank you for all your help Cue!!!

Cue 2011-03-05 20:47

Re: QtIrreco for N900
 
Quote:

Originally Posted by casketizer (Post 961413)
Partial Success!!!!!

I noticed the header data was different from the generic Bravia remote. So I replaced it with that generic header data.
Now I have the 12bit section working.
This gives me 4 important buttons the generic remote lacks.
Unfortunately I still need the 15bit section which I put in a seperate file. Seems it also has bad header data :(
Thank you for all your kind help so far!

EDIT:
ALL WORKING!!!
Found working Header data for the 15bit commands in another sony Remote for a simpler Bravia Model.

Thank you for all your help Cue!!!

no problem, glad you have it working.

geojoking 2011-03-05 21:15

Re: QtIrreco for N900
 
I'm sorry to ask this, maybe I'd find the answer if I look through the pages of this thread, but...

If my device is not in the list, how can I find/create the remote for it? I have a Hitachi with a CLE 978 remote and the available Hitachi remotes do not seem to work...

casketizer 2011-03-05 21:26

Re: QtIrreco for N900
 
Find your remote here:
http://lirc.sourceforge.net/remotes/
Use Pages 47-49 of this thread, esp Cue's posts as a guide how to use them.

guyr 2011-03-07 22:20

Re: QtIrreco for N900
 
I want to emulate samsung BN59-01014A remote for my TV.
I create a lirc.conf file with my PC (serial lirc). This file is fine now.
I put this file on my N900 and i test with :
irsend SEND_ONCE BN59-01014A POWER
(i configure accordingly /etc/lircd.conf and restart lirc). This command does nothing on my TV but works fine on my serial lirc on the PC. With irw command on my PC, i can see that the POWER signal is send by the n900 (i also test the signal with my camera)
I don't understand this behavior. I have the same result with the original samsung remote on my serial lirc on the PC (with irw command) !

Why with "irsend SEND_ONCE BN59-01014A POWER" on the N900 i can't power on/off my TV ?

electroaudio 2011-03-07 22:26

Re: QtIrreco for N900
 
Quote:

Originally Posted by guyr (Post 962766)
I want to emulate samsung BN59-01014A remote for my TV.
I create a lirc.conf file with my PC (serial lirc). This file is fine now.
I put this file on my N900 and i test with :
irsend SEND_ONCE BN59-01014A POWER
(i configure accordingly /etc/lircd.conf and restart lirc). This command does nothing on my TV but works fine on my serial lirc on the PC. With irw command on my PC, i can see that the POWER signal is send by the n900 (i also test the signal with my camera)
I don't understand this behavior. I have the same result with the original samsung remote on my serial lirc on the PC (with irw command) !

Why with "irsend SEND_ONCE BN59-01014A POWER" on the N900 i can't power on/off my TV ?

Does anyone know the IR-wavelength and modulationfrequency used by the N900?

Maybe the modulationfrequency and wavelength is too far from the ones used in your tv, while the ones used by your PC fits much better with the TV?

Vishay components has a selectionguide with som more info about irtransmissions...
http://www.vishay.com/doc?80071

casketizer 2011-03-07 22:27

Re: QtIrreco for N900
 
@guyr

N900 has a very short range. Did you try it from <1m distance? Other than that I can only imagine the timings are off in the header of the lirc file. I downloaded a lirc file for my TV and it didn't work on N900 but works on PCs. Turned out to be the timing data. I replaced it with data from a more basic remote and it works. Seems the N900 needs very precise timing data.

guyr 2011-03-08 13:13

Re: QtIrreco for N900
 
Quote:

Originally Posted by casketizer (Post 962771)
N900 has a very short range. Did you try it from <1m distance?

Yes, but it does nothing.
Quote:

Originally Posted by casketizer (Post 962771)
Other than that I can only imagine the timings are off in the header of the lirc file. I downloaded a lirc file for my TV and it didn't work on N900 but works on PCs. Turned out to be the timing data. I replaced it with data from a more basic remote and it works. Seems the N900 needs very precise timing data.

What basic remote control do you use?
Here the first lines of the remote i create :
Code:

begin remote

  name  BN59-01014A
  bits          16
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header      4538  4462
  one          570  1665
  zero          570  547
  ptrail        570
  pre_data_bits  16
  pre_data      0xE0E0
  gap          107690
  toggle_bit_mask 0x0

      begin codes


vir3us 2011-03-08 16:49

Re: QtIrreco for N900
 
Cant find a remote for a bush freeview box :( please help

casketizer 2011-03-08 20:54

Re: QtIrreco for N900
 
@guyr
With more basic remote I meant I downloaded the remote of a more basic ie simpler, cheaper Sony Bravia TV from lirc site, while I have a pretty highend one. The simpler remote is practically a subset of mine. It shares a lot of the buttons and their codes but mine has more. More importantly it uses the same timing header data. So I copypasted (just) the headers of the simpler remote over the headers of my remote and presto it works on N900 now.

casketizer 2011-03-08 20:56

Re: QtIrreco for N900
 
Quote:

Originally Posted by vir3us (Post 963294)
Cant find a remote for a bush freeview box :( please help

Did you check
http://lirc.sourceforge.net/remotes
?

geneven 2011-03-08 21:10

Re: QtIrreco for N900
 
Quote:

Originally Posted by casketizer (Post 962771)
@guyr

N900 has a very short range.

Actually, someone in this thread pointed out (and it seemed true from my rudimentary tests) that what makes the N900 seem to have a short range is that it has a limited beam, so it points very precisely and it's easy to point in a slightly different place than it should.

In fact, I'm sure that some people think they didn't get Qtirreco working, when what actually happened is they didn't realize their N900 has to be pointed more precisely than their normal remote would.

casketizer 2011-03-08 21:28

Re: QtIrreco for N900
 
@geneven
That is right, however even with the most accurate beam marksmanship I can't squeeze more than 2m out of it to the TV. I guess it also depends on the target's sensor coz to my surround receiver I can get almost 3m out of the N900.

guyr 2011-03-08 22:18

Re: QtIrreco for N900
 
Hi, this evening i try again the irsend command and now it works fine !
I don't understand why, i do not reboot my n900... I don't think that the problem was the limited beam of the N900/ir (or short range).
Thank you everybody to help me.

mr_jrt 2011-03-09 16:51

Re: QtIrreco for N900
 
Has anyone tried sticking a diffuser or little prism over their IR port and seeing if it reduces the precision needed?

monkeyman 2011-03-23 15:10

Re: QtIrreco for N900
 
Someone may already have said the following, but I'm not dregging through 51 pages to look for it:
If the IR port is bidirectional why not add a function to qtirreco to allow copying of IR patterns from existing remotes? That way you can add all of the functions from all of your stand alone remotes without searching for a set of patterns which may not exist in an available library (as is the case with a number of my devices here in the USA).

http://natisbad.org/N900/n900-commen...are-specs.html
The line "-> Linux Infrared Remote Control IR receiver/transmitter drivers (INPUT_LIRC [=y])" make it seem it could do bidirectional.

jgbreezer 2011-03-24 08:23

Re: QtIrreco for N900
 
No, the IR port is NOT bidirectional (a google search on bidirectional and IR port on these forums might have found that, perhaps). you have to use another device to read the codes, if you can. usb adapters exist for not much, or other high end remotes.

mosh11 2011-04-26 05:51

Re: QtIrreco for N900
 
downloaded and installed i have dreambox dm500s which is in the db but it is no good

Prozac786 2011-05-03 13:22

Re: QtIrreco for N900
 
Any plans of porting this to Meego?

I think it's an amazing app and one of the unique one's on our N900.
Many users would love to see a Meego port as many will run Meego OS on their N900 once it gets a stable release.

Dragoss91 2011-06-02 15:53

Re: QtIrreco for N900
 
I'm using Qtirreco and there's not remote for my air conditioned . How could I make one ? I know the n900's IR it's only transmitter , so is there any other way to record signal from remote ?

Cue 2011-06-02 20:17

Re: QtIrreco for N900
 
Quote:

Originally Posted by Dragoss91 (Post 1021071)
I'm using Qtirreco and there's not remote for my air conditioned . How could I make one ? I know the n900's IR it's only transmitter , so is there any other way to record signal from remote ?

you need to use a PC with an IR receiver to record the codes then transfer to your n900. Guides are in this thread already.

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 17:10.

vBulletin® Version 3.8.8