You are not logged in.

#1 2018-02-04 08:27:05

tnpshow
Member
Registered: 2018-02-04
Posts: 4

Projector Control via USB (binary)

Hi everyone,
I am trying to get projector control working with my Dell 2400MP and I think I need the 'binary' option as the Dell user manual shows all commands as hexadecimal bytes.

For example, it says that 'Projector on is:  0xbe, 0xef, 0x10, 0x05, 0x00, 0xc6, 0xff, 0x11, 0x11, 0x01, 0x00, 0x01'

My question is, how do I type this command in the browser window? Do I need to convert the Hex bytes beforehand?

Are there any examples as to how I would do this?
Thanks!
TnP

Offline

#2 2018-02-05 01:32:29

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Projector Control via USB (binary)

Hi,

You can use following format on gcode boxes.
\0xbe\0xef\0x10

Offline

#3 2018-02-05 09:34:24

tnpshow
Member
Registered: 2018-02-04
Posts: 4

Re: Projector Control via USB (binary)

Awesome - I didn't think to use the same as G-code boxes because I'm using direct control rather than RAMPS.
Thanks!

Offline

#4 2018-02-24 06:14:46

Kaveh
Member
Registered: 2018-01-23
Posts: 23

Re: Projector Control via USB (binary)

Hello dear Shahin

I use UV projector sm7-405 and I want to control it with command through serial port.
I set serialPort address , baud and commands correctly but it not work.
Please Help me.
thanks

(command for turn it on: 0xe0 0x05 0x41 0x18 0x01 =>> \0xe0\0x05\0x41\0x18\0x01
command for turn it off: 0xe0 0x05 0x41 0x18 0x00 =>> \0xe0\0x05\0x41\0x18\0x00)

Offline

#5 2018-02-24 22:12:32

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Projector Control via USB (binary)

Make sure you put communication mode in binary.

Offline

#6 2018-02-24 23:16:26

tnpshow
Member
Registered: 2018-02-04
Posts: 4

Re: Projector Control via USB (binary)

Try removing the 0 before the x for example: \xe0\x05\x41\x18\x01

It worked for me smile

Offline

#7 2018-02-24 23:25:52

Kaveh
Member
Registered: 2018-01-23
Posts: 23

Re: Projector Control via USB (binary)

Hi dear tnpshow

thank you very much.
it worked ♥♥♥♥

Last edited by Kaveh (2018-02-24 23:32:46)

Offline

#8 2018-02-24 23:39:08

Kaveh
Member
Registered: 2018-01-23
Posts: 23

Re: Projector Control via USB (binary)

Hi dear Shahin

the problem was solved by tnpshow guidance
thanks a lot for your reply
smile smile smile

Offline

#9 2018-02-25 02:12:38

tnpshow
Member
Registered: 2018-02-04
Posts: 4

Re: Projector Control via USB (binary)

You're welcome Kaveh - I'm glad it helped smile

Offline

#10 2018-04-17 08:55:57

Rocky
Member
Registered: 2018-04-09
Posts: 21

Re: Projector Control via USB (binary)

Hey Shahin, I'm using si-cube sm9-405 UV projector which uses USB communication (Instead of serial communication) with hex commands.
Any idea if this is supported by NanoDLP? or if any work around could get me to turn the projector on/off through NanpDLP interface?

Offline

#11 2018-04-17 09:45:10

Kaveh
Member
Registered: 2018-01-23
Posts: 23

Re: Projector Control via USB (binary)

Hi rocky
I use a model SM7-405 but I think My projector's commands work for yours
test this commands:
For turn it on:\xe0\x05\x41\x18\x01
For turn off:\xe0\x05\x41\x18\x00

also I put its document below:
PC_and_Projector_serial_communication_protocol_1.1.pdf

good luck (I wait for your test result).

Last edited by Kaveh (2018-04-17 10:07:08)

Offline

#12 2018-04-17 10:12:52

Rocky
Member
Registered: 2018-04-09
Posts: 21

Re: Projector Control via USB (binary)

Thanks Kaveh,
But I already have an SM7-405 and it's working fine with NanoDLP. The SM9 offers different communication protocol, si-cube sent me this document:
USB Communication Protocol V1

Offline

#13 2018-04-17 10:17:51

Kaveh
Member
Registered: 2018-01-23
Posts: 23

Re: Projector Control via USB (binary)

Your welcome Rocky.
I will read the document you sent and we will consult together to solve this issue.

Last edited by Kaveh (2018-04-17 12:00:25)

Offline

#14 2018-04-19 00:36:10

haipham
Member
Registered: 2017-05-05
Posts: 20

Re: Projector Control via USB (binary)

Kaveh wrote:

Your welcome Rocky.
I will read the document you sent and we will consult together to solve this issue.

How is the result

Offline

#15 2018-04-19 04:05:54

Kaveh
Member
Registered: 2018-01-23
Posts: 23

Re: Projector Control via USB (binary)

haipham wrote:
Kaveh wrote:

Your welcome Rocky.
I will read the document you sent and we will consult together to solve this issue.

How is the result

Hi friend.
It is very simple
For turn LED on: \x02\x02\x01
For turn off it: \x02\x02\x02

For power on: \x02\x03\x01
For power off: \x02\x03\x02

But I don't understand how set brightness. I will search and tell you its result (I think, this is related to the projector current, but I don't understand how set its  value)

Offline

#16 2018-04-19 07:50:04

Rocky
Member
Registered: 2018-04-09
Posts: 21

Re: Projector Control via USB (binary)

I know that the commands are already written there, but the communication isn't serial, meaning; I cannot set the port in NanoDLP. When I plug the projector and execute

lsusb

it's shown but when I execute

