GeneralDeveloper
REXGEN OEM: the rexgen command reference
Use the rexgen command on the REXGEN OEM Linux platform. It checks the logger, sets its clock, changes its configuration, manages its storage and updates its firmware.
Usage
Run rexgen on its own to list the commands.
rexgen [COMMAND [PARAMETERS]] [COMMAND [PARAMETERS]] ...
| Command | What it does |
|---|---|
version |
Shows the versions of the configuration and stream tools. |
firmware |
Shows the logger firmware version. |
serial [short] |
Shows the serial number, in full or short form. |
SD log|rxd|format|info |
Manages the logs in the logger's internal storage. |
hwinfo |
Shows the hardware configuration and what is connected to it. |
date set|get |
Sets or reads the logger's date and time. |
config |
Shows the configuration name and UUID. |
configure <file.rxc> |
Sends a configuration created in REXDESK to the logger. |
reflash <file.bin> |
Updates the logger firmware from a firmware file. |
shutdown |
Puts the REXGEN OEM to sleep immediately. |
The outputs in this guide are examples. Your versions, serial number and figures differ.
Versions and serial number
root@imx8mm-smart:~# rexgen version
Config tool 1.17
root@imx8mm-smart:~# rexgen firmware
Firmware 3.87.0.RC
root@imx8mm-smart:~# rexgen serial
Serial number REX04_A3_B001_SN0000007
root@imx8mm-smart:~# rexgen serial short
SN short SN0000007
Hardware information
rexgen hwinfo lists the board, its interfaces and the sensors fitted.
root@imx8mm-smart:~# rexgen hwinfo
Board Type N/A
HW version 3
Assembly date Mon Nov 18 08:49:44 2024
Interfaces CAN0 (FD) Integrated
CAN1 (FD) Integrated
CAN2 Integrated
CAN3 Integrated
LIN Integrated
Buses Digital IN 2
Digital OUT 2
Analogue 2
Periphery GNSS N/A
Accelerometer STLSM6DS33
Mobile modem N/A
Hardware info NO NFC
Processor 628
Date and time
root@imx8mm-smart:~# rexgen date get
Tue Feb 18 09:39:30 2025
root@imx8mm-smart:~# rexgen date set
Configuration
Check the current configuration
root@imx8mm-smart:~# rexgen config
Config. name Smart_v1
Config. UUID f52ff0f5-a7f-487a-9c3c-712617b7b72b0
Send a new configuration
-
Export the configuration. Create it in REXDESK or with the command line tool and export it as an
.rxcfile. -
Copy it to the Linux platform. Place it in
/home/root/rexusb/config, for example over SFTP. -
Send it to the logger. Run
rexgen configurewith the file path:root@imx8mm-smart:~# rexgen configure /home/root/rexusb/config/Smart_v1.rxc Configuration Uploaded Successfully
Change the configuration only when your application needs it or when Influx Technology support asks you to.
Make a configuration the default
At start-up, the Linux platform sends a configuration to the logger from /opt/influx/autostart.sh. To change it, edit the configure line in that file:
# load to RexGen proper configuration
/home/root/rexusb/rexgen configure /home/root/rexusb/config/Smart_v1.rxc
The same file starts the Quectel modem with /opt/influx/cellular_module_start.sh.
Storage
The SD commands work on the logger's internal storage (eMMC).
rexgen SD info- Shows the status of the internal storage: type, version, block size, full size and free space.
rexgen SD log count- Shows how many logs the internal storage holds.
rexgen SD log <number>- Shows the details of one log: start and end time, size in bytes, configuration name, start sector and end sector.
-
rexgen SD rxd <number>orrexgen SD rxd all - Saves one log, or all of them, as RXD files in
/data/rexgen/rxd. TheRXD_FOLDERvariable in/home/root/rexusb/etc/rexgen.confsets the folder. rexgen SD format- Asks for confirmation, then formats the internal storage. This erases every log on it.
root@imx8mm-smart:~# rexgen SD log count
SD log count 244
root@imx8mm-smart:~# rexgen SD log 1
SD log info 1
Start time 2025-02-11 15:58:43
End time 2025-02-11 16:25:04
Bytes 104857674
Name Smart_v1
Start sector 24199769
End sector 24404569
root@imx8mm-smart:~# rexgen SD format
This action will format the SD card. Do you want to continue? [y/n]y
Format complete.
Convert RXD files with REXDESK or REXLIBRARY. See REXDESK: download and export your logs.
Firmware update
root@imx8mm-smart:~# rexgen reflash /home/root/rexusb/firmware/firmware_3.87.bin
File transfer complete.
Applying reflash ...
Shutdown
rexgen shutdown puts the REXGEN OEM to sleep immediately.
Still stuck?
Our engineers answer support questions on every Influx Technology product.