Sending a "break" over serial

Can anyone tell me how to assert a serial "break" in processing? I did some searching, I dont see it. I want to hold a break for 500mS then continue; Sample code would help.


  • It looks like in Java the flush() may initiate a 100mS break;

    /** * Write/Send command to serial port and print the response. After writing * or sending command to the serial port, a 100ms break signal will be * invoked to ensure the result and then the response will be immediately * printed. * * @param cmd Command to be written/send * @return True if command was successfully written/sent, otherwise false */ public static boolean writeAndRead(String cmd) { final AtomicBoolean result = new AtomicBoolean(); if (isOpen()) { try { output.write(cmd.getBytes()); output.flush();

  • Really? I have stumped the forum? Do I win a prize of some sort?

  • That is a very technical question and I doubt you will find an answer here (Universe: prove me wrong). You could search for a solution in the Java world. If you find a way to do it in Java, then it should be possible to implement it in Processing, if that is what you want.


  • I cant believe this is considered highly technical, is standard feature in Real-term and Visual Studio; is part of serial protocol standard.

    it appears Java uses this statement;


    No idea how to convert to Processing (not SW engineer); I am surprised that no one has needed this, was used heavily in older serial equipment, but we are starting to see a comeback in some very recent ASICs...

  • OK, I have a terrible work-around unless someone has better idea; I am running at 460800, I close port, open as 300 baud, send 0x00, close port, open again as 460800, sent fetch string. Seems to work but really slow.

    ANy other ideas? I still cannot believe that break was not supported in Processing;

Sign In or Register to comment.