Flasher Hub - File management: Difference between revisions

From SEGGER Knowledge Base
Jump to navigation Jump to search
Line 81: Line 81:
|                  || colspan="2" | <tt>#OK</tt>
|                  || colspan="2" | <tt>#OK</tt>
|-
|-
| <tt>#FOPEN MODULE.001\Serial.txt</tt>
| <tt>#FOPEN MODULE.001\Serial.txt</tt> || colspan="2" |
|-
|-
|                  || colspan="2" | <tt>#ACK</tt>
|                  || colspan="2" | <tt>#ACK</tt>
Line 87: Line 87:
|                  || colspan="2" | <tt>#OK</tt>
|                  || colspan="2" | <tt>#OK</tt>
|-
|-
| <tt>#FREAD 0,20</tt>
| <tt>#FREAD 0,20</tt> || colspan="2" |
|-
|-
|                  || colspan="2" | <tt>#ACK</tt>
|                  || colspan="2" | <tt>#ACK</tt>
Line 93: Line 93:
|                  || colspan="2" | <tt>#OK:8:4D7953657269616C</tt>
|                  || colspan="2" | <tt>#OK:8:4D7953657269616C</tt>
|-
|-
| <tt>#FCLOSE</tt>
| <tt>#FCLOSE</tt> || colspan="2" |
|-
|-
|                  || colspan="2" | <tt>#ACK</tt>
|                  || colspan="2" | <tt>#ACK</tt>

Revision as of 15:44, 23 July 2024

Flasher Hub provides different methods for managing files stored on Flasher Hub itself or modules connected to it.

Introduction

Flasher Hub allows uploading and downloading files stored on Flasher Hub itself or modules connected to it.

This can be used for uploading project files (e.g. .cfg, .uni, .dat) to modules as well as downloading log files (e.g. Flasher.log).

Structure

Beyond files that are stored on the Flasher Hub itself, the file system provides some special folders for special handling.

Logs

When logging is enabled, a folder named Logs is available and contains all log files generated by Flasher Hub.

Modules

For each module that is connected to Flasher Hub, a folder named MODULE.<Pos> is available.
<Pos> is the module position of the respective module as a 3-digit number with leading 0s. Example:

  • Module at position 2 → MODULE.002
  • Module at position 10 → MODULE.010


Note:
Deleting a module folder deletes all files and folders on that module.

All modules

Files and folders uploaded to the 'All modules' folder are automatically uploaded to all connected modules.


Note:
Deleting the 'All modules' folder deletes all files and folders on all connected modules.

Config.ini

The Config.ini file stores some of the Flasher Hub configuration. Its contents must not be edited the user but only the Flasher Hub itself.

Interfaces

The files stored on Flasher Hub and the modules connected to it can be accessed from different interfaces.

FTP

FH4 Files FTP.png

Flasher Hub's FTP server allows clients to connect and transfer files using the file transfer protocol. For more information on the Flasher Hub FTP server, see Flasher Hub - FTP server.

Web

FH4 Files Web.png

Flasher Hub's web server provides a file browser inside the browser which allows to transfer files. For more information on the Flasher Hub Web server, see Flasher Hub - Web server.

ASCII terminal

FH4 Files Terminal.png

Flasher Hub's ASCII terminal provides commands for file operations. Using those commands, files can be uploaded to and downloaded from Flasher Hub and its connected modules.
The ASCII terminal itself can be accessed via different host interfaces. For more information on the Flasher Hub ASCII terminal, see Flasher Hub - Remote control.

An example sequence of commands for reading a file on a module looks as follows:

Command Reply
#FLIST
#ACK
MODULE.001 (DIR)
MODULE.001\Serial.txt Size: 8
All modules (DIR)
Logs (DIR)
Config.ini Size: 266
#OK
#FOPEN MODULE.001\Serial.txt
#ACK
#OK
#FREAD 0,20
#ACK
#OK:8:4D7953657269616C
#FCLOSE
#ACK
#OK


Flasher software

FH4 Files JFlash.png

Some applications (i.e. J-Link Commander and J-Flash) from the Flasher software package allow accessing files on Flasher Hub.
The Flasher software provides access to the files that are actually stored on Flasher Hub itself, only.
Special folders such as the MODULE.<Pos> and 'All modules' folders are not accessible from the Flasher software.

Firmware update

Firmware updates for both, Flasher Hub itself as well as modules connected to it, can be uploaded using any of Flasher Hub's supported file interfaces.
This can be done by uploading the respective .bin file from the Firmwares\ folder of the Flasher software package to the root folder of the Flasher Hub file system.
After that, the firmware update can be applied as described here: Updating the firmware using the Flasher Hub web interface .