CN110806325B - Electronic equipment detection method and electronic equipment - Google Patents

Electronic equipment detection method and electronic equipment Download PDF

Info

Publication number
CN110806325B
CN110806325B CN201911007494.5A CN201911007494A CN110806325B CN 110806325 B CN110806325 B CN 110806325B CN 201911007494 A CN201911007494 A CN 201911007494A CN 110806325 B CN110806325 B CN 110806325B
Authority
CN
China
Prior art keywords
functional component
preset
time period
functional
hall
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
Application number
CN201911007494.5A
Other languages
Chinese (zh)
Other versions
CN110806325A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology Co 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201911007494.5A priority Critical patent/CN110806325B/en
Publication of CN110806325A publication Critical patent/CN110806325A/en
Application granted granted Critical
Publication of CN110806325B publication Critical patent/CN110806325B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/008Subject matter not provided for in other groups of this subclass by doing functionality tests

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a detection method of electronic equipment, the electronic equipment comprises a shell, a lifting mechanism, a functional assembly and a detection device, the shell is provided with a channel, the lifting mechanism drives the functional assembly to move along the channel, so that the functional assembly is converted between an extending state and a receiving state, the detection device is connected with the functional assembly and used for detecting the motion parameters of the functional assembly, and the method comprises the following steps: when the functional component moves along the channel, detecting whether the functional component reaches a preset position through a detection device; when the functional component reaches the preset position, acquiring a time period of the movement of the functional component, wherein the time period is a time period from the start of the movement of the functional component to the arrival of the preset position; and generating first feedback information when the time period is not greater than the preset time period. Whether the lifting mechanism in the electronic equipment meets the product requirements or not can be detected, the product detection cost is reduced, and the product detection efficiency and accuracy are improved.

Description

Electronic equipment detection method and electronic equipment
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a method for detecting an electronic device and an electronic device.
Background
With the development of communication technology, electronic devices such as smart phones are becoming more and more popular. In order to increase electronic equipment's screen and account for than, often set up electronic equipment's casing with functional component etc. for example camera, speaker etc. through elevating system drive functional component lift, then need not to set up the non-display area on the electronic equipment display screen and be used for placing functional component, and then can promote electronic equipment's screen and account for than, nevertheless because elevating system sets up in electronic equipment casing, when needs detect whether normal lifting function, often need the manual work to judge, and detection cost is high, and detection efficiency is lower.
Disclosure of Invention
The embodiment of the application provides a detection method of electronic equipment and the electronic equipment, which can detect whether a lifting mechanism in the electronic equipment meets product requirements, reduce product detection cost and improve product detection efficiency and accuracy.
The embodiment of the application provides a detection method of electronic equipment, the electronic equipment comprises a shell, a lifting mechanism, a functional assembly and a detection device, the shell is provided with a channel, the lifting mechanism drives the functional assembly to move along the channel, so that the functional assembly is switched between a stretching state and a receiving state, the stretching state is that the functional assembly is positioned outside the shell, the receiving state is that the functional assembly is positioned in the shell, the detection device is connected with the functional assembly and used for detecting the motion parameters of the functional assembly, and the method comprises the following steps:
when the functional component moves along the channel, detecting whether the functional component reaches a preset position through the detection device, wherein the preset position is a position when the functional component is in an extending state or a receiving state;
when the functional component reaches a preset position, acquiring a time period of the movement of the functional component, wherein the time period is a time period from the start of the movement of the functional component to the arrival of the functional component at the preset position; and
and when the time period is not greater than a preset time period, generating first feedback information.
An embodiment of the present application provides an electronic device, including:
a housing provided with a channel;
a functional component;
the lifting mechanism drives the functional component to move along the channel, so that the functional component is switched between an extending state and a receiving state, wherein the extending state is that the functional component is positioned outside the shell, and the receiving state is that the functional component is positioned in the shell;
the detection device is connected with the functional component and is used for detecting the motion parameters of the functional component; and
a processor coupled to the detection device for:
when the functional component moves along the channel, detecting whether the functional component reaches a preset position through the detection device, wherein the preset position is a position when the functional component is in an extending state or a receiving state;
when the functional component reaches a preset position, acquiring a time period of the movement of the functional component, wherein the time period is a time period from the start of the movement of the functional component to the arrival of the functional component at the preset position; and
and when the time period is not greater than a preset time period, generating first feedback information.
The detection method of the electronic equipment and the electronic equipment can detect whether the lifting mechanism in the electronic equipment meets the product requirements or not, manual detection is not needed, the product detection cost is reduced, and the product detection efficiency and accuracy are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below.
Fig. 1 is a first structural schematic diagram of an electronic device according to an embodiment of the present application.
Fig. 2 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 3 is a first flowchart of a method for detecting an electronic device according to an embodiment of the present disclosure.
Fig. 4 is a second flowchart of the electronic device detection method according to the embodiment of the present application.
Fig. 5 is a third flowchart of the electronic device detection method according to the embodiment of the present application.
Fig. 6 is a third structural schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
An execution main body of the detection method of the electronic device may be the electronic device provided in the embodiment of the present application, such as the electronic device 20 shown in fig. 1, and fig. 1 is a first structural schematic diagram of the electronic device provided in the embodiment of the present application. The electronic device 20 may be a smart phone, a tablet computer, a Personal Digital Assistant (PDA), or the like.
The electronic device 20 may include a housing 100, a lifting mechanism 200, a functional component 300, and a detection apparatus 400, the housing 100 is provided with a channel 500, the lifting mechanism 200 drives the functional component 300 to move along the channel 500, so that the functional component 300 is converted between an extended state and a stored state, the extended state is that the functional component 300 is located outside the housing 100, the stored state is that the functional component 300 is located inside the housing 100, and the detection apparatus 400 is connected to the functional component 300 and is used for detecting a motion parameter of the functional component 300, wherein the extended state may be understood that the functional component 300 is completely located outside the housing 100, that is, the functional component 300 functions normally, and the stored state may be understood that the functional component 300 is completely located inside the housing 100, that is, the functional component is hidden inside the housing.
It is understood that, for example, the functional component 300 illustrated in fig. 1 is in an extended state, so as to enable the functional component 300 to be located outside the housing, and the keys on the bezel of the electronic device in fig. 1 may be arranged in positions, numbers, and sizes according to practical situations, which is not limited in this embodiment of the present application.
The structure of the functional component 300 can be a cuboid, a cube, a cylinder and the like, and can be set according to actual conditions, and the size of the lifting mechanism can be set according to actual conditions. This is not limited in the embodiments of the present application.
The lifting mechanism 200 may include a driving component, which may be rotatably connected, fixedly connected, or electrically connected to the functional component 300, for driving the functional component 300 to move relative to the housing, wherein the driving component may include a stepping motor and a lifting rod, the stepping motor is connected to the lifting rod, and the lifting rod is connected to the functional component 300, for driving the functional component 300 to move along the channel 500.
In some embodiments, the driving assembly may include a rack fixedly connected to the functional assembly and a motor connected to the rack, the motor being configured to rotate the rack to further drive the functional assembly along the channel 500. It is understood that the structure and position of the driving assembly can be set according to practical situations, and the embodiment of the present application is not limited thereto.
Wherein the detecting device 400 may include at least one of a hall sensor, an acceleration sensor, a speed sensor, and a distance sensor.
The hall sensor includes a hall sensor and a magnet, either one of the hall sensor or the magnet is disposed in the functional component 300, the other is disposed in the housing 100, for example, the hall sensor or the magnet may be disposed at the bottom of the channel 500 in the housing 100, and when the functional component 300 moves along the channel 500, a hall value sensed by the hall sensor changes with a change in the position of the functional component 300. Specifically, the hall sensor converts the change of the surrounding magnetic field into the change of the hall voltage by using the hall effect, and when the lifting mechanism moves, the distance between the hall sensor and the magnet changes, so that the hall value changes.
The acceleration sensor is disposed on the functional module 300, connected to the functional module 300, and configured to detect an acceleration of the functional module 300 during a movement process.
The speed sensor is disposed on the functional module 300, connected to the functional module 300, and configured to detect a speed of the functional module 300 during movement.
The distance sensor includes a signal emitter and a signal receiver, wherein either one of the signal emitter or the signal receiver is disposed in the functional component 300 and the other is disposed in the housing 100, it being understood that the other may be disposed at the bottom of the channel 500 in the housing, connected to the functional component 300, for detecting a change in position of the functional component 300 during movement.
The housing 100 may be formed of plastic, glass, ceramic, fiber composite, metal (e.g., stainless steel, aluminum, etc.), other suitable materials, or a combination of any two or more of these materials, among others.
The functional component 300 may include a camera module, an earphone module, and the like. The camera module can be arranged in the storage cavity of the functional component 300 or on the outer surface of the functional component 300, such as the camera module can be fixedly connected with the outer surface, the fixed connection mode can be realized by adopting a glue bonding mode, the camera module can also be realized by adopting a welding mode, and the camera module can also be realized by adopting a fixing mode of a connecting piece (such as a screw connecting piece) or a connecting structure (such as a buckle clamp joint, a hinge joint and the like), or can be arranged in the storage cavity formed by the functional component 300 through the connecting mode. When the camera module set up and taking in the intracavity, need set up at the camera lens of camera module in the position that elevating system surface corresponds at the shooting window, the camera module can be through the shooting window shooting of finding a view. It should be noted that the camera module may include a single lens, or may include a plurality of lenses, for example, the camera module may include two lenses to implement a double-shot function, and the camera module may further include three lenses, four lenses, or six lenses.
The earphone module can be used for realizing a sound transmission function of the electronic device, for example, a user can answer a call or a voice message through the earphone module.
Through setting up in casing 100 with functional component 300, the non-display area who need not to add the display screen is used for placing functional component as above camera module etc. for example, need not to set up non-display area in the display screen and be used for placing camera or earphone module etc. also need not to set up the through-hole on the display screen and be used for satisfying the camera to the demand of light, can reduce the non-display area's of display screen area, increase electronic equipment's screen ratio.
Referring to fig. 2, fig. 2 is a second structural schematic diagram of the electronic device according to the embodiment of the present disclosure, in which the functional element 300 illustrated in fig. 2 is in a storage state, for storing the functional element 300 in the housing, it can be understood that when the functional element 300 is in the storage state, the housing 100 of the electronic device is flush with the edge of the lifting mechanism in appearance, so as to maintain the overall appearance of the electronic device 20.
Because the functional assembly 300 often breaks down in the process of switching between the storage state and the extension state, for example, the lifting mechanism 200 has a bad part size of the lifting mechanism 200, and a failure of the lifting mechanism 200 caused by intrusion of foreign matters or a failure of a driving assembly, causes a lifting failure of the functional assembly, therefore, the failure needs to be removed in the production and manufacturing process, and the functional assembly can be put into the market.
Specifically, referring to fig. 3, fig. 3 is a first flowchart of a method for detecting an electronic device according to an embodiment of the present application, where the method for detecting an electronic device can be applied to the electronic device, and the method for detecting an electronic device includes:
101, when the functional component moves along the channel, whether the functional component reaches the preset position is detected through the detection device, and the preset position is the position when the functional component is in the extending state or in the accommodating state.
The functional component moves along the channel, and can be understood as the movement of the functional component converted between the extending state and the accommodating state, for example, the functional component is converted from the extending state to the accommodating state, whether the functional component reaches the accommodating state is detected through the detection device, or the functional component is converted from the accommodating state to the extending state, whether the functional component reaches the extending state is detected through the detection device, wherein the extending state can be understood as the functional component completely located outside the shell, namely the function of the functional component is normally realized, and the accommodating state can be understood as the functional component completely located in the shell, namely the functional component is hidden in the shell.
102, when the functional component reaches the preset position, acquiring a time period of the movement of the functional component, wherein the time period is a time period from the start of the movement of the functional component to the arrival of the functional component at the preset position.
When the functional unit reached and accomodate the state or when stretching out the state, can prove that the functional unit can reach preset position, functional unit's lift distance can reach the target distance promptly, make the functional unit be located outside the casing completely, still need get rid of the condition that the functional unit moved after pausing in the lift process, the trouble that the functional unit blocks promptly, consequently, the time quantum of functional unit motion needs to be acquireed, can acquire the first moment that the functional unit began to move earlier, acquire the second moment that the functional unit ended the motion again, calculate the time quantum that obtains the functional unit motion according to first moment and second moment, can record first moment and second moment respectively through the timer.
And 103, generating first feedback information when the time period is not greater than the preset time period.
When the time period of the movement of the functional component is not more than the preset time period, it is proved that the functional component is not stuck in the movement process, and first feedback information is generated, wherein the first feedback information feeds back the functional component of the electronic equipment to meet the product requirement, and can be used for feedback through prompting fonts, pictures or voice.
For example, when it is determined that the functional component of the electronic device satisfies the product requirement, a word of "product qualified" is displayed on the screen of the electronic device.
Referring to fig. 4, fig. 4 is a second flowchart of an electronic device detection method according to an embodiment of the present disclosure, where the electronic device detection method includes:
201, when the functional unit moves along the passageway, whether reach preset position through detection device detection functional unit, preset position is the position when the functional unit is in the state of stretching out or is in the state of accomodating.
The movement of the functional component along the channel can be understood as the movement of the functional component switching between the extended state and the storage state, and the preset position can be the position when the functional component is in the extended state or the position when the functional component is in the storage state.
202, when the functional component reaches the preset position, acquiring the time period of the movement of the functional component, wherein the time period is the time period from the start of the movement of the functional component to the reaching of the preset position.
When the functional component reaches the storage state or the extension state, it can be proved that the functional component can reach the preset position, that is, the lifting distance of the functional component can reach the target distance, so that the functional component is completely positioned outside the shell, but the situation that the functional component stops in the lifting process and then moves, that is, the functional component is stuck, therefore, the time period of the movement of the functional component needs to be acquired, the first time when the functional component starts to move can be acquired first, the second time when the functional component finishes to move can be acquired, the time period of the movement of the functional component can be calculated according to the first time and the second time, the first time and the second time can be recorded through a timer, and step 204 or step 205 is executed.
And 203, generating second feedback information when the functional component does not reach the preset position.
When the functional component stops when not reaching the storage state or the extension state, the functional component is proved to stop in the midway of movement, namely the functional component is in fault, so that the functional component cannot normally reach the storage state or the extension state, and second feedback information is generated, wherein the second feedback information feeds back that the functional component of the electronic equipment cannot meet the product requirement, and can be used for feedback by prompting fonts, pictures or voice.
For example, when it is determined that the functional component of the electronic device satisfies the product requirement, a word of "product is not qualified" is displayed on the screen of the electronic device, or the electronic device sounds an alarm.
204, when the time period is not more than the preset time period, generating first feedback information
When the time period of the movement of the functional component is not greater than the preset time period, it is proved that the functional component is not stuck in the movement process, and first feedback information is generated, and the first feedback information may be the first feedback information described above.
205, when the time period is greater than the preset time period, generating second feedback information
When the time period of the movement of the functional component is greater than the preset time period, it is proved that the functional component is stuck in the movement process, so that the movement time of the functional component is increased, and therefore second feedback information is generated, and the second feedback information may be the second feedback information described above.
In some embodiments, after the first feedback information or the second feedback information is generated, the electronic device is marked as the first electronic device or the second electronic device, and then the first electronic device and the second electronic device are separately placed, it can be understood that the electronic devices with different marks can be automatically placed at different positions through a machine after the electronic devices are marked.
Referring to fig. 5, fig. 5 is a third flowchart of an electronic device detection method according to an embodiment of the present disclosure, where the electronic device detection method includes:
301, when the functional component moves along the channel, detecting the hall value of the functional component in the moving process through the hall sensor.
The Hall sensor comprises a Hall sensor and a magnet, wherein any one of the Hall sensor or the magnet is arranged in the functional component, the other one of the Hall sensor or the magnet is arranged in the shell, the other one of the Hall sensor or the magnet is arranged at the bottom of a channel in the shell, when the functional component moves along the channel, the Hall value sensed by the Hall sensor changes along with the change of the position of the functional component, and the Hall value in the moving process of the functional component is detected through the Hall sensor.
And 302, when the Hall value reaches a preset Hall value, acquiring the time period of the movement of the functional component, wherein the time period is the time period from the beginning of the movement of the functional component to the reaching of the preset position.
When the Hall value reaches the preset Hall value, namely the functional component reaches the position corresponding to the accommodating state or the position corresponding to the extending state, the time period of the movement of the functional component is obtained, and the time period is the time period from the beginning of the movement of the functional component to the reaching of the preset position.
The preset Hall value can comprise a first preset Hall value and a second preset Hall value, the first preset Hall value corresponds to the Hall value when the functional assembly reaches the accommodating state, and the second preset Hall value corresponds to the Hall value when the functional assembly reaches the extending state. The first preset Hall value and the second preset Hall value are different,
303, generating first feedback information when the time period is not greater than the preset time period.
When the time period of the movement of the functional component is not more than the preset time period, it is proved that the functional component is not stuck in the movement process, and first feedback information is generated, wherein the first feedback information feeds back the functional component of the electronic equipment to meet the product requirement, and can be used for feedback through prompting fonts, pictures or voice.
For example, when it is determined that the functional component of the electronic device satisfies the product requirement, a word of "product qualified" is displayed on the screen of the electronic device.
In some embodiments, after the detection time period is not greater than the preset time period, the motion parameter of the functional component can be further acquired through the detection device; generating a corresponding motion parameter curve graph according to the motion parameters; comparing the curve graph with a preset curve graph, generating first feedback information when the curve graph is different from the preset curve graph within a preset range, for example, acquiring acceleration of the functional component in the motion process through an acceleration sensor, generating a corresponding acceleration curve graph according to the acceleration, comparing the acceleration curve graph with the preset acceleration curve graph, and generating the first feedback information when the acceleration curve graph is different from the preset acceleration curve graph within the preset range. For another example, the speed sensor acquires the speed of the functional component during the movement process, generates a corresponding speed curve according to the speed, compares the speed curve with a preset speed curve, and generates the first feedback information when the difference between the speed curve and the preset speed curve is within a preset range.
It can be understood that, when the functional component reaches the preset position and the detected movement time period is less than the preset time period, there may be a case where the functional component cannot be detected even if it is stuck due to the speed of the functional component becoming fast, and therefore the speed or acceleration of the functional component may be detected by the speed sensor or the acceleration sensor, and whether the speed or acceleration of the functional component is abnormal or not may be determined by the speed or acceleration.
In some embodiments, the acceleration sensor is connected to the functional component, when the functional component moves along the channel, the acceleration sensor detects the acceleration of the functional component during the movement process, and whether the functional component reaches the preset position can be determined according to the acceleration.
In some embodiments, the speed sensor is connected to the functional component, when the functional component moves along the channel, the speed sensor detects the speed of the functional component in the movement process, and whether the functional component reaches the preset position is judged according to the speed.
In some embodiments, the distance sensor includes a signal emitter and a signal receiver, any one of the signal emitter and the signal receiver is disposed on the functional component, and the other one is disposed in the housing, wherein the signal emitter is configured to emit a detection signal, the signal receiver is configured to receive a reflection signal reflected by the detection signal when the detection signal hits an obstacle, and a distance along the channel of the functional component is calculated according to the reflection signal, so as to determine whether the functional component reaches a preset position.
In some embodiments, one or more of the electronic devices may also be connected to a controller for triggering movement of one or more corresponding functional components of the electronic device along the channel. It can be understood that the controller and the one or more electronic devices can be connected in a wired manner or a wireless manner, the wired manner can be an electric connection, the wireless manner can be a wireless fidelity (Wi-Fi), bluetooth (bluetooth) connection, and the like, the functional components of the electronic devices can be started to move along the channel by one key through the controller, and in the detection process of the electronic devices, the electronic devices do not need to be manually opened one by one, so that the labor cost is reduced, and the detection efficiency is improved. One or more electronic devices and a controller may form a detection system, in the detection system, the controller may be a device such as a mobile phone, a computer, or a server that can be used to connect the electronic devices, and the controller may further include only one connection device and an activation device, where the connection device is used to connect with the electronic devices, and the activation device is used to activate the electronic devices to move functional components of the electronic devices.
In some embodiments, for one electronic device, multiple detections may be performed by the above-described electronic device detection method, so that the accuracy of electronic device fault detection may be improved.
Fig. 6 shows a third structural schematic diagram of an electronic device according to an embodiment of the present application. The electronic device 20 includes a processor 700, a memory 800, a functional component 300, a lifting mechanism 200, and a detection apparatus 400. The processor 700 is electrically connected to the memory 800, the functional element 300, the lifting mechanism 200, and the detecting device 400.
The processor 700 is a control center of the electronic device 20, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device 20 by running or loading a computer program stored in the memory 800 and calling data stored in the memory 800, and processes the data, thereby performing overall monitoring of the electronic device 20.
The memory 800 may be used to store software programs and modules, and the processor 700 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 800. The memory 800 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function, and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 800 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 800 may also include a memory controller to provide processor 700 with access to memory 800.
In the embodiment of the present application, the processor 700 in the electronic device 20 loads instructions corresponding to one or more processes of the computer program into the memory 800, and the processor 700 executes the computer program stored in the memory 800, so as to implement various functions, as follows:
when the lifting mechanism functional assembly moves along the channel, detecting whether the lifting mechanism functional assembly reaches a preset position through the detection device, wherein the preset position is the position of the lifting mechanism functional assembly in an extending state or a receiving state;
when the lifting mechanism functional assembly reaches a preset position, acquiring a time period of movement of the lifting mechanism functional assembly, wherein the time period is a time period from the beginning of the movement of the lifting mechanism functional assembly to the arrival of the lifting mechanism functional assembly at the preset position; and
and when the time period is not greater than a preset time period, generating first feedback information.
When the functional component does not reach the preset position, generating second feedback information;
or when the time period is greater than a preset time period, generating second feedback information.
Detecting a Hall value in the movement process of the functional component through the Hall sensor;
and when the Hall value reaches a preset Hall value, determining that the functional component reaches a preset position.
When the functional component is switched from the extending state to the accommodating state, detecting a Hall value in the movement process of the functional component through the Hall sensor, and when the Hall value reaches a first preset Hall value, determining that the functional component reaches a preset position; or
When the functional component is switched from the accommodating state to the extending state, the Hall value of the functional component in the movement process is detected through the Hall sensor, and when the Hall value reaches a second preset Hall value, the functional component is determined to reach a preset position.
Detecting the distance of the lifting mechanism in the movement process through the distance sensor;
and judging whether the lifting mechanism reaches a preset position or not according to the distance.
Acquiring the motion parameters of the functional component through the detection device;
generating a corresponding motion parameter curve graph according to the motion parameters;
and comparing the curve graph with a preset curve graph, and generating first feedback information when the curve graph is different from the preset curve graph within a preset range.
Acquiring the acceleration of the functional component in the motion process through the acceleration sensor;
generating a corresponding acceleration curve graph according to the acceleration;
and comparing the acceleration curve graph with a preset acceleration curve graph, and generating first feedback information when the acceleration curve graph is different from the preset acceleration curve graph within a preset range.
Acquiring the speed of the functional component in the movement process through the speed sensor;
generating a corresponding speed curve graph according to the speed;
and comparing the speed curve graph with a preset speed curve graph, and generating first feedback information when the speed curve graph is different from the preset speed curve graph within a preset range.
One or more electronic devices are connected with a controller, and the controller is used for triggering one or more corresponding functional components of the electronic devices to move along the channel.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the method for detecting an electronic device in any of the above embodiments. Such as:
when the lifting mechanism functional assembly moves along the channel, detecting whether the lifting mechanism functional assembly reaches a preset position through the detection device, wherein the preset position is the position of the lifting mechanism functional assembly in an extending state or a receiving state;
when the lifting mechanism functional assembly reaches a preset position, acquiring a time period of movement of the lifting mechanism functional assembly, wherein the time period is a time period from the beginning of the movement of the lifting mechanism functional assembly to the arrival of the lifting mechanism functional assembly at the preset position; and
and when the time period is not greater than a preset time period, generating first feedback information.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the detection method of the electronic device in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the detection method of the electronic device in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer-readable storage medium, such as a memory of the electronic device, and executed by at least one processor in the electronic device, and the process of executing the computer program can include the process of the embodiment of the image capturing method. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the electronic device according to the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented as a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium such as a read-only memory, a magnetic or optical disk, or the like.
The detection method of the electronic device and the electronic device provided by the embodiment of the application are described in detail above. The principles and implementations of the present application are described herein using specific examples, which are presented only to aid in understanding the present application. Meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (7)

1. A detection method of electronic equipment is characterized in that the electronic equipment comprises a shell, a lifting mechanism, a functional component and a detection device, the shell is provided with a channel, the lifting mechanism drives the functional component to move along the channel, so that the functional component is switched between an extending state and a receiving state, the extending state is that the functional component is positioned outside the shell, the receiving state is that the functional component is positioned in the shell, the detection device is connected with the functional component and used for detecting motion parameters of the functional component, the detection device comprises a Hall sensor, the Hall sensor is connected with the functional component, the electronic equipment is connected with a controller, and the method comprises the following steps:
triggering a plurality of functional components corresponding to the electronic equipment to move along the channel through the controller, and detecting whether the functional components reach preset positions through the detection device when the functional components move along the channel, wherein Hall values in the movement process of the functional components are detected through the Hall sensors; when the Hall value reaches a preset Hall value, determining that the functional component reaches a preset position; the preset position is the position of the functional component in the extending state or the accommodating state;
when the functional component reaches a preset position, acquiring a time period of the movement of the functional component, wherein the time period is a time period from the start of the movement of the functional component to the arrival of the functional component at the preset position; and
when the time period is not greater than a preset time period, generating first feedback information;
when the time period is greater than a preset time period, generating second feedback information;
or when the functional component does not reach the preset position, generating second feedback information.
2. The detection method of the electronic device according to claim 1, wherein the hall sensor comprises a hall sensor and a magnet, the hall sensor is fixedly arranged in the housing, the magnet is arranged in the functional component, and when the functional component moves along the channel, the hall value changes along with the change of the position of the functional component; when the functional component moves along the channel, whether the functional component reaches a preset position is detected by the detection device, and the preset position includes that the functional component is in an extending state or in a containing state:
when the functional component is switched from the extending state to the accommodating state, detecting a Hall value in the movement process of the functional component through the Hall sensor, and when the Hall value reaches a first preset Hall value, determining that the functional component reaches a preset position; or
When the functional component is switched from the accommodating state to the extending state, the Hall value of the functional component in the movement process is detected through the Hall sensor, and when the Hall value reaches a second preset Hall value, the functional component is determined to reach a preset position.
3. The method for detecting the electronic device according to claim 1, wherein the detecting device includes a distance sensor, the distance sensor is connected to the functional component, and the detecting whether the lifting mechanism reaches a preset position by the detecting device while the functional component moves along the channel includes:
detecting the distance of the lifting mechanism in the movement process through the distance sensor;
and judging whether the lifting mechanism reaches a preset position or not according to the distance.
4. The method for detecting the electronic device according to any one of claims 1 to 3, further comprising, after the time period is not greater than a preset time period:
acquiring the motion parameters of the functional component through the detection device;
generating a corresponding motion parameter curve graph according to the motion parameters;
and comparing the curve graph with a preset curve graph, and generating first feedback information when the curve graph is different from the preset curve graph within a preset range.
5. The method for detecting the electronic device according to claim 4, wherein the detecting device comprises an acceleration sensor, the acceleration sensor is connected to the functional component, and the obtaining the motion parameter of the functional component by the detecting device comprises:
acquiring the acceleration of the functional component in the motion process through the acceleration sensor;
generating a corresponding acceleration curve graph according to the acceleration;
and comparing the acceleration curve graph with a preset acceleration curve graph, and generating first feedback information when the acceleration curve graph is different from the preset acceleration curve graph within a preset range.
6. The method for detecting the electronic device according to claim 4, wherein the detecting device comprises a speed sensor, the speed sensor is connected to the functional component, and the obtaining the motion parameter of the functional component by the detecting device comprises:
acquiring the speed of the functional component in the movement process through the speed sensor;
generating a corresponding speed curve graph according to the speed;
and comparing the speed curve graph with a preset speed curve graph, and generating first feedback information when the speed curve graph is different from the preset speed curve graph within a preset range.
7. An electronic device, wherein the electronic device is connected to a controller, the electronic device comprising:
a housing provided with a channel;
a functional component;
the lifting mechanism drives the functional component to move along the channel, so that the functional component is switched between an extending state and a receiving state, wherein the extending state is that the functional component is positioned outside the shell, and the receiving state is that the functional component is positioned in the shell;
the detection device is connected with the functional component and used for detecting the motion parameters of the functional component, and the detection device comprises a Hall sensor which is connected with the functional component; and
a processor coupled to the detection device, the processor configured to:
when the controller drives the functional components corresponding to the electronic equipment to move along the channel, detecting whether the functional components reach preset positions or not through the detection device, wherein Hall values in the movement process of the functional components are detected through the Hall sensors; when the Hall value reaches a preset Hall value, determining that the functional component reaches a preset position; the preset position is the position of the functional component in the extending state or the accommodating state;
when the functional component reaches a preset position, acquiring a time period of the movement of the functional component, wherein the time period is a time period from the start of the movement of the functional component to the arrival of the functional component at the preset position; and
when the time period is not greater than a preset time period, generating first feedback information;
when the time period is greater than a preset time period, generating second feedback information;
or when the functional component does not reach the preset position, generating second feedback information.
CN201911007494.5A 2019-10-22 2019-10-22 Electronic equipment detection method and electronic equipment Active CN110806325B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911007494.5A CN110806325B (en) 2019-10-22 2019-10-22 Electronic equipment detection method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911007494.5A CN110806325B (en) 2019-10-22 2019-10-22 Electronic equipment detection method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110806325A CN110806325A (en) 2020-02-18
CN110806325B true CN110806325B (en) 2022-02-22

Family

ID=69488926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911007494.5A Active CN110806325B (en) 2019-10-22 2019-10-22 Electronic equipment detection method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110806325B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111652856B (en) * 2020-05-19 2022-10-18 Oppo(重庆)智能科技有限公司 In-place detection method and system for lifting mechanism and related device
CN111474600A (en) * 2020-05-28 2020-07-31 Oppo(重庆)智能科技有限公司 Lifting detection device and lifting detection method

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019085535A1 (en) * 2017-10-31 2019-05-09 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Functional device and electronic apparatus
KR102069061B1 (en) * 2018-03-07 2020-01-22 주식회사 트윔 System for taking image of flexible oled cell
CN110307775A (en) * 2018-03-20 2019-10-08 广东欧珀移动通信有限公司 Skid off method for detecting position, detection components and the electronic device of component
CN110311997B (en) * 2018-03-20 2021-04-13 Oppo广东移动通信有限公司 Position detection method of slide-out assembly, detection assembly and electronic device
CN108924286B (en) * 2018-06-08 2020-12-04 Oppo广东移动通信有限公司 Electronic device and control method and device of sliding assembly of electronic device
CN108829185A (en) * 2018-06-08 2018-11-16 Oppo广东移动通信有限公司 The control method of electronic equipment and electronic equipment
CN108989491B (en) * 2018-06-08 2020-06-09 Oppo广东移动通信有限公司 Electronic device, speed control method and related product
CN108833702A (en) * 2018-06-12 2018-11-16 Oppo广东移动通信有限公司 Control method, control assembly, mobile terminal and the storage medium of mobile terminal
CN209497545U (en) * 2019-03-29 2019-10-15 维沃移动通信有限公司 A kind of camera device for detecting distance of travel and terminal
CN110113455B (en) * 2019-04-29 2021-08-13 荣耀终端有限公司 Position detection mechanism, mobile terminal and position detection method

Also Published As

Publication number Publication date
CN110806325A (en) 2020-02-18

Similar Documents

Publication Publication Date Title
EP3713199B1 (en) Camera control method and mobile terminal
US10498873B2 (en) Screen control method, apparatus, and non-transitory tangible computer readable storage medium
CN104021788B (en) Sound-controlled apparatus and acoustic-controlled method
US10610152B2 (en) Sleep state detection method, apparatus and system
KR101933642B1 (en) Method and apparatus for triggering execution of operation instruction
US8929538B2 (en) Method and apparatus for switching talking modes automatically
CN110806325B (en) Electronic equipment detection method and electronic equipment
EP3125093A1 (en) Method and device for application interaction
CN104832446A (en) Method and device for controlling fan
CN107734143B (en) Fault reminding method, mobile terminal and readable storage medium
EP3249505B1 (en) Method and electronic device for controlling a state of a touch screen
US20140335832A1 (en) Method and apparatus for notification of message reception according to property of received message
US10936707B2 (en) Fingerprint circuit, force touch control method and device and computer-readable storage medium
CN105511749A (en) Method and device for equipment control
US20180254014A1 (en) Method and device for adjusting current of backlight, and storage medium
CN105472157A (en) Method and device for monitoring terminal motion state
JP2014171057A (en) Portable device, control method therefor, and program
EP3798789B1 (en) Terminal device and audio processing method
US20160156761A1 (en) Handling voice calls
US20150358445A1 (en) Mobile device including a substantially centrally located earpiece
US20230386494A1 (en) Signal processing method and electronic device
US20170155755A1 (en) Electronic apparatus and method for controlling electronic apparatus
US9584640B2 (en) Portable information processing device, output control method for a projector, and recording medium
CN106078803B (en) Part detection method and device
EP3809401A1 (en) Display control method, device and electronic apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant