lucasvdh / codes.lucasvdh.philips-jointspace

A Jointspace connector for Philips TV's supporting models up to 2018
GNU General Public License v3.0
7 stars 10 forks source link

No pairing 47PFK6549/12 (2014 Model) #15

Closed wlauvenberg closed 1 year ago

wlauvenberg commented 4 years ago

Model: 47PFK6549/12 (releasedate: 15 april 2014) Software: QN141E_012.003.086.128 (latest)

JointSpace API URLs http://192.168.1.18:1925/1/system

{
    "menulanguage": "Dutch",
    "name": "PHILIPS TV WK",
    "country": "Netherlands",
    "serialnumber_encrypted": "K2kseVsmQFgkd15gKkJ+auKHdtlei10XlUrmzvvKqgw=",
    "softwareversion_encrypted": "K2kseVsmQFgkd15gKkJ+aqCKXTYmH6lVxBPjS/ok9gL84V+2r6G1rP9iSaFqnwp8",
    "model_encrypted": "K2kseVsmQFgkd15gKkJ+aqKtb/+Cehh1vCMJCN1c8Rs=",
    "deviceid_encrypted": "K2kseVsmQFgkd15gKkJ+ajChDrDH1UwWpzLiZ/M1V4Q=",
    "nettvversion": "4.4.1",
    "epgsource": "broadcast"
}

http://192.168.1.18:1925/[2-6]/system

Forbidden

Testscript

c:\GitHub\codes.lucasvdh.philips-jointspace>node tests/pairing.js
? What's your TV's IP? 192.168.1.18
? What's your API version? (1 to 6) 1
? What port number should be used? Either 1925 or 1926 1925
Updating _client config
Sending system info call
[
  'GET [http://192.168.1.18:1925/1/system]',
  'with:',
  {},
  'requested securely?',
  false
]
[
  'GET [http://192.168.1.18:1925/1/system]',
  'with:',
  {},
  'requested securely?',
  false
]
[ 'user regular _client' ]
[ 'user regular _client' ]

log.txt

lucasvdh commented 4 years ago

@wlauvenberg is this the entire response that you get from http://192.168.1.18:1925/1/system ?

{
    "menulanguage": "Dutch",
    "name": "PHILIPS TV WK",
    "country": "Netherlands",
    "serialnumber_encrypted": "K2kseVsmQFgkd15gKkJ+auKHdtlei10XlUrmzvvKqgw=",
    "softwareversion_encrypted": "K2kseVsmQFgkd15gKkJ+aqCKXTYmH6lVxBPjS/ok9gL84V+2r6G1rP9iSaFqnwp8",
    "model_encrypted": "K2kseVsmQFgkd15gKkJ+aqKtb/+Cehh1vCMJCN1c8Rs=",
    "deviceid_encrypted": "K2kseVsmQFgkd15gKkJ+ajChDrDH1UwWpzLiZ/M1V4Q=",
    "nettvversion": "4.4.1",
    "epgsource": "broadcast"
}

If so, that might explain why the pairing fails.

It probably doesn't require pairing but the client tries to verify this by a "pairing_type" value which isn't present.

wlauvenberg commented 4 years ago

Yes, this is the only response.

{ "menulanguage": "Dutch", "name": "PHILIPS TV WK", "country": "Netherlands", "serialnumber_encrypted": "K2kseVsmQFgkd15gKkJ+auKHdtlei10XlUrmzvvKqgw=", "softwareversion_encrypted": "K2kseVsmQFgkd15gKkJ+aqCKXTYmH6lVxBPjS/ok9gL84V+2r6G1rP9iSaFqnwp8", "model_encrypted": "K2kseVsmQFgkd15gKkJ+aqKtb/+Cehh1vCMJCN1c8Rs=", "deviceid_encrypted": "K2kseVsmQFgkd15gKkJ+ajChDrDH1UwWpzLiZ/M1V4Q=", "nettvversion": "4.4.1", "epgsource": "broadcast" }

lucasvdh commented 1 year ago

Should be resolved in latest version.