Jump to content
Flirc Forums

Learned directional commands are moving twice for a single press


Go to solution Solved by jason,

Recommended Posts

I have a Beelink GT King android box which is not in database. I used flirc usb to learn the commands from original remote and created a JSON file. Now when pressing the direction keys in Skip they are moving 2 spaces instead of one for a single press. I even learned the same commands from a harmony remote with the same effect. Original remote and Harmony both work as expected.

Edit: repeat is set to 1

Edited by harshakavuri
Edit: repeat is set to 1
Link to comment
Share on other sites

3 hours ago, harshakavuri said:

I have a Beelink GT King android box which is not in database. I used flirc usb to learn the commands from original remote and created a JSON file. Now when pressing the direction keys in Skip they are moving 2 spaces instead of one for a single press. I even learned the same commands from a harmony remote with the same effect. Original remote and Harmony both work as expected.

Edit: repeat is set to 1

Post your JSON and maybe the log file you got from Flirc, I'll help fix this. If not the original log from flirc, just capture one directional button.

Link to comment
Share on other sites

  • Solution

I'll need to put a wiki together until I can code all this up so it's really simple NEC codes are a bit harder to copy and paste with available tools online. Brief explanation. Each button, has a unique CODE, followed by a repeat frame. The repeat frame is the same for every button press, and it's just a small short burst which tells the device repeat last thing you saw. This protocol helps us save power, because the repeat burst is only a couple pulses.

So for example, when you captured a button:

+9119 -4487 +612 -505 +606 -505 +611 -505 +607 -505 +611 -505 +611 -505 +607 -505 +611 -1630 +611 -1629 +611 -1630 +611 -1629 +612 -1629 +611 -1630 +607 -1634 +607 -1629 +612 -505 +611 -505 +607 -1633 +607 -1634 +606 -505 +620 -496 +611 -1630 +611 -500 +611 -505 +611 -1630 +611 -505 +607 -505 +611 -1629 +611 -1629 +612 -505 +607 -1629 +611 -1630 +611
-40  <---THIS IS AN ERROR ON MY PART
+9119 -2209 +612

The minus 40 is 40ms, but everything else is in microseconds. So I should push an update which changes this to 40000

Okay, but in combination with this, we need to tell IR Scrutinizer that we are NEC, and some of this is a repeat frame. So first just copy the initial unique block which is: 

+9119 -4487 +612 -505 +606 -505 +611 -505 +607 -505 +611 -505 +611 -505 +607 -505 +611 -1630 +611 -1629 +611 -1630 +611 -1629 +612 -1629 +611 -1630 +607 -1634 +607 -1629 +612 -505 +611 -505 +607 -1633 +607 -1634 +606 -505 +620 -496 +611 -1630 +611 -500 +611 -505 +611 -1630 +611 -505 +607 -505 +611 -1629 +611 -1629 +612 -505 +607 -1629 +611 -1630 +611

When you scrutinize, Options->Output (Raw With Signs). We get the following:

Freq=38029Hz[+9119,-4487,+576,-576,+576,-576,+576,-576,+576,-576,+576,-576,+576,-576,+576,-576,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-576,+576,-576,+576,-1630,+576,-1630,+576,-576,+576,-576,+576,-1630,+576,-576,+576,-576,+576,-1630,+576,-576,+576,-576,+576,-1630,+576,-1630,+576,-576,+576,-1630,+576,-1630,+576,-50000][][]

But this is not correct, we will add our repeat frame. And add the standard NEC delay 40ms, and the second frame:

Freq=38029Hz[+9119,-4487,+576,-576,+576,-576,+576,-576,+576,-576,+576,-576,+576,-576,+576,-576,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-1630,+576,-576,+576,-576,+576,-1630,+576,-1630,+576,-576,+576,-576,+576,-1630,+576,-576,+576,-576,+576,-1630,+576,-576,+576,-576,+576,-1630,+576,-1630,+576,-576,+576,-1630,+576,-1630,+576,-40000][+9119 -2209 +612,-95000][]

Paste that into IR Scrutinizer, and get the hex:

0000 006D 0022 0002 015B 00AB 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 003E 0016 003E 0016 003E 0016 003E 0016 003E 0016 003E 0016 003E 0016 003E 0016 0016 0016 0016 0016 003E 0016 003E 0016 0016 0016 0016 0016 003E 0016 0016 0016 0016 0016 003E 0016 0016 0016 0016 0016 003E 0016 003E 0016 0016 0016 003E 0016 003E 0016 05F1 015B 0054 0017 0E1D

I corrected everything and attached a new file. Please give this a try. Great job nonetheless.

Beelink - GT King II.json

Link to comment
Share on other sites

7 hours ago, harshakavuri said:

Hi, I tried uploading the new file and getting the error "Object doesn't support property or method 'replaceAll' "

2023-03-12.png

Okay, looks like a bug on windows we didn't catch. I'll push an update for this tomorrow. Sorry about that.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...