PLEASE NOTE: This article is obsolete or related to a discontinued product.

A FoxBone Register Monitor Utility

by Roberto Asquini

How to use a simple command line tool to continuously monitor the status of up to four FoxBone registers.

This article describes a simple utility written in C language that enables the continuous monitor, with period of one second, of the status of up to four FoxBone registers. The desired register addresses are inserted in the command line invocation parameters of the utility FB_REG_Monitor.

The utility FB_REG_Monitor

Download the FB_REG_Monitor utility and put it in the /mnt/flash Fox Board directory. Make it executable with the command:
chmod +x FB_REG_Monitor
To use the tool just invoke it with the desired registers to monitor (up to four) on the command line parameters:
# cd /mnt/flash
# ./FB_REG_Monitor 40 41 42 43
FoxBone in 0x0040:0x0003; 0x0041:0x1000; 0x0042:0x0000; 0x0043:0x0000;
FoxBone in 0x0040:0x0003; 0x0041:0x1000; 0x0042:0x0000; 0x0043:0x0000;
FoxBone in 0x0040:0x0003; 0x0041:0x1000; 0x0042:0x0000; 0x0043:0x0000;
FoxBone in 0x0040:0x0003; 0x0041:0x1000; 0x0042:0x0000; 0x0043:0x0000;

#
#
There will be printed once per second a line containing information on the foxbone registers selected. You can so monitor their status during testing of your FoxBone hardware application. You can invoke even more than one instance of the FB_REG_Monitor in different console session to monitor more than 4 registers.

Here is for reference the source code of the FB_REG_Monitor.c utility.