How can I close a serial port in MAX?

Mar 19, 2008 at 1:50am

How can I close a serial port in MAX?

If I understand correctly, the serial object opens the specified port (if available) as soon as the patch containing it starts running. Is there any way to close or disconnect the object’s connection to a port other than closing the whole patch?

#36412
Mar 19, 2008 at 9:13am

On 19 mars 08, at 02:50, Chris Vecchio wrote:

>
> If I understand correctly, the serial object opens the specified
> port (if available) as soon as the patch containing it starts
> running. Is there any way to close or disconnect the object’s
> connection to a port other than closing the whole patch?

I’m afraid [serial] doesn’t understand any close message, but jasch
ported Pure Data’s [comport] object, which can close a serial port.
-> http://www.jasch.chl/dl/jasch_objects_beta/comport_UB_20070508.zip

p

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://www.crfmw.be/max

#124958
Mar 19, 2008 at 10:22am

i ported [comport] specifically because of the infamous hang on close
bug when using the arduino-board/editor etc.

the correct URL is:

http://www.jasch.ch/dl/jasch_objects_beta/comport_UB_20070508.zip

you can ‘sort of’ close a port with [serial] by selecting a different
‘built in’ port like for example “Bluetooth-Modem” (at least on my
system – send the message “print” to [serial] to see available ports).

hth

/*j

>> If I understand correctly, the serial object opens the specified
>> port (if available) as soon as the patch containing it starts
>> running. Is there any way to close or disconnect the object’s
>> connection to a port other than closing the whole patch?
>
> I’m afraid [serial] doesn’t understand any close message, but jasch
> ported Pure Data’s [comport] object, which can close a serial port.

#124959
Mar 19, 2008 at 5:38pm

Thanks alot for the help.
Redirecting to another port is a clever work-around.
At least it will let my students bounce back and forth between programming a Basic Stamp and receiving data from it during development.

- Chris
http://www.noisemantra.com

#124960
Mar 20, 2008 at 2:50am

For what it’s worth, serial in Max 5 will offer a ‘close’ message.

Jeremy

#124961

You must be logged in to reply to this topic.