I'm stumped.. I have an system where an Arduino communicates with a Mac Mini running a Max patch that I created. Max is basically just listening to the "serial" port (which is of course USB connected right to the arduino) with a metro banging it all the time. It works fine most of the time, but sometimes it just stops hearing the Arduino's messages - maybe twice a day or so. I thought it could be something related to inactivity in the system - too much time without hearing anything from the port - so the arduino sends a keepalive message every 30 seconds. Still has the same problem. Restarting the max patch fixes the issue, so the problem isn't in the software on the arduino.. it's still sending the whole time, max just isn't hearing it. I am using the latest FTDI drivers - my next step is probably going to use a Keyspan USB-serial adapter and connect the serial cable directly to pins 1 & 2 on the arduino, bypassing the FTDI usb-serial business. One clue that I found today is: I opened ZTerm and after quitting ZTerm (with the Max patch open the whole time), the patch had snapped out of it and was hearing the messages on the port again! I'd love a software solution that doesn't involve me soldering, etc since this is in a museum that is live (and justifiably annoyed). If I don't try this Keyspan solution I described, am I going to have to have some kind of cron job that tries to access the port somehow to snap max out of its possible serialfunk every minute??? I hate hacks. Anyone else had this trouble? Is this Max or the FTDI driver???
Thanks for any (urgently needed) help,