Interfacing rs232 with visual c++

S

Thread Starter

shiba

Dear Mr/Mrs/Ms

I'm having a problem about sending data and receiving data with serial port using Visual C++. So if anyone would like to help me? i'm very pleased for your concern.
 
Hi,

I am not sure what APIs you are using to communicate. To do serial i/o on windows, you cannot use the inport/outport calls. These will not work on winNT and up. These however will work on Win 95/98.

You will have to be more specific on the kinds of problems you are having and the device you are trying to interface with for anyone to help.

Nevertheless, many a times, its a problem of setting the correct baud rate, parity, data bits, stop bits and handshake that can lead to incorrect behaviour. Are you sure you have set all these correctly in your program. These must match the device.

Secondly, you must know the format of what to send and receive from the device - the PROTOCOL that the device uses. Do you have that.

Lastly, are you sure you have the correct serial cable for the device. Theres a couple of ways a serial cable can be designed - I hope you have the correct cable setup.

For more help - you may contact me directly at [email protected]

regards
- Punita
 
u 1 2 have the source code for sending and receiveing thru serial port??
what version of window u using??
what type of data u 1 2 sent and receive??
can give more details ??
 
D
Hello

Could you please help. I would like to interface to the serial port using Visual C++ 6.0. I want to it to work with the Windows 2000 operating system.

e-mail: [email protected]

Regards

Dhavan
 
Greetings.

Could you please write me if you can direct me to get a visual c++ program to access RS-232C port? I want to try sending a command to an instrument and receive data from it for further processing the data. I am using Visual C++ 6.0 running on MS Windows 2000. Please write me to the following address:

[email protected]

Thank you for your consideration.

best regards
R.Bala
 
Hello do any one have the code for visual c++ program to access RS-232C port? I am also trying to sending a command to an instrument and receive data from it for further processing the data. I am using Visual C++ 6.0 running on MS Windows 98. Please write me to the following address

[email protected]

bye
best regards
deepthi
 
Hi all,

I am also writing GUI Application using Visual C++. Can anyone tell me if I should use Opencom(), ReadCom() or something else to access RS-232? Please send me to the following email address:
[email protected]

Best Regards,
Ben
 
Hi all,

I am also writing serial port communication program to access RS-232? Can anyone send me a sample program? Please send me to the following email address:
[email protected]

Best Regards,
Yildiz :)
 
i have VC++.net... and i don't know how to connect a DAC card that i design with a microcontroler... using VC++.net

Thank you.
 
I need to acquire data from RS232 which connected to a GSM modem. right now I'm using windows hyper terminal but I want to use the Visual C++ 6.0 instead. so can any one just give me a hint where to start?
 
hello

i need a sample code to send commands through rs232 port and receive back. these commands are sent to gyroscope. please send me. i desparetely need it.
 
Top