Why don't you try xport?
it may not be command line but free.
I'm looking for a strictly command-line based app to log (nmea string) data from a specified serial port to a file, but can't seem to find a freeware app that'll do this.
Everything is either GUI-driven, or costs $100. wtf. Is it really that involved??
If I had any programming skills I'd write it myself..
Does anyone have any suggestions? Thanks..
Why don't you try xport?
it may not be command line but free.
2004 Matrix XR A7N8X-VM/400 AMD XP-M 2500+, DS-ATX
89 Supra Turbo P3 600E@750/Abit BE6 II, Alpine M-BUS Car2PC.
Y2K Accord Dell GX150
RoadRunner is the best FE PERIOD
EmoRebellion is a SCAMMER
I've used Hyperterminal to log NMEA data so I could use it later for testing GPS navigation in RR.. if you use xport with it you can log and use the GPS at the same time.. it will be hard to find strictly command-line based software for that (although relatively easy to make one)...
Ride Runner RR's Myspace
"Being happy is not about having what you want, it's about wanting what you have."
"The best things in life are always free - but that doesn't mean money can't buy you good things."
I'm using already using xport3 to split the serial port.
The reason I'm looking for a command line app is so i can run it as an automated event, where no user interaction is required, and runs more or less transparently..
try this in a batch file
Only problem you might have is stopping it as it will continue till it receives an end of file code CTRL-ZCode:MODE COM1: baud=4800 parity=N data=8 stop=1 TYPE command > COM1 COPY COM1 text.txt
The line TYPE command > COM1 looks wrong to me... thats going to try to pipe the contents of file command (if the file even exsists) into com1. Are you sure you didnt want the command echo?Originally Posted by Enforcer
Current projects: iGmod reloaded (Latest release) (put on hiatus indefinatly)
Unlimited Internet and gps tracking for $6 a month with boost mobile!
Carputer 2: www.lmaocar.com
hmm, an interesting approach..
here's what happens when i try to run it as a batch..
Another thing about the second line, is that when run in the .bat, it automatically inserts a "1" after "type command"C:\>MODE COM1: baud=4800 parity=N data=8 stop=1
Status for device COM1:
-----------------------
Baud: 4800
Parity: None
Data Bits: 8
Stop Bits: 1
Timeout: ON
XON/XOFF: OFF
CTS handshaking: OFF
DSR handshaking: OFF
DSR sensitivity: OFF
DTR circuit: ON
RTS circuit: ON
C:\>TYPE command 1>COM1
The system cannot find the file specified.
C:\>COPY COM1 text.txt
1 file(s) copied.
actually I'm not sure what the second line is doing there.
Sorry
OK option 2
get yourself a copy of QBASIC (preferably the version that let's you make an EXE (this was given away free with a lot of the earlier versions of DOS)
Code:OPEN "com1:9600,n,8,1,CD0,CS0,DS0,RS" FOR INPUT AS #1 OPEN "textfile.txt" for output as #2 WHILE INKEY$ <> " " INPUT #1, a$ PRINT #2, a$ WEND CLOSE #2 CLOSE #1 END
Press <space> for it to end
Thanks for the suggestions, enforcer. I'll give that a shot when I get back home.
If that doesn't do what I need it to, I'll investigate if I can do this in Perl. I'm not 100% certain whether Perl can interface with serial ports or not, but I'm fairly certain that it's possible.
Bookmarks