IR Code formats? Which to use?

Interested in integrating USB-UIRT support into an application? Look here!

Moderator: jrhees

IR Code formats? Which to use?

Postby Iguanaman » Wed Mar 16, 2005 5:39 pm

Hello! I am trying to create a program in vb.net and I want to send IR signals to the remote device. I have two possible types of strings for the IR codes.

One type I can use looks like this: $89 or $8E
They appear to be simply hex numbers.

The other type I can send are like this: R080081028085208085202121808620212180862022212121

I can use either one. Which is preferrable and what format do I set the
gIRCodeFormat to? UUIRTDRV_IRFMT_UUIRT or UUIRTDRV_IRFMT_PRONTO or something else?
Iguanaman
 

Postby jrhees » Wed Mar 16, 2005 10:06 pm

Where did these IR codes come from?

Jon
jrhees
Site Admin
 
Posts: 1652
Joined: Tue Jan 28, 2003 11:49 pm

IR Codes

Postby Iguanaman » Thu Mar 17, 2005 12:58 am

They have come from various web sites. They are codes to control a Robosapien robot. This is one site:

http://isobe.typepad.com/robotics/2005/ ... ith_a.html

Those codes are the long ones starting with an "R"

This is a site with the shorter hex codes:

http://www.robohackers.com/articles/ircodes/
Iguanaman
 

Postby jrhees » Thu Mar 17, 2005 1:13 pm

The codes starting with 'R' come from the USB-UIRT Girder plugin and are USB-UIRT 'RAW' format. The other codes (single hex codes) are specific to a protocol and would need to be translated before using them with the API.

-Jon
jrhees
Site Admin
 
Posts: 1652
Joined: Tue Jan 28, 2003 11:49 pm

Postby Iguanaman » Thu Mar 17, 2005 7:41 pm

Does that mean that the "R" codes can be used directly? In other words can I simply use the UUIRTDRV_IRFMT_UUIRT format with those codes or will they only work in Girder?
Iguanaman
 

Postby jrhees » Fri Mar 18, 2005 7:07 pm

You can 'almost' use them directly. They do not include frequency information. It would probably be easier to grab your remote and learn the codes. If you do this, I would suggest learning in the more universal Pronto format.

-Jon
jrhees
Site Admin
 
Posts: 1652
Joined: Tue Jan 28, 2003 11:49 pm

Postby lafugitt » Thu Mar 24, 2005 7:18 am

Iguanaman wrote:Does that mean that the "R" codes can be used directly? In other words can I simply use the UUIRTDRV_IRFMT_UUIRT format with those codes or will they only work in Girder?


The "R" codes you mentioned for the Robosapien were originally captured using Girder by the fellow that won the Servo Magazine Robosapien Hack contest.

Quite a few developers have used that set of R codes, without conversion, to control their Robosapiens with the USBUIRT. The range of software used includes Girder, Delphi (Pascal), Visual Basic 6, and others. As far as I know, they all used the UUIRTDRV_IRFMT_UUIRT format with the USBUIRT dll.

That particular set of Robosapien R codes is a little incomplete - in that it only includes the known commands you can generate with the standard remote control. According to the information posted by Mark Tilden on the Robosapien site, there are other "secret" codes - i.e. the short hex codes that you mentioned in your original post. The Robosapien would respond to them ... if only someone could figure out how to generate them...
"Androids don't dream of electric sheep, they eat them!"
http://www.robots-dreams.com
lafugitt
 
Posts: 10
Joined: Mon Jan 17, 2005 11:51 pm

Postby Iguanaman » Thu Mar 24, 2005 6:23 pm

I've seen the secret codes but I don't have any way to convert the 2 chartacter hex codes into any format I can use. I am debating whether I should write some code to sequentially try different codes, wait a few seconds to see if anything happens (and write it down if it does) then try another. It would be tedious at best though. I really wish someone had a conversion program that would various formats.
Iguanaman
 

Postby jrhees » Thu Mar 24, 2005 10:39 pm

Where are the secret codes listed? Perhaps they also list details about the IR protocol used...

-Jon
jrhees
Site Admin
 
Posts: 1652
Joined: Tue Jan 28, 2003 11:49 pm

Postby lafugitt » Fri Mar 25, 2005 12:40 am

jrhees wrote:Where are the secret codes listed? Perhaps they also list details about the IR protocol used... -Jon


They appear on several different sites, but the most complete reference I've found so far is at http://www.aibohack.com/robosap/ir_codes.htm which includes the carrier frequency and timing information as well as what appears to be a complete listing of the hex codes.

Would it be helpful to match the known R codes to the hex codes? I could certainly put that together and email it to you or post it.
"Androids don't dream of electric sheep, they eat them!"
http://www.robots-dreams.com
lafugitt
 
Posts: 10
Joined: Mon Jan 17, 2005 11:51 pm

Codes

Postby Iguanaman » Fri Mar 25, 2005 1:04 am

I have a listing of the known R codes and have them assigned. If you know what the R codes are for the secret hex codes, I'd certainly appreciate it. The more functionality I can give the better. The program I writing is freeware. This is a screen shot:

Image

I'd love to include every possible option
Iguanaman
 

email

Postby Iguanaman » Fri Mar 25, 2005 1:06 am

Sorry I forgot to post my email address.
patrickd@netins.net or pldugan@gmail.com

BTW if anyone wants/needs a google email account, I have many I can give away, just send me your email and I'll send an invite.
Iguanaman
 

Postby jrhees » Fri Mar 25, 2005 4:35 pm

If you can give me R codes for a few known codes I can verify my thinking...

Thanks,

Jon
jrhees
Site Admin
 
Posts: 1652
Joined: Tue Jan 28, 2003 11:49 pm

R and Hex Codes

Postby Iguanaman » Fri Mar 25, 2005 5:28 pm

Here are a few of the known codes and the matching hex codes:

R arm up $81 = R08008109808520212122212221212122212121808720
R arm down $84 = R08008101808321212122212121212180862022212121
R arm out $82 = R08008109808321212122212121212122218086202121
R arm in $85 = R2D9980FE80852021212221212123218086202021808720
L arm up $89 = R0800810E80832121212221212180852120212221808520
L arm down $8C = R080080F780852021212221212180872080862022212121
L arm out $8A = R0800810B80842021212221212180872021218085212121
L arm in $8D = R080080F48086202121222122218086208086202221808620

Some secret commands
feet shuffle $F6
nothing $FB
raise arm throw $FC
karate chop $D6
Iguanaman
 

Postby jrhees » Fri Mar 25, 2005 8:51 pm

Here, give this a try (copy one of your working commands in Girder and replace the Code1 with this:

Karate Chop (D6):
R08008104808221808221212180822121218082218082212121

Let me know if this works.

-Jon
jrhees
Site Admin
 
Posts: 1652
Joined: Tue Jan 28, 2003 11:49 pm

Next

Return to Developers

Who is online

Users browsing this forum: No registered users and 7 guests

cron