Szpcie QSG 160919 LQ
Szpcie QSG 160919 LQ
Szpcie QSG 160919 LQ
System-on-Chip engineering
- Confidential -
Doc: 160902
This page has been intentionally left blank
ii
Copyright reminder
Copyright
2016
c by System-on-Chip engineering S.L. All rights are reserved.
Although SoCe S.L. believes that the information included in this publication is cor-
rect as of the date of publication, SoCe S.L. reserves the right to make changes at any
time without notice.
All information in this document is strictly confidential and may only be published
by SoCe S.L.
Revision History
iii
Safety instructions
This chapter includes some instructions which must be observed to ensure your own
personal safety and to avoid damage to devices and machinery.
The device may only be employed for the purposes described in the user guide and
technical description, and only in conjunction with external devices and compo-
nents recommended or approved by SoCe .
The product can only be operated correctly and safely if it is transported, stored,
installed and assembled properly and correctly. Furthermore, it must be operated
and serviced carefully.
Beware of possible short circuits when connecting a cable section with conductive
shielding braiding.
Make sure that the electrical installation meets local or nationally applicable safety
regulations.
Never insert pointed objects (thin screwdrivers, wires, etc.) into the inside of the
boards. Failure to observe this point may result in injuries caused by electric
shocks.
The device may only be operated in an ambient temperature range from -40 C to
+ 85 C and at relative air humidity up to 95 % (non-condensing). The installation
location is to be selected so as to ensure compliance with these climatic limits. The
storage temperature should not exceed the limits in the range from -45 C to +
90 C.
Failure to observe the information given in these warnings could result in serious in-
jury and/or major damage.
Only personnel that have received appropriate training should operate this device or
work in its immediate vicinity. The personnel must be fully familiar with all of the
warnings and maintenance measures in these operating instructions.
iv
Correct transport, storage, and assembly as well as careful operation and mainte-
nance are essential in ensuring safe and reliable operation of this device. Check whether
the package was delivered complete and check the individual parts for transport damage.
These products are only to be used in the manner indicated in this version of the
user guide. Particular attention is to be paid to all warnings and items of information
relating to safety.
Recycling Note
After its use, this product has to be processed as electronic scrap and disposed of accord-
ing to the prevailing waste disposal regulations of your community / district / country
/ state.
Disclaimer Note
The performance features described here are binding only if they have been expressly
guaranteed in the purchasing agreement. We have checked that the contents of the
technical publication agree with the hardware and software described. However, it is
not possible to rule out deviations completely, so we are unable to guarantee complete
agreement. However, the details in the technical publication are checked regularly. Any
corrections which prove necessary are contained in subsequent editions. We reserve the
right to make technical modifications.
We would furthermore point out that for reasons of simplicity, these operating in-
structions cannot describe every conceivable problem associated with the use of this
equipment. Should you require further information or should particular problems occur
which are not treated in sufficient detail in the operating instructions, you can request
the necessary information from SoCe . You can find the contact details on the Internet:
http://www.soc-e.com.
v
Contents
Safety instructions iv
1 Product overview 1
1.1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
2 Hardware Setup 3
2.1 Hardware Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 Port Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2.3 Equipment Installation in PCIe slot . . . . . . . . . . . . . . . . . . . . . 5
2.4 Equipment Installation in PCI slot . . . . . . . . . . . . . . . . . . . . . 5
3 Driver Installation 7
3.1 Automatic Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.2 Download . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3.3 Driver Installation On Windows O.S . . . . . . . . . . . . . . . . . . . . 7
3.3.1 Alternative Way of the Driver Installation 1 . . . . . . . . . . . . 8
3.3.2 Alternative Way of the Driver Installation 2 . . . . . . . . . . . . 9
3.4 Driver Installation On Linux O.S . . . . . . . . . . . . . . . . . . . . . . 9
4 Start-Up 10
4.1 Network Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2 Password Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
5 Web Configuration 15
5.1 Web Interface Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2 Configurations Management . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.3 Network Nodes Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.4 System updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6 CLI Configuration 22
6.1 SSH Connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.2 CLI Configuration Tool Overview . . . . . . . . . . . . . . . . . . . . . . 24
6.3 Write and Read Operations . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.3.1 Read Operation Example: Number of Transmitted Frames of PORT-
B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
6.3.2 Write Operation Example: HSR and PRP Working Mode Change 27
6.4 Configurations Management . . . . . . . . . . . . . . . . . . . . . . . . . 28
vi
Contents
vii
List of Figures
1.1 SMARTZynq PCIe HSR/PRP/PTP . . . . . . . . . . . . . . . . . . . . . . 1
viii
List of Figures
ix
List of Tables
2.1 Port Assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
x
1 Product overview
1.1 Description
SMARTZynq PCIe HSR/PRP/PTP is a networking card compliant with HSR and PRP v3
Redundant Ethernet protocols (IEC 62439 clause 5 and 4) . These protocols ensure high
availability for the networking on critical infrastructures offering zero-delay recovering
time and no frame lost in case of a network failure. The board attaches the Industrial
PC to the redundant network, and additionally, it supports RedBox mode of operation
for external regular Ethernet equipment through a third port.
Functional Features:
PCIex1.
1x power indicator led and 3x activity indicator leds (1x per SFP port).
PCIe x1
PORT-2
PORT-1
PORT-0
POWER
PORT-2
PORT-1
PORT-0
POWER
In case of not having PCIex1 slot, SMARTZynq PCIe HSR/PRP/PTP is also compatible
with PCIex4, PCIex8 and PCIex16 slots.
3.2 Download
SMARTZynq PCIe HSR/PRP/PTP uses Intel I210 controller in order to provide PCIe in-
terface and network adapter driver installation may be required. It can be dowloaded
for any O.S from the Intel official website:
https://downloadcenter.intel.com/product/64400/Intel-Ethernet-Controller-I210-AT
After downloading ProWin32.exe or ProWin64.exe driver file, the user should execute
it and follow the installation wizard. Once the installation is finished, PC reboot could
be required. Now, the network adapter should appear in the Windows Device Manager
as shown in the figure 3.2.
Choose the Network Adapater (if detected), or the generic Ethernet Controller of
the figure 3.1.
Controller tab.
Update Controller.
User must browse the directory where the driver has been unzipped.
Browse to PROWinx64/APPS/SETUP/SETUPBD/Winx64
For the build to work properly, the currently running kernel MUST match the
version and configuration of the installed kernel sources. If user has just recompiled
the kernel reboot the system before building.
Move the base driver tar file to the directory of your choice. For example, use
/home/username/igb or /usr/local/src/igb.
Untar/unzip the archive, where <x.x.x> is the version number for the driver tar
file:
tar zxf igb-<x.x.x>.tar.gz
First of all, the computer should be disconnected from LAN in order not to have any
conflict between the default IP address assigned to the internal CPU integrated in the
SMARTZynq PCIe HSR/PRP/PTP (192.168.2.64) and the IP address of any other equip-
ment connected to the local network.
After that, a static IP address in the range of the subnet 192.168.2.0 must be assigned
in the computer to the connection with the NIC to be able to connect to the internal
CPU of the SMARTZynq PCIe HSR/PRP/PTP .
Finally, the web interface provided by the NIC will be accessed and a new IP address
corresponding to your own subnet will be assigned to the internal CPU of the NIC.
Summarizing, these are the steps to follow before accessing the web interface:
Install SMARTZynq PCIe HSR/PRP/PTP in the computer.
Ping to the IP address assigned by default to the internal CPU of the NIC
(192.168.2.64) to check if communication has been successfully established.
Once the initial communication has been checked, open your web browser and type
http://192.168.2.64 in the address bar. A user name and pasword will be requested
by the web application. See figure 4.2.
User: admin
Password: soce2016
At the left side of the page there is a button that let the user change between basic
and advanced configuration. Press that button and the color of the web will change to
red indicating you are now in advanced configuration mode. See figure 4.3.
At the top right corner of the page there is an icon that let the user view a menu with
the device configuration options. From that menu select the IP configuration entry. See
figure 4.4.
A new page is open which let the user assign a new IP address to the internal CPU
integrated in the SMARTZynq PCIe HSR/PRP/PTP . See figure 4.5. This IP address
should be a static address provided by the network administrator, because you need to
know the address to access the configuration of the SMARTZynq PCIe HSR/PRP/PTP .
This is the reason for not using DHCP assigned addresses.
After changing the IP address, you can use the Reboot configuration entry avalaible
through the right side device configuration menu for changes to take effect. Wait for
the system integrated in the SMARTZynq PCIe HSR/PRP/PTP finish rebooting (around
1 minute) and type the new IP address in the address bar of your web browser.
The web interface can be used by two types of users, normal users (username: user )
and advanced users (username: admin). By default, both types of users have assigned
the same pasword, soce2016 . If you enter the web as a normal user and try to
change to advanced configuration mode the web will request the administrator creden-
tials at that moment. Some of the configuration options are restricted to advanced
users.
To change the password assigned to the different roles supported by the tool you must
use the Account configuration entry avalaible through the right side device configura-
tion menu. See figure 4.6.
In the new page that will be open you must first select the type of user whose password
want to change and then type the new password (twice). See figure 4.7.
Once you have finish using the web interface you should use the Logout configuration
entry avalaible through the right side device configuration menu to avoid unauthorized
accesses from your browser.
1. At the centre of the page there is a block diagram that makes easier to the user
understanding the design implemented in the NIC.
2. At the left side of the page there is a switch button that can be used to change
between Basic / Advanced Access Modes. Some configuration options can only
be accessed in advanced mode. Depending on the access mode selected, the colors
used by the web pages change between green and red.
3. HW Blocks is a drop down menu which lists the different functional blocks com-
posing the system in the NIC. Selecting one of these blocks will cause that all the
configuration fields associated with it appear in a box at the centre of the page
(see figure 5.2). While you are viewing the configuration fields of a HW block, the
list of all the HW blocks appear at the left side of the page to make easier browse
between blocks. You can edit the value of different writable parameters and apply
the changes using a button available at the botton right corner of the box.
5. There is another way to filter and show to the user only part of the available
configuration fields, and it is using the search box at the left side of the page
(just above the basic / advanced mode button). When you enter a text in that box
and click on the search button, all the configuration fields containing the provided
text in its name will be shown in boxes at the centre of the page.
6. Configurations is a drop down menu which lists the different configurations saved
in files and also provides access to the page that let the user add or delete new
configurations. See chapter 5.2 for a detailed description of this option.
7. Network Nodes provides access to the page that let the user view a table of
the nodes detected in your network. The table is created using the information
extracted from the HSR/PRP supervision messages. See chapter 5.3 for a detailed
description of this option.
8. The SoCe logo at the top left corner of the page can be clicked to return to the
main page at any time.
9. The icon at the top right corner of the page can be used to show / hide the right
side device configuration menu (see figure 5.4). This menu contain the options
described below:
Account: Change the password assigned to the different roles supported by
the tool (see chapter 4.2).
Logout: Exit the web configuration interface.
IP address: Change the IP address assigned to the internal CPU of the
SMARTZynq PCIe HSR/PRP/PTP (see chapter 4.1).
System: View the logs and system information.
Downloads: Download links to files stored at the NIC that can be usefull
for the user. For example, you can download from here the MIB definition
needed to access the configuration fields using SNMP.
Language: Upload to the NIC new translations files used by the web inter-
face.
Firmware: Upload system updates to the NIC (see chapter 5.4).
Language: Upload to the NIC a new block diagram (schematic) shown by
the web interface at the centre of the main page.
Reboot: Reboot the system of the SMARTZynq PCIe HSR/PRP/PTP .
At the top of the page there is a drop down menu identified as Configurations.
This menu shows the list of the previouly saved configurations. Clicking on any of these
configuration names will cause the configuration to be applied to the system and a con-
firmation message will be displayed if the configuration has been applied without errors.
As stated in this message, you may need to reload the page to see the changes.
The Default configuration name is special, because this is the configuration that
the system applies to the HW blocks each time it is booted.
The first option of the drop down menu is not a configration name but an access to
the page that let the user save the current configuration to a file, or delete previously
saved configurations (see figure 5.5). To save the current configuration we only have
to type a name and click the send button. If no name is given, it will be saved as
Default configuration. To delete an existing configuration click on the trash icon at
the right of its name.
Inside the Firmware updates page you have to click on the button labelled as
Choose..., and using the file selection dialog select the file provided by SoCe . Af-
ter that you have to click on the button labelled as SEND and wait for the file to be
upload and the patch applied. In some cases a reboot of the system could be needed.
The ethernet device interface is identified as /dev/eth0 by the Operating System run-
ning inside the SMARTZynq PCIe HSR/PRP/PTP .
Below, the steps to follow for connecting to the SMARTZynq PCIe HSR/PRP/PTP are
explained.
Step 1: Open a new connection in the terminal emulation program and select the
option TCP/IP. Write the IP address of the device (192.168.2.64 by default) and
select SSH (version 2). Click OK.
Step 2: A window with a security warning will probably appear. Click Continue.
Step 3: Now you will be asked to authenticate with a user name and a password.
The default login for the SMARTZynq PCIe HSR/PRP/PTP is:
User name: linaro
Password: linaro
Step 5: Once you have accessed with the default password, you can change it by
using the following Linux command:
The tool can also be used to save at any moment the values of all the configuration
fields in a configuration file, and apply that configuration file to the system when we
want.
A first step to understand the tool can be to get the help using soce config reg -h
command. Figure 6.6 shows the help menu.
One of the main options is to list the design functionalities as it will let the user to
filter the number of registers to be shown. Figure 6.7 shows the different functionalites
once executed soce config reg -l command.
These are the listed functionalities by default in the SMARTZynq PCIe HSR/PRP/PTP :
port conf. It shows some configuration fields related to ethernet ports that dont
fit in other categories.
For instance, in order to access to the redundancy functionality fields the command
would be soce config reg -m redundancy. The listed fields are shown in the figure 6.8
First of all, different statistics fields are listed using the command below:
soce config reg -m stats
First of all, redundancy configuration fields are displayed using the command below:
soce config reg -m redundancy.
Then, working mode is changed writing a 0 (for PRP) or 1 (for HSR) in the hsr prp
field using:
soce config reg -f HPS-MES:hsr prp -w 0.
Data can be written both in decimal (1) or in hexadecimal (0x1). Figure 6.10 shows
the execution of both commands.
The available configurations can be listed using the command below (see figure 6.11):
soce config reg -z
After the system configuration has been modified, the new configuration can be saved
using the command: soce config reg -s <Config Name>.
The figure 6.12 shows how to save a new configuration as Config3. It also shows the
updated configuration files list.
If user wants these changes to be loaded when the systems is rebooted, the
new configuration must be saved with the name Default.
At any moment the user can apply to the system a previously saved configuration
executing: soce config reg -a <Config Name>.
Table 7.2 shows the configuration fields for the PTP functionality of Port[0,1,2,A,B].