Previous in Forum: Modem Command Sequence   Next in Forum: Website for Electronic Components and Circuit Drawings?
Close
Close
Close
7 comments
Rate Comments: Nested
Anonymous Poster

How to Write a Windows Serial Interface Script File

12/16/2009 11:24 AM

I need to write a scrpit file to communicate through a serial port in Windows. It may be in the form of a window with a few radio buttons to output different blocks of code, it will interface a PIC micro to eventually test a relay matrix. Could anyone offer any pointers as to how I could go about this? The Pic code is already written and all I need to do is output ASCII characters to switch the relays (I think). I'm sure it's quite simple but if you don't know, you don't know.

Also posted in: also posted in Software & Programming
Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Member

Join Date: Dec 2009
Location: Denver, Colorado
Posts: 8
#1

Re: I Need to Write a Windows Serial Interface Script File

12/16/2009 1:11 PM

I found an old version of Hyperterminal that I use for some simple commands. If you need to send strings you will have to wirte an app. If your familiar with C,C++ or visual C, I can send you some of my source code.

Reply
Power-User
United Kingdom - Member - Hobbies - HAM Radio - G7TSP Engineering Fields - Electrical Engineering -

Join Date: Jul 2008
Location: South Coast United Kingdom
Posts: 124
Good Answers: 1
#5
In reply to #1

Re: I Need to Write a Windows Serial Interface Script File

12/17/2009 3:35 AM

I have used C in the past, having a look at your code would be useful thanks...

cleman@drallim.com

Reply
Guru
Hobbies - HAM Radio - New Member Hobbies - Model Rocketry - New Member

Join Date: Jan 2007
Posts: 787
Good Answers: 52
#2

Re: I Need to Write a Windows Serial Interface Script File

12/16/2009 1:43 PM

I was able to do this in visual basic, it took a little searching to find the correct commands to sent output to a serial port, but after that it was quite easy. My use was also as an output for a PIC micro as a test program to setup and test my project. Here is a link with some code that does look sort of familiar. If you don't use VB this won't be much help, but I was able to piece together what I needed with this.

Reply
Member

Join Date: Dec 2009
Location: Denver, Colorado
Posts: 8
#3
In reply to #2

Re: I Need to Write a Windows Serial Interface Script File

12/16/2009 3:25 PM

Cool! PIC's are allot of fun and extremely powerful. I was playing around with the Microchip PICkit 1 Flash Starter Kit. There was a 4 part contest last year with the PIC chip. Many cool ideas and inventions.

Reply
Guru
Panama - Member - New Member Hobbies - CNC - New Member Engineering Fields - Marine Engineering - New Member Engineering Fields - Retired Engineers / Mentors - New Member

Join Date: Dec 2006
Location: Panama
Posts: 4273
Good Answers: 213
#4

Re: How to Write a Windows Serial Interface Script File

12/16/2009 11:15 PM

Try this:

http://www.techtutorials.info/winscript.html

Reply
Power-User

Join Date: Jun 2007
Location: Oxford, UK
Posts: 145
Good Answers: 3
#6

Re: How to Write a Windows Serial Interface Script File

12/17/2009 3:47 AM

Try

www.windmill.co.uk

They have a newsletter with some good tips and also have a program for serial communications

Tony

__________________
Tony Aston
Reply Score 1 for Good Answer
Guru

Join Date: Oct 2007
Posts: 734
Good Answers: 70
#7

Re: How to Write a Windows Serial Interface Script File

12/17/2009 2:50 PM

Some later versions of VB can send commands thru serial ports. For a few hundred dollars WinWedge by TALTech will do it for you, at least for the RS232 port.

www.taltech.com/products/winwedge.html

Reply
Reply to Forum Thread 7 comments

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

cwarner7_11 (1); frankd20 (1); johnfotl (1); Lemmy70 (1); Slowpokee (2); Tony Aston (1)

Previous in Forum: Modem Command Sequence   Next in Forum: Website for Electronic Components and Circuit Drawings?

Advertisement