serial handshaking

snerk4000's icon

does anyone know of any tools to debug the serial port connection process? i'm using an arduino-based button matrix i've built to spit dmx/artnet out of max.

on my Mac machine, both Max6 and the arduino software read the device with 0 problems.

on windows however (small win7 netbook with max because i don't want some retard throwing water on my nice computeR), the arduino software reads the serial port fine, and max doesn't. the arduino seems to just go into a dead state when i use [serial c 57600], as if something isn't getting sent correctly.

any ideas?

Scott Fitzgerald's icon

make sure you're talking to the correct serial port. it won't be the same letter/COM port on both machines. Use the print message to the serial object to see what port it is on.

snerk4000's icon

it's definitely the right one. the status LEDs on the controller i made take a few seconds to come on after you power up the arduino, since there's code switch panel modes and it won't see them until it boots.

when you make a [serial c 57600] object, it tries to connect to the arduino but all the LEDs go out and it doesn't connect properly. usually on connection (and with mac) the LEDs will be off for a second and then pop back on when the connection is good.

danny bracken's icon

Just came across this and wanted to chime in with anyone else having the issue. I had everything working on my macbook fine using serial c 57600 but when transferred to a mac mini I was getting a console error saying "port not available" (or something like that). Messed around with different serial ports, and found that changing it to "serial b 57600" worked.