You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To overcome memory shortage on the ESP32 side we will split up the measurement into groups of around 800 samples. With a measurement frequency of about 1.6kHz this would lead to 6 published batches for one cycle of 3 seconds.
This can be accomplished by providing a ID for the measurement request under which the data will be published.
sequenceDiagram
participant S as CSV-Service
participant E as enV5
Note over E: sub[.../DO/measurement]
S ->> E: pub[.../DO/measurement , <ID>]
Note over S: sub[.../DATA/gyroscope/<ID>]
Note over S: sub[.../DATA/accelerometer/<ID>]
Note over S: sub[.../DONE/measurement]
Note over S,E: show countdown
loop for 3 seconds
par gyroscope
Note over E: measure with 1600Hz
E ->> S: pub[.../DATA/gyroscope/<ID> , batch (~800 samples)]
and accelerometer
Note over E: measure with 800Hz
E ->> S: pub[.../DATA/accelerometer/<ID> , batch (~800 sampkes)]
end
end
E ->> S: pub[.../DONE/measurement , <ID>]
Note over S: unsub[.../DATA/gyroscope/<ID>]
Note over S: unsub[.../DATA/accelerometer/<ID>]
Note over S: unsub[.../DONE/measurement]
Add Gyroscope measurement with 1.6kHz and publish to different topic.
ToDo
g-value
toacceleration
.../gyroscope
Remarks
Caution
When reading with 1600Hz the internal RAM of the RP2040 (260KB) is to small to store all data!
Amounts to around (only one topic):
Solutions:
The text was updated successfully, but these errors were encountered: