|
-
Apr 15th, 2010, 08:32 AM
#1
Thread Starter
Lively Member
serialport
Hi,
I need to create a program that sends & receives data via rs232.
I have done it many times in VB6 with easy.
Why is so hard in vs2008?
I managed to send (or so I think).
Because I can see the LEDs flashing on my board connected to the pc.
But I do not get any response back from the board.
The reason I do it in vs2008, is because I need the program to run on a PDA.
But to understand how rs232 works in vs2008, I just created a simple program for the pc to talk to my board.
for example, I send:
Code:
SerialPort1.Write(Chr(2) & "I" & Chr(3))
and I expect back (into a textbox), a hex string 25 characters long.
The board also send data to rs232 sometimes, without me requesting it.
How do I do it?
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|