application note 10.17 - home power line support for the...

15
Revision 1.0 (01-22-2009) SMSC AN 10.17 APPLICATION NOTE AN 10.17 Home Power Line Support for the LAN91C111 1 Introduction This document describes how SMSC's family of 10/100 Ethernet MAC/PHY solutions can be configured to allow both Ethernet "10/100Base-t" as well as "Home Power Line" or "HomePlug" technology solutions for multiple physical layer connectivity. Interoperability results will also be discussed showing how the SMSC LAN91C111 and Home Power Line Manufacturers such as Cogency and Intellon's physical layer solutions function together. Cogency's power line integrated circuit and Intellon EK51MX HomePlug evaluation kit, in conjunction with SMSC LAN91C111 Ethernet MAC, makes use of existing in-home AC electrical wires for transmitting digital data at high speed. The connection medium between the Mac and Home Plug PHY is the MII (Medium Independent Interface). The AC power line network can be a harsh environment for data communication. To compensate, Cogency and Intellon uses orthogonal frequency-division multiplexing (OFDM) in the 4.5 to 21 MHz band and a sophisticated forward error correction scheme to provide reliable data transmission. Network security risks are addressed by encrypting data to create a private Logical Network in the home if the customer requires. Password-bound encryption keys, private to the home network, are used to encrypt each message as it is sent and decrypt data as it is received. Even if data is intercepted outside the home, it remains secure. OFDM-based physical layer support, which is compatible with the HomePlug Power line specification, and is the industry standard for power line home networking is used in this solution. SMSC's Ethernet MAC, with Cogency's PHY solution, is ideal for a broad range of networking, entertainment and computer products such as network cards, PC motherboards, network adapters, cable and DSL modems, MP3 players, jukeboxes, and Internet appliances. SMSC's Ethernet MAC with both an integrated 10/100 Base-T Phy with Cogency or Intellon's "Home Plug" technology permits data transfer rates at 10 Mbps Ethernet-class speeds using ordinary in-home electrical wires as well as 100Mbps Ethernet-class speeds using standard CAT-5 twisted pair wiring. The diagram shown in Figure 1.1 Typical Application on page 2, describes a system configuration that is using the SMSC LAN91C111 and Cogency's CS1100 DSP PHY and CS5100 AFE chip set. This solution would allow a system designer to create a solution that can connect to a standard 10/100 CAT5 Ethernet LAN as well as connecting a network via the building's Power Line infrastructure. Note that this solution is utilizing the Cogency's external Home Plug PHY and the internal PHY of the SMSC LAN91C111 for its 10/100Base-t solution. Both networks cannot be used at the same time. The SMSC LAN91C111 MAC interfaces to the internal PHY or external Home Plug PHY via a MII interface. No bridging or router functionality is possible in this design.

Upload: others

Post on 06-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

APPLICATION

AN 10.17

Home Power Line Support for the LAN91C111

Revision 1.0 (01-22-2009) SMSC AN 10.17

1 IntroductionThis document describes how SMSC's family of 10/100 Ethernet MAC/PHY solutions can beconfigured to allow both Ethernet "10/100Base-t" as well as "Home Power Line" or "HomePlug"technology solutions for multiple physical layer connectivity.

Interoperability results will also be discussed showing how the SMSC LAN91C111 and Home PowerLine Manufacturers such as Cogency and Intellon's physical layer solutions function together.

Cogency's power line integrated circuit and Intellon EK51MX HomePlug evaluation kit, in conjunctionwith SMSC LAN91C111 Ethernet MAC, makes use of existing in-home AC electrical wires fortransmitting digital data at high speed. The connection medium between the Mac and Home Plug PHYis the MII (Medium Independent Interface).

The AC power line network can be a harsh environment for data communication. To compensate,Cogency and Intellon uses orthogonal frequency-division multiplexing (OFDM) in the 4.5 to 21 MHzband and a sophisticated forward error correction scheme to provide reliable data transmission.Network security risks are addressed by encrypting data to create a private Logical Network in thehome if the customer requires. Password-bound encryption keys, private to the home network, areused to encrypt each message as it is sent and decrypt data as it is received. Even if data isintercepted outside the home, it remains secure.

OFDM-based physical layer support, which is compatible with the HomePlug Power line specification,and is the industry standard for power line home networking is used in this solution.

SMSC's Ethernet MAC, with Cogency's PHY solution, is ideal for a broad range of networking,entertainment and computer products such as network cards, PC motherboards, network adapters,cable and DSL modems, MP3 players, jukeboxes, and Internet appliances.

SMSC's Ethernet MAC with both an integrated 10/100 Base-T Phy with Cogency or Intellon's "HomePlug" technology permits data transfer rates at 10 Mbps Ethernet-class speeds using ordinary in-homeelectrical wires as well as 100Mbps Ethernet-class speeds using standard CAT-5 twisted pair wiring.

The diagram shown in Figure 1.1 Typical Application on page 2, describes a system configuration thatis using the SMSC LAN91C111 and Cogency's CS1100 DSP PHY and CS5100 AFE chip set. Thissolution would allow a system designer to create a solution that can connect to a standard 10/100CAT5 Ethernet LAN as well as connecting a network via the building's Power Line infrastructure.

Note that this solution is utilizing the Cogency's external Home Plug PHY and the internal PHY of theSMSC LAN91C111 for its 10/100Base-t solution. Both networks cannot be used at the same time. TheSMSC LAN91C111 MAC interfaces to the internal PHY or external Home Plug PHY via a MII interface.No bridging or router functionality is possible in this design.

NOTE

Page 2: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

Figure 1.1 Typical Application

In addition, Intellon Corporation produces a family of IC devices for low-cost, high-speed in-homecommunications. The main product consists of a Base band and Analog Front-End (AFE) IC. TheINT51MX SIMPLETM Embedded PowerPacketTM Module is a Single Inline Package (SIP) device thatincorporates the INT51X1 IC and required support circuitry to provide a single component solution forthe addition of PLC functionality to a product. The block diagram utilizing this Home Power Linesolution with SMSC's Ethernet Controller is shown in Figure 1.2 Intellon / SMSC Home Power andHome Network Solution Block Diagram on page 3.

MII

EmbeddedProcessor

CogencyCS1100

DSP/PHY

10/100 Base-t HomeNetwork

SMSCLAN91C111

Local Bus

CogencyCS5100MixedSignalAFE

HomePlug

EnabledPowerSupply

Network Appliance

Revision 1.0 (01-22-2009) 2 SMSC AN 10.17APPLICATION NOTE

Page 3: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

Figure 1.2 Intellon/SMSC Home Power and Home Network Solution Block Diagram

2 Intellon Interoperability TestingFor this interoperability test, the evaluation board with SMSC LAN91C111 MAC and Intellon PHY mustbe configured. The device driver software must be modified to work with the hardware configuration.

The hardware components in this test include:

SMSC LAN91C111 Engineering Board ASSY 6181 Rev-A

IntellonEK51MX HomePlug evaluation kit

The software components in this test include:

Modified SMSC LAN91C111 Device Driver for Windows 2000/XP

2.1 Test Configuration

2.1.1 Hardware Configuration

The SMSC LAN91C111 Engineering Board ASSY 6181 Rev-A (SMSC LAN91C111 evaluation board)is used as an ISA 10/100 Ethernet MAC plus 10/100base-t evaluation board and is used to integratewith Intellon's EK51MX HomePlug evaluation kit for the test. Figure 2.1 Intellon and SMSC BoardLayout on page 4, shows the configuration for the tests done.

MII

EmbeddedProcessor

IntellonINT51X1

10/100 Base-t HomeNetwork

SMSCLAN91C111

Local Bus

MixedSignalAFE

HomePlug

EnabledPowerSupply

Network Appliance

INT51MX SIMPLETMEmbedded

PowerPacketTM Module

Power Line

SMSC AN 10.17 3 Revision 1.0 (01-22-2009)APPLICATION NOTE

Page 4: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

The Intellon EK51MX HomePlug evaluation kit includes Intellon's SIMPLE Evaluation Module, PHYInterface Board, Host/DTE Interface Board and PowerPacket DC Wall Adapter.

The PHY Interface Board is connected to SMSC LAN91C111 evaluation board through the MIIinterface via the cable connector shown in the diagram. Note that no modifications to the MII interfaceis required in this design.

The Intellon solution main product consists of a Baseband and Analog Front-End (AFE) IC. This IC isavailable in a 144 pin µBGA package. The designer takes this IC and adds the required supportcircuitry to develop a power line communication (PLC) device.

The INT51MX SIMPLETM Embedded PowerPacketTM Module is a Single Inline Package (SIP) devicethat incorporates the INT51X1 IC and required support circuitry to provide a single component solutionfor the addition of PLC functionality to a product. SMSC's Ethernet controller, in conjunction withIntellon's PLC, offers a designer a Home Power Line and standard Home Network 10/100 Base-tsolution in a simple design.

The analog front-end circuitry for the PLC module is optimized for performance in the applications thatuse a direct connection to AC line (wall- module) or use Intellon DC coupler adapter (INT51M0) orapplications running a standard 6' AC line cord (INT51M6). The two modules share the same PCB andGerber layout files.

The PCM module is configured in its INT51MX PHY Option: An MII (IEEE 802.3u 1995, Paragraph 22)or GPSI PHY interface for interconnection to micro controllers or Ethernet controllers. The INT51MX(PHY Option) is selected by connecting MODE0 pin to VSS.

Figure 2.1 Intellon and SMSC Board Layout

Page 5: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

The following modifications must be done on the PHY Interface Board in order to enable the EK51MX'sPHY mode and the MII interface:

1. A male MII connector is soldered on the PHY Interface Board.

2. Connect Pin 31 (MODE0) to Pin 34 (VSS) on Host Module Connector to enable the PHY mode.

3. Connect Pin 32 (MDI_SPIS_N) to Pin 6 (VDDH) on Host Module Connector to enable the MIIinterface.

On the SMSC LAN91C111 evaluation board side, the J3 jumper must be set to 2-3 to enable the +5Von the MII connector. Please refer to the picture shown in Figure 2.2 Close-Up View of Intellon JumperConfiguration on page 5, for additional details.

EK51MX is connected directly to the MII interface of the LAN91C111.

The internal PHY of LAN91C111 is disabled by setting the EXT PHY bit of MAC Configuration Register(Bank 1, Offset 0). This will enable the external PHY, the PHY of Intellon's EK51MX.

The PHY address of the EK51MX is set as 01000b.

Figure 2.2 Close-Up View of Intellon Jumper Configuration

2.1.2 Software Configuration

The LAN91C111 evaluation board device driver for Windows 2000/XP is modified to disable the internalPHY on LAN91C111 and enable the external PHY, which is Intellon's PHY. Auto-negotiation is alsodisabled, since Intellon's PHY does not support auto-negotiation.

SMSC AN 10.17 5 Revision 1.0 (01-22-2009)APPLICATION NOTE

Page 6: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

The following is an implementation sample of the initialization module. Assume the Windows XP NDISMiniport model is used in the sample.

