Download Method and system for controlling peripheral devices connected to a

Transcript
Patent Application Publication Feb. 10, 2005 Sheet 10 0f 17
US 2005/0034160 A1
FIG. 6A
Input port
\
no
RxD
hardware logic
for RS-232C
UART
/\/
Microprocessor
or CPU
Buffer
‘
(3Q)
‘
Output port
GPIO
W—]
U 0|‘
TXD
RxD
enableldisable
control
(clefaull: enable)
/
DescoveryAddressDeviceO
{
MessageFromDevice=TRUE;
Broadcast to all device to disable the control buffer and clear all device ID
While(MessageFromDevice==FALSE)do
{
(A)
Send WhoAreYou Packet to device N
if(Receive WholAm Packet) /\/(B)
{
Generate new device ID and send it to device
Register the device ID
(The device will enable the buffer)
}
else
{
MessageFromDevice=FALSE
)