Hello! I've tried searching for this for the past 24 hours with no luck...
I'm working on a project involving a large number of LEDs (around 4000) and so acquired two Teensy 3.2 and two OctoWS2811 adapters. I'm at the point where I want to test the interfacing with Processing so that I can adapt it to my project... but whenever I run movie2serial.pde and VideoDisplay.ino, the serial communication between Processing and the Teensy always fails with the message:
I'm using the default code in both sketches, simply changing the number of LEDs and the name of the serial port. I'm on a Mac running the latest High Sierra. The LEDs work with the OctoWS2811 examples that don't involve Processing.
I tested the serial communication with a simple sketch in both Processing and on the Teensy that lights up the on-board LED whenever I mouse is pressed in Processing, and it works flawlessly. So somehow, when movie2serial is running this function, the Teensy is not receiving the output and/or not sending back the correct response:
I'm completely lost as to what I could be doing differently. Thanks!
-Nour
I'm working on a project involving a large number of LEDs (around 4000) and so acquired two Teensy 3.2 and two OctoWS2811 adapters. I'm at the point where I want to test the interfacing with Processing so that I can adapt it to my project... but whenever I run movie2serial.pde and VideoDisplay.ino, the serial communication between Processing and the Teensy always fails with the message:
Code:
Serial port /dev/cu.usbmodem3973051 is not responding.
Is it really a Teensy 3.0 running VideoDisplay?
I'm using the default code in both sketches, simply changing the number of LEDs and the name of the serial port. I'm on a Mac running the latest High Sierra. The LEDs work with the OctoWS2811 examples that don't involve Processing.
I tested the serial communication with a simple sketch in both Processing and on the Teensy that lights up the on-board LED whenever I mouse is pressed in Processing, and it works flawlessly. So somehow, when movie2serial is running this function, the Teensy is not receiving the output and/or not sending back the correct response:
Code:
// ask a Teensy board for its LED configuration, and set up the info for it.
void serialConfigure(String portName) {
if (numPorts >= maxPorts) {
println("too many serial ports, please increase maxPorts");
errorCount++;
return;
}
try {
ledSerial[numPorts] = new Serial(this, portName);
if (ledSerial[numPorts] == null) throw new NullPointerException();
ledSerial[numPorts].write('?');
} catch (Throwable e) {
println("Serial port " + portName + " does not exist or is non-functional");
errorCount++;
return;
}
delay(50);
String line = ledSerial[numPorts].readStringUntil(10);
if (line == null) {
println("Serial port " + portName + " is not responding.");
println("Is it really a Teensy 3.0 running VideoDisplay?");
errorCount++;
return;
}
String param[] = line.split(",");
if (param.length != 12) {
println("Error: port " + portName + " did not respond to LED config query");
errorCount++;
return;
}
// only store the info and increase numPorts if Teensy responds properly
ledImage[numPorts] = new PImage(Integer.parseInt(param[0]), Integer.parseInt(param[1]), RGB);
ledArea[numPorts] = new Rectangle(Integer.parseInt(param[5]), Integer.parseInt(param[6]),
Integer.parseInt(param[7]), Integer.parseInt(param[8]));
ledLayout[numPorts] = (Integer.parseInt(param[5]) == 0);
numPorts++;
}
I'm completely lost as to what I could be doing differently. Thanks!
-Nour