English
Language : 

W3150 Datasheet, PDF (47/59 Pages) List of Unclassifed Manufacturers – WIZnet’s Online Technical Support
In case of CHAP,
1. Make 64 byte array of below structure with the information of CHAL_ID, CHALLENGE and
Password.
<----------------------------------------- 64 byte ----------------------------------------->
CHAL_ID(1) PWD(variable)
CHALLENGE(variable) 0x80 0x00 Padding
2. Perform the MD5 process with the array of above 1, and make the authentication code of 16byte.
3. Read the value of Socket 0 TX Write Pointer Register(S0_TX_WR) and find out starting address of
data to transmit.
4. Write the data in below form on the TX Memory.
0x10 Authentication code(16)
ID(variable)
5. Increase the value of Socket 0 TX Write Pointer Register (S0_TX_WR) as much as the data size
(1 + the length of authentication code(16) + length of ID).
6. Give SEND command to Socket n Command Register(Sn_CR).
Success?
It can be checked as below if user authentication is succeeded or not.
1. If the CON bit value of Socket 0 Interrupt Register(S0_IR) is ‘1’, authentication is succeeded. (In this
case, if interrupt of Socket 0 is activated, interrupt will occur. Refer to Interrupt Register (IR),
Interrupt Mask Register (IMR), and Socket 0 Interrupt Register (S0_IR).)
2. If TIMEOUT bit value of Socket 0 Interrupt Register(S0_IR) is ‘1’, authentication is failed. (In this
case, if interrupt of Socket 0 is activated, interrupt will occur. Refer to Interrupt Register (IR),
Interrupt Mask Register (IMR), and Socket n Interrupt Register (Sn_IR))
3. In case of authentication success, information will be saved in PPPoE corresponding register(Refer
to “Saving Information”) and connection will be closed.
4. In case of authentication failure, it checks if there is another authentication method except for PAP
or CHAP, and if the information of ID and Password is correct, and tries from the first step. If the
cause of failure is another authentication, W3150 can not support.
© Copyright 2005 WIZnet Co., Inc. All rights reserved.
ìêñëç