201013168 IX. Description of the Invention: [Technical Field] The present invention relates to a mechanism for managing peripheral components of an electronic device, and more particularly to an electronic device and a control method thereof, which can determine a configuration of peripheral components according to an operating environment, and thus The peripheral components can be used for better use. [Prior Art] 胄 The level of Wangye and technology is constantly exploding, and the amazing technology is the technology of consumer electronics. In addition to the performance requirements, these products continue to touch. The direction of exquisiteness is progressing, and its electronic device for toweling materials is a field of contending for a hundred schools. The various technologies of the financial napkins are constantly seeking new changes in maturity. Handheld electronic devices that are most likely to be in contact with everyday life towels should be mobile phones', and current mobile phones often combine multiple functions, such as multimedia playback, global positioning system (Gps), and personal digital assistants (Pe_aldigitalassistant). , PDA) and so on. However, in addition to the continuous improvement of product functions, the humanized level that conforms to the user's operation mode has been continuously improved. For example, 'the current part of the audio and video playback products has the function of injecting the screen configuration rotation, and the user can use the video player. The screen is rotated 90 degrees to watch, and the displayed image will also rotate with it, so that you can achieve a better viewing quality. Therefore, depending on the mode of operation of the user, the manner in which the operation is switched to achieve a better use effect has become an important trend in humanized operation. • In today's mobile phones, almost all have audio and video playback functions, and even more with the addition of the sound reinforcement, so that users can use this phone as a small portable 5 201013168 - audio. In order to be better _ playback f, so the designer in the hand shot to join the second thorn ^ to achieve the sound of the shame, * these are mixed on the surface of the different sides of the phone 'to make stereo playback more For the exquisite. In addition, portable electronic devices with more than two microphone components have also begun to appear on the market. After two McMugs, they are advertised for better sound reception. However, these single-microphone microphones arranged on the portable electronic device will encounter a condition in use, that is, when the user places the portable electronic device on a contact surface (such as a desktop). At this time, the component on the plane will be obscured. In this case, the meaning of the simultaneous opening of the two components is not significant, because when a device is placed on the desktop. The direction of sound wave transmission is hindered, so the quality and quantity of its sound reproduction are inconspicuous. In the same situation, when the device uses the microphone to receive the sound, when one of the microphones is blocked, the effect of the radio will be greatly discounted, which also affects the overall arpeggio effect. Therefore, when the device is used in such an environment, it is necessary to correct the use state in this special case by some means in the original state that a plurality of sigma or microphone settings cannot achieve the desired effect. SUMMARY OF THE INVENTION Therefore, in order to improve peripheral components that are not effective in use due to shading, an object of the present invention is to provide an electronic device and a control method thereof, wherein the electronic device can determine whether or not its peripheral components are in a shielded operating environment. Further, the operating state of the peripheral components is appropriately set and switched so that the use effect of the peripheral components is improved. An embodiment of the present invention provides an electronic device that can switch operating states, and the package 201013168 includes: a plurality of peripheral components: - ❹m, used to sense the operating environment of the electronic I to generate - sensing results; and - control device _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Status or disabling status. The method of the present invention for sensing a plurality of peripheral components of an electronic device includes: sensing an operating environment of the electronic device to generate a sensing result;
And determining, according to the sensing result, the outer shielding bear of the plurality of peripheral components, to set the subtracting edge element per-peripheral component_ (four) neon two state or disabling state. The method can be used to change the environment of the electronic device dynamically and in a timely manner to make the peripheral components more elastic and have better use effects. [Embodiment] The present invention will be described with reference to the drawings, and the parts of (4) will be denoted by the same reference numerals for the explanation. - Please refer to FIG. 1 'The electronic device 100 includes: a first surface 1 〇 2 (which is a non-empty 'upper surface' having a microphone 112 on the surface); a second surface 104 (which is a relative a first surface 1〇2 facing the lower surface, a second surface 104 having a -microphone 114); an accelerometer 12; a control device 13G; and a memory unit 15G, wherein the memory A data bank 155 is stored in the body unit 15A. For example, if the three-dimensional coordinate axis is shown, the negative direction of the two axes represents the direction of the gravity generating side. Referring again to Figure 1, the accelerometer 12〇 is subjected to gravity in the 201013168 space, so that when the first surface 1〇2 is oriented in the positive direction of the z-axis, the accelerometer 120 can measure the 2-axis component along the coordinate axis. It is a gravity acceleration parameter value of 1 (}, however, when the first surface 102 is oriented in the negative direction of the z-axis, the accelerometer 120 measures the gravity acceleration parameter value of the _1G along the z-axis component of the coordinate axis. When the electronic device 1 is placed on a contact surface (such as a desktop) with the first plane 1〇2 facing the positive direction of the z-axis, if the electronic device 100 is required by the application program The microphones 112 and 114 are activated. At this time, since the second cymbal surface 1 (10) is in contact with the contact surface 400, the microphone 114 is now obscured by the contact surface 4, so the microphone 114 cannot perform the corresponding function (such as in the space). The sound is sounded.) By starting the control method of the present invention, the initial condition determination is started, and the accelerometer 120 measures the gravity acceleration parameter of the z-axis component along the coordinate axis as 1G under such conditions. The control device 130 thus obtains the sensing result of the accelerometer 12A, and determines such an operating condition as a condition! That is, the microphone 114 is shielded, and then the control device 130 sets only the operating state of the microphone 112 to the enabled state. The electronic device 100 only applies the related application to the microphone 112. Similarly, if the electronic device 100 is placed on the contact surface 4〇〇 with the first surface 102 facing downward, the accelerometer 120 measures the axis along the coordinate axis. The z-axis component is the value of the gravitational acceleration parameter, and the control device 130 obtains the sensing result. At this time, the operating condition is determined as the condition 2: only the microphone 114 needs to be set to the enabled state. When the accelerometer 12 is measured When the value of the gravity acceleration parameter is not 1G or _1G, the control method of the present invention determines the initial condition as a situation other than the status 1 and the condition 2, and the representative electronic device 100 is not placed on the contact surface 'microphone 112 and 114 may be in a normal operating environment without being obscured, so the control device 130 will simultaneously set the microphones 112 and 114 to an enabled state. The measured gravity acceleration parameter value is taken from the accelerometer 120 every other specific time (such as 0.5 seconds). Each time the control device 130 obtains the sensing result of the accelerometer 120, the microphone is used according to the sensing result. The determination of the operating state of 112 and 114, if it is different from the previous sensing result, switches the operating state to correspond to the sensing result. For example, the electronic device 1 is previously in the condition φ 1, and the microphone 114 is in the shaded state. In this case, the microphone 112 is in an enabled state, and the microphone 114 is in a disabled state. If the electronic device 100 is erected from the contact surface 400 at this time (for example, it is held by the user in an upright manner. Above), at this time, the accelerometer 120 measures the gravitational acceleration parameter values other than ig and -1G, and the control device 130 obtains the sensing result, and switches the microphone 114 from the disabled state to the enabled state, and the microphone 112 It remains in the enabled state, so that the two microphones will be turned on for better sound quality. Or when the electronic device 100 is in the state 2, the microphone 114 is in an enabled state, and the microphone 112 is in a disabled state. After the user flips the electronic device 1 , the second surface 104 is thus in close contact with the contact surface 400 . When placed, the accelerometer can measure the value of the gravity acceleration parameter of 1 (}, when the electronic device 1 is in the state, the control device 130 switches the microphone m from the enabled state to the disabled state, and the microphone 112 is The disabling state is switched to the enabled state, thereby maintaining a better sound quality. However, the test contact surface may be a __plane having an inclination, so that the accelerometer 120 no longer has m when placed on the contact surface. The gravity acceleration parameter value is received. Therefore, some modifications are made in the following embodiments. Please refer to the other embodiment of the present invention as shown in FIG. 2, when the same electronic device as the foregoing embodiment is placed in a On the oblique plane 500, there are the following cases. The graph 3〇〇 of Fig. 3 represents the axes along the three-dimensional coordinate axis when the electronic device 100 is placed on the inclined plane 5〇〇 as shown in Fig. 2 ( Acceleration of x, y, z) It is worth noting that the second plane 104 is immediately adjacent to the oblique plane 5〇〇, and the microphone 114 is in the shaded condition, but the accelerometer 120 no longer measures the 1G gravity acceleration parameter value, instead, A gravitational acceleration parameter value of less than 1G is obtained along the z-axis of the coordinate axis, and a gravitational acceleration parameter value greater than 〇 is obtained along the x-axis of the coordinate axis, and the acceleration component of the X-axis is caused by the oblique plane 500. In this embodiment, to ensure that in this operating environment, the electronic device 1 can still be determined by the control device 130 to be in the state of 1 to set the microphone ip to the enabled state, and to set the microphone 114 to disable. The state is determined by a database 155 disposed in one of the memory units 150 in the electronic device 100. The database 155 records the possible combinations of the gravitational acceleration components of the axes along the coordinate axis. In one embodiment, when a possible combination of gravitational acceleration components occurs, the control device 130 temporarily does not make a decision, but waits for a longer specific time (eg, ^ seconds). The sensing results of the accelerometer 120 are still the same, and the control device 13 makes a determination. That is, the accelerometer 120 in the electronic device 100 in an oblique plane of a possible angular range can obtain the respective axial acceleration components. Various combinations, and the control device 130 does not immediately make a judgment 'and must wait for a period of time, the 俾 accelerometer 120 still obtains the same result to make a judgment, in order to avoid if the electronic device 1 〇〇 is being moved In the state of the middle, if the sensing result of the combination of the gravitational acceleration components in the database 155 is obtained, the electronic device 1 is mistakenly judged as 201013168 being placed in a sense that the electronic device 1 (8) has the same combination of gravitational acceleration components. The oblique plane of the measurement result. A possible angle means that the angle allows the electronic device to be placed on the inclined plane of the possible angle without slipping. The control device 13 determines the possibility that the electronic device 100 is still placed on a contact surface when the Z-axis acceleration component is outside the 1G and _1G by comparing the sensing result and the database reading data. It should be noted that the peripheral components that can be controlled by the control device of the present invention are not limited to the microphone component only. The peripheral components (for example, audio components) that are received on the electronic device and receive or transmit information through the aperture are all in the present invention. Included within the scope. The microphone element is merely described as an embodiment, and the invention is not intended to be limited. Furthermore, the spirit of the present invention utilizes the sensing result of a sensing device to enable the control device to determine the external shielding state of the peripheral components, and the implementation of the sensing device is not limited to the accelerometer only, that is, the accelerometer is only An implementation option, in fact, a sensing device that can be applied to detect an external occlusion state of a peripheral component can include an ambient light detector (ambient light sens), a camera _ lens, and a proximity sensor (proximity sens 〇 r) Wait. The ambient light source detector can be disposed on different side surfaces of the electronic device, and the detector can detect the ambient light source. If the surface of one side is close to a contact surface, the peripheral components located on the surface are shielded. The sensing result of the ambient light source detector located at the surface at this time can cause the control device to determine that the peripheral component is obscured and set the component to a disabled state. The camera lenses are respectively disposed on different side surfaces, and the function of capturing images can be utilized, so that the control device uses the color degree of the image to determine whether the peripheral components on the surface of the side are shielded (when the image is obscured, the obtained image is obtained). The color is darker). The proximity sensors are respectively disposed on different side surfaces for detecting the presence of adjacent objects to provide information for determining whether the peripheral components on the surface are _new. ❹
The fourth figure is the method of the verification of the day--the method of the Wei-Bian tree. Please note that the (4) can be identical to the result. (IV) The steps of the control method 400 need not be performed one by one according to the order of the fourth embodiment, and that no additional steps can be inserted. In the step, the electronic device S should record the peripheral element of the unit towel to activate the peripheral component to perform the function corresponding to the peripheral component. Next, in the step, the control device converts the result from the sensing device. The control device determines the external occlusion state of the peripheral component according to the wire, and the setting of the individual operation state of the ridge component (step 406), after the control device rides the peripheral component to perform the setting operation state. In step 408, the electronic device is _: the corresponding function. The process proceeds to the step. If the electronic device does not continue to use the peripheral components, the entire control process is terminated (step 412), and the peripheral components are all set to the de-test state; if the electronic device still _ makes the edge component Then, proceed to step 4n' at this time every time - for a specific time (such as α5 seconds), the control device will re-acquire the sensing result from the sensing device again, and then return to step 4〇6, and the control device will judge and set again. . According to the control method 400 in the above embodiment, and in accordance with the meaning and concept of the present invention, a more detailed control method can be provided, as shown in Fig. 5 and Fig. 6. Please also refer to Figures 5 and 6, which are the two parts of Control Method 500, respectively. Similar to the control method 4, in step 5〇2 and step 5〇4, first, the electronic device activates the peripheral components in response to the demand of the application, and then the control device obtains the sensing result from the sensing device. In step 5〇5, the control device first 12 201013168 first determines whether the electronic device is in the state l, and the situation 1 mentioned here refers to the description of the previous embodiment described in the first figure, that is, in the situation 1 Next, at this time, the second surface 104 of the electronic device 100 is in a state of being shielded. If the result of the determination in step 5〇5 is no, the process proceeds to step 5〇6 to determine whether the electronic device 1〇〇 is in the state 2, that is, as described in the embodiment of FIG. 1, under the condition 2, the electronic device 1 If the first surface 1〇2 is in the shaded situation, if the result of step 5〇6 is also negative, then proceed to step 507, at which point it is judged that the electronic device is in other conditions, that is, no peripheral components are present. To the shadow, the control unit will set all of the peripheral components to the enabled state. In step 5〇5 and step 5〇6, if the result is YES, the process proceeds to steps 5〇9 and 510', respectively, to control the peripheral components. Step 5〇9 and Steps and Step 507 then proceed to step 511 where the electronic device uses peripheral components. Then, step 511 proceeds to step 514, where the sensing device obtains the sensing result from the sensing device again, and the step 514 enters two different steps according to the situation. If the Q electronic device ends the system of the peripheral components, the bribe Human step 516; if the electronic device is in other conditions (no peripheral components are obscured), then step 515 is entered. If the result of step 516 is no, then return to step 514; if the result of step 516 is YES, then step 540 is entered and the electronic device stops the use of peripheral components. If the result of step 515 is no, it indicates that the electronic device is still in the same operating environment, so return to step 514 'so every time - specific _, (4) the device will check the result again 方面 another: aspect 'If the result of step 515 If so, the electronic device is changed to operate the ring '^' so that the originally obscured component is no longer obscured, so the entry step remains. Step 525 will enter two different steps depending on the situation, checking whether the electronic device 13 201013168 ❹
In the situation 1, if the result is yes, enter the step 汹, which represents the situation of the electronic device environment entering the situation ' 'the control device will change the operating state of the original peripheral components' to reset the appropriate peripheral component operation (4); if the result is no Then, the user still enters step 527 to check that the electronic technology shirt is in the state 2, and the result of the material is ^, indicating that the operating environment of the electronic device enters the sibling from the recording condition, and the control device will set the edge component (4). The operation should be g (step one), 'If the step π is judged as [representing the electronic device (4) dumping other conditions into the non-state- or non-state 2, then the control device will set the operating state for the peripheral components ( Step 531). Then return to step 514. From the method set forth in the above embodiments, the generalized method of the present invention for controlling several it-edge components of an electronic device is described below. As shown in FIG. 7, the control method 600 includes three main steps: step 6〇2 is to sense an operating environment of the electronic device to generate a sensing result, and step 604 is to determine the electronic device according to the sensing result. The external shielding state of the peripheral components and the last step 6〇6 are for the control device to set the operating state of each of the peripheral components to an enabled state or a disabled state, respectively. In summary, the electronic device and the control method of the present invention can make the electronic device more efficient and effective in the use of peripheral components. The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should fall within the scope of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a schematic view showing an embodiment of an electronic device of the present invention. 2 is a schematic view of another embodiment of an electronic device of the present invention. 201013168 Figure 3 shows the axes captured when the electronic device is placed on an inclined plane. Fig. 4 is a flow circle of the embodiment of the plurality of face-side components of the (four) control-electronic device. Figure 5 and Figure 6 are flow diagrams of another embodiment of a method for producing a plurality of peripheral components of an electronic device.
Figure 7 is a flow chart of the multiple components of the electronic device. J ❹ [Main component symbol description] Too ' 102, 104 112 , 114 120 130 150 T55" 300 400 "500 Electronics Surface Microphone Accelerometer Control device Memory unit Per touch-plane Oblique plane 15