Jump to content

callback function function


Recommended Posts

Hey, I am building a wheeled driven robot and use WIFI extension to communicate with my laptop, in my callback function I write the velocity of two wheels into files, when USB was use for communication, this callback function works well but when I change it to WIFI extension this program seems didnot get into the callback function at all and there was nothing written in files.

Dose anybody know the reason?


Link to comment
Share on other sites

What's the SamplingPeriod?


One different between WIFI and USB is the throughput. Typically, WIFI has less throughput than USB. If your SamplingPeriod is very small then the Bricklets might try to send more callbacks then the WIFI connection can handle.


I assume you don't have USB connected to the stack while you're using WIFI, is this correct?

Link to comment
Share on other sites

Make a "ping" to your stack connected via WIFI: you might get something below 10ms, but on average I would not rely on this.


My experience is that I can transport about 50 data packages per second via WIFI (which makes 20ms per package) and that other WIFI networks in the surroundings have a big impact on the performance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...