Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



Help Required in Device Driver

rajesh.v
11-14-2006, 12:47 AM
Hello,

I have developed a device driver for RTL8139(B) LAN card on DOS system. I have few problems using the driver.
My driver initially seems to be communicating with the remote system without any problems.
But, later when I updated the code making few changes it seems to be not responding. The addition of the code merelely affects the functionality of the driver.

Later, it was observed that the previous working code doesn't seems to be responding when the any of the unwanted code was removed.

Could anyone please tell me what could be the problem in this case???

Regards,
Rajesh.V

N3051M
11-14-2006, 09:37 AM
i'm not good with programing, but have you considered a hardware fault? try an os with some drivers like Ubuntu live or knoppix etc and see if it still works there or not..

Ad
11-14-2006, 09:37 AM
  

rajesh.v
11-14-2006, 11:32 PM
I have a situation where i have to develop a driver using RTL8139(B) ethernet adapter and have to use DOS OS. I don't have other options...

rajesh.v
11-20-2006, 06:33 AM
Hello,

I am developing a device driver as part of Data Link Layer/ Physical Layer, which is responsible to communicate with the LAN Card (RealTek RTL8139© card) using DOS OS.

How is this Driver tested?
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.
Polling method is used for reception / transmission of data.

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 before any data transfer takes place.
To do this,
· 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.
· 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 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 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:
· TEST PC while sending ARP Request activates Transmit interrupt flag.
· Address is not resolved on the REMOTE PC. This is checked with the arp –a command.
· TEST PC do not activates Receive Interrupt flag, which 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.

Note: It was also observed that the previous working code doesn't seem to be responding when any of the redundant code is removed.


The following configuration is used:
Configuration:
Operating System: DOS
Processor: Intel 0x86 (Pentium III)
Speed: 700 MHz
RAM: 128MB
HDD: 20GB
Ethernet Card: Realtek RTL8139(C)


***I believe there may be possible memory corruption (Stack/Heap). If this is True, then is there any method to trace this.

Please can anyone tell me what could be the solution for the problem.

howard_hopkinso
11-20-2006, 08:43 AM
Hello and welcome to Techspot.

Threads merged. Please don`t open any more threads for this. Thanks.

Regards Howard :wave: :wave:

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

Sony working on digital store for music, movies, books

More Tech News

  
 Software Downloads

Norton Virus Definitions 2003-07 November 20, 2009

AVG Anti-Virus Updates November 20, 2009

Norton Virus Definitions 2008-09 November 20, 2009

avast! Virus Definitions November 20, 2009

McAfee SuperDAT Update 5808

Kaspersky Anti-Virus Update November 20, 2009

Google SketchUp 7.1.6087

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.