Open Maze2Go opened 4 years ago
Aw, I am getting this exact same error as well on my Samsung KS8000 series TV 😅
I'm also having some issues pairing due to Error: Unable to handleEvent
.
I've researched this a bit. This occurs when a message encrypted with AES 128 ECB fails to decrypt. This package uses a dependency for actually performing the pairing, samsung-remote-pin-paired
which in turn is a copy of samsung-remote-models-2014-and-newer
(see https://github.com/tdudek/samsung-remote-models-2014-and-newer/issues/38) which in turn is a copy of the code available here: https://github.com/Ape/samsungctl/issues/22#issuecomment-359063253. Both projects looks rather stale and the code itself uses some non-standard code to actually perform the decryption.
Since bytes and cryptos are quire hard to debug, my best guess at the moment is that Samsung changed their encryption scheme entirely (quite unlikely), changed their padding scheme (possible) or there's simply an edge case we're finding.
If @mmende would be interested in using it, I'm all for providing a new package written in TypeScript which could increase the stability of the pairing process and hopefully solve some edge cases like this. The goal would be to be a more or less drop-in replacement for the pairing dependency. I might have misunderstood the relationship or use case for the samsung-remote-pin-paired
. If that's the case, please let me know.
I've got a TV in the KS7000 series which I will be able to test this on, but I would need help testing it on other devices.
Hi, I tried to connect 2 of my Samsung TVs. One of them the pairing didn't worked completely, but the second one gave me a code to enter in the console. If I type in the code the code on the TV disappears and I get an error like this:
Complete LOG: