CN106528460A - Initializing control method and device for terminal device, and terminal device - Google Patents

Initializing control method and device for terminal device, and terminal device Download PDF

Info

Publication number
CN106528460A
CN106528460A CN201610887574.4A CN201610887574A CN106528460A CN 106528460 A CN106528460 A CN 106528460A CN 201610887574 A CN201610887574 A CN 201610887574A CN 106528460 A CN106528460 A CN 106528460A
Authority
CN
China
Prior art keywords
buses
under
terminal device
initialization
terminal
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.)
Granted
Application number
CN201610887574.4A
Other languages
Chinese (zh)
Other versions
CN106528460B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610887574.4A priority Critical patent/CN106528460B/en
Publication of CN106528460A publication Critical patent/CN106528460A/en
Application granted granted Critical
Publication of CN106528460B publication Critical patent/CN106528460B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/12Program control for peripheral devices using hardware independent of the central processor, e.g. channel or peripheral processor
    • G06F13/124Program 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0016Inter-integrated circuit (I2C)

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Retry When Errors Occur (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides an initializing control method and device for a terminal device and the terminal device. The initializing control method for the terminal device includes the following steps: performing hardware reset on all the devices in an I2C (Inter-Integrated Circuit) bus if it is determined that a first device having a failure exists in the I2C bus when the terminal device initializes a plurality of devices in the I2C bus; and reinitializing a second device in the I2C bus, wherein all the devices include the first device and the second device. The initializing control method for the terminal device can jump initialization of a device having a failure, can effectively prevent the abnormal condition of the whole I2C due to initialization of the device having the failure, and can allow other devices without failures to work normally.

Description

The initialization control method of terminal device, device and terminal device
Technical field
The present invention relates to terminal device technical field, more particularly to a kind of initialization control method of terminal device, device And terminal device.
Background technology
At present, terminal device includes multipath I 2 C (Inter-Integrated Circuit) bus, each road I2C Multiple devices can be mounted in bus, for example, mounting acceleration transducer, gyroscope, Magnetic Sensor and proximity transducer.
Generally during terminal equipment system initialization, for the multipath I 2 C bus in terminal device, terminal device All devices under traveling through per I2C buses all the way, for example, be mounted with the I2C buses of certain road acceleration transducer, gyroscope, Magnetic Sensor and proximity transducer, then during terminal device meeting system initialization, to the acceleration sensing under the I2C buses of Hui Gai roads Device, gyroscope, Magnetic Sensor and proximity transducer carry out initialization operation.Due in correlation technique in system initialization, The all devices in I2C buses can be loaded, but regardless of whether device is either with or without failure.That is, under initialization I2C buses All devices during, if certain device failure of I2C buses, and system is also loaded and accesses the I2C addresses Device, then will cause the bus in whole I2C systems locking state occur, i.e. to cause whole I2C systems to go wrong, other Device cannot also use I2C buses.
The content of the invention
It is contemplated that at least solving above-mentioned technical problem to a certain extent.
For this purpose, first purpose of the present invention is to propose a kind of initialization control method of terminal device, again just The initialization of faulty device during beginningization, is skipped, the faulty device of initialization is effectively prevent and is caused whole I2C The generation of abnormal conditions so that other trouble-free devices normally can be used.
Second object of the present invention is the initialization control device for proposing a kind 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 kind of terminal device.
It is that up to above-mentioned purpose, embodiment proposes a kind of initialization controlling party of terminal device according to a first aspect of the present invention Method, comprises the following steps:
When terminal device initializes the multiple devices under I2C buses, if it is determined that exist under the I2C buses faulty The first device, then hardware reset is carried out to all devices under the I2C buses;
The second device under the I2C buses is reinitialized, wherein, all devices include the first device and second Device.
The initialization control method of terminal device according to embodiments of the present invention, can also have following additional technical feature:
In one embodiment of the invention, there is faulty first device under the determination I2C buses, wrap Include:
For each device under the I2C buses, when current device is initialized, if it is judged that the current device Initialization result exception, 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, when it is determined that there is faulty first device under the I2C buses, also wrap Include:
The relevant information of first device is supplied to into user, wherein, the relevant information includes name information.
In one embodiment of the invention, before multiple devices that the terminal device initializes under I2C buses, also Including:
Obtain the initial order information of the device under the initialization I2C buses;
Multiple devices under the terminal device initialization I2C buses, including:
According to the multiple devices under I2C buses described in the initial order information initializing.
Second aspect present invention embodiment provides a kind of initialization control device of terminal device, including:
Processing module, for initializing in terminal device during the multiple devices under I2C buses, if it is determined that the I2C is total There is faulty first device under line, then hardware reset is carried out to all devices under the I2C buses;
Module is reinitialized, for reinitializing the second device under the I2C buses, wherein, all devices Part includes the first device and the second device.
The initialization control device of terminal device according to embodiments of the present invention, can also have following additional technical feature:
In one embodiment of the invention, the processing module, specifically for:
For each device under the I2C buses, when current device is initialized, if it is judged that the current device Initialization result exception, then reinitialize the current device;If it is judged that the initialization result of the current device Still it is abnormal, then using the current device as first device.
In one embodiment of the invention, also include:
Module is provided, for the relevant information of first device is supplied to user, wherein, the relevant information includes Name information.
In one embodiment of the invention, also include:
Acquisition module, for obtaining the initial order information of the device under the initialization I2C buses;
The processing module, specifically for:
According to the multiple devices under I2C buses described in the initial order information initializing.
Third aspect present invention embodiment provides a kind of terminal device, sets including the terminal of two aspects embodiment of the invention Standby initialization control device.
Fourth aspect present invention embodiment provides a kind of terminal device, including following one or more assemblies:Circuit board, Housing, processor, memory, power circuit, multimedia groupware, audio-frequency assembly, the interface of input/output (I/O), sensor group Part, communication component and antenna;Wherein, the circuit board is placed in the interior volume that the housing is surrounded, 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 used for storing executable program code;The processor can by what is stored in the reading memory Configuration processor code running program corresponding with the executable program code, for performing following steps:
When terminal device initializes the multiple devices under I2C buses, if it is determined that exist under the I2C buses faulty The first device, then hardware reset is carried out to all devices under the I2C buses;
The second device under the I2C buses is reinitialized, wherein, all devices include the first device and second Device.
The initialization control method of the terminal device of the embodiment of the present invention, device and terminal device, in initialization I2C buses Under device during, if it is determined that there is faulty device, then to I2C buses under all devices to carry out hardware multiple Position, and reinitialize the device that there is no failure under I2C buses.Thus, during reinitializing, event has been skipped The initialization of the device of barrier, effectively prevent the faulty device of initialization and causes the generation of whole I2C abnormal conditions so that Other trouble-free devices normally can be used.
The additional aspect and advantage of the present invention will be set forth in part in the description, and partly will become from the following description Obtain substantially, or recognized by the practice of the present invention.
Description of the drawings
The above-mentioned and/or additional aspect and advantage of the present invention will become from the description with reference to accompanying drawings below to embodiment It is substantially and easy to understand, wherein:
Fig. 1 is the flow chart of the initialization control method of the terminal device according to one embodiment of the invention;
Fig. 2 is the flow chart of the initialization control method of the terminal device according to another embodiment of the present invention;
Fig. 3 is the structural representation of the initialization control device of the terminal device according to one embodiment of the invention;
Fig. 4 is the structural representation of the initialization control device of the terminal device according to another embodiment of the present invention;
Fig. 5 is the structural representation of the initialization control device of the terminal device according to another embodiment of the invention;
Fig. 6 is the structural representation of the terminal device according to one embodiment of the invention;
Fig. 7 is the structured flowchart of the terminal device 700 according to one embodiment of the invention.
Specific embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings initialization control method, device and the terminal of terminal device according to embodiments 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, panel computer etc..
Fig. 1 is the flow chart of the initialization control method of the terminal device according to one embodiment of the invention.
As shown in figure 1, the initialization control method of terminal device according to embodiments of the present invention, including:
S101, when terminal device initializes the multiple devices under I2C buses, if it is determined that there are event under I2C buses Barrier the first device, then to I2C buses under all devices carry out hardware reset.
In one embodiment of the invention, when terminal device initializes the multiple devices under I2C buses, for I2C Each device under bus, when current device is initialized, if it is judged that the initialization result exception of current device, then again Initialization current device.
If it is judged that the initialization result of current device is still abnormal, then using current device as the first device, i.e. when Front device is faulty device.
Wherein, initialize device and refer to the device for accessing the I2C addresses, and control the device and perform what some pre-set Work.
For example, for the device A under I2C buses, it is assumed that be arranged on device A initialization, controller in terminal device It is C that part A performs the standard results for operating B to be obtained.Device A is initialized in terminal device, if terminal device is obtained It is C1 that device A initialization performs the result for operating B to be obtained, and can determine that device A initializes obtained result by comparing It is inconsistent with standard results, it is determined that device A exceptions, and control to initialize device A again, and acquisition is initialized again Result, if the result is still inconsistent with standard results, it is determined that device A breaks down, i.e. determine that asking occurs in device A Topic.
S102, reinitializes the second device under I2C buses, and wherein, all devices include the first device and the second device Part.
That is, in device process under initial I2C buses again, faulty device is not initialized, That is, skip the initialization of faulty device.
For example, it is assumed that under I2C buses, have five devices, respectively device 1, device 2, device 3, device 4 and device 5, when the device under to I2C buses is initialized, if it is determined that device 3 is faulty, then again to the device under I2C buses When being initialized, only the device 1 under I2C buses, device 2, device 4 and device 5 are initialized.
The initialization control method of the terminal device of the embodiment of the present invention, the process of the device under initialization I2C buses In, if it is determined that there is faulty device, then to I2C buses under all devices carry out hardware reset, it is and again initial Change the device that there is no failure under I2C buses.Thus, during reinitializing, skip the initial of faulty device Change, effectively prevent the faulty device of initialization and cause the generation of whole I2C abnormal conditions so that other trouble-free devices Part normally can be used.
On the basis of based on above-described embodiment, user understands the state of the device in terminal device, Jin Erfang for convenience Just the relevant information of the first device, when it is determined that there is faulty first device, is supplied to user by user's subsequent maintenance.
Wherein, relevant information can include but is not limited to name information.
That is, when it is determined that there is faulty device, the user device is pointed out to there is failure, to facilitate user's root Maintenance is gone according to prompting, for example, user can go to change after sale or keep in repair faulty device according to prompting.
Fig. 2 is the flow chart of the initialization control method of the terminal device according to another embodiment of the present invention.
As shown in Fig. 2 the initialization control method of terminal device according to embodiments of the present invention, including:
S201, obtains the initial order information of the device under initialization I2C buses.
S202, according to the multiple devices under initial order information initializing I2C buses.
S203, if it is determined that there is faulty first device under I2C buses, then to I2C buses under all devices enter Row hardware reset.
In one embodiment of the invention, it is many in the case where terminal device is according to initial order information initializing I2C buses During individual device, when current device is initialized, if it is judged that the initialization result exception of current device, then reinitialize and work as Front device.
If it is judged that the initialization result of current device is still abnormal, then using current device as the first device, i.e. when Front device is faulty device.
Wherein, initialize device and refer to the device for accessing the I2C addresses, and control the device and perform what some pre-set Work.
For example, for the device A under I2C buses, it is assumed that be arranged on device A initialization, controller in terminal device It is C that part A performs the standard results for operating B to be obtained.Device A is initialized in terminal device, if terminal device is obtained It is C1 that device A initialization performs the result for operating B to be obtained, and can determine that device A initializes obtained result by comparing It is inconsistent with standard results, it is determined that device A exceptions, and control to initialize device A again, and acquisition is initialized again Result, if the result is still inconsistent with standard results, it is determined that device A breaks down, i.e. determine that asking occurs in device A Topic.
In implementing at one of the present invention, user understands the state of the device in terminal device for convenience, and then convenient The relevant information of the first device, when it is determined that there is faulty first device, is supplied to user by user's subsequent maintenance.
Wherein, relevant information can include but is not limited to name information.
That is, when it is determined that there is faulty device, the user device is pointed out to there is failure, to facilitate user's root Maintenance is gone according to prompting, for example, user can go to change after sale or keep in repair faulty device according to prompting.
S204, reinitializes the second device under I2C buses, and wherein, all devices include the first device and the second device Part.
Specifically, the second device under I2C buses can be reinitialized according to initial order information.
For example, it is assumed that under I2C buses, have five devices, respectively device 1, device 2, device 3, device 4 and device 5, and initial order information is device 1, device 2, device 3, device 4 and device 5.Device under to I2C buses is carried out initially During 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 exception of device 3, then again device 3 is initialized, if device 3 is again Initialized result is still abnormal, it is determined that device 3 is faulty, and to I2C buses under all devices carry out hardware reset, and Device 1 under I2C buses, device 2, device 4 and device 5 can be reinitialized according to initial order information.Reinitializing During device 1, device 2, device 4 and device 5, if it is determined that device 4 has failure, then all devices under I2C are entered Row hardware reset, and the device 1 under I2C buses, device 2 and device 5 is reinitialized according to initial order information.
The initialization control method of the terminal device of the embodiment of the present invention, under acquisition I2C buses, multiple devices is initial suitable Sequence information, and the device under I2C buses is initialized successively according to initial order information, if it is determined that there is faulty device, Then to I2C buses under all devices carry out hardware reset, and reinitialize the device that there is no failure under I2C buses Part.Thus, the initialization of faulty device during reinitializing, is skipped, initialization is effectively prevent faulty Device and cause the generation of whole I2C abnormal conditions so that other trouble-free devices normally can be used.
Corresponding with the initialization control method embodiment of above-mentioned terminal device, the present invention also proposes a kind of terminal device Initialization control device.
Fig. 3 is the structural representation of the initialization control device of the terminal device according to one embodiment of the invention.
As shown in figure 3, the initialization control device of terminal device according to embodiments of the present invention, including 10 He of processing module Module 20 is reinitialized, wherein:
Processing module 10 for terminal device initialize I2C buses under multiple devices when, if it is determined that under I2C buses There is faulty first device, then to I2C buses under all devices carry out hardware reset.
Module 20 is reinitialized for the second device for reinitializing under I2C buses, wherein, all devices include the One device and the second device.
In one embodiment of the invention, processing module 10 specifically for:
For each device under I2C buses, when current device is initialized, if it is judged that the initialization of current device Results abnormity, then reinitialize current device;If it is judged that the initialization result of current device is still abnormal, then will be current Device is used as the first device.
In one embodiment of the invention, user understands the state of the device in terminal device, Jin Erfang for convenience 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, wherein:
Module 30 is provided, for the relevant information of the first device is supplied to user.
Wherein, relevant information can include but is not limited to name information.
Specifically, when processing module 10 is determined in faulty device, there is provided module 30 can be by the correlation of the first device Information is supplied to user.
That is, when processing module 10 determines and there is faulty device, there is provided the prompting user's device of module 30 is deposited In failure, to facilitate user to go maintenance according to prompting, for example, user can go to change after sale or keep in repair faulty according to prompting 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 Delivery block 40, the acquisition module 40 are used for obtaining the initial order information of the device under initialization I2C buses;
Wherein, processing module 10 specifically for:According to the multiple devices under initial order information initializing I2C buses.
, wherein it is desired to illustrate, the explanation of the aforementioned initialization control method embodiment to terminal device is also fitted For the initialization control device of the terminal device of the embodiment, which realizes that principle is similar to, and here is omitted.
The initialization control device of the terminal device of the embodiment of the present invention, the process of the device under initialization I2C buses In, if it is determined that there is faulty device, then to I2C buses under all devices carry out hardware reset, it is and again initial Change the device that there is no failure under I2C buses.Thus, during reinitializing, skip the initial of faulty device Change, effectively prevent the faulty device of initialization and cause the generation of whole I2C abnormal conditions so that other trouble-free devices Part normally can be used.
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 representation of the terminal device according to one embodiment of the invention.
As shown in fig. 6, terminal device 600 according to embodiments of the present invention, sets including the terminal of any embodiment of the present invention Standby initialization control device 610.
The terminal device of the embodiment of the present invention, during the device under initialization I2C buses, if it is determined that there are The device of failure, then to I2C buses under all devices carry out hardware reset, and reinitialize not depositing under I2C buses In the device of failure.Thus, the initialization of faulty device during reinitializing, is skipped, is effectively prevent initial Change faulty device and cause the generation of whole I2C abnormal conditions so that other trouble-free devices normally can be used.
Fig. 7 is the structured flowchart of the terminal device 700 according to one embodiment of the invention.For example, terminal device 700 can be with It is mobile phone, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment are individual Personal digital assistant, smart camera etc..
With reference to Fig. 7, terminal device 700 can include following one or more assemblies:Process assembly 702, memory 704, Power supply module 706, multimedia groupware 708, audio-frequency assembly 710, the interface 712 of input/output (I/O), sensor cluster 714, And communication component 716.
The integrated operation of 702 usual control terminal equipment 700 of process assembly, such as with display, call, data are led to Letter, the associated operation of camera operation and record operation.Process assembly 702 can include one or more processors 720 to hold Row instruction, to complete all or part of step of above-mentioned method.Additionally, process assembly 702 can include one or more moulds Block, the interaction being easy between process assembly 702 and other assemblies.For example, process assembly 702 can include multi-media module, with Facilitate the interaction between multimedia groupware 708 and process assembly 702.
Memory 704 is configured to store various types of data to support the operation in equipment 700.These data are shown Example includes the instruction of any application program 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 that such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM) are erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read-only storage (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 can include power supply pipe Reason system, one or more power supplys, and other generate, manage and distribute the component that electric power is associated with for terminal device 700.
Multimedia groupware 708 is included in the screen of one output interface of offer between terminal device 700 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive the input signal from user.Touch panel includes one or more touch sensings Device is with the gesture on sensing touch, slip and touch panel.Touch sensor can not only sensing touch or sliding action side Boundary, but also detect the duration related to touch or slide and pressure.In certain embodiments, multimedia groupware 708 include a front-facing camera and/or post-positioned pick-up head.When equipment 700 is in operator scheme, such as screening-mode or video screen module During formula, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and rearmounted take the photograph As head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio-frequency assembly 710 is configured to output and/or input audio signal.For example, audio-frequency assembly 710 includes a Mike Wind (MIC), when terminal device 700 is in operator scheme, such as call model, logging mode and speech recognition mode, microphone It is configured to receive external audio signal.The audio signal for being received can be further stored in memory 704 or via logical Letter component 716 sends.In certain embodiments, audio-frequency assembly 710 also includes a loudspeaker, for exports audio signal.
, for providing interface between process assembly 702 and peripheral interface module, above-mentioned peripheral interface module can for I/O interfaces 712 To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor cluster 714 includes one or more sensors, for providing the state of various aspects for terminal device 700 Assessment.For example, sensor cluster 714 can detect the opening/closed mode of terminal device 700, the relative positioning of component, example If component is the display and keypad of terminal device 700, sensor cluster 714 can be with detection terminal equipment 700 or terminal The position of 700 1 components of equipment changes, and user is presence or absence of with what terminal device 700 was contacted, 700 orientation of terminal device Or the temperature change of acceleration/deceleration and terminal device 700.Sensor cluster 714 can include proximity transducer, be configured to The presence of object near detecting when not having any physical contact.Sensor cluster 714 can also include optical sensor, such as CMOS or ccd image sensor, for used in imaging applications.In certain embodiments, the sensor cluster 714 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 combinations thereof.Show at one In example property embodiment, communication component 716 receives broadcast singal or the broadcast from external broadcasting management system via broadcast channel Relevant information.In one exemplary embodiment, communication component 716 also includes near-field communication (NFC) module, to promote short distance to lead to Letter.For example, RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) can be based in NFC module Technology, bluetooth (BT) technology and other technologies are realizing.
In the exemplary embodiment, terminal device 700 can be by one or more application specific integrated circuits (ASIC), number Word signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for performing said method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided Such as include the memory 704 of instruction, above-mentioned instruction can be performed to complete said method by the processor 720 of terminal device 700.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 Example ", or the description of " some examples " etc. mean specific features with reference to the embodiment or example description, structure, material or spy Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be with office Combined in one or more embodiments or example in an appropriate manner.Additionally, in the case of not conflicting, the skill of this area The feature of the different embodiments or example described in this specification and different embodiments or example can be tied by art personnel Close and combine.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or implying relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or Implicitly include at least one this feature.In describing the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise expressly limited specifically.
In flow chart or here any process described otherwise above or method description are construed as, expression includes It is one or more for realizing specific logical function or process the step of the module of code of executable instruction, fragment or portion Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by the suitable of shown or discussion Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or here logic described otherwise above and/or step, for example, are considered use in flow charts In the order list of the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (as computer based system, the system including processor or other can hold from instruction The system of row system, device or equipment instruction fetch execute instruction) use, or with reference to these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass The dress that defeated program is used for instruction execution system, device or equipment or with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:With the electricity that one or more connect up Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (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 thereon or other are suitable Medium, because for example by carrying out optical scanner to paper or other media edlin, interpretation can then be entered or if necessary with which His suitable method is processed to electronically obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realizing.For example, if realized with hardware, and in another embodiment, can be with well known in the art Any one of row technology or their combination are realizing:With for realizing the logic gates of logic function to data-signal Discrete logic, the special IC with suitable combinational logic gate circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried Suddenly the hardware that can be by program to instruct correlation is completed, and described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, each functional unit in each embodiment of the invention can be integrated in a processing module, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated mould Block both can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit using in the form of software function module realize and as independent production marketing or use when, it is also possible to be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having shown that above and retouching Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

1. a kind of initialization control method of terminal device, it is characterised in that comprise the following steps:
When terminal device initializes the multiple devices under I2C buses, if it is determined that have faulty the under the I2C buses One device, then carry out hardware reset to all devices under the I2C buses;
The second device under the I2C buses is reinitialized, wherein, all devices include the first device and the second device Part.
2. the method for claim 1, it is characterised in that have faulty first under the determination I2C buses Device, including:
For each device under the I2C buses, when current device is initialized, if it is judged that the current device is first Beginningization results abnormity, 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 first device Part.
3. the method for claim 1, it is characterised in that it is determined that there is faulty first device under the I2C buses During part, also include:
The relevant information of first device is supplied to into user, wherein, the relevant information includes name information.
4. the method for claim 1, it is characterised in that initialize the multiple devices under I2C buses in the terminal device Before part, also include:
Obtain the initial order information of the device under the initialization I2C buses;
Multiple devices under the terminal device initialization I2C buses, including:
According to the multiple devices under I2C buses described in the initial order information initializing.
5. the initialization control device of a kind of terminal device, it is characterised in that include:
Processing module, for initializing in terminal device during the multiple devices under I2C buses, if it is determined that under the I2C buses There is faulty first device, then hardware reset is carried out to all devices under the I2C buses;
Module is reinitialized, for reinitializing the second device under the I2C buses, wherein, all device bags Include the first device and the second device.
6. device as claimed in claim 5, it is characterised in that the processing module, specifically for:
For each device under the I2C buses, when current device is initialized, if it is judged that the current device is first Beginningization results abnormity, then reinitialize 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.
7. device as claimed in claim 5, it is characterised in that also include:
Module is provided, for the relevant information of first device is supplied to user, wherein, the relevant information includes title Information.
8. device as claimed in claim 5, it is characterised in that also include:
Acquisition module, for obtaining the initial order information of the device under the initialization I2C buses;
The processing module, specifically for:
According to the multiple devices under I2C buses described in the initial order information initializing.
9. a kind of terminal device, it is characterised in that include:The initialization of the terminal device as described in any one of claim 5-8 Control device.
10. a kind of terminal device, it is characterised in that including following one or more assemblies:Circuit board, housing, processor, storage Device, power circuit, multimedia groupware, audio-frequency assembly, the interface of input/output (I/O), sensor cluster, communication component and Antenna;Wherein, the circuit board is placed in the interior volume that the housing is surrounded, and the processor and the memory are arranged on On the circuit board;The power circuit, powers for each circuit or device for the mobile terminal;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 performing following steps:
When terminal device initializes the multiple devices under I2C buses, if it is determined that have faulty the under the I2C buses One device, then carry out hardware reset to all devices under the I2C buses;
The second device under the I2C buses is reinitialized, wherein, all devices include the first device and the second device Part.
CN201610887574.4A 2016-10-11 2016-10-11 Initialization control method, device and the terminal device of terminal device Active CN106528460B (en)

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 true CN106528460A (en) 2017-03-22
CN106528460B 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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
CN106528460B (en) 2019-07-19

Similar Documents

Publication Publication Date Title
CN104239094B (en) Control method, device and the terminal device of background application
CN105117033B (en) The connection method of external equipment and device
CN104484200A (en) Method and device for updating firmware
CN105511686A (en) Incoming call processing method and device and electronic terminal equipment
CN104020924B (en) Label creation method, device and terminal
CN104537380A (en) Clustering method and device
CN106598704A (en) Application program recovery method and apparatus
CN105160898A (en) Vehicle speed limiting method and vehicle speed limiting device
CN106775248A (en) Push the methods of exhibiting and device of content
CN105554255A (en) Operation control method and device for terminal equipment
CN105472157A (en) Method and device for monitoring terminal motion state
CN104951184A (en) Application program downloading method and device
CN104615931A (en) Prompt dialog box display control method and device
CN106503167A (en) The display methods of subject content, device and terminal
CN105260221A (en) Application installation method and device
CN105635809A (en) Image processing method and device and terminal
CN105677215A (en) Application control method and apparatus
CN107491238A (en) The display methods and device of pushed information
CN104837020A (en) Video playing method and device
CN108829532B (en) Fingerprint detection method, device and readable storage medium
CN106897172A (en) System method to set up, device and terminal
CN105824677A (en) Method for deleting installation packages based on user operation data
CN106488132A (en) Photographic method and device
CN106528460A (en) Initializing control method and device for terminal device, and terminal device
CN106657573B (en) Reminding method and device

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
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.

GR01 Patent grant
GR01 Patent grant