|
-
Sep 5th, 2012, 12:38 AM
#7
Re: [RESOLVED] trouble converting HyperTerminal commands to VB.Net
Interesting, glad you've got it to work. I'm slightly puzzled as to why you need to send the command 3 times, once should be enough (I am assuming that when using Hyperterminal you only need send the command once.) Also, in the Manual / Guide there's an implication that the board will send something back; "Power up the driver board. If you can see some start-up information on the PC, the connection is successful".
It's not clear whether it's gong to send an acknowledgement every time you send a command to it though. If it does, you should be reading whatever it sends, whether or not you're going to use the information, in order to keep the buffer empty, otherwise you run the risk of the buffer overflowing and you may end up with the code failing or unpredictable results. I'm personally not into .Net enough to guide you how to do that, but I suspect you'll need to create an Event Handler for receiving data. I found something regarding Serial Port comms here: http://www.dreamincode.net/forums/to...tion-in-vbnet/ which might help you further.
Good luck with the Project.
EDIT: BTW if you run into trouble and need some more help, you'd be better off posting in the Vb .NET forum (the COM in this Forum's description refers to 'Common Object Model' rather than 'Communications') I only happened on your Post by chance and there's a number of knowledgable people lurking in the .Net Fourm.
Last edited by Doogle; Sep 5th, 2012 at 12:46 AM.
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
|