You are here: CSP Developer’s Guide: Internet Protocol > 3 IP Network Interface Series 2 Card > Querying the Ethernet Link Status, Duplex Type and Speed

Querying the Ethernet Link Status, Duplex Type and Speed

Overview

This feature allows the host to query the following on the IP Network Interface Series 2 card at any time:

• the Ethernet Link status

• speed and duplex type of the NET1, NET2 and NET3 ports located on the Multi-Function Media I/O card

When restarting the host application or initiating a new host application, the Ethernet port status needs to be known. Based on that status, appropriate actions could be taken like taking all the channels OOS in that card. whenever the Ethernet link goes down, an Alarm message is sent to the host. When the Ethernet link comes back up, an Alarm Clear message is sent.

API Messages

This feature queries the individual Ethernet link status, speed and duplex type for the IPN Series 2 card using the Card Query message (0x0083). These are reported in the Card Query response. They will also be reported in the Card Status Report (0x00A6) message whenever the card comes in service after a reset.

The Card Status Query message response is obtained from the CSP when the host sends a Card Status Query message.

The Card Status Query message is obtained when the IPN Series 2 card comes into service after reset.

The message response in the Card Status Query (0x0083) and Card Status Report (0x00A6) messages will use bytes 12, 13 and 14 of the Hardware Configuration to report the status of ports NET1, NET2 and NET3 located on the Multi-Function Media I/O card.

Card Status Query Response

Card Information (Field length varies)

Hardware Configuration (16 bytes)

IP Network Interface Series 2 card

Data[12] Port 1 Info

Bit 0 Ethernet Link Status
0 = Ethernet link down
1 = Ethernet link up

Bit 1 Duplex Type
0 = Half Duplex
1 = Full Duplex

Bit 2-3 Speed
0 0 = 10Mbps
0 1 = 100Mbps
1 0 = 1000Mbps

Bits [4-7] Reserved (should be zero)

Data[13] Port 2 Info

Bit 0 Ethernet Link Status
0 = Ethernet link down
1 = Ethernet link up

Bit 1 Duplex Type
0 = Half Duplex
1 = Full Duplex

Bit 2-3 Speed
0 0 = 10Mbps
0 1 = 100Mbps
1 0 = 1000Mbps

Bits [4-7] Reserved (should be zero)

Data[14] Port 3 Info

Bit 0 Ethernet Link Status
0 = Ethernet link down
1 = Ethernet link up

Bit 1 Duplex Type
0 = Half Duplex
1 = Full Duplex

Bit 2-3 Speed
0 0 = 10Mbps
0 1 = 100Mbps
1 0 = 1000Mbps

Bits [4-7] Reserved (should be zero)

Data[15] Reserved (set to 0)

Card Status Report Message

Card Information (Field length varies)

Hardware Configuration (16 bytes)

IP Network Interface Series 2 card

Data[12] Port 1 Info

Bit 0 Ethernet Link Status
0 = Ethernet link down
1 = Ethernet link up

Bit 1 Duplex Type
0 = Half Duplex
1 = Full Duplex

Bit 2-3 Speed
0 0 = 10Mbps
0 1 = 100Mbps
1 0 = 1000Mbp

Bits [4-7] Reserved (should be zero)

Data[13] Port 2 Info

Bit 0 Ethernet Link Status
0 = Ethernet link down
1 = Ethernet link up

Bit 1 Duplex Type
0 = Half Duplex
1 = Full Duplex

Bit 2-3 Speed
0 0 = 10Mbps
0 1 = 100Mbps
1 0 = 1000Mbp

Bits [4-7] Reserved (should be zero)

Data[14] Port 3 Info

Bit 0 Ethernet Link Status
0 = Ethernet link down
1 = Ethernet link up

Bit 1 Duplex Type
0 = Half Duplex
1 = Full Duplex

Bit 2-3 Speed
0 0 = 10Mbps
0 1 = 100Mbps
1 0 = 1000Mbp

Bits [4-7] Reserved (should be zero)

Data[15] Reserved (set to 0)

Internet Protocol. Part of the TCP/IP family of protocols used to route messages and tracks the addresses of nodes.
The protocol used in most local area PC networks. Typically, most Ethernet networks support data transmission speeds up to 10 Mbps, but 100 Mbps is also possible.
Out of Service
The point in the Excel platform where a DS0 connects to a network. Also known as a "socket."