Skip to content

Serial Very Very Slow in Processing 2.1 #2214

@chipaudette

Description

@chipaudette

Processing 2.1 is extremely slow on receiving serial communications.

Serial data is being generated by an Arduino and sent to my PC over USB, per typical Arduino setup. Baud rate is supposedly 115200, but some text being streamed at the startup of the Arduino is coming in at a snail's pace. It took 25 seconds to read the 2860 characters that are issued at the startup of my Arduino (~900 bps). It is the correct text (so the baud rates are appropriately matched) but it is soooo slow.

When I switch my Arduino to stream its sensor data (~80 kbps of continuous binary data), the Processing program claims that it's only getting the data at ~1.9 kbps. When tested in a basic terminal program (RealTerm) the bytes are received at the correct rate without issue. So, the problem is not with the Arduino nor with Windows in general.

This slow behavior is seen using my own Processing program as well as with Processing's Serial example "SimpleRead" as modified to print the received byte to Processing's console via "print(char(val))". So, the problem is not with my own program, since it is in the example program as well.

My own program to receive the data stream from the Arduino worked fine in Processing 2.0.x when run in the 32-bit version of Processing. So, I believe that the problem has been introduced with the change to Processing 2.1.

I'm running Windows 7SP1, 64-bit. I tested in both 32-bit and 64-bit versions of Processing 2.1 and they both have this slowness problem. I'm using the latest drivers for video card, as downloaded today. I'm running Java 7u45, also downloaded today.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions