News:

  • September 23, 2026, 01:29:37 PM

Login with username, password and session length

Author Topic: Simulator Serial-port not being saved when changed  (Read 35321 times)

Andrew S

  • Hero Member
  • *****
  • Posts: 144
Simulator Serial-port not being saved when changed
« on: April 23, 2019, 03:45:55 PM »
Hello. I'm using Designer 2.5.1 on Win10. I have two serial ports on the machine (COM1 and COM4). At startup the simulator selects COM1 but I want to use COM4 so I select it and press OK. The instructions say I have to restart the simulator for that change to be picked up, but when I close and reopen it the selected serial port is back to COM1 and there is no activity on COM4.
I enabled tracing on COM4 and I see activity during the port selection dialog but nothing otherwise.

Am I doing something wrong?
Thanks, Andrew.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Simulator Serial-port not being saved when changed
« Reply #1 on: April 23, 2019, 03:56:54 PM »
This may be related to a bug in 2.5.1 where the Simulator is pointing to the wrong directory. It may resolve if you manually create "C:\Users\Public\Public Documents\Do-more\Designer2_2\Bin".

DmD 2.5.2 should be dropping tomorrow. It fixes the directory issue.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Andrew S

  • Hero Member
  • *****
  • Posts: 144
Re: Simulator Serial-port not being saved when changed
« Reply #2 on: April 23, 2019, 04:11:49 PM »
Thanks Bob. I did see that post. I got some strangeness when I added the folder. I'll update tomorrow and see if it persists after that.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Simulator Serial-port not being saved when changed
« Reply #3 on: April 23, 2019, 11:37:46 PM »
I need to confirm this, but it?s possible that there is also a command line switch to specify the comm port.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Simulator Serial-port not being saved when changed
« Reply #4 on: April 24, 2019, 10:45:08 AM »
I was wrong...no command line switch.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Andrew S

  • Hero Member
  • *****
  • Posts: 144
Re: Simulator Serial-port not being saved when changed
« Reply #5 on: April 24, 2019, 03:58:56 PM »
Ok. I'll check the 2.5.2 shortly and report back.

Andrew S

  • Hero Member
  • *****
  • Posts: 144
Re: Simulator Serial-port not being saved when changed
« Reply #6 on: April 24, 2019, 04:11:11 PM »
Upgraded to 2.5.2. I'm still not getting the COM port saved in the simulator. It continually defaults to the first port in the list.

Andrew S

  • Hero Member
  • *****
  • Posts: 144
Re: Simulator Serial-port not being saved when changed
« Reply #7 on: April 30, 2019, 12:40:54 PM »
Hi Bob. Any more thoughts about this issue, which (for me at least) appears to be persisting under DMD 2.5.2?

Thanks, Andrew.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Simulator Serial-port not being saved when changed
« Reply #8 on: April 30, 2019, 12:47:44 PM »
Hi Bob. Any more thoughts about this issue, which (for me at least) appears to be persisting under DMD 2.5.2?

Thanks, Andrew.

I'm actually looking at it right now. Code that has worked right for 10 years doesn't work anymore. I'm starting to suspect a Windows 10 change or some other MicrosoftGonnaSaveUs thing.

The way it is supposed to work is that we test the last saved comm port on startup, and if it fails, we scan for available ports, automatically selecting the first available. When you pull up the select dialog, is scans for ports and lets you select. When the Sim shuts down, it saves the last selected (auto or manual) to the .STATE file. I changed the mapping of my port and it doesn't open at all now.

When you open the selection dialog, do you see the port?
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Andrew S

  • Hero Member
  • *****
  • Posts: 144
Re: Simulator Serial-port not being saved when changed
« Reply #9 on: April 30, 2019, 12:51:35 PM »
Yes I do. The port is a USB virtual-serial port (to a Sealink 4101 serial server) which works fine with other software. As you mentioned, I'm on a Win10 machine. Perhaps you're on to something...

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Simulator Serial-port not being saved when changed
« Reply #10 on: April 30, 2019, 12:59:00 PM »
Yes I do. The port is a USB virtual-serial port (to a Sealink 4101 serial server) which works fine with other software. As you mentioned, I'm on a Win10 machine. Perhaps you're on to something...

Then my issue and yours may be different. I'm wondering if they removed support for the old style "COMx" and now require the new and improved "\\.\COMx" device reference.

One other thing you can try: adding a /c to the Sim command line tells it to bypass the port test. If it still fails, my money is on the name format change, since some of the Sim code is using the old and some is using the new.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Simulator Serial-port not being saved when changed
« Reply #11 on: April 30, 2019, 05:25:41 PM »
If a person is using WinX, do they DESERVE to have their software work as expected?    :D
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

Mike Nash

  • Hero Member
  • *****
  • Posts: 655
Re: Simulator Serial-port not being saved when changed
« Reply #12 on: April 30, 2019, 06:56:08 PM »
If a person is using WinX, do they DESERVE to have their software work as expected?    :D

You meant later than WinXP, right?

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Simulator Serial-port not being saved when changed
« Reply #13 on: April 30, 2019, 06:59:25 PM »
Luddite!  Only MY Win version preference (7) is exactly right!   ;)

(Refer to the driving speed rule -- anyone driving faster than you is a maniac, anyone slower is an idiot)
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Simulator Serial-port not being saved when changed
« Reply #14 on: April 30, 2019, 10:14:42 PM »
Luddite!  Only MY Win version preference (7) is exactly right!   ;)

(Refer to the driving speed rule -- anyone driving faster than you is a maniac, anyone slower is an idiot)

Apparently the older I get the more maniacs there are. Scary. Upside is that there are fewer idiots now.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO