Skip to content

Serial communication not working until opening arduino serial monitor #13

@dasoe

Description

@dasoe

Dear bakercp,

thank you very much for your awesome work!
I have a problem when using ofxSerial with serial communication to arduino on windows. When plugging arduino it does not work: Arduino is found ("successfully setup COM5…"), but no communication happens. "onSerialBuffer seems to never fire. Trying to send something gives me "IO exeption. Error while writing to the serial port. … |ibs\serial\src\impl\win.cc, line 343."
After opening and closing arduino serial monitor it works without problems.

I can produce the problem on a Computers running Windows 10 with both OF 0.9.8. vs and OF 0.9.4 vs as well as on another Computer running Windows 7 OF 0.9.8 vs. ofxIO is stable branch and ofxSerial is master branch in all three cases.
Ubuntu OF 0.9.4. works without any problem.

It's not completely sure this problem is specific to ofxSerial, still I can reproduce it also in example_buffered_serial_device, while ofSerial example works well.
I'd be happy if you had any advise. I'm ready to do further testing of course.

thanks and have a good day!
oe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions