0x0002 – NIC

0x8nn0 - Module Header

SubIndex

Type

Name

Value

Type

Access

00

VAR

Len

 

UNSIGNED16

read-only

01

VAR

Address

0x0002 00nn

UNSIGNED32

read-only

02

VAR

Type

NIC

VISIBLE STRING

read-only

03

VAR

Name

Adapter Name

VISIBLE STRING

read-only

04

VAR

Dev Type

0x0002 2710

UNSIGNED32

read-only

0x8nn1 – NIC Properties

0x0002 – NIC 1:

Ist diese Komponente mehrfach auf dem System vorhanden, wird für jede eine eigene Modulinstanz erzeugt.

0x0002 – NIC 2:

Die Änderung dieser Einstellungen erfordert jeweils eine aktive Netzwerkverbindung für den gewählten Ethernet/EtherCAT-Adapter. Ohne aktive Netzwerkverbindung können also keine Parameter (vor-) eingestellt werden.

SubIndex

Type

Name

Requirements

Type

Access

00

VAR

Len

 

UNSIGNED16

read-only

01

VAR

MAC Address

 

VISIBLE STRING

constant

02

VAR

IPv4 Address1

 

VISIBLE STRING

read-write

03

VAR

IPv4 Subnet Mask1

 

VISIBLE STRING

read-write

04

VAR

DHCP

 

BOOLEAN

read-write

05

VAR

IPv4 Default Gateway1,2

 

VISIBLE STRING

read-write

06

VAR

IPv4 DNS Servers

not for WinCE

VISIBLE STRING

read-write

07

VAR

Virtual Device Name

only for Windows

VISIBLE STRING

read-write

08

VAR

IPv4 DNS Servers Active

only for TC/BSD and TC/RTOS

VISIBLE STRING

read

1 Dieses ist der aktuell aktive Wert.
Bei WinCE kann ein Reboot erforderlich sein, um einen korrekten Wert zu erhalten. U. U. liefert WinCE ohne Reboot noch den vorherigen Wert!

2 WinCE: Eine „Read“-Operation hat, abhängig vom DHCP Status, den Rückgabewert „DefaultGateway“ oder „DhcpDefaultGateway“.

0xBnn0 – IP Release/Renew Address (Service Transfer Object)

InputData

Type

Name

UNSIGNED8

DummyByte

0xBnn1 – Set IP, Subnet and Default Gateway

InputData

Type

Name

UNSIGNED32

cbInputData1

UNSIGNED32

IpLen

UNSIGNED32

SubnetLen

UNSIGNED32

GatewayLen

char[IpLen]

szIP

char[SubnetLen]

szSubnet

char[GatewayLen]

szGateway

1 Count of bytes of all input data including cbInputData (size of all values of table InputData)