#17 No COM ports are listed

closed-fixed
Conrad Braam
5
2014-08-21
2011-01-05
David Brown
No

I ran Mod_RSSIM without configuring any COM ports, so it naturally told me it couldn't open one. Then, I installed com0com and went with the default virtual port names, but this didn't show up in the simulator, either. Assuming it looks for ports with standard names, I renamed the virtual ports to COM3 and COM4, but they still didn't appear. The com0com readme suggested installing "fake" ports in the Device Manager, so I did that for both COM3 and COM4, but the simulator still doesn't see them. The Termite serial terminal program can see them, but Mod_RSSIM cannot.

I'm running the latest version on Windows 7 Professional 64-bit.

Any ideas?

Discussion

  • Conrad Braam
    Conrad Braam
    2011-01-10

    I imagine you must have figured out what went wrong by now.
    If not: Can you try to run the simulator "as administrator", since we enumerate the registry to find serial ports, and UAC or wow64 may be an issue - I do still have a slight UAC issue to resolve in future, but not related to COM port detection, just the program's own settings.
    I use 64bit (I know it's painful at times) and 32-bit Win7, but never tested that com0com ports are in fact detectable on 64-bit. I will have to check that tonite, because they do work on 32-bit, but this way be a wow64 problem, which is a route do not want to go down without some strong coffee.

     
  • Conrad Braam
    Conrad Braam
    2011-01-10

    • labels: 1306501 --> product support
    • assigned_to: nobody --> zaphodikus
     
  • David Brown
    David Brown
    2011-01-10

    Thanks for checking into it. Unfortunately, running as an Administrator didn't solve it. I don't have UAC enabled, either.

     
  • Conrad Braam
    Conrad Braam
    2011-01-10

    • status: open --> open-accepted
     
  • Conrad Braam
    Conrad Braam
    2011-01-10

    Can reproduce part (but not exact) problem. Debugged, fix will be up and I will update the bug again once I release something that does not expect all port names to start with name COMxxx. Which is what you did try, I suspect I'm detecting the ports in a strange order in your case.

    Can you open a dos-box (yes the old fashioned one) and send me the output from the mode prorgam by typing:
    mode

     
  • Conrad Braam
    Conrad Braam
    2011-01-10

    I turned UAC off completely - and I suspect that messed me around, because of the way Windows invisibly creates registry virtualization for 32-bit applications, but I got past that, and could see all 3 ports listed, but all being *in-use*, which was due to a bug I knew about with my expecting all prots to be COMxxx, but you did say you are not seeing any ports at all? I can see the com0com ports, and my built-in port whether I use Administrator or not, so I will need the output from the old-fashioned mode program for clues if you do not mind.

     
  • David Brown
    David Brown
    2011-01-11

    Strangely, the mode command doesn't output any COM port information. The only device listed is CON, even though the Device Manager shows my "fake" COM3 and COM4 ports.

    I forgot to mention that the machine I'm running Mod_RSSIM on is a Foxconn nettop, which doesn't have any hardware COM ports, but I'm not sure if that would mean anything. I'm beginning to think that Mod_RSSIM isn't the one with the problem. I just noticed that even though Termite can list the virtual ports, it's unable to communicate on them.

     
  • Conrad Braam
    Conrad Braam
    2011-01-11

    Aaah, the plot thickens, but I must say I have been supporting this application for about 10 years, and every time someone reports missing ports there has been a user error of some kind, unlikely here, since you are a very experienced user.
    So it may be a missing driver, basically the windows registry at HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM lists all of your serial ports, this gets populated at start-up each time, and correctly by com0com too.
    OK - the way I have always put it, is if "mode" sees your serial port, the simulator will open it, if not, mod_rssim will not (this rule has worked for me for ages). I hope that gives you a clue on what to google for.
    I will leave this bug open for now, and move onto my next support issue, let me know if there is anything I can poke to help with.
    The updated version 8.20 simulator (uploaded to web now) basically caters for the port name being unusual, and hence I detected it, but was failing to open it due to a bug when prefixing port names with UNC "\\.\", which is required for port names longer than 4 characters (COM10).

     
  • Conrad Braam
    Conrad Braam
    2011-02-01

    This is now fixed in release 20, which can be downloaded from the primary website http://www.plcsimulator.org by clicking on the Downloads page. An updated installer and binary (It's still rev 19 atm) will appear on SF shortly as well as a precaution in light of the recent SF attack.

     
  • Conrad Braam
    Conrad Braam
    2011-02-01

    • status: open-accepted --> closed-fixed