Adding serial logic device

introduction

 I wrote a function to add serial devices, specially wrote this article, tidy logic, record it.

description

 Side PC through the serial port is connected to the lower machine (of course, not only the serial connection, but only the serial port side).
 Because there may be many lower machine, so the next host computer is not directly connected to a port of the next crew, but the hub port connection, many of the next crew followed the hub.
Topology
 The software implemented mainly through the following such an interface, the add ports of the device. By the address (address), port number (com), device type (device type) determines a device.
form
 There are two ways to add a device, one reading the configuration (.ini) file on the software, and second, by manually adding the above interface device.

 Add UML activity diagram of the logic,
Activity Diagram

purpose

 Sort out the serial port to add logic device, follow-up if you need to change this part of the time, watching the activity diagram change, it will be a lot easier.

Published 60 original articles · won praise 18 · views 20000 +

Guess you like

Origin blog.csdn.net/BadAyase/article/details/103873338