Kevin0010 Posted June 16, 2015 at 04:42 PM Posted June 16, 2015 at 04:42 PM 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? Quote
photron Posted June 17, 2015 at 07:17 AM Posted June 17, 2015 at 07:17 AM This should just work. WIFI and USB should not make a difference like this, Which callback is this? How do you power the stack when you use the WIFI Extension? Quote
Kevin0010 Posted June 19, 2015 at 03:50 AM Author Posted June 19, 2015 at 03:50 AM Thx, The attachment is my callback function configuration and I used Step Down Power Supply to power my stack when WIFI extension was used. Quote
photron Posted June 19, 2015 at 07:29 AM Posted June 19, 2015 at 07:29 AM 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? Quote
Kevin0010 Posted June 21, 2015 at 12:14 AM Author Posted June 21, 2015 at 12:14 AM The sampling period is 5ms, is it tio small? and much information will be lost by wifi? I donnotknow how to handle it, so I am still using USB now. Quote
remotecontrol Posted June 21, 2015 at 08:38 AM Posted June 21, 2015 at 08:38 AM 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. Quote
Kevin0010 Posted June 21, 2015 at 04:56 PM Author Posted June 21, 2015 at 04:56 PM Thanks! My sampling period is a problem but I tried 50ms before, it didinot work. I will focus on this and try to find the limit of sampling period. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.