• Support
  • Articles
  • Resources
  • Products

Serial Port Connectivity

Moderator: boris

6 postsPage 1 of 1

boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1596
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Wed Mar 16, 2016 11:50 pm
Hi Yutaka and team,

I am observing the behavior that looks like a bug. Here is how to reproduce it:

I start Tera Term 4.90 and New Connection window pops up. I want to establish serial port connection, but I know the default baud rate in my TERATERM.INI file is 19200, while I need to establish connection at 9600 speed. So, I click Cancel button in New Connection window go to menu Setup->Serial port, change baud rate to 9600 and click OK. As soon as I click OK in Serial Port setup window, Tera Term opens serial port connection. When I then go back to New Connection window my COM port is not available anymore.

I hope this is not as per design, because user does not expect to open connection by changing port settings.
Thanks.
Best regards,
Boris
tumbleweed
Newbie

Posts:
3
Joined: Thu Mar 17, 2016 12:53 pm
by tumbleweed » Thu Mar 17, 2016 12:58 pm
I think it's always been this way, hasn't it? It's very handy for changing serial ports around, which I do frequently when working with embedded systems.

I'd hate to see it change where I always had to open a new connection.
Yutaka Hirata
TeraTerm Developer

Posts:
606
Joined: Wed Jan 12, 2005 2:35 pm
by Yutaka Hirata » Thu Mar 17, 2016 2:57 pm
Hi Boris,

Thank you for your feedback.
I check the latest source code of Tera Term and original code
of Tera Term Pro 2.3. As a result, it found that serial port
connectivity your reported is continued today through original
Tera Term Pro 2.3.

It seems that your problem is not bug but specification.

If you and some users request for improving this behavior,
we will consider a suggestion from yours.

Thanks.
Best regards, Yutaka Hirata
(yutakakn at gmail.com)
http://hp.vector.co.jp/authors/VA013320/
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1596
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Thu Mar 17, 2016 4:32 pm
Thanks Yutaka for checking the code. I understand that this comes from the original design and that many users are used to such behavior, but still, it looks really awkward. In fact, if I modify the settings of the serial port that is currently in use by another application and click OK, Tera Term even shows the error:
VT serial port error.png
VT serial port error.png (14.9 KiB) Viewed 930 times

And then user can only guess whether the change of settings was accepted or failed.

If it is not very difficult, to keep backward compatibility, I'd suggest adding configuration option (checkbox) allowing to change this behavior with default setting as it is right now. If this is too much hassle, than please update Serial port ([Setup] menu) page in Tera Term help file and add a Note saying that
As soon as you will click OK in this window Tera Term will try to open serial connection on currently selected serial port. The error message may pop up if selected port is in use by another application. This error message should be ignored.
Thanks.
Best regards,
Boris
tumbleweed
Newbie

Posts:
3
Joined: Thu Mar 17, 2016 12:53 pm
by tumbleweed » Thu Mar 17, 2016 5:12 pm
And then user can only guess whether the change of settings was accepted or failed.
If it can't open the port then it can't change the settings, so I don't see how any guess work is involved.

As soon as you will click OK in this window Tera Term will try to open serial connection on currently selected serial port. The error message may pop up if selected port is in use by another application. This error message should be ignored.
If the port is open in another application/instance it BETTER pop up a message saying it's in use. The message seems quite correct to me.

As far as your other post goes, if you set it to open a serial port connect by default and you open another instance, again the message seems correct. It's already open, so what else would it say? If you want to open another connection type then 'File | New Connection...' works to do that.

Not trying to be argumentative, but it's been this way since as long as I can remember.
boris
Moderator, LogMeTT and TTLEditor developer

Posts:
1596
Joined: Sat Jan 08, 2005 2:52 pm
by boris » Thu Mar 17, 2016 6:29 pm
If it can't open the port then it can't change the settings, so I don't see how any guess work is involved.

That's not the point. I want to change default settings in TERATERM.INI file without touching the actual port. That has nothing to do with whether the port is currently open or not by Tera Term, or any other program. And please don't tell me to use Notepad for that :smile:

if you set it to open a serial port connect by default
I am not aware about an option allowing to enable/disable auto connect to serial port by default (which would be nice to have). Assuming that you mean that saving configuration when the last choice in New Connection window was Serial port makes it to connect by default. Than we have inconsistent behavior. We do not connect by default to the last IP that we connected to via telnet or SSH.
Thanks.
Best regards,
Boris
Display posts from previous:
Sort by:

6 postsPage 1 of 1

Users browsing this forum: No registered users
cron