Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to read com port over com10?

393 views
Skip to first unread message

rolance

unread,
Aug 23, 2011, 2:22:21 AM8/23/11
to
Dear All

I need read data form some other hardware!

set com [open com1: r+] for port 1~9 is ok for use!

But some computer the hardware over com10,11,12 ---> can't access
those port!

Could some one give me some direction to solve this problem!

BR
Rolance

Yaroslav Schekin

unread,
Aug 23, 2011, 2:56:45 AM8/23/11
to
Hi.

> Dear All
>
> I need read data form some other hardware!
>
> set com [open com1: r+]    for port 1~9 is ok for use!
>
> But some computer the hardware over com10,11,12  ---> can't access
> those port!
>
Did you read this?
---------- man open -------------
Windows (all versions)
Valid values for fileName to open a serial port are of the form comX:,
where X is a number, generally from 1 to 4. This notation only works
for serial ports from 1 to 9, if the system happens to have more than
four. An attempt to open a serial port that does not exist or has a
number greater than 9 will fail. An alternate form of opening serial
ports is to use the filename \\.\comX, where X is any number that
corresponds to a serial port; please note that this method is
considerably slower on Windows 95 and Windows 98.
---------- man open -------------

WBR, Yaroslav Schekin.

hae

unread,
Aug 23, 2011, 3:39:10 AM8/23/11
to

Hello Rolance,

see here http://wiki.tcl.tk/1838 how to list all available ports on
windows from the registry.

Rüdiger

rolance

unread,
Aug 23, 2011, 5:37:11 AM8/23/11
to
On 8月23日, 下午3時39分, hae <r_haer...@gmx.de> wrote:
> On 23 Aug., 08:22, rolance <tomstone...@hotmail.com> wrote:
>
> > Dear All
>
> > I need read data form some other hardware!
>
> > set com [open com1: r+]    for port 1~9 is ok for use!
>
> > But some computer the hardware over com10,11,12  ---> can't access
> > those port!
>
> > Could  some one give me some direction to solve this problem!
>
> > BR
> > Rolance
>
> Hello Rolance,
>
> see herehttp://wiki.tcl.tk/1838how to list all available ports on

> windows from the registry.
>
> Rüdiger

Dear All

I already try this command

[open \\\\.\\com13 r+]

error message:
couldn't open "\\.\com13": permission denied

did I forget some thing?

BR
Rolance

0 new messages