NEC projector control
Hi!
I need to be able to turn some NEC projectors on and off from MAX, (Projectors shouldn't be unplugged without cooling the lamp) but I'm unsure how it works, and the projectors is in another place, so it would be great to bypass a lot of testing if possible.
I've connected the projectors through LAN, and they all have their own IP, and they have been successfully turned on and off through the network (just not from MAX)
The code I need to send is 02H 00H 00H 00H 00H 02H through TCP port 7142.
Ref page 10: http://images10.newegg.com/User-Manual/User_Manual_24-002-824.pdf
Now I guess that if you type in this code in a message box like this:
{
"patcher" : {
"fileversion" : 1,
"appversion" : {
"major" : 6,
"minor" : 1,
"revision" : 6,
"architecture" : "x86"
}
,
"rect" : [ 2313.0, 256.0, 640.0, 480.0 ],
"bglocked" : 0,
"openinpresentation" : 0,
"default_fontsize" : 12.0,
"default_fontface" : 0,
"default_fontname" : "Arial",
"gridonopen" : 0,
"gridsize" : [ 15.0, 15.0 ],
"gridsnaponopen" : 0,
"statusbarvisible" : 2,
"toolbarvisible" : 1,
"boxanimatetime" : 200,
"imprint" : 0,
"enablehscroll" : 1,
"enablevscroll" : 1,
"devicewidth" : 0.0,
"description" : "",
"digest" : "",
"tags" : "",
"boxes" : [ {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-6",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 102.0, 239.0, 169.0, 18.0 ]
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-4",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 2,
"outlettype" : [ "", "" ],
"patching_rect" : [ 102.0, 197.0, 161.0, 20.0 ],
"text" : "mxj net.tcp.recv @port 7142"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-3",
"maxclass" : "newobj",
"numinlets" : 1,
"numoutlets" : 4,
"outlettype" : [ "", "", "", "" ],
"patching_rect" : [ 102.0, 128.0, 276.0, 20.0 ],
"text" : "mxj net.tcp.send @port 7142 @address 127.0.0.1"
}
}
, {
"box" : {
"fontname" : "Arial",
"fontsize" : 12.0,
"id" : "obj-2",
"maxclass" : "message",
"numinlets" : 2,
"numoutlets" : 1,
"outlettype" : [ "" ],
"patching_rect" : [ 102.0, 92.0, 159.0, 18.0 ],
"text" : "02H 00H 00H 00H 00H 02H"
}
}
],
"lines" : [ {
"patchline" : {
"destination" : [ "obj-3", 0 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-2", 0 ]
}
}
, {
"patchline" : {
"destination" : [ "obj-6", 1 ],
"disabled" : 0,
"hidden" : 0,
"source" : [ "obj-4", 0 ]
}
}
],
"dependency_cache" : [ ]
}
}
It probably wont work because the numbers needs to be converted to something like hex or ASCII or something ish like that? I'm not too familiar with how these stuff works, would be great if someone could help out here =)
Thanks!
02h is probably 02, and 00H is 0.
So your message is 2 0 0 0 0 2 (sorry, I don't have time to check the pdf)
In a Max message box, you can type hex values like this: 0x1a. Try and you will see what happen: 0x1a will be replaced by 26 (which is the decimal representation for 1a).
Max will considere 02H as a symbol, not a number.
Ah I see! So the H in 02H and 00H is probably just stating that this is a hex? But if I route it through an atoi object, I get 48 50 72 32 48 48... Which doesn't make any sense. Seems like I don't understand the difference between Hex, Dec, Int, UTF-8 and ASCII? Please enlighten me =)
hello! I'm having the same issue with the same projector, did you managed to make it work?
anyone has suggestions? I have the same strings and I can't figure out how to send them to the projector..
thanks!