A USB key service is available on the Wanesy SPN gateway. It can be used to:
To activate USB key features, a USB folder tree must be used. When all the features are available, the structure is:
Download USB_Structure.zip:
usb_structure.zip .
On USB key root directory, create a file “spn/password/XXXXXXXX_password” which must contain “spn” user password.
Depending on the feature that will be used, different files must be created/added in the folders. Refer to the USB features section to determine which file should be added in which folder.
Once the folders, the feature specific files and the password files are created, the USB key can be plugged. During the execution of the USB key the led behaviour of the gateway is the following:
Inline help is available in web user interface in Configuration ⇒ Interfaces ⇒ USB utils ⇒ Help
An extract of this help is available below:
This service is used to access flows via a USB key and is always enabled.
- On USB key root directory, create parent directory /spn. - Create a password file /spn/password/XXXXXXXX_password containing *spn* user password.
1. No USB key plugged: red power LED is off. 2. USB key plugged, USB commands are being processed: red power LED is blinking at 10Hz. 3. Commands are processed: red power LED is on. 4. Unplug USB key, red power LED is off.
/spn/end_device directory must be created and used for the end-device fleet commands.
- Create a CSV file XXXXXXXX_end_device_fleet.csv.
- Command triggered with a file add_fleet. - A file XXXXXXXX_add_fleet_processed_yy is created once command processed.
Command add_fleet is processed if XXXXXXXX_add_fleet_processed_yy does not exist and each time the command file is edited.
XXXXXXXX_end_device_fleet.csv will be erased once command processed.
- Command triggered with a file get_fleet. - A CSV file XXXXXXXX_end_device_fleet.csv is created once command processed. - A file XXXXXXXX_get_fleet_processed_yy is created once command processed.
Command get_fleet is processed if XXXXXXXX_get_fleet_processed_yy does not exist and each time the command file is edited.
- Command triggered with a file delete_fleet. - A file XXXXXXXX_delete_fleet_processed_yy is created once command processed.
Command delete_fleet is processed if XXXXXXXX_delete_fleet_processed_yy does not exist and each time the command file is edited.
/spn/gateway directory must be created and used for the gateway fleet commands.
- Create a CSV file XXXXXXXX_gateway_fleet.csv.
- Command triggered with a file add_fleet. - A file XXXXXXXX_add_fleet_processed_yy is created once command processed.
Command add_fleet is processed if XXXXXXXX_add_fleet_processed_yy does not exist and each time the command file is edited.
- Command triggered with a file get_fleet. - A CSV file XXXXXXXX_gateway_fleet.csv is created once command processed. - A file XXXXXXXX_get_fleet_processed_yy is created once command processed.
Command get_fleet is processed if XXXXXXXX_get_fleet_processed_yy does not exist and each time the command file is edited.
XXXXXXXX_gateway_fleet.csv will be erased once command processed.
- Command triggered with a file delete_fleet. - A file XXXXXXXX_delete_fleet_processed_yy is created once command processed.
Command delete_fleet is processed if XXXXXXXX_delete_fleet_processed_yy does not exist and each time the command file is edited.
/spn/rx_data directory must be created and used for the Rx data commands.
- Command triggered with a file get_rx_data. - One or several files XXXXXXXX_rx_data_YYYYMMDDhhmmss.csv are retrieved once command processed. - A file XXXXXXXX_get_rx_data_processed_yy is created once command processed.
Command get_rx_data is processed if XXXXXXXX_get_rx_data_processed_yy does not exist and each time the command file is edited.
/spn/tx_data directory must be created and used for the Tx data commands.
- Create a CSV file XXXXXXXX_tx_data.csv.
- Command triggered with a file add_tx_data. - A file XXXXXXXX_add_tx_data_processed_yy is created once command processed.
Command add_tx_data is processed if XXXXXXXX_add_tx_data_processed_yy does not exist and each time the command file is edited.
- Command triggered with a file get_tx_data. - A CSV file XXXXXXXX_tx_data_YYYYMMDDhhmmss.csv is created once command processed. - A file XXXXXXXX_get_tx_data_processed_yy is created once command processed.
Command get_tx_data is processed if XXXXXXXX_get_tx_data_processed_yy does not exist and each time the command file is edited.
/spn/configuration directory must be created and used for the configuration commands.
- Create a JSON file XXXXXXXX_data.json.
- Command triggered with a file set_configuration. - A file XXXXXXXX_set_configuration_processed_yy is created once command processed.
Command set_configuration is processed if XXXXXXXX_set_configuration_processed_yy does not exist and each time the command file is edited.
- Command triggered with a file get_configuration. - A JSON file XXXXXXXX_data.json is created once command processed. - A file XXXXXXXX_get_configuration_processed_yy is created once command processed.
Command get_configuration is processed if XXXXXXXX_get_configuration_processed_yy does not exist and each time the command file is edited.
XXXXXXXX_data.json will be erased once command processed.
- Command triggered with a file reset_configuration. - A file XXXXXXXX_reset_configuration_processed_yy is created once command processed.
Command reset_configuration is processed if XXXXXXXX_reset_configuration_processed_yy does not exist and each time the command file is edited.
/spn/update directory must be created and used for the update commands.
- Copy an *.ipk file. - Command triggered with a file update. - A file XXXXXXXX_update_processed_yy is created once command processed.
Command update is processed if XXXXXXXX_update_processed_yy does not exist and each time the command file is edited.
- Copy a license file XXXXXXXX_license.txt. - Command triggered with a file add_license. - A file XXXXXXXX_add_license_processed_yy is created once command processed.
Command add_license is processed if XXXXXXXX_add_license_processed_yy does not exist and each time the command file is edited.
- Command triggered with a file restore. - A file XXXXXXXX_restore_processed_yy is created once command processed.
Command restore is processed if XXXXXXXX_restore_processed_yy does not exist and each time the command file is edited.
- Command triggered with a file reboot. - A file XXXXXXXX_reboot_processed_yy is created once command processed.
Command reboot is processed if XXXXXXXX_reboot_processed_yy does not exist and each time the command file is edited.
- Command triggered with a file halt. - A file XXXXXXXX_halt_processed_yy is created once command processed.
Command halt is processed if XXXXXXXX_halt_processed_yy does not exist and each time the command file is edited.
/spn/status directory must be created and used for the status commands.
- Command triggered with a file get_status. - A CSV file XXXXXXXX_status_YYYYMMDDhhmmss.csv is created once command processed. - A file XXXXXXXX_get_status_processed_yy is created once command processed.
Command get_status is processed if XXXXXXXX_get_status_processed_yy does not exist and each time the command file is edited.
XXXXXXXX_status.csv will be erased once command processed.
/spn/log directory must be created and used for the log commands.
- Command triggered with a file get_log. - A directory XXXXXXXX_logs containing logs *public*, *internal*, *cpf* and *loramacserver* is created once command processed. - A file XXXXXXXX_get_log_processed_yy is created once command processed.
Command get_log is processed if XXXXXXXX_get_log_processed_yy does not exist and each time the command file is edited.