A kind of chip module adaption system and method
Technical field
The invention belongs to set top box and ott(Over The Top)The chip module configuration of network multimedia player, add
Carry technical field, more particularly to a kind of chip module adaption system and method.
Background technology
Traditional set top box or ott network player boxes, is only adapted to a kind of wifi(Wireless Fidelity, nothing
Line high-fidelity)Module.
In view of a variety of wifi modules versions in practical application be present, different users has different wifi module demands,
Different wifi modules need to be adapted in set top box of the same race or ott network players, to meet the different demands of user.Due to working as
Preceding set top box, ott network players etc. are only adapted to a kind of wifi modules, cause the scheduling and planning stage, are changed for set top box
, it is necessary to change the respective code information of wifi drivings and the code information of other related softwares simultaneously during wifi modules(Such as
Change the code information such as driving mark in uboot or kernel), to be adapted to changed wifi modules.So as to ultimately result in
Wifi modules are changed, the difficulty of adaptation is higher, software maintenance amount is larger, add the workload of engineer, and easily error.
The content of the invention
In view of this, it is existing to solve it is an object of the invention to provide a kind of chip module adaption system and method
Wifi modules are changed, adaptation when difficulty is higher, software maintenance amount is larger, the problem of easily error.
Therefore, the present invention is disclosed directly below technical scheme:
A kind of chip module adaption system, including trigger module, modular converter, judge module, determining module and loading
Module, wherein:
The trigger module, for choosing regulating resistor based on objective chip module to be adapted to, and utilize the pressure regulation
Resistance produces trigger voltage;
The modular converter, for carrying out analog-to-digital conversion process to the trigger voltage, it is relative to obtain the trigger voltage
The digital information answered;
The judge module, judge the trigger voltage for obtaining the digital information, and according to the digital information
Affiliated voltage range;
The determining module, for the mapping relations according to voltage range set in advance and drive module, using described
Voltage range belonging to trigger voltage determines the drive module that need to be enabled from N number of drive module integrated in advance, wherein, it is described
N is the natural number more than 1;
The load-on module, the mesh is loaded for loading the drive module determined, and based on the drive module
Mark chip module.
Said system, it is preferred that the chip module is specially wifi modules, the wifi modules include wifi chip and
Printing board PCB.
Said system, it is preferred that the drive module is specially wifi drivings.
Said system, it is preferred that the modular converter specifically includes AD conversion unit and memory cell, wherein:
The AD conversion unit, for being turned analog voltage signal caused by the regulating resistor using A/D converter
Data signal is changed to, and obtains the digital information represented by the data signal;
The memory cell, for being stored to the digital information.
A kind of chip module adaptation method, including:
Regulating resistor is chosen based on objective chip module to be adapted to, and trigger voltage is produced using the regulating resistor;
Analog-to-digital conversion process is carried out to the trigger voltage, obtains the corresponding digital information of the trigger voltage;
The digital information is obtained, and judges the voltage range belonging to the trigger voltage according to the digital information;
According to voltage range set in advance and the mapping relations of drive module, the voltage belonging to the trigger voltage is utilized
Scope determines the drive module that need to be enabled from N number of drive module integrated in advance, wherein, the N is the natural number more than 1;
The drive module determined is loaded, and the objective chip module is loaded based on the drive module.
The above method, it is preferred that described that the trigger voltage phase is obtained to trigger voltage progress analog-to-digital conversion process
Corresponding digital information, is specifically included:
Analog voltage signal caused by the regulating resistor is converted into data signal using A/D converter, and obtains institute
State the digital information represented by data signal;
The digital information is stored.
To sum up, chip module adaption system provided in an embodiment of the present invention includes trigger module, modular converter, judges mould
Block, determining module and load-on module.The system is directed to the different chip modules of different user(Such as wifi modules)Demand,
Each chip module is integrated in advance corresponds to required multiple drivings(Such as wifi drivings), meanwhile, pre-establish each driving and voltage
Mapping relations between scope, the adaptation procedure for follow-up chip module provide support.On this basis, what the system included is each
Module for objective chip module to be adapted to by choosing suitable regulating resistor, and using regulating resistor as objective chip module
The selecting switch that driving need to be enabled completes adaptation, specifically produces trigger voltage using regulating resistor, and judge belonging to trigger voltage
Voltage range, determine to need the drive module that enables according to the voltage range, subsequent load driving and objective chip module are real
The adaptation procedure of existing objective chip module.
So as to using the system of the present invention, in the scheduling and planning stage, when needing for set top box or ott network players
When changing wifi modules, it is only necessary to choose suitable regulating resistor for wifi modules and change, without change wifi drivings and
The code information of other related softwares, the workload of engineer is reduced, reduces error rate.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention
Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
These accompanying drawings obtain other accompanying drawings.
Fig. 1 is the structural representation of chip module adaption system disclosed in the embodiment of the present invention one;
Fig. 2 is the structural representation of modular converter disclosed in the embodiment of the present invention one;
Fig. 3 is chip module adaptation method flow chart disclosed in the embodiment of the present invention two.
Embodiment
For the sake of quoting and understanding, the technical term that hereinafter uses, write a Chinese character in simplified form or summary of abridging is explained as follows:
A/D converter:That is analog-digital converter, abbreviation ADC, the electronics member for data signal by analog-signal transitions is referred to
Part, common analog-digital converter are the data signals that an input voltage signal is converted to an output.
UBOOT:It is a kind of software, it is typically performed at first in embedded systems, can liken pc to(personal
Computer, personal computer)BIOS on mainboard(Basic Input Output System, basic input output system).
kernel:Refer to the core of operating system nucleus, i.e. operating system, it in operating system for management by depositing
Reservoir, file, those parts composition of peripheral hardware and system resource.Operating system nucleus generally runs process, and between offer process
Communication.
Wifi modules:It is wifi chip and PCB(Printed Circuit Board), printed circuit board)The group of plank
Close.
Wifi drives:It is a kind of software, realizes and wifi modules are driven.
ARM:That is arm processor, it is first item RISC of the Acorn computers Co., Ltd towards low budget Market Design
(Reduced Instruction Set Computer, Reduced Instruction Set Computer)Microprocessor.
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
The present invention discloses a kind of chip module adaption system and method, will be broadcast below with set top box or ott network multimedias
Put in device and the system and method for the present invention are described in detail exemplified by the adaptation procedure of wifi modules.
Embodiment one
The embodiment of the present invention one discloses a kind of chip module adaption system, refers to Fig. 1, and the system includes trigger module
100th, modular converter 200, judge module 300, determining module 400 and load-on module 500.
Trigger module 100, for choosing regulating resistor based on objective chip module to be adapted to, and utilize pressure regulation electricity
Resistance produces trigger voltage.
Wherein, objective chip module is specially wifi modules, and correspondingly, drive module is specially wifi drivings.
Modular converter 200, for carrying out analog-to-digital conversion process to the trigger voltage, it is corresponding to obtain the trigger voltage
Digital information.
Wherein, as shown in Fig. 2 modular converter 200 specifically includes AD conversion unit 201 and memory cell 202.Modulus turns
Unit 201 is changed to be used to utilize A/D(Analog/Digital, analog/digital)Converter will simulate caused by the regulating resistor
Voltage signal is converted to data signal, and obtains the digital information represented by the data signal;Memory cell 202 is used for institute
Digital information is stated to be stored.
Specifically, the regulating resistor addition of selection is changed in the ARM chips and A/D of set top box or ott network players
Between the input pin pin of device.
In the present embodiment, reference voltage range is set as 0-1V.
Assuming that above-mentioned A/D converter is specially the voltage analog-digital converter of 4, then each output signal of the A/D converter
16 kinds of codings are corresponded to altogether:0000、0001、0010、0011、0100、0101、0110、0111、1000、1001、1010、1011、
1100th, 1101,1110,1111, the input voltage range of each coded representation is respectively:0V-0.0625V、0.0626V-
0.125V ... 0.9376V-1V, i.e., the coding and 16 voltage ranges of 16 grades(16 are carried out to 1V voltages to divide equally)In the presence of
One-to-one mapping relations.
When set top box or ott network players power up, regulating resistor produces trigger voltage, and A/D converter reads resistance
Range of voltage values, passage output data corresponding to selection, and by the data storage of output in own register.For example, when one
During individual 0.8V voltage signal input, A/D converter output data 1100, and data 1100 are stored in own register.
Judge module 300, judge the trigger voltage institute for obtaining the digital information, and according to the digital information
The voltage range of category.
Determining module 400, for the mapping relations according to voltage range set in advance and drive module, touched using described
The voltage range to generate electricity belonging to pressure determines the drive module that need to be enabled from N number of drive module integrated in advance, wherein, the N
For the natural number more than 1.
Load-on module 500, the target is loaded for loading the drive module determined, and based on the drive module
Chip module.
Wherein, the function of judge module 300, determining module 400 and load-on module 500 can by the UBOOT in set top box and
Kernel realizes, specifically, UBOOT and kernel are from adc(A/d converter)Read converter enters to trigger voltage in register
The converting result data of row conversion gained, and judge voltage range belonging to trigger voltage according to the converting result data of reading,
For example, if the result data that UBOOT is read from register is 1100, it can determine whether out that the voltage range belonging to trigger voltage is
0.75-0.8125.Afterwards, UBOOT and kernel is according to the voltage range pre-established and the mapping relations of wifi drivings, loading
The wifi driving corresponding with the voltage range, performs corresponding scripts file and mark starts wifi drivings, and then loads mesh
Wifi modules are marked, so far, realize the adaptation of wifi modules.
When it is implemented, can be modified by the program code driven to existing wifi, add in existing wifi drivings
Corresponding driving identification condition selection code is added to realize the function according to trigger voltage scope loading respective drive.
To sum up, chip module adaption system provided in an embodiment of the present invention includes trigger module, modular converter, judges mould
Block, determining module and load-on module.The system is directed to the different chip modules of different user(Such as wifi modules)Demand,
Each chip module is integrated in advance corresponds to required multiple drivings(Such as wifi drivings), meanwhile, pre-establish each driving and voltage
Mapping relations between scope, the adaptation procedure for follow-up chip module provide support.On this basis, what the system included is each
Module for objective chip module to be adapted to by choosing suitable regulating resistor, and using regulating resistor as objective chip module
The selecting switch that driving need to be enabled completes adaptation, specifically produces trigger voltage using regulating resistor, and judge belonging to trigger voltage
Voltage range, determine to need the drive module that enables according to the voltage range, subsequent load driving and objective chip module are real
The adaptation procedure of existing objective chip module.
So as to using the system of the present invention, in the scheduling and planning stage, when needing for set top box or ott network players
When changing wifi modules, it is only necessary to choose suitable regulating resistor for wifi modules and change, without change wifi drivings and
The code information of other related softwares, the workload of engineer is reduced, reduces error rate.
Embodiment two
The embodiment of the present invention two discloses a kind of chip module adaptation method, refers to Fig. 3, and this method comprises the following steps:
S301:Regulating resistor is chosen based on objective chip module to be adapted to, and triggering is produced using the regulating resistor
Voltage.
S302:Analog-to-digital conversion process is carried out to the trigger voltage, obtains the corresponding digital information of the trigger voltage.
S303:The digital information is obtained, and the voltage model belonging to the trigger voltage is judged according to the digital information
Enclose.
Wherein, step S303 is specifically included:Using A/D converter by analog voltage signal caused by the regulating resistor
Data signal is converted to, and obtains the digital information represented by the data signal;The digital information is stored.
S304:According to voltage range set in advance and the mapping relations of drive module, using belonging to the trigger voltage
Voltage range the drive module that need to be enabled is determined from N number of drive module integrated in advance, wherein, the N be more than 1 from
So number.
S305:The drive module determined is loaded, and the objective chip module is loaded based on the drive module.
For chip module adaptation method disclosed in the embodiment of the present invention two, due to itself and the disclosure of above example one
Chip module adaption system it is corresponding, so description it is fairly simple, related similarity refers to the chips of embodiment one
The explanation of module adaption system part, is no longer described in detail herein.
In summary, the present invention is engaged by software with circuit design, is carried out wifi module configurations, is specifically made resistance
For the switch of selection wifi drivings, A/D converter is aided with by resistive voltage to select wifi to drive, is changing wifi modules
When, only accordingly change resistance and carry out pressure regulation, reduce the workload of engineer, reduce error rate.And the present invention provides
Function be a kind of expansible application function, be not limited only to the configuration of wifi modules, other hardware electricity can also be applied to
On the plate of road, realize and select other chip modules.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For convenience of description, describe to be divided into various modules during apparatus above with function or unit describes respectively.Certainly, exist
Implement each module, the function of unit can be realized in same or multiple softwares and/or hardware during the application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
Realized by the mode of software plus required general hardware platform.Based on such understanding, the technical scheme essence of the application
On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product
It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing a computer equipment
(Can be personal computer, server, or network equipment etc.)Perform some of each embodiment of the application or embodiment
Method described in part.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.