CN101710289B - Method and device for loading management program of data card - Google Patents

Method and device for loading management program of data card Download PDF

Info

Publication number
CN101710289B
CN101710289B CN200910252757A CN200910252757A CN101710289B CN 101710289 B CN101710289 B CN 101710289B CN 200910252757 A CN200910252757 A CN 200910252757A CN 200910252757 A CN200910252757 A CN 200910252757A CN 101710289 B CN101710289 B CN 101710289B
Authority
CN
China
Prior art keywords
data card
function
supervisory routine
operating system
entrance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN200910252757A
Other languages
Chinese (zh)
Other versions
CN101710289A (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.)
Honor Device Co Ltd
Original Assignee
Huawei Device 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN200910252757A priority Critical patent/CN101710289B/en
Publication of CN101710289A publication Critical patent/CN101710289A/en
Priority to PCT/CN2010/078663 priority patent/WO2011069402A1/en
Application granted granted Critical
Publication of CN101710289B publication Critical patent/CN101710289B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/4403Processor initialisation

Abstract

The embodiment of the invention provides a method and a device for loading a management program of a data card. The method comprises the following steps: calling an entry function in the process of loading a driving program of the data card; performing initialization configuration on the data card by utilizing the entry function; and after the initialization configuration is completed and before the entry function returns, executing a management program of the data card installed on a computer. The device comprises a function calling unit, an initialization configuration unit and a program execution unit, wherein the function calling unit is used for calling the entry function in the process of loading the driving program of the data card; the initialization configuration unit is used for performing the initialization configuration on the data card by utilizing the entry function; and the program execution unit is used for executing the management program of the data card installed on the computer after the initialization configuration is completed and before the entry function returns. The method and the device solve the problem that when loaded, the management program of the data card is closed or forbidden by a firewall or other programs.

Description

The method and apparatus that a kind of management program of data card loads
Technical field
The present invention relates to computer realm, relate in particular to the method and apparatus that a kind of management program of data card loads.
Background technology
Data card is the terminal device that is used to get online without being tethered to a cable, and existing data card adopts USB (Universal Serial Bus, USB) to link to each other with PC (Personal Computer, personal computer) more.When on PC, using data card, corresponding driver and supervisory routine need be installed at first.Usually driver need be placed on the physical disc; Installation procedure by the user manually clicks on the physical disc is installed, after the installation, when using data card at every turn; The user also needs the manual unlocking supervisory routine, and service data links and receives network in this program.
Data card itself can be created a virtual CD through inner flash, and driver and supervisory routine are put in the virtual CD.On PC, install after driving and the supervisory routine, when being connected to data card on this PC later on, supervisory routine is opened at every turn, be user-friendly to through the mode of automatic operation.
Because prior art Windows operating system itself provides the CD mechanism of operation automatically; Therefore; Data card is to realize through the autorun.inf mechanism on the Windows at the AutoPlay function on the Windows; Implementation procedure is following: at first in the virtual CD of data card, put into autorun.inf and need the supervisory routine A.exe of operation automatically, specify automatic operational management program A.exe then among the autorun.inf, when inserting this data card; Operating system detects CD, then through the automatic operational management program of the information A.exe among the autorun.inf.Yet on Mac OS X/Linux operating system, do not have this autorun.inf mechanism, need realize the effect of similar automatic operation through resident process.
In realizing process of the present invention; The inventor finds to have following problem in the prior art at least: no matter be autorun.inf or the resident process on the Mac OS X/Linux operating system on the Windows operating system; When the supervisory routine of data card loaded, the supervisory routine of the data card of having installed maybe be by fire wall or other stops or forbidding.
Summary of the invention
The method and apparatus that the embodiment of the invention provides a kind of management program of data card to load maybe be by the problem of fire wall or other stops or forbidding when loading with the supervisory routine that solves data card.
On the one hand, the method that the embodiment of the invention provides a kind of management program of data card to load, said method comprises: in the driver loading procedure of data card, call an entrance function; Utilize said entrance function that said data card is carried out initial configuration; After said initial configuration is accomplished and before said entrance function returns, the supervisory routine of the said data card of having installed on the object computer.
On the other hand, the device that the embodiment of the invention provides a kind of management program of data card to load, said device comprises: function calling cell, be used for driver loading procedure at data card, call an entrance function; The initial configuration unit is used to utilize said entrance function that said data card is carried out initial configuration; Program execution unit is used for after said initial configuration is accomplished and before said entrance function returns, the supervisory routine of the said data card of having installed on the object computer.
Technique scheme has following beneficial effect: because be employed in the driver loading procedure of data card, call an entrance function; Utilize said entrance function that said data card is carried out initial configuration; After said initial configuration is accomplished and before said entrance function returns, the technological means of the supervisory routine of the said data card of having installed on the object computer; So the supervisory routine of data card and the driver of data card all have the highest weight limit in system; And the program of highest weight limit can not receive the restriction of system or fire wall supervisor; Maybe be when thereby the supervisory routine that has solved data card loads by the problem of fire wall or other stops or forbidding, the supervisory routine that has reached data card loads and realizes simple, reliable technique effect automatically.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow diagram that a kind of management program of data card of the embodiment of the invention loads;
Fig. 2 is the apparatus structure synoptic diagram that a kind of management program of data card of the embodiment of the invention loads.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
If in operating system, installed under the situation of device driver, data card is connected on the PC, then operating system can be data card load driver program automatically.In the loading procedure of driver, at first can call an entrance function.The scheme of the embodiment of the invention may be thought of as carries out the management software of having installed on the PC in this entrance function, so just can reach and insert after the data card, and management software is the effect of operation automatically.
Embodiment one:
As shown in Figure 1, be the method flow diagram that a kind of management program of data card of the embodiment of the invention loads, said method comprises:
101, in the driver loading procedure of data card, call an entrance function;
102, utilize said entrance function that said data card is carried out initial configuration;
103, after said initial configuration is accomplished and before said entrance function returns, carry out the supervisory routine of the said data card of having installed on the said computing machine.
Need to prove; Driver is after having carried out supervisory routine; Supervisory routine itself and driver are two processes independently; Do not have association between both follow-up associative operations, promptly driver continues to carry out other power function (identical with prior art), and supervisory routine is also as common program process isolated operation.
Optional, said entrance function can comprise: the start () function in the Mac OS X operating system.The supervisory routine of the said data card of having installed on the said computing machine of said execution can comprise: call the KUNCExecute function in the said Mac OS X operating system, carry out the supervisory routine of the said data card of having installed on the said computing machine.
Following mask body is an example with Mac OS X operating system, in the kernel of this operating system, KUNCExecute is provided function, and the effect of this function is a supervisory routine of from kernel, carrying out the data card in the user model.When data card was connected to this PC, the usb bus of operating system detected this equipment, will be its load driver program subsequently.In the driver loading procedure, at first can call entry function start (), in start () function, equipment is carried out initialized configuration.After all initialization are accomplished, before start () returns, call the KUNCExecute function and carry out the supervisory routine that has been installed to the data card in the system, can accomplish the process of whole automatic operation.
Suppose to need the supervisory routine name of operation automatically be called Mobile Partner.app, be positioned at/the Applications/ catalogue under, the code sample of operation is following automatically when then being allowed to condition at equipment and being connected to machine through driver:
Figure GDA0000130091770000051
Optional, said entrance function can comprise: the DriverEntry function in the Windows operating system.The supervisory routine of the said data card of having installed on the said computing machine of said execution; Can comprise: call the RtlCreateUserProcess function in the said Windows operating system, carry out the supervisory routine of the said data card of having installed on the said computing machine.
Following mask body is being example in Windows 2000/Windows XP/Windows Vista/Windows 7 operating systems such as Windows such as grade; There is a RtlCreateUserProcess function that can call the supervisory routine of data card in this system in the ntdll.lib file, its prototype is following:
Figure GDA0000130091770000052
Figure GDA0000130091770000061
After in the driver of data card, importing ntdll.lib, can be in the entrance function DriverEntry of the driver of this data card carry out the supervisory routine of data card through this function, code sample is following:
Figure GDA0000130091770000062
Figure GDA0000130091770000071
More than specify for example with Windows operating system and Mac OS X operating system, the realization in (SuSE) Linux OS is similar, the embodiment of the invention no longer gift presented to a senior at one's first visit as a mark of esteem is stated.
In the embodiment of the invention, in kernel, realize automatic operational management program function with the mode of highest weight limit through the driver in the operating system.Because the data card equipment driver runs in the kernel of operating system; Have the highest weight limit in the total system; So can not stoped or forbidding by the process of other user models (like fire wall etc.); And through in PC drives, realizing the function of operational management program voluntarily, thereby, can make the supervisory routine of data card also have the highest weight limit owing to adopt the data card equipment driver to carry out the supervisory routine of said data card; Can avoid the driver of current automatic operation and the restriction that supervisory routine receives system or fire wall supervisor, realize simple, operational effect automatically reliably.
Embodiment two:
Corresponding to said method embodiment, as shown in Figure 2, be the apparatus structure synoptic diagram that a kind of management program of data card of the embodiment of the invention loads, said device comprises:
Function calling cell 201 is used for the driver loading procedure at data card, calls an entrance function;
Initial configuration unit 202 is used to utilize said entrance function that said data card is carried out initial configuration;
Program execution unit 203 is used for after said initial configuration is accomplished and before said entrance function returns, carries out the supervisory routine of the said data card of having installed on the said computing machine.
Optional, the entrance function that said function calling cell 201 calls can comprise: the start () function in the Mac OS X operating system.Said function calling cell 201 can also be used for calling the KUNCExecute function of said Mac OS X operating system, is carried out the supervisory routine of the said data card of having installed on the said computing machine by said program execution unit 203.
Optional, the entrance function that said function calling cell 201 calls can comprise: the DriverEntry function in the Windows operating system.Said function calling cell 201 can also be used for calling the RtlCreateUserProcess function of said Windows operating system, is carried out the supervisory routine of the said data card of having installed on the said computing machine by said program execution unit 203.
Said apparatus embodiment technical scheme of the present invention is called an entrance function because adopt function calling cell 201 in the driver loading procedure of data card; Initial configuration unit 202 utilizes said entrance function that said data card is carried out initial configuration; Program execution unit 203 is after said initial configuration is accomplished and before said entrance function returns; Carry out the technological means of the supervisory routine of the said data card of having installed on the said computing machine; Thereby carry out the supervisory routine of said data card owing to adopt the data card equipment driver; Can make the supervisory routine of data card also have the highest weight limit; So maybe be when having solved the supervisory routine of data card and loading by the problem of fire wall or other stops or forbidding, the supervisory routine that has reached data card loads and realizes simple, reliable technique effect automatically.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct related hardware to accomplish through program; Described program can be stored in the computer read/write memory medium; This program is when carrying out; Comprise above-mentioned all or part of step, described storage medium, as: ROM/RAM, disk, CD etc.
Above-described embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method that loads of a management program of data card is characterized in that said method comprises:
In the driver loading procedure of data card, call an entrance function;
Utilize said entrance function that said data card is carried out initial configuration;
After said initial configuration is accomplished and before said entrance function returns, the supervisory routine of the said data card of having installed on the object computer.
2. method according to claim 1 is characterized in that said entrance function comprises: the start () function in the Mac OS X operating system.
3. like the said method of claim 2, it is characterized in that the supervisory routine of the said data card of having installed on the said computing machine of said execution comprises:
Call the KUNCExecute function in the said Mac OS X operating system, carry out the supervisory routine of the said data card of having installed on the said computing machine.
4. method according to claim 1 is characterized in that said entrance function comprises: the DriverEntry function in the Windows operating system.
5. like the said method of claim 4, it is characterized in that the supervisory routine of the said data card of having installed on the said computing machine of said execution comprises:
Call the RtlCreateUserProcess function in the said Windows operating system, carry out the supervisory routine of the said data card of having installed on the said computing machine.
6. the device that loads of a management program of data card is characterized in that said device comprises:
Function calling cell is used for the driver loading procedure at data card, calls an entrance function;
The initial configuration unit is used to utilize said entrance function that said data card is carried out initial configuration;
Program execution unit is used for after said initial configuration is accomplished and before said entrance function returns, the supervisory routine of the said data card of having installed on the object computer.
7. like the said device of claim 6, it is characterized in that the entrance function that said function calling cell calls comprises: the start () function in the Mac OS X operating system.
8. like the said device of claim 7; It is characterized in that; Said function calling cell also is used for calling the KUNCExecute function of said Mac OS X operating system, is carried out the supervisory routine of the said data card of having installed on the said computing machine by said program execution unit.
9. like the said device of claim 6, it is characterized in that the entrance function that said function calling cell calls comprises: the DriverEntry function in the Windows operating system.
10. like the said device of claim 9; It is characterized in that; Said function calling cell also is used for calling the RtlCreateUserProcess function of said Windows operating system, is carried out the supervisory routine of the said data card of having installed on the said computing machine by said program execution unit.
CN200910252757A 2009-12-09 2009-12-09 Method and device for loading management program of data card Active CN101710289B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN200910252757A CN101710289B (en) 2009-12-09 2009-12-09 Method and device for loading management program of data card
PCT/CN2010/078663 WO2011069402A1 (en) 2009-12-09 2010-11-12 Method and apparatus for loading data card management program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910252757A CN101710289B (en) 2009-12-09 2009-12-09 Method and device for loading management program of data card

Publications (2)

Publication Number Publication Date
CN101710289A CN101710289A (en) 2010-05-19
CN101710289B true CN101710289B (en) 2012-08-29

Family

ID=42403081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910252757A Active CN101710289B (en) 2009-12-09 2009-12-09 Method and device for loading management program of data card

Country Status (2)

Country Link
CN (1) CN101710289B (en)
WO (1) WO2011069402A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710289B (en) * 2009-12-09 2012-08-29 华为终端有限公司 Method and device for loading management program of data card
CN102025787B (en) * 2010-11-22 2014-12-10 中兴通讯股份有限公司 Method and device for accessing network by network interface of data card equipment
CN104766017A (en) * 2014-01-02 2015-07-08 中兴通讯股份有限公司 Data card and application method of the same
CN106371847B (en) * 2016-09-07 2020-05-22 湖北三江航天万峰科技发展有限公司 CPCI bus RS422 communication driving method and system under Windows xp system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1609829A (en) * 2003-10-24 2005-04-27 英业达股份有限公司 Plug-and-play method for USB equipment under linux operation system
US7089551B2 (en) * 2001-02-06 2006-08-08 Hewlett-Packard Development Company, L.P. System for installing peripheral software during peripheral installation
US20060282571A1 (en) * 2005-04-25 2006-12-14 Perception Digital Limited Multimedia devices with enhanced functionality
CN100382058C (en) * 2003-03-07 2008-04-16 索尼株式会社 Device management method and device management system
CN101387992A (en) * 2008-10-27 2009-03-18 深圳华为通信技术有限公司 Starting method and apparatus for data card

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7870567B2 (en) * 2005-04-25 2011-01-11 International Business Machines Corporation Configuring a device using information from a device table
CN101710289B (en) * 2009-12-09 2012-08-29 华为终端有限公司 Method and device for loading management program of data card

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7089551B2 (en) * 2001-02-06 2006-08-08 Hewlett-Packard Development Company, L.P. System for installing peripheral software during peripheral installation
CN100382058C (en) * 2003-03-07 2008-04-16 索尼株式会社 Device management method and device management system
CN1609829A (en) * 2003-10-24 2005-04-27 英业达股份有限公司 Plug-and-play method for USB equipment under linux operation system
US20060282571A1 (en) * 2005-04-25 2006-12-14 Perception Digital Limited Multimedia devices with enhanced functionality
CN101387992A (en) * 2008-10-27 2009-03-18 深圳华为通信技术有限公司 Starting method and apparatus for data card

Also Published As

Publication number Publication date
CN101710289A (en) 2010-05-19
WO2011069402A1 (en) 2011-06-16

Similar Documents

Publication Publication Date Title
CN101710289B (en) Method and device for loading management program of data card
CN103379481B (en) Method for achieving safety protection
KR101935290B1 (en) Selectively enabling platform-specific features
CN106293781B (en) The method and apparatus of online upgrading machine virtual machine
CN103019837A (en) Resource scheduling method, device and terminal equipment
EP2989544A1 (en) Systems and methods for replacing application methods at runtime
US20150067196A1 (en) Portable computing device providing operating system for host devices
CN103491248B (en) A kind of method of low electricity start and subscriber equipment
CN103685399A (en) Method, device and system for logging in Unix-like virtual container
CN106406944A (en) Control method and system for forbidding self-starting of application
WO2015065323A1 (en) Flexible bootstrap code architecture
CN103853586A (en) Method of realizing wireless card driver in UEFI (unified extensible firmware interface) layer
JP2012104150A (en) Customizing space in network environment
CN105678160A (en) System and method for providing access to original routines of boot drivers
US20220113983A1 (en) System and method of utilizing platform applications with information handling systems
CN113760543A (en) Resource management method and device, electronic equipment and computer readable storage medium
EP2067306A1 (en) Personalizing space in a network environment
CN107391174A (en) A kind of control method and control device of system online upgrading
CN105912417A (en) Detection method of virtual system, related software running method and related device
CN109558179A (en) Program code on-line loaded method, program code online upgrading method and system
WO2009085084A2 (en) Keyboard with detachable rechargeable mouse
CN101727348A (en) Method and device for analyzing suspicious codes
CN109144586A (en) A kind of driving adaptation method, device, computer equipment and storage medium
EP2738771A1 (en) An apparatus and a method for memory testing by a programmable circuit in a safety critical system
CN101299190A (en) Software upgrading method, system and built-in equipment of read-only file system

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee after: Huawei terminal (Shenzhen) Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: HUAWEI DEVICE Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20181217

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 518129 Building 2, B District, Bantian HUAWEI base, Longgang District, Shenzhen, Guangdong.

Patentee before: Huawei terminal (Shenzhen) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210422

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee before: HUAWEI DEVICE Co.,Ltd.