Hello,
I want to turn off Benq projectors via Ethernet.
The Benq projectors use a PJLink protocol. The projector is set as the server and the CONTROLLER as the client.
The message looks like this:
Message:"%1POWR 0\r"
Port:4352
IP:192.168.88.249
The hardware is W5100Ethernet shield + Arduino Mega. I upload the program that does not work.
PJLink spec: https://pjlink.jbmia.or.jp/english/data ... nk_5-1.pdf
PJLink command
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PJLink command
Hello,
Instead of calling CreateTCPSocket and SetDestination have you tried calling TCPConnect instead? Also probably need a TCPClose at the end of the program before the loop to close the socket.
Instead of calling CreateTCPSocket and SetDestination have you tried calling TCPConnect instead? Also probably need a TCPClose at the end of the program before the loop to close the socket.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: PJLink command
Hmm maybe you did have things right already, here is an example from our Internet solution.
Edit: No sorry I looked again and it does also use the TCPConnect macro.
The TCPConnect uses port 80 which makes sense as it is requesting a web page.
The CreateTCPSocket uses a random port number?
I'm a bit rusty on all of this, think I need to buy the solution and have a good read of the manual
Edit: No sorry I looked again and it does also use the TCPConnect macro.
The TCPConnect uses port 80 which makes sense as it is requesting a web page.
The CreateTCPSocket uses a random port number?
I'm a bit rusty on all of this, think I need to buy the solution and have a good read of the manual
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- STibor
- Posts: 263
- Joined: Fri Dec 16, 2011 3:20 pm
- Has thanked: 116 times
- Been thanked: 113 times
- Contact:
Re: PJLink command
Hello!
Thanks for the help.
I'm telling you I do not understand the TCP protocol.
The projector has a fixed IP address and a fixed port number.
The default PJLink port is 4352. This can be modified online.
I downloaded a free "Packet Sender" that works with shutdown.
I just set the IP address and the port number, enter the command and send it.
I do not know how to implement this in Flowcode.
Packet Sender:https://packetsender.com/
Thanks for the help.
I'm telling you I do not understand the TCP protocol.
The projector has a fixed IP address and a fixed port number.
The default PJLink port is 4352. This can be modified online.
I downloaded a free "Packet Sender" that works with shutdown.
I just set the IP address and the port number, enter the command and send it.
I do not know how to implement this in Flowcode.
Packet Sender:https://packetsender.com/
- Attachments
-
- packet sender.PNG
- (179.34 KiB) Downloaded 1371 times