Forum: PC Hard- und Software Windows 7 COM-Port mit 2 Ziffern (COM12)


von Stefan H. (Firma: dm2sh) (stefan_helmert)


Lesenswert?

Hallo,

ich kann unter Windows 7 nur COM1 bis COM9 als normale COM-Ports 
verwenden, sobald ein COM-Port 2 Ziffern hat (COM10, COM11, COM12,...) 
gibt es Probleme. Putty hat damit keine Probleme, aber unter cmd geht:
echo "blub" > COM12
nicht, d. h. es wird einfach die Datei "COM12" angelegt.
echo "blub" > COM2
ist problemlos möglich.
Wo kann ich einstellen, dass Windows mit den 2 Ziffern keine Probleme 
hat?
Wie macht Putty das, das es keine Probleme mit 2 Ziffern hat?

von Peter II (Gast)


Lesenswert?

http://msdn.microsoft.com/en-us/library/aa363858%28v=vs.85%29.aspx

The CreateFile function can create a handle to a communications 
resource, such as the serial port COM1. For communications resources, 
the dwCreationDisposition parameter must be OPEN_EXISTING, the 
dwShareMode parameter must be zero (exclusive access), and the 
hTemplateFile parameter must be NULL. Read, write, or read/write access 
can be specified, and the handle can be opened for overlapped I/O.

To specify a COM port number greater than 9, use the following syntax: 
"\\.\COM10". This syntax works for all port numbers and hardware that 
allows COM port numbers to be specified.

For more information about communications, see Communications.

von Stefan H. (Firma: dm2sh) (stefan_helmert)


Lesenswert?

Danke, das hat erstmal geklappt.

Es gibt aber noch ein Problem:
type com2
geht, aber
type \\.\com12
geht nicht, auch nicht
type "\\.\com12"

von Peter II (Gast)


Lesenswert?

Stefan Helmert schrieb:
> Es gibt aber noch ein Problem:
> type com2
> geht, aber
> type \\.\com12
> geht nicht, auch nicht
> type "\\.\com12"

das wird auch nicht gehen, dann die cmd verwendet "DOS"-Devicenamen. Ich 
denke das geht überhaupt nicht. Du kannst im Gerätemanager die Port-Nr 
ändern wenn du es mit type brauchst.

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.