JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

Unable to lean remote codes
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Beginners
View previous topic :: View next topic  
Author Message
Bob8K



Joined: 13 Feb 2016
Posts: 28

                    
PostPosted: Thu Feb 18, 2016 3:14 am    Post subject: Reply with quote

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
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21210
Location: Chicago, IL

                    
PostPosted: Thu Feb 18, 2016 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Bob8K



Joined: 13 Feb 2016
Posts: 28

                    
PostPosted: Thu Feb 18, 2016 8:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Bob8K



Joined: 13 Feb 2016
Posts: 28

                    
PostPosted: Thu Feb 18, 2016 8:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Bob8K



Joined: 13 Feb 2016
Posts: 28

                    
PostPosted: Thu Feb 18, 2016 9:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Thu Feb 18, 2016 1:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Bob8K



Joined: 13 Feb 2016
Posts: 28

                    
PostPosted: Thu Feb 18, 2016 2:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Thu Feb 18, 2016 4:41 pm    Post subject: Reply with quote

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. Embarassed 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
View user's profile Send private message Send e-mail Visit poster's website
Bob8K



Joined: 13 Feb 2016
Posts: 28

                    
PostPosted: Thu Feb 18, 2016 5:47 pm    Post subject: Reply with quote

Barf wrote:

Essentially copied from Rc5Renderer.ino, right. Ooops, I really forgot to update that. Embarassed 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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Beginners All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
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
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control