CN105786747A - Method and device for achieving hot plug processing - Google Patents

Method and device for achieving hot plug processing Download PDF

Info

Publication number
CN105786747A
CN105786747A CN201610096662.2A CN201610096662A CN105786747A CN 105786747 A CN105786747 A CN 105786747A CN 201610096662 A CN201610096662 A CN 201610096662A CN 105786747 A CN105786747 A CN 105786747A
Authority
CN
China
Prior art keywords
pluggable module
module
ordinary connector
level
pluggable
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.)
Pending
Application number
CN201610096662.2A
Other languages
Chinese (zh)
Inventor
万雪飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hollysys Co Ltd
Original Assignee
Beijing Hollysys Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Hollysys Co Ltd filed Critical Beijing Hollysys Co Ltd
Priority to CN201610096662.2A priority Critical patent/CN105786747A/en
Publication of CN105786747A publication Critical patent/CN105786747A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • G06F13/4081Live connection to bus, e.g. hot-plugging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Abstract

The invention discloses a method and device for achieving hot pug processing. The method comprises the steps that a controller judges that a pluggable module is pulled out of a common connector, and the service related to the pluggable module is stopped. According to the technical scheme, when it is judged that the pluggable module is pulled out of the common connector, the service related to the pluggable module is stopped, for the controller, system anomaly caused due to the fact that the pluggable module is pulled out is avoided, and therefore the hot plug function based on the common connector is achieved.

Description

A kind of method and apparatus realizing hot plug process
Technical field
Present document relates to but be not limited to hot plug technology, espespecially a kind of method and apparatus realizing hot plug process.
Background technology
Traditional method realizing hot plug process adopts long and short hands to realize hot plug, and this mode needs to adopt long and short hands adapter to connect pluggable module and corresponding equipment, and long and short hands adapter is relatively costly.In order to reduce the cost of equipment, it is generally adopted ordinary connector and connects pluggable module and corresponding equipment, but, correlation technique not yet has the solution realizing hot plug for ordinary connector.
Summary of the invention
The embodiment of the present invention proposes a kind of method and apparatus realizing hot plug process, it is possible to realize hot plug based on ordinary connector.
The embodiment of the present invention proposes a kind of method realizing hot plug process, including:
Controller judges that pluggable module is extracted from ordinary connector, stops the business relevant to pluggable module.
Optionally, when described controller judges that described pluggable module is inserted into described ordinary connector, the method also includes:
Described pluggable module is carried out initial configuration by described controller.
Optionally, described controller judges that pluggable module is inserted into ordinary connector and includes:
Described controller judges that the level of the default pin of described ordinary connector is become low level from high level.
Optionally, the method also includes:
Described pluggable module is unloaded after stopping the business relevant to described pluggable module by described controller.
Optionally, described controller is judged that pluggable module is extracted from ordinary connector and is included:
Described controller judges that the level of the default pin of described ordinary connector is become high level from low level.
The embodiment of the present invention also proposed a kind of device realizing hot plug process, including:
Judge module, for judging that pluggable module is extracted from ordinary connector, sends the first notification message to processing module;
Processing module, is used for receiving the first notification message, stops the business relevant to pluggable module.
Optionally, described judge module is additionally operable to:
When judging that described pluggable module is inserted into described ordinary connector, send the second notification message to described processing module;
Described processing module is additionally operable to, and receives the second notification message, and described pluggable module is carried out initial configuration.
Optionally, described judge module is specifically for realizing in the following ways judging that described pluggable module is inserted into described ordinary connector:
Judge that the level of the default pin of described ordinary connector is become low level from high level.
Optionally, described processing module is additionally operable to:
After stopping the business relevant to described pluggable module, described pluggable module is unloaded.
Optionally, described judge module specifically realizes judging that pluggable module is extracted from ordinary connector in the following ways:
Judge that the level of the default pin of described ordinary connector is become high level from low level.
Compared with correlation technique, the technical scheme of the embodiment of the present invention includes: controller judges that pluggable module is extracted from ordinary connector, stops the business relevant to pluggable module.By the scheme of the embodiment of the present invention, judging that pluggable module is from when extracting ordinary connector, stop the business relevant to pluggable module, it is to avoid the controller system exception owing to causing after extracting pluggable module, it is achieved thereby that based on the warm connection function of ordinary connector.
Accompanying drawing explanation
Below the accompanying drawing in the embodiment of the present invention being illustrated, the accompanying drawing in embodiment is for a further understanding of the present invention, is used for explaining the present invention, is not intended that limiting the scope of the invention together with description.
Fig. 1 is the flow chart that the embodiment of the present invention realizes the method that hot plug processes;
Fig. 2 is the structure composition schematic diagram of the invention process csr controller;
Fig. 3 is the structure composition schematic diagram that the embodiment of the present invention realizes the device that hot plug processes.
Detailed description of the invention
For the ease of the understanding of those skilled in the art, below in conjunction with accompanying drawing, the invention will be further described, can not be used for limiting the scope of the invention.It should be noted that when not conflicting, the embodiment in the application and the various modes in embodiment can be mutually combined.
Referring to Fig. 1, the embodiment of the present invention proposes a kind of method realizing hot plug process, including:
Step 100, controller judge that pluggable module is extracted from ordinary connector, stop the business relevant to pluggable module.
In this step, pluggable module can be from serial communication transceiver.
In this step, controller is judged that pluggable module is extracted from ordinary connector and is included:
Controller judges that the level of the default pin of described ordinary connector is become high level from low level.s
In this step, specifically how to stop the business relevant to pluggable module and the technology of knowing of those skilled in the art can be adopted to realize, the protection domain being not intended to limit the present invention, repeat no more here.
In this step, controller can run two operating systems simultaneously, including non-real time operating system and real time operating system.Based on real time operating system, this step can judge whether pluggable module extracts from ordinary connector, and stop the business relevant to pluggable module based on real time operating system.
Optionally, the method also includes:
After step 101, controller stop the business relevant to pluggable module, pluggable module is unloaded.
In this step, how pluggable module unloading specifically can be adopted the technology of knowing of those skilled in the art to realize by controller, and the protection domain being not intended to limit the present invention repeats no more here.
Pluggable module can be unloaded by this step based on non-real time operating system.
The method also includes:
Controller judges that pluggable module is inserted into ordinary connector, and pluggable module is carried out initial configuration.
Wherein, controller judges that pluggable module is inserted into ordinary connector and includes:
Controller judges that the level of the default pin of described ordinary connector is become low level from high level.
Wherein it is possible to pluggable module is carried out initial configuration based on non-real time operating system.
Fig. 2 is the structure composition schematic diagram of the invention process csr controller.As in figure 2 it is shown, said method can apply in the controller shown in Fig. 2.
In Fig. 2, controller includes processor, main serial communication transceiver and one or more ordinary connector.So, an ordinary connector may be inserted into a pluggable module, to realize the communication between main serial communication transceiver and pluggable module.
Wherein, processor can be dual core processor.
Wherein, processor can be Reduced Instruction Set Computer (RISC, ReducedInstructionSetComputer) microprocessor (ARM, AdvancedRISCMachines) processor.
Wherein, the low speed universal input output (IO of processor, InputOutput) pin is connected with the default pin of ordinary connector, so, as long as the level change of the low speed general purpose I/O pins of controller measurement processor just can judge whether pluggable module inserts or pull out ordinary connector;
Described pluggable module is from serial communication transceiver.
Wherein, main serial communication transceiver and/or can be external equipment interconnection bus (PCI, PeripheralComponentInterconnect) and interface standard (PCIe, PCIExpress) transceiver from serial communication transceiver.
Wherein, the high-speed communication pin of main serial communication transceiver is connected with the high-speed communication pin of processor, the high-speed communication pin of main serial communication transceiver is connected by ordinary connector with the high-speed communication pin from serial communication transceiver, to realize main serial communication transceiver and from the communication between serial communication transceiver.
Referring to Fig. 3, the invention allows for a kind of device realizing hot plug process, including:
Judge module, for judging that pluggable module is extracted from ordinary connector, sends the first notification message to processing module;
Processing module, is used for receiving the first notification message, stops the business relevant to pluggable module.
In assembly of the invention, it is judged that module is additionally operable to:
When judging that described pluggable module is inserted into described ordinary connector, send the second notification message to processing module;
Processing module is additionally operable to:
Receive the second notification message, described pluggable module is carried out initial configuration.
In assembly of the invention, described judge module is specifically for realizing in the following ways judging that described pluggable module is inserted into described ordinary connector:
Judge that the level of the default pin of described ordinary connector is become low level from high level.
In assembly of the invention, described processor is additionally operable to:
After stopping the business relevant to described pluggable module, described pluggable module is unloaded.
In assembly of the invention, it is judged that module specifically realizes judging that pluggable module is extracted from ordinary connector in the following ways:
Judge that the level of the default pin of described ordinary connector is become high level from low level.
It should be noted that; embodiment described above is for only for ease of those skilled in the art and understands; it is not limited to protection scope of the present invention; under the premise without departing from the inventive concept of the present invention, those skilled in the art to the made any apparent replacement and improvement etc. of the present invention all within protection scope of the present invention.

Claims (10)

1. one kind realizes the method that hot plug processes, it is characterised in that including:
Controller judges that pluggable module is extracted from ordinary connector, stops the business relevant to pluggable module.
2. method according to claim 1, it is characterised in that when described controller judges that described pluggable module is inserted into described ordinary connector, the method also includes:
Described pluggable module is carried out initial configuration by described controller.
3. method according to claim 2, it is characterised in that described controller judges that pluggable module is inserted into ordinary connector and includes:
Described controller judges that the level of the default pin of described ordinary connector is become low level from high level.
4. method according to claim 1, it is characterised in that the method also includes:
Described pluggable module is unloaded after stopping the business relevant to described pluggable module by described controller.
5. method according to claim 1, it is characterised in that described controller is judged that pluggable module is extracted from ordinary connector and included:
Described controller judges that the level of the default pin of described ordinary connector is become high level from low level.
6. one kind realizes the device that hot plug processes, it is characterised in that including:
Judge module, for judging that pluggable module is extracted from ordinary connector, sends the first notification message to processing module;
Processing module, is used for receiving the first notification message, stops the business relevant to pluggable module.
7. device according to claim 6, it is characterised in that described judge module is additionally operable to:
When judging that described pluggable module is inserted into described ordinary connector, send the second notification message to described processing module;
Described processing module is additionally operable to, and receives the second notification message, and described pluggable module is carried out initial configuration.
8. device according to claim 7, it is characterised in that described judge module is specifically for realizing in the following ways judging that described pluggable module is inserted into described ordinary connector:
Judge that the level of the default pin of described ordinary connector is become low level from high level.
9. device according to claim 6, it is characterised in that described processing module is additionally operable to:
After stopping the business relevant to described pluggable module, described pluggable module is unloaded.
10. device according to claim 6, it is characterised in that described judge module specifically realizes judging that pluggable module is extracted from ordinary connector in the following ways:
Judge that the level of the default pin of described ordinary connector is become high level from low level.
CN201610096662.2A 2016-02-22 2016-02-22 Method and device for achieving hot plug processing Pending CN105786747A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610096662.2A CN105786747A (en) 2016-02-22 2016-02-22 Method and device for achieving hot plug processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610096662.2A CN105786747A (en) 2016-02-22 2016-02-22 Method and device for achieving hot plug processing

Publications (1)

Publication Number Publication Date
CN105786747A true CN105786747A (en) 2016-07-20

Family

ID=56403368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610096662.2A Pending CN105786747A (en) 2016-02-22 2016-02-22 Method and device for achieving hot plug processing

Country Status (1)

Country Link
CN (1) CN105786747A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947686A (en) * 2019-03-22 2019-06-28 浪潮商用机器有限公司 A kind of PCIE system, hot-swappable processing method and relevant apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136004A (en) * 2007-09-21 2008-03-05 江苏金智科技股份有限公司 Universal serial bus host interface used in protective-relay device
CN101840306A (en) * 2009-03-18 2010-09-22 研祥智能科技股份有限公司 Method and system for driving SATA (Serial Advanced Technology Attachment) device in VxWorks operating system
CN102843449A (en) * 2012-08-16 2012-12-26 惠州Tcl移动通信有限公司 Mobile communication device and detecting method of subscriber identity module (SIM) card hotplug
CN103293969A (en) * 2012-03-05 2013-09-11 联发科技股份有限公司 Control chip
CN103378505A (en) * 2012-04-26 2013-10-30 鸿富锦精密工业(深圳)有限公司 Connector assembly

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101136004A (en) * 2007-09-21 2008-03-05 江苏金智科技股份有限公司 Universal serial bus host interface used in protective-relay device
CN101840306A (en) * 2009-03-18 2010-09-22 研祥智能科技股份有限公司 Method and system for driving SATA (Serial Advanced Technology Attachment) device in VxWorks operating system
CN103293969A (en) * 2012-03-05 2013-09-11 联发科技股份有限公司 Control chip
CN103378505A (en) * 2012-04-26 2013-10-30 鸿富锦精密工业(深圳)有限公司 Connector assembly
CN102843449A (en) * 2012-08-16 2012-12-26 惠州Tcl移动通信有限公司 Mobile communication device and detecting method of subscriber identity module (SIM) card hotplug

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109947686A (en) * 2019-03-22 2019-06-28 浪潮商用机器有限公司 A kind of PCIE system, hot-swappable processing method and relevant apparatus

Similar Documents

Publication Publication Date Title
EP3234788B1 (en) DATA TRANSMISSION USING PCIe PROTOCOL VIA USB PORT
CN102479133B (en) USB (Universal Serial Bus) equipment and detection method thereof
US9043528B2 (en) Bridge between a peripheral component interconnect express interface and a universal serial bus 3.0 device
CN104350481A (en) Device disconnect detection
US20090063717A1 (en) Rate Adaptation for Support of Full-Speed USB Transactions Over a High-Speed USB Interface
WO2018001168A1 (en) Method and apparatus for managing main board card and backup board card
WO2014194459A1 (en) Method for inhibiting pcie noise output through optical fiber communication, device thereof and communication nodes
KR101284403B1 (en) System and method for customizing a scsi error response received from a scsi target in a storage network environment
US20130124772A1 (en) Graphics processing
WO2022161486A1 (en) Devices, systems, and methods for controlling communication between apparatuses
CN103577362A (en) Method for improving data transmission and related computer system
CN102445981B (en) Data transmission system and data transmission method
CN105786747A (en) Method and device for achieving hot plug processing
CN102108963B (en) Fan detection device and method
CN112448820A (en) Communication equipment panel interface and communication equipment
US9547615B2 (en) Peripheral protocol negotiation
CN104123259A (en) USB resource utilization method
CN103853572A (en) Starting-up method and electronic equipment
CN103440218A (en) CAN (Control Area Network) bus monitoring method based on USB-HID (Universal Serial Bus-Human Input Device) protocol
CN106452838A (en) USB (Universal Serial Bus) equipment simulation device and method
US20150095540A1 (en) External device and a transmission system and the method of the heterogeneous device
CN103514125B (en) Main control electronic device and main control end operational approach
CN105068952A (en) SD interface multiplexing apparatus and method and electronic device
CN106372017B (en) A kind of embedded device and serial ports receive-transmit system
CN203786729U (en) USB (universal serial bus) connecting device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160720

RJ01 Rejection of invention patent application after publication