Page 1 of 1

PJLink command

Posted: Thu Sep 13, 2018 2:31 pm
by STibor
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

Re: PJLink command

Posted: Fri Sep 14, 2018 2:50 pm
by Benj
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.

Re: PJLink command

Posted: Fri Sep 14, 2018 2:58 pm
by Benj
Hmm maybe you did have things right already, here is an example from our Internet solution.
RECV_HTML_01.fcfx
(20.2 KiB) Downloaded 257 times
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 :wink:

Re: PJLink command

Posted: Fri Sep 14, 2018 5:02 pm
by STibor
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/