SiMessagePort Interface - Tic

Support for Arduino in combination with Air Manager and Air Player

Moderators: russ, Ralph

Post Reply
Message
Author
Detlef
Posts: 304
Joined: Mon Nov 16, 2020 9:43 am
Location: Bavaria

SiMessagePort Interface - Tic

#1 Post by Detlef »

Hello,

I am trying to get a connection established between my Arduino hardware and AM. I use the SiMessagePort Interface. What is the minimum time I need to call Tic() in the Arduino Sketch? I seem to have some difficulties there. If I deactivate some functions in my sketch, the connection gets established. If I do something time consuming, then not.

Thanks a lot
Detlef

User avatar
Corjan
Posts: 2941
Joined: Thu Nov 19, 2015 9:04 am

Re: SiMessagePort Interface - Tic

#2 Post by Corjan »

Hi,


There is no real minimum, but try to call it at least every 10ms or so.
Make absolutely sure that you are not blocking the loop function.

Also, overloading the output buffer with messages (when you do a lot of sendMessage) can cause connection problems.


Corjan

Detlef
Posts: 304
Joined: Mon Nov 16, 2020 9:43 am
Location: Bavaria

Re: SiMessagePort Interface - Tic

#3 Post by Detlef »

Hi Corjan,

thank you for the fast help! I will try that.

Detlef

Post Reply