English
Language : 

W3150 Datasheet, PDF (46/59 Pages) List of Unclassifed Manufacturers – WIZnet’s Online Technical Support
PPPoE SERVER?
It should be checked if it is connected with PPPoE SERVER as below.
1. Check if RECV value of Socket n Interrupt Register(Sn_IR) is ‘1’ . (In this case if the interrupt of
Socket n is activated, interrupt occurs. Refer to Interrupt Register (IR), Interrupt Mask Register
(IMR), Socket n Interrupt Register (Sn_IR).)
Auth Type?
Authentication type can be checked as below.
1. Read the value of Authentication Type Register in PPPoE(PATR).
2. If PATR value is 0xC023, PAP process is performed, if 0xC223, CHAP process is done.
Received Challenge?
In case of CHAP, Challenge value from PPPoE SERVER can be used for authentication process.
1. Data structure received in RX Memory is as below.
0xC2 0x23 0x01 CHAL_ID(1) Don’t care (2)
CHAL_LEN(1) CHALLENGE(variable)
2. Read the value of Socket 0 RX Read Pointer Register(Sn_RX_RR), and find out the starting
address of data received.
3. Read the value of Socket 0 RX Received Size Register(Sn_RX_RSR), and find out the size of data
received.
4. Read 7bytes from the address of above ‘2’.
5. Save CHAL_ID and CHAL_LEN.
6. Read and save the CHALLENGE value as much as CHAL_LEN of above 4.. The starting address is
(value of above 2. + 7)
7. Increase the value of Socket n RX Read Pointer Register(Sn_RX_RR) as much as the received
data of above 3..
8. Give RECV command to Socket n Command Register(Sn_CR).
Authentication
In case of PAP,
1. Read the value of Socket 0 TX Write Pointer Register (S0_TX_WR), and find out the starting
address to write data to transmit.
2. Write the data in below form on the TX Memory.
ID length (1) ID (variable)
Password length (1)
Password (variable)
3. Increase the value of Write Pointer Register (S0_TX_WR) as much as the data size
(1+ID_LEN+1+PWD_LEN).
4. Give SEND commands to Socket n Command Register(Sn_CR).
© Copyright 2005 WIZnet Co., Inc. All rights reserved.
ìëñëç