Android application is a hybrid ionic framework app. It uses the following plugins and JS libraies:
The "android" part of an ionic project can be downloaded from the "download" section. The apk can be build with Android Studio, "import"-build.cradle; the project does not require anything else to build (no need to install plugins, libraries or frameworks).
Apk turns BLE automatically. If not, please check permissions of the app on the smartphone.
The status bar shows connection status. a) If there is nothing displayed on the status bar, the application does not see any BLE packets from the device (the device is off). 2) Battery level and status should be seen immediately after the device is on. 3) Click "CONNECT" menu item to connect. When connected (usually takes 1-10 s) BLE icon appears at right.
Menu list depends on the mode. For example, if the device is just turned on, only "CONNECT", "FILE", "EXIT APP" are available.
To "zoom" swipe the area from left to right. To "pan" use cross icon at top right of the graph. To reset click "reload" icon at the right-top of the graph. To see value labels click to the line or column on the graph.
threshold1 step is ~4x resolution of the accelerometer, e.g. at 2g of full scale 1 step is 16mg
rest timetime interval after which angles are calculated and reported (see "the device" page for the diagram)
logic, axisSelect combination of axes and logic to generate trigger event
watch frequency, fifo frequencyAt what frequency accelerometer does sampling (both "live" and "offline") and at what frequency FIFO is filled ("offline" modes). Higher frequency means more accurate response. (higher is better). On the other hand, higher frequency means also more current consumption by the accelerometer: 10Hz: 4uA, 50Hz: 11uA, 100Hz: 20uA, 200Hz: 40uA. Total battery drain is this current +MCU activity (calculation etc.) current+BLE current.
at RECORDDisallows (unchecked) alarms and photos in "record" mode regardless of "play sound" and "take photo" settings. Allows if "play sound" and/or "take photo" are set (AND logic to them).
play soundPlay alarm sound on trigger conditions. Select sounds from the dropdown list
time,sHow long the alarm is played.
min gap (sound, pictures)How much time should pass until next alarm/photo will be allowed. To filter frequent alarms/photos.
take photo, back, front, FolderEnabler, back or front camera, folder to save photos
max shots (now#)Another filter to pictures. Maximal number of photos allowed. Now# shows current number of pictures taken since the program start. If new max. number is entered, current number resets to zero.
APPLY BUTTONThere are two categories of the settings. Device related (stream period, accelerometr and trigger settings etc) and apk related (folders, alarm on/off alarm/photos settings, etc.). Device related setting require the "connection" state. If the device is disconnected, warning dialog will be shown and the settings in the app's fields will be restored. Nontheless apk related settings will be applied regardless of connection state and warning dialog. This is done to have a chance to change alarms without interference with the "offline" modes of the device. Note "atRecord" checkbox belongs to device's setiings, since it is used by the firmware. In any case aftr "APPLY" button click the apk shows actual data on the screen.