BOOLEAN InitializeLink(MINIPORT_ADAPTER *Adapter){ USHORT temp; int timeout;

DebugPrint(DEBUG_LEVEL_TRACE, ("Initializing Link …\r\n"));

// Enable external PHY DebugPrint(DEBUG_LEVEL_TRACE, ("Enabling external PHY...\r\n")); NdisRawWritePortUshort( Adapter->IOBase + BANK_SELECT, (USHORT) 1 ); NdisRawReadPortUshort( Adapter->IOBase + BANK1_CONFIG, &temp); temp |= 0x0200; NdisRawWritePortUshort( Adapter->IOBase + BANK1_CONFIG, temp );

WritePhyRegister(Adapter->IOBase, 0, 0); // Clear PHY control register

// Reset the PHY DebugPrint(DEBUG_LEVEL_TRACE, ("Resetting the PHY...\r\n")); WritePhyRegister(Adapter->IOBase, 0, 0x8000); // Set Reset bit in PHY Control register

timeout = 5; // 5-second timeout while(timeout--) { temp = ReadPhyRegister(Adapter->IOBase, 0); // If Reset bit is cleared, reset is done. if (temp & 0x8000) break; Delay1mS(500); } DebugPrint(DEBUG_LEVEL_TRACE, ("End of Resetting the PHY.\r\n")); // Disable AutoNeg from 91C111 M AC; // Set speed to 10Mbps; // Set duplex mode to Half Duplex; // Set LED to "Transmit/Receiving Packet Occurred" NdisRawWritePortUshort( Adapter->IOBase + BANK_SELECT, (USHORT) 0 ); NdisRawWritePortUshort( Adapter->IOBase + BANK0_RPCR, 0x0010); // Check link status timeout = 5; // 5-second timeout while(timeout--) { temp = ReadPhyRegister(Adapter->IOBase, 1); // If LNK bit is set, link is up. if (temp & 0x0004) break; Delay1mS(500); }

// Check if link is set up in time and tell upper layer the link status. if(timeout < 1) { DebugPrint(DEBUG_LEVEL_TRACE, ("Link is down.\r\n")); Adapter->LinkStatus = MEDIA_DISCONNECTED; } else { Adapter->LinkStatus = MEDIA_CONNECTED; DebugPrint(DEBUG_LEVEL_TRACE, ("Link is up.\r\n")); }

DebugPrint(DEBUG_LEVEL_TRACE, ("End of Initializing Link.\r\n")); return TRUE;}

Revision 1.0 (01-22-2009) 6 SMSC AN 10.17APPLICATION NOTE

Page 7: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

2.1.3 Test application and Setup

Evaluation version of the network test software SpeedTest is used for the throughput testing. Thefollowing is the test setup.

Figure 2.3 Test Setup

The modified Windows driver for SMSC LAN91C111 evaluation board is installed on Host #1.

Two kinds of tests are performed: Ping test and throughput test.

The Ping test is using Windows Ping command ping from either computer to the other one and Ping on both directions at the same time.

The throughput test is done using a evaluation version of SpeedTest software to measure the throughput of the transmission.

The SpeedTest Server is installed and started on Host #2, while the SpeedTest Client is installed and started on the Host #1.

The SpeedTest tests the network throughput by connecting to the SpeedTest server, transferring a file and measuring the speed of the transfer. A compressed file is used for more accurate results.

2.2 Test Results

2.2.1 Ping Test

For the test environment discussed above, Ping, in single shot mode, passed. The "Continuous Pings"test, which includes "Continuous Pings from both sides", performed well with no errors.

2.2.2 Throughput Test

The following diagram shown in Figure 2.4 Screen Capture of the SpeedTest Client on page 8, is thescreen capture of the SpeedTest Client, which shows the measured throughput of the transfer of a16MB compressed file, a 1.2MB compressed file from SpeedTest Server to Client. The throughputaveraged on the order of 660 Kbytes/s.

The following diagram shown in Figure 2.5 Additional Screen Capture of the SpeedTest Client onpage 8 Additional Screen Capture of the SpeedTest Client, is another screen shot for the test fortransferring a larger file - 88MB compressed file.

Power Strip

Host #1 Windows 2000 with SpeedTest Server with SMSC LAN91C111 evaluation board and Intellon EK51MX evaluation kit

Host #2 Windows 2000 with SpeedTest Client with LinkSys Instant PowerLine Ethernet 10/100 Bridge (Model PLEBR10)

SMSC AN 10.17 7 Revision 1.0 (01-22-2009)APPLICATION NOTE

Page 8: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

Figure 2.4 Screen Capture of the SpeedTest Client

Figure 2.5 Additional Screen Capture of the SpeedTest Client

Revision 1.0 (01-22-2009) 8 SMSC AN 10.17APPLICATION NOTE

Page 9: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

3 Cogency Interoperability TestingIn order to verify and validate that SMSC's Ethernet MAC/PHY solution operates correctly withCogency's DSP PHY and AFE solution, testing and validation was done.

For interoperability testing, the following modifications and changes needed to be made:

1. SMSC's evaluation board with SMSC LAN91C111 MAC and Cogency PHY was modified andconfigured through a special MII cable.

2. The SMSC LAN91C111 device driver software was be modified to work with this specific hardwareconfiguration.

