Solved

Need to read from the serial port into a text file, simple .exe

Posted on 2004-08-17
5
248 Views
Last Modified: 2012-06-27
Right does anybody know of a simple app out there that will allow me to read from the serial port straight into a text file? or straight into the application then save the data as a text file?

This is a real ball-ache. I could write an app in java but the user at the other end would then have to install the commapi package or dlls etc and set up their classpaths etc.

All I need is an exe that I can send them to do the job with no installing of dlls or .jar etc.

Anyone know of one?
0
Comment
Question by:lorddef
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:tkrabec
ID: 11824300
MODE COM1: baud=4800 parity=N data=8 stop=1
TYPE command > COM1
COPY COM1 text.txt

I've done the above type of thing before in win95.  just put it into a batchfile and you're set you do have to do a ctrl+c to kill it tho.  not sure if this will work for your client.

-- Tim
0
 
LVL 31

Expert Comment

by:rid
ID: 11828101
The "Terminal" from windows 3.11 could do this, if I get you right, and one would guess Hyperterminal can as well.
/RID
0
 
LVL 1

Author Comment

by:lorddef
ID: 11828998
did you get that from here tkrabec:

http://www.computing.net/dos/wwwboard/forum/14336.html

Anyway TYPE command > COM1

... doesnt work here
0
 
LVL 1

Accepted Solution

by:
tkrabec earned 30 total points
ID: 11829680
Yes I did, I could not remember the syntax I used in the past.  The type {command} is for sending like atdt 5551212 to the serial port, but may not be necessary in your case.

-- Tim
0
 
LVL 1

Author Comment

by:lorddef
ID: 11843167
Well I couldnt get the batch file method working, but I found the perfect app for the job myself in the end. ComCap is a simple little win32 app that logs all data from the serial port to a file. Magic.

Cheers for your attempts people.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello I read in a discussion about a person who configured a very simple mirror RAID with two hard drives; the system and data were on the same partition. He asked how to repair the system as it was not booting up anymore. In his case running …
I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now