Jump to content

Tera Term TTL help


awatt196
 Share

Recommended Posts

Hi,

I am wanting to send serial data from a microcontroller to my PC.  I am experimenting with TT to receive this data and put it into a csv file.

I am having trouble outputting only the data that I need.  As a test, I've been sending 'S123456789F' (not csv data) and using a regular expression to find it.  The problem is, I've been getting really inconsistent results with this.  For example, my output file would sometimes contain more data than I want.

Here are my files:
test.bat:

"C:\Program Files (x86)\teraterm\ttermpro.exe" /M="C:\Users\Andrew\Desktop\test_macro.ttl"


test_macro.ttl:

filename = 'C:\Users\Andrew\Desktop\testfile.txt"
logopen filename 0 0
ConnectString='/C=5 /BAUD=9600'
connect ConnectString
flushrecv
waitregex 'S[0-9]+F'
flushrecv

logclose 
disconnect
closett
exit

Is there a better way to control exactly what data is output to a file?

Thanks for your help.
Regards,
Andrew

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...