Solved

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

Posted on 2004-08-17
5
254 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
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.

749 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