phyphox Forums
Merging multiple measurements sent as a single value - Printable Version

+- phyphox Forums (https://phyphox.org/forums)
+-- Forum: Discussion (https://phyphox.org/forums/forumdisplay.php?fid=1)
+--- Forum: General (https://phyphox.org/forums/forumdisplay.php?fid=3)
+--- Thread: Merging multiple measurements sent as a single value (/showthread.php?tid=1925)



Merging multiple measurements sent as a single value - milos - 08-21-2024

I am trying to increase data throughput over Bluetooth, one of my ideas was to pack multiple measurements and send them together, utilizing the whole MTU.

From what I found, you can append buffers, but I would need to interleave them instead, alternating between all the outputs from Bluetooth input.
Is there a way to unpack this data and serialize it to a buffer?


RE: Merging multiple measurements sent as a single value - Jens Noriʇzsɔɥ - 08-21-2024

You are likely looking for the “repeating” argument at https://phyphox.org/wiki/index.php/Bluetooth_Low_Energy#input_conversion_functions Smile


RE: Merging multiple measurements sent as a single value - milos - 08-22-2024

(08-21-2024, 08:07 PM)milos Wrote: I am trying to increase data throughput over Bluetooth, one of my ideas was to pack multiple measurements and send them together, utilizing the whole MTU.

From what I found, you can append buffers, but I would need to interleave them instead, alternating between all the outputs from Bluetooth input.
Is there a way to unpack this data and serialize it to a buffer?

That seems to be the solution, thanks for the quick reply  Big Grin


RE: Merging multiple measurements sent as a single value - Jens Noriʇzsɔɥ - 08-22-2024

Thanks to Sebastian knowing it by heart and saving me from looking it up… Wink