CN108446138A - A kind of drive load method and device - Google Patents

A kind of drive load method and device Download PDF

Info

Publication number
CN108446138A
CN108446138A CN201710076761.9A CN201710076761A CN108446138A CN 108446138 A CN108446138 A CN 108446138A CN 201710076761 A CN201710076761 A CN 201710076761A CN 108446138 A CN108446138 A CN 108446138A
Authority
CN
China
Prior art keywords
chip
target drives
slic
target
initialization
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
CN201710076761.9A
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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710076761.9A priority Critical patent/CN108446138A/en
Publication of CN108446138A publication Critical patent/CN108446138A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention proposes that a kind of drive load method and device, the drive load method include:After obtaining operational order, the corresponding first kind of the first chip is determined according to preset strategy;Wherein, preset strategy is used for the determination of the first kind;Obtain the corresponding current driving of the first chip;According to the first kind, preset kind and the correspondence of driving, the corresponding target drives of the first kind are determined;When current driving is different with target drives, current driving is unloaded, and load target drives.

Description

A kind of drive load method and device
Technical field
The present invention relates to the loading technique of the driving in electronic application field more particularly to a kind of drive load method and dresses It sets.
Background technology
Voice transfer (VOIP, Voice over Internet Protocol) based on Internet protocol is mainly used for The transmission of voice on ip networks is exactly briefly by analog signal digital.In general, VOIP modules are mainly by user's line Interface circuit (SLIC, Subscriber Line Interface Circuit) drives, Digital Signal Processing (DSP, Digital Signal Process) driving, business module, the essential parts such as configuration module composition.Due to producing producer's ratio of SLIC chips It is more, therefore in the system of VOIP, the variation of the parts SLIC can be relatively more, therefore for different SLIC chip types, need Match different SLIC chip drives.
Fig. 1 is the device composition frame chart that common single SLIC drives embodiment, as shown in Figure 1, when only a kind of When SLIC chips, device mainly by SLIC chip hardwares, SLIC third party's source code API, dynamic base, specific SLIC drive modules, Several parts such as drive load module, upper layer module are constituted.Fig. 2 is that common more SLIC drive the device of embodiment to form frame Figure, as shown in Fig. 2, including application programming interface (API, Application Programming Interface), dynamic The modules SLIC third party source code such as library is corresponded with SLIC drive modules respectively, forms independent line card drive software, is driven Load-on module and upper layer module constitute master control borad software together, and therefore, line card drive software is corresponded to the increase of chip type Increase.
In the implementation of the present invention, inventor has found that at least there are the following problems in the prior art:
When carrying out drive load at least one SLIC chips, in apparatus structure as shown in Figure 2, with SLIC chips Increase, when line card drive software is excessive, increasing for line card drive software version quantity when drive load can be caused, and increase The difficulty that software version is safeguarded.
Invention content
The embodiment of the present invention provides a kind of drive load method and device, can be directed to the first different chips, selection with The corresponding driving of first chip is loaded.When increasing new chip, it is only necessary to pair with the driving corresponding to new chip into Row load, can meet only can realize the needs of carrying out drive load to different chips by a software version, and The master control borad software version corresponding to new chip need not be remake in drive load device, added to reduce driving The quantity of software version when load, and significantly reduce the difficulty of software version maintenance.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
An embodiment of the present invention provides a kind of drive load methods, including:
After obtaining operational order, the corresponding first kind of the first chip is determined according to preset strategy;Wherein, described default Strategy is used for the determination of the first kind;
Obtain the corresponding current driving of first chip;
According to the first kind, preset kind and the correspondence of driving, the corresponding target of the first kind is determined Driving;
When the current driving is different with the target drives, the current driving is unloaded, and load the target drive It is dynamic.
It is described that the corresponding first kind of first chip is determined according to preset strategy in said program, including:
The hardware information that prestores for obtaining first chip, according to prestoring described in hardware information determination for first chip The corresponding first kind of first chip;Or;
It obtains user and sets instruction, setting instruction according to the user determines the corresponding first kind of first chip Type.
In said program, after the corresponding target drives of the determination first kind, the method further includes:
When it is described it is current driving it is identical with the target drives when, be continuing with the current driving.
In said program, after the load target drives, the method further includes:
Initialization operation is carried out to first chip according to the target drives, and obtains initialization result.
It is described that initialization operation is carried out to first chip according to the target drives in said program, including:
According to the target drives, the correspondence of default driving and third party's source code, determine and the target drives pair The target third party's source code answered;
Initialization operation is carried out to first chip according to the target third party source code.
In said program, after the acquisition initialization result, the method further includes:
When the initialization result is successfully, returning response is instructed in the response of the operational order;
When the initialization result is failure, the target drives are reloaded.
In said program, after the response instruction of the operational order, the method further includes the returning response:
The first operation is carried out to first chip according to the target third party source code;Wherein, first operation pair Operational order described in Ying Yu.
The embodiment of the present invention proposes a kind of drive load device, including:
First determination unit, for after obtaining operational order, the first chip corresponding first to be determined according to preset strategy Type;Wherein, the preset strategy is used for the determination of the first kind;
Acquiring unit, for obtaining the corresponding current driving of first chip;
Second determination unit, for according to the first kind, preset kind and the correspondence of driving, determining described the The corresponding target drives of one type;
Loading unit, for when the current driving is different with the target drives, unloading the current driving, and plus Carry the target drives.
In said program, first determination unit, specifically for obtaining the hardware information that prestores of first chip, root The corresponding first kind of first chip is determined according to the hardware information that prestores of first chip;Or;
First determination unit is specifically used for obtaining user's setting instruction, and setting instruction according to the user determines institute State the corresponding first kind of the first chip.
In said program, the loading unit is additionally operable to after determining the corresponding target drives of first chip, works as institute State current driving it is identical with the target drives when, be continuing with the current driving.
In said program, described device further includes:
Initialization unit, after loading the target drives, according to the target drives to first chip into Row initialization operation, and obtain initialization result.
In said program, the initialization unit, including:
Determination subelement, for the correspondence according to the target drives, default driving and third party's source code, determine with The corresponding target third party source code of the target drives;
Subelement is initialized, for carrying out initialization operation to first chip according to the target third party source code.
In said program, after the acquisition initialization result,
The initialization unit is additionally operable to when the initialization result is successfully, and returning response is in the operational order Response instruction;
The initialization unit is additionally operable to, when the initialization result is failure, reload the target drives.
In said program, described device further includes:
Operating unit, for returning response after the response instruction of the operational order, according to the target third party Source code carries out the first operation to first chip;Wherein, first operation corresponds to the operational order.
It can be seen that an embodiment of the present invention provides a kind of drive load method and device, after obtaining operational order, root The corresponding first kind of the first chip is determined according to preset strategy;Wherein, preset strategy is used for the determination of the first kind;Obtain first The corresponding current driving of chip;According to the first kind, preset kind and the correspondence of driving, determine that the first chip type corresponds to Target drives;When current driving is different with target drives, current driving is unloaded, and load target drives.That is, In technical solution proposed by the present invention, it can be directed to the first different chips, driving corresponding with the first chip is selected to be added It carries.Obviously, a kind of drive load method and device that the embodiment of the present invention proposes, when increasing new chip, it is only necessary to pair with Driving corresponding to new chip is loaded, and can meet can only be realized by a software version to different chips The demand for carrying out drive load, without remaking the master control borad software corresponding to new chip in drive load device Version, the quantity of software version when to reduce drive load, and significantly reduce the difficulty of software version maintenance.
Description of the drawings
Fig. 1 is the device composition frame chart that common single SLIC drives embodiment;
Fig. 2 is the device composition frame chart that common more SLIC drive embodiment;
Fig. 3 is the overall structure block diagram for the drive load device that the embodiment of the present invention proposes;
Fig. 4 is a kind of flow chart one for drive load method that the embodiment of the present invention proposes;
Fig. 5 is a kind of flowchart 2 for drive load method that the embodiment of the present invention proposes;
Fig. 6 is a kind of flow chart 3 for drive load method that the embodiment of the present invention proposes;
Fig. 7 is a kind of flow chart four for drive load method that the embodiment of the present invention proposes;
Fig. 8 is a kind of flow chart five for drive load method that the embodiment of the present invention proposes;
Fig. 9 is a kind of composed structure schematic diagram for more SLIC drive loads devices that the embodiment of the present invention proposes;
Figure 10 is a kind of flow chart one for more SLIC drive loads methods that the embodiment of the present invention proposes;
Figure 11 is a kind of flowchart 2 for more SLIC drive loads methods that the embodiment of the present invention proposes;
Figure 12 is a kind of speech business drive load method flow diagram that the embodiment of the present invention proposes;
Figure 13 is that a kind of more SLIC chips that the embodiment of the present invention proposes replace the flow chart of quick development method;
Figure 14 is the first composed structure schematic diagram of the drive load device that the embodiment of the present invention proposes;
Figure 15 is the second composed structure schematic diagram of the drive load device that the embodiment of the present invention proposes.
Specific implementation mode
A kind of drive load method and apparatus provided in an embodiment of the present invention are described in detail below in conjunction with the accompanying drawings.
Fig. 3 be the embodiment of the present invention propose drive load device overall structure block diagram, following embodiment be all It is realized on the basis of the overall structure block diagram of drive load device as shown in Figure 3, as shown in figure 3, the real-time example of the present invention carries The overall structure of the drive load device gone out mainly by upper layer module, driving judgment module, drive load module, drive module, The compositions such as third party's source code module and chip hardware.
Embodiment one
Fig. 4 is a kind of flow chart one for drive load method that the embodiment of the present invention proposes, as shown in figure 4, in the present invention Specific embodiment in, drive load device carry out drive load method may comprise steps of:
Step 101, after obtaining operational order, the corresponding first kind of the first chip is determined according to preset strategy;Wherein, Preset strategy is used for the determination of the first kind.
In a specific embodiment of the present invention, drive load device is after obtaining operational order, can be according to pre-setting Strategy determine the chip type corresponding to the first chip, the i.e. first kind, wherein above-mentioned pre-set strategy is specifically used for The determination of the corresponding first kind of above-mentioned first chip.
Further, in a specific embodiment of the present invention, above-mentioned first chip can be VOIP moulds SLIC in the block.
Further, in a specific embodiment of the present invention, the operational order that drive load device obtains is to above-mentioned the The operational order of the progress corresponding operating of one chip, for example, above-mentioned corresponding operating may include the ring of SLIC chips, SLIC cores The operations such as the detection of piece state.
It should be noted that in a specific embodiment of the present invention, drive load device proposed by the present invention can be to set The drive load device being placed in terminal.
Further, in a specific embodiment of the present invention, it is based on above-mentioned Fig. 3, aforesaid operations instruction can be by upper layer What module was sent.
Further, in a specific embodiment of the present invention, it is based on above-mentioned Fig. 3, drive load device can be by above-mentioned Driving judgment module is completed to determine the corresponding first kind of the first chip according to preset strategy.
Step 102 obtains the corresponding current driving of the first chip.
In a specific embodiment of the present invention, drive load device is obtaining operational order and is determining the according to preset strategy After the corresponding first kind of one chip, the corresponding current driving of above-mentioned first chip can be obtained.
Further, in a specific embodiment of the present invention, drive load device obtain aforesaid operations instruction before, on The driving of the existing acquiescence of the first chip is stated, i.e., above-mentioned current driving.
It, both may be with above-mentioned the it should be noted that the above-mentioned current driving for being driven to drive load device current default One type matching, it is also possible to be mismatched with the above-mentioned first kind.
Further, in a specific embodiment of the present invention, drive load device determines the first chip according to preset strategy The method of the corresponding first kind can be the hardware information that prestores that drive load device obtains the first chip, according to the first chip The hardware information that prestores determine the corresponding first kind of the first chip.Specifically, the hardware information that prestores of the first chip is obtained Method includes and is not limited to be configured under BOOT patterns, reads the hardware information etc. of the first chip;Or driving adds It carries to set and obtains user's setting instruction, setting instruction according to user determines the corresponding first kind of the first chip.For example, driving adds The hardware device information set according to current SLIC is carried, judges that currently used SLIC chip types are SLIC1;Alternatively, driving Dynamic loading device is instructed by the setting for manually setting acquisition user of user, currently used according to setting instruction determination SLIC chip types are SLIC1.
Further, in a specific embodiment of the present invention, it is based on above-mentioned Fig. 3, drive load device can be by above-mentioned Judgment module is driven to obtain the corresponding current driving of the first chip.
Step 103, according to the first kind, preset kind and the correspondence of driving, determine the corresponding target of the first kind Driving.
In a specific embodiment of the present invention, drive load device is determining the corresponding first kind of above-mentioned first chip Afterwards, drive load device can determine and the new corresponding target of the above-mentioned first kind according to the correspondence of preset kind and driving Driving.Wherein, above-mentioned preset kind and the correspondence of driving are pre-stored chip type and corresponding with chip type Driving mapping relations, specifically, when increasing new chip type in drive load device, while be also required to increase and should The corresponding new driving of chip type.
Further, in a specific embodiment of the present invention, it is based on above-mentioned Fig. 3, drive load device can be by above-mentioned Driving judgment module determines the corresponding target drives of the first kind.
Step 104, when current driving is with target drives difference, unload current driving, and load target drives.
In a specific embodiment of the present invention, drive load device determine the first chip it is corresponding it is current driving and it is above-mentioned After the corresponding target drives of the first kind, when above-mentioned current driving is differed with above-mentioned target drives, drive load device Above-mentioned current driving is unloaded, and reloads above-mentioned target drives.
Further, in a specific embodiment of the present invention, when judging above-mentioned current driving and above-mentioned target drives not phase Simultaneously, it is believed that corresponding with the first chip first kind of the corresponding current driving of the first chip mismatches, then driving adds It carries and sets, need to unload above-mentioned current driving, and load the target drives to match with above-mentioned first chip.For example, working as SLIC The chip type of chip is SLIC1, and it is currently running be currently driven to driving 2, and according to the correspondence of chip type and driving Relationship determines that the corresponding target drives of SLIC1 are driving 1, is differed with target drives due to currently driving, that is, drives 2 Hes SLIC1 is mismatched, then drive load device can unload driving 2 and load driver 1.
Further, in a specific embodiment of the present invention, it is based on above-mentioned Fig. 3, drive load device can be by above-mentioned Drive load module determines the corresponding target drives of the first kind.
Fig. 5 is a kind of flowchart 2 for drive load method that the embodiment of the present invention proposes, as shown in figure 5, in the present invention Specific embodiment in, drive load device is after determining the corresponding target drives of the above-mentioned first kind, drive load device The method for carrying out drive load can also include the following steps:
Step 105, when current driving is identical with target drives, be continuing with current driving.
In a specific embodiment of the present invention, drive load device determine the first chip it is corresponding it is current driving and it is above-mentioned After the corresponding target drives of the first kind, when it is above-mentioned it is current driving it is identical with above-mentioned target drives when, drive load device is then It is continuing with above-mentioned current driving.
Further, in a specific embodiment of the present invention, when the above-mentioned current driving of judgement is identical with above-mentioned target drives When, it is believed that the corresponding current driving of the first chip corresponding with the first chip first kind matching, then drive load dress It sets, above-mentioned current driving can be continuing with.For example, the chip type when SLIC chips is SLIC1, and currently running work as Before be driven to driving 1, while determining that the corresponding target drives of SLIC1 are driving 1 according to the correspondence of chip type and driving, It is identical with target drives due to currently driving, that is, 1 and SLIC1 matchings are driven, then drive load device will continue to using driving 1。
A kind of drive load method provided in an embodiment of the present invention determines after obtaining operational order according to preset strategy The corresponding first kind of first chip;Wherein, preset strategy is used for the determination of the first kind;It is corresponding current to obtain the first chip Driving;According to the first kind, preset kind and the correspondence of driving, the corresponding target drives of the first chip type are determined;When When currently driving is different with target drives, current driving is unloaded, and load target drives.That is, proposed by the present invention In technical solution, it can be directed to the first different chips, driving corresponding with the first chip is selected to be loaded.Obviously, this hair A kind of drive load method and device that bright embodiment proposes, when increasing new chip, it is only necessary to pair with new chip it is right The driving answered is loaded, and can meet can only be realized by a software version to different chips progress drive load Demand, without remaking the master control borad software version corresponding to new chip in drive load device, to subtract The quantity of software version when having lacked drive load, and significantly reduce the difficulty of software version maintenance.
Embodiment two
Fig. 6 is a kind of flow chart 3 for drive load method that the embodiment of the present invention proposes, as shown in fig. 6, in the present invention Specific embodiment in, load target drives after, drive load device carry out drive load method it is further comprising the steps of:
Step 201 carries out initialization operation according to the first chip of target drives pair, and obtains initialization result.
In a specific embodiment of the present invention, drive load device, can be according to upper after loading above-mentioned target drives It states target drives and initialization operation, after the first chip initiation is completed, drive load device is carried out to above-mentioned first chip Obtain the first chip initiation result.
Further, in a specific embodiment of the present invention, it is based on above-mentioned Fig. 3, drive load device can be by above-mentioned Drive module and the first chip of above-mentioned third party's source code module pair carry out initialization operation, and obtain initialization result.
Step 202, when initialization result is successfully, returning response in operational order response instruct.
In a specific embodiment of the present invention, after the initialization of the first chip completion, when the initialization result of acquisition When being successful, i.e. the first chip initiation success, drive load device returns to command adapted thereto, wherein above-mentioned command adapted thereto corresponds to It is instructed in aforesaid operations, for being responded to aforesaid operations instruction.
Step 203, when initialization result be failure when, reload target drives.
In a specific embodiment of the present invention, after the initialization of the first chip completion, when the initialization result of acquisition When to fail, i.e., the first chip initiation is unsuccessful, then drive load device carries out drive load to the first chip again, and Carry out the first chip initiation operation again after drive load.
A kind of drive load method provided in an embodiment of the present invention can be directed to the first different chips, selection and first The corresponding driving of chip is loaded.Obviously, a kind of drive load method that the embodiment of the present invention proposes, when the new chip of increase When, it is only necessary to it pair loads, can meet only through a software version with the driving corresponding to new chip The demand that different chips are carried out with drive load is realized, without being remake corresponding to new core in drive load device The master control borad software version of piece, the quantity of software version when to reduce drive load, and significantly reduce software version The difficulty of maintenance.
Embodiment three
Fig. 7 is a kind of flow chart four for drive load method that the embodiment of the present invention proposes, as shown in fig. 7, in the present invention Specific embodiment in, drive load device according to the first chip of target drives pair carry out initialization operation method include following Step:
Step 201a, it according to target drives, the correspondence of default driving and third party's source code, determines and target drives pair The target third party's source code answered.
In a specific embodiment of the present invention, drive load device can be according to trade company's target drives and pre-set The correspondence of driving and third party's source code, determines the corresponding third party's source code of above-mentioned target drives, i.e. target third party source code.
It should be noted that in a specific embodiment of the present invention, drive type and third party's source code be it is mutual corresponding, For example, it is present in 1 corresponding third party's source code 1 of driving, when target drives are driving 1, then, target third party's source code is the Tripartite's source code 1.
Further, in a specific embodiment of the present invention, it is based on above-mentioned Fig. 3, drive load device can be by above-mentioned Drive module and above-mentioned third party's source code module determine target third party's source code corresponding with target drives.
Step 201b, initialization operation is carried out according to target third party the first chip of source code pair.
In a specific embodiment of the present invention, it after determining the corresponding target third party source code of above-mentioned target drives, drives Dynamic loading device may be used above-mentioned target third party source code and carry out initialization operation to above-mentioned first chip.Wherein, to above-mentioned It is the initialization operation to above-mentioned first chip hardware that first chip, which carries out initialization operation,.
Further, in a specific embodiment of the present invention, it is based on above-mentioned Fig. 3, drive load device can be by above-mentioned Drive module and the first chip of above-mentioned third party's source code module pair carry out initialization operation.
In conclusion in a specific embodiment of the present invention, 201a~201b through the above steps, drive load device root According to target drives, the correspondence of default driving and third party's source code, target third party's source code corresponding with target drives is determined, Then drive load device carries out initialization operation according to target third party the first chip of source code pair, so as to complete to the first core The initialization of piece.
Example IV
Fig. 8 is a kind of flow chart five for drive load method that the embodiment of the present invention proposes, Fig. 8 is based on embodiment two It realizes, after response instruction of the returning response in operational order, i.e., after step 202, as shown in figure 8, in the tool of the present invention In body embodiment, the method that drive load device carries out drive load is further comprising the steps of:
Step 204 carries out the first operation according to target third party the first chip of source code pair;Wherein, the first operation corresponds to Operational order.
In a specific embodiment of the present invention, after the response instruction in returning response in operational order, drive load dress It sets and the first operation is carried out to above-mentioned first chip according to above-mentioned target third party source code.It should be noted that in the tool of the present invention In body embodiment, above-mentioned first operation is to be instructed to carry out according to aforesaid operations, i.e., above-mentioned first operation corresponds to aforesaid operations Instruction.
Further, in a specific embodiment of the present invention, above-mentioned first operation includes and is not limited to shaking for the first chip Bell, alternatively, the operations such as detection of the first chip status.
Further, in a specific embodiment of the present invention, it is based on above-mentioned Fig. 3, drive load device can be by above-mentioned Drive module and above-mentioned third party's source code module to the first chip to carrying out the first operation.
A kind of drive load method and device provided in an embodiment of the present invention can be directed to different SLIC chips, selection Corresponding SLIC drivings are loaded.Obviously, a kind of drive load method that the embodiment of the present invention proposes, can only pass through one Software version can realize the demand that drive load is carried out to different SLIC chips, software version when reducing drive load Quantity, and significantly reduce software version maintenance difficulty.
Embodiment five
Fig. 9 is a kind of composed structure schematic diagram for more SLIC drive loads devices that the embodiment of the present invention proposes, such as Fig. 9 institutes Show, when above-mentioned first chip is SLIC chips, a kind of more SLIC drive loads devices may include with lower module:
SLIC hardware chips 261,262 ..., on 26n, with drive load device actual motion SLIC hardware chip objects Reason is related, may there was only 1, it is also possible to and it is multiple and deposit, it is physically independent.
SLIC third party's source code 251,252 ..., 25n, the third-party API source codes of the modules such as API, dynamic base, in logic It is independent, it is practical to merge composition third party source code library 25.
SLIC drive modules 241,242 ..., 24n, be responsible for the initialization of SLIC hardware chips, and be responsible for SLIC chips Subsequent operation, be not limited to the ring of SLIC chips, the detection etc. of SLIC chip status is logically independent, it is practical merge constitute SLIC drive modules library 24.
Drive load module 23 realizes the loading and unloading function of driving, if SLIC drivings and the SLIC types of operation The SLIC types that judgment module 22 transmits mismatch, then unload currently used unmatched SLIC drivings, use SLIC types The SLIC types that judgment module 22 is sent select corresponding SLIC drivings to be loaded, and drive load module is needed comprising all SLIC drivers.Drive load module judges whether correctly selected SLIC drivers complete by load.If SLIC Drive load does not complete, and SLIC chips fail to initialize successfully, and the trial of drive load module continues SLIC drivers Load.
SLIC type judging modules 22 are responsible for, according to Current hardware device, judging which kind of current drive load device uses SLIC types, the method for judgement are not limited to be configured under BOOT patterns, read the hardware information etc. of SLIC chips, and will sentence The SLIC types of breaking inform drive load module.
Upper layer module 21 including but not limited to realizes each function module needed for language service:If DSP drives, business mould Block, protocol stack (SIP, H248), configuration module etc..
A kind of drive load device provided in an embodiment of the present invention determines after obtaining operational order according to preset strategy The corresponding first kind of first chip;Wherein, preset strategy is used for the determination of the first kind;It is corresponding current to obtain the first chip Driving;According to the first kind, preset kind and the correspondence of driving, the corresponding target drives of the first chip type are determined;When When currently driving is different with target drives, current driving is unloaded, and load target drives.That is, proposed by the present invention In technical solution, it can be directed to the first different chips, driving corresponding with the first chip is selected to be loaded.Obviously, this hair A kind of drive load device that bright embodiment proposes, when increasing new chip, it is only necessary to pair with the drive corresponding to new chip It is dynamic to be loaded, the need that can be only realized by a software version and different chips are carried out with drive load can be met It asks, without remaking the master control borad software version corresponding to new chip in drive load device, to reduce The quantity of software version when drive load, and significantly reduce the difficulty of software version maintenance.
Embodiment six
Based on embodiment five, Figure 10 is a kind of flow chart for more SLIC drive loads methods that the embodiment of the present invention proposes One, as shown in Figure 10, a kind of method of more SLIC drivings, includes the following steps in the case of single SLIC chips:
Step 301, SLIC type judging modules 22 judge currently used SLIC classes according to the information of current hardware Type, the SLIC types SLICi that will determine that out pass to drive load module 23;The method of judgement be not limited under BOOT patterns into Row configuration, reads the hardware information etc. of SLIC chips.
After step 302, drive load module 23 obtain SLIC types SLICi, currently used SLIC drivings are first determined whether Whether be SLIC drive modules 24i (24i 241,242 ..., the drive module of SLIC types SLICi is corresponded in 24n), such as Fruit is consistent, then is continuing with SLIC drivings, otherwise, unloads currently used unmatched SLIC drivings, uses SLIC types The SLIC type SLICi that judgment module 22 is sent, select corresponding SLIC drive modules 24i to be loaded;
Step 303, SLIC drive modules 24i use SLIC third party's source code 25i (25i 251,252 ..., in 25n Third party's source code of corresponding SLIC types SLICi) to SLIC chips carry out SLIC chip hardwares 26i (26i 261, 262 ... the chip hardware of SLIC types SLICi, is corresponded in 26n) initialization, after the completion of chip initiation, report chip Initialization as a result, and be responsible for the subsequent operations of SLIC chips, be not limited to the ring of SLIC chips, the detection of SLIC chip status Deng;
Step 304, drive load module 24i obtain chip initiation as a result, if chip initiation success, return at Work(result;If chip initiation fails, load SLIC drive modules are again attempted to, the initialization of SLIC chips is carried out.
A kind of drive load method provided in an embodiment of the present invention can be directed to the first different chips, selection and first The corresponding driving of chip is loaded.Obviously, a kind of drive load method that the embodiment of the present invention proposes, when the new chip of increase When, it is only necessary to it pair loads, can meet only through a software version with the driving corresponding to new chip The demand that different chips are carried out with drive load is realized, without being remake corresponding to new core in drive load device The master control borad software version of piece, the quantity of software version when to reduce drive load, and significantly reduce software version The difficulty of maintenance.
Embodiment seven
Based on embodiment five, Figure 11 is a kind of flow chart for more SLIC drive loads methods that the embodiment of the present invention proposes Two, as shown in figure 11, a kind of method of more SLIC drivings, includes the following steps in the case of more SLIC chips:
Step 401, SLIC type judging modules 22 judge currently used SLIC classes according to the information of current hardware Type, it is assumed that current drive load device exists simultaneously two kinds of chip type SLIC1 chip hardwares 261 and SLIC2 chip hardwares 262, respectively in different slot position A and slot position B (there are two pieces of line cards that different SLIC chips are respectively adopted), will determine that out SLIC types and slot position information pass to drive load module 23;The method of judgement is not limited to be configured under BOOT patterns, Read hardware information or the read line card type information etc. of SLIC chips;
After step 402, drive load module 23 obtain SLIC types and slot position information, first determine whether that slot position A is currently used SLIC drivings whether be SLIC drive modules 241 drive module of SLIC1 (corresponding SLIC types), if unanimously, continued It is driven using the SLIC, otherwise, unloads currently used unmatched SLIC drivings, sent using SLIC type judging modules 22 SLIC type SLIC1, select corresponding SLIC drive modules 241 to be loaded;It (depends on drive load to fill simultaneously or then Set and whether realize multithreading) judge whether B currently used SLIC drivings in slot position are (the corresponding SLIC classes of SLIC drive modules 242 The drive module of type SLIC2), if unanimously, being continuing with SLIC drivings, otherwise, unload currently used unmatched SLIC drives, and the SLIC type SLIC2 sent using SLIC type judging modules 22 select corresponding SLIC drive modules 242 It is loaded;
Step 403, SLIC drive modules 241 are using (the third of corresponding SLIC types SLIC1 of SLIC third party's source code 251 Square source code) carry out the initialization of SLIC chip hardwares 261 to SLIC chips, after the completion of chip initiation, report chip initiation As a result, and be responsible for the subsequent operations of SLIC chips, be not limited to the ring of SLIC chips, the detection etc. of SLIC chip status;Together When or then (whether realize multithreading depending on drive load device), SLIC drive modules 242 use SLIC third party's source code 252 (third party's source codes of corresponding SLIC types SLIC1) carry out SLIC chips the initialization of SLIC chip hardwares 262, chip After the completion of initialization, report chip initiation as a result, and be responsible for the subsequent operations of SLIC chips, be not limited to shaking for SLIC chips Bell, the detection etc. of SLIC chip status;
Step 404, drive load module 241 obtain the result of chip initiation;If chip initiation success, return at Work(again attempts to load SLIC drive modules, carries out the initialization of SLIC chips as a result, if chip initiation fails.Simultaneously Or then (whether realize multithreading depending on drive load device), drive load module 242 obtains the result of chip initiation; If chip initiation success, returns to successful result, if chip initiation fails, load SLIC drive modules are again attempted to, Carry out the initialization of SLIC chips.
A kind of drive load method provided in an embodiment of the present invention can be directed to the first different chips, selection and first The corresponding driving of chip is loaded.Obviously, a kind of drive load method that the embodiment of the present invention proposes, when the new chip of increase When, it is only necessary to it pair loads, can meet only through a software version with the driving corresponding to new chip The demand that different chips are carried out with drive load is realized, without being remake corresponding to new core in drive load device The master control borad software version of piece, the quantity of software version when to reduce drive load, and significantly reduce software version The difficulty of maintenance.
Embodiment eight
Based on embodiment five, Figure 12 is a kind of speech business drive load method flow diagram that the embodiment of the present invention proposes, As shown in figure 12, when above-mentioned first chip is the SLIC chips in VOIP, a kind of speech business drive load method include with Lower step:
22 notice of SLIC type judging modules when step 501,23 storage/record of drive load module initialization flow SLIC types and slot position information.
Step 502, drive load module 23 receive the slot position A circuit ring orders that upper layer module 21 issues, and issue system The order notice SLIC drive modules 241 (assuming that the SLIC chip types of slot position A are SLIC1) of one format (interface).
Step 503, SLIC drive modules 241 are using (the third of corresponding SLIC types SLIC1 of SLIC third party's source code 251 Square source code API) ringing operations are carried out to SLIC1 chips.
Step 504, SLIC1 chips detect that user's off-hook operates, and notify SLIC to drive by SLIC third party's source code 251 Dynamic model block 241.
Step 505, SLIC drive modules 241 inform drive load module 23 with the message of unified format (interface).
Step 506, drive load module 23 notify 21 user's off-hook of upper layer module.
Step 507, upper layer module 21 notify drive load module 23 to stop to user's ring, and connect speech processes stream Journey.
Step 508, drive load module 23 receive the stopping circuit ring order that upper layer module 21 issues, and issue unified lattice The order notice SLIC drive modules 241 of formula (interface).
Step 509, SLIC drive modules 241 are using (the third of corresponding SLIC types SLIC1 of SLIC third party's source code 251 Square source code API) stopping ringing operations being carried out to SLIC1 chips, and carry out subsequent operation.
Embodiment nine
Figure 13 is that a kind of more SLIC chips that the embodiment of the present invention proposes replace the flow chart of quick development method, such as Figure 13 Shown, a kind of more SLIC chips are replaced the method quickly developed and are included the following steps:
Step 601 develops the corresponding SLIC drive modules 24x of chip type SLICx, and SLIC third party's source code 25x turns It is changed to the unified interface and function for meeting drive load device operation necessary requirement, such as initialization, ring, detection action, Shield SLIC third party's source code 25x differences;
Step 602, drive load module 23 increase corresponding between the chip type and corresponding SLIC drive modules 24x close System.
Step 603, SLIC type judging modules 22 increase chip type SLICx, and (CLI also increases the chip type or line Card Type).
Due to realizing the decoupling of function module, realize that the key quickly developed is the unitized of interface, each SLIC drives Dynamic model block 24x is both needed to be packaged design according to unified requirement, to realize and drive load module 23 and upper layer module 21 Smooth connection.
In conclusion by the newly-increased and modification of unified encapsulation design and software view upper module, in the same software A variety of SLIC drive modules are provided on version, select to load corresponding SLIC drivings mould according to specific SLIC hardware chips Block can be indifferent to specific hardware SLIC chips to upper layer module, change over and just adopted for different SLIC chip solutions With the method for different software versions the cost of later maintenance is effectively reduced so that version is more prone to safeguard.
Embodiment ten
Figure 14 is the first composed structure schematic diagram of the drive load device that the embodiment of the present invention proposes, as shown in figure 14, The specific embodiment of the invention propose drive load device 1 include:First determination unit 11, acquiring unit 12, second determine single Member 13 and loading unit 14, wherein
First determination unit 11 determines the first chip corresponding for after obtaining operational order according to preset strategy One type;Wherein, preset strategy is used for the determination of the first kind.
In a specific embodiment of the present invention, further, the first determination unit 11 is specifically used for obtaining the first chip Prestore hardware information, and the corresponding first kind of the first chip is determined according to the hardware information that prestores of the first chip.
In a specific embodiment of the present invention, further, the first determination unit 11 is set also particularly useful for user is obtained Instruction sets instruction according to user and determines the corresponding first kind of the first chip.
Acquiring unit 12, for obtaining the corresponding current driving of the first chip.
Second determination unit 13, for according to the first kind, preset kind and the correspondence of driving, determining the first kind Corresponding target drives.
Loading unit 14 for when current driving is different with target drives, unloading current driving, and loads target drive It is dynamic.
In a specific embodiment of the present invention, further, loading unit 14 are additionally operable to determine the corresponding mesh of the first chip After mark driving, when current driving is identical with target drives, it is continuing with current driving.
As shown in figure 14, terminal 1 further includes:Initialization unit 15 and operating unit 16, wherein
Initialization unit 15 carries out initialization behaviour after loading target drives according to the first chip of target drives pair Make, and obtains initialization result.
In a specific embodiment of the present invention, further, initialization unit 15 are additionally operable to when initialization result be successfully When, returning response is instructed in the response of operational order.
In a specific embodiment of the present invention, further, initialization unit 15 are additionally operable to when initialization result be failure When, reload target drives.
Operating unit 16, for returning response after the response instruction of operational order, according to target third party's source code pair First chip carries out the first operation;Wherein, the first operation corresponds to operational order.
Figure 15 is the second composed structure schematic diagram of the drive load device that the embodiment of the present invention proposes, as shown in figure 15, Initialization unit 15 includes:Determination subelement 151 and initialization subelement 152.
Determination subelement 151, for the correspondence according to target drives, default driving and third party's source code, determine with The corresponding target third party source code of target drives.
Subelement 152 is initialized, for carrying out initialization operation according to target third party the first chip of source code pair.
A kind of drive load device provided in an embodiment of the present invention determines after obtaining operational order according to preset strategy The corresponding first kind of first chip;Wherein, preset strategy is used for the determination of the first kind;It is corresponding current to obtain the first chip Driving;According to the first kind, preset kind and the correspondence of driving, the corresponding target drives of the first chip type are determined;When When currently driving is different with target drives, current driving is unloaded, and load target drives.That is, proposed by the present invention In technical solution, it can be directed to the first different chips, driving corresponding with the first chip is selected to be loaded.Obviously, this hair A kind of drive load device that bright embodiment proposes, when increasing new chip, it is only necessary to pair with the drive corresponding to new chip It is dynamic to be loaded, the need that can be only realized by a software version and different chips are carried out with drive load can be met It asks, without remaking the master control borad software version corresponding to new chip in drive load device, to reduce The quantity of software version when drive load, and significantly reduce the difficulty of software version maintenance.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention can be used can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (14)

1. a kind of drive load method, which is characterized in that the method includes:
After obtaining operational order, the corresponding first kind of the first chip is determined according to preset strategy;Wherein, the preset strategy Determination for the first kind;
Obtain the corresponding current driving of first chip;
According to the first kind, preset kind and the correspondence of driving, the corresponding target drives of the first kind are determined;
When the current driving is different with the target drives, the unloading current driving, and load the target drives.
2. according to the method described in claim 1, it is characterized in that, described determine the first chip corresponding according to preset strategy One type, including:
The hardware information that prestores for obtaining first chip determines described first according to the hardware information that prestores of first chip The corresponding first kind of chip;Or;
It obtains user and sets instruction, setting instruction according to the user determines the corresponding first kind of first chip.
3. according to the method described in claim 1, it is characterized in that, the corresponding target drives of the determination first kind it Afterwards, the method further includes:
When it is described it is current driving it is identical with the target drives when, be continuing with the current driving.
4. according to the method described in claim 1, it is characterized in that, after the load target drives, the method is also Including:
Initialization operation is carried out to first chip according to the target drives, and obtains initialization result.
5. according to the method described in claim 4, it is characterized in that, it is described according to the target drives to first chip into Row initialization operation, including:
According to the target drives, the correspondence of default driving and third party's source code, determination is corresponding with the target drives Target third party's source code;
Initialization operation is carried out to first chip according to the target third party source code.
6. according to the method described in claim 5, it is characterized in that, after the acquisition initialization result, the method is also wrapped It includes:
When the initialization result is successfully, returning response is instructed in the response of the operational order;
When the initialization result is failure, the target drives are reloaded.
7. according to the method described in claim 6, it is characterized in that, the returning response is instructed in the response of the operational order Later, the method further includes:
The first operation is carried out to first chip according to the target third party source code;Wherein, first operation corresponds to The operational order.
8. a kind of drive load device, which is characterized in that described device includes:
First determination unit, for after obtaining operational order, the corresponding first kind of the first chip to be determined according to preset strategy; Wherein, the preset strategy is used for the determination of the first kind;
Acquiring unit, for obtaining the corresponding current driving of first chip;
Second determination unit, for according to the first kind, preset kind and the correspondence of driving, determining the first kind The corresponding target drives of type;
Loading unit, for when the current driving is different with the target drives, the unloading current driving, and load institute State target drives.
9. device according to claim 8, which is characterized in that
First determination unit, specifically for obtaining the hardware information that prestores of first chip, according to first chip The hardware information that prestores determine the corresponding first kind of first chip;Or;
First determination unit, is specifically used for obtaining user and sets instruction, and setting instruction according to the user determines described the The corresponding first kind of one chip.
10. device according to claim 8, which is characterized in that
The loading unit is additionally operable to after determining the corresponding target drives of first chip, when the current driving and institute State target drives it is identical when, be continuing with the current driving.
11. device according to claim 8, which is characterized in that described device further includes:
Initialization unit carries out just first chip according to the target drives after loading the target drives Beginningization operates, and obtains initialization result.
12. according to the devices described in claim 11, which is characterized in that the initialization unit, including:
Determination subelement, for the correspondence according to the target drives, default driving and third party's source code, determine with it is described The corresponding target third party source code of target drives;
Subelement is initialized, for carrying out initialization operation to first chip according to the target third party source code.
13. device according to claim 12, which is characterized in that after the acquisition initialization result,
The initialization unit is additionally operable to when the initialization result is successfully, and returning response is in the sound of the operational order It should instruct;
The initialization unit is additionally operable to, when the initialization result is failure, reload the target drives.
14. device according to claim 13, which is characterized in that described device further includes:
Operating unit, for returning response after the response instruction of the operational order, according to the target third party source code First operation is carried out to first chip;Wherein, first operation corresponds to the operational order.
CN201710076761.9A 2017-02-13 2017-02-13 A kind of drive load method and device Pending CN108446138A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710076761.9A CN108446138A (en) 2017-02-13 2017-02-13 A kind of drive load method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710076761.9A CN108446138A (en) 2017-02-13 2017-02-13 A kind of drive load method and device

Publications (1)

Publication Number Publication Date
CN108446138A true CN108446138A (en) 2018-08-24

Family

ID=63190398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710076761.9A Pending CN108446138A (en) 2017-02-13 2017-02-13 A kind of drive load method and device

Country Status (1)

Country Link
CN (1) CN108446138A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502265A (en) * 2019-08-23 2019-11-26 广东电网有限责任公司 A kind of GPS module adaptation method, device, equipment and storage medium based on Android
CN110896333A (en) * 2019-09-23 2020-03-20 惠州高盛达科技有限公司 WiFi module testing method and system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530121A (en) * 2013-10-15 2014-01-22 武汉邮电科学研究院 Method of compatibility of multiple hardware platforms by RRU single software version
CN103677921A (en) * 2013-12-13 2014-03-26 Tcl康钛汽车信息服务(深圳)有限公司 Method and system for enabling Android system to be compatible with wifi chip
CN105468363A (en) * 2015-11-19 2016-04-06 浪潮电子信息产业股份有限公司 Method for enhancing compatibility of server mainboard and different network cards
CN106028113A (en) * 2016-05-20 2016-10-12 乐视控股(北京)有限公司 Tuner drive control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530121A (en) * 2013-10-15 2014-01-22 武汉邮电科学研究院 Method of compatibility of multiple hardware platforms by RRU single software version
CN103677921A (en) * 2013-12-13 2014-03-26 Tcl康钛汽车信息服务(深圳)有限公司 Method and system for enabling Android system to be compatible with wifi chip
CN105468363A (en) * 2015-11-19 2016-04-06 浪潮电子信息产业股份有限公司 Method for enhancing compatibility of server mainboard and different network cards
CN106028113A (en) * 2016-05-20 2016-10-12 乐视控股(北京)有限公司 Tuner drive control method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502265A (en) * 2019-08-23 2019-11-26 广东电网有限责任公司 A kind of GPS module adaptation method, device, equipment and storage medium based on Android
CN110896333A (en) * 2019-09-23 2020-03-20 惠州高盛达科技有限公司 WiFi module testing method and system and storage medium
CN110896333B (en) * 2019-09-23 2022-01-21 惠州高盛达科技有限公司 WiFi module testing method and system and storage medium

Similar Documents

Publication Publication Date Title
CN103501308A (en) Distributed cloud application deployment systems and/or associated methods
CN110427385A (en) Block chain data-updating method, interdependent node and block chain
CA2335661A1 (en) Asset management and scheduling graphical user interface for media streamer
CN103761029B (en) Information processing method and message processing device
CN103970545B (en) Using the method for JNI method of calling LTE Modem used in android system
CN108446138A (en) A kind of drive load method and device
CN107451789A (en) Business flow processing method and system
CN107341039A (en) Method, main frame and the system being managed under a kind of virtual environment to USB device
CN103577355B (en) A kind of DCS analog machines back-up disk interface processing method and system
CN102724084B (en) Test and verification system for grid video monitoring system
CN105867295A (en) Communication method and upper computer
CN101324843A (en) Object model of general-purpose gateway design
CN102821373B (en) A kind of sms platform and its implementation suitable for heterogeneous device
TW201116956A (en) Management system of equipment automation programs
CN109542384A (en) Electric appliance and its screen driving method, device
CN106814696B (en) A kind of digital control system man-machine interface secondary developing platform system and its implementation
CN110347442A (en) A kind of chip card operation method and system based on convergent terminal
CN101630370A (en) Method for controlling radio frequency identification system and radio frequency identification system
WO2007048292A1 (en) Method for executing flow in the integrated telecommunication platform and apparatus thereof
CN115840655A (en) Cross-platform data processing system
CN102354282B (en) Grading OSGi (Open Service Gateway Initiative) based monitoring system for running of RFID (Radio Frequency Identification Device) middleware constructional component
CN109254796A (en) A kind of upper disk configuration method and host of USB device
CN113157268B (en) Equipment state processing system combining flow engine and Internet of things
CN101727619A (en) Standard operating procedure playing system and method
CN107451435B (en) Management and control method, management and control machine and management and control system of hardware encryption machine

Legal Events

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

Application publication date: 20180824

RJ01 Rejection of invention patent application after publication