|
JP1 Remotes
|
View previous topic :: View next topic |
Author |
Message |
Bob8K
Joined: 13 Feb 2016 Posts: 28
|
Posted: Thu Feb 18, 2016 3:14 am Post subject: |
|
|
Thanks Rob, but with your help and all my readings since I started this thread, I did get all of this!
I did try at first blindly stuff like "000B 0001" which of course did not work, but the last tries have been "0000 000B", or even "000B 000B" while duplicating the data, and changing the Lead In and/or Lead Out of only one of the two data sets.
Unfortunately, the MX is stubborn: as with every other remote it already learned, the USB Toy and IrScrutinizer showed that it always send 2 pulses when the repeat is set.
Next I'll be trying to use an Arduino to relay the MX IR pulses, and make it skip the second pulse. Not sure it will be able to do that fast enough though. _________________ Robert |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
Posted: Thu Feb 18, 2016 8:25 am Post subject: |
|
|
Like Barf mentioned earlier, even though we are experts on remote signals, we don't know much about the MX- line of remotes. Have you tried asking about this over at Remote Central? If you do, link back to this thread so they can see what we've covered already, and post a link to the RC thread here, so we can see any progress. _________________ 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 |
|
|
Bob8K
Joined: 13 Feb 2016 Posts: 28
|
Posted: Thu Feb 18, 2016 8:46 am Post subject: |
|
|
The Robman wrote: | Like Barf mentioned earlier, even though we are experts on remote signals, we don't know much about the MX- line of remotes. Have you tried asking about this over at Remote Central? If you do, link back to this thread so they can see what we've covered already, and post a link to the RC thread here, so we can see any progress. |
Good idea, I'll try. _________________ Robert |
|
Back to top |
|
|
Bob8K
Joined: 13 Feb 2016 Posts: 28
|
Posted: Thu Feb 18, 2016 8:50 am Post subject: |
|
|
Barf,
Until I get a response from Remote Central (I doubt there will be a solution though), I'm going to toy with my Arduino as an IR relayer to clean up the pulses.
Would you recommend that I use AGirs, AGirs Lite or Infrared4Arduino?
I have been using IRLib so far, but without much success as we already saw. _________________ Robert |
|
Back to top |
|
|
Bob8K
Joined: 13 Feb 2016 Posts: 28
|
Posted: Thu Feb 18, 2016 9:00 am Post subject: |
|
|
The Robman wrote: | Like Barf mentioned earlier, even though we are experts on remote signals, we don't know much about the MX- line of remotes. Have you tried asking about this over at Remote Central? If you do, link back to this thread so they can see what we've covered already, and post a link to the RC thread here, so we can see any progress. |
Here:
http://www.remotecentral.com/cgi-bin/mboard/rc-master/thread.cgi?11953 _________________ Robert |
|
Back to top |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1414 Location: Munich, Germany |
Posted: Thu Feb 18, 2016 1:47 pm Post subject: |
|
|
Bob8K wrote: | ... I'm going to toy with my Arduino as an IR relayer to clean up the pulses.
Would you recommend that I use AGirs, AGirs Lite or Infrared4Arduino? |
I am not sure if I would recommend a translator as a means for solving your problems, but anyhow:
Infrared4Arduino is a "low level" library, like IRlib and IRremote. AGirs is a very powerful, flexible, and configurable server for the Arduino. GirsLite is, as the name suggests, basically a small (but not minimal!) configuration optimized for IrScrutinizer, Lirc, and a hardware configuration as here.
Have a look at Rc5Renderer,ino on how to send Rc5 signals with Infrared44Arduino. Then look at Opponator, which should give you an idea on how to make a translator. |
|
Back to top |
|
|
Bob8K
Joined: 13 Feb 2016 Posts: 28
|
Posted: Thu Feb 18, 2016 2:29 pm Post subject: |
|
|
Barf wrote: | Bob8K wrote: | ... I'm going to toy with my Arduino as an IR relayer to clean up the pulses.
Would you recommend that I use AGirs, AGirs Lite or Infrared4Arduino? |
I am not sure if I would recommend a translator as a means for solving your problems, but anyhow:
Infrared4Arduino is a "low level" library, like IRlib and IRremote. AGirs is a very powerful, flexible, and configurable server for the Arduino. GirsLite is, as the name suggests, basically a small (but not minimal!) configuration optimized for IrScrutinizer, Lirc, and a hardware configuration as here.
Have a look at Rc5Renderer,ino on how to send Rc5 signals with Infrared44Arduino. |
I tried this:
Code: | #include <Rc5Renderer.h>
#include <IrSenderPwm.h>
IrRenderer *renderer;
void setup() {
renderer = new Rc5Renderer(0, 1);
}
void loop() {
renderer->send(*IrSenderPwm::getInstance(true));
delay(1000);
renderer->send(*IrSenderPwm::getInstance(true));
delay(10000);
} |
and got:
Code: | Compiling debug version of 'Test_IR' for 'Arduino/Genuino Uno'
Test_IR.ino:15:1: error: 'IrRenderer' does not name a type |
I did install (username "m1"):
Code: | C:\Users\m1\Documents\Arduino\libraries\Infrared4Arduino-master |
So I'm not sure what I'm doing wrong.
This one:
Code: | #include <IrSenderPwm.h>
#include <Pronto.h>
IrSignal *irSignal;
void setup() {
irSignal = Pronto::parse("0000 006F 0000 000C 001F 0020 0020 0020 0020 0020 0020 0020 0040 0020 0020 0020 0020 0020 0020 0040 0020 0020 0040 0040 0020 0020 0020 0CA8");
}
void loop() {
IrSenderPwm::getInstance(true)->sendIrSignal(*irSignal);
delay(100);
}
|
compiled fine (although the example was wrongly using sendSignal instead of sendIrSignal), but that actually works poorly, even though the sequence above is one that works now with the MX. So, the library **appears** to be correctly installed.
Quote: | Then look at Opponator, which should give you an idea on how to make a translator. |
I already wrote an IR to RS232 translator, that works pretty well. But the G RS232 commands are very limited, so I need some native IR in addition.
I used IRLib, so this one will be very useful to show me how to use AGirs, thanks. _________________ Robert |
|
Back to top |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1414 Location: Munich, Germany |
Posted: Thu Feb 18, 2016 4:41 pm Post subject: |
|
|
Bob8K wrote: |
I tried this:
Code: | #include <Rc5Renderer.h>
#include <IrSenderPwm.h>
IrRenderer *renderer;
void setup() {
renderer = new Rc5Renderer(0, 1);
}
void loop() {
renderer->send(*IrSenderPwm::getInstance(true));
delay(1000);
renderer->send(*IrSenderPwm::getInstance(true));
delay(10000);
} |
and got:
Code: | Compiling debug version of 'Test_IR' for 'Arduino/Genuino Uno'
Test_IR.ino:15:1: error: 'IrRenderer' does not name a type |
|
Essentially copied from Rc5Renderer.ino, right. Ooops, I really forgot to update that. However, this works:
Code: |
// Sends Rc5 0/1 twice with different toggle values.
// Turns e.g. a Philips TV to channel 11.
#include <Rc5Renderer.h>
#include <IrSenderPwm.h>
IrSender *sender;
void setup() {
sender = IrSenderPwm::getInstance(true);
}
void loop() {
const IrSignal *signal = Rc5Renderer::newIrSignal(0, 1);
sender->sendIrSignal(*signal);
delay(1000);
signal = Rc5Renderer::newIrSignal(0, 1);
sender->sendIrSignal(*signal);
delay(10000);
}
|
Quote: |
Quote: | Then look at Opponator, which should give you an idea on how to make a translator. |
I already wrote an IR to RS232 translator, that works pretty well. But the G RS232 commands are very limited, so I need some native IR in addition.
|
I meant it as an example, to change the serial sending commands to appropriate IR sending commans, for example as above. |
|
Back to top |
|
|
Bob8K
Joined: 13 Feb 2016 Posts: 28
|
Posted: Thu Feb 18, 2016 5:47 pm Post subject: |
|
|
Barf wrote: |
Essentially copied from Rc5Renderer.ino, right. Ooops, I really forgot to update that. However, this works:
Code: |
// Sends Rc5 0/1 twice with different toggle values.
// Turns e.g. a Philips TV to channel 11.
#include <Rc5Renderer.h>
#include <IrSenderPwm.h>
IrSender *sender;
void setup() {
sender = IrSenderPwm::getInstance(true);
}
void loop() {
const IrSignal *signal = Rc5Renderer::newIrSignal(0, 1);
sender->sendIrSignal(*signal);
delay(1000);
signal = Rc5Renderer::newIrSignal(0, 1);
sender->sendIrSignal(*signal);
delay(10000);
}
|
|
Yes it does, thanks.
The result are erratic though, the Goldmund is definitively an odd RC 5 duck.
However, I was wrong about the Pronto::parse method not working: I forgot that my gizmo needs to be plugged in the mains to actually send an IR signal, the IR Led not being connected to the USB derived 5V supply. Duh!
This works correctly, although not as well as the original remote. Well enough to do what I need I think.
Quote: |
I meant it as an example, to change the serial sending commands to appropriate IR sending commans, for example as above. |
That will be very useful to convert my current sketch to your library. I know how to send now, I'll look into it to see how to receive.
Thanks! _________________ Robert |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|