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

sending command 'give device power status' failed (4) #2

Open
Bouni opened this issue May 1, 2019 · 0 comments
Open

sending command 'give device power status' failed (4) #2

Bouni opened this issue May 1, 2019 · 0 comments

Comments

@Bouni
Copy link

Bouni commented May 1, 2019

I've managed to build the binary (see #1) and it works partially, but I see several errors throughout the logs.

When I restart the application, everything seems to work just fine (kind of). I send a curl http://localhost:5000/device and the result is

{
   "Recording":{
      "OSDName":"cec.go\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
      "Vendor":"Pulse Eight",
      "LogicalAddress":1,
      "ActiveSource":false,
      "PowerStatus":"on",
      "PhysicalAddress":"2.0.0.0"
   },
   "TV":{
      "OSDName":"TV\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000",
      "Vendor":"Samsung",
      "LogicalAddress":0,
      "ActiveSource":false,
      "PowerStatus":"",
      "PhysicalAddress":"2.0.0.0"
   }
}

The PowerStatus of the TV is reported as "" and in the logs I see a lot of these:

08:56:33 command 'give device power status' timeout
08:56:33 << 10:8f
08:56:33 unhandled response received: opcode=8f initiator=e destination=0 response=0
08:56:33 command 'give device power status' timeout
08:56:33 TV (0): power status changed from 'standby' to 'unknown'
08:56:33 >> 0e:90:01
08:56:33 TV (0): power status changed from 'unknown' to 'standby'

It seems that the TV does not respond quick enough and therfore the application reports a timout!?

If I send a request for the power status I get the same result, but If I send another emediately after the first I get the correct power status:

$ curl http://localhost:5000/device/0/power
{"state":""}
$ curl http://localhost:5000/device/0/power
{"state":"standby"}

Any ideas where to search for the problem?

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

1 participant