UART PC i PnP
Masz problem? Zapytaj na forum elektroda.pl z bramką pl.misc.elektronika!
From: Adam Dybkowski <Adam.Dybkowski_at_nospam_p13.f96.n480.z2.fidonet.org>
Date: Fri, 26 Feb 99 00:30:54 +0100
Subject: UART PC i PnP
Hejho Juliusz!
25 Feb 99 04:06, Juliusz wrote:
J> Czy komus cos wiadomo na temat tego jak wyglada specyfikacja PnP dla
J> urzadzen podlaczonych do do portu szeregowego PC, pracujacego pod
J> kontrola W95/98 ? Zapewne winda wypytuje w jakis sposob poprzez
Polecam gorąco lekturę: "Plug and Play External COM Device Specification". Jest
to m.in. częścią Windows 98 DDK, które można za darmo ściągnąć od Microsoftu.
Jak chcesz mogę Ci wysłać e-mail'em cały plik (format Worda: .doc). Ten dokument
ma 26 stron i nie będę cytował tutaj całego. :) Są opisane dokładne timingi i
protokoły P&P dla rozpoznawania myszy, modemów, UPS'ów itd. Oto fragment:
The COM Enumerator software shall do the following things visible on the COM
port:
- Initialize the COM port, with DTR ON , RTS OFF, and TXD set to Mark Idle.
- Wait for DSR=1 to indicate presence of COM device.
- Stimulate the COM port control leads in a defined manner.
- Collect the ID information if available.
(Optional) Monitor the port when idle to detect device attach/detach.
The COM Enumerator will make two attempts to elicit a PnP ID:
- First, it will try a means with a DTR-RTS time signature, so that devices
like modems (which have traditional uses for DTR and RTS) are not confused.
- If the first try does not generate a reponse, it will assume it is a device
that will begin to respond within 200ms of being powered (e.g. COM port powered
mice, non-modems).
---
Adam Dybkowski
adybkows_at_nospam_amwaw.edu.pl
http://www.amwaw.edu.pl/~adybkows