3. Typically, a specific Power Supply module is used to allow the sourcing of power while creating asignal to and from the Power supply and Cogency AFE PHY interface. For test purposes, thisspecial power supply was not used. Instead, direct connection between AFE's was done.

The hardware components in this test include:

SMSC LAN91C111 Engineering Board ASSY 6181 Rev-A

Cogency HomePlug Module evaluation board

The software components in this test include:

Modified SMSC LAN91C111 Device Driver for Windows 2000/XP

3.1 Test ConfigurationThe diagram shown below describes the connection configuration between the SMSC LAN91C111 andthe Cogency PHY.

The CS1100 HomePlug Module is connected directly to the MII interface of the LAN91C111. In this MIIinterface connection, it requires that the CS1100 share the MII with the internal PHY of LAN91C111.The single clock output of the CS1100 (MII_CLK) drives both RX_CLK and TX_CLK from one sourceto LAN91C111.

With this application, the only PHY present on the MII is the PHY of CS1100. Driving the MII clocksfrom one source presents no problem.

SMSC AN 10.17 9 Revision 1.0 (01-22-2009)APPLICATION NOTE

Page 10: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

Figure 3.1 MII Interface Mode Connection with LAN91C111

The internal PHY of LAN91C111 is disabled by setting the EXT PHY bit of MAC Configuration Register(Bank 1, Offset 0). This will enable the external PHY, the PHY of Cogency CS1100.

The bit 1, 2 and 3 of the Configuration Strap Settings on the HomePlug module are set to 101b.Therefore the PHY address is selected as 01000b.

Two identical boards are configured and connected through a two-pin connector built-in on theCogency HomePlug module. According to Cogency's technical contact, for the interoperability test, thespecial HomePlug enabled power supply is not needed, since the signaling on the two-pin cable isidentical to that on the power line.

3.2 Hardware ConfigurationThe image shown in Figure 3.2 SMSC - Cogency Test Environment on page 11, shows the SMSCLAN91C111 Engineering Board ASSY 6181 Rev-A (The name "SMSC LAN91C111 evaluation board").This board is an ISA evaluation board that also has an external MII interface. This interface is used tointegrate with Cogency's HomePlug evaluation board used in the tests performed.

Cogency HomePlug evaluation board includes Cogency's Piranha™ SE chipset, a complete analog frontend with coupling and local DC-DC power conversion.

The HomePlug module is connected to SMSC LAN91C111 evaluation board through this MII interface.The SMSC LAN91C111 reference design interfaces to the Host via a ISA style bus connector. Thediagram also shows the MII interface connection (White Wires) as well as the Home Plug emulationwires running between the two ISA cards.

T X _ C L K M II_ C L K

R X _ C L K

T X _ E N

T X _ E R O p e n

T X D 0

T X D 1

T X D 2

T X D 3

R X _ D V

R X _ E R

R X D 0

R X D 1

R X D 2

R X D 3

C R S

C O L

M D CM D IO

L A N 9 1 C 1 1 1M II

In te rfa c e

L A N 9 1 C 1 1 1E v a lu a tio n

B o a rdM A C / P H Y

T X _ E N

T X D 0

T X D 1

T X D 2

T X D 3

R X _ D V

R X _ E R

R X D 0

R X D 1

R X D 2

R X D 3

C R S

C O L

M D C

M D IO

C S 1 1 0 0H o m e P lu g

M o d u leM A C / P H Y

Revision 1.0 (01-22-2009) 10 SMSC AN 10.17APPLICATION NOTE

Page 11: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

Figure 3.2 SMSC - Cogency Test Environment

Figure 3.3 Close-Up View of SMSC PartNumber Reference ISA Card Wired via MII

3.3 Software ConfigurationThe SMSC LAN91C111 evaluation board device driver for Windows 2000/XP was modified to:

1. Disable the internal PHY on the SMSC LAN91C111

2. Enable the external PHY, which is Cogency's Home Power Line PHY

SMSC AN 10.17 11 Revision 1.0 (01-22-2009)APPLICATION NOTE

Page 12: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

3. Auto-negotiation was disabled (Cogency's PHY does not support auto-negotiation)

The following is an implementation sample of the initialization module. The Windows XP NDIS Miniportmodel is used in the sample.

BOOLEAN InitializeLink(MINIPORT_ADAPTER *Adapter){ USHORT temp; int timeout;

DebugPrint(DEBUG_LEVEL_TRACE, ("Initializing Link …\r\n"));

// Enable external PHY DebugPrint(DEBUG_LEVEL_TRACE, ("Enabling external PHY...\r\n")); NdisRawWritePortUshort( Adapter->IOBase + BANK_SELECT, (USHORT) 1 ); NdisRawReadPortUshort( Adapter->IOBase + BANK1_CONFIG, &temp); temp |= 0x0200; NdisRawWritePortUshort( Adapter->IOBase + BANK1_CONFIG, temp );

WritePhyRegister(Adapter->IOBase, 0, 0); // Clear PHY control register

// Reset the PHY DebugPrint(DEBUG_LEVEL_TRACE, ("Resetting the PHY...\r\n")); WritePhyRegister(Adapter->IOBase, 0, 0x8000); // Set Reset bit in PHY Control register

timeout = 5; // 5-second timeout while(timeout--) { temp = ReadPhyRegister(Adapter->IOBase, 0); // If Reset bit is cleared, reset is done. if (temp & 0x8000) break; Delay1mS(500); } DebugPrint(DEBUG_LEVEL_TRACE, ("End of Resetting the PHY.\r\n"));

// Disable AutoNeg from 91C111 M AC; // Set speed to 10Mbps; // Set duplex mode to Half Duplex; // Set LED to "Transmit/Receiving Packet Occurred" NdisRawWritePortUshort( Adapter->IOBase + BANK_SELECT, (USHORT) 0 ); NdisRawWritePortUshort( Adapter->IOBase + BANK0_RPCR, 0x0010);

// Check link status timeout = 5; // 5-second timeout while(timeout--) { temp = ReadPhyRegister(Adapter->IOBase, 1); // If LNK bit is set, link is up. if (temp & 0x0004) break; Delay1mS(500); }

// Check if link is set up in time and tell upper layer the link status. if(timeout < 1) { DebugPrint(DEBUG_LEVEL_TRACE, ("Link is down.\r\n")); Adapter->LinkStatus = MEDIA_DISCONNECTED; } else { Adapter->LinkStatus = MEDIA_CONNECTED; DebugPrint(DEBUG_LEVEL_TRACE, ("Link is up.\r\n")); }

DebugPrint(DEBUG_LEVEL_TRACE, ("End of Initializing Link.\r\n"));

return TRUE;

}

Revision 1.0 (01-22-2009) 12 SMSC AN 10.17APPLICATION NOTE

Page 13: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

The high level application used was the evaluation version of the network test software "SpeedTest" isused for the throughput testing. The software can be found at the following URL:

http://www.raccoonworks.com/Products.htm

The following is the test setup:

Figure 3.4 Test Setup1. Install the modified Windows driver for SMSC LAN91C111 evaluation board with HomePlug module

is installed on both computers

2. Run the "Ping" test and "throughput" test

3. The Ping test uses the Windows Ping command ping from either computer to the other one andPing on both directions at the same time.

4. The throughput test is done using a evaluation version of SpeedTest software to measure thethroughput of the transmission. The SpeedTest Server is installed and started on one computer,while the SpeedTest Client is installed and started on the other one. The SpeedTest tests thenetwork throughput by connecting to the SpeedTest server, transferring a file and measuring thespeed of the transfer. A compressed file is used for more accurate results.

3.4 Test Results

3.4.1 Throughput Test

The following is the screen capture of the SpeedTest Client, which shows the measured throughput ofthe transfer of a 1.16MB compressed file and a 3.9MB compressed file from SpeedTest Server toClient.

2-Wire Cable Connecting

HomePlug Modules

Windows 2000 with SpeedTest Server

Windows 2000 with SpeedTest Client

SMSC AN 10.17 13 Revision 1.0 (01-22-2009)APPLICATION NOTE

Page 14: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

Figure 3.5 Speed Test Client

The throughput for a 1.16MB file transfer is 470.12KB/s and for a 3.86MB file is 498.68KB/s.

4 SummaryThis document described how SMSC's family of 10/100 Ethernet MAC/PHY solutions can beconfigured to allow both Ethernet "10/100Base-t" as well as "Home Power Line" or "HomePlug"technology solutions for multiple physical layer connectivity.

Interoperability results that were discussed showed how the SMSC LAN91C111 and Home Power LineManufacturers such as Cogency Semiconductor and Intellon's physical layer solutions can functiontogether.

Cogency's power line integrated circuit and Intellon EK51MX HomePlug evaluation kit, in conjunctionwith SMSC LAN91C111 Ethernet MAC, via the MII (Media Independent Interface), will make use ofexisting in-home AC electrical wires for transmitting digital data at high speed.

The AC power line network can be a harsh environments for data communication as well as standard10/100 Base-t physical layer routing within a home utilizing CAT5 cable offering flexible wiring options.

5 Revision History

NAME

REVISIONLEVEL AND

DATE SECTION/FIGURE/ENTRY CORRECTION

Marcom Revision 1.0(01-22-2009)

Standard SMSC Formatting

Revision 1.0 (01-22-2009) 14 SMSC AN 10.17APPLICATION NOTE

Page 15: Application Note 10.17 - Home Power Line Support for the …ww1.microchip.com/downloads/en/AppNotes/en562723.pdf · 2014-03-03 · Cogency CS1100 DSP/PHY 10/100 Base-t Home Network

Home Power Line Support for the LAN91C111

80 ARKAY DRIVE, HAUPPAUGE, NY 11788 (631) 435-6000, FAX (631) 273-3123

Copyright © 2009 SMSC or its subsidiaries. All rights reserved.Circuit diagrams and other information relating to SMSC products are included as a means of illustrating typical applications. Consequently, complete information sufficient forconstruction purposes is not necessarily given. Although the information has been checked and is believed to be accurate, no responsibility is assumed for inaccuracies. SMSCreserves the right to make changes to specifications and product descriptions at any time without notice. Contact your local SMSC sales office to obtain the latest specificationsbefore placing your product order. The provision of this information does not convey to the purchaser of the described semiconductor devices any licenses under any patentrights or other intellectual property rights of SMSC or others. All sales are expressly conditional on your agreement to the terms and conditions of the most recently datedversion of SMSC's standard Terms of Sale Agreement dated before the date of your order (the "Terms of Sale Agreement"). The product may contain design defects or errorsknown as anomalies which may cause the product's functions to deviate from published specifications. Anomaly sheets are available upon request. SMSC products are notdesigned, intended, authorized or warranted for use in any life support or other application where product failure could cause or contribute to personal injury or severe propertydamage. Any and all such uses without prior written approval of an Officer of SMSC and further testing and/or modification will be fully at the risk of the customer. Copies ofthis document or other SMSC literature, as well as the Terms of Sale Agreement, may be obtained by visiting SMSC’s website at http://www.smsc.com. SMSC is a registeredtrademark of Standard Microsystems Corporation (“SMSC”). Product names and company names are the trademarks of their respective holders.

SMSC DISCLAIMS AND EXCLUDES ANY AND ALL WARRANTIES, INCLUDING WITHOUT LIMITATION ANY AND ALL IMPLIED WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND AGAINST INFRINGEMENT AND THE LIKE, AND ANY AND ALL WARRANTIES ARISING FROM ANY COURSEOF DEALING OR USAGE OF TRADE. IN NO EVENT SHALL SMSC BE LIABLE FOR ANY DIRECT, INCIDENTAL, INDIRECT, SPECIAL, PUNITIVE, OR CONSEQUENTIALDAMAGES; OR FOR LOST DATA, PROFITS, SAVINGS OR REVENUES OF ANY KIND; REGARDLESS OF THE FORM OF ACTION, WHETHER BASED ON CONTRACT;TORT; NEGLIGENCE OF SMSC OR OTHERS; STRICT LIABILITY; BREACH OF WARRANTY; OR OTHERWISE; WHETHER OR NOT ANY REMEDY OF BUYER IS HELDTO HAVE FAILED OF ITS ESSENTIAL PURPOSE, AND WHETHER OR NOT SMSC HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

SMSC AN 10.17 15 Revision 1.0 (01-22-2009)APPLICATION NOTE