PJLink command

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 7.

Moderator: Benj

Post Reply
User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

PJLink command

Post 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
Attachments
tcp_pjlink_test.fcfx
(18.06 KiB) Downloaded 242 times

User avatar
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

Post 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.

User avatar
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

Post 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 253 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:

User avatar
STibor
Posts: 263
Joined: Fri Dec 16, 2011 3:20 pm
Has thanked: 116 times
Been thanked: 113 times
Contact:

Re: PJLink command

Post 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/
Attachments
packet sender.PNG
(179.34 KiB) Downloaded 1371 times

Post Reply