rrooggiieerr / homeassistant-benqprojector

Home Assistant integration for BenQ projectors over the serial (and network?) interface.
Apache License 2.0
27 stars 3 forks source link

BenQ TK810 Turns on and then changes to unavailable #18

Closed davemenkehorst closed 3 weeks ago

davemenkehorst commented 1 month ago

So i bought a USB to Serial convertor and did a pass trough from proxmox. The integration loads an i can turn on my projector! After 10 seconds, the integration crashed. After multiple attempts, i can re-add the integration(after a lot of failures) and can successfully turn it on.

Deze fout is ontstaan door een aangepaste integratie.

Logger: benqprojector.benqprojector Bron: custom_components/benqprojector/config_flow.py:156 integratie: BenQ Projector (documentatie, problemen) Eerst voorgekomen: 17:29:43 (6 gebeurtenissen) Laatst gelogd: 17:31:33

Failed to get projector command prompt, is your projector properly connected? Unexpected response: b'S' Unexpected response: b'\x93'

Then if i successfully add the projector:

Logger: benqprojector.benqprojector Bron: runner.py:189 Eerst voorgekomen: 17:33:18 (16 gebeurtenissen) Laatst gelogd: 17:33:55

Command pp=?# illegal format Command ltim2=?# illegal format

and

Deze fout is ontstaan door een aangepaste integratie.

Logger: benqprojector.benqprojector Bron: custom_components/benqprojector/init.py:235 integratie: BenQ Projector (documentatie, problemen) Eerst voorgekomen: 17:33:18 (1 gebeurtenissen) Laatst gelogd: 17:33:18

Command *macaddr=?# illegal format

Is the integration failing because of the unsupported commands? (like Read Mac Address *macaddr=?#)

I'm using the TK810. So i'm refering to this PDF

https://esupportdownload.benq.com/esupport/PROJECTOR/Control%20Protocols/TK810/TK810_RS232%20Control%20Guide_0_Windows10_Windows7_Windows8.pdf

Log 1: home-assistant_benqprojector_2024-09-21T15-41-21.394Z.log

Log 2: home-assistant_benqprojector_2024-09-21T15-46-40.210Z.log

Log 3: [Uploading home-assistant_benqprojector_2024-09-21T15-58-21.211Z.log…]()

And after a period of time i get this in CLI

Scherm­afbeelding 2024-09-21 om 18 29 52
rrooggiieerr commented 1 month ago

Hi @davemenkehorst, the integration is not failing due to failing commands. My suspicion is that the speed of the serial connection is to high. You can change the speed in the menu of your projector and then select the same speed when installing the integration

davemenkehorst commented 1 month ago

IMG_0837

Hi @davemenkehorst, the integration is not failing due to failing commands. My suspicion is that the speed of the serial connection is to high. You can change the speed in the menu of your projector and then select the same speed when installing the integration

I’m running at 9600 (from the tk810 manual). Which speed do you recommend?

rrooggiieerr commented 1 month ago

9600 is actually quite slow. But if it can't be changed than there's nothing we can do there. I don't use virtualisation myself, so you're on your own regarding pass trough etc.

Maybe you can try the latest code from GitHub, there are some changes which have not yet been released in a version.

in Developer tools > Actions do the following:

action: update.install
target:
  entity_id: update.benq_projector_update
data:
  version: master
davemenkehorst commented 1 month ago

9600 is actually quite slow. But if it can't be changed than there's nothing we can do there. I don't use virtualisation myself, so you're on your own regarding pass trough etc.

Maybe you can try the latest code from GitHub, there are some changes which have not yet been released in a version.

in Developer tools > Actions do the following:

action: update.install
target:
  entity_id: update.benq_projector_update
data:
  version: master

The update didn't fix it, unfortunately. Trying to find information about the Wifi to rs232 bridge but information is old and can't find any useful tutorial. Is a generic guide like this compatible with this integration? Or any more info about your example esp32 on the github page?

or can u use the ser2net protocol?

davemenkehorst commented 1 month ago

I made a test with a band new raspberry pi and the USB to RS232 cable. Home assistant bare metal. Exactly the same problem. It turns on and thats it

I bought you a coffee btw

rrooggiieerr commented 1 month ago

Thanks for the coffee.

For the RS232 WiFi bridge you can have a look at ESP-link

You could try to enable debug logging and post the results.

You can also try to run the benqprojector CLI in debug mode and post the results.

I'm traveling for the next two weeks so am replying to you from my hotel room while I'm having a vacation btw

rrooggiieerr commented 1 month ago

@davemenkehorst, did my recommendations have any results?

davemenkehorst commented 1 month ago

unfortunately the projector does not work via a local serial port either. it turns on and then there is no contact with it anymoreOp 7 okt 2024 om 13:10 heeft rrooggiieerr @.***> het volgende geschreven: @davemenkehorst, did my recommendations have any results?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

rrooggiieerr commented 1 month ago

If it turns on using the BenQ Projector integration than there should be at least some contact. The log file should give some details, especially when debugging enabled.

If the serial port really doesn't work than that's a hardware problem and I can't be of any help

rrooggiieerr commented 3 weeks ago

Any progress on getting debug logging from the integration?

davemenkehorst commented 3 weeks ago

If it turns on using the BenQ Projector integration than there should be at least some contact. The log file should give some details, especially when debugging enabled.

If the serial port really doesn't work than that's a hardware problem and I can't be of any help

If i use my projector directly to a windows PC, it turns on(same as your intergration), after that the projector doesn't respond anymore. So i think that has to work first

rrooggiieerr commented 3 weeks ago

If i use my projector directly to a windows PC, it turns on

Is that turning on using a command over the serial cable, or does it turn on due to a HDMI CEC command?

rrooggiieerr commented 3 weeks ago

Ok, I'm closing this issue, if you figured out the connection to your projector feel free to create a new issue if you run into problems