• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Interface » Consumer & Computing » Consumer & Computing Forum » COM port enumeration
Share
Consumer & Computing
  • Forum
  • Files
Options
  • Subscribe via RSS
Check out
Analog Wire blog
  • $core_v2_blog.Current.Name

    Cable equalization 101 – Automating your design

    Posted 1 day ago
    by Hooman Hashemi
    Judging by the number of views on a post related to numerical...
  • $core_v2_blog.Current.Name

    RS-485 - Who says you can't teach an old dog new tricks?

    Posted 5 days ago
    by Neel Seshan
    Would you agree that RS-485 has turned out to be one of the most...
  • $core_v2_blog.Current.Name

    Filter for thought

    Posted 7 days ago
    by Soufiane Bendaoud
    Have you ever wondered how engineers designed active filters...

Forums

COM port enumeration

This question is answered
ZJE
Posted by ZJE
on Jun 06 2009 13:30 PM
Prodigy60 points

Is there anyway to guarantee which COM port a CDC device will show up as on the user's system? Or, is there a way from a windows program to open a CDC device by vendor and product ID instead of COM port?

I've been trying to figure these out through google, with no luck so I'm leaning towards saying "this isn't quite possible."

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Sandeep Dattaprasad
    Posted by Sandeep Dattaprasad
    on Jun 06 2009 19:51 PM
    Prodigy225 points

    You can ensure that the device comes up with same COM port number every time it is plugged in by serializing the TUSB3410 device (see EEPROM serialization: http://focus.ti.com/lit/an/slla154/slla154.pdf), however I don't think it is possibe to tell which exact COM port the device will come up with simply because this is handled by operating system and depends on the number of built in COM ports on your PC. I don't know of any windows serial communication app which would let you open a CDC with VID/PID instead of COM port. The OS needs to know which COM port to talk to and VID/PID wouldn't help much.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • DHarmon
    Posted by DHarmon
    on Jun 08 2009 08:37 AM
    Verified Answer
    Verified by DHarmon
    Genius13985 points

    COM Port number assignments are made by the Operating System in the order that they are "installed".  Sandeep is correct that the way to keep a single 3410-based device on the same COM port everytime it is plugged into a given PC is to serialize.  However that COM port number is still determined by the OS the first time the device is plugged into that PC - it then stores the descriptor information (VID/PID/SerNum along with that COM number) in the registry.  If you do not serialize then it does not know if it is the same HW or a different instance of 3410-based HW and therefore it assigns a new COM number.  In addition, moveing a serialized device from one PC to another can result in different assigned COM numbers on the different PCs.

    Regards, Dan

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Ismael Duron10236
    Posted by Ismael Duron10236
    on Jun 08 2009 09:58 AM
    Intellectual2170 points

    Also if not serialized, even if that TUSB3410 device is connected among all USB ports in a single PC, OS will assign a different COM port for that single device when connected in a different USB port. You cannot connect more than two "non-serialized" (with same VID/PID) 3410 devices, since OS won't be able to assign a COM port. Nevertheless, you can have different 3410 devices with different VID/PID information or string descriptions, without a serial number assigned, in the same system.

    Thanks and Best Regards,

    Ismael Durón

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use