5. Using the CLI Shell
ROS® v3.11User Guide
101
RMC30
>flashfiles info main.bin
Flash file information for main.bin:
Header version : 4
Platform : ROS®-CF52
File name : main.bin
Firmware version : v3.8.0.QA3
Build date : Oct 23 2009 13:32
File length : 2726770
Board IDs : ff 1 9 b 8 a 19 17
4 5 11 15 13 14 f 18
2 7 3 10 c d 12 16
Header CRC : 0827
Header CRC Calc : 0827
Body CRC : a270
Body CRC Calc : a270
Figure 5.5. Obtaining Information About "main.bin"
5.4.3. Defragmenting The Flash Filesystem
The flash memory defragmenter should be used in a case when not enough flash memory
is left for a binary upgrade. Fragmentation may occur, for example, when switching between
different firmware image versions that require different numbers of memory sectors. Sectors
of available memory can become separated by ones allocated to files. It may be, for example,
that the total available memory might be sufficient for a firmware update, but that memory may
not be available in one contiguous region, as is required by ROS®.
Note that Flash memory defragmentation is implemented as an automatically invoked function
in bootloaders v2.15.1 and greater.
5.5. Pinging a Remote Device
The “ping” command sends an ICMP echo request to a remotely connected device. For each
reply received, the round trip time is displayed.
The command, “ping <IP address>”, will send a small number of pings to the device with this
IP address and display the results. The ping command can be used to verify connectivity to
the next connected device. It is a useful tool for testing commissioned links. This command
also includes the ability to send a specific number of pings with a specified time for which to
wait for a response.
The specification of a large number of pings and a short response time can “flood” a link,
stressing it more than a usual ping sequence. The command “ping 192.168.0.1 500 2” can be
used to issue 500 pings, each separated by two milliseconds to the next device. If the link used
is of high quality, then no pings should be lost and the average round trip time should be small.
The device to be pinged must support ICMP echo. Upon commencing the ping,
an ARP request for the MAC address of the device is issued. If the device to be
pinged is not on the same network as the device pinging the other device, the default
gateway must be programmed.