Skip to content

simultaneous Processing sketches read wrong/multiple serial ports #553

@processing-bugs

Description

@processing-bugs

Original author: [email protected] (January 20, 2011 06:02:38)

If this is is a problem with the reference or website, please explain the
errors clearly and select the appropriate Component in the interface below.

If it's a problem with the Processing Core and Android software, please
answer the following:

What steps will reproduce the problem?

  1. input 2 serial streams (e.g. from two Arduinos)
  2. read off one serial stream into one Processing script through serial library with "myPort.read", specifying the COM port earlier with "myPort = new Serial(this, Serial.list()[0], 9600);"
    e.g.
    http://www.processing.org/reference/libraries/serial/Serial_read_.html
  3. try to read off separate, independent serial stream (i.e. another Arduino, corresponding to a different COM port) in same manner as Error Check now happens only on text update, instead of running forever #2, above (but from different COM port from list)

What is the expected output? What do you see instead?
Expected output is that each Processing script will display/graph the serial stream from the corresponding COM port (one of the two Arduinos).
Instead, the serial stream displayed by the first Processing script, from the correct COM port, is captured by the second Processing script, which subsequently displays serial events from both ports/Arduinos. The initial Processing script now displays no new events.

What version of the product are you using? On what operating system?
Processing v.1.0.9
on WinXP

Please provide any additional information below.
None.

Original issue: http://code.google.com/p/processing/issues/detail?id=514

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions