CN103593319B - A kind of serial ports application process supporting hot-swappable and automatic identification outside appurtenances - Google Patents
A kind of serial ports application process supporting hot-swappable and automatic identification outside appurtenances Download PDFInfo
- Publication number
- CN103593319B CN103593319B CN201310548653.9A CN201310548653A CN103593319B CN 103593319 B CN103593319 B CN 103593319B CN 201310548653 A CN201310548653 A CN 201310548653A CN 103593319 B CN103593319 B CN 103593319B
- Authority
- CN
- China
- Prior art keywords
- serial ports
- input port
- access
- swappable
- iic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of serial ports application process supporting hot-swappable and automatic identification outside appurtenances, it redefines edge connector pin according to control line, data line and detection line, is specially: (1), definition one are for detecting the signal wire of serial ports access; (2) clock and the data line of IIC, is defined; (3), external unit applies the IIC control chip 9505 of three address wires; (4) be, input pattern to wherein 8 pinouts of 9505; (5) input port of 8 segment encode switch accesses 9505, is added; Configured by ordered pair during Simulation with I IC 9505 and read the level being configured to input port, corresponding with it according to the type adjustment toggle switch of predefined external unit; The pin configuration of master control STM32 becomes external interrupt pattern when the access signal that serial ports detects, triggered interrupts; Then read the input pin level of 9505 by comparing the device type obtaining outside access.The present invention proceeds after can accessing external device when not needing shutdown to control and operation.
Description
Technical field:
The present invention relates to electronic device control technology field, specifically relate to a kind of serial ports application process supporting hot-swappable and automatic identification outside appurtenances.
Background technology:
Hot plug (hot-plugging or HotSwap) function allows user in not shutdown system exactly, take out and change the parts such as hard disk, power supply or the board damaged when not cutting off the electricity supply, thus improve system to the timely recovery capability of disaster, extendability and dirigibility etc., the warm connection function of disk more such as can be provided towards the disk mirroring system of high-end applications.
Realize hot plug and need the following aspects support: bus electrical specification, mainboard BIOS, operating system and device drives.As long as so determine that environment meets above specific environment, just hot plug can be realized.Part hot plug technology supported by current system bus, and particularly from 586 epoch, system bus both increases the expansion of external bus, and therefore our misgivings of this respect can be eliminated.From 1997, the support of plug-and-play feature is added in new BIOS, although the support of this plug and play does not represent hot plug support completely, only support that heat is added to replace with heat, but this uses maximum technology in hot plug, so this problem of mainboard BIOS also can overcome.In operating system, just start to support plug and play from Windows95, but it is very limited for hot plug support, until NT4.0 starts, Microsoft starts to notice that NT operating system will for server field, and hot plug is a very crucial technology in this field, so just add hot plug support completely in operating system, and this characteristic continues up to the Windows2000/XP operating system of base NT technology, as long as therefore use the operating system of more than NT4.0, hot plug aspect operating system just provides complete support.Driving aspect, the driving at present for the Netware of WindowsNT, Novell, SCOUNIX all incorporates into warm connection function, as long as select the driving for above operating system, last key element realizing hot plug has just possessed.
It is well known that: in common computer, USB (USB (universal serial bus)) interfacing equipment and IEEE1394 interfacing equipment etc. can realize hot plug, and the parts that can realize hot plug in server mainly contain hard disk, CPU, internal memory, power supply, fan, PCI adapter, network interface card etc.Must notice which parts can realize hot plug when buying server, this is most important to later work.
Summary of the invention:
Object of the present invention is just to provide a kind of serial ports application process supporting hot-swappable and automatic identification outside appurtenances, and it can proceed after user can be allowed to access external device when not needing shutdown to control and operation.
For achieving the above object, of the present inventionly a kind ofly support that the serial ports application process of hot-swappable and automatic identification outside appurtenances adopts 25 core D type edge connectoies, according to control line, data line and detection line, pin is redefined, be specially: (1), definition one are for detecting the signal wire of serial ports access; (2) clock and the data line of IIC, is defined; (3), external unit applies the IIC control chip 9505 of three address wires; (4) be, input pattern to wherein 8 pinouts of 9505; (5) input port of 8 segment encode switch accesses 9505, is added; Configured by ordered pair during Simulation with I IC 9505 and read the level of input port, corresponding with it according to the type adjustment toggle switch of predefined external unit; The pin configuration of master control STM32 becomes external interrupt pattern when the access signal that serial ports detects, triggered interrupts; Then read the input port level of 9505 and obtain the outside device type accessed according to described input port level.
Beneficial effect of the present invention is: it can proceed after user can be allowed to access external device when not needing shutdown to control and operation.When band is electrically interposed in Serial Port Line, there is equipment access equipment interface prompting outside, and the controlled pilot lamp of external unit is bright simultaneously, and prompt facility is controlled can normally be used.
Accompanying drawing illustrates:
Below in conjunction with accompanying drawing, the present invention is described further:
Fig. 1 is workflow diagram of the present invention.
Embodiment:
Below in conjunction with specific embodiment, technique scheme is described further.Should be understood that these embodiments are for illustration of principle of the present invention instead of limit protection scope of the present invention.
Specific design of the present invention is the market-ripe based on serial communication line, by redefining the purposes of pin, coordinates the function of the hot-swappable and identification external instrument type of the circuit of external instrument and software simulating serial ports simultaneously.Traditional RS-232-C interface standard has 22 lines, adopts standard 25 core D type edge connector (DB25), uses afterwards and is reduced to 9 core D types socket (DB9), and existing 25 core plug seats in the application seldom adopt.But in order to satisfied control and expansion needs, preferably adopt the plug of 25 cores, after the purposes redefining pin, realize hot-swappable and automatic identification function.
Workflow of the present invention as shown in Figure 1; For EMC instrument, first do not need original definition to 25 core pins, but according to control line, data line and detection line, pin is redefined, be specially: (1), definition one are for detecting the signal wire of serial ports access; (2) clock and the data line of IIC, is defined; (3), external unit applies the IIC control chip 9505 of three address wires; (4) be, input pattern to wherein 8 pinouts of 9505; (5) input port of 8 segment encode switch accesses 9505, is added; Configured by ordered pair during Simulation with I IC 9505 and read the level being configured to input port, corresponding with it according to the type adjustment toggle switch of predefined external unit; The pin configuration of master control STM32 becomes external interrupt pattern when the access signal that serial ports detects (low level negative edge), triggered interrupts; Then read the input pin level of 9505 by comparing the device type obtaining outside access.Owing to being existence 256 kinds on 8 sections of toggle switchs equipment that therefore can distinguish, control and the request for utilization of EMC instrument can be met completely.
Above-mentioned example, only for technical conceive of the present invention and feature are described, its object is to person skilled in the art can be understood content of the present invention and implement according to this, can not limit the scope of the invention with this.All equivalent transformations of doing according to Spirit Essence of the present invention or modification, all should be encompassed within protection scope of the present invention.
Claims (1)
1. support serial ports application process that is hot-swappable and automatic identification outside appurtenances for one kind, it is characterized in that: adopt 25 core D type edge connectoies, according to control line, data line and detection line, pin is redefined, be specially: (1), definition one are for detecting the signal wire of serial ports access; (2) clock and the data line of IIC, is defined; (3), external unit applies the IIC control chip 9505 of three address wires; (4) be, input pattern to wherein 8 pinouts of 9505; (5) input port of 8 segment encode switch accesses 9505, is added; Configured by ordered pair during Simulation with I IC 9505 and read the level of input port, corresponding with it according to the type adjustment toggle switch of predefined external unit; The pin configuration of master control STM32 becomes external interrupt pattern when the access signal that serial ports detects, triggered interrupts; Then read the input port level of 9505 and obtain the outside device type accessed according to described input port level.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310548653.9A CN103593319B (en) | 2013-11-06 | 2013-11-06 | A kind of serial ports application process supporting hot-swappable and automatic identification outside appurtenances |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310548653.9A CN103593319B (en) | 2013-11-06 | 2013-11-06 | A kind of serial ports application process supporting hot-swappable and automatic identification outside appurtenances |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103593319A CN103593319A (en) | 2014-02-19 |
CN103593319B true CN103593319B (en) | 2016-04-13 |
Family
ID=50083470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310548653.9A Active CN103593319B (en) | 2013-11-06 | 2013-11-06 | A kind of serial ports application process supporting hot-swappable and automatic identification outside appurtenances |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103593319B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105117276A (en) * | 2015-08-24 | 2015-12-02 | 中国航空无线电电子研究所 | Universal multi-channel PS2 interface signal hot switcher and switching method therefor |
CN105676052B (en) * | 2016-01-26 | 2018-07-24 | 上海斐讯数据通信技术有限公司 | A kind of method and system of serial ports line sequence identification |
CN106815165B (en) * | 2016-12-16 | 2020-01-03 | 捷开通讯(深圳)有限公司 | Mobile device and modularized accessory detection method based on same |
CN113075978A (en) * | 2021-03-26 | 2021-07-06 | 山东英信计算机技术有限公司 | Fan module hot plug timing sequence regulation and control device, method and server |
CN112905510B (en) * | 2021-04-06 | 2023-08-04 | 追觅创新科技(苏州)有限公司 | Host device and accessory status recognition method |
CN118132489B (en) * | 2024-04-30 | 2024-07-02 | 苏州元脑智能科技有限公司 | Device information updating method, system, device and medium of hot plug device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100805835B1 (en) * | 2006-06-02 | 2008-02-21 | 삼성전자주식회사 | Host connection device, method identifying host interface, and multimedia system including host and host connection device |
CN101164052B (en) * | 2005-04-11 | 2013-10-30 | 凌特公司 | Device having signal level different from signal level of external device and communication method thereof |
CN100476780C (en) * | 2006-10-31 | 2009-04-08 | 埃派克森微电子(上海)有限公司 | Automatic method for identifying signal interfaces of electronic equipment |
-
2013
- 2013-11-06 CN CN201310548653.9A patent/CN103593319B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103593319A (en) | 2014-02-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103593319B (en) | A kind of serial ports application process supporting hot-swappable and automatic identification outside appurtenances | |
US9460042B2 (en) | Backplane controller to arbitrate multiplexing of communication | |
CN102662903B (en) | A kind of method realizing PCIE device hot plug by CPLD or FPGA | |
US8862790B2 (en) | Method for identifying version type of windows operating system on a host by a USB device | |
TWI482034B (en) | Interface card | |
CN110069436B (en) | Hot plug control circuit and related storage server system | |
TW201510698A (en) | Hot swapping memory shape mother board | |
CN204203971U (en) | A kind of credible accounting system | |
EP1403814B1 (en) | Electronic apparatus, information processing apparatus, adapter apparatus, and information exchange system | |
CN104899177B (en) | A kind of I2C apparatus control methods and system | |
US10445276B2 (en) | Server system having a hot plug motherboard | |
CN104461977A (en) | memory card access device, control method thereof and memory card access system | |
CN206684646U (en) | A kind of RAID memory planes based on double SD cards | |
CN108153695A (en) | Computer system | |
CN110610728B (en) | Memory circuit board controlled by universal serial bus | |
CN201654759U (en) | Storage medium information eliminator | |
Intel | Intel® NUC Board DE3815TYBE Technical Product Specification | |
Intel | ||
Intel | ||
Intel | ||
Intel | ||
Intel | Intel® NUC Board D54250WYB and Intel® NUC Board D34010WYB Technical Product Specification | |
CN103049214B (en) | Magnetic disc array card and there is the disc array system of extended function | |
TWI607317B (en) | Computer system | |
TW486659B (en) | Computer system with hot-swap function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |