Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

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?

413670577_17@APA_K17Q89A@6.png.764550f379eb54c2076af9b04b710b96.png

Geschrieben
  • Autor

Thx, The attachment is my callback function configuration and I used Step Down Power Supply to power my stack when WIFI extension was used.

17974994_RL5X8MJ1Y3QP928.png.e6418b9113d9d23231179388ca7834b3.png

Geschrieben

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?

Geschrieben
  • Autor

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.

Geschrieben

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.

Geschrieben
  • Autor

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.

Join the conversation

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

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.