The content of the invention
In order to solve above mentioned problem, UI interfaces are selected according to shell color after hand-hold electronic equipments the invention provides one kind
Method, it is therefore intended that, when shell is to identical hand-hold electronic equipments after user installation is different, system can be according to rear shell
Color, Automated Design meets the UI interfaces of the rear shell Color Style, makes the inside and outside tone and style of hand-hold electronic equipments unified.
A kind of method that UI interfaces are selected according to shell color after hand-hold electronic equipments, including:
The different resistance of resistance is set after the hand-hold electronic equipments of different colours on the madial wall of shell;
Access circuit is set inside hand-hold electronic equipments, and it has the conducting end for conducting the resistance two ends;
Controller, it receives the ohmically magnitude of voltage, and judges shell after hand-hold electronic equipments according to magnitude of voltage
Color, and it is to match with the color of rear shell to change the UI interfaces of hand-hold electronic equipments.By an access circuit the control
Device and resistance connection, Design of Hardware Architecture are simple, workable, without hand-hold electronic equipments are done with very big change, it is adaptable to
The hand-hold electronic equipments of any model, and the color of shell after hand-hold electronic equipments can be judged according to magnitude of voltage, change UI circle
Face velocity block, makes the solid colour of shell after the UI interfaces and hand-hold electronic equipments, reaches effect attractive in appearance.
Preferably, in the method for selecting UI interfaces according to shell color after hand-hold electronic equipments, the hand-held electricity
Sub- equipment is mobile phone.Mobile phone is as hand-hold electronic equipments, and comparatively, Technical comparing is ripe, and the improvement to its function will not be spent
Take the too long of research and development time, efficiency high, utilization rate is high;And mobile phone application now is universal, market is than larger.
Preferably, in the method for selecting UI interfaces according to shell color after hand-hold electronic equipments, the conducting end
For metallic spring, respectively there is one up and down, the distance between two metallic springs are the distance between resistance two ends, when after shell
When detaining on a handheld electronic device, metallic spring is stuck in resistance two ends, and realization is conducted.Metallic spring is simple in construction, takes
Material is convenient, and cost is low, adds workable in hand-held electric equipment, and the distance between two metallic springs are equal to resistance two ends
The distance between, be in order to when after shell be installed on hand-hold electronic equipments when, two metallic springs can connect to rear shell
Resistance two ends, the distance between two metallic springs are more than or less than the distance between resistance two ends, two metal elastics
Reed and resistance will be from will not form contact, will not conduct, then, the controller does not just receive the resistance
On magnitude of voltage, so that the color of shell after hand-hold electronic equipments can not be judged according to magnitude of voltage, and change hand-hold electronic equipments
UI interfaces be to match with the color of rear shell.
Preferably, described according in the method at shell color selection UI interfaces after hand-hold electronic equipments, the access is electric
Road includes analog-digital converter, and the resistance is grounded by conducting end one end, and the voltage on other end access analog-digital converter
Input port, the analog-digital converter receives the ohmically voltage-mode analog values, and carry out mould as a part for controller
Number conversion.The magnitude of voltage of the resistance is carried out being converted into a data signal using analog-digital converter, because the controller
Only receive identification data signal, rather than magnitude of voltage;In addition, the detection using analog-digital converter to rear shell color, the present invention is also
It is pioneering.
Preferably, in the method for selecting UI interfaces according to shell color after hand-hold electronic equipments, the controller
In also include processor, the digital value that the processor will prestore in the voltage digital value after conversion and hand-hold electronic equipments system
Be compared, using the UI interfaces corresponding to the immediate digital value prestored as the hand-hold electronic equipments after change UI circle
Face.Some range of digital values are stored in hand-hold electronic equipments system in advance, are entered for the digital value after voltage digital value is changed
Row contrast matching, the digital value after conversion is just right by the immediate digital value institute prestored near the range of digital values prestored
The UI interfaces answered as the hand-hold electronic equipments after change UI interfaces.
Preferably, it is described according in the method at shell color selection UI interfaces after hand-hold electronic equipments, it is immediate pre-
The digital value deposited is the digital value of positive negative difference within a predetermined range between the voltage digital value after conversion, with balance resistance
The error of value.It is such to set, the voltage digital value of the shaping number after conversion within a predetermined range can not only be recognized, moreover it is possible to
The voltage digital value after the conversion of the vicinity of digital value within a predetermined range is recognized, will not thus be occurred because of resistance value certain
Variation error, the voltage digital value after conversion is identified, and can not be handled, so as to change corresponding UI
Interface.
Preferably, it is described according in the method at shell color selection UI interfaces after hand-hold electronic equipments, access in circuit
Power module for hand-hold electronic equipments power supply bleeder circuit, it is connected to the resistance by divider resistance, to described
Resistance is powered, wherein being connected between the divider resistance and the resistance.Divider resistance has been mainly partial pressure effect so that described
The voltage of resistance is in normal range (NR).
Preferably, described according in the method at shell color selection UI interfaces after hand-hold electronic equipments, the modulus turns
Parallel operation is using the analog-digital converter on the circuit board of hand-hold electronic equipments;And the processor uses the circuit of hand-hold electronic equipments
Process chip on plate.Use the analog-digital converter and process chip inside hand-hold electronic equipments so that hand-hold electronic equipments without
Need to be practical workable with regard to that can carry out changing UI interfaces by extraneous equipment, improve replacing UI interfaces efficiency.
Preferably, described according in the method at shell color selection UI interfaces after hand-hold electronic equipments, handheld electronic is set
Standby process chip reads voltage digital value from analog-digital converter first after powering, then performs and compares operation, finds correspondence
UI interfaces after, then perform UI interfaces loading operation.Hand-hold electronic equipments start after, do not carry out other operations, just
Process chip reads voltage digital value as selecting at first from analog-digital converter, it is ensured that the very first time is just UI circle after powering
Face changes the style with rear shell color-match into.
Beneficial effects of the present invention:
1st, it is of the present invention according in the method at shell color selection UI interfaces after hand-hold electronic equipments, when user changes
After the rear shell of different colours, start just can be automatically using the system UI interfaces for meeting the rear shell style and color, personalization choosing
Select various;
2nd, the controller of the invention is using the controller on the circuit board of hand-hold electronic equipments, without outer
Boundary, hand-hold electronic equipments can just receive automatically, change correlation values is matched, workable;
3rd, the method according to shell color selection UI interfaces after hand-hold electronic equipments of the invention can also balance electricity
The error of resistance so that this method degree of accuracy is higher.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings, to make those skilled in the art with reference to specification text
Word can be implemented according to this.
Hand-hold electronic equipments may be selected to be mobile phone, PAD, microcomputer etc., and the hand-hold electronic equipments of following examples are
Mobile phone, conducting end is metallic spring.
With reference to the accompanying drawings for the principle in 2, a resistance R1, the electricity of the resistance R1 are set on mobile phone battery cover madial wall
Resistance is in different size, it is therefore an objective to which, with the R1 of different resistance sizes come the style or color of shell after distinguishing, R1 selection is basis
What the precision of ADC samplings was determined.Then, access circuit is set in cell phone apparatus, it, which has, conducts leading for the resistance two ends
Electric end, the conducting end is metallic spring, respectively there is one up and down, the distance between two metallic springs for resistance two ends it
Between distance, when rear shell is buckled on mobile phone, metallic spring is stuck in resistance two ends, conducts access circuit realiration;It is described
Resistance R1 is grounded by following metallic spring, the control source accessed by the metallic spring of top on analog-digital converter
Power module in port, access circuit is the bleeder circuit of cellular phone power supplies, and it is connected to the resistance by divider resistance R2
R1, powers to the resistance R1, R1 and R2 series connection, and then, the analog-digital converter (ADC) receives the voltage on the resistance R1
The analogue value (analog-digital converter uses the analog-digital converter on circuit board of mobile phone), and analog-to-digital conversion is carried out, wherein modulus turns
The magnitude of voltage V at point A (PortA) place of parallel operationPortAComputational methods are as follows:
Meanwhile, the range of choice of voltage must be in ADC range abilities, such as:ADC voltage is 0~1.8V, then
" pull-up power supply " in accompanying drawing 2 must be less than or equal to 1.8V, because access resistance R1 can select (0~infinity), as above
Shown in formula, then the voltage that ADC is measured is exactly (0~1.8V).
Then, analog-digital converter (ADC) inside CPU can be by VPortAIt is converted into digital value NPortA, the processor (adopts
With the process chip on the circuit board of mobile phone) digital value prestored in the digital value and mobile phone after conversion is compared, if
Digital value after conversion is the shaping number in predetermined range of digital values, then corresponding with regard to being determined according to the digital value prestored
UI interfaces are used as the mobile phone UI interfaces after change;If the digital value after conversion is not whole in predetermined range of digital values
Figurate number is the positive negative difference in the vicinity of predetermined digital value, and between predetermined digital value in acceptable error model
In enclosing, then by the immediate digital value prestored as the digital value after conversion, so that what face currently covered determined
The rear shell of color, then regard corresponding UI interfaces as the UI interfaces of the mobile phone after change;Because the resistance value of resistance is impossible
Always steady state value, possible resistance aging, causes resistance value to become big etc. reason, such setting being capable of balance resistance value
Error so that method of the invention is more accurate.
Wherein, after powering, process chip reads voltage digital value and carries out modulus mobile phone from analog-digital converter first
Conversion, then performs and compares operation, find behind corresponding UI interfaces, then performs the loading operation of UI interfaces.In hand-hold electronic equipments
After start, other operations are not carried out, just process chip are read from analog-digital converter voltage digital value as selecting at first
Select, it is ensured that UI interfaces are just changed into the style with rear shell color-match by the very first time after powering.
The alphabetical implication that accompanying drawing 1 occurs in the present invention is explained and see the table below shown in T1:
Table field |
Field meanings |
Value type |
ID |
Shell is identified after unique mark |
Shaping |
NMin |
Minimum value after shell ADC is converted afterwards |
Shaping |
NMax |
Maximum after shell ADC is converted afterwards |
Shaping |
Mean |
ID implications |
Character string |
As shown in following table T2, the present invention, which is limited, gives the mobile phone battery covers of different colours, corresponding N maximum and most
Small value:
ID |
NMin |
NMax |
Mean |
0 |
1000 |
1024 |
Default color |
1 |
0 |
25 |
Red layout |
2 |
26 |
50 |
Green layout |
3 |
51 |
75 |
Orange layout |
… |
|
|
|
… |
|
|
|
M |
Minxxx |
Maxxxx |
Xxxx |
Analog-digital converter (ADC) inside CPU can be by VPortAIt is converted into digital value NPortA, the processor (uses mobile phone
Circuit board on process chip) by the digital value N after conversionPortAWith corresponding to the ID values as shown in table T2 that are prestored in mobile phone
NMin~NMaxRange of digital values in digital value compared one by one, finally the immediate digital value prestored is determined
The rear shell of what color currently covered, then regard corresponding UI interfaces as the UI interfaces of the mobile phone after change.
More than above-described embodiment of the invention, can be with yet another embodiment, except using shell after analog-digital converter detection
Color outside, we can also use multiple GPIO detection modes, i.e., have multiple contacts on rear shell, each contact can be selected
Select and be connected to high level or low level, then if coordinating detection if N number of GPIO, the rear shell species that can be adapted to just has 2
Nth power.
Although embodiment of the present invention is disclosed as above, it is not restricted in specification and embodiment listed
With it can be applied to various suitable the field of the invention completely, can be easily for those skilled in the art
Other modification is realized, therefore under the universal limited without departing substantially from claim and equivalency range, the present invention is not limited
In specific details and shown here as the legend with description.