- Python^3.10
- poetry
poetry installPlease set your COM port to conf/client/atr01.yaml
(For mac user)
You can check the COM port in your environment by ls -la /dev/tty.*.
Include clock sync.
poetry run python init_sensor.py client=<client>client choices:
- atr01 (macOS)
- atr02 (macOS)
- atr01-win (windows)
- atr02-win (windows)
# Start Recording
poetry run python start_recording.py
# Monitor the Recorded Values
poetry run python listen_event.py
# Stop Recording
poetry run python stop_recording.py# Check the number of entries and details in the device
poetry run python check_memory.py
# Clear all entries in the device
poetry run python clear_mem.pyData is stored as logfile on ./outputs/ATR0X/YYYY-mm-dd/HH-MM-SS/download.log
poetry run python download.py
Example of outputs:
client:
name: ATR01
port: /dev/tty.TSND151-AP03160248-Blue
timeout: 5
[2021-10-21 20:16:38,700][__main__][INFO] - == Download Data in Device's Memory ==
[2021-10-21 20:16:48,324][__main__][DEBUG] - Success ... Initialize TSND151() object and open connection.
[2021-10-21 20:16:48,324][tsndctl.TSND151.ATR01][INFO] - == Check Memory Status ==
[2021-10-21 20:16:48,371][tsndctl.TSND151.ATR01][INFO] - MemEntryCount:: {'status': 0, 'num_entry': 4}
[2021-10-21 20:16:48,522][tsndctl.TSND151.ATR01][INFO] - FreeMemSize:: {'status': 0, 'num_free_entries': 76, 'num_free_records': 4286578764}
Which entry do you want to download ? (Entry.1 ~ 4) [type the number] >>
For convert logfile to CSV, check this notebook.