A method and terminal for state detection of a foldable smart device
By using the induction information and amplitude changes of the speakers to replace Hall components, the problem of hardware cost and space waste when folding smart devices detect the unfolded and closed states is solved, achieving cost and space savings.
Patent Information
- Application Number
- CN202211719806.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2042-12-30
AI Technical Summary
Existing foldable smart devices require Hall components when detecting the unfolded and closed states, resulting in a waste of hardware costs and internal space.
By obtaining the working status of the speaker, if it is not working, it uses the induction information of the closed voice coil, and if it is working, it uses the current amplitude to determine the opening and closing status of the device, thereby replacing the function of the Hall component.
There is no need to set up additional Hall components, saving hardware costs and internal space, while achieving accurate status detection.
Smart Images

Figure CN116074713B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart devices, and in particular to a state detection method and a terminal for a foldable smart device. Background Art
[0002] An existing foldable smart device is internally provided with a magnetic component for assisting magnetization of the speaker. The unfolded and closed states of the foldable smart device are usually detected by sensing the slight magnetic field changes during the opening and closing process through the Hall elements in the device. This requires that Hall elements must be installed in the foldable smart device, and the cost and stacking space of the Hall elements must be borne, making the internal space smaller. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a state detection method and terminal for a foldable smart device, which can save the hardware cost and internal space of the foldable smart device.
[0004] In order to solve the above technical problems, a technical solution adopted by the present invention is:
[0005] A method for detecting the state of a foldable smart device comprises the following steps:
[0006] Get the working status of the speaker in the foldable smart device;
[0007] If the working state is not working, acquiring sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing state of the foldable smart device based on the sensing information;
[0008] If the working state is working, the current amplitude of the speaker is obtained, and the opening and closing state of the foldable smart device is determined based on the current amplitude.
[0009] In order to solve the above technical problems, another technical solution adopted by the present invention is:
[0010] A state detection terminal for a foldable smart device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0011] Get the working status of the speaker in the foldable smart device;
[0012] If the working state is not working, acquiring sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing state of the foldable smart device based on the sensing information;
[0013] If the working state is working, the current amplitude of the speaker is obtained, and the opening and closing state of the foldable smart device is determined based on the current amplitude.
[0014] The beneficial effects of the present invention are: obtaining the working status of a speaker in a foldable smart device; if the working status is not working, obtaining the sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing status of the foldable smart device based on the sensing information; if the working status is working, obtaining the current amplitude of the speaker, and determining the opening and closing status of the foldable smart device based on the current amplitude, that is, the speaker can realize the sensing function of the Hall element in addition to realizing its own conventional functions, so that there is no need to set up a Hall element in the foldable smart device, thereby saving the hardware cost and internal space of the foldable smart device. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A flowchart of a method for detecting a state of a foldable smart device according to an embodiment of the present invention;
[0016] Figure 2 This is a structural schematic diagram of a state detection terminal for a foldable smart device according to an embodiment of the present invention;
[0017] Figure 3 This is a detection flow chart of a state detection method for a foldable smart device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0018] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in combination with the implementation modes and the accompanying drawings.
[0019] Please refer to Figure 1 The embodiment of the present invention provides a state detection method for a foldable smart device, comprising the steps of:
[0020] Get the working status of the speaker in the foldable smart device;
[0021] If the working state is not working, acquiring sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing state of the foldable smart device based on the sensing information;
[0022] If the working state is working, the current amplitude of the speaker is obtained, and the opening and closing state of the foldable smart device is determined based on the current amplitude.
[0023] From the above description, it can be seen that the beneficial effects of the present invention are: obtaining the working status of the speaker in the foldable smart device, if the working status is not working, then obtaining the sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing state of the foldable smart device based on the sensing information; if the working status is working, then obtaining the current amplitude of the speaker, and determining the opening and closing state of the foldable smart device based on the current amplitude, that is, the speaker can realize the sensing function of the Hall element in addition to realizing its own conventional functions, so that there is no need to set up a Hall element in the foldable smart device, thereby saving the hardware cost and internal space of the foldable smart device.
[0024] Further, the induced information includes induced electromotive force and induced current;
[0025] Determining the opening and closing state of the foldable smart device based on the sensing information includes:
[0026] It is determined whether the induced electromotive force is greater than a first preset value, and whether the induced current is greater than a second preset value. If both are true, it is determined that the opening and closing state of the foldable smart device has changed.
[0027] From the above description, it can be seen that when the speaker is not working, the circuit is still closed and the current is close to 0. When the distance between the booster magnetic component in the speaker and the speaker changes significantly, that is, when the smart device is unfolded or closed, the magnetic field where the closed voice coil is located changes, and induced electromotive force and induced current will be generated in the voice coil. The induced electromotive force and induced current can be used to accurately and effectively determine whether the opening and closing state of the current foldable smart device has changed, thereby replacing the role of the Hall element.
[0028] Further, determining the opening and closing state of the foldable smart device based on the current amplitude includes:
[0029] Acquire an initial amplitude of the speaker and volume adjustment information corresponding to the current amplitude;
[0030] Determine the amplitude change according to the initial amplitude and the current amplitude;
[0031] The opening and closing state of the foldable smart device is determined according to the amplitude change and the volume adjustment information.
[0032] From the above description, it can be seen that the opening and closing state of the foldable smart device is determined according to the amplitude change and the volume adjustment information, so that when the speaker is working, it can be determined whether the current foldable smart device is in the unfolded or closed state, thereby achieving effective state detection.
[0033] Further, the amplitude change includes amplitude reduction;
[0034] The volume adjustment information includes manual adjustment;
[0035] Determining the opening and closing state of the foldable smart device according to the amplitude change and the volume adjustment information includes:
[0036] If the amplitude change is that the amplitude decreases, it is determined whether the volume adjustment information is the manual adjustment. If so, it is determined that the opening and closing state of the foldable smart device has not changed. If not, it is determined that the opening and closing state of the foldable smart device has changed and is in the unfolded state.
[0037] From the above description, it can be seen that when determining the opening and closing state according to the amplitude change, the volume adjustment information is also combined to eliminate the situation where the amplitude is reduced due to manual adjustment of the volume, thereby improving the reliability of the state detection of the foldable smart device.
[0038] Further, the amplitude change includes an increase in amplitude;
[0039] Determining the opening and closing state of the foldable smart device according to the amplitude change and the volume adjustment information includes:
[0040] If the amplitude change is that the amplitude increases, it is determined whether the volume adjustment information is the manual adjustment. If so, it is determined that the opening and closing state of the foldable smart device has not changed. If not, it is determined that the opening and closing state of the foldable smart device has changed and is in a closed state.
[0041] From the above description, it can be seen that when the amplitude increases and the volume is not manually adjusted, it is determined that the opening and closing state of the current foldable smart device has changed and is in a closed state, so that the speaker can replace the function of the Hall element and can also identify the accurate unfolded or closed state, thereby saving the hardware cost and internal space of the foldable smart device.
[0042] Please refer to Figure 2 A state detection terminal for a foldable smart device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:
[0043] Get the working status of the speaker in the foldable smart device;
[0044] If the working state is not working, acquiring sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing state of the foldable smart device based on the sensing information;
[0045] If the working state is working, the current amplitude of the speaker is obtained, and the opening and closing state of the foldable smart device is determined based on the current amplitude.
[0046] From the above description, it can be seen that the beneficial effects of the present invention are: obtaining the working status of the speaker in the foldable smart device, if the working status is not working, then obtaining the sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing state of the foldable smart device based on the sensing information; if the working status is working, then obtaining the current amplitude of the speaker, and determining the opening and closing state of the foldable smart device based on the current amplitude, that is, the speaker can realize the sensing function of the Hall element in addition to realizing its own conventional functions, so that there is no need to set up a Hall element in the foldable smart device, thereby saving the hardware cost and internal space of the foldable smart device.
[0047] Further, the induced information includes induced electromotive force and induced current;
[0048] Determining the opening and closing state of the foldable smart device based on the sensing information includes:
[0049] It is determined whether the induced electromotive force is greater than a first preset value, and whether the induced current is greater than a second preset value. If both are true, it is determined that the opening and closing state of the foldable smart device has changed.
[0050] From the above description, it can be seen that when the speaker is not working, the circuit is still closed and the current is close to 0. When the distance between the booster magnetic component in the speaker and the speaker changes significantly, that is, when the smart device is unfolded or closed, the magnetic field where the closed voice coil is located changes, and induced electromotive force and induced current will be generated in the voice coil. The induced electromotive force and induced current can be used to accurately and effectively determine whether the opening and closing state of the current foldable smart device has changed, thereby replacing the role of the Hall element.
[0051] Further, determining the opening and closing state of the foldable smart device based on the current amplitude includes:
[0052] Acquire an initial amplitude of the speaker and volume adjustment information corresponding to the current amplitude;
[0053] Determine the amplitude change according to the initial amplitude and the current amplitude;
[0054] The opening and closing state of the foldable smart device is determined according to the amplitude change and the volume adjustment information.
[0055] From the above description, it can be seen that the opening and closing state of the foldable smart device is determined according to the amplitude change and the volume adjustment information, so that when the speaker is working, it can be determined whether the current foldable smart device is in the unfolded or closed state, thereby achieving effective state detection.
[0056] Further, the amplitude change includes amplitude reduction;
[0057] The volume adjustment information includes manual adjustment;
[0058] Determining the opening and closing state of the foldable smart device according to the amplitude change and the volume adjustment information includes:
[0059] If the amplitude change is that the amplitude decreases, it is determined whether the volume adjustment information is the manual adjustment. If so, it is determined that the opening and closing state of the foldable smart device has not changed. If not, it is determined that the opening and closing state of the foldable smart device has changed and is in the unfolded state.
[0060] From the above description, it can be seen that when determining the opening and closing state according to the amplitude change, the volume adjustment information is also combined to eliminate the situation where the amplitude is reduced due to manual adjustment of the volume, thereby improving the reliability of the state detection of the foldable smart device.
[0061] Further, the amplitude change includes an increase in amplitude;
[0062] Determining the opening and closing state of the foldable smart device according to the amplitude change and the volume adjustment information includes:
[0063] If the amplitude change is that the amplitude increases, it is determined whether the volume adjustment information is the manual adjustment. If so, it is determined that the opening and closing state of the foldable smart device has not changed. If not, it is determined that the opening and closing state of the foldable smart device has changed and is in a closed state.
[0064] From the above description, it can be seen that when the amplitude increases and the volume is not manually adjusted, it is determined that the opening and closing state of the current foldable smart device has changed and is in a closed state, so that the speaker can replace the function of the Hall element and can also identify the accurate unfolded or closed state, thereby saving the hardware cost and internal space of the foldable smart device.
[0065] The state detection method and terminal of a foldable smart device described above in the present invention can be applied to a foldable smart device with a magnetic component for boosting a speaker, and will be described below through specific implementation methods:
[0066] Embodiment 1
[0067] Please refer to Figure 1 and Figure 3 , a state detection method of a foldable smart device in this embodiment includes the steps of:
[0068] S1. Obtaining the working status of the speaker in the foldable smart device;
[0069] S2. If the working state is not working, obtaining sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing state of the foldable smart device based on the sensing information, such as Figure 3 As shown, specifically including:
[0070] S21. Acquire induction information corresponding to the closed voice coil of the speaker, where the induction information includes an induced electromotive force and an induced current.
[0071] S22, determining whether the induced electromotive force is greater than a first preset value, and whether the induced current is greater than a second preset value, if both are true, determining that the opening and closing state of the foldable smart device has changed, otherwise, determining that the opening and closing state of the foldable smart device has not changed.
[0072] S3. If the working state is working, obtain the current amplitude of the speaker, and determine the opening and closing state of the foldable smart device based on the current amplitude, such as Figure 3 As shown, specifically including:
[0073] S31. Obtain the current amplitude of the speaker.
[0074] In an optional implementation, the current amplitude of the speaker is obtained through a Smart PA (smart power amplifier) on a smart device.
[0075] S32, obtaining an initial amplitude of the speaker and volume adjustment information corresponding to the current amplitude;
[0076] The volume adjustment information includes manual adjustment, and the volume adjustment information is volume adjustment information at the same time as the current amplitude.
[0077] S33, determining the amplitude change according to the initial amplitude and the current amplitude;
[0078] The amplitude change includes amplitude reduction or amplitude increase.
[0079] S34, determining the opening and closing state of the foldable smart device according to the amplitude change and the volume adjustment information, specifically including:
[0080] S341. If the amplitude change is that the amplitude decreases, determine whether the volume adjustment information is the manual adjustment; if so, determine that the opening and closing state of the foldable smart device has not changed; if not, determine that the opening and closing state of the foldable smart device has changed and is in the unfolded state.
[0081] S342. If the amplitude change is that the amplitude increases, determine whether the volume adjustment information is the manual adjustment; if so, determine that the opening and closing state of the foldable smart device has not changed; if not, determine that the opening and closing state of the foldable smart device has changed and is in a closed state.
[0082] Embodiment 2
[0083] Please refer to Figure 2 A state detection terminal for a foldable smart device in this embodiment includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step in the state detection method for a foldable smart device in the first embodiment is implemented.
[0084] In summary, the present invention provides a state detection method and terminal for a foldable smart device, which obtain the working state of a speaker in the foldable smart device; if the working state is not working, the sensing information corresponding to the closed voice coil of the speaker is obtained, and the opening and closing state of the foldable smart device is determined based on the sensing information; if the working state is working, the current amplitude of the speaker is obtained, and the opening and closing state of the foldable smart device is determined based on the current amplitude. Specifically, when determining the opening and closing state according to the amplitude change, the volume adjustment information is also combined to exclude the situation where the amplitude is reduced due to artificial adjustment of the volume, thereby improving the reliability of the state detection of the foldable smart device, that is, the speaker can realize the sensing function of the Hall element in addition to realizing its own conventional functions, so that there is no need to set up a Hall element in the foldable smart device, thereby saving the hardware cost and internal space of the foldable smart device.
[0085] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for detecting the state of a foldable smart device, characterized in that: Includes steps: Get the working status of the speaker in the foldable smart device; If the working state is not working, acquiring sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing state of the foldable smart device based on the sensing information; If the working state is working, obtaining the current amplitude of the speaker, and determining the opening and closing state of the foldable smart device based on the current amplitude; The induction information includes induced electromotive force and induced current; Determining the opening and closing state of the foldable smart device based on the sensing information includes: Determining whether the induced electromotive force is greater than a first preset value, and whether the induced current is greater than a second preset value, and if both are true, determining that the opening and closing state of the foldable smart device has changed; Determining the opening and closing state of the foldable smart device based on the current amplitude includes: Acquire an initial amplitude of the speaker and volume adjustment information corresponding to the current amplitude; Determine the amplitude change according to the initial amplitude and the current amplitude; The opening and closing state of the foldable smart device is determined according to the amplitude change and the volume adjustment information.
2. The state detection method of a foldable smart device according to claim 1, characterized in that: The amplitude change includes amplitude reduction; The volume adjustment information includes manual adjustment; Determining the opening and closing state of the foldable smart device according to the amplitude change and the volume adjustment information includes: If the amplitude change is that the amplitude decreases, it is determined whether the volume adjustment information is the manual adjustment. If so, it is determined that the opening and closing state of the foldable smart device has not changed. If not, it is determined that the opening and closing state of the foldable smart device has changed and is in the unfolded state.
3. The state detection method of a foldable smart device according to claim 2, characterized in that: The amplitude change includes an increase in amplitude; Determining the opening and closing state of the foldable smart device according to the amplitude change and the volume adjustment information includes: If the amplitude change is that the amplitude increases, it is determined whether the volume adjustment information is the manual adjustment. If so, it is determined that the opening and closing state of the foldable smart device has not changed. If not, it is determined that the opening and closing state of the foldable smart device has changed and is in a closed state.
4. A state detection terminal for a foldable smart device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the following steps are implemented: Get the working status of the speaker in the foldable smart device; If the working state is not working, acquiring sensing information corresponding to the closed voice coil of the speaker, and determining the opening and closing state of the foldable smart device based on the sensing information; If the working state is working, obtaining the current amplitude of the speaker, and determining the opening and closing state of the foldable smart device based on the current amplitude; The induction information includes induced electromotive force and induced current; Determining the opening and closing state of the foldable smart device based on the sensing information includes: Determining whether the induced electromotive force is greater than a first preset value, and whether the induced current is greater than a second preset value, and if both are true, determining that the opening and closing state of the foldable smart device has changed; Determining the opening and closing state of the foldable smart device based on the current amplitude includes: Acquire an initial amplitude of the speaker and volume adjustment information corresponding to the current amplitude; Determine the amplitude change according to the initial amplitude and the current amplitude; The opening and closing state of the foldable smart device is determined according to the amplitude change and the volume adjustment information.
5. The state detection terminal of a foldable smart device according to claim 4, characterized in that: The amplitude change includes amplitude reduction; The volume adjustment information includes manual adjustment; Determining the opening and closing state of the foldable smart device according to the amplitude change and the volume adjustment information includes: If the amplitude change is that the amplitude decreases, it is determined whether the volume adjustment information is the manual adjustment. If so, it is determined that the opening and closing state of the foldable smart device has not changed. If not, it is determined that the opening and closing state of the foldable smart device has changed and is in the unfolded state.
6. A state detection terminal for a foldable smart device according to claim 5, characterized in that: The amplitude change includes an increase in amplitude; Determining the opening and closing state of the foldable smart device according to the amplitude change and the volume adjustment information includes: If the amplitude change is that the amplitude increases, it is determined whether the volume adjustment information is the manual adjustment. If so, it is determined that the opening and closing state of the foldable smart device has not changed. If not, it is determined that the opening and closing state of the foldable smart device has changed and is in a closed state.
Citation Information
Patent Citations
Foldable screen opening-closing state determining method and mobile terminal
CN107967202A
Loudspeaker amplitude adjusting device and method, and mobile terminal
CN108430004A
Adjusting method of folding screen terminal, terminal and computer readable storage medium
CN110072008A
Audio control method and device and electronic equipment
CN111510829A
Methods and devices for detecting state of flexible screen, electronic device, and storage medium
EP3889733A1
