• Support
  • Articles
  • Resources
  • Products

TeraTerm 4.90 (SVN# 6338)

Moderator: boris

2 postsPage 1 of 1

bcavan
Newbie

Posts:
1
Joined: Mon Oct 10, 2016 2:55 pm
by bcavan » Mon Oct 10, 2016 3:10 pm
Hi All, I've never used TeraTerm before and I'm learning by fire.

I have a macroscript a previous colleague wrote:


Code: Select all

  1. setecho 1
  2.  
  3. ; flash SREC file
  4. filename = 'pmsm_ref_sol.srec'
  5.  
  6. fileopen fhandle filename 0
  7. if fhandle == -1 goto the_end
  8.  
  9. ;#########################################
  10. :here
  11. fileread fhandle 1 str      ; read one byte at a time so we can detect linefeed.
  12. if result == 1 goto the_end
  13. str2code integer str
  14. if integer=13 then
  15.     wait 'Ok'
  16. endif
  17. send str
  18. goto here
  19. ;#########################################
  20.  
  21. :the_end
  22. fileclose fhandle
  23.  



When I launch the Marco I receive a long Alpha-Numeric code (see attached).
Also, when I go to Control/Show Marco window I always see a message "flash:15:wait 'Ok' " (see attached)

I'm not sure what this means, can someone help me trouble shoot this?

Thank you,

Brian
Trevor
Guru

Posts:
467
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Mon Oct 17, 2016 2:28 pm
Hi Brian,
I can't see the attachment (the forum software may not like it). Please post as a link to the file (e.g. place on dropbox or other file sharing space and get a link).

The ""flash:15:wait 'Ok' " tells you the macro is at line 15 in the wait command i.e. it is waiting to receive 'Ok' which might take forever if it never comes as there is no timeout specified. What is the macro talking to? Some sort of micro-controller I presume if you are sending it an srec file?

Regards
Trevor
Display posts from previous:
Sort by:

2 postsPage 1 of 1

Users browsing this forum: No registered users