I have installed a USB to 8x serial adapter. Device manager shows all 8 com ports 4 thru 11
Com 4 works fine. SCS only gives me the option to select Com 1 or Com 4.
Any Suggestions?
I am using most recent version of SCS running windows XP
[Fix 11.2.4] SCS not seeing all com ports
-
- Site Admin
- Posts: 3632
- Joined: Sun Jul 24, 2005 8:58 am
- Location: Brisbane, Queensland, Australia. TZ:GMT+10
- Contact:
Re: SCS not seeing all com ports
SCS currently only checks the first 4 COM ports, ie COM1 - COM4, but there is a reason for this!
To check for the availability of COM ports, SCS calls a Windows API function CreateFile(Com1, ...) for COM1, and similarly for COM2 etc. If the function returns -1 then the COM port is not available. What I found when coding this was that for COM1 - COM4 the function returned a result 'instantly' but for COM5 onwards the function would take about 3 seconds per port.
However, I've just run a quick test on my Windows 8 machine testing for COM1 - COM8 and the entire checking for those 8 COM ports took only about 1ms. So I can certainly now increase the range, but I'll repeat the test under earlier Windows versions (including XP) to see if the range still needs to be limited to 4 ports for older Windows versions.
Meanwhile, do you need more than 4 COM ports, or is there any reason why you would need to use COM5 or higher?
To check for the availability of COM ports, SCS calls a Windows API function CreateFile(Com1, ...) for COM1, and similarly for COM2 etc. If the function returns -1 then the COM port is not available. What I found when coding this was that for COM1 - COM4 the function returned a result 'instantly' but for COM5 onwards the function would take about 3 seconds per port.
However, I've just run a quick test on my Windows 8 machine testing for COM1 - COM8 and the entire checking for those 8 COM ports took only about 1ms. So I can certainly now increase the range, but I'll repeat the test under earlier Windows versions (including XP) to see if the range still needs to be limited to 4 ports for older Windows versions.
Meanwhile, do you need more than 4 COM ports, or is there any reason why you would need to use COM5 or higher?
Re: SCS not seeing all com ports
Thanks Mike.
Still getting my feet wet on all things RS232
My computer recognizes com1 and com4. Not sure what Com2 & 3 are doing.
Don't see them anywhere. I finally got a different program to recognize all Com ports
Not sure if I need all these com ports or not.I am trying to control multiple devices.
Thanks again
Still getting my feet wet on all things RS232
My computer recognizes com1 and com4. Not sure what Com2 & 3 are doing.
Don't see them anywhere. I finally got a different program to recognize all Com ports
Not sure if I need all these com ports or not.I am trying to control multiple devices.
Thanks again
-
- Site Admin
- Posts: 3632
- Joined: Sun Jul 24, 2005 8:58 am
- Location: Brisbane, Queensland, Australia. TZ:GMT+10
- Contact:
Re: SCS not seeing all com ports
Fix ready for 11.2.4. SCS now checks serial ports COM1 - COM16.
-
- Site Admin
- Posts: 3632
- Joined: Sun Jul 24, 2005 8:58 am
- Location: Brisbane, Queensland, Australia. TZ:GMT+10
- Contact:
Re: [Fix 11.2.4] SCS not seeing all com ports
Fix applied in 11.2.4 - now checking COM1 - COM32.