bezmi / jvc_projector

Python library to control JVC projectors
MIT License
16 stars 10 forks source link

power on command timing #3

Closed chuba2 closed 2 years ago

chuba2 commented 4 years ago

Hi,

I tried your code with JVC DLA-X30B.

All worked accept the Power On command. After some debugging, I inserted 1 second delay after sending the power on command and I had to send 3 of these in a row from my script. WIth that, all finally worked. I have 4 separate scripts that work on the same code that you provide + my delay after the sendall command of 1 second. The 3 scripts of power off, status, and model inquiry work as is. The power on command works only if I send it 3 times in a row. I would hope to figure out what the timing issue is but may need your help.

bezmi commented 4 years ago

I've got around to this a little late, so apologies for that. So I have similar problems with timing on my X5900, where it takes 600-700ms before a command is accepted by the projector. Some commands seem to have a smaller delay than others, so it might just be that you need to wait a little longer for the power on command. Have you tried increasing the delay for the power on command?

bezmi commented 2 years ago

There is now a global delay setting for the __init__ function.