industrialNETworXnetx

matias

matias

| 15.10.2008 | 12:22 | 5 replies

Ethernet driver

Hi, i want to use ethernet driver on my image of WinCe 5.0.
I have included the catalog component "NetxEthernetDriver" Port1 because i run a KITL connection on Port0, then i want to use Port 1 to establish a telnet connection to wince device.
The problem is that Port1 don't work, when i attach a network cable both led are OFF.

Thanks in advance
Matias

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 15.10.2008 | 13:28

Make sure you also include the "netX Ethernet Driver" from the catalog.
Adding "Port1" item is not enough.

You also need to make sure, that NDIS and "Wired Local Area Network" stuff is included.

Regards

MT

matias

matias

| 15.10.2008 | 13:58

I have included this components into the image:
NetxEthernetDriver
Port1
Network Driver Architecture (NDIS)
NDIS User mode i/o driver
NDIS packet capturing DLL
Wired Local area network (802.3, 802.5)

The kitl connection is ok (but inthis case is loaded a bootloader level driver) but port1 doesn't work.
The led on the connector seem to be weakly powered, end emitt a weakly light.

Matias

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 15.10.2008 | 14:18

Did your Windows CE image finish starting up? The Ethernet driver is loaded very late after startup, and if you enable KITL, the image waits until a KITL connection is establish, before continuing booting.

When connected with the Platform Builder through KITL, you should see debug messages in the Debug window. Is there anything about the netX ethernet driver, which may give information why it does not start?

Can you take a look at "ReleaseDir\ce.bib" and "ReleaseDir\reginit.ini" to see, if the driver was really included in the image. There should be something like that:

reginit.ini

[HKEY_LOCAL_MACHINE\Comm\NETXETH]
        "DisplayName"="NetX Ethernet Driver"
        "Group"="NDIS"
        "ImagePath"="NetX_Eth.dll"

[HKEY_LOCAL_MACHINE\Comm\NETXETH\Linkage]
"Route"=multi_sz:"NETXETH0","NETXETH1"

;--------- XC Port 1 configuration -----------
[HKEY_LOCAL_MACHINE\Comm\NETXETH1]
"DisplayName"="NetX Ethernet Driver"
"Group"="NDIS"
"ImagePath"="NetX_Eth.dll"

[HKEY_LOCAL_MACHINE\Comm\NETXETH1\Parms]
"BusNumber"=dword:0
"BusType"=dword:0
"InterruptNumber"=dword:11
"IoBaseAddress"=dword:1 ;this is the xmac/xpec number (0-3)
"IoMultiplier"=dword:1
"SysIntr"=dword:22

[HKEY_LOCAL_MACHINE\Comm\NETXETH1\Parms\TcpIp]
"UseZeroBroadcast"=dword:0

"EnableDHCP"=dword:0
"IpAddress"="192.168.21.165"
"Subnetmask"="255.255.255.0"
"TcpWindowSize"=dword:800000

ce.bib

; @CESYSGEN IF CE_MODULES_NDIS
    netx_eth.dll        c:\WINCE500\PBWorkspaces\NXHMIDC\RelDir\NetXBSP_ARMV4I_Release\netx_eth.dll               NK  SH
; @CESYSGEN ENDIF CE_MODULES_NDIS

Regards

MT

matias

matias

| 15.10.2008 | 15:08

Thank you very much MT, the problem was that the reginit.ini doesn't include te NetxEth.reg setting.
Now it works fine.

Thanks
Matias

M T

M T

Hilscher Gesellschaft für Systemautomation mbH

| 15.10.2008 | 15:48

Good to hear.

I hope you did not enter these values by hand into this file. This should normally done through the Catalog Item "Port 1". This file will be regenerated each Sysgen, so modifying it, can only be a temporary solution.

Did you do a "Clean Sysgen" or was there anything else missing in your Workspace?

Regards

MT

Login