• Support
  • Articles
  • Resources
  • Products

Serial port settings

Moderator: boris

6 postsPage 1 of 1

boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1593
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Tue Jul 19, 2011 12:45 am
Yutaka & Tera Term Project team,

I started creating simple connection Macro generating wizard. This will be the tool for those who is not familiar with Macro scripting language. User will just need to select the answers on several questions and the macro will be created automatically based to user's input.

While coding the part related to Serial port connections I realized that Macro language has only 3 commands to work with serial ports: setbaud, setrts and setdtr. Please correct me if I am wrong here. There is no way to choose 7 or 8 bit data, select parity or change stop bits.

My understanding is that setrts 1 and setdtr 1 had to be used both to enable Hardware flow control. Assuming setrts 0 and setdtr 0 mean no flow control, but than how to activate Xon/Xoff mode using Macro?

Please let me know if your team has plans to implement these missing Macro commands anytime soon. If not, I'll just disable corresponding choices in my wizard.
Thanks.
Best regards,
Boris
Yutaka Hirata
TeraTerm Developer

Posts:
598
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Mon Jul 25, 2011 11:10 am
Hi Boris,

Unfortunately there are not the macro command to activate the Xon/Xoff mode.
Now here is no plan to add the command as soon as possible.

Thanks.
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/
IshmaelCallMe
Guru

Posts:
672
Joined: Thu Jan 26, 2006 2:28 am
by IshmaelCallMe » Mon Jul 25, 2011 1:11 pm
Kinda a kludge, but you could have the wizard generate a appropriate teraterm.ini file, then have the macro load it. Yeah, not elegant. But, it should work.
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1593
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Mon Jul 25, 2011 4:35 pm
Thanks for your replies, Gentlemen.

Changing teraterm.ini per connection is not an option in LogMeTT 2.9.x. This feature is planned to be part of LogMeTT 3.xx when each connection will get fully configurable copy of teraterm.ini stored in .LTT file.

At this point my main concern is that 95% of users running LogMeTT have never written or executed a macro :worriedsad: . By creating the wizard and later releasing video "How to use LogMeTT" I want to increase the number of those who actually utilizes all benefits of the tool. If I won't see increase in number of active users in next 6 months, I might have to cancel entire LogMeTT 3.xx project :sad: .
Thanks.
Best regards,
Boris
olischlo
Newbie

Posts:
3
Joined: Fri Apr 08, 2016 12:36 pm
by olischlo » Wed Nov 02, 2016 11:21 am
Hello I am trying to change the flow control configuration into a TTL file. As there is no macro to do it I try the macro command restoresetup with a specific INI file. It does not work (but look and feel is correctly change).
I also try to close TeraTerm (closett) and to open it with the new configuration. It also does not work and kept the previous serial configuration.

Code: Select all

  1. ; Change baud rate to 38400 and set Flow control to Xon/Xoff
  2. logclose
  3. closett
  4. pause 1
  5. COM_parameters="\TERATERM_HS_FC.INI"
  6. sprintf2 cmd '/F="%s%s" /C=%s' path COM_parameters comPORT
  7. connect cmd
  8. settitle 'Connected to controller'
  9. logopen filename 0 1


If i manually restore the configuration (using menu setup) my configurations are working fine.

Can someone help me ?

Regards
Olivier
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1593
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Wed Nov 02, 2016 10:11 pm
Connect macro command does not have /F argument. Check the description here: http://ttssh2.osdn.jp/manual/en/macro/c ... nnect.html
Thanks.
Best regards,
Boris
Display posts from previous:
Sort by:

6 postsPage 1 of 1

Users browsing this forum: No registered users