sectroyer / SmartCrypto

SmartView2 Handshake API implementation
GNU Affero General Public License v3.0
12 stars 25 forks source link

Cannot Connect to TV #5

Open onemico opened 5 years ago

onemico commented 5 years ago

Hi, I had this working and out of nowhere it has stopped, I thought I just had to re-pair (as my TV lost power for a while and seems to have lost all "allowed" connections) but when I try to re-pair I get the following error:

My lack of python knowledge isn't helping but I tried Googling the error and not getting anywhere fast.

python3 smartcrypto.py Current state: running Pin ON TV Please enter pin from tv: 1353 Got pin: '1353'

Traceback (most recent call last): File "smartcrypto.py", line 96, in output = HelloExchange(tvPIN) File "smartcrypto.py", line 49, in HelloExchange hello_output = crypto.generateServerHello(UserId,pin) File "/home/pi/SmartCrypto/PySmartCrypto/crypto.py", line 32, in generateServerHello sha1.update(pin) TypeError: Unicode-objects must be encoded before hashing

Any help much appreciated.

onemico commented 5 years ago

Any way to have someone help me out with this?

sectroyer commented 5 years ago

This is just PoC and samsungctl have reimplemented it. Please try using their implementation 😄