Epson projector TCP/IP control?

If you have a question or need help, this is the place to be.
Post Reply
kkl
Experienced User
Posts: 312
Joined: Wed May 04, 2011 9:32 pm

Epson projector TCP/IP control?

Post by kkl » Sat Nov 30, 2019 7:14 pm

I have an Epson 5040UB projector that I would like to control via TCP/IP commands. I've verified that it works with the Hercules SETUP utility. After connecting to the projector via <ip address>:3629, you must first send a the string ESC/VP.net<DLE><ETX><NUL><NUL><NUL><NUL> (HEX = 45 53 43 2F 56 50 2E 6E 65 74 10 03 00 00 00 00) to get it into the mode that will accept other commands, for example PWR? <CR><LF> (HEX = 50 57 52 3f 0d). Is there an existing EG plug-in that will allow me to do this, or must it be done through Python? Thanks for any help.
Hercules.JPG

kkl
Experienced User
Posts: 312
Joined: Wed May 04, 2011 9:32 pm

Re: Epson projector TCP/IP control?

Post by kkl » Sun Dec 01, 2019 5:48 pm

Getting no help here, I kludged together some basic code which appears to function:
Socket.JPG

User avatar
kgschlosser
Site Admin
Posts: 5028
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Epson projector TCP/IP control?

Post by kgschlosser » Mon Dec 02, 2019 8:13 am

I have the 5030UB I think. It does not have the TCP connection ability so I am not able to help in terms of testing directly.

But what we can do is some simple things

Code: Select all


YOUR_IP_ADDRESS = "192.168.1.1"
import socket

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((YOUR_IP_ADDRESS, 3629))
sock.send("\x45\x53\x43\x2F\x56\x50\x2E\x6E\x65\x74\x10\x03\x00\x00\x00\x00")
sock.send("PWR?\r\n")
answer = sock.recv(1024)
print repr(answer)
sock.close()
give that a try and see if you get any response from the thing.

I am not sure if there needs to be a carriage return and a new line added to the first send or not. if there needs to be one add "\r\n" to the end
If you like the work I have been doing then feel free to Image

kkl
Experienced User
Posts: 312
Joined: Wed May 04, 2011 9:32 pm

Re: Epson projector TCP/IP control?

Post by kkl » Wed Dec 04, 2019 12:54 am

Thanks for your help kgschlosser. Your code appears to be very similar to what I used. It does appear to work. However, it only returned a result for the first sock.send command, 'ESC/VP.net\x10\x03\x00\x00 \x00', so I added a second instance of retrieving the 'answer':

Code: Select all

YOUR_IP_ADDRESS = "10.10.2.78"
import socket

sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect((YOUR_IP_ADDRESS, 3629))
sock.send("\x45\x53\x43\x2F\x56\x50\x2E\x6E\x65\x74\x10\x03\x00\x00\x00\x00")
answer = sock.recv(1024)
print repr(answer)
sock.send("PWR?\r\n")
answer = sock.recv(1024)
print repr(answer)
sock.close()
That returns a result for both commands:
'ESC/VP.net\x10\x03\x00\x00 \x00'
'PWR=04\r:'

What I have is sufficient for my needs. For some reason, the Epson commands for current projectors are hard to come by. I contacted Epson and they sent me a newer spreadsheet which has the commands for the 5040UB. It is attached for others that may be interested.
Attachments
escvp21b_20180827.zip
(1.62 MiB) Downloaded 8 times

User avatar
kgschlosser
Site Admin
Posts: 5028
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Epson projector TCP/IP control?

Post by kgschlosser » Wed Dec 04, 2019 3:25 am

Oh sweet.... I can slam that into a plugin really quick... The API for Epson is really easy. I also think that the serial API and the TCP API are almost identical.
If you like the work I have been doing then feel free to Image

kkl
Experienced User
Posts: 312
Joined: Wed May 04, 2011 9:32 pm

Re: Epson projector TCP/IP control?

Post by kkl » Wed Dec 04, 2019 5:03 am

That'd be great. I'll be happy to test the TCP commands. I only went this route because I couldn't get serial to work. I had it working with my Panasonic projector, but that was somewhat blind luck. I couldn't get serial working with the Epson and had no way to troubleshoot other than randomly trying different RS-232C hardware and various commands. I think I'm going to like TCP better because my PC has a habit of changing COM ports whenever it feels like it.

User avatar
kgschlosser
Site Admin
Posts: 5028
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Epson projector TCP/IP control?

Post by kgschlosser » Wed Dec 04, 2019 6:34 pm

this is the number one mistake that is made when dealing with serial connections..

the projector uses RS232.. if you purchase a "usb to rs232 adapter" in most cases it is not a usb to rs232. what it actually is is a usb to ttl serial.

rs232 specification is +- 12v and has a sensitivity range of +- 6v so that means the absolute minimum voltage that rs232 will run on is += 6v

usb only has the capability to be +- 5 volt that is outside of the range of rs232. so it will not work. in very rare occasions the manufacturer of the device may have designed the rs232 outside of specification..

The reason why devices are made with rs232 and not ttl is because of distance. rs232 is able to be transmitted over a much greater distance then ttl.. ttl will have a maximum of something like 10 feet where rs232 is something like 50 feet. in the world of AV and automation 10 feet is almost use less. that is why they still use rs232. and then you also throw in noise, ttl is way more sensitive to EMI then rs232 is because of the sensitivity range being far less then rs232.

so if you were trying to connect to the projector using an FTDI usb to serial adapter it is not going to work reliably if at all.

TTL adapters also come in 2 variants a 3.3 volt and a 5.0v. some have a switch on them to select the voltage. this is also going to make a difference.
You also need to be careful because a budget TTL adapter may not have voltage protection on the serial lines. what that means is that RS232 being at 12V can cook the TTL chip
If you like the work I have been doing then feel free to Image

kkl
Experienced User
Posts: 312
Joined: Wed May 04, 2011 9:32 pm

Re: Epson projector TCP/IP control?

Post by kkl » Fri Dec 06, 2019 8:03 pm

That probably explains my uneven results.

User avatar
kgschlosser
Site Admin
Posts: 5028
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Epson projector TCP/IP control?

Post by kgschlosser » Fri Dec 06, 2019 11:01 pm

the shitty thing is the problem is the manufacturers of the TTL adapters calling them RS232 adapters when they really are not. There is also some confusion on behalf of the users and thinking that serial is serial when that is not the case..

Take for instance RS485. It is also a serial specification. it also uses 12V. it cannot however work with RS232 even tho it is still serial communications.

TTL is identical in every respect to RS232 except for the voltage. and depending on the devices it may still work it all depends on how strict to the protocol spec the manufacturers stayed. as an example the RX line should be -12v +-6vto be read as a 0 and +12V +-6v to be read as a 1. if the manufacturer simply see a - and counts that as a 0 and sees a + and counts that as a 1 then using a TTL adapter on the other end will work. But if the manufacturer "reads" the input voltage and has logic that check to see if it is within the 0 and 1 range (-18v - -6v, +6v - +18v) it will not work..
So it really is a crap shoot.

Now you can purchase a MAX232 that will "step up/down" the voltage to the needed input and output voltages. They are not expensive and are fairly easy to wire into the serial line. You will have to supply power to it for it to work. It is not a plug in option. there may be one available. I do know they make rs232 range extenders and this might be able to be used as well depending on it's voltage sensitivity.
If you like the work I have been doing then feel free to Image

User avatar
kgschlosser
Site Admin
Posts: 5028
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Epson projector TCP/IP control?

Post by kgschlosser » Fri Dec 06, 2019 11:09 pm

here is a converter.. it's a whole 1.89 USD

https://www.amazon.com/MAX3232-Serial-C ... B00RVC7N46
If you like the work I have been doing then feel free to Image

Post Reply