Programming

How to re-program both firmware and software, in case upgrade is needed.

Programming

Programming is done via the USB port, by downloading either a software or firmware file.  These files are freely available on the website. You should be reasonably technically competent to do this.

Programming using Windows Utility

This method is the preferred way of programming, but is only available on Windows computers.  You do not need to set up the Baud rate, port number etc.
1] Download the Programmer file SFRProg.zip below.
2] Unzip, and place in a uniquely named directory (maybe StaRFIshrail).
3] Using Windows Explorer, check that there are 9 files in the directory.
4] Plug the USB cable between the Windows computer and the hub, and then check that the computer is seeing the hub by looking at "Devices and Printers" pane - there should be an unspecified device named StaRFIshrail.5] Set the Option Switch to position "F".
6] Double click on setup.bat in the StaRFIshrail directory, and a pane should appear  OR double click on DeviceUpdateUtil.exe.
7] A window should appear, with  "Software" and "Firmware" buttons, and a Progress report - this will initially be cycling slowly (at about 8 second intervals) with various debug information, including version numbers, readers present, IP address etc.
8] VERY IMPORTANT - Make sure the 0.1" link is NOT in the REC position - and other position is fine, or even no link.
9] To program the firmware (Xilinx code), press the "Firmware" button, and you should see an increasing count of bytes sent, which will end with a message "FPGA Programmed".
10] Then press the "Software" button, and again an increasing count will be seen, ending in "Micro Programmed".
11] Exit the programming window, repower the hub, and set the "Option" switch back to the position you want.

Devices in Windows

In the Devices and Printers pane in Windows, StaRFIshrail should appear as an Unspecified device.  The drivers should be automatically installed when you plug the hub in on a USB port, as the USB chip used is a standard FTDI USB bridge. The first time you plug in the Hub you should make sure you are on line, as Windows can then search for the installation files if they are not already on your computer.

Programming Method using Terminal window

Connect the USB cable between your computer and the USB port on the Hub.  If this is the first time you are doing this, then makes sure your computer is on-line.  The computer should automatically find the driver for the USB FT234X chip.  You need to have a terminal program installed - Tera Term is the recommended program, which is available as a free download, but you can use which ever terminal program you wish.
The USB serial port should be configured as 115,200 baud, 8 bit, no parity, 1 stop bit.1] Select the USB port on which the StaRFIshrail hub is connected.
2] Connect to the hub, and set the hub Option switch to position F.
3] You should see debug messages appearing on the TeraTerm window, changing at about 8 second intervals.
4] Use the File>Send file command, navigate the to the directory with the downloaded files, and select firmware.....txt, and then press "Open".  You should then see the file being downloaded - wait until it has finished and the message FPGA programmed appears.
5] Use the File>Send File command again, and send the software....txt file, and wait until the message Micro Programmed appears.
6] Repower the hub, and check that the new versions appear on the TeraTerm window.  
7] Switch the Option switch back to the option you require.

SFRProg.zip
sfr13011302a.zip