Windows 7 COM-Port mit 2 Ziffern (COM12)

OP (Firma: dm2sh) #2292470
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?
Gast #2292488
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.
Gast #2292534
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.

Antwort schreiben

Bitte melde dich an, um einen Beitrag zu schreiben.

oder

Mit Google-Account einloggen

Die Registrierung ist kostenlos und dauert nur eine Minute.

Jetzt registrieren