C Board  

Go Back   C Board > General Programming Boards > Networking/Device Communication

Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2005, 11:27 AM   #1
Registered User
 
Join Date: Nov 2005
Posts: 0
Win32 Serial Communication & DeviceIoControl()

Is it possible to use the DeviceIoControl() function to send commands directly to the driver for a COM port?

I am developing a time sensitive Win32 serial port application where I periodically need to change the parity of my serial data. Calls to Get_Comm_State() & Set_Comm_State() to update the parity are taking too long. I observed (using a serial port monitor) that these get and set methods do alot of unnessecary things like seting the baud rate etc.

It would be nice if I could use the DeviceIoControl function along with the IOCTL_SERIAL_SET_LINE_CONTROL command (or similar) to quickly change the parity from within my application. Am I living in a fantasy world or is this a possibility?

Many thanks

B_B
button_basher is offline   Reply With Quote
Old 12-01-2005, 09:37 PM   #2
Registered User
 
Join Date: Sep 2004
Location: California
Posts: 3,020
I don't believe there is any device control code which can be used to change the parity on a COM device.
bithub is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Duplex communication thro serial port Priyachu Networking/Device Communication 1 05-30-2009 04:24 AM
Serial port Communication vin_pll C++ Programming 23 01-07-2009 09:32 AM
Please help with serial communication problem - Long spdylude Windows Programming 3 04-06-2005 09:41 AM
Serial communication packets Roaring_Tiger C Programming 3 04-26-2003 08:33 AM
Serial Communications with win32 api Blackthorne C Programming 1 01-26-2003 12:45 PM


All times are GMT -6. The time now is 06:35 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22