downloaded code with Arduino, how to next....?

This is the JP1 beginners forum. There's no such thing as a stupid question in here, so post away, but this forum is just for JP1 users and people considering JP1, non-JP1 users please use the appropriate forum above!

Moderator: Moderators

jenom
Posts: 29
Joined: Tue Oct 29, 2019 6:45 am

downloaded code with Arduino, how to next....?

Post by jenom »

I used an Arduino UNO to receive IR signal from an original remote's buttons.9
Below is what pushing the Power button returned.
So protocol is NEC1 and the hex code is 409F50AF

My question is, how to use this information to edit/add/create a RemoteMaster device file or maybe it can be used in another program?

Thanks!&

(I have an universal Atlas 1056 B03 JP2 remote, although I found found a device update files for some of my devices, only few buttons are working)


Ready to receive IR signals
Decoded NEC(1): Value:409F50AF Adrs:0 (32 bits)
Raw samples(68): Gap:7890
Head: m8962 s4442
0:m634 s546 1:m586 s1670 2:m562 s590 3:m562 s594
4:m562 s590 5:m582 s566 6:m614 s542 7:m586 s566
8:m610 s1642 9:m542 s610 10:m570 s594 11:m562 s1686
12:m586 s1674 13:m562 s1690 14:m586 s1666 15:m566 s1686

16:m590 s562 17:m542 s1722 18:m558 s594 19:m562 s1690
20:m586 s562 21:m538 s618 22:m610 s546 23:m610 s542
24:m586 s1674 25:m534 s610 26:m542 s1722 27:m534 s610
28:m538 s1726 29:m558 s1690 30:m586 s1674 31:m534 s1722

32:m530
Extent=67390
Mark min:530 max:634
Space min:542 max:1726
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Said signal corresponds, in JP1 language, to NEC1 with device = 2, subdevice = 249, obc = 10. You can enter that directly in RM.

If you want a more streamlined procedure, i suggest that you use Agirs on the Arduino (install "Agirs" and "Infrared" from the Arduino library manager) and IrScrutinizer to capture the signals. Then export to RM using see this procedure.
jenom
Posts: 29
Joined: Tue Oct 29, 2019 6:45 am

Post by jenom »

with device = 2, subdevice = 249, obc = 10.

How did you manage to get that from the info ?

thanks
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

First byte (of 409F50AF) is device (bitreversed), second byte is subdevice, also bitreversed, byte 3 is OBC (bitreversed), byte 4 is the (one-) complement of byte 3.

Bitreverse means the bits in the other order 0x40 = 0b01000000, reverse the bit order gets 0b00000010b = 0x02.
Last edited by Barf on Mon Nov 18, 2019 2:15 am, edited 1 time in total.
jenom
Posts: 29
Joined: Tue Oct 29, 2019 6:45 am

Post by jenom »

wow, I would not have figured that out in a million years.....
so I guess, the first step is to convert hex into binary

4 0 9 F 5 5 0 A F
0100 0000 1001 1111 0101 0101 0000 1010 1111

than I am clueless........
The Robman
Site Owner
Posts: 21886
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

jenom wrote:wow, I would not have figured that out in a million years.....
so I guess, the first step is to convert hex into binary

4 0 9 F 5 5 0 A F
0100 0000 1001 1111 0101 0101 0000 1010 1111

than I am clueless........
Do it like this. Probably easiest to use Excel, so I also show you what formula I used...

Code: Select all

40       9F       50       AF
01000000 10011111 01010000 10101111 =HEX2BIN(A1,8)
00000010 11111001 00001010 11110101 =MID(A2,8,1)&MID(A2,7,1)&MID(A2,6,1)&MID(A2,5,1)&MID(A2,4,1)&MID(A2,3,1)&MID(A2,2,1)&MID(A2,1,1)
2        249      10       245      =BIN2DEC(A3)
Also, when you're looking at raw IR times, you can round them up or down to a common number. In this case, multiples of 550 would be a good number to round to.

These times all equate to logical 0
00:m634 s546
02:m562 s590
03:m562 s594
04:m562 s590
05:m582 s566
06:m614 s542
07:m586 s566
09:m542 s610
10:m570 s594
16:m590 s562
18:m558 s594
20:m586 s562
21:m538 s618
22:m610 s546
23:m610 s542
25:m534 s610
27:m534 s610

These times all equate to logical 1
01:m586 s1670
08:m610 s1642
11:m562 s1686
12:m586 s1674
13:m562 s1690
14:m586 s1666
15:m566 s1686
17:m542 s1722
19:m562 s1690
24:m586 s1674
26:m542 s1722
28:m538 s1726
29:m558 s1690
30:m586 s1674
31:m534 s1722
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
jenom
Posts: 29
Joined: Tue Oct 29, 2019 6:45 am

Post by jenom »

thanks for the info
I do not have Excel, and my Open Office Calc missing the Analysis Add In
but the concept is clear now

Following Barf advise, and installing IRScrutinizer.
Instead of full AGIRS, got the GirsLite ....could not find MicroGirs...maybe they are same?
Then needed Xloader to upload GirsLite to Arduino Uno...done
heading to "Girs Client" ...>>>opened :-)
next is "Capturing hardware".....>>>Device opened :-)

Test.....no signal received !! :-(
The Robman
Site Owner
Posts: 21886
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Re: downloaded code with Arduino, how to next....?

Post by The Robman »

jenom wrote:(I have an universal Atlas 1056 B03 JP2 remote, although I found found a device update files for some of my devices, only few buttons are working)
Are you testing this using your Atlas 1056? If so, load your RMIR file into the Diagnosis Area, then post a link to it here, and we'll take a look.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
jenom
Posts: 29
Joined: Tue Oct 29, 2019 6:45 am

Post by jenom »

managed to capture a Power button signal
c/p below

Freq=38400Hz[+9024, -4512, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -39756][+9024, -2256, +564, -96156][]

I am guessing, I would need to Capture every button's signal
Then combine them together and put it into RM.....long way to go !
jenom
Posts: 29
Joined: Tue Oct 29, 2019 6:45 am

Post by jenom »

The Robman

where is the mentioned Diagnosis Area located ?
thanks
Are you testing this using your Atlas 1056? If so, load your RMIR file into the Diagnosis Area, then post a link to it here, and we'll take a look.
The Robman
Site Owner
Posts: 21886
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Here:
http://www.hifi-remote.com/forums/dload ... &cat_id=35
jenom wrote:managed to capture a Power button signal
c/p below

Freq=38400Hz[+9024, -4512, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -39756][+9024, -2256, +564, -96156][]

I am guessing, I would need to Capture every button's signal
Then combine them together and put it into RM.....long way to go !
What you captured above is NEC1, device code 0, no sub-device, function code (OBC) 0.

Before we spin our wheels too much, what device are you trying to capture? It sounds like you don't know that we have a file section here, so there's a good chance that we already have the data for this device.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
jenom
Posts: 29
Joined: Tue Oct 29, 2019 6:45 am

Post by jenom »

looks like I captured nothing...it was a Test signal

here is a link to my uploaded file

http://www.hifi-remote.com/forums/dload ... e_id=25724

remote is Atlas-1056 B03, got the DreamlinkHD file from Files...Satellites,
http://www.hifi-remote.com/forums/dload ... e_id=11566

added device to Cable button.......not even the Power button works.

Code:2010 PID:005A Protocol:NEC1

Thanks!
The Robman
Site Owner
Posts: 21886
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

The upgrade that you added uses NEC1 2.249, which matches the codes that you posted in the first post.

The DreamLink HD file that you found here uses NEC1 1, so that doesn't match, so it doesn't look like you tried loading that into your remote.
http://www.hifi-remote.com/forums/dload ... e_id=11566

We have a 2nd file for a DreamLink HD T1 Plus which uses a combination of NEC1 1.254 and 0 (displayed as 0.255 in RM).
http://www.hifi-remote.com/forums/dload ... e_id=14753
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
jenom
Posts: 29
Joined: Tue Oct 29, 2019 6:45 am

Post by jenom »

Yes, I loaded the file from File section, then manually entered 2, 249 ....because this is what came as an the actual output for the Power button.....using an Arduino to receive...from an original working remote.
Thanks
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

jenom wrote:managed to capture a Power button signal
c/p below

Freq=38400Hz[+9024, -4512, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -564, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -1692, +564, -39756][+9024, -2256, +564, -96156][]
Looks good!
I am guessing, I would need to Capture every button's signal
Then combine them together and put it into RM.....long way to go !
No really. Assuming that the hardware is open, select the "scrutinize remote" pane, and then the "Parameteric remote" pane. Press the "capture" button and note that it keeps "pressed". Now you "shoot" the keys at the IR receiver, and type in the name (your preferred name) of the keys in the "Name" column. (Typing and firing IR can be intermingled as you wish.) When finished, select the "Export" pane. There select "Remotemaster" as export format. Press "Export parameteric remote" and you have your remotemaster file.
so I guess, the first step is to convert hex into binary

4 0 9 F 5 5 0 A F
0100 0000 1001 1111 0101 0101 0000 1010 1111
First byte is the first two characters (A0), second byte the characters three and four, and so on. You can use the "Hex calculator" of IrScrutinizer for this: Tools -> Hex Calculator. Enter the byte to be converted as Input hex (upper right) (40, 9F, 50); you will find the bitreversed version as LSB (third row, decimal left hexadecimal right).

It is of course a good idea to check out the rm files present in the forum's data base.
Post Reply