Skip to content

Configuration software for the CLS Argos Linkit family of products

Notifications You must be signed in to change notification settings

arribada/CLS-Argos-Linkit-pylinkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

python setup.py install

Usage

To scan for beacons:

pylinkit --scan

To read configuration parameters into a file:

pylinkit --device xx:xx:xx:xx:xx:xx --parmr params.txt

To write configuration parameters from a file:

pylinkit --device xx:xx:xx:xx:xx:xx --parmw params.txt

To send pass prediction from a JSON file:

pylinkit --device xx:xx:xx:xx:xx:xx --paspw paspw.json

To download sensor log data:

pylinkit --device xx:xx:xx:xx:xx:xx --dump_sensor gpslog.json [--format csv]

To download system log data:

pylinkit --device xx:xx:xx:xx:xx:xx --dump_system syslog.json [--format csv]

To perform a factory reset (will erase stored configuration, paspw, zone and log files):

pylinkit --device xx:xx:xx:xx:xx:xx --factw

To perform a software reset:

pylinkit --device xx:xx:xx:xx:xx:xx --rstbw

To reset the TX_COUNTER to zero:

pylinkit --device xx:xx:xx:xx:xx:xx --rstvw

To perform a firmware update:

pylinkit --device xx:xx:xx:xx:xx:xx --fw firmware.img

WARNING: the operation make take 5-6 minutes. It is advised not to run this command if the battery is low and to ensure the device is not reset during operation. Also note that the firmware update does not take effect until the next reboot of the device upon successful completion of the above command.

Debug trace may also optionally be enabled with the --debug flag in conjunction with any of the above options.

Logging file format

Log files are downloaded as binary and transcoded to JSON or CSV (if --format csv is passed).

Example GPS

[
{

"batt_voltage": 4200, "day": 1, "fixType": 2, "fix_day": 1, "fix_hour": 13, "fix_min": 26, "fix_month": 3, "fix_sec": 31, "fix_year": 2021, "gSpeed": 4, "hAcc": 18700, "hDOP": 1.3799999952316284, "hMSL": 240, "headAcc": 180.0, "headMot": 0.0, "headVeh": 0.0, "height": 48232, "hours": 13, "iTOW": 134807995, "lat": 51.3767097, "log_t": "LOG_GPS", "lon": -2.1183726, "mins": 26, "month": 3, "nano": -4712236, "numSV": 6, "pDOP": 1.6799999475479126, "sAcc": 263, "secs": 31, "tAcc": 4294967295, "vAcc": 4116, "vDOP": 0.9599999785423279, "valid": 1, "velD": 0, "velE": -3, "velN": 1, "year": 2021

},

]

Example System

[

... { "day": 1, "hours": 13, "log_t": "LOG_INFO", "message": "GPSScheduler::task_process_gnss_data: lon=-2.118220 lat=51.376792 height=47992", "mins": 42, "month": 3, "secs": 10, "year": 2021 }, { "day": 1, "hours": 13, "log_t": "LOG_INFO", "message": "GPSScheduler::schedule_aquisition in 470 seconds", "mins": 42, "month": 3, "secs": 10, "year": 2021 }, { "day": 1, "hours": 13, "log_t": "LOG_INFO", "message": "ArgosScheduler::next_duty_cycle: found schedule: 1614606165", "mins": 42, "month": 3, "secs": 10, "year": 2021 }, { "day": 1, "hours": 13, "log_t": "LOG_INFO", "message": "ArticTransceiver::send_packet: sending message total_bits=176 tail_bits=7 burst_size=24", "mins": 42, "month": 3, "secs": 52, "year": 2021 }, { "day": 1, "hours": 13, "log_t": "LOG_INFO", "message": "ArgosScheduler::next_duty_cycle: found schedule: 1614606210", "mins": 42, "month": 3, "secs": 56, "year": 2021 }, { "day": 1, "hours": 13, "log_t": "LOG_INFO", "message": "ArticTransceiver::send_packet: sending message total_bits=176 tail_bits=7 burst_size=24", "mins": 43, "month": 3, "secs": 38, "year": 2021 }, ...

]

Configuration file format

Configuration files are organised in sections accordingly:

[PARAM] # Optional params for --parmw command PROFILE_NAME = LIAM ARGOS_FREQ = 401.6599 ARGOS_POWER = 500 TR_NOM = 120 ARGOS_MODE = DUTY_CYCLE NTRY_PER_MESSAGE = 1000 DUTY_CYCLE = 16777215 GNSS_EN = 1 DLOC_ARG_NOM = 10 ARGOS_DEPTH_PILE = 1 GNSS_ACQ_TIMEOUT = 60 ARGOS_HEXID = 4E7B54C

A configuration should have a [PARAM] section.

About

Configuration software for the CLS Argos Linkit family of products

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages