Sections
You are here: Home Forum Bugs, Known Issues, & Requests Beware of using OSC Autosend with embedded control

Beware of using OSC Autosend with embedded control

Up to Bugs, Known Issues, & Requests

Beware of using OSC Autosend with embedded control

Posted by Tim Broyles at April 17. 2008

Ok now that I have your attention. This only applies to those folks that are embedding control on the Make (firmware) and communicating via OSC to say a Flash interface.

Here is the situation: On startup I run a built in test (BIT) of my hardware.

I cycle the fan,stepper, pumps ect....

when it gets to the stepper sometimes later in the sequence, I get a restart.

What I found and can show is that when I have autosend enabled for the input lines when I get this behavior.

So I enabled a quite mode in my flash to allow startup and later runtime control without seeing the problem. (as i suspect this was a source of intermitant reset also)

There is a question in this. I have tried to turn off the autosend for analogin and the dipswitch via the calls:

  AnalogIn_GetAutoSend(OFF);
  DipSwitch_SetAutoSend(OFF);

at start up but it does not turn off the autosend functionality. How do I control the outflow from teh make from the inside?

Thanks

Tim

Re: Beware of using OSC Autosend with embedded control

Posted by Cleon Santos at May 05. 2008
Hi Tim Shouldn't you use index in both cases? If you check this link: http://www.makingthings.com/ref/firmware/html/analogin_8c.html#d6445fb5094b226f418aab919bc5e602 You can see that you need to first specify index than the boolean state, so it should look like: AnalogIn_SetAutoSend( 0, off); Eventually you can cycle all of them: for ( a = 0; a <= 7; a++ ) AnalogIn_SetAutoSend( a, off); Same goes with DipSwitch ... hope it helps. Regards, Cleon

Re: Beware of using OSC Autosend with embedded control

Posted by Cleon Santos at May 06. 2008
Tim, I've successfully tested the SetAutoSend feature with the following code: for ( count = 0; count <= 7; count++ ) { AnalogIn_SetAutoSend( count, true ); DipSwitch_SetAutoSend( false ); } In my case I want to turn ON AnalogIn_SetAutoSend and turn OFF DipSwitch_SetAutoSend. Also worth notice that DipSwitch_SetAutoSend does not need any index, just a boolean state. Regards, Cleon

Re: Beware of using OSC Autosend with embedded control

Posted by Tim Broyles at May 07. 2008

Thanks for the follow up. I appreciate your help.

Tim

Powered by Ploneboard
Document Actions