Movesense remove individual datalogger entries

129 views Asked by At

I am using the Movesense Sensor HR+ with Datalogger and Android API. Sometimes I need to have 2 separate data log entries and I want to remove only one of them and keep the other. The steps are as follows:

  1. Stop current logEntry1 from recording (log entry with id=1)
  2. Start recording a new logEntry2 (log entry with id=2)
  3. Start download of logEntry1
  4. Ensure logEntry1 download completes without connectivity breaks
  5. Delete logEntry1 from movesense device

I only seem to be able to erase all logs via the Andorid API on movesense using: suunto://{0}/Mem/Logbook/Entries

But, I would like to be able to use something like this: suunto://MDS/Logbook/{0}/ById/{1}/Data
Where: {0} is the movesense device number {1} is the log entry Id.

I haven't got it to work yet. Is it possible?

Thanks! Helic

1

There are 1 answers

2
PetriL On

The current Movesense sensor organizes the Logbook as a ring-buffer and it is not possible to delete individual logs. However that means that DataLogger will just overwrite the oldest log so there is no real need to delete the logs.

What you need is to keep track on mobile side which logs you have fetched from the sensor and just let the sensor overwrite them when the time comes.

This overwriting means that it is not advisable (read: "bad things can happen#) to read the oldest log if new data is being written to the Logbook. To avoid this, check the /Mem/Logbook/IsFull (GET / SUBSCRIBE) to see if overwriting is happening and if it is, just postpone starting new log if that is the case.

Full Disclosure: I work for the Movesense team