CN103123611A - Control method for hot drawing and inserting of peripheral component interconnect (PCI) board card of Asterisk server - Google Patents

Control method for hot drawing and inserting of peripheral component interconnect (PCI) board card of Asterisk server Download PDF

Info

Publication number
CN103123611A
CN103123611A CN2011103670815A CN201110367081A CN103123611A CN 103123611 A CN103123611 A CN 103123611A CN 2011103670815 A CN2011103670815 A CN 2011103670815A CN 201110367081 A CN201110367081 A CN 201110367081A CN 103123611 A CN103123611 A CN 103123611A
Authority
CN
China
Prior art keywords
pci
asterisk
managing process
service
circuit board
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.)
Granted
Application number
CN2011103670815A
Other languages
Chinese (zh)
Other versions
CN103123611B (en
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.)
Wuhan Iron & Steel Engineering Technology Group Communications Co Ltd
Original Assignee
Wuhan Iron and Steel Group Corp
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 Wuhan Iron and Steel Group Corp filed Critical Wuhan Iron and Steel Group Corp
Priority to CN201110367081.5A priority Critical patent/CN103123611B/en
Publication of CN103123611A publication Critical patent/CN103123611A/en
Application granted granted Critical
Publication of CN103123611B publication Critical patent/CN103123611B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to a control method for supporting hot drawing and inserting of a peripheral component interconnect (PCI) board card of an Asterisk server. A management progress is established between an operating system and Asterisk application to monitor inserting and removing of the PCI board card. The operating system is informed to uninstall a PCI board card drive and stop or start an Asterisk service so that a user does not need to inform all users first and then to stop a server for replacing the PCI card board and then opens the server to start the Asterisk service.

Description

The hot-swappable control method of Asterisk server PCI integrated circuit board
Technical field
The present invention relates to a kind of method of automatic identification PCI integrated circuit board, refer more particularly to based on the hot-swappable automatic identification technology of Asterisk hardware.
Background technology
Fast development along with network technology, next generation network is familiar with by everybody, call out software with the core of controlling as next generation network and change everybody and also do not feel strange, the Asterisk as the outstanding person in soft switch is widely used especially.Yet, being widely used simultaneously at Asterisk, the user has also found its weak point on hardware.Wherein the most important is: if a certain PCI integrated circuit board of Asterisk server damaged, need closing server, change the PCI integrated circuit board, then open server, open the Asterisk service.The trouble that so not only operates, but also delayed time of users.Therefore, a kind of technology of user's exigence makes it can be in the situation that closing server not, hot-swappable PCI integrated circuit board, and server can be identified loading automatically.
Summary of the invention
Technical matters to be solved by this invention has been to provide the hot-swappable control method of a kind of Asterisk of realization server PCI integrated circuit board, and it does not need to close the Asterisk server, realizes that the direct heat plug of PCI integrated circuit board is changed.
For solving the problems of the technologies described above, the invention provides the hot-swappable control method of a kind of Asterisk of realization server PCI integrated circuit board, set up contact channel between (SuSE) Linux OS and Asterisk, make Asterisk can in time recognize the insertion of PCI integrated circuit board and remove, automatic mounting unloads PCI Labcard driver program and unlatching or closes the Asterisk service, and need not user intervention.
The present invention specifically comprises the following steps:
Step 1, load a managing process on operating system, with the insertion of monitoring PCI integrated circuit board with remove; When the insertion of PCI integrated circuit board or when removing, managing process will scan by PCI " the PCI integrated circuit board inserts or removes " message;
Step 2, after managing process captures described " PCI integrated circuit board insert or remove " message, send the instruction scan pci bus to operating system, all devices on the identification pci bus;
Step 3, managing process obtain the information of each PCI slot this moment from operating system, comprise the connection status of PCI slot, model, the ID information of the PCI integrated circuit board that the PCI slot is connected, and generate temporary log file to keep a record;
Step 4, managing process send " closing application " instruction to the Asterisk application system, wait for the Asterisk feedback;
Step 5, Asterisk send " service is closed " message to the user who is conversing, and then stop service, are returning to " service is closed successfully " message to managing process;
After step 6, managing process receive that Asterisk returns to " service is closed successfully " message, notice operating system unloading PCI Labcard driver;
Step 7, operating system unloading PCI Labcard driver;
The information of the PCI slot that step 8, operating system are put down in writing according to temporary log file loads the PCI Labcard driver, then sends " loading of PCI Labcard driver " message to managing process;
Step 9, managing process send " opening service " instruction to Asterisk;
Step 10, the service of Asterisk process initiation;
Step 11, managing process deletion temporary log file.
The present invention is owing to having set up a managing process between (SuSE) Linux OS and Asterisk, thereby can understand timely the insertion of PCI integrated circuit board and remove, automatic mounting unloads the PCI Labcard driver and closes or open the Asterisk service, the user need not first to notify a user, closing server again, change the PCI integrated circuit board, then open server, open the Asterisk service.
Description of drawings
Below in conjunction with the drawings and specific embodiments, technical scheme of the present invention is further described in detail.
Fig. 1 is of the present invention based on the process flow diagram of realizing the control method that Asterisk server PCI integrated circuit board is hot-swappable under (SuSE) Linux OS.
Fig. 2 is PCI integrated circuit board provided by the invention main operation chart when inserting or removing.
Embodiment
The invention provides the hot-swappable control method of a kind of Asterisk of realization server PCI integrated circuit board, by set up a managing process between (SuSE) Linux OS and Asterisk, thereby can understand timely the insertion of PCI integrated circuit board and remove, automatic mounting unloads the PCI Labcard driver and closes or open the Asterisk service.Concrete steps are in conjunction with Fig. 1, shown in Figure 2:
Step P1, at first open managing process, managing process enters listening state, and whether monitor has the insertion of PCI integrated circuit board or remove.
Step P2, when the insertion that the PCI integrated circuit board is arranged or when removing, managing process captures " the PCI integrated circuit board inserts or removes " message.Operation steps 1,2 as Fig. 2.
Step P3, managing process can send instruction to linux kernel, requires kernel scanning pci bus, all devices on the identification pci bus.
After equipment on the complete all pci buss of linux kernel scanning recognition, return to scanning result to managing process.Operation steps 3,4 as Fig. 2.
Step P4, managing process read the relevant information of PCI slot, comprise the connection status of PCI slot, the information such as the model of the PCI integrated circuit board that the PCI slot is connected, No. ID, and preserve with the form of temporary log file.As shown in the operation steps 5,6 of Fig. 2.
Step P5, managing process send " closing application " instruction to the Asterisk application system, wait for the Asterisk feedback;
Step P6, Asterisk send " service is closed " message to the user who is conversing; The user that notice is using Asterisk to use, the Asterisk server is about to close.
Step P7, Asterisk stop service, are returning to " service is closed successfully " message to managing process; As shown in the operation steps 7,8,9,10 of Fig. 2.
After managing process receives that Asterisk returns to " service is closed successfully " message, notice operating system unloading PCI Labcard driver;
Step P8, operating system unloading PCI Labcard driver;
The information of the PCI slot that step P9, operating system put down in writing according to temporary log file loads the PCI Labcard driver, then sends " loading of PCI Labcard driver " message to managing process; Operating system according to PCI integrated circuit board ID, loads the PCI Labcard driver according to PCI slot order; As shown in the operation steps 11,12,13,14 of Fig. 2.
After step P10, managing process are received " loading of PCI Labcard driver " message that operating system sends, send " opening service " instruction to Asterisk; The service of Asterisk process initiation.
Step 11, managing process deletion temporary log file, then enter listening state.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although with reference to preferred embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that, can modify or be equal to replacement technical scheme of the present invention, and not breaking away from the spirit and scope of technical solution of the present invention, it all should be encompassed in the middle of claim scope of the present invention.

Claims (1)

1. the hot-swappable control method of Asterisk server PCI integrated circuit board, is characterized in that, comprises the following steps:
Step 1, load a managing process on operating system, with the insertion of monitoring PCI integrated circuit board with remove; When the insertion of PCI integrated circuit board or when removing, managing process will scan by PCI " the PCI integrated circuit board inserts or removes " message;
Step 2, after managing process captures " PCI integrated circuit board insert or remove " message, send the instruction scan pci bus to operating system, all devices on the identification pci bus;
Step 3, managing process obtain the information of each PCI slot this moment from operating system, and generate temporary log file;
Step 4, managing process send " closing application " instruction to the Asterisk application system, wait for the Asterisk feedback;
Step 5, Asterisk send " service is closed " message to the user who is conversing, and then stop service, are returning to " service is closed successfully " message to managing process;
After step 6, managing process receive that Asterisk returns to " service is closed successfully " message, notice operating system unloading PCI Labcard driver;
Step 7, operating system unloading PCI Labcard driver;
The information of the PCI slot that step 8, operating system are put down in writing according to temporary log file loads the PCI Labcard driver, then sends " loading of PCI Labcard driver " message to managing process;
Step 9, managing process send " opening service " instruction to Asterisk;
Step 10, the service of Asterisk process initiation;
Step 11, managing process deletion temporary log file.
CN201110367081.5A 2011-11-18 2011-11-18 The hot-swappable control method of Asterisk server PCI board Active CN103123611B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110367081.5A CN103123611B (en) 2011-11-18 2011-11-18 The hot-swappable control method of Asterisk server PCI board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110367081.5A CN103123611B (en) 2011-11-18 2011-11-18 The hot-swappable control method of Asterisk server PCI board

Publications (2)

Publication Number Publication Date
CN103123611A true CN103123611A (en) 2013-05-29
CN103123611B CN103123611B (en) 2015-11-18

Family

ID=48454594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110367081.5A Active CN103123611B (en) 2011-11-18 2011-11-18 The hot-swappable control method of Asterisk server PCI board

Country Status (1)

Country Link
CN (1) CN103123611B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793987A (en) * 1996-04-18 1998-08-11 Cisco Systems, Inc. Hot plug port adapter with separate PCI local bus and auxiliary bus
EP0811932B1 (en) * 1996-06-05 2003-04-09 Compaq Computer Corporation Connecting expansion cards
CN1632769A (en) * 2003-12-22 2005-06-29 英业达股份有限公司 IDE equipment hot plug system and implementing method under Linux operating system
CN1936875A (en) * 2005-09-23 2007-03-28 英业达股份有限公司 Hot plug-pull control system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5793987A (en) * 1996-04-18 1998-08-11 Cisco Systems, Inc. Hot plug port adapter with separate PCI local bus and auxiliary bus
EP0811932B1 (en) * 1996-06-05 2003-04-09 Compaq Computer Corporation Connecting expansion cards
CN1632769A (en) * 2003-12-22 2005-06-29 英业达股份有限公司 IDE equipment hot plug system and implementing method under Linux operating system
CN1936875A (en) * 2005-09-23 2007-03-28 英业达股份有限公司 Hot plug-pull control system and method

Also Published As

Publication number Publication date
CN103123611B (en) 2015-11-18

Similar Documents

Publication Publication Date Title
CN105677477B (en) Method and device for optimizing application program resources and electronic equipment
CN102591668B (en) Device, method and system for updating elastic computing cloud system
CN103729275B (en) Hard disk firmware repairing system and hard disk firmware repairing method
CN103425506A (en) Powering off method, starting up method and communication terminal
CN103164229A (en) Method and device for clearing progresses of mobile terminal
CN105389525B (en) The management method and system of blade server
CN106406944A (en) Control method and system for forbidding self-starting of application
CN100428155C (en) Upgrading method of communication equipment
CN201585034U (en) System update device of plug-and-play digital set top box
CN102902518A (en) Active USB (Universal Serial Bus) equipment and operating mode switching method thereof
EP2466943A1 (en) Method and device for monitoring running state of card
CN103136005A (en) Method of updating firmware
CN105049937A (en) Method and device for unloading external storage equipment from Android system smart television
CN106843940A (en) A kind of fast updating method of embedded system
CN103257700A (en) Energy saving method and energy saving device for Android system
CN103873516A (en) HA method and system for improving usage rate of physical servers in cloud computing resource pool
CN108762886A (en) The fault detect restoration methods and system of virtual machine
CN101119188A (en) Single board updating method for implementing uninterruptive service
CN113573344A (en) SMF session detection method based on 5G and terminal
CN103235746B (en) Server all-in-one automatic recovery method
CN101022633B (en) Allocation data recovering method, system and device
CN105824622A (en) Data processing method and electronic equipment
CN110753040B (en) Request processing method and device
CN108052289A (en) Method, set-top box and the storage medium of data processing
CN108958808A (en) Method for starting terminal and device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171218

Address after: 430000 front of Qingshan District factory in Wuhan, Hubei Province

Patentee after: Wuhan Iron & Steel Engineering Technology Group Communications Co., Ltd.

Address before: 430080 Friendship Avenue, Hubei, Wuhan, No. 999

Patentee before: Wuhan Iron & Steel (Group) Corp.

TR01 Transfer of patent right