key press sends command twice

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

Post Reply
micro_doc
Posts: 6
Joined: Thu Jul 05, 2007 10:43 am

key press sends command twice

Post by micro_doc »

I have succesfully created an upgrade file for my mutant 200s with all the functions working on a URC-6131n..the only problem is when i press a key it seems like it's sending the command twice.I have tried searching for instructions on setting the # of repeats , but have not been able to find a solution for this protocol...could someone point me in the right direction to which bytes control the repeats..Thank you.

Upgrade protocol 0 = 00 23 (S3C80) PID 00 23 (RM v1.78)
43 8C 11 8B 13 85 85 10 08 06 01 A6 01 92 01 A6
01 92 A3 34 01 A6 00 00 10 04 C0 03 08 00 27 0D
03 8D 01 46
End
The Robman
Site Owner
Posts: 21943
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

I don't see anything in that protocol that indicates that the signal would be sent twice, but it does repeat if you hold the button down. If you would rather that it didn't repeat at all, you should change the 6th byte from "85" to "84".
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
micro_doc
Posts: 6
Joined: Thu Jul 05, 2007 10:43 am

Post by micro_doc »

thanks very much for the help...but if i disable repeats altogether..then buttons like volume and such would have to be pressed repeatedly.
If i hit the button very very very quickly .it works OK..but if i press it normally, it seems like it sends the command twice..Is there a way to shorten the amount of time it sends each command
The Robman
Site Owner
Posts: 21943
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

You could try increasing the leadout time, so it takes longer until it checks whether the button is still being held. To do that you would increase the "A3 34" value in the code. Currently this equates to 83,560 uS, to increase it to 130,000 you would change the value to "FD E8".
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
micro_doc
Posts: 6
Joined: Thu Jul 05, 2007 10:43 am

Post by micro_doc »

thanks again ..but that didn't help..any other ideas..
The Robman
Site Owner
Posts: 21943
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

Which buttons, apart from the volume buttons, need to repeat? If you could live with just the VOL+, VOL-, CH+, CH-, FFWD and REW buttons repeating, try changing the 6th byte from "85" to "86".

Also, don't forget to load your upgrade into the file section when you're done.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
micro_doc
Posts: 6
Joined: Thu Jul 05, 2007 10:43 am

Post by micro_doc »

That worked great...thanks for the help..by the way..I don't meen to contradict you as you know alot more about this then me..but after looking at the disassembly..it was the 7th byte that needed to be changed.
Again thank you
The Robman
Site Owner
Posts: 21943
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

That's what you get when there are two "85" bytes right next to each other! :)
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Post Reply