由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - problem with C# serial port programming
相关主题
PC 9-bit Serial Communication如何实现serialization 到底该怎么理解啊?
Does C++ have serializer and deserialzierakka能和C++程序通信吗?
Boost.Serialization no longer maintained?谁了解Linux串口的驱动?
如何修改程序的背景,或者让同一程序有不同的title bar text?bit count in value from 0 - 255
[合集] java怎么这么怪呀?[转载] Mac C++ program question
现在Window下写GUI的话用什么库?谢谢大家!One More Question! Re: C 程序计算结果
boost serialization的问题贡献一下:本版上搜集的 Google 面试题 (转载)
goodbug号称是做互联网的,我不是一道c++ 题, 找出duplicate numbers
相关话题的讨论汇总
话题: c#话题: rs232话题: port
进入Programming版参与讨论
1 (共1页)
q*****z
发帖数: 191
1
Hi
I am a newbie in C# and somehow have to develop a software that communicates
with an external device that has a RS232 interface.
I have some experiences with RS232 programming but none of them involves
handshacking.
The parameters of this device is as follows:
baudrate: 1200
parity: odd
data bits: 7
stop bits: 1
handshacking: Xon/Xoff
If I use the hyperterminal in windows, it responds ok. But I cannot get the
C# program to work.
Here is the part of the settings in the program:
SerialPort Bala
c**t
发帖数: 2744
2
did you check if the serialport had been initialized?

communicates

【在 q*****z 的大作中提到】
: Hi
: I am a newbie in C# and somehow have to develop a software that communicates
: with an external device that has a RS232 interface.
: I have some experiences with RS232 programming but none of them involves
: handshacking.
: The parameters of this device is as follows:
: baudrate: 1200
: parity: odd
: data bits: 7
: stop bits: 1

q*****z
发帖数: 191
3
Yeah, I used a try...catch structure in the port openning procedure. It
should be openned properly, otherwise it should complain. Is it what you are
asking?
In addition to that, the program communicate ok with other devices that does
not require handshack...
Thanks.
1 (共1页)
进入Programming版参与讨论
相关主题
一道c++ 题, 找出duplicate numbers[合集] java怎么这么怪呀?
How to encode YYYY-MM-DD?现在Window下写GUI的话用什么库?
Embedded C 编程问题求助boost serialization的问题
error while building gccgoodbug号称是做互联网的,我不是
PC 9-bit Serial Communication如何实现serialization 到底该怎么理解啊?
Does C++ have serializer and deserialzierakka能和C++程序通信吗?
Boost.Serialization no longer maintained?谁了解Linux串口的驱动?
如何修改程序的背景,或者让同一程序有不同的title bar text?bit count in value from 0 - 255
相关话题的讨论汇总
话题: c#话题: rs232话题: port