ls -l /dev/tty*

or

ls -l dev/ttyUSB*

it doesn't show. After some time trying to figure out where is it being identified, I could find it under

/dev/usb/lp0

which NanoDLP gave an error reading the port.
So I'm not sure if I have to write the driver by myself and execute the program in NanoDLP, or if NanoDLP can support USB communication as well as Serial communication.

Note that I'm using the Raspbian image of NanoDLP.

Offline

#17 2018-04-19 08:20:28

Kaveh
Member
Registered: 2018-01-23
Posts: 23

Re: Projector Control via USB (binary)

Rocky wrote:

I know that the commands are already written there, but the communication isn't serial, meaning; I cannot set the port in NanoDLP. When I plug the projector and execute

lsusb

it's shown but when I execute

ls -l /dev/tty*

or

ls -l dev/ttyUSB*

it doesn't show. After some time trying to figure out where is it being identified, I could find it under

/dev/usb/lp0

which NanoDLP gave an error reading the port.
So I'm not sure if I have to write the driver by myself and execute the program in NanoDLP, or if NanoDLP can support USB communication as well as Serial communication.

Note that I'm using the Raspbian image of NanoDLP.

Hi
Please do this task respectively:
1- Unplug the projector and then turn your machine(raspberry pi or PC) on
2- write this command(that you said above): ls /dev/tty*
3- send to me a capture from command's result
4- plug the projector and write that command again and take a capture again from result.

Offline

#18 2018-04-19 16:00:58

Rocky
Member
Registered: 2018-04-09
Posts: 21

Re: Projector Control via USB (binary)

Yup, the below command is executed with the projector unplugged from the RPI
hFgQz4X.png

And this one is with the projector plugged to the RPI
JwM2k13.png

Note that the projector does show when I type lsusb as the images below show, the command executed before and after connecting the projector
MvXxuSi.png
It shows as "Keil Software, Inc."
1iaVpUp.png

executing ls -l /dev/usb/lp0 shows the projector instead of being listed under serial connection (ttyUSB*)
6daufsL.png

Offline

#19 2018-05-04 08:29:58

haipham
Member
Registered: 2017-05-05
Posts: 20

Re: Projector Control via USB (binary)

Rocky wrote:

Yup, the below command is executed with the projector unplugged from the RPI
https://i.imgur.com/hFgQz4X.png

And this one is with the projector plugged to the RPI
https://i.imgur.com/JwM2k13.png

Note that the projector does show when I type lsusb as the images below show, the command executed before and after connecting the projector
https://i.imgur.com/MvXxuSi.png
It shows as "Keil Software, Inc."
https://i.imgur.com/1iaVpUp.png

executing ls -l /dev/usb/lp0 shows the projector instead of being listed under serial connection (ttyUSB*)
https://i.imgur.com/6daufsL.png

does it solve?

Offline

#20 2018-05-09 09:24:15

Rocky
Member
Registered: 2018-04-09
Posts: 21

Re: Projector Control via USB (binary)

haipham wrote:
Rocky wrote:

Yup, the below command is executed with the projector unplugged from the RPI
https://i.imgur.com/hFgQz4X.png

And this one is with the projector plugged to the RPI
https://i.imgur.com/JwM2k13.png

Note that the projector does show when I type lsusb as the images below show, the command executed before and after connecting the projector
https://i.imgur.com/MvXxuSi.png
It shows as "Keil Software, Inc."
https://i.imgur.com/1iaVpUp.png

executing ls -l /dev/usb/lp0 shows the projector instead of being listed under serial connection (ttyUSB*)
https://i.imgur.com/6daufsL.png

does it solve?

Nope, I was just showing what I'm getting from the projector.
We solved this issue by designing a very small PCB connected to the projector and RPI, where I'm calling an external syscall to a program that sets RPI pins high or low accordingly.
Although it would be really nice if this can be achieved using NanpDLP only

Last edited by Rocky (2018-05-09 09:25:15)

Offline

#21 2019-10-25 20:27:43

F.m
Member
Registered: 2017-12-22
Posts: 147

Re: Projector Control via USB (binary)

i have same problem with young optics NVM light engine. lsusb shows the usb is connected but the tty* node is not created. any progress happened?

Offline

#22 2020-06-23 16:39:39

tomres
Member
Registered: 2020-06-23
Posts: 9

Re: Projector Control via USB (binary)

Has anyone found a working solution for the SM9-405 light engines? It would be great to have control over these directly through USB

Offline

#23 2020-12-10 19:22:36

fran42
Member
Registered: 2020-11-16
Posts: 70

Re: Projector Control via USB (binary)

Hi,

I am having a similar problem.

I was using an older version of nanodlp in a raspberry 2 and it worked correctly.
Then, with the same UV light projector, I bought the new raspberry 4 and download the newest nanodlp.

Now, I cannot connect my projector to nanodlp due to the problem explained above, the raspberry recognizes the projector but not as a serial USB connection, so I cannot send orders to the projector.
I get /usb and /hidraw0 nodes, instead of getting /ttyUSB0 node.

Would accept any help, anyone solved the problem?

Offline

#24 2020-12-11 08:02:08

Shahin
Administrator
Registered: 2016-02-17
Posts: 3,546

Re: Projector Control via USB (binary)

I guess by searching raspberry pi threads on the pi website you can find the workaround.

It is not important to have it as /dev/tty*, any other address that allocated also should work.

Offline

#25 2020-12-14 14:42:34

fran42
Member
Registered: 2020-11-16
Posts: 70

Re: Projector Control via USB (binary)

In case i have the option of /usb or /hidraw0 which one do you think it is?

Also which communication type do you think I need?

Offline

Board footer

Powered by FluxBB