09-09-2020, 02:58 PM
Hello,
Trying to follow Dominik's idea of sending multiple data at a time, I would need to check the exact action of phyphox "first" instruction.
the Arduino nano is sending 5 consecutive data in the same BLE message, the phyphox experiment stores them in 5 different output buffers (containers) CH1, CH2, CH3, CH4, CH5.
I now need to fill a new data container buffer "acc" with the data in order from CH1, CH2, .... Here is what I think should work if I understood correctly the wiki:
-------------------
<first>
<input clear="true">CH1</input>
<output clear="false">acc</output>
</first>
<first>
<input clear="true">CH2</input>
<output clear="false">acc</output>
</first>
<first>
<input clear="true">CH3</input>
<output clear="false">acc</output>
</first>
<first>
<input clear="true">CH4</input>
<output clear="false">acc</output>
</first>
<first>
<input clear="true">CH5</input>
<output clear="false">acc</output>
</first>
----------------------------
I supposed that the instruction "first" takes the first data of the container, clears it (creating a shift in the following data of the container), and add it to the output buffer. Is this correct?
Dealing with the time is going to take a few tinkering, we are thinking of using one or two of the five slots to add timestamps to the data.
Thank you for your help (files are attached for your curiosity),
Cheers,
Fred
Trying to follow Dominik's idea of sending multiple data at a time, I would need to check the exact action of phyphox "first" instruction.
the Arduino nano is sending 5 consecutive data in the same BLE message, the phyphox experiment stores them in 5 different output buffers (containers) CH1, CH2, CH3, CH4, CH5.
I now need to fill a new data container buffer "acc" with the data in order from CH1, CH2, .... Here is what I think should work if I understood correctly the wiki:
-------------------
<first>
<input clear="true">CH1</input>
<output clear="false">acc</output>
</first>
<first>
<input clear="true">CH2</input>
<output clear="false">acc</output>
</first>
<first>
<input clear="true">CH3</input>
<output clear="false">acc</output>
</first>
<first>
<input clear="true">CH4</input>
<output clear="false">acc</output>
</first>
<first>
<input clear="true">CH5</input>
<output clear="false">acc</output>
</first>
----------------------------
I supposed that the instruction "first" takes the first data of the container, clears it (creating a shift in the following data of the container), and add it to the output buffer. Is this correct?
Dealing with the time is going to take a few tinkering, we are thinking of using one or two of the five slots to add timestamps to the data.
Thank you for your help (files are attached for your curiosity),
Cheers,
Fred