View previous topic :: View next topic |
Author |
Message |
evaradharaj
Joined: 15 Jan 2009 Posts: 60
|
Accessing Serial Port using VB |
Posted: Thu Sep 02, 2010 1:09 am |
|
|
Hi,
I am using VB for accessing the serial port data from two PIC 16f877a . I connected the serial ports of the two microcontrollers through the relay to RS232.
There I'm getting problem. I can't set the particular time delay because those two microcontrollers are separate units with different power supplies. So I have to synchronize the communication using PC only.
So I need the help in VB coding. If one microcontrollers data received then I'm giving one start information to the second microcontroller through serial port. And the second microcontroller will start the communication. This is my plan.
I opened the ports properly and the microcontroller datas are received properly. But my doubt is how to compare the string and open the output port of the string (based on condition I need to open the serial port Tx pin(3rd pin)).
Please give me the solution. _________________ embedding innovation in engineers |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Thu Sep 02, 2010 10:47 am |
|
|
Use the forum's search page to search the Code Library forum for:
There is sample code for a serial bootloader application, written in VB.
Remember, this is not a VB forum. We can point you to an old post,
but it's not a support forum for VB programming. To find a forum,
use Google to search for:
|
|
|
jbmiller
Joined: 07 Oct 2006 Posts: 73 Location: Greensville,Ontario
|
|
Posted: Thu Sep 02, 2010 3:46 pm |
|
|
Not clear about the relay you're talking about. I've used QuickBasic for years with 2 comports, using interrrupts and it works very, very well.
Never gave VB a thought, went to Delphi as it produces tight, fast, stand alone code and NOT dependent on MS DLLs, etc.
But as PCM pointed out, you're in the wrong forum. Best to go to a VB site and ask there. Lots of people still use it just not me !
Jay |
|
|
|