CN106528460B - Initialization control method, device and the terminal device of terminal device - Google Patents
Initialization control method, device and the terminal device of terminal device Download PDFInfo
- Publication number
- CN106528460B CN106528460B CN201610887574.4A CN201610887574A CN106528460B CN 106528460 B CN106528460 B CN 106528460B CN 201610887574 A CN201610887574 A CN 201610887574A CN 106528460 B CN106528460 B CN 106528460B
- Authority
- CN
- China
- Prior art keywords
- bus
- under
- terminal device
- faulty
- devices
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/10—Program control for peripheral devices
- G06F13/12—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
- G06F13/124—Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor where hardware is a sequential transfer control unit, e.g. microprocessor, peripheral processor or state-machine
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0016—Inter-integrated circuit (I2C)
Abstract
The present invention proposes the initialization control method, device and terminal device of a kind of terminal device, wherein, the initialization control method of the terminal device, the following steps are included: when terminal device initializes multiple devices under I2C bus, if it is determined that there are faulty first devices under I2C bus, then hardware reset is carried out to all devices under I2C bus;Reinitialize the second device under I2C bus, wherein all devices include the first device and the second device.The initialization control method of terminal device of the invention, during reinitializing, the initialization for skipping faulty device, effectively prevent initializing faulty device and the generation that leads to entire I2C abnormal conditions so that other trouble-free devices can be used normally.
Description
Technical field
The present invention relates to terminal device technical field, in particular to a kind of initialization control method of terminal device, device
And terminal device.
Background technique
Currently, including multipath I 2 C (Inter-Integrated Circuit) bus, each road I2C in terminal device
Multiple devices can be mounted in bus, for example, mounting acceleration transducer, gyroscope, Magnetic Sensor and proximity sensor.
Usually during terminal equipment system initialization, for the multipath I 2 C bus in terminal device, terminal device
All devices under traversing per I2C bus all the way, for example, be mounted under the I2C bus of certain road acceleration transducer, gyroscope,
Magnetic Sensor and proximity sensor, then when terminal device meeting system initialization, to the acceleration sensing under the I2C bus of the road Hui Gai
Device, gyroscope, Magnetic Sensor and proximity sensor initialize.Due in the related technology in system initialization,
All devices in I2C bus can be loaded, without tube device whether either with or without failure.That is, in the case where initializing I2C bus
All devices during, if some device failure of I2C bus, and system also loads and accesses the address I2C
There is locking state in device, the then bus that will lead in entire I2C system, that is, and cause entire I2C system to go wrong, other
Device is not available I2C bus yet.
Summary of the invention
The present invention is directed to solve above-mentioned technical problem at least to a certain extent.
For this purpose, the first purpose of this invention is to propose a kind of initialization control method of terminal device, again first
During beginningization, the initialization of faulty device is skipped, effectively prevents initializing faulty device and leading to entire I2C
The generation of abnormal conditions, so that other trouble-free devices can be used normally.
Second object of the present invention is to propose a kind of initialization control device of terminal device.
Third object of the present invention is to propose a kind of terminal device.
Fourth object of the present invention is to propose another terminal device.
In order to achieve the above object, embodiment proposes a kind of initialization controlling party of terminal device according to a first aspect of the present invention
Method, comprising the following steps:
When terminal device initializes multiple devices under I2C bus, if it is determined that there are faulty under the I2C bus
The first device, then under the I2C bus all devices carry out hardware reset;
Reinitialize the second device under the I2C bus, wherein all devices include the first device and second
Device.
The initialization control method of terminal device according to an embodiment of the present invention can also have following additional technical feature:
In one embodiment of the invention, there are faulty first device, packets under the determination I2C bus
It includes:
For each device under the I2C bus, when initializing current device, if it is judged that the current device
Initialization result it is abnormal, then reinitialize the current device;
If it is judged that the initialization result of the current device is still abnormal, then using the current device as described
One device.
In one embodiment of the invention, it is also wrapped in the case where determining the I2C bus there are when faulty first device
It includes:
The relevant information of first device is supplied to user, wherein the relevant information includes name information.
In one embodiment of the invention, before multiple devices that the terminal device initializes under I2C bus, also
Include:
Obtain the initial order information for initializing the device under the I2C bus;
Multiple devices under the terminal device initialization I2C bus, comprising:
According to multiple devices under I2C bus described in the initial order information initializing.
Second aspect of the present invention embodiment provides a kind of initialization control device of terminal device, comprising:
Processing module, when for initializing multiple devices under I2C bus in terminal device, if it is determined that the I2C is total
There are faulty first devices under line, then carry out hardware reset to all devices under the I2C bus;
Module is reinitialized, for reinitializing the second device under the I2C bus, wherein all devices
Part includes the first device and the second device.
The initialization control device of terminal device according to an embodiment of the present invention, can also have following additional technical feature:
In one embodiment of the invention, the processing module, is specifically used for:
For each device under the I2C bus, when initializing current device, if it is judged that the current device
Initialization result it is abnormal, then reinitialize the current device;If it is judged that the initialization result of the current device
Still abnormal, then using the current device as first device.
In one embodiment of the invention, further includes:
Module is provided, for the relevant information of first device to be supplied to user, wherein the relevant information includes
Name information.
In one embodiment of the invention, further includes:
Module is obtained, for obtaining the initial order information for initializing the device under the I2C bus;
The processing module, is specifically used for:
According to multiple devices under I2C bus described in the initial order information initializing.
Third aspect present invention embodiment provides a kind of terminal device, and the terminal including two aspect embodiments of the invention is set
Standby initialization control device.
Fourth aspect present invention embodiment provides a kind of terminal device, includes one or more of the following components: circuit board,
Shell, processor, memory, power circuit, multimedia component, audio component, the interface of input/output (I/O), sensor group
Part, communication component and antenna;Wherein, the circuit board is placed in the space interior that the shell surrounds, the processor and
The memory is arranged on the circuit board;The power circuit, for each circuit or device for the mobile terminal
Power supply;The memory is for storing executable program code;The processor can by what is stored in the reading memory
Program code is executed to run program corresponding with the executable program code, for executing following steps:
When terminal device initializes multiple devices under I2C bus, if it is determined that there are faulty under the I2C bus
The first device, then under the I2C bus all devices carry out hardware reset;
Reinitialize the second device under the I2C bus, wherein all devices include the first device and second
Device.
Initialization control method, device and the terminal device of the terminal device of the embodiment of the present invention, in initialization I2C bus
Under device during, if it is determined that there are faulty devices, then it is multiple to carry out hardware to all devices under I2C bus
Position, and reinitialize under I2C bus there is no the devices of failure.As a result, during reinitializing, event has been skipped
The initialization of the device of barrier, effectively prevent initializing faulty device and the generation that leads to entire I2C abnormal conditions so that
Other trouble-free devices can be used normally.
Additional aspect and advantage of the invention will be set forth in part in the description, and will partially become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect of the invention and advantage will become from the description of the embodiment in conjunction with the following figures
Obviously and it is readily appreciated that, in which:
Fig. 1 is the flow chart according to the initialization control method of the terminal device of one embodiment of the invention;
Fig. 2 is the flow chart according to the initialization control method of the terminal device of another embodiment of the present invention;
Fig. 3 is the structural schematic diagram according to the initialization control device of the terminal device of one embodiment of the invention;
Fig. 4 is the structural schematic diagram according to the initialization control device of the terminal device of another embodiment of the present invention;
Fig. 5 is the structural schematic diagram according to the initialization control device of the terminal device of another embodiment of the invention;
Fig. 6 is the structural schematic diagram according to the terminal device of one embodiment of the invention;
Fig. 7 is the structural block diagram according to the terminal device 700 of one embodiment of the invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the initialization control method, device and terminal of terminal device according to an embodiment of the present invention are described
Equipment.
It should be noted that the terminal device in the embodiment of the present invention can include but is not limited to mobile phone, tablet computer etc..
Fig. 1 is the flow chart according to the initialization control method of the terminal device of one embodiment of the invention.
As shown in Figure 1, the initialization control method of terminal device according to an embodiment of the present invention, comprising:
S101, when terminal device initializes multiple devices under I2C bus, if it is determined that there are events under I2C bus
First device of barrier then carries out hardware reset to all devices under I2C bus.
In one embodiment of the invention, when terminal device initializes multiple devices under I2C bus, for I2C
Each device under bus, when initializing current device, if it is judged that the initialization result of current device is abnormal, then again
Initialize current device.
If it is judged that the initialization result of current device is still abnormal, then using current device as the first device, that is, when
Preceding device is faulty device.
Wherein, initialization device refers to the device for accessing the address I2C, and it is some pre-set to control device execution
Work.
For example, for the device A under I2C bus, it is assumed that setting is initialized in device A in terminal device, controller
It is C that part A, which executes operation B standard results obtained,.Device A is initialized in terminal device, if terminal device obtains
It is C1 that device A initialization, which executes operation B result obtained, can determine that device A initializes result obtained by comparing
It is inconsistent with standard results, it is determined that device A is abnormal, and controls and initialize again to device A, and obtains and initialize again
As a result, if the result is still inconsistent with standard results, it is determined that device A break down, that is, determine that device A is asked
Topic.
S102 reinitializes the second device under I2C bus, wherein all devices include the first device and the second device
Part.
That is, faulty device is not initialized in the device process under initial I2C bus again,
That is, skipping the initialization of faulty device.
For example, it is assumed that there are five devices, respectively device 1, device 2, device 3, device 4 and device under I2C bus
5, when being initialized to the device under I2C bus, if it is determined that device 3 is faulty, then again to the device under I2C bus
When being initialized, only device 1, device 2, device 4 and the device 5 under I2C bus are initialized.
The initialization control method of the terminal device of the embodiment of the present invention, the process of the device in the case where initializing I2C bus
In, if it is determined that there are faulty devices, then carry out hardware reset to all devices under I2C bus, and again initial
Change I2C bus under there is no the devices of failure.As a result, during reinitializing, the initial of faulty device is skipped
Change, effectively prevent initializing faulty device and the generation that leads to entire I2C abnormal conditions so that other trouble-free devices
Part can be used normally.
On the basis of based on the above embodiment, the state of the device in terminal device, Jin Erfang are understood in order to facilitate user
Just user's subsequent maintenance is determining there are when faulty first device, the relevant information of the first device is supplied to user.
Wherein, relevant information can include but is not limited to name information.
That is, determining that there are failures there are user's device when faulty device, is prompted, to facilitate user's root
It goes to repair according to prompt, for example, user can go to replace or repair after sale faulty device according to prompt.
Fig. 2 is the flow chart according to the initialization control method of the terminal device of another embodiment of the present invention.
As shown in Fig. 2, the initialization control method of terminal device according to an embodiment of the present invention, comprising:
S201 obtains the initial order information of the device under initialization I2C bus.
S202, according to multiple devices under initial order information initializing I2C bus.
S203, if it is determined that there are faulty first devices under I2C bus, then to all devices under I2C bus into
Row hardware reset.
In one embodiment of the invention, in terminal device according to more under initial order information initializing I2C bus
When a device, when initializing current device, if it is judged that the initialization result of current device is abnormal, then reinitializes and work as
Preceding device.
If it is judged that the initialization result of current device is still abnormal, then using current device as the first device, that is, when
Preceding device is faulty device.
Wherein, initialization device refers to the device for accessing the address I2C, and it is some pre-set to control device execution
Work.
For example, for the device A under I2C bus, it is assumed that setting is initialized in device A in terminal device, controller
It is C that part A, which executes operation B standard results obtained,.Device A is initialized in terminal device, if terminal device obtains
It is C1 that device A initialization, which executes operation B result obtained, can determine that device A initializes result obtained by comparing
It is inconsistent with standard results, it is determined that device A is abnormal, and controls and initialize again to device A, and obtains and initialize again
As a result, if the result is still inconsistent with standard results, it is determined that device A break down, that is, determine that device A is asked
Topic.
In implementing at of the invention one, the state of the device in terminal device is understood in order to facilitate user, and then conveniently
User's subsequent maintenance is determining there are when faulty first device, the relevant information of the first device is supplied to user.
Wherein, relevant information can include but is not limited to name information.
That is, determining that there are failures there are user's device when faulty device, is prompted, to facilitate user's root
It goes to repair according to prompt, for example, user can go to replace or repair after sale faulty device according to prompt.
S204 reinitializes the second device under I2C bus, wherein all devices include the first device and the second device
Part.
Specifically, the second device under I2C bus can be reinitialized according to initial order information.
For example, it is assumed that there are five devices, respectively device 1, device 2, device 3, device 4 and device under I2C bus
5, and initial order information is device 1, device 2, device 3, device 4 and device 5.It is carried out initially to the device under I2C bus
When change, successively device 1, device 2, device 3, device 4 and device 5 can be initialized according to initial order information, initial
When changing device 3, if it is determined that the initialization result of device 3 is abnormal, then initializes again to device 3, if device 3 is again
The result of initialization is still abnormal, it is determined that and device 3 is faulty, and carries out hardware reset to all devices under I2C bus, and
Device 1, device 2, device 4 and the device 5 under I2C bus can be reinitialized according to initial order information.It is reinitializing
During device 1, device 2, device 4 and device 5, if it is determined that there are failures for device 4, then by all devices under I2C into
Row hardware reset, and reinitialize according to initial order information device 1, device 2 and device 5 under I2C bus.
The initialization control method of the terminal device of the embodiment of the present invention, obtain I2C bus under multiple devices it is initial suitable
Sequence information, and successively initialize the device under I2C bus according to initial order information, if it is determined that there are faulty device,
Then under I2C bus all devices carry out hardware reset, and reinitialize under I2C bus there is no the devices of failure
Part.As a result, during reinitializing, the initialization of faulty device is skipped, effectively prevents initializing faulty
Device and the generation for leading to entire I2C abnormal conditions, so that other trouble-free devices can be used normally.
Corresponding with the initialization control method embodiment of above-mentioned terminal device, the present invention also proposes a kind of terminal device
Initialize control device.
Fig. 3 is the structural schematic diagram according to the initialization control device of the terminal device of one embodiment of the invention.
As shown in figure 3, the initialization control device of terminal device according to an embodiment of the present invention, including 10 He of processing module
Reinitialize module 20, in which:
Processing module 10 is used for when terminal device initializes multiple devices under I2C bus, if it is determined that under I2C bus
There are faulty first devices, then carry out hardware reset to all devices under I2C bus.
Module 20 is reinitialized for reinitializing the second device under I2C bus, wherein all devices include the
One device and the second device.
In one embodiment of the invention, processing module 10 is specifically used for:
For each device under I2C bus, when initializing current device, if it is judged that the initialization of current device
Results abnormity then reinitializes current device;If it is judged that the initialization result of current device is still abnormal, then it will be current
Device is as the first device.
In one embodiment of the invention, the state of the device in terminal device, Jin Erfang are understood in order to facilitate user
Just user's subsequent maintenance, on the basis of shown in Fig. 3, as shown in figure 4, the device can also include providing module 30, in which:
Module 30 is provided, for the relevant information of the first device to be supplied to user.
Wherein, relevant information can include but is not limited to name information.
Specifically, determine that in faulty device, providing module 30 can be by the correlation of the first device in processing module 10
Information is supplied to user.
That is, determining that there are when faulty device, provide module 30 user's device is prompted to deposit in processing module 10
In failure, to facilitate user to go to repair according to prompt, for example, user can be gone to replace or repair after sale according to prompt it is faulty
Device.
In one embodiment of the invention, on the basis of as shown in Figure 3, as shown in figure 5, the device can also include obtaining
Modulus block 40, the acquisition module 40 are used to obtain the initial order information of the device under initialization I2C bus;
Wherein, processing module 10 is specifically used for: according to multiple devices under initial order information initializing I2C bus.
Wherein, it should be noted that the explanation of the aforementioned initialization control method embodiment to terminal device is also fitted
The initialization control device of terminal device for the embodiment, realization principle is similar, and details are not described herein again.
The initialization control device of the terminal device of the embodiment of the present invention, the process of the device in the case where initializing I2C bus
In, if it is determined that there are faulty devices, then carry out hardware reset to all devices under I2C bus, and again initial
Change I2C bus under there is no the devices of failure.As a result, during reinitializing, the initial of faulty device is skipped
Change, effectively prevent initializing faulty device and the generation that leads to entire I2C abnormal conditions so that other trouble-free devices
Part can be used normally.
Corresponding with the initialization control device embodiment of above-mentioned terminal device, the present invention also proposes a kind of terminal device.
Fig. 6 is the structural schematic diagram according to the terminal device of one embodiment of the invention.
As shown in fig. 6, terminal device 600 according to an embodiment of the present invention, the terminal including any embodiment of the present invention are set
Standby initialization control device 610.
The terminal device of the embodiment of the present invention, during initializing the device under I2C bus, if it is determined that there are
The device of failure then carries out hardware reset to all devices under I2C bus, and reinitializes not depositing under I2C bus
In the device of failure.As a result, during reinitializing, the initialization of faulty device is skipped, is effectively prevented initial
Change faulty device and lead to the generation of entire I2C abnormal conditions, so that other trouble-free devices can be used normally.
Fig. 7 is the structural block diagram according to the terminal device 700 of one embodiment of the invention.For example, terminal device 700 can be with
It is mobile phone, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices, body-building equipment is a
Personal digital assistant, smart camera etc..
Referring to Fig. 7, terminal device 700 may include following one or more components: processing component 702, memory 704,
Power supply module 706, multimedia component 708, audio component 710, the interface 712 of input/output (I/O), sensor module 714,
And communication component 716.
The integrated operation of the usual controlling terminal equipment 700 of processing component 702, such as with display, call, data are logical
Letter, camera operation and record operate associated operation.Processing component 702 may include one or more processors 720 to hold
Row instruction, to perform all or part of the steps of the methods described above.In addition, processing component 702 may include one or more moulds
Block, convenient for the interaction between processing component 702 and other assemblies.For example, processing component 702 may include multi-media module, with
Facilitate the interaction between multimedia component 708 and processing component 702.
Memory 704 is configured as storing various types of data to support the operation in equipment 700.These data are shown
Example includes the instruction of any application or method for operating on terminal device 700, contact data, telephone directory number
According to, message, picture, video etc..Memory 704 can by any kind of volatibility or non-volatile memory device or they
Combination realize, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable
Programmable read only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, quick flashing
Memory, disk or CD.
Power supply module 706 provides electric power for the various assemblies of terminal device 700.Power supply module 706 may include power supply pipe
Reason system, one or more power supplys and other with for terminal device 700 generate, manage, and distribute the associated component of electric power.
Multimedia component 708 includes the screen of one output interface of offer between terminal device 700 and user.One
In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen
Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings
Device is to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the side of touch or sliding action
Boundary, but also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component
708 include a front camera and/or rear camera.When equipment 700 is in operation mode, such as screening-mode or video screen module
When formula, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition are taken the photograph
As head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 710 is configured as output and/or input audio signal.For example, audio component 710 includes a Mike
Wind (MIC), when terminal device 700 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone
It is configured as receiving external audio signal.The received audio signal can be further stored in memory 704 or via logical
Believe that component 716 is sent.In some embodiments, audio component 710 further includes a loudspeaker, is used for output audio signal.
I/O interface 712 provides interface between processing component 702 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock
Determine button.
Sensor module 714 includes one or more sensors, for providing the state of various aspects for terminal device 700
Assessment.For example, sensor module 714 can detecte the state that opens/closes of terminal device 700, the relative positioning of component, example
Such as the display and keypad that component is terminal device 700, sensor module 714 can also detect terminal device 700 or terminal
The position change of 700 1 components of equipment, the existence or non-existence that user contacts with terminal device 700,700 orientation of terminal device
Or the temperature change of acceleration/deceleration and terminal device 700.Sensor module 714 may include proximity sensor, be configured to
It detects the presence of nearby objects without any physical contact.Sensor module 714 can also include optical sensor, such as
CMOS or ccd image sensor, for being used in imaging applications.In some embodiments, which can be with
Including acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 716 is configured to facilitate the communication of wired or wireless way between terminal device 700 and other equipment.
Terminal device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.Show at one
In example property embodiment, communication component 716 receives broadcast singal or broadcast from external broadcasting management system via broadcast channel
Relevant information.In one exemplary embodiment, communication component 716 further includes near-field communication (NFC) module, to promote short distance logical
Letter.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) can be based in NFC module
Technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, terminal device 700 can be by one or more application specific integrated circuit (ASIC), number
Word signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 704 of instruction, above-metioned instruction can be executed by the processor 720 of terminal device 700 to complete the above method.Example
Such as, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and
Optical data storage devices etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.
Claims (8)
1. a kind of initialization control method of terminal device, which comprises the following steps:
When terminal device initializes multiple devices under I2C bus, if it is determined that there are faulty the under the I2C bus
One device then carries out hardware reset to all devices under the I2C bus;
Reinitialize the second device under the I2C bus, wherein all devices include the first device and the second device
Part;
There are faulty first devices under the determination I2C bus, comprising:
For each device under the I2C bus, when initializing current device, if it is judged that the current device is first
Beginningization results abnormity then reinitializes the current device;
If it is judged that the initialization result of the current device is still abnormal, then using the current device as first device
Part.
2. the method as described in claim 1, which is characterized in that in the case where determining the I2C bus, there are faulty first devices
When part, further includes:
The relevant information of first device is supplied to user, wherein the relevant information includes name information.
3. the method as described in claim 1, which is characterized in that initialize multiple devices under I2C bus in the terminal device
Before part, further includes:
Obtain the initial order information for initializing the device under the I2C bus;
Multiple devices under the terminal device initialization I2C bus, comprising:
According to multiple devices under I2C bus described in the initial order information initializing.
4. a kind of initialization control device of terminal device characterized by comprising
Processing module, when for initializing multiple devices under I2C bus in terminal device, if it is determined that under the I2C bus
There are faulty first devices, then carry out hardware reset to all devices under the I2C bus;
Module is reinitialized, for reinitializing the second device under the I2C bus, wherein all device packets
Include the first device and the second device;
The processing module, is specifically used for:
For each device under the I2C bus, when initializing current device, if it is judged that the current device is first
Beginningization results abnormity then reinitializes the current device;If it is judged that the initialization result of the current device is still
It is abnormal, then using the current device as first device.
5. device as claimed in claim 4, which is characterized in that further include:
Module is provided, for the relevant information of first device to be supplied to user, wherein the relevant information includes title
Information.
6. device as claimed in claim 4, which is characterized in that further include:
Module is obtained, for obtaining the initial order information for initializing the device under the I2C bus;
The processing module, is specifically used for:
According to multiple devices under I2C bus described in the initial order information initializing.
7. a kind of terminal device characterized by comprising such as the initialization of the described in any item terminal devices of claim 4-6
Control device.
8. a kind of terminal device, which is characterized in that include one or more of the following components: circuit board, shell, processor, storage
Device, power circuit, multimedia component, audio component, the interface of input/output (I/O), sensor module, communication component and
Antenna;Wherein, the circuit board is placed in the space interior that the shell surrounds, and the processor and memory setting exist
On the circuit board;The power circuit, for each circuit or the device power supply for the terminal device;The memory is used
In storage executable program code;The processor is run by reading the executable program code stored in the memory
Program corresponding with the executable program code, for executing following steps:
When terminal device initializes multiple devices under I2C bus, if it is determined that there are faulty the under the I2C bus
One device then carries out hardware reset to all devices under the I2C bus;
Reinitialize the second device under the I2C bus, wherein all devices include the first device and the second device
Part;
There are faulty first devices under the determination I2C bus, comprising:
For each device under the I2C bus, when initializing current device, if it is judged that the current device is first
Beginningization results abnormity then reinitializes the current device;
If it is judged that the initialization result of the current device is still abnormal, then using the current device as first device
Part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610887574.4A CN106528460B (en) | 2016-10-11 | 2016-10-11 | Initialization control method, device and the terminal device of terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610887574.4A CN106528460B (en) | 2016-10-11 | 2016-10-11 | Initialization control method, device and the terminal device of terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106528460A CN106528460A (en) | 2017-03-22 |
CN106528460B true CN106528460B (en) | 2019-07-19 |
Family
ID=58331281
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610887574.4A Active CN106528460B (en) | 2016-10-11 | 2016-10-11 | Initialization control method, device and the terminal device of terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528460B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567227A (en) * | 2003-06-20 | 2005-01-19 | 英业达股份有限公司 | Method and system for detecting temperature of computer module capable of solving breaking down |
CN1991783A (en) * | 2005-12-29 | 2007-07-04 | 国际商业机器公司 | 12c bus monitor and method for detecting and correcting hanged 12c bus |
CN101344874A (en) * | 2007-07-11 | 2009-01-14 | 深圳创维-Rgb电子有限公司 | Method and device for controlling I2C device |
CN102073613A (en) * | 2010-12-15 | 2011-05-25 | 创新科存储技术有限公司 | Device and method for removing deadlock of I<2>C (Inter-Integrated Circuit) bus |
CN203849731U (en) * | 2014-04-25 | 2014-09-24 | 杭州海康威视数字技术股份有限公司 | Data processing equipment implemented based on I2C bus |
CN105718406A (en) * | 2014-12-02 | 2016-06-29 | 魏廉 | Smart home control system based on improved I<2>C (Inter-Integrated Circuit) bus |
-
2016
- 2016-10-11 CN CN201610887574.4A patent/CN106528460B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567227A (en) * | 2003-06-20 | 2005-01-19 | 英业达股份有限公司 | Method and system for detecting temperature of computer module capable of solving breaking down |
CN1991783A (en) * | 2005-12-29 | 2007-07-04 | 国际商业机器公司 | 12c bus monitor and method for detecting and correcting hanged 12c bus |
CN101344874A (en) * | 2007-07-11 | 2009-01-14 | 深圳创维-Rgb电子有限公司 | Method and device for controlling I2C device |
CN102073613A (en) * | 2010-12-15 | 2011-05-25 | 创新科存储技术有限公司 | Device and method for removing deadlock of I<2>C (Inter-Integrated Circuit) bus |
CN203849731U (en) * | 2014-04-25 | 2014-09-24 | 杭州海康威视数字技术股份有限公司 | Data processing equipment implemented based on I2C bus |
CN105718406A (en) * | 2014-12-02 | 2016-06-29 | 魏廉 | Smart home control system based on improved I<2>C (Inter-Integrated Circuit) bus |
Also Published As
Publication number | Publication date |
---|---|
CN106528460A (en) | 2017-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106469054B (en) | Notification message control method and device and terminal | |
JP6298925B2 (en) | State switching method, apparatus, program, and recording medium | |
US11545188B2 (en) | Video processing method, video playing method, devices and storage medium | |
CN104391711B (en) | A kind of method and device that screen protection is set | |
EP3575917B1 (en) | Collecting fingerprints | |
CN105786507B (en) | Display interface switching method and device | |
JP6713049B2 (en) | Alarm control method and alarm control device | |
CN105117033A (en) | Connection method and device of external equipment | |
CN108121631B (en) | Screen abnormal state reminding method and device | |
CN109120841A (en) | Camera control method, device, mobile terminal and storage medium | |
CN104376239A (en) | Terminal unlocking method and device | |
US20170177530A1 (en) | Method and apparatus for switching state | |
CN104243829A (en) | Self-shooting method and self-shooting device | |
CN105224171A (en) | icon display method, device and terminal | |
JP6349040B2 (en) | Remind method and apparatus, program and recording medium | |
WO2019095186A1 (en) | Cell access method and cell access apparatus | |
CN105677215A (en) | Application control method and apparatus | |
CN105426065A (en) | Browsing position marking method and device | |
CN106528460B (en) | Initialization control method, device and the terminal device of terminal device | |
CN106897172A (en) | System method to set up, device and terminal | |
CN106657573B (en) | Reminding method and device | |
CN105786350B (en) | Choose reminding method, device and the terminal of image | |
CN111383364A (en) | Method, device and equipment for testing automobile data recorder and storage medium | |
CN110133690A (en) | Localization method and GPS switching device based on GPS | |
CN108664317A (en) | Application switching method, device, mobile terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: Guangdong OPPO Mobile Communications Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |