Skip to content

simultaneous Processing sketches read wrong/multiple serial ports #553

Closed

Description

@processing-bugs

Original author: claylace...@gmail.com (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

Activity

  1. processing-bugs commented on Feb 10, 2013

    @processing-bugs
    Author

    From f...@processing.org on April 17, 2011 20:10:54
    Hm, if this is true, I'm not sure if there's anything we can do about it, since it's something happening inside the RXTX library. Our serial classes don't have anything in them that would cause this.

  2. processing-bugs commented on Feb 10, 2013

    @processing-bugs
    Author

    From f...@processing.org on March 27, 2012 01:59:01
    This isn't due to anything in the Processing serial library; if anything, it's a problem in the underlying RXTX library that we rely on.

  3. github-actions commented on Jun 18, 2021

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  4. locked as resolved and limited conversation to collaborators on Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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