harshakavuri Posted March 11, 2023 Report Posted March 11, 2023 (edited) 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 March 11, 2023 by harshakavuri Edit: repeat is set to 1 Quote
jason Posted March 11, 2023 Report Posted March 11, 2023 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. Quote
harshakavuri Posted March 12, 2023 Author Report Posted March 12, 2023 Flirc log is for the UP direction button and the JSON file Beelink_up_logtxt.txt Beelink.json Quote
Solution jason Posted March 12, 2023 Solution Report Posted March 12, 2023 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 Quote
harshakavuri Posted March 12, 2023 Author Report Posted March 12, 2023 13 hours ago, jason said: I corrected everything and attached a new file. Please give this a try Hi, I tried uploading the new file and getting the error "Object doesn't support property or method 'replaceAll' " Quote
jason Posted March 12, 2023 Report Posted March 12, 2023 7 hours ago, harshakavuri said: Hi, I tried uploading the new file and getting the error "Object doesn't support property or method 'replaceAll' " Okay, looks like a bug on windows we didn't catch. I'll push an update for this tomorrow. Sorry about that. 1 Quote
harshakavuri Posted March 14, 2023 Author Report Posted March 14, 2023 Installed the latest update and it worked. Thanks a lot for the help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.