Benchmarking latency across common wireless links for microcontrollers

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • > Several months ago, I built a project using USB host mode on a Raspberry Pi Pico, which uses a USB numpad to pass messages to an MQTT server. This uses the Rp2040's USB host mode https://gitlab.com/baiyibai/pico-w-usb-host-mqtt-numpad

    Maybe I read the README a little to quickly, but you seem to be using standard WiFi for communication. As stated in other comments in this thread, this solution already exists. USB through Ethernet extension are well established and you can already connect this to a WiFi extender.

    What I was thinking was to achieve this with a simple radio connection that do not need configuration or even a WiFi network to function. Just plug it in and it works. Here's a sketch of the high level concept I had in mind: https://ibb.co/VD2d9XM

    Is your point that once you can do that with Wi-Fi it is trivial to do it with any type of radio connection?

    > From my limited understanding, it should be possible to pass these USB messages from HID client to HID host and vice-versa.

    Someone did this here using Etherkey and an ATmega32u4: https://www.sjoerdlangkemper.nl/2022/11/16/running-etherkey-...

    > it seems the TinyUSB library doesn't provide the full bitmask resolution necessary

    If my understanding is correct, Arduino already provides low level USB controls: https://shorturl.at/joSWZ.

    All in all, it seems to me that there is an opportunity here but unfortunately this requires skills in electronic, radio and USB protocol that I do not possesses and seems fairly rare.

  • embedded-wireless-latency-eval

    Testing a range of radio modules and protocols for latency.

  • We nerd sniped ourselves into testing the latencies of a whole bunch of wireless communication links and protocols for microcontrollers.

    We’ll probably do a series of power consumption / range tests later on, let me know if there are any setups in particular that you’d be interested in seeing test cases for.

    Raw data, firmware and post processing scripts are here on GitHub:

    https://github.com/Scottapotamas/embedded-wireless-latency-e...

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • We nerd sniped ourselves into testing the latencies of a whole bunch of wireless communication links and protocols for microcontrollers.

    We’ll probably do a series of power consumption / range tests later on, let me know if there are any setups in particular that you’d be interested in seeing test cases for.

    Raw data, firmware and post processing scripts are here on GitHub:

    https://github.com/Scottapotamas/embedded-wireless-latency-e...

  • Adafruit_TinyUSB_Arduino

    Arduino library for TinyUSB

  • https://gitlab.com/baiyibai/pico-w-usb-host-mqtt-numpad

    https://github.com/adafruit/Adafruit_TinyUSB_Arduino

    My implementation plugs in much higher into the stack and doesn't read the full USB bit mask output, which indicates how many keys are pressed/released.

    From my limited understand ing, it should be possible to pass these USB messages from HID client to HID host and vice-versa. Then it's only a matter of sending this information over a TCP/UDP interface. However, from my research, it seems the TinyUSB library doesn't provide the full bitmask resolution necessary for all devices. The YouTuber Wendell from LevelOneTechs has also talked about the troubles of getting some devices working with his KVM products, so it may not be as simple as I'm suggesting here.

    Overall though, a $15/endpoint is very attractive.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • ESP32-S2 and USB OTG

    2 projects | /r/esp32 | 22 Aug 2022
  • TinyUSB: Open-source cross-platform USB Host/Device stack for embedded systems

    9 projects | news.ycombinator.com | 23 May 2022
  • I've been working on a new sound library for the ESP32, but I could use some help.

    4 projects | /r/esp32 | 7 May 2022
  • Physical Knobs and Elixir

    1 project | news.ycombinator.com | 11 Mar 2023
  • how do emulate a keyboard over usb? wherever I look I only see libraries and tutorials on how to use the eps32 as a Bluetooth keyboard not a wired one

    2 projects | /r/esp32 | 11 Jan 2023