setDTR not doing anything

edited September 2014 in Library Questions

I've been using processing 2.2.1 to try to get some serial communication going. The serial javadoc no longer exists so it's a bit hard stumbling in the dark but I managed until now.

I need to control the DTR pin to keep it HIGH but the setDTR command is doing nothing at all.

import processing.serial.*; 

Serial myPort;    // The serial port


void setup() { 
  size(400,200); 
  println(Serial.list()); 
  myPort = new Serial(this, "COM9", 115200); 
  myPort.setDTR(true);



} 

void draw ()
{

}

This is just supposed to open the port and set the DTR pin to HIGH... but it doesn't do that. I put my oscope on the board and the DTR pin is LOW.

Am I doing something wrong in assuming setDTR will do this?

Answers

Sign In or Register to comment.