I currently in developing a stand alone system of video projection, the system must starting up and shutdown alone everyday during one month, that is why I would like to send RS232 commands to the video projector, for start and shutdown it, via P5.
In this document, we can view all the RS232 commands for my video projector, but when I try to send it with P5, via a usb/serial adapter, nothing happend...
This is my P5 code:
import processing.serial.*;
Serial RS232;
void setup()
{
size(255,255);
RS232 = new Serial(this, "/dev/tty.usbserial", 115200);
RS232.bufferUntil(10);
}
void draw()
{
}
void keyPressed()
{
if (key == '1')
{
sendPowerOn();
println("Send power on message");
}
else if (key == '2')
{
sendPowerOff();
println("Send power off message");
}
}
void sendPowerOn()
{
RS232.write("<CR>*pow=on#<CR>");
}
void sendPowerOff()
{
RS232.write("<CR>*pow=off#<CR>");
}
Maybe the commands sent are not correctly formatted?
I using the KeystoneP5 and ControlP5 library for Processing,
When I draw ControlP5 object in the window and run the program in present mode, no problem, I can do what I want with controls and keystones.
When I want to draw ControlP5 object in a separate window ( control window build with controlP5), and run the program in present mode, I can't switch between the main window and my control window, it's normal because the present mode must do it...
I have tried to do this by the fullscree API for Processing but it don't works with OpenGL and crash KeystoneP5...
Processing don't find the class,
perhaps thatlibraries are notinstalled correctly?
Someone can help me to solve this, or have an other solution at my problem: make the main window in fullscreen and keep control to display other windows.
I have recently discovery the library project
Artnet4J.
I'm very interested by this, to get Artnet values in Processing, but this project is also in pre-alpha stage.
Sources are available in the project site, but I don't know how I can install this in Processing.
Does anyone have solution, tutorial, or anything that can help me to do this?
I would like to know how I can get the position of a control window built-in with the contolP5 library
I want to get this for xml record and restore the window in the same place on the next restart...