Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Connect to TV #5

Open
onemico opened this issue Feb 6, 2019 · 2 comments
Open

Cannot Connect to TV #5

onemico opened this issue Feb 6, 2019 · 2 comments

Comments

@onemico
Copy link

onemico commented Feb 6, 2019

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
Copy link
Author

onemico commented Feb 21, 2019

Any way to have someone help me out with this?

@sectroyer
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants