Sending too much data over serial freezes my mac... help!

Learn about building and using Max for Live devices.
Post Reply
mrbook
Posts: 30
Joined: Wed Dec 19, 2007 6:56 pm

Sending too much data over serial freezes my mac... help!

Post by mrbook » Mon Mar 07, 2011 6:25 am

Image
Hello,
I'm writing a max4live effect using the serial object (see the screenshot). Arduino is on the other end processing the data to drive the PWM on an LED. Everything seems to be working fine, but if I move the knob too much, my whole computer freezes up, and I can't do anything else but reboot the system.
My system specs are:

OSX 10.6.6
Live 8.2
Max 5.1.4
FTDI Drivers 2.2.16

I have tried seeting the Serial Buffer Size attribute to 20480 and the Drain Enable attribute to true on the serial object, but that didn't help, I still get the freeze if too much data/too fast is sent.

Any help would be appreciated as I really want to get this working.
Cheers!

Hktr

pid
Posts: 354
Joined: Thu Nov 05, 2009 9:51 am

Re: Sending too much data over serial freezes my mac... help!

Post by pid » Mon Mar 07, 2011 9:08 am

1-- update to 8.2.1 and 5.1.7 (at least).
2-- then open inspector of live.dial and check 'defer automation output' and look into the 'update rate' above it.
3-- get to know the speedlim object and related objects and look into hysterisis etc in max
4-- sorry i do not know serial/arduino, but there must be other data flow management there somewhere.

hth a little at least. probably not. sorry.
3dot... wrote: in short.. we live in disappointing times..

Post Reply