how to control the COM-port from driver

device driver

    Sponsored Links

    Next

  • 1. Adding a Standard TCP/IP Port Programmatically
    Basically, what I'm trying to do is add a standard tcp/ip printer port dynamically, without the need for user interaction. I have succeeded in getting this to work using XcvData in the DDK but I need to be able to do this on Windows NT 4, which does not have this function. I have tried using AddPortEx but I have only managed to add a local port this way. Is this the right function to use? Can someone give me an example of how to add a Standard TCP/IP printer port? Thanks, VB
  • 2. Plugging USB audio device to a PC which already has sound card
    Hello, I need to make a decision to develop a device without experience of writing a device driver. The goal of the device is to capture audio output(not input) of PC. Simple and ignorant solution is, connect output of existing sound card to input of the device using a cable. But it doesn't seem attractive. I hope the device can work as an USB audio device for the aspect of Windows. it is possible to be a audio device without playing, isn't it? And what is the behavior of Windows when USB audio device is plugged on the PC which already has sound card? I expect it to replace existing sound card when it is plugged and return to existing one when it is removed. If it's not done by automatically, is it configurable using user mode application? Is its result consistent, predictable or controllable from USB audio device driver? Thank you for reading it.
  • 3. audio device driver
    Hello, I am new in device driver development. I have a device that is similar to a USB sound card. As I designed it, I used a USB hardware that comes with a priority driver. The driver let me to communicate with the hardware from a user mode application. Now I want to write a driver so windows can detect it as an audio device. What is the best way to do this? Do I need to write a kernel mode device driver? Can I write a service to do this? Any help appreciated Best regards
  • 4. setting up checked environment
    I'm in the process of setting up a test machine with just checked OS and HAL. Question: If I do this with XP Pro SP1a media, will installation of SP2 overwrite the kernel or HAL files? Are these three files ever part of service packs? TIA, Bob
  • 5. Question about WorkItem function & WHQL tests
    When I read Oney's book, it say ExXxxWorkItem can't pass WHQL tests even have run-time check to avoid calling ExXxxWorkItem in Windows 2k or later system.(Chapter 14) Is it true for WHQL tests NOW?

how to control the COM-port from driver

Postby QW5kcmV5 » Sat, 29 May 2004 14:41:03 GMT

hello
i've opened COM-port with ZwCreateFile. now i in need to control the port. how it can be done
thank you.

Similar Threads:

1.USB to Virtual COM Port: Keeping COM Port Existing

When I unplug a device from COM2, COM2 remains an existing port to any  
application which is looking for COM ports.  But when I unplug a device  
 from a USB port which is being used to simulate COM4, COM4 ceases to  
exist. This causes problems with my use of the Palm HotSync Utility,  
COMutator.

Does anyone know a cure for this problem?  Say, a USB to virtual COM port  
driver which maintains the fiction of the COM port even when there is no  
device plugged into the USB?

Thanks -- Vincent

2.how to write a serial port driver (UART 0) COM Port

Hi I am new to Device driver development and I have to write a
COM port (UART 0) driver for chip DM6443.
I need get started help on it.

I have questions like

1)do I have to create more then one DLL project on one will do

2) what functions do I have to define in it

Note:- I have been through DM6443 document.

3.USB COM port as Serial port

Hi All,
Here is my problem. I have a USB modem which is exposing COM port with
help of usbser.sys. Everything works fine with microsoft Dial up connectoid.
When I am trying to use the USB COM port as normal serial port interface
through serial IOCTLs it fails. I am accessing the port from my WDM driver.
I am able to get the device object pointer of the port and able to 
dereference the same, but I am failing in configuring the port like set 
baudrate.

Can I use this USB com port exposed in modem as normal serial port
interface.

Waiting for expert's comments. All your comments are welcome.

Thanks in Advenace,
Cyril

4.Virtual Serial Port changing COM port number

I've developed a virtual serial port driver (UMDF) which uses the
built in SerialPortPropPageProvider (msports.dll) to display the port
property page.

If the COM port number has been changed in the property page, what is
the best way of restarting/reconfiguring the driver?
From what I can tell, one option is to create a co-installer to look
out for the DIF_PROPERTYCHANGE and then restart the driver. Is that
the normal way of doing it?


5.GPIO Port Control Using WinDDK Genport.sys Driver

I am trying to gain control over a GPIO port on an (AMD) ATI IXP SB600 SMBus
controller (PCI VendorID: 1002 DevID: 4385)

using the Genport.sys, Gpdwrite.exe, and Gpdread.exe utilities supplied in
the Windows Driver Develpment Kit (2008 edition

No. 6001.18001). I have successfully built the genport driver and the
read/write utilities according to the instructions

included with the source code, and by following the instructions for
installing the driver on Windows XP using the "Add

Hardware" wizard and the Genport.inf file (with the appropriately modified
Logical Configuration, see below), the driver

appears to have been installed, and in Device Manager is assigned the use of
I/O ports 0xB80 and 0xB81, in accordance with

the AMD SB600 Register Reference Manual, which identifies the SMBus
controller as Bus:0, Device:20, Function:0, and the GPIO3

I/O port that I am interested in as being controlled through register 0x80.

************************ fragment from Genport.inf:
[PortIO.LC0]
ConfigPriority=DESIRED
;IOConfig=300-303(3ff::)  ; 10 bit decode ranging from 300 - 303
IOConfig=b80-b81(fff::)  ; 16 bit decode ranging from b80 - b81
**************************

AMD supplies a utility called ATI Register Explorer which gives you the
ability to "peek and poke" values on the various PCI

devices present on the system (at least the AMD ones). Using this utility I
can successfully control the behavior of the

GPIO3 port on the 4385 (SMBus Controller) by poking the words "0A70" and
"0A78" to port 0x80, but when I do the same using

the Gpdwrite.exe utility, the GPIO3 port does not respond. The command line
I use is:

gpdwrite -w 0 a78

and the command line response is:

Wrote data a78 to port 0

but the GPIO3 port shows no sign of change. (I have an LED connected, which
does respond when I use the AMD Register Explorer

utility.)

Other utilities I have run corroborate the identity, port assignments, and
values of the hardware, and the command line

responses seem to indicate that I am close, but something is just not
working. Does anyone have any suggestions about what

might be wrong or missing in my approach?


6. serial port communication/control

7. Accessing IO port Resource Controlled by Motherboard Resource

8. RS232 port control?



Return to device driver

 

Who is online

Users browsing this forum: No registered users and 73 guest