Help:Problem encounter while developing driver for the Rea tek 8139(B)
Rajesh <[email protected]> Wed, 15 Nov 2006 11:37:47 +0530
| Newsgroups | gmane.linux.drivers.realtek.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --===============2092735563== Content-Type: multipart/alternative; boundary="------------050304020607070609000402" This is a multi-part message in MIME format. --------------050304020607070609000402 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Hello, I have developed a device driver for RTL8139(C) LAN card on DOS system.=20 I have few problems using the driver. *How this Driver is tested?* I had a REMOTE PC (Windows 2000) in which I was running the TCP Server=20 application, which could respond to any client connection. The driver,=20 which I developed on DOS system hereafter called as TEST PC, was one of=20 the client side, which request for the connection with the server. *Polling* method is used for reception / transmission of data. =20 The following steps are performed for the data transfer between the TEST = PC and the REMOTE PC. 1) Address has to be resolved between the TEST PC and REMOTE PC=20 before any data transfer takes place. To do this, =B7 ARP (Address Resolution Protocol) Request is sent from the TES= T=20 PC to the REMOTE PC. TEST PC activates Transmit interrupt flag when the=20 data is successfully sent out to the line. =B7 On receiving the ARP Request, the REMOTE PC sends the ARP=20 Response to the TEST PC. TEST PC activates Receive Interrupt flag on=20 successfully reception of the data. Address resolution on the REMOTE PC=20 could be checked with the *arp --a* command from the command prompt. 2) Data is sent/ received between the TEST PC and REMOTE PC. * * * * *What is the problem encountered?* TEST PC initially seems to be communicating with the REMOTE PC without=20 any problems. But, later when I updated the code making few changes, the communication = between the TEST PC and REMOTE PC was not happening. The addition of the = code does not affect the functionality of the driver. The following observation was made: =B7 TEST PC while sending ARP Request activates Transmit interrupt= =20 flag. =B7 Address is not resolved on the REMOTE PC. This is checked with= =20 the arp --a command. =B7 TEST PC do not activates Receive Interrupt flag, which=20 indicates no data from the REMOTE PC is received. The same setup was also tried with the point-to-point connection between = the two systems using cross cable. =20 Thank you and regards, Rajesh.V #########################################################################= ##################################################################### The information transmitted is intended for the person or entity to which= =20it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, copying or other use= =20of, or taking any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If y= ou have received this in error, please contact the sender and delete the material from your system. Accord Software & Systems Pvt. Ltd. (ACCOR= D) is not responsible for any changes made to the material other than those made by ACCORD or for the effect of the changes on the meaning= =20of the material. #########################################################################= ##################################################################### --------------050304020607070609000402 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hello,<br> <br> I have developed a device driver for RTL8139(C) LAN card on DOS system. I have few problems using the driver.<br> <br> <p class="MsoNormal" style="line-height: 150%;"><b><span style="">How this Driver is tested?<o:p></o:p></span></b></p> <p class="MsoNormal" style="line-height: 150%;"><span style="">I had a REMOTE PC (Windows 2000) in which I was running the TCP Server application, which could respond to any client connection. The driver, which I developed on DOS system hereafter called as TEST PC, was one of the client side, which request for the connection with the server.<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: 150%;"><b><span style="">Polling</span></b><span style=""> method is used for reception / transmission of data.<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: 150%;"><span style=""><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></span></p> <p class="MsoNormal" style="line-height: 150%;"><span style="">The following steps are performed for the data transfer between the TEST PC and the REMOTE PC.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="">1)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style="">Address has to be resolved between the TEST PC and REMOTE PC before any data transfer takes place.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.25in; line-height: 150%;"><span style="">To do this,<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style="">ARP (Address Resolution Protocol) Request is sent from the TEST PC to the REMOTE PC. TEST PC activates Transmit interrupt flag when the data is successfully sent out to the line.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.75in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style="">On receiving the ARP Request, the REMOTE PC sends the ARP Response to the TEST PC. TEST PC activates Receive Interrupt flag on successfully reception of the data. Address resolution on the REMOTE PC could be checked with the <b>arp –a</b> command from the command prompt.<o:p></o:p></span></p> <p class="MsoNormal" style="margin-left: 0.5in; text-indent: -0.25in; line-height: 150%;"><!--[if !supportLists]--><span style="">2)<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style="">Data is sent/ received between the TEST PC and REMOTE PC.<o:p></o:p></span></p> <p class="MsoNormal" style="line-height: 150%;"><b><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></b></p> <b><!--[endif]--> <o:p></o:p></b> <p class="MsoNormal" style="line-height: 150%;"><b>What is the problem encountered?<o:p></o:p></b></p> <p class="MsoBodyText">TEST PC initially seems to be communicating with the REMOTE PC without any problems. </p> <p class="MsoNormal" style="line-height: 150%;">But, later when I updated the code making few changes, the communication between the TEST PC and REMOTE PC was not happening. <span style="color: black;">The addition of the code does not affect the functionality of the driver. </span></p> <p class="MsoBodyText">The following observation was made:</p> <p class="MsoBodyText" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]-->TEST PC while sending ARP Request activates <span style="">Transmit interrupt flag.<o:p></o:p></span></p> <p class="MsoBodyText" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style="">Address is not resolved on the REMOTE PC. This is checked with the arp –a command.</span></p> <p class="MsoBodyText" style="margin-left: 0.5in; text-indent: -0.25in;"><!--[if !supportLists]--><span style="font-family: Symbol;">·<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> </span></span><!--[endif]--><span style="">TEST PC do not activates Receive Interrupt flag, which indicates no data from the REMOTE PC is received.<o:p></o:p></span></p> <p class="MsoBodyText" style="margin-left: 0.25in;"><span style="">The same setup was also tried with the point-to-point connection between the two systems using cross cable. <o:p></o:p></span></p> <p class="MsoBodyText"><span style=""><!--[if !supportEmptyParas]--> <!--[endif]--><o:p></o:p></span></p> Thank you and regards,<br> Rajesh.V<br> <HR> <P align=left><FONT face=Verdana size=1><FONT color=#646464>The information transmitted is intended for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination, copying or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete the material from your system. Accord Software & Systems Pvt. Ltd. (<STRONG><A href="http://www.accord-soft.com">ACCORD</A></STRONG>) is not responsible for any changes made to the material other than those made by <STRONG><A href="http://www.accord-soft.com">ACCORD </A> </STRONG>or for the effect of the changes on the meaning of the material.</FONT> </FONT></P> <DIV align=center> <HR> </DIV> <P></P> </body> </html> --------------050304020607070609000402-- --===============2092735563== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ realtek mailing list [email protected] http://www.scyld.com/mailman/listinfo/realtek --===============2092735563==--