f**o 发帖数: 12685 | 1 c#
using System.IO;
using System.IO.Ports;
using System.Threading;
namespace RS232RVR
{
public partial class Form1 : Form
{
private delegate void SetTextDeleg(string data);
public Form1()
{
InitializeComponent();
SettingRS232();
}
public void SettingRS232 ()
{
try
{
SerialPort mySerialPort = new SerialPort("COM6");
mySerialPort.BaudRate = 9600;
m... 阅读全帖 |
|
a**n 发帖数: 97 | 2 我觉得你说的就是我先要实现的。具体怎么得到Core Dump or Ram Dump呢?我自己看
了点GDB,是不是要先加上-g的switch,然后怎么做呢?等到target死掉后,GDB Host
也不能通过serialport 或者Ethernet的GDB Host连接target乐。
感谢!感谢! |
|
q*****z 发帖数: 191 | 3 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 | 4 did you check if the serialport had been initialized?
communicates |
|