View previous topic :: View next topic |
Author |
Message |
im2020
Joined: 21 Dec 2009 Posts: 22
|
Posted: Thu Jan 16, 2020 4:42 pm Post subject: Struggling to create long power off for Soundbar on URC 7781 |
|
|
Would be grateful for any ideas to help with this little problem.
Here
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=25809
in the Diagnostics Section is an RMDU that I created from learning the codes for a Bomaker Ondine 1 soundbar.
With the original remote control it is necessary to depress the Power button for 3 seconds to switch off the Soundbar.
I've assigned the Power button to the AV button on my URC 7781 and if I depress that AV button for 3 seconds the URC 7781 will switch off my soundbar, so all good there.
But I would like to incorporate the switching off of the Soundbar in a macro on my URC 7781 (a macro which addresses my other devices - TV, set top box etc).
I've tried simply inserting the Soundbar AV button in the macro and also tried repeating that button 3 times but the Soundbar doesn't switch off.
Can anyone help with a different protocol or subdevice setup or identification of discrete power off code that might solve my problem?
Thanks in advance for any ideas. |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Thu Jan 16, 2020 6:09 pm Post subject: |
|
|
I don't recall if we have a special protocol to extend the duration of a button in a macro without an extender, so here's a quick and dirty way to accomplish it.
I have converted your POWER button into a learned signal, and have extended its duration. You can add this to your RMIR file by going to the Learned Signals tab and clicking New, then make sure that Pronto is selected and enter the code below into the data box. I would assign this to a shifted button as there's no need to waste a regular button for it, then include the shifted button in your macro.
Quote: | 0000 006C 0062 0000 0159 00AD 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016
0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041
0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041
0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016
0015 0041 0015 0041 0015 0041 0015 06C0
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 |
If that is still not long enough duration, here's how you can extend it further: you'll notice that I've colored the third number in the data red, this is the length of the code in hex. The first block of data is the main signal and that has a hex length of 0022, each block that follows represents a bunch of repeats and each adds hex 0010 to the total. You'll see that I've added 4 repeat blocks, which means you add hex 0040 to the original 0022 giving a total of 0062. If you add one more repeat block, you'll need to add another 0010 giving 0072, like this...
Quote: | 0000 006C 0072 0000 0159 00AD 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016
0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041
0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041
0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016
0015 0041 0015 0041 0015 0041 0015 06C0
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 |
be aware that this is hex, so if you add 3 more blocks, the next number after "9" is "A", like this...
Quote: | 0000 006C 00A2 0000 0159 00AD 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016
0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041
0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041
0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0016
0015 0041 0015 0041 0015 0041 0015 06C0
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81
0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 0159 0057 0015 0E81 |
_________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
im2020
Joined: 21 Dec 2009 Posts: 22
|
Posted: Fri Jan 17, 2020 6:58 am Post subject: |
|
|
Brilliant. Thanks Rob. Quick and dirty can sometimes be surprisingly elegant.
Ian |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Fri Jan 17, 2020 9:41 am Post subject: |
|
|
Let me know if it works and what length you had to use to make the signal long enough. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
im2020
Joined: 21 Dec 2009 Posts: 22
|
Posted: Fri Jan 17, 2020 10:32 am Post subject: |
|
|
Yes Rob - it worked first time with the 0062 four repeat blocks. Sorry I should have made this clear instead of just saying Brilliant and Thanks.
Ian |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Fri Jan 17, 2020 5:17 pm Post subject: |
|
|
Super cool.
Also, just FYI, if that block runs longer than you need, you can shorten it, for every repeat block that you delete, reduce the length by hex 0010.
If even one block is still longer than you need, you can further reduce it by eliminating the data 4 words at a time (ie, these mini blocks: "0159 0057 0015 0E81"), and reduce the length by 2 for each set of 4. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1414 Location: Munich, Germany |
Posted: Sat Jan 18, 2020 4:10 am Post subject: |
|
|
FYI, you can also use IrpTransmogrifier or IrScrutinizer to generate the code.
Those who are friends with the command line can use IrpTransmogrifier:
Code: |
$ irptransmogrifier render --pronto --name "D=1,F=16" --number-repeats 30 nec1
0000 006C 005E 0000 015B 00AD 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 05F7 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C |
In IrScrutinizer it is unfortunately somewhat indirect: First select the "generate" pane, select "NEC1" as Protocol, 1 for D, leave S empty, enter 16 for F. Then select the "export" pane, select "Pronto Hex Oneshot" as Export format, and in "# repeats", select the number of desired repeats. Press "Export generated". This will generate the desired code to a text file. This can be opened with "Open last file", alternatively (in the new version 2.2.4), if selected "Auto open exports", it automatically pops up.
An alternative is, if you have suitable IR sending hardware, select the pane "Sending hw", select as "count" the number of times to send the signal, then press "Transmit generated". This will send the desired signal directly, so that you do not need the step of flashing the JP1-remote just for testing. |
|
Back to top |
|
|
HamburgerHelper1
Joined: 22 Feb 2014 Posts: 570
|
Posted: Sun Feb 02, 2020 6:54 am Post subject: Struggling to create long power off for Soundbar on URC 7781 |
|
|
I am constantly turning the volume up and down on my tv due to loud commercials. On some tv's the mute works in stages 1st push is 50 % of volume then mute on next push. My samsung does not have this feature
Wondering if I could use this long button hold approach to make a custom volume button where one push would lower volume a certain amount
and another buton to return the volume back. I won't have time to test this idea for awhile. I wish i could explain this better I know the lowering of the volume would be relative to what it started at but i think it would work for me
Does this approach sound feasable ? |
|
Back to top |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1414 Location: Munich, Germany |
Posted: Sun Feb 02, 2020 8:38 am Post subject: |
|
|
Using the method from the previous posts, you create a signal that corresponds to 10 (for example) volume down, bind it to a key (possibly a long press), create another signal for 10 volume up, bind it to another key? |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Sun Feb 02, 2020 8:48 am Post subject: Re: Struggling to create long power off for Soundbar on URC |
|
|
HamburgerHelper1 wrote: | I am constantly turning the volume up and down on my tv due to loud commercials. On some tv's the mute works in stages 1st push is 50 % of volume then mute on next push. My Samsung does not have this feature
Wondering if I could use this long button hold approach to make a custom volume button where one push would lower volume a certain amount
and another button to return the volume back. I won't have time to test this idea for awhile. I wish i could explain this better I know the lowering of the volume would be relative to what it started at but i think it would work for me
Does this approach sound feasible ? |
Yes, first off, here's what the 2 volume buttons look like for your Samsung (assuming that it uses NEXCx2 7.7).
Vol+
0000 006D 0000 0022
00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689
Vol-
0000 006D 0000 0022
00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689
The entire signal repeats. The two words that I've colored red control how much signal is "sent once" (first word) and repeated while the button is held (second word). So, to convert the signal into a "sent once" signal, you just swap those 2, like this...
Vol+
0000 006D 0022 0000
00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689
Vol-
0000 006D 0022 0000
00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689
The reason I put a line break after the 2 red words is because everything after that is the signal, so it you want to add an extra repeat, you have the repeat everything after it and then increase the "0022" value, so this would be 2 repeats...
Vol+
0000 006D 0044 0000
00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689
00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689
Vol-
0000 006D 0044 0000
00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689
00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689
You get the idea, so just keep repeating the signal (and increasing the length value) till you get it to the right length. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
HamburgerHelper1
Joined: 22 Feb 2014 Posts: 570
|
Posted: Sun Feb 02, 2020 11:26 am Post subject: Struggling to create long power off for Soundbar on URC 7781 |
|
|
Thanks guys
yes that does look like it will work for my needs
hopefully i will have some time today to do some preliminary test's |
|
Back to top |
|
|
HamburgerHelper1
Joined: 22 Feb 2014 Posts: 570
|
Posted: Sun Feb 02, 2020 1:20 pm Post subject: Struggling to create long power off for Soundbar on URC 7781 |
|
|
No go on testing volume
Copy paste into learned signal pronto hex
When test button vol+ it only advances vol one notch as if i just tapped the vol control tried more repeats and same result just advances vol one notch
also i added repeats and when got to repeats 0088 i received error
conversion error: maximum lenghth of 127 bits for one-time signal exceeded
so what am i doing wrong |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Sun Feb 02, 2020 1:35 pm Post subject: |
|
|
Which setup code or upgrade are you using to control the Samsung TV, and does the volume button repeat normally when you use the remote?
I'm wondering whether we should be using NECx1 rather than NECx2. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
HamburgerHelper1
Joined: 22 Feb 2014 Posts: 570
|
Posted: Sun Feb 02, 2020 1:44 pm Post subject: Struggling to create long power off for Soundbar on URC 7781 |
|
|
upgrade code 1060 NECX2 i have it named 1061 buy i sometimes rename when i put buttons where i want them
yes vol repeats hold vol down and it will keep advancing |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Sun Feb 02, 2020 1:53 pm Post subject: |
|
|
I'm not looking for the setup code number that you chose for your upgrade, as that doesn't carry any meaning. I was either looking for the built in setup code number (so I could look up the specifics), or I was looking for a link to the upgrade so I could download it to see the specifics. But, if you say that it uses NECx2, that's good enough.
However, because it's the NEC2 style of signal it means that the whole signal repeats, which does limit how many repeats you can code into a signal doing this type of hack, and your tests have shown that it's not enough.
Which remote is this for? There may be a special protocol that allows you to specify the number of repeats in a macro, not sure. _________________ Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help! |
|
Back to top |
|
|
|