Serial DSR/hardware handshake
in
Core Library Questions
•
2 years ago
Hello,
im trying to send data from a processing sketch to a pen plotter via serial. Thats working so far. But in ordner not to overflow the plotters data buffer, i would need to listen to the DSR line witch is set high by the plotter, when the buffer is full with incomming data, to stop sending data. Has anybody an idea how to implement the hardware handshake to the processing.serial library, or tweak it, so i can read the state of the dsr line?
I tried already compiling a new serial library with a function call "isDSR();" as part of the gnu.io library but since im a java newbie its not really working.
thanks
hannes
im trying to send data from a processing sketch to a pen plotter via serial. Thats working so far. But in ordner not to overflow the plotters data buffer, i would need to listen to the DSR line witch is set high by the plotter, when the buffer is full with incomming data, to stop sending data. Has anybody an idea how to implement the hardware handshake to the processing.serial library, or tweak it, so i can read the state of the dsr line?
I tried already compiling a new serial library with a function call "isDSR();" as part of the gnu.io library but since im a java newbie its not really working.
thanks
hannes
1