-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Benq Projector] Serial Port will not connect. May be sending incorrect command #17996
Comments
Update: I am able to send power on and power off commands from the Serial binding. |
Could it be firmware dependent on what the power command should be ? |
Based on the add on docs on the binding page is references this https://esupportdownload.benq.com/esupport/Projector/Control%20Protocols/LX9215/LX9215_RS232%20Control%20Guide_0_Windows7_Windows8_WinXP.pdf That is what I'm using to control my th670. I don't see any other reference to the controls mentioned in the code of the binding. However i wonder if there is a different command set for usb or ip based? All of the commands are similair but all miss the * header and # trailer |
Thanks for taking a look! Ok so looks like the command part is ok. I changed the port speed on the projector from 115200 to 9600 as per the binding instruction and still shows offline. The Serial Port Binding works and shows online, and i can send on commands successfully from that channel: I am running Openhab 4.3.0 on windows 10 |
try running this command on the console to turn on logging of the serial port api and see if something else stands out: |
Scratch that, it does not print any debug information. I have modified the code to print out the raw responses from the projector. Download this jar and drop it in the You should see debug lines that start with response: and end with a '.' |
I loaded the Jar file.. but dont see any responses in the log 2024-12-30 22:54:23.587 [DEBUG] [nnector.BenqProjectorSerialConnector] - Open connection to serial port 'COM2' |
Ok im missing a step somewhere.. i removed the official binding.. then restarted.. added the jar.. created the thing.. and went into the console and am displaying the log.. i dont see any type or response 23:38:51.721 [DEBUG] [onnector.BenqProjectorSerialConnector] - Open connection to serial port 'COM2' openhab> |
org.openhab.binding.benqprojector | DEBUG |
If you run start.bat, the responses are visible in the console as soon as the polling runs even without viewing the logs (since they are printlns instead of logger calls): |
This is what i get as a response from the serial binding channel |
Thanks for the debug information. I think I figured out how to fix the issue for all variations of benq projectors. The response will now be processed after receipt of the second '#' character. I updated the jar link above with the new code. Try it out and see if the binding can connect now. |
Good to hear! I updated the jar again to make the off command repeat automatically. A PR was submitted to apply these changes to the official binding. |
Good Afternoon,
I was hooking up my BenQ Th670 projector via Rs-232 to usb to myserver
I cannot get it to register online.
I have it set to the correct COM port and set the baud rate to 9600 as per instructions.
When i connect via Putty to COM2 and send the command i get a response
I am sending *pow=?# in putty and get the power status from the projector.
I notice in the logs that it is sending pow=? and not *pow=?#
When i send just POW=? i get Illegal format from the terminal on the projector.
The text was updated successfully, but these errors were encountered: