Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Python library to control BenQ projectors over the serial or network interface including serial to bridges like esp-link.
BenQ projectors and flat panels with a serial port can support one of three protocols. This plugin supports projectors which are of the L, P, T, W and X series but probably also others.
This Python library works if your projector supports the following command structure:
<CR>*<key>=<value>#<CR>
Where <CR>
is a Carriage Return
Examples:
Power on : <CR>*pow=on#<CR>
Power off : <CR>*pow=off#<CR>
Change source to HDMI: <CR>*sour=hdmi#<CR>
This library does not implement the PJLink protocol, but a proparitary BenQ protocol instead. The PJLink protocol is covered by other libraries.
I'm using a generic serial to USB converter to connect to my projector. The projector has a male DB9 connector, thus you need a female conector on your USB converter.
You can lookup and change the baud rate in the menu of your BenQ projector.
The commands as described above also work over a network connection. Although I don't own such projector I have implemented the network functionality using a serial to WiFi bridge. The network support for integrated networked BenQ projectors is thus experimental. Let me know if your network connected BenQ projector works.
Example of a serial to WiFi bridge using a serial to TTL converter and a Wemos C3 Mini:
It has to be said that a direct serial connection to the projector is much more responsive than using a serial to WiFi bridge. Maybe this is different on an integrated networked BenQ projector or using ethernet instead of WiFi.
The following projectors are known to work:
The following projectors are not tested but use the same protocol according to the documentation:
Others in the L, P, T, W and X Series
Not supported:
Some projectors need to be on to be able to detect the model and the library to work.
Please let me know if your projector is also supported by this Python library so I can improve the overview of supported projectors.
To install the Python BenQ projector library use the Python package manager PIP:
pip3 install benqprojector
benqprojector
CLIYou can use the Python BenQ projector library directly from the command line to turn on and off your projector using the following syntax:
Status of the projector: python3 -m benqprojector serial <serial port> <baud> status
Turn on the projector: python3 -m benqprojector serial <serial port> <baud> on
Turn off the projector: python3 -m benqprojector serial <serial port> <baud> off
Monitor the projector status: python3 -m benqprojector serial <serial port> <baud> monitor
Where <serial port>
is the serial port your projector is connected to and <baud>
the baud rate
of the projector.
Or if your projector is connected using a serial to network bridge:
Status of the projector: python3 -m benqprojector telnet <host> <port> status
Turn on the projector: python3 -m benqprojector telnet <host> <port> on
Turn off the projector: python3 -m benqprojector telnet <host> <port> off
Monitor the projector status: python3 -m benqprojector telnet <host> <port> monitor
Where <host>
is the hostname or IP address of the projector and <port>
the optional port number
of the projector. If no port number is given the default port number 8000 is used.
The benqprojector CLI can detect the commands, sources and modes your projector supports. If you like to have your projector fully supported by this Python library please run this command and create an issue on Github with the output attached.
To examine your projector capabilities:
python3 -m benqprojector serial <serial port> <baud> examine
Your projector needs to be on and on an active source to be able to detect all your projector capabilities.
You can add the --debug
flag to any CLI command to get more details on what's going on. Like so:
python3 -m benqprojector serial <serial port> <baud> status --debug
Do you enjoy using this Python library? Then consider supporting my work using one of the following platforms, your donation is greatly appreciated and keeps me motivated:
If you're in need for a freelance Python developer for your project please contact me, you can find my email address on my GitHub profile.
FAQs
Library to control BenQ projectors.
We found that benqprojector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.