CN103500113B - A kind of compatible method and system of mobile terminal external equipment - Google Patents

A kind of compatible method and system of mobile terminal external equipment Download PDF

Info

Publication number
CN103500113B
CN103500113B CN201310473830.1A CN201310473830A CN103500113B CN 103500113 B CN103500113 B CN 103500113B CN 201310473830 A CN201310473830 A CN 201310473830A CN 103500113 B CN103500113 B CN 103500113B
Authority
CN
China
Prior art keywords
item number
external equipment
mobile terminal
kernel
prestoring
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.)
Expired - Fee Related
Application number
CN201310473830.1A
Other languages
Chinese (zh)
Other versions
CN103500113A (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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201310473830.1A priority Critical patent/CN103500113B/en
Publication of CN103500113A publication Critical patent/CN103500113A/en
Application granted granted Critical
Publication of CN103500113B publication Critical patent/CN103500113B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of mobile terminal external equipment compatible method and system, and methods described includes:When mobile terminal starts, modem program reads the item number that is stored in advance in the default subregion of flash memory and is stored in default internal memory, and makes modem program and the boot kernel procedure sharing default internal memory;Boot kernel program reads the item number for prestoring from default internal memory;Boot kernel program obtains the item number of external equipment and analyzes whether the item number matches with the item number for prestoring, if then running the setup code of the corresponding external equipment of the item number and showing the start up graphic of the external equipment;If otherwise running the setup code of the external equipment of acquiescence;Start kernel, determine whether the item number of external equipment matches with the item number for prestoring, if then starting the corresponding driving equipment of the external equipment, if otherwise starting the driving equipment of acquiescence.The present invention recognizes each external equipment by the item number of external equipment, realizes the compatibility of software.

Description

A kind of compatible method and system of mobile terminal external equipment
Technical field
The present invention relates to intelligent mobile terminal technical field, more particularly to the external equipment technical field of mobile terminal, The compatible method and system of specially a kind of mobile terminal external equipment.
Background technology
Since being issued from apple iPhone 4 in 2010 and iPad, it has been with smart mobile phone, panel computer, electronic reader etc. The intelligent mobile terminal industry of representative is presented blowout and increases.Wherein, intelligent mobile mobile phone is even more and wins the first, popularity rate Rapidly rise.The external equipment species for using is also more and more, such as LCD, Camera, TP, and all kinds of sensor.It is mobile whole End product can usually run into material insufficient supply, it is necessary to change other manufacturer to supply when research and development and production in enormous quantities Goods.Compatibility must at this time be accomplished on software, just can guarantee that the loom for dispatching from the factory before can normally be upgraded with software below.
But often occur that same equipment is provided by different module manufacturers in R&D process, but these module factories That commercial is but same IC.Distinguish IC's generally by device id is read on software.It is soft when there is this problem Compatibility cannot be accomplished on part, while it is which that plant produced also is difficult to distinguish when assembling.
Prior art is mostly that different equipment are distinguished by reading device id, and when device id is identical, then cannot area Point, one group of parameter can only be often searched different equipment is worked, but this parameter cannot usually make multiple equipment All reach optimal working condition.And when plant produced is assembled, workpeople sometimes also cannot distinguish this by naked eyes Which a little equipment are.
The content of the invention
The shortcoming of prior art, simultaneous it is an object of the invention to provide a kind of mobile terminal external equipment in view of the above The method and system of appearance, for solving the problems, such as clearly distinguish external equipment in the prior art.
In order to achieve the above objects and other related objects, the present invention provide on the one hand a kind of mobile terminal external equipment and The method of appearance, is applied in the mobile terminal of Android system, and methods described includes:When mobile terminal starts, modem journey The item number that sequence reads the item number being stored in advance in the default subregion of the flash memory of mobile terminal and will read is stored in default In depositing, while so that presetting internal memory described in modem program and boot kernel procedure sharing;Boot kernel program is from default The item number for prestoring is read in internal memory;Boot kernel program obtain external equipment item number and analyze the item number whether with advance The item number of storage matches, if then running the setup code of the corresponding external equipment of the item number and showing the external equipment Start up graphic;If otherwise running the setup code of the external equipment of acquiescence;Start kernel, determine external equipment item number whether Match with the item number for prestoring, if then starting the corresponding driving equipment of the external equipment, if otherwise starting the drive of acquiescence Dynamic equipment.
As a preferred embodiment of the present invention, after starting kernel, determine external equipment item number whether with prestore The method that matches of item number be:The item number for prestoring read from default internal memory is saved in kernel by boot kernel program Command line parameter in;After starting kernel, kernel reads the item number of external equipment from boot kernel program, and analyzes the item number Whether with the command line parameter of kernel in preserve item number match, so that it is determined that the item number of external equipment whether with prestore Item number match.
As a preferred embodiment of the present invention, after starting kernel, determine external equipment item number whether with prestore The method that matches of item number be:Boot kernel program analyze the item number whether match with the item number for prestoring after obtain Matching result, after starting kernel, kernel reads the matching result from boot kernel program, and true according to the matching result Whether the item number for determining external equipment matches with the item number for prestoring.
As a preferred embodiment of the present invention, item number bag is prestored in the default subregion of the flash memory of mobile terminal Include:The function of write-in item number in the default subregion for the flash memory in mobile terminal is added in the system program of mobile terminal, After mobile terminal starts, the function of write-in item number is performed directly below in Android debugging bridge joint, by the pre- of item number write-in flash memory If in subregion.
Used as a preferred embodiment of the present invention, the default subregion is the B subregions of flash memory.
As a preferred embodiment of the present invention, boot kernel program analyze the item number whether with the item number for prestoring When matching, if being otherwise additionally included in the step of being shown for pointing out item number to be not written on the display screen of mobile terminal.
Used as a preferred embodiment of the present invention, the external equipment at least includes liquid crystal display, touch-screen, camera And each sensor.
The present invention provides a kind of mobile terminal external equipment compatible system in still further aspect, is applied to Android system In mobile terminal, the system includes:Item number memory module, is arranged in the default subregion of the flash memory of mobile terminal, for pre- First store the item number of external equipment;Modem program read module, is connected with item number memory module, and mobile terminal starts When, for controlling modem program to read the item number being stored in advance in the default subregion of the flash memory of mobile terminal;It is default Memory modules, are connected with modem program read module, for preserving flash memory of the modem program from mobile terminal Default subregion in read item number;Modem program and the boot kernel procedure sharing default memory modules;Kernel draws Helical pitch sequence read module, is connected with default memory modules, for reading the item number for prestoring from default memory modules;Kernel Bootstrap controls analysis module, is connected with boot kernel program read module, for reading the item number of external equipment and analyzing Whether the item number matches with the item number for prestoring, if then running the setup code of the corresponding external equipment of the item number simultaneously Show the start up graphic of the external equipment;If otherwise running the setup code of the external equipment of acquiescence;Kernel reads analysis mould Block, is connected with boot kernel programme-control analysis module, for determine external equipment item number whether with the item number for prestoring Match, if then starting the corresponding driving equipment of the external equipment, if otherwise starting the driving equipment of acquiescence.
As a preferred embodiment of the present invention, also including command line parameter preserving module, read with boot kernel program Module and kernel read analysis module and are connected, advance for preserve that boot kernel program read module reads from default internal memory The item number of storage;After starting kernel, the analysis module that kernel reads reads outside setting from boot kernel programme-control analysis module Standby item number, and analyze whether the item number matches with the item number of preservation in command line parameter preserving module, so that it is determined that outside Whether the item number of equipment matches with the item number for prestoring.
As a preferred embodiment of the present invention, boot kernel programme-control analysis module analyze the item number whether with advance The item number for first storing obtains matching result after matching, after starting kernel, kernel reads analysis module from boot kernel program control Read the matching result in analysis module processed, and according to the matching result determine external equipment item number whether with deposit in advance The item number of storage matches.
As a preferred embodiment of the present invention, also the item number writing module including being connected with item number memory module:Moving The function of write-in item number in the default subregion for the flash memory in mobile terminal, mobile terminal are added in the system program of dynamic terminal After startup, the function of write-in item number is performed directly below in Android debugging bridge joint, by the default subregion of item number write-in flash memory.
Used as a preferred embodiment of the present invention, the default subregion is the B subregions of flash memory.
Used as a preferred embodiment of the present invention, the also display including being connected with boot kernel programme-control analysis module is carried Show module:When boot kernel program is analyzed the item number and is not matched that with the item number for prestoring for the display in mobile terminal Shown on screen for pointing out item number to be not written into.
Used as a preferred embodiment of the present invention, the external equipment at least includes liquid crystal display, touch-screen, camera And each sensor.
As described above, a kind of compatible method and system of mobile terminal external equipment of the invention, with following beneficial effect Really:
In default subregion of the present invention by the flash memory that the item number of external equipment is write mobile terminal in advance, in movement eventually When end starts, the item number in default subregion is initialized and is loaded corresponding peripheral hardware and driven accordingly, is set by outside Standby item number recognizes each external equipment, realizes the compatibility of software, multiple external equipments is all reached optimal working condition, and And, item number is written into once, and follow-up software upgrading or T card upgrades need not again write item number.So the present invention can be thorough Bottom solves the problems, such as clearly distinguish external equipment in the prior art.
Brief description of the drawings
Fig. 1 is shown as a kind of schematic flow sheet of the compatible method of mobile terminal external equipment of the invention.
Fig. 2 is shown as the operation stream of boot kernel program in a kind of compatible method of mobile terminal external equipment of the invention Journey schematic diagram.
The operational process that Fig. 3 is shown as kernel in a kind of compatible method of mobile terminal external equipment of the invention is illustrated Figure.
Fig. 4 is shown as another operational process of kernel in a kind of compatible method of mobile terminal external equipment of the invention Schematic diagram.
Fig. 5 is shown as a kind of structural representation of the compatible system of mobile terminal external equipment of the invention.
Component label instructions
Specific embodiment
Embodiments of the present invention are illustrated below by way of specific instantiation, those skilled in the art can be by this specification Disclosed content understands other advantages of the invention and effect easily.The present invention can also be by specific realities different in addition The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints with application, without departing from Various modifications or alterations are carried out under spirit of the invention.
It is existing for solving it is an object of the invention to provide a kind of compatible method and system of mobile terminal external equipment The problem of external equipment cannot be clearly distinguished in technology.A kind of mobile terminal external equipment of the invention described in detail below is simultaneous The principle and implementation method of the method and system of appearance, make those skilled in the art not need creative work to be appreciated that the present invention A kind of compatible method and system of mobile terminal external equipment.
Embodiment 1
Fig. 1 is referred to, a kind of schematic flow sheet of the compatible method of mobile terminal external equipment of the invention is shown as.Such as Shown in Fig. 1, the present embodiment provides a kind of mobile terminal external equipment compatible method, is applied to the mobile terminal of Android system In, methods described includes:
Step S1, when mobile terminal starts, the reading of modem program is stored in advance in the pre- of the flash memory of mobile terminal If item number in the subregion and item number that will be read is stored in default internal memory, while so that modem program and kernel draw Lead and internal memory is preset described in procedure sharing.
Step S2, boot kernel program reads the item number for prestoring from default internal memory.
Step S3, boot kernel program obtain external equipment item number and analyze the item number whether with the item number for prestoring Match, if then running the setup code of the corresponding external equipment of the item number and showing the start up graphic of the external equipment; If otherwise running the setup code of the external equipment of acquiescence.
Step S4, starts kernel, determines whether the item number of external equipment matches with the item number for prestoring, if then opening The corresponding driving equipment of the external equipment is moved, if otherwise starting the driving equipment of acquiescence.
Above steps is described in detail below.
In the present embodiment, the external equipment at least includes liquid crystal display, touch-screen, camera and each sensing Device.
Before step S1 is performed, the item number of external equipment should be write the default subregion of the flash memory of mobile terminal in advance In.Specifically, workman can be according to the item number of external equipment, with a kind of special instrument peripheral hardware after mobile terminal system starts Item number is write into the default subregion of the flash memory of mobile terminal, will be according to default subregion when then mobile terminal system is restarted again In item number load corresponding driving.If item number does not write, mobile terminal system can load one group of driving of acquiescence.
Specifically, in the present embodiment, the item number of external equipment is preserved in the B subregions in flash subarea, i.e., in this reality Apply in example, the default subregion is the B subregions of flash memory.Item number bag is prestored in the default subregion of the flash memory of mobile terminal Include:The function of write-in item number in the default subregion for the flash memory in mobile terminal is added in the system program of mobile terminal, After mobile terminal starts, the function of write-in item number is performed directly below in Android debugging bridge joint, by the pre- of item number write-in flash memory If in subregion.
For example, the instrument of item number is write in addition in mobile terminal system(Function)Fdv_set, mobile terminal system starts it After can Android debug bridge(adb)Root authority is obtained directly below, then adb shell enter, perform fdv_set LCD =item number, TP=item numbers, CAMERA=item numbers.
Item number is written into subregion B, and this process is write by plant produced personnel, PC instrument call functions fdv_set.In material Number it is written into the default subregion of the flash memory of mobile terminal(B subregions)In after, when mobile terminal system is restarted again, perform it is foregoing Described step S1~step S4.
Step S1 is first carried out, when mobile terminal starts, modem program reads and is stored in advance in mobile terminal Item number in the default subregion of the flash memory and item number that will be read is stored in default internal memory, and cause modem program and Internal memory is preset described in boot kernel procedure sharing.
That is, when mobile terminal system starts, modem program is from the B subregions of flash item number It is delivered in one piece of internal memory of mobile terminal system, boot kernel program and modem procedure sharing this block internal memory.For example, This block internal memory is referred to as A for the time being.Then step S2 is performed.
In step s 2, boot kernel program reads the item number of external equipment from default internal memory.Then step S3 is performed.
In step s3, boot kernel program obtain external equipment item number and analyze the item number whether with prestore Item number matches, if then running the setup code of the corresponding external equipment of the item number and showing the start figure of the external equipment Piece;If otherwise running the setup code of the external equipment of acquiescence.
Meanwhile, in the present embodiment, analyze whether the item number matches with the item number for prestoring in boot kernel program When, if being otherwise additionally included in the step of being shown for pointing out item number to be not written on the display screen of mobile terminal.
In the present embodiment, as shown in Fig. 2 being shown as in a kind of compatible method of mobile terminal external equipment of the invention The operational process schematic diagram of boot kernel program.Mobile terminal system start when, boot kernel program can from modulatedemodulate Adjust the item number of reading external equipment in the shared drive A of device program.It is if item number write-in, the item number for reading is interior with shared The item number deposited in A is matched, and the setup code of the corresponding external equipment of the item number, Zhi Houxian are run if the match is successful Show the start up graphic of the external equipment(logo).If item number does not write, the setup code of the external equipment of acquiescence is run, " equipment item number does not write " can be shown on screen simultaneously to be pointed out.Then step S4 is performed.
In step s 4, start kernel, determine whether the item number of external equipment matches with the item number for prestoring, if Then start the corresponding driving equipment of the external equipment, if otherwise starting the driving equipment of acquiescence.
In the present embodiment, Fig. 3 is referred to, is shown as in a kind of compatible method of mobile terminal external equipment of the invention The operational process schematic diagram of kernel.As shown in figure 3, after starting kernel, determine external equipment item number whether with prestore The method that item number matches is:Need in step s 2, boot kernel program is by prestoring for reading from the default internal memory Item number is saved in the command line parameter of kernel, i.e., mobile terminal system start when, boot kernel program can from modulation The item number of external equipment is read in the shared drive A of demodulator program, while the incoming kernel of item number information in shared drive (kernel), it is stored in command line parameter(cmdline)In;In step s 4, after starting kernel, kernel is from boot kernel program It is middle to read the item number of external equipment, and analyze whether the item number matches with the item number of preservation in the command line parameter of kernel, from And determine whether the item number of external equipment matches with the item number for prestoring.If then starting the corresponding driving of the external equipment Equipment, if otherwise starting the driving equipment of acquiescence.
That is, starting kernel, kernel can be according to boot kernel program(cmdline)In item number come match LCD, The driving of the external equipment such as TP, camera and various sensor, analyze the item number whether with the command line parameter of kernel in protect The item number deposited matches, if item number is with driving, and the match is successful, operation is corresponding to drive registration equipment, starts the external equipment Corresponding driving equipment, mobile terminal system is behaved.If the item number preserved in the command line parameter of the item number and kernel Mismatch, i.e. item number item number is not written to, then run the driving equipment of acquiescence.
Additionally, in the present embodiment, referring to Fig. 4, a kind of mobile terminal external equipment compatibility of the invention is also provided Another operational process schematic diagram of kernel in method.As shown in figure 4, start kernel after, determine external equipment item number whether The method matched with the item number for prestoring is:Need in step s3, boot kernel program analyze the item number whether with The item number for prestoring obtains matching result after matching, after starting kernel, kernel reads described from boot kernel program With result, and determine whether the item number of external equipment matches with the item number for prestoring according to the matching result.
That is, boot kernel program analyze the item number whether match with the item number for prestoring when, Whether the result that matches of acquisition, when driving equipment is started, without being matched again, kernel is from boot kernel program for kernel In directly read the matching result and determine to start the corresponding driving equipment of the external equipment or start the driving of acquiescence Equipment.
To sum up, modem program(Modem)When startup, bootstrap therein can go B subregions to read item number, The item number for reading is stored in specific internal memory, then this bootstrap deactivation boot kernel program, boot kernel Program goes to read the content inside that block memory address, the item number matching according to the content and external equipment for reading, if What the match is successful just go calls the setup code of external equipment of correspondence item number to show start up graphic(logo).That block internal memory Content inside address can be saved in command line parameter(cmdline)The inside, kernel(kernel)According to command line parameter (cmdline)The item number of the inside calls the driving of the peripheral hardwares such as corresponding LCD, TP, camera, or kernel according to boot kernel journey The matching result of sequence calls the driving of the peripheral hardwares such as corresponding LCD, TP, camera, so that the system of whole mobile terminal is just run Get up.Item number is written into once, and follow-up software upgrading or T card upgrades need not again write item number.
Embodiment 2
To realize the above method, as shown in figure 5, the present embodiment provides a kind of mobile terminal external equipment compatible system, It is applied in the mobile terminal of Android system, the compatible system 1 of the mobile terminal external equipment includes:Item number memory module 11st, modem program read module 12, default memory modules 13, boot kernel program read module 14, command line parameter Preserving module 15, boot kernel programme-control analysis module 16, kernel read analysis module 17, item number writing module 18 and display Reminding module 19.
Above-mentioned each module is described in detail below.
In the present embodiment, the external equipment at least includes liquid crystal display, touch-screen, camera and each sensing Device.
Item number memory module 11 is arranged in the default subregion of the flash memory of mobile terminal, for prestoring external equipment Item number.In advance by the default subregion of the flash memory of the item number write-in mobile terminal of external equipment.Specifically, system of the invention is also Including the item number writing module 18 being connected with item number memory module 11:Added in movement in the system program of mobile terminal The function of item number is write in the default subregion of the flash memory of terminal, after mobile terminal starts, in Android debugging bridge joint directly below The function of write-in item number is performed, by item number write-in item number memory module 11(That is the default subregion of flash memory)In.
Workman can be according to the item number of external equipment, by item number writing module 18 peripheral hardware after mobile terminal system starts Item number writes into item number memory module 11(The default subregion of the flash memory of mobile terminal)In, when then mobile terminal system is restarted again Corresponding driving will be loaded according to the item number in item number memory module 11.If item number does not write, mobile terminal system meeting Load one group of driving of acquiescence.
Specifically, outside setting is preserved in the item number writing module 18 of the present embodiment, in the B subregions in flash subarea Standby item number, i.e., in the present embodiment, the item number memory module 11 is the B subregions of flash memory.In the material of the flash memory of mobile terminal Prestoring item number in number memory module 11 includes:Added in the system program of mobile terminal for the flash memory in mobile terminal Default subregion in write item number function, mobile terminal start after, Android debugging bridge joint directly below perform write-in material Number function, by item number write-in flash memory default subregion in.
For example, the instrument of item number is write in addition in mobile terminal system(Function)Fdv_set, mobile terminal system starts it After can Android debug bridge(adb)Root authority is obtained below, then adb shell enter, then perform fdv_set LCD =item number, TP=item numbers, CAMERA=item numbers.
Item number is written into item number memory module 11, and this process is write by plant produced personnel, and PC instruments call item number to write Enter the function fdv_set in module 18.After item number is written into item number memory module 11, mobile terminal system is restarted again When, the item number of the external equipment stored in adjustable feeding memory module 11.
Modem program read module 12 is connected with item number memory module 11, when mobile terminal starts, for controlling Modem program reads and is stored in advance in item number memory module 11(That is B subregions of the flash memory of mobile terminal)In material Number.
Default memory modules 13 are connected with modem program read module 12, for preserve modem program from The item number read in the default subregion of the flash memory of mobile terminal;Modem program read module 12 and boot kernel program are read Modulus block 14 shares the default memory modules 13.
That is, when mobile terminal system starts, modem program is from the B subregions of flash item number It is delivered in one piece of internal memory of mobile terminal system, modem program read module 12 and boot kernel program read module 14 share this block internal memory.For example, this block internal memory is referred to as A for the time being.
Boot kernel program read module 14 is connected with default memory modules 13, for being read from default memory modules 13 The item number for prestoring.
Command line parameter preserving module 15 is connected with boot kernel program read module 14, for preserving boot kernel program The item number for prestoring that read module 14 reads from default internal memory.
Boot kernel programme-control analysis module 16 is connected with boot kernel program read module 14, is set for reading outside Standby item number simultaneously analyzes whether the item number matches with the item number for prestoring, if then running the corresponding external equipment of the item number Setup code and show the start up graphic of the external equipment;If otherwise running the setup code of the external equipment of acquiescence.
When mobile terminal system starts, boot kernel programme-control analysis module 16 is read from modem program The item number of the external equipment for prestoring is read in the shared drive A of modulus block 12.If item number write-in, the material for reading Number matched with the item number in shared drive A, the initialization of the corresponding external equipment of the item number is run if the match is successful Code, shows the start up graphic of the external equipment afterwards(logo).
Additionally, in the present embodiment, the also display reminding mould including being connected with boot kernel programme-control analysis module 16 Block 19, analyzed in boot kernel programme-control analysis module 16 is used to move when the item number is not matched that with the item number for prestoring Shown for pointing out item number to be not written on the display screen of dynamic terminal.If item number does not write, the outside for running acquiescence sets Standby setup code, while " equipment item number does not write " can be shown on the screen of display reminding module 19 to be pointed out.
Kernel reads analysis module 17 and is connected with boot kernel programme-control analysis module 16, for determining external equipment Whether item number matches with the item number for prestoring, if then starting the corresponding driving equipment of the external equipment, if otherwise starting The driving equipment of acquiescence.
Start kernel after, kernel read analysis module 17 determine external equipment item number whether with the item number phase for prestoring The method of matching can be:Kernel read analysis module 17 with and command line parameter preserving module 15 be connected, kernel reading analyze Module 17 can read the item number of external equipment from boot kernel program read module 14, and analyze the item number whether with order In line parameter preserving module 15 preserve item number match, so that it is determined that the item number of external equipment whether with the item number for prestoring Match.
That is, in kernel reads analysis module 17, starting kernel, kernel can be according to boot kernel program (cmdline)In item number match the driving of the external equipment such as LCD, TP, camera and various sensor, kernel reads point Analysis module 17 analyzes whether the item number matches with the item number of preservation in the command line parameter of kernel, if item number is matched with driving Success, then run corresponding driving registration equipment, starts the corresponding driving equipment of the external equipment, and mobile terminal system runs Come.If the item number is mismatched with the item number of preservation in the command line parameter of kernel, i.e. item number item number is not written to, then runs The driving equipment of acquiescence.
Additionally, after starting kernel, kernel read analysis module 17 determine external equipment item number whether with prestore The method that item number matches can also be:Boot kernel programme-control analysis module 16 analyze the item number whether with prestore Item number match after obtain matching result, after starting kernel, kernel reads analysis module 17 from boot kernel programme-control point Read the matching result in analysis module 16, and according to the matching result determine external equipment item number whether with prestore Item number match.
That is, boot kernel programme-control analysis module 16 analyze the item number whether with the item number for prestoring When matching, whether the result for matching is obtained, when driving equipment is started, kernel reads analysis module 17 without again to kernel Once matched, kernel directly reads the matching result to determine to be from boot kernel programme-control analysis module 16 Start the driving equipment that the corresponding driving equipment of the external equipment still starts acquiescence.
In sum, the compatible method and system of a kind of mobile terminal external equipment of the invention, have reached following beneficial Effect:
In default subregion of the present invention by the flash memory that the item number of external equipment is write mobile terminal in advance, in movement eventually When end starts, the item number in default subregion is initialized and is loaded corresponding peripheral hardware and driven accordingly, is set by outside Standby item number recognizes each external equipment, realizes the compatibility of software, multiple external equipments is all reached optimal working condition, and And, item number is written into once, and follow-up software upgrading or T card upgrades need not again write item number.So the present invention can be thorough Bottom solves the problems, such as clearly distinguish external equipment in the prior art.So, the present invention effectively overcomes of the prior art Various shortcoming and have high industrial utilization.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe The personage for knowing this technology all can carry out modifications and changes under without prejudice to spirit and scope of the invention to above-described embodiment.Cause This, those of ordinary skill in the art is complete with institute under technological thought without departing from disclosed spirit such as Into all equivalent modifications or change, should be covered by claim of the invention.

Claims (14)

1. a kind of compatible method of mobile terminal external equipment, is applied in the mobile terminal of Android system, it is characterised in that institute The method of stating includes:
When mobile terminal starts, modem program reads the material being stored in advance in the default subregion of the flash memory of mobile terminal Number and the item number that will read be stored in default internal memory, while so that modem program and boot kernel procedure sharing institute State default internal memory;
Boot kernel program reads the item number for prestoring from default internal memory;
Boot kernel program obtains the item number of external equipment and analyzes whether the item number matches with the item number for prestoring, if Then run the setup code of the corresponding external equipment of the item number and show the start up graphic of the external equipment;If otherwise running silent The setup code of the external equipment recognized;
Start kernel, determine whether the item number of external equipment matches with the item number for prestoring, if then start outside this setting Standby corresponding driving equipment, if otherwise starting the driving equipment of acquiescence.
2. the compatible method of mobile terminal external equipment according to claim 1, it is characterised in that after starting kernel, really Whether the method matched with the item number for prestoring is to determine the item number of external equipment:Boot kernel program will be from default internal memory The item number for prestoring for reading is saved in the command line parameter of kernel;After starting kernel, kernel is from boot kernel program The item number of external equipment is read, and analyzes whether the item number matches with the item number of preservation in the command line parameter of kernel, so that Determine whether the item number of external equipment matches with the item number for prestoring.
3. the compatible method of mobile terminal external equipment according to claim 1, it is characterised in that after starting kernel, really Whether the method matched with the item number for prestoring is to determine the item number of external equipment:In analysis, the item number is boot kernel program No and item number that is prestoring obtains matching result after matching, after starting kernel, kernel reads institute from boot kernel program Matching result is stated, and determines whether the item number of external equipment matches with the item number for prestoring according to the matching result.
4. the compatible method of mobile terminal external equipment according to claim 1, it is characterised in that in the sudden strain of a muscle of mobile terminal Prestoring item number in the default subregion deposited includes:
The function of write-in item number in the default subregion for the flash memory in mobile terminal is added in the system program of mobile terminal, After mobile terminal starts, the function of write-in item number is performed directly below in Android debugging bridge joint, by the pre- of item number write-in flash memory If in subregion.
5. the compatible method of mobile terminal external equipment according to claim 1, it is characterised in that the default subregion is The B subregions of flash memory.
6. the compatible method of mobile terminal external equipment according to claim 1, it is characterised in that in boot kernel program When analyzing the item number and whether matching with the item number for prestoring, if be otherwise additionally included on the display screen of mobile terminal showing The step of for pointing out item number to be not written into.
7. the compatible method of mobile terminal external equipment according to claim 1, it is characterised in that the external equipment is extremely Include liquid crystal display, touch-screen, camera and each sensor less.
8. a kind of compatible system of mobile terminal external equipment, is applied in the mobile terminal of Android system, it is characterised in that institute The system of stating includes:
Item number memory module, is arranged in the default subregion of the flash memory of mobile terminal, the item number for prestoring external equipment;
Modem program read module, is connected with item number memory module, when mobile terminal starts, for controlling modulation /demodulation Device program reads the item number being stored in advance in the default subregion of the flash memory of mobile terminal;
Default memory modules, are connected with modem program read module, whole from movement for preserving modem program The item number read in the default subregion of the flash memory at end;Modem program and the boot kernel procedure sharing default internal memory mould Block;
Boot kernel program read module, is connected with default memory modules, is prestored for being read from default memory modules Item number;
Boot kernel programme-control analysis module, is connected with boot kernel program read module, the material for reading external equipment Number and analyze whether the item number matches with the item number for prestoring, if then running the initial of the corresponding external equipment of the item number Change code and show the start up graphic of the external equipment;If otherwise running the setup code of the external equipment of acquiescence;
Kernel reads analysis module, is connected with boot kernel programme-control analysis module, and the item number for determining external equipment is It is no to match with item number that is prestoring, if then starting the corresponding driving equipment of the external equipment, if otherwise starting acquiescence Driving equipment.
9. the compatible system of mobile terminal external equipment according to claim 8, it is characterised in that also join including order line Number preserving module, reads analysis module and is connected, for preserving boot kernel program with boot kernel program read module and kernel The item number for prestoring that read module reads from default internal memory;After starting kernel, kernel reads analysis module and draws from kernel Lead the item number that external equipment is read in programme-control analysis module, and analyze the item number whether with command line parameter preserving module in The item number of preservation matches, so that it is determined that whether the item number of external equipment matches with the item number for prestoring.
10. the compatible system of mobile terminal external equipment according to claim 8, it is characterised in that boot kernel program Control analysis module obtains matching result analyzing after whether the item number matches with the item number for prestoring, after starting kernel, The analysis module that kernel reads reads the matching result from boot kernel programme-control analysis module, and according to the matching knot Fruit determines whether the item number of external equipment matches with the item number for prestoring.
The compatible system of 11. mobile terminal external equipments according to claim 8, it is characterised in that also including with item number The connected item number writing module of memory module:Added in the system program of mobile terminal for the pre- of the flash memory in mobile terminal If writing the function of item number in subregion, after mobile terminal starts, write-in item number is performed directly below in Android debugging bridge joint Function, by the default subregion of item number write-in flash memory.
The compatible system of 12. mobile terminal external equipments according to claim 8, it is characterised in that the default subregion It is the B subregions of flash memory.
The compatible system of 13. mobile terminal external equipments according to claim 8, it is characterised in that also including with kernel The connected display reminding module of bootstrap control analysis module:The item number is analyzed with the material for prestoring in boot kernel program It is not written into for the display reminding item number on the display screen of mobile terminal when number not matching that.
The compatible system of 14. mobile terminal external equipments according to claim 8, it is characterised in that the external equipment At least include liquid crystal display, touch-screen, camera and each sensor.
CN201310473830.1A 2013-10-12 2013-10-12 A kind of compatible method and system of mobile terminal external equipment Expired - Fee Related CN103500113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310473830.1A CN103500113B (en) 2013-10-12 2013-10-12 A kind of compatible method and system of mobile terminal external equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310473830.1A CN103500113B (en) 2013-10-12 2013-10-12 A kind of compatible method and system of mobile terminal external equipment

Publications (2)

Publication Number Publication Date
CN103500113A CN103500113A (en) 2014-01-08
CN103500113B true CN103500113B (en) 2017-06-13

Family

ID=49865328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310473830.1A Expired - Fee Related CN103500113B (en) 2013-10-12 2013-10-12 A kind of compatible method and system of mobile terminal external equipment

Country Status (1)

Country Link
CN (1) CN103500113B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105808479A (en) * 2014-12-29 2016-07-27 希姆通信息技术(上海)有限公司 Compatibility configuration method and dynamic configuration method of peripheral port, and electronic device
CN104484211B (en) * 2014-12-29 2017-07-28 广东欧珀移动通信有限公司 The method and device of shared image file
CN104955023B (en) * 2015-06-26 2018-12-21 努比亚技术有限公司 A kind of mobile terminal and the method for updating network parameter
CN105930254B (en) * 2016-05-06 2020-01-31 联想(北京)有限公司 information processing method and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232304A (en) * 2011-05-04 2011-11-02 华为终端有限公司 Method, system and terminal for system update between mobile communication terminals
CN102622312A (en) * 2011-12-19 2012-08-01 广东步步高电子工业有限公司 Method for automatically identifying driving devices
CN103345454A (en) * 2013-07-05 2013-10-09 上海斐讯数据通信技术有限公司 Peripheral device connection method of mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232304A (en) * 2011-05-04 2011-11-02 华为终端有限公司 Method, system and terminal for system update between mobile communication terminals
CN102622312A (en) * 2011-12-19 2012-08-01 广东步步高电子工业有限公司 Method for automatically identifying driving devices
CN103345454A (en) * 2013-07-05 2013-10-09 上海斐讯数据通信技术有限公司 Peripheral device connection method of mobile terminal

Also Published As

Publication number Publication date
CN103500113A (en) 2014-01-08

Similar Documents

Publication Publication Date Title
CN107291497B (en) Multi-firmware upgrading method and system and readable storage medium
CN103500113B (en) A kind of compatible method and system of mobile terminal external equipment
CN102662717A (en) Bootstrap starting method of embedded system
CN104991872A (en) Method and apparatus for implementing driving of intelligent device on peripheral device
CN103649917B (en) Instruction in graphics processing unit is rejected
CN104407874A (en) Embedded equipment compatible to a plurality of types of LCD screens
CN103853586A (en) Method of realizing wireless card driver in UEFI (unified extensible firmware interface) layer
CN103929676B (en) Method for remotely testing functions of intelligent television board card and intelligent television board card
US20160063668A1 (en) Semiconductor device
CN105912337A (en) Method for implementing graphics card initialization applied in domestic non-X86 platform
CN105335285A (en) Implementation method of double-interface smart card test system compatible with multiple test platforms
RU2011109253A (en) INTEGRATED CIRCUIT, APPARATUS FOR INFORMATION PROCESSING, METHOD FOR MANAGING THE SOFTWARE MODULE, INFORMATION PROCESSING SYSTEM, INFORMATION PROCESSING METHOD AND PROGRAM
CN105117250B (en) A kind of compatibility processing method and electronic equipment
CN113793067B (en) Packaging resource scheduling method of assembly line
CN101256752A (en) Method and apparatus for automatically collocating LCD drive programme
CN106775897A (en) A kind of driver for Set Top Box starts method and system
CN105068792B (en) A kind of device driver managemen method and embedded system
CN109976744B (en) Visual programming method, system and terminal equipment
CN106776383A (en) The recognition methods of storage card, device and electronic equipment
US9778941B2 (en) Substrate processing system, storage medium and method of registering new device
EP2141590A1 (en) Method of managing data in a portable electronic device having a plurality of controllers
KR20210112031A (en) Smart logistic warehouse system for automated product inspection and packaging
CN109710352A (en) A kind of display methods and device of boot animation
CN111459564B (en) boot stage initialization compatible implementation method, system and computer equipment
CN104678875B (en) A kind of frequency converter configuration method and frequency converter configure 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
GR01 Patent grant
GR01 Patent grant
PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20180313

Granted publication date: 20170613

PD01 Discharge of preservation of patent
PD01 Discharge of preservation of patent

Date of cancellation: 20210313

Granted publication date: 20170613

PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20210313

Granted publication date: 20170613

PD01 Discharge of preservation of patent
PD01 Discharge of preservation of patent

Date of cancellation: 20240313

Granted publication date: 20170613

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170613