CN102945172A - Self-adapting method of 3G data cards under Android system - Google Patents

Self-adapting method of 3G data cards under Android system Download PDF

Info

Publication number
CN102945172A
CN102945172A CN2012104038780A CN201210403878A CN102945172A CN 102945172 A CN102945172 A CN 102945172A CN 2012104038780 A CN2012104038780 A CN 2012104038780A CN 201210403878 A CN201210403878 A CN 201210403878A CN 102945172 A CN102945172 A CN 102945172A
Authority
CN
China
Prior art keywords
external equipment
pattern
execution
dynamic link
data card
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
CN2012104038780A
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.)
Shenzhen ZTE Mobile Telecom Co Ltd
Original Assignee
Shenzhen ZTE Mobile Telecom 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 Shenzhen ZTE Mobile Telecom Co Ltd filed Critical Shenzhen ZTE Mobile Telecom Co Ltd
Priority to CN2012104038780A priority Critical patent/CN102945172A/en
Publication of CN102945172A publication Critical patent/CN102945172A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a self-adapting method of 3G data cards under an Android system; the method is characterized by comprising the following steps of: step 101. judging if external equipment exists, if so, judging if the external equipment is supported external equipment, if so, carrying out the step 102; step 102. judging if the mode conversion needs to be carried out for the external equipment, if so, carrying out the step 103, otherwise, carrying out the step 104; step 103. dispatching a mode conversion module to perform the mode conversion; step 104. guiding an RLL (Run Length Limited) dynamic link base; and step 105. obtaining configuration parameters. According to the self-adapting method of the 3G data cards under the Android system disclosed by the invention, the equipment operating the Android system can automatically adapt to a plurality of 3G data cards.

Description

The method of 3G data card self-adapting under a kind of Android system
Technical field
The invention belongs to wireless communication technology field, automatically adapt to the method for different 3G data cards in a kind of Android system.
Background technology
The 3G data card is the widely used online medium of present cordless communication network.The 3G data card that function is comparatively perfect can be supported conversation, note and online three large major functions, relates in addition some other basic function and the inquiry of information.
Android is as an intelligent mobile phone platform, and its topmost function is the phone part.The function of phone part has comprised the functions such as conversation, note, data connection and SIM card, phone directory.Present most Android equipment has all comprised two processors on hardware structure: one is used for the operation system, runs some application programs, is referred to as application processor, is called for short AP (Application Processor); Another is responsible for the relevant work of Radio-Frequency Wireless Communication, is referred to as baseband processor, is called for short BP (Baseband Processor).Adopt serial ports to communicate between AP and the BP, what communication protocol was used is AT (Attention) instruction.Different vendor, the AT instruction of same manufacturer all can be used very large difference even.Therefore, Android carries out the communication between AP and the BP by a RIL (Radio Interface Layer), has realized public part wherein, the analysis unit of AT instruction is divided leave manufacturer's realization for.
The present main applied environment of Android system is some embedded devices, because the singularity of embedded device, and the realization of Android system framework, the Android system can not support different AT instructions simultaneously under normal conditions, the 3G data card that is to say different model is different for the realization of RIL part, therefore can not accomplish self-adaptation to the situation of external 3G data card.
The present invention is by built-in different 3G data card RIL dynamic link libraries and different configuration parameters on Android equipment, difference according to external 3G data card, guide different RIL dynamic link libraries, load corresponding configuration parameter, thereby solved above-mentioned problem.
Summary of the invention
Fundamental purpose of the present invention is to provide the method for 3G data card self-adapting under a kind of Android system, that is to say so that move the equipment of Android system can many moneys of automatic adaptation 3G data card.
For solving the problems of the technologies described above, technical scheme provided by the invention is: the method for 3G data card self-adapting under a kind of Android system, the method comprises the steps:
Step 101, judged whether external equipment, if having, then judged whether it is the external equipment of supporting, if so, then execution in step 102;
Step 102, judge whether external equipment needs to carry out pattern and switch, switch if need to carry out pattern, then execution in step 103; Otherwise, execution in step 104;
Step 103, invocation pattern handover module carry out pattern and switch;
Step 104, guiding RLL dynamic link library;
Step 105, obtain configuration parameter.
Preferably, in the step 101, judged whether external equipment by the USB Host port of monitoring external equipment, if external equipment is the equipment of supporting then enters step 102.
Preferably, in the step 102, judge that the method whether external equipment needs to carry out the pattern switching is, determine whether the CD pattern, if so, then execution in step 103; Otherwise, execution in step 104.
Preferably, in the step 104, external equipment obtains unique identifier, guides corresponding RIL dynamic link library according to unique identifier.
Preferably, in the step 105, after successfully guiding the RIL dynamic link library, pass through unique identifier, from configuration parameter, obtain the corresponding configuration parameter of RIL dynamic link library, in order to controlling procedure information and the AT order parameter in the RIL dynamic link library, thereby reach the purpose of adaptive different external connection peripheral hardware.
Preferably, judge that the method whether external equipment needs to carry out the pattern switching is, determine whether the CD pattern, if so, then execution in step 103; Otherwise external equipment obtains unique identifier, guides corresponding RIL dynamic link library according to unique identifier.
Beneficial effect of the present invention is: so that the 3G data card that can support external different model with a Android equipment reaches an adaptive function as communication module.
 
Description of drawings
Fig. 1 is schematic flow sheet of the invention process.
?
Embodiment
The present invention will be further described below in conjunction with accompanying drawing.
The method of 3G data card self-adapting comprises the steps: under a kind of Android provided by the invention system
Step 101, judged whether external equipment, if having, then judged whether it is the external equipment of supporting, if so, then execution in step 102;
Step 102, judge whether external equipment needs to carry out pattern and switch, switch if need to carry out pattern, then execution in step 103; Otherwise, execution in step 104;
Step 103, invocation pattern handover module carry out pattern and switch;
Step 104, guiding RLL dynamic link library;
Step 105, obtain configuration parameter.
In the step 101, judged whether external equipment by the USB Host port of monitoring external equipment, if external equipment is the equipment of supporting then enters step 102.
In the step 102, judge that the method whether external equipment needs to carry out the pattern switching is, determine whether the CD pattern, if so, then execution in step 103; Otherwise, execution in step 104.
In the step 104, external equipment obtains unique identifier, guides corresponding RIL dynamic link library according to unique identifier.
Step 105, after successfully guiding the RIL dynamic link library, pass through unique identifier, from configuration parameter, obtain the corresponding configuration parameter of RIL dynamic link library, in order to controlling procedure information and the AT order parameter in the RIL dynamic link library, thereby reach the purpose of adaptive different external connection peripheral hardware.
In the step 102, judge that the method whether external equipment needs to carry out the pattern switching is, determine whether the CD pattern, if so, then execution in step 103; Otherwise external equipment obtains unique identifier, guides corresponding RIL dynamic link library according to unique identifier.
The method of 3G data card self-adapting under a kind of Android system may further comprise the steps:
When 1) on detecting USB Host port, external equipment being arranged, judge what whether this peripheral hardware was supported.If this peripheral hardware be support enter next step operation.
2) judge for the peripheral hardware of supporting, if the outer CD pattern that is made as of this moment is then carried out the pattern switching until success; Then directly skip this step, the operation that directly enters next step if not the CD pattern.
3) from configuration parameter, obtain the RIL dynamic link library name of needs guiding according to the unique identifier of external equipment, and load.
4) configuration information in the loading configuration parameter offers the RIL dynamic link library and uses, and carries out the control of idiographic flow and the configuration of AT order parameter.
Fig. 1 is the major part of the whole flow process of the present invention, and as shown in Figure 1, main flow process of the present invention comprises following step:
101, the USB Host port of audiomonitor is until there is the peripheral hardware access.If external equipment is the equipment of supporting then enters next step.If the peripheral hardware that does not exist program to support on the USB Host port, then program can continue listening port.
102, judge whether peripheral hardware needs to carry out pattern and switch, and carries out the equipment that pattern is switched for needs, directly enters next step operation.Otherwise, will jump to subsequent operation.
103, the invocation pattern changeover program carries out the pattern switching.
104, for the pattern handover success or do not need to carry out the peripheral hardware that pattern is switched, obtain the unique identifier of equipment.Guide corresponding RIL dynamic link library according to unique identifier.
105, after successfully guiding the RIL dynamic link library, pass through unique identifier, from configuration parameter, obtain the corresponding configuration parameter of RIL dynamic link library, in order to controlling procedure information and the AT order parameter in the RIL dynamic link library, thereby reach the purpose of adaptive different peripheral.
Said method is so that the 3G data card that can support external different model with a Android equipment as communication module, reaches an adaptive function.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. the method for 3G data card self-adapting under the Android system is characterized in that, the method comprises the steps:
Step 101, judged whether external equipment, if having, then judged whether it is the external equipment of supporting, if so, then execution in step 102;
Step 102, judge whether external equipment needs to carry out pattern and switch, switch if need to carry out pattern, then execution in step 103; Otherwise, execution in step 104;
Step 103, invocation pattern handover module carry out pattern and switch;
Step 104, guiding RLL dynamic link library;
Step 105, obtain configuration parameter.
2. the method for 3G data card self-adapting under the Android according to claim 1 system, it is characterized in that, in the step 101, judged whether external equipment by the USB Host port of monitoring external equipment, if external equipment is the equipment of supporting then enters step 102.
3. the method for 3G data card self-adapting under the Android according to claim 1 system is characterized in that, in the step 102, judges whether external equipment needs to carry out the method that pattern switches and be, determines whether the CD pattern, and if so, then execution in step 103; Otherwise, execution in step 104.
4. the method for 3G data card self-adapting under the Android according to claim 1 system is characterized in that, in the step 104, external equipment obtains unique identifier, guides corresponding RIL dynamic link library according to unique identifier.
5. the method for 3G data card self-adapting under the Android according to claim 4 system, it is characterized in that, in the step 105, after successfully guiding the RIL dynamic link library, pass through unique identifier, from configuration parameter, obtain the corresponding configuration parameter of RIL dynamic link library, in order to controlling procedure information and the AT order parameter in the RIL dynamic link library, thereby reach the purpose of adaptive different external connection peripheral hardware.
6. the method for 3G data card self-adapting under the Android according to claim 4 system is characterized in that, in the step 102, judges whether external equipment needs to carry out the method that pattern switches and be, determines whether the CD pattern, and if so, then execution in step 103; Otherwise, execution in step 104.
CN2012104038780A 2012-10-22 2012-10-22 Self-adapting method of 3G data cards under Android system Pending CN102945172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104038780A CN102945172A (en) 2012-10-22 2012-10-22 Self-adapting method of 3G data cards under Android system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104038780A CN102945172A (en) 2012-10-22 2012-10-22 Self-adapting method of 3G data cards under Android system

Publications (1)

Publication Number Publication Date
CN102945172A true CN102945172A (en) 2013-02-27

Family

ID=47728121

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104038780A Pending CN102945172A (en) 2012-10-22 2012-10-22 Self-adapting method of 3G data cards under Android system

Country Status (1)

Country Link
CN (1) CN102945172A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015120682A1 (en) * 2014-02-17 2015-08-20 中兴通讯股份有限公司 Data card and terminal adaptation method, terminal, and data card

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540965A (en) * 2008-03-19 2009-09-23 德信智能手机技术(北京)有限公司 Method for processing dual-card multimedia message based on Windows Mobile platform
CN101854743A (en) * 2010-02-05 2010-10-06 深圳市同洲电子股份有限公司 Method for driving multi-mode terminating machine by radio interface layer and multi-mode terminating machine
CN101917779A (en) * 2010-06-12 2010-12-15 中兴通讯股份有限公司 Method and device for automatically adapting to wireless modules with different network standards
CN102437943A (en) * 2011-12-31 2012-05-02 深圳市共进电子股份有限公司 Method and device for surfing Internet based on 3G ( 3rd Generation Telecommunication) data card
WO2012129930A1 (en) * 2011-03-25 2012-10-04 中兴通讯股份有限公司 Multi-standard drive method and system, and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540965A (en) * 2008-03-19 2009-09-23 德信智能手机技术(北京)有限公司 Method for processing dual-card multimedia message based on Windows Mobile platform
CN101854743A (en) * 2010-02-05 2010-10-06 深圳市同洲电子股份有限公司 Method for driving multi-mode terminating machine by radio interface layer and multi-mode terminating machine
CN101917779A (en) * 2010-06-12 2010-12-15 中兴通讯股份有限公司 Method and device for automatically adapting to wireless modules with different network standards
WO2012129930A1 (en) * 2011-03-25 2012-10-04 中兴通讯股份有限公司 Multi-standard drive method and system, and terminal
CN102437943A (en) * 2011-12-31 2012-05-02 深圳市共进电子股份有限公司 Method and device for surfing Internet based on 3G ( 3rd Generation Telecommunication) data card

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015120682A1 (en) * 2014-02-17 2015-08-20 中兴通讯股份有限公司 Data card and terminal adaptation method, terminal, and data card

Similar Documents

Publication Publication Date Title
EP3322217B1 (en) Wireless hotspot switching method, mobile terminal and storage medium
CN102769937B (en) A kind of multi-standby terminal of Android system and terminal realize the method treated more
CN107820331A (en) Call method, device, computer equipment and readable storage medium storing program for executing
CN101873719A (en) Method, device and system for configuring wireless fidelity (WIFI) parameter
CN104954546A (en) Dual-card intelligent terminal and intelligent SIM card switching method based on the same
CN103906068A (en) Virtual base station establishment method and device
CN105530626A (en) Network mode configuration method and mobile terminal
CN105357728A (en) Network type switching method, device and mobile terminal
CN108495344B (en) Network switching method, device and terminal
CN102711201A (en) Multi-mode RAT switching method and device thereof
CN100531466C (en) Multi mode mobile communication terminal and its operating method
CN107820289B (en) WIFI network switching method, device, terminal and medium
CN103533670A (en) Method and device for connecting wireless network equipment, and wireless network system
CN102893653A (en) Managing wireless wide area network bandwidth constraints in a communication network
CN104918225A (en) Implementation method and device of bi-pass function of double-card single-pass terminal
CN106572459B (en) information processing method and device and storage medium
CN104581847B (en) A kind of configuration method and device of wireless device
EP3833120B1 (en) Network selection method and device applied to mobile terminal
CN105450857A (en) Data network-based situation pattern realization method and device for preventing interruption of incoming voice call
CN106453908A (en) Double-card network switching method and apparatus based on call and mobile terminal
CN110933704A (en) Network communication method, device, storage medium and electronic equipment
CN105376785A (en) Processing method for network communication function abnormity, application processor and mobile terminal
CN103313292A (en) Inter-system measuring method based on single-baseband chip and double-connection framework
CN105517084A (en) Service processing method, service processing apparatus and mobile terminal in hybrid network types
CN102945172A (en) Self-adapting method of 3G data cards under Android system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130227