This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

To transmit more than five sets of data, what should I do?
#1
The project I’m working on requires transmitting seven sets of data, which exceeds the five-set limit imposed by phyphox. I’m wondering if there’s a way to bypass this restriction? I’m currently exploring the use of arrays or strings to address this issue and would appreciate any suggestions.
Reply
#2
Hey,
I have exactly the same problem.
I just post a new thread...
Reply
#3
Five floats, i.e. 20 bytes, is a (current?*) limitation of the Arduino BLE stack and it does not exist for ESP32 based microcontrollers. So, depending on the architecture, there are different approaches that, however, require a “handwritten” .phyphox file (check the CO2 demo, for instance, how to include it in your sketch):
  • use a float array in phyphox::write (esp32 only),
  • use a byte array in phyphox::write and convert your data appropriately. Two byte integers (and a scaling factor in the .phyphox file) might provide sufficient accuracy for your purpose. You could also use different sizes for different data,
  • if rate is not that much of an issue, you could use one of the channels as a data index, so you could have eight floats in two data packages – leading to half the rate.

* Arduino is switching from mbed to zephyr. We have not looked into the first beta yet, though.
Reply


Forum Jump: