Library for communication with the MSR145 datalogger.
The library was/is created by reverse engineering the proprietary Windows driver.
The work was done using a MSR145B with firmware V5.18.
I have no idea if the software works for any other of the MSR dataloggers, or for different firmware versions.
This is very much a work in progress, and the API will NOT be stable for the foreseable future.
###Working:
#####General:
- Setting baudrate(The baudrate is reset to 9600 b/s if a command have not been send in ~5 seconds).
- Calculation of 8-bit CRC checksum used by the protocol
- Formatting the memory
#####Reading:
-
Read name
-
Read Serial number
-
Read current time of device
-
Read recording start/stop settings
-
Read recording start/stop time
-
Read limit settings
-
Getting live sensor data
-
Read samples from recording (not tested with ringbuffer, probably don't work)
-
List recordings on device
-
Read "Marker" settings
-
Read timer and sampling settings
-
Read LED blink settings
-
Read callibration settings
-
Read calibration name
-
Read calibration date #####Writing:
-
Set name
-
Set calibration name
-
Set calibration date
-
Set calibration settings
-
Set limits
-
Set "Marker" settings
-
Setting timer intervals, which sensors should be sample when the timer triggers, and if the blue LED should blink on timer trigger.
-
Set time on device
-
Stopping recording
-
Starting recording (and settings for start and stop condition, e.g button, time, etc.)
###Not Working:
- Reading MSR type.
- Anything to do with features not avaliable on the device i have access to, i.e. accelerometer, SD-Card, fluid-pressure, lightsensor, analog inputs.
###Known bugs:
- Sometimes the communication with the MSR device will stall, and refuse to transfer more than a couple of commands at a time.
- Setting of calibration data not working correctly, will cause the fields to be overwritten with FFFF. ##TODO
- Fix bugs
- Improve interface and make it consistent
- Implement command-line tool on top of the library