antonioparraga / braviarc

Python library for Sony Bravia TV remote control
MIT License
79 stars 41 forks source link

Connection Refused #22

Open xXJohnRamboXx opened 6 years ago

xXJohnRamboXx commented 6 years ago

Hi,

i'm trying to connect to my Sony Bravia TV 32wd753b but when i try i get "Connection refused" error. I have a doubt regarding the two parameters passed to "connect" function I am calling the connect function in the following way:

pin = "1879"
braviarc.connect(pin, 'my_device_id', 'my device name')

My questions are:

  1. should i change the PIN from 1879 to another value?
  2. "my_device_id" what does it means?

Thanks

debuggerboy commented 4 years ago

@xXJohnRamboXx

Sorry for the late answer. I use a KDL W800D, I had to go to the settings on the TV, to the "Network" > "Home network setup" > "IP Control" > "Pre-Shared key"

and then added a 4 digit alpha-nuemeric key like SB43

Then updated pin to use SB43

I modified the connection string as below

pin = "SB43"
braviarc.connect(pin, 'debian10_desktop', 'Debian 10')

Then it seems to work correctly.

Thanks,