View previous topic :: View next topic |
Author |
Message |
ianc2674
Joined: 25 Jul 2012 Posts: 5
|
Posted: Wed Jul 25, 2012 4:17 pm Post subject: JP1 codes -> arduino IRremote library?? |
|
|
Howdy.
I'm looking for a way to convert the data found in the .rmdu files into a format suitable for the arduino library IRremote ( http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html ).
This is the code I want to use.
Description=Canon Camcorder WL-D88 Remote
Remote.name=URC-6131(Old) PVR Remote 2K
Remote.signature=PVR0PVR0
DeviceType=VCR
DeviceIndex=2
SetupCode=1167
Protocol=00 5A
Protocol.name=NEC2
ProtocolParms=131 227 null
FixedData=21 3E 38
this is the button I want to use
Function.7.name=Photo
Function.7.hex=F3
and the arduino library format looks like this...
irsend.sendNEC (0xA16E0CF3, 32); (Canon WL-D77 remote photo button)
I was able to get the canon d77 remote code directly from the physical remote, but I don't have a d88 remote for my other canon camera.
I've been plugging various guesses to test but not getting anywhere. Any ideas?
Thanks. |
|
Back to top |
|
|
3FG Expert
Joined: 19 May 2009 Posts: 3367
|
Posted: Wed Jul 25, 2012 4:42 pm Post subject: |
|
|
The correct way to do this is to download RemoteMaster and open the rmdu file. It then tells you the device.subdevice and function (OBC) numbers. I've done this for you: Code: | play 1
Start/Stop/Rec 3
pause 4
||> 16
stop 23
Zoom Telephoto 28
Zoom Wide 29
Arrow Up 32
Arrow Down 33
Arrow Right 34
Arrow Left 35
Select 36
menu 37
Photo 48
Func 70
Playlist 72
rewind << 75
fast fwd >> 77
Display 78
<|| 80 |
RM says this is device 131.227. Photo is function number 48. So converting to Hex we have 83.E3 function 30. Reversing the order of the bits, we get C1, C7, 0C, or 0xC1C70CF3
I don't know what 32 means. |
|
Back to top |
|
|
ianc2674
Joined: 25 Jul 2012 Posts: 5
|
Posted: Wed Jul 25, 2012 11:30 pm Post subject: |
|
|
3FG wrote: | The correct way to do this is to download RemoteMaster and open the rmdu file. It then tells you the device.subdevice and function (OBC) numbers. I've done this for you: Code: | play 1
Start/Stop/Rec 3
pause 4
||> 16
stop 23
Zoom Telephoto 28
Zoom Wide 29
Arrow Up 32
Arrow Down 33
Arrow Right 34
Arrow Left 35
Select 36
menu 37
Photo 48
Func 70
Playlist 72
rewind << 75
fast fwd >> 77
Display 78
<|| 80 |
RM says this is device 131.227. Photo is function number 48. So converting to Hex we have 83.E3 function 30. Reversing the order of the bits, we get C1, C7, 0C, or 0xC1C70CF3
I don't know what 32 means. |
I assume that 32 refers to the number of bits. Which seems wrog for the canon codes.
Anyways, the 0xC1C70CF3 didn't work. |
|
Back to top |
|
|
3FG Expert
Joined: 19 May 2009 Posts: 3367
|
Posted: Thu Jul 26, 2012 12:14 am Post subject: |
|
|
NEC codes are 32 bits, and NEC is used in most Canon cameras. So I doubt that is the problem.
I checked to see if I had made a calculation mistake: I loadid the D88 upgrade into a remote, learned the resulting signal, decoded it into the same basic format as the Arduino, and it says 0xC1C70CF3. So I don't know what is the problem. Are you sure that a D88 remotes should work? |
|
Back to top |
|
|
vickyg2003 Site Admin
Joined: 20 Mar 2004 Posts: 7073 Location: Florida |
Posted: Thu Jul 26, 2012 10:28 am Post subject: |
|
|
Yep, almost all canon cameras use Nec protocols. We do have a few canons (Rebel, ESOS) that use that weird 1 bit protocol, but that doesn't apply to camcorders.
I'm kind of interested in the Canon WL-D77 remote photo button that the OP posted. Isn't irsend.sendNEC (0xA16E0CF3, 32); show that this is 133.59? Or did I miscalculate? AFAIK we don't have any upgrades with that combo. Shutter is the same OBC as shown in the WL-D88 .
ianc2674, can you confirm the remote, or give us the camera model number? _________________ Remember to provide feedback to let us know how the problem was solved and share your upgrades.
Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
|
|
Back to top |
|
|
ianc2674
Joined: 25 Jul 2012 Posts: 5
|
Posted: Sat Aug 04, 2012 8:38 pm Post subject: |
|
|
vickyg2003 wrote: | Yep, almost all canon cameras use Nec protocols. We do have a few canons (Rebel, ESOS) that use that weird 1 bit protocol, but that doesn't apply to camcorders.
I'm kind of interested in the Canon WL-D77 remote photo button that the OP posted. Isn't irsend.sendNEC (0xA16E0CF3, 32); show that this is 133.59? Or did I miscalculate? AFAIK we don't have any upgrades with that combo. Shutter is the same OBC as shown in the WL-D88 .
ianc2674, can you confirm the remote, or give us the camera model number? |
Yes I can. Here are the cameras.
Canon ZR65MC uses WL-D77. I successfully captured codes from that remote and use them with Arduino.
Canon Vixia HF10 uses WL-D88 remote. I do not have this one. This camera is listed with this remote in this file.
http://www.hifi-remote.com/forums/dload.php?action=file&file_id=5763&sid=907c1516fd3ab1f1765ce40212fd877b |
|
Back to top |
|
|
ianc2674
Joined: 25 Jul 2012 Posts: 5
|
Posted: Sat Aug 11, 2012 6:43 pm Post subject: solved |
|
|
The code given works. I had not realized they put the IR sensor on the viewfinder and not the front of the camera! RTFM.
There is also an option to turn off the remote control on this camera and probably other canon's, so anyone else who is testing ir on canon camcorders, remember to check your menu for that option.
Thank you for the help! |
|
Back to top |
|
|
vickyg2003 Site Admin
Joined: 20 Mar 2004 Posts: 7073 Location: Florida |
Posted: Sat Aug 11, 2012 9:58 pm Post subject: |
|
|
Thank you for posting the follow up. _________________ Remember to provide feedback to let us know how the problem was solved and share your upgrades.
Tip: When creating an upgrade, always include ALL functions from the oem remote, even if you never plan on assigning them to a button. Complete function lists makes an upgrade more helpful to others.
|
|
Back to top |
|
|
ianc2674
Joined: 25 Jul 2012 Posts: 5
|
Posted: Sat Jan 05, 2013 2:17 am Post subject: JP1 codes -> arduino IRremote library?? |
|
|
3FG wrote: | The correct way to do this is to download RemoteMaster and open the rmdu file. It then tells you the device.subdevice and function (OBC) numbers. I've done this for you: Code: | play 1
Start/Stop/Rec 3
pause 4
||> 16
stop 23
Zoom Telephoto 28
Zoom Wide 29
Arrow Up 32
Arrow Down 33
Arrow Right 34
Arrow Left 35
Select 36
menu 37
Photo 48
Func 70
Playlist 72
rewind << 75
fast fwd >> 77
Display 78
<|| 80 |
RM says this is device 131.227. Photo is function number 48. So converting to Hex we have 83.E3 function 30. Reversing the order of the bits, we get C1, C7, 0C, or 0xC1C70CF3
I don't know what 32 means. |
Hi 3FG,
Sorry, I'm revisiting this old post b/c I am having problems following this format and I am trying to use another code from this remote with my arduino.
I understand the device code; 131 = C1 and 227 = C7 after converting to hex and reversing bits, I understand that F3 is the hex code for the photo button but where does 0C come from?
while C1C70CF3 works for photo, if I try substituting 3F (record/start/stop) in place of F3 I get nothing.
Thanks for any help! |
|
Back to top |
|
|
3FG Expert
Joined: 19 May 2009 Posts: 3367
|
Posted: Sat Jan 05, 2013 3:11 am Post subject: |
|
|
Let's take photo first. The OBC is 48 or 30 in hexadecimal. Reversing 30 gives 0C, which is the 3rd byte of the signal. The NEC protocol calls for the 4th byte to be the binary complement of the 3rd byte. XORing 0C with 0xFF gives 0xF3. Another way to calculate is 0xFF-0x0C = 0xF3.
So for record/start/stop, the OBC is 3 or 0x03. Reversing gives 0xC0, which is the 3rd byte, and the 4th byte is 0x3F. |
|
Back to top |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21234 Location: Chicago, IL |
|
Back to top |
|
|
|