Link to home
Create AccountLog in
Windows XP

Windows XP

--

Questions

--

Followers

Top Experts

Avatar of chrislock
chrislock

delphi usb serial port

Delphi 7 XP prof.

Hi -

I'm using the free Tcomport component for Delphi. Although I do not usually have problems, there is one bugbear that I cant seem to solve.
If you have a couple of USB serial converters connected to the PC, sometimes there is a problem with port initialisation.
Is there a simple way to find out which Comport belongs to which external USB-serial device?
How does the allocation of these devices occur?
What exactly is the meaning of Purgecomm function failed?

Thanks,
Chris





Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


ASKER CERTIFIED SOLUTION
Avatar of thiagoblimeirathiagoblimeira🇧🇷

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of senadsenad🇸🇮

com ports are dead and buried.In prehistoric times used by DOS and some antiquated software (mainly modems).
What you got hooked can be seen with System Information.
Allocation is an automatic process done by Windows.
 

Avatar of chrislockchrislock

ASKER

Actually, standard serial comports are still being used by vast quantities of newly manufactured items such as weighing machines, bar code scanners, modems, satellite boxes, GPS, test equipment, medical systems, scientific instruments etc. etc, some of which use RS485/Rs232.
Other serial port systems such as USB are very complicated in their operation and extremely fragile in an industrial environment.
I can understand a serial port down to the register level inside the chip. I would have to spend a lot of time to get that acquainted with USB!!!

Chris

Avatar of MerijnBMerijnB🇳🇱

@senad: you could not be more wrong...

@chris: figuring out what physical connector is what comport is hard. Why do you want to achieve this?

Are you using the open source TComport?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


MerijnB
Because the system has a serial printer and a serial weigher running from a laptop (which unfortunately does not have any internal standard RS232 ports) The problem is that the user may connect the USB converters in any configuration and be presented with a choice of maybe 4 ports (e.g. internal modem
etc). I will probably look for a serial stream of data (another problem!!!) to identify the weigher.

Yes I'm using Tcomport.

Chris

SOLUTION
Avatar of MerijnBMerijnB🇳🇱

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.

Thanks all for the advice - I am going to try thiagoblimeira's suggestion. I also have another problem with the USB ports (see          usb serial port buffer problem    ), which is rather more serious!

Oh for the days when you could understand the workings of a computer! Now you have to have a Phd in USBology to understand just one small facet!


Chris

Avatar of MerijnBMerijnB🇳🇱

Chris, keep in mind that a 'USB to serial port' port does not have the word USB in it always!

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Thanks All
Windows XP

Windows XP

--

Questions

--

Followers

Top Experts

Microsoft Windows XP is the sixth release of the NT series of operating systems, and was the first to be marketed in a variety of editions: XP Home and XP Professional, designed for business and power users. The advanced features in XP Professional are generally disabled in Home Edition, but are there and can be activated. There were two 64-bit editions, an embedded edition and a tablet edition.