Forums > MaxMSP

Sometimes the Serial Port won't close

June 21, 2013 | 4:49 am

I’ve been working with Max and Arduino on and off for years and I’ve always had this problem but just lived with it.

Following the OSC binding issue getting fixed I thought I should try!

So yes if I am sending data to the Arduino through the Serial object but decide I want to edit my Arduino sketch I send a close message to the Serial object and then upload the new sketch.

Sometimes this works fine but other times, Arduino gives me a ‘Serial Port in use message until I quit Max’. So i have to save my Max stuff, quit Max, update my sketch, Open Max, load my patcher. Annoying!

I’m using 10.7.5 but pretty sure its been like this for ages.

It might not be a Max problem but then the fact that quitting Max sorts it out points towards the fact it is.

Any ideas?


June 21, 2013 | 4:55 am

I just change to an unused serial port in Max when I want to programme the Arduino. Once programmed, I change back to the original port. I didn’t realise the serial object accepts a ‘close’ message. I’m on Windows if that makes any difference.

Jonathan.


Viewing 2 posts - 1 through 2 (of 2 total)