473,800 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

serial port DTR/DSR handshaking with system.io.ports

hi,

i'm using serial port functionality provided by .net framework 2.0
using system.io.ports .
Is there anyway that i can set DTR/DSR handshaking?
Regards,

Bandu

Jul 25 '07 #1
3 14826

Certainly, just add a SerialPort control to your form and then set the
DtrEnable property to true. Here is a list of all the properties you can use
on the SerialPort control:

http://msdn2.microsoft.com/en-us/lib...es(VS.80).aspx

Adrian.
--
[Please mark my answer if it was helpful to you]


"Bandu" wrote:
hi,

i'm using serial port functionality provided by .net framework 2.0
using system.io.ports .
Is there anyway that i can set DTR/DSR handshaking?
Regards,

Bandu

Jul 26 '07 #2

I forgot to mention that there is also a property for the DsrHolding
setting. The SerialPort control has both DtrEnable and DsrHolding properties
that you can set.

Adrian.
--
[Please mark my answer if it was helpful to you]


"Adrian Voicu" wrote:
>
Certainly, just add a SerialPort control to your form and then set the
DtrEnable property to true. Here is a list of all the properties you can use
on the SerialPort control:

http://msdn2.microsoft.com/en-us/lib...es(VS.80).aspx

Adrian.
--
[Please mark my answer if it was helpful to you]


"Bandu" wrote:
hi,

i'm using serial port functionality provided by .net framework 2.0
using system.io.ports .
Is there anyway that i can set DTR/DSR handshaking?
Regards,

Bandu
Jul 26 '07 #3
DtrEnable and DsrHolding didn't do Dtr/Dsr hardware handshaking.
Is that .net only support Cts/Rts Hardware handshaking?

Regards,

Bandu

On 26 Jul, 04:34, Adrian Voicu <AdrianVo...@di scussions.micro soft.com>
wrote:
I forgot to mention that there is also a property for the DsrHolding
setting. The SerialPort control has both DtrEnable and DsrHolding properties
that you can set.

Adrian.
--
[Please mark my answer if it was helpful to you]

"Adrian Voicu" wrote:
Certainly, just add a SerialPort control to your form and then set the
DtrEnable property to true. Here is a list of all the properties you can use
on the SerialPort control:
http://msdn2.microsoft.com/en-us/lib...s.serialport_p...
Adrian.
--
[Please mark my answer if it was helpful to you]
"Bandu" wrote:
hi,
i'm using serial port functionality provided by .net framework 2.0
using system.io.ports .
Is there anyway that i can set DTR/DSR handshaking?
Regards,
Bandu- Hide quoted text -

- Show quoted text -

Jul 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
16544
by: Blaine HIlton | last post by:
I'm trying to send data over the serial port using PHP and Serproxy. I downloaded Serproxy from http://www.lspace.nildram.co.uk/freeware.html. From the manual page at http://www.php.net/function.fopen I was able to find sample code using Serproxy and directly opening the serial port. My application requires the use of multiple serial ports on other computers so I'm left with only Serproxy. The code I am using is"
1
5443
by: mimisam | last post by:
hi, I am using Win XP and writing an application to check POS devices (printer and cash drawer).In the application I need to choose the port which the device is connected to. If the port chosen is wrong or the device is off power, a communication error message should be displayed. I am using FileOutputStream and FileInputStream to send and receive data from the ports. When parallel port is used, I got the feedback when the printer is...
13
4834
by: Al the programmer | last post by:
I need to access the serial ports on my webserver from an asp.net page. I have no problem accessing the serial ports from a windows form application, but the code doesn't work in asp.net. I have been told it is not possible to access the serial ports from asp.net. The application is used to control custom hardware. The hardware is connected to a PC through serial ports. Our customer wants to control the hardware from a remote...
1
10920
by: henrycortezwu | last post by:
Hi All, I'm trying to connect to a virtual port (COM19, OUTGOING, "Bluetooth Serial Port") using VS2005 System.IO.Ports. When I ran the ff code below here's what happens. 1) VS2005 Compiles w/o errors 2) My Nokia 6600 prompted me the message "Accept Connection request from DEMON?" note: DEMON is my computers name. 3) Using my Nokia 6600, I hit the button that refers to the "Yes"
0
9820
by: pandi | last post by:
Hi, I am using a check scanner.It has functions which gives output like image ,checknumber. i am using serial port to get this output in my coding. My problem is i am not able to read the display image ( which i scanned using scanner ). I used serail port as well as MSCOMM control.but i couldn't get the output. Can anybody knows this and help me to sort out my problem -- it is very urgent here i am using windows 2000 professional OS and i...
5
9503
by: LongBow | last post by:
Hello, Is there a way, in .NET, to determine what are the avialable Serial (Communications) Ports on a Windows OS and is there a way to determine that port isn't being use other than attempting to opening the Serial Port and catching the associated exception? Thanks If there isn't a way to determine the Serial Port within .NET I would be willing, I guess, to use a WinAPI is that was the only way.
2
3794
by: evle | last post by:
haw to read data from an Infrared Infrared Remote Control
2
3962
by: joaquimfpinto | last post by:
Dear All, I made an app in c# that uses several serial ports. For the serial ports I use a pnp Sunix board, some with 8 serial ports other with 4 or even 2 serial ports. Whenever I use the development computer I don't have ay problem with my application.
3
11638
by: naveen.sabapathy | last post by:
Hi, I am trying to use virtual serial ports to develop/test my serial communication program. Running in to trouble... I am using com0com to create the virtual ports. The virtual ports seem to be working fine when I test it with Hyperterminal . I am using the example program that comes with pyserial, as below. --------------- import serial
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10504
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10274
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10251
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10033
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5606
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2945
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.