jlab-sensing / Rocketlogger-Firmware

MIT License
0 stars 0 forks source link

Fix errors when attempting to run on rocketlogger hardware #12

Closed jmadden173 closed 1 year ago

jmadden173 commented 2 years ago

All of the development has been done on our personal machines, and now we need to fix all the bugs related to running on the Rocketloggers themselves. This issue should only be closed once the first working version is completed.

The first issue seen is in logger.sh where the RL command should contain the output directory for the csv file

rocketlogger sample 1000 -r 1 -format csv -f /tmp/test_rl.csv -ch 0,1,2,3,4,5 -d 0 -w 0
jmadden173 commented 2 years ago

Now getting the following

./scripts/logger.sh: line 21: csvsocket: command not found
./scripts/logger.sh: line 19: TIMESTAMP: command not found
./scripts/logger.sh: line 20: RL_FILENAME: command not found
Error: use -[option] [value]

Usage:
  rocketlogger mode -[option value]

  Modes:
    sample number      Acquires number of samples.
    cont               Continuously acquires samples.
    meter              Starts RocketLogger Meter.
    status             Get status of RocketLogger.
    stop               Stops RocketLogger.
    set                Set default configuration of RocketLogger (use normal options).
                         Use 'set 0' to reset the default configuration.
    conf               Print default configuration of RocketLogger.

  Options:
    -r rate            Acquisition rate selection. Supported rates:
                         1, 10, 100, 1k, 2k, 4k, 8k, 16k, 32k, 64k
    -u update_rate     Data update rate selection. Supported rates:
                         1, 2, 5, 10 (in Hz)
    -ch ch1,ch2,...    Channel selection.
                       Possible channels ('-ch all' to enable all):
                         0: I1H     4: I2H
                         1: I1L     5: I2L
                         2: V1      6: V3
                         3: V2      7: V4
    -fhr ch1,ch2       Force high-range.
                         0: no channel, 1: I1, 2: I2
    -c                 Use calibration, if existing.
                         '-c 0' to ignore calibration.
    -f file            Stores data to specified file.
                         '-f 0' will disable file storing.
    -d                 Log digital inputs.
                         '-d 0' to disable digital input logging.
    -a                 Log ambient sensors, if available.
                         '-a 0' to disable ambient sensor logging.
    -g                 Data aggregation mode for low sample rates.
                         Existing modes: 'average', 'downsample'.
                         '-g 0' to disable aggregation/low sample rates.
    -format format     Select file format: csv, bin.
    -size   file_size  Select max file size (k, m, g can be used).
    -C comment         Comment stored in file header. Comment is ignored
                         if file saving is disabled.
    -w                 Enable webserver plotting.
                         Use '-w 0' to disable webserver plotting.
    -s                 Set configuration as default (all except comment).

  Help/Info:
    help, --help       Display this help message.
    version, --version Display the RocketLogger software version.

./scripts/logger.sh: line 21: csvsocket: command not found
jmadden173 commented 2 years ago
rocketlogger@rocket1-jlab:~/Rocketlogger-Firmware$ scripts/logger.sh 
No such file or directory

Program compiled on Aug 16 2022 at 14:51:57

sh: 1: config-pin: not found
sh: 1: config-pin: not found

RocketLogger Configuration:
  Sampling rate:    1Sps
  Data aggregation: downsampleaverage
  Update rate:      1Hz
  Webserver:        disabled
  Digital inputs:   disabled
  File format:      csv
  File name:        /tmp/rl_data/2022-08-16_17:15:17_rl.csv
  Channels:         0,1,2,3,4,5,
  Sample limit:     10

Start sampling ...
stty: /dev/ttyS2: Input/output error
ERROR: int rc_uart_init while opening file descriptor: No such file or directory
device tree probably isn't loaded
Error in UART2 initialization.
ERROR: in rc_uart_flush, uart2 must be initialized first
Beaglebone not connected to E5 module.
ERROR: in rc_uart_flush, uart2 must be initialized first
Error setting ADR function.
ERROR: in rc_uart_flush, uart2 must be initialized first
Stored 10 samples to file.
pipstream, compiled on Aug 16 2022 16:48:53
csvstream: Missing socket file

RocketLogger Configuration:
  Sampling rate:    1Sps
  Data aggregation: downsampleaverage
  Update rate:      1Hz
  Webserver:        disabled
  Digital inputs:   disabled
  File format:      csv
  File name:        /tmp/rl_data/2022-08-16_17:15:27_rl.csv
  Channels:         0,1,2,3,4,5,
  Sample limit:     10

Start sampling ...
Stored 10 samples to file.
pipstream, compiled on Aug 16 2022 16:48:53
csvstream: Missing socket file

RocketLogger Configuration:
  Sampling rate:    1Sps
  Data aggregation: downsampleaverage
  Update rate:      1Hz
  Webserver:        disabled
  Digital inputs:   disabled
  File format:      csv
  File name:        /tmp/rl_data/2022-08-16_17:15:37_rl.csv
  Channels:         0,1,2,3,4,5,
  Sample limit:     10

Start sampling ...
ahzired commented 2 years ago

Receiving bus error:

lora compiled on Aug 17 2022 at 23:52:12

RocketLogger Configuration:
  Sampling rate:    1Sps
  Data aggregation: downsampleaverage
  Update rate:      1Hz
  Webserver:        disabled
  Digital inputs:   disabled
  File format:      csv
  File name:        /tmp/rl_data/2022-08-17_23:53:57_rl.csv
  Channels:         0,1,2,3,4,5,
  Sample limit:     10

Start sampling ...
./logger.sh: line 27:  1845 Bus error               rocketlogger sample $NUM_SAMPLES -r 1 -format csv -f $RL_FILENAME -ch 0,1,2,3,4,5 -d 0 -w 0
pipstream, compiled on Aug 17 2022 23:52:13

RocketLogger Configuration:
  Sampling rate:    1Sps
  Data aggregation: downsampleaverage
  Update rate:      1Hz
  Webserver:        disabled
  Digital inputs:   disabled
  File format:      csv
  File name:        /tmp/rl_data/2022-08-17_23:53:57_rl.csv
  Channels:         0,1,2,3,4,5,
  Sample limit:     10

Start sampling ...
./logger.sh: line 27:  1849 Bus error               rocketlogger sample $NUM_SAMPLES -r 1 -format csv -f $RL_FILENAME -ch 0,1,2,3,4,5 -d 0 -w 0
pipstream, compiled on Aug 17 2022 23:52:13
jmadden173 commented 2 years ago

@ahzired Is this done? Can it be closed?