CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Accessing Serial Port using VB

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
evaradharaj



Joined: 15 Jan 2009
Posts: 60

View user's profile Send private message Visit poster's website

Accessing Serial Port using VB
PostPosted: Thu Sep 02, 2010 1:09 am     Reply with quote

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

View user's profile Send private message

PostPosted: Thu Sep 02, 2010 10:47 am     Reply with quote

Use the forum's search page to search the Code Library forum for:
Quote:
Visual Basic

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:
Quote:
VB6 forum
jbmiller



Joined: 07 Oct 2006
Posts: 73
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Sep 02, 2010 3:46 pm     Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group