CN111131559A - Sliding closure type terminal, sliding closure state detection method and device and storage medium - Google Patents

Sliding closure type terminal, sliding closure state detection method and device and storage medium Download PDF

Info

Publication number
CN111131559A
CN111131559A CN201811291611.0A CN201811291611A CN111131559A CN 111131559 A CN111131559 A CN 111131559A CN 201811291611 A CN201811291611 A CN 201811291611A CN 111131559 A CN111131559 A CN 111131559A
Authority
CN
China
Prior art keywords
output
hall sensor
level
sliding
slide
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811291611.0A
Other languages
Chinese (zh)
Other versions
CN111131559B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811291611.0A priority Critical patent/CN111131559B/en
Publication of CN111131559A publication Critical patent/CN111131559A/en
Application granted granted Critical
Publication of CN111131559B publication Critical patent/CN111131559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/0206Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings
    • H04M1/0208Portable telephones comprising a plurality of mechanically joined movable body parts, e.g. hinged housings characterized by the relative motions of the body parts
    • H04M1/0235Slidable or telescopic telephones, i.e. with a relative translation movement of the body parts; Telephones using a combination of translation and other relative motions of the body parts
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a sliding closure type terminal, a sliding closure state detection method, a sliding closure state detection device and a storage medium, wherein a magnet is arranged in an upper sliding closure of the sliding closure type terminal; a first Hall sensor, a second Hall sensor and a processor are arranged in the lower sliding cover; the first Hall sensor and the second Hall sensor are arranged at a preset distance in the sliding direction of the upper/lower sliding cover; when the sliding cover slides open, the first Hall sensor and the second Hall sensor are both positioned on one side of the magnet in the direction of the first magnetic pole; and in the closed state of the sliding cover, the first Hall sensor and the second Hall sensor are both positioned on one side of the magnet in the direction of the second magnetic pole. According to the method and the device, the output of three states is realized through the two Hall sensors, so that corresponding sliding closure state events can be output in the middle state, and logic control can be performed according to the sliding closure state events in the following process.

Description

Sliding closure type terminal, sliding closure state detection method and device and storage medium
Technical Field
The present disclosure relates to the field of mobile terminals, and in particular, to a slide terminal, a method and an apparatus for detecting a slide state, and a storage medium.
Background
A slide type terminal is a terminal having an upper slide and a lower slide. The slide type terminal is one direction to realize a full screen terminal. The sliding closure type terminal can hide the front camera on the front of the lower sliding closure.
The user can manually slide the upper/lower slide cover of the slide type terminal open or closed. How to detect the sliding state of the up/down sliding cover is a technical problem yet to be solved.
Disclosure of Invention
The embodiment of the disclosure provides a sliding closure type terminal, a sliding closure state detection method, a sliding closure state detection device and a storage medium, which can solve the problem of how to detect the sliding state of the sliding closure type terminal in the sliding-open process or the sliding-in process. The technical scheme is as follows:
according to an aspect of the embodiments of the present disclosure, a slide type terminal is provided, the slide type terminal including an upper slide cover and a lower slide cover, the upper slide cover and the lower slide cover being connected by a slide rail;
a magnet is arranged in the upper sliding cover;
a first Hall sensor, a second Hall sensor and a processor are arranged in the lower sliding cover, and the first Hall sensor and the second Hall sensor are respectively and electrically connected with the processor;
the first Hall sensor and the second Hall sensor are arranged at a preset distance along the sliding direction of the upper/lower sliding cover;
when the sliding cover slides open, the first Hall sensor and the second Hall sensor are both positioned on one side of the magnet in the direction of the first magnetic pole;
and in the closed state of the sliding cover, the first Hall sensor and the second Hall sensor are both positioned on one side of the magnet in the direction of the second magnetic pole.
In an alternative embodiment, the processor is configured to output a slide cover slide-off event when the output level of the first hall sensor and the second hall sensor is 10 when the output levels of the first hall sensor and the second hall sensor sequentially change in 01, 11 and 10;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first Hall sensor and the second Hall sensor are sequentially changed according to 10, 11 and 01;
wherein the 1 represents a first level and the 0 represents a second level.
In an alternative embodiment, the processor is configured to output a slide-open event when the output level of the first hall sensor and the second hall sensor is 00 when the output levels of the first hall sensor and the second hall sensor are sequentially changed in the order of 01, 11, 10, 00;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor are changed according to the sequence of 00, 10, 11 and 01;
wherein the 1 represents a first level and the 0 represents a second level.
In an alternative embodiment, the processor is configured to output a slide-open event when the output level of the first hall sensor and the second hall sensor is 00 when the output levels of the first hall sensor and the second hall sensor are sequentially changed in the order of 01, 11, 10, 00;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor are changed according to the sequence of 00, 10, 11 and 01;
wherein the 1 represents a first level and the 0 represents a second level.
In an alternative embodiment, the processor is configured to output a slide-open event when the output level of the first hall sensor and the second hall sensor is 00 when the output levels of the first hall sensor and the second hall sensor are sequentially changed in 01, 11, 01, 00;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor are changed according to the 00, 01, 11 and 01 sequence;
wherein the 1 represents a first level and the 0 represents a second level.
In an optional embodiment, the processor is configured to output a slide cover slide-off event when the output level of the first hall sensor and the second hall sensor is 00 when the output levels of the first hall sensor and the second hall sensor are changed in the order of 01 and 00;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the 00 and 01 sequences;
wherein the 1 represents a first level and the 0 represents a second level.
According to another aspect of the present application, there is provided a slide state detecting method applied to the slide terminal as described above, the method including:
monitoring output levels of the first Hall sensor and the second Hall sensor;
when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11 and 10, outputting a sliding cover sliding event when the output level is 10;
when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the sequence of 10, 11 and 01, outputting a sliding closure closing event when the output level is 01;
wherein the 1 represents a first level and the 0 represents a second level.
According to another aspect of the present application, there is provided a slide state detecting method applied to the slide terminal as described above, the method including:
monitoring output levels of the first Hall sensor and the second Hall sensor;
when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11, 10 and 00, outputting a sliding cover sliding event when the output level is 00;
and when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the sequence of 00, 10, 11 and 01, outputting a sliding closure closing event when the output level is 01.
According to another aspect of the present application, there is provided a slide state detecting method applied to the slide terminal as described above, the method including:
monitoring output levels of the first Hall sensor and the second Hall sensor;
when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11, 01 and 00, outputting a sliding cover sliding event when the output level is 00;
when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the sequence of 00, 01, 11 and 01, outputting a sliding closure event when the output level is 01;
wherein the 1 represents a first level and the 0 represents a second level.
According to another aspect of the present application, there is provided a slide state detecting method applied to the slide terminal as described above, the method including:
monitoring output levels of the first Hall sensor and the second Hall sensor;
when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01 and 00, outputting a sliding cover sliding event when the output level is 00;
when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the 00 and 01 sequences, outputting a sliding closure event when the output level is 01;
wherein the 1 represents a first level and the 0 represents a second level.
According to another aspect of the present application, there is provided a slide state detecting device applied to the slide terminal as described above, the device including:
a monitoring module configured to monitor output levels of the first and second Hall sensors;
when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11 and 10, outputting a sliding cover sliding event when the output level is 10;
when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the sequence of 10, 11 and 01, outputting a sliding closure closing event when the output level is 01;
wherein the 1 represents a first level and the 0 represents a second level.
According to another aspect of the present application, there is provided a slide state detecting device applied to the slide terminal as described above, the device including:
a monitoring module configured to monitor output levels of the first and second Hall sensors;
an output module configured to output a slide cover slide-off event when an output level of the first and second hall sensors is 00 when the output level is changed in a sequence of 01, 11, 10, 00;
the output module is further configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor change in the order of 00, 10, 11, 01.
According to another aspect of the present application, there is provided a slide state detecting device applied to the slide terminal as described above, the device including:
a monitoring module configured to monitor output levels of the first and second Hall sensors;
an output module configured to output a slide cover slide-off event when an output level of the first and second hall sensors is 00 when the output level is changed in a sequence of 01, 11, 01, 00;
the output module is further configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor change according to the 00, 01, 11 and 01 sequence;
wherein the 1 represents a first level and the 0 represents a second level.
According to another aspect of the present application, there is provided a slide state detecting device applied to the slide terminal as described above, the device including:
a monitoring module configured to monitor output levels of the first and second Hall sensors;
an output module configured to output a sliding cover slide-open event when an output level of the first hall sensor and the second hall sensor changes in a sequence of 01, 00, the output level being 00;
the output module is further configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor change according to the 00 and 01 sequences;
wherein the 1 represents a first level and the 0 represents a second level.
According to another aspect of the present application, there is provided a computer-readable storage medium storing a computer program configured to implement the slide cover state detection method as described above when the computer program is executed by a processor.
According to another aspect of the present application, a computer program product is provided, the computer program product storing a computer program which, when executed by a processor, is configured to implement the slide status detection method as described above.
The technical scheme provided by the embodiment of the disclosure at least comprises the following beneficial effects:
the detection of the state of the sliding cover is realized through the two Hall sensors and the magnet, the state judgment of the state of the sliding cover can be accurately realized based on the level change in three stages, and the sliding cover state event can be timely output at the middle position in the sliding process, so that the quick start of the subsequent control logic is facilitated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, are configured to explain the principles of the disclosure.
Fig. 1 is an external view schematically illustrating a slide type terminal according to an exemplary embodiment of the present disclosure;
fig. 2 is a schematic structural view of a slide type terminal according to another exemplary embodiment of the present disclosure;
fig. 3 is a schematic diagram of output levels of the dual hall sensors of the slide type terminal provided in the embodiment of fig. 2 during the sliding process;
fig. 4 is a schematic structural view of a slide type terminal according to another exemplary embodiment of the present disclosure;
fig. 5 is a schematic diagram of output levels of the dual hall sensors of the slide type terminal provided in the embodiment of fig. 4 during the sliding process;
fig. 6 is a schematic diagram of output levels of the dual hall sensors of the slide type terminal provided in the embodiment of fig. 4 during the sliding process;
fig. 7 is a schematic diagram of output levels of the dual hall sensors of the slide type terminal provided in the embodiment of fig. 4 during the sliding process;
fig. 8 is a schematic diagram of a method for detecting a state of a sliding cover according to an exemplary embodiment of the present disclosure;
fig. 9 is a schematic diagram of a method for detecting a state of a sliding cover according to an exemplary embodiment of the present disclosure;
fig. 10 is a schematic diagram of a method for detecting a state of a sliding cover according to an exemplary embodiment of the present disclosure;
fig. 11 is a schematic diagram of a method for detecting a state of a sliding cover according to an exemplary embodiment of the present disclosure;
fig. 12 is a block diagram of a slide cover state detection apparatus provided in an exemplary embodiment of the present disclosure;
fig. 13 is a block diagram of a slide type terminal provided in an exemplary embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The full-face screen is the development trend of the mobile terminal. The difficulty in realizing the full-screen is how to cancel or hide devices such as a front-facing camera, a distance sensor, a microphone, a fingerprint sensor, a physical key and the like on the front face of the terminal, so that the proportion of the display screen is increased as much as possible.
Fig. 1 schematically illustrates an external view of a slide type terminal 100 according to an exemplary embodiment of the present disclosure. The slide type terminal 100 includes: the upper sliding cover 120 and the lower sliding cover 140 are connected by a sliding rail. The upper slide cover 120 and the lower slide cover 140 can be switched between a slide-open state and a closed state.
The slide-open state refers to a state in which a relative sliding distance between the upper slide cover 120 and the lower slide cover 140 is greater than a preset value. In the slide-open state, the front camera 12 on the front surface of the lower slide cover 140 is exposed.
The closed state is a state in which the relative sliding distance between upper sliding cover 120 and lower sliding cover 140 is zero, that is, the front positions of upper sliding cover 102 and lower sliding cover 140 are coincident. In the closed state, the front camera 12 on the front surface of the lower slide cover 140 is in an unexposed state.
Optionally, a slide detection assembly and a slide-assist assembly are disposed between the upper slide cover 120 and the lower slide cover 140.
On one hand, the sliding detection component is configured to detect whether a relative sliding distance between the upper sliding cover 102 and the lower sliding cover 140 along a sliding direction reaches a threshold value when a user starts to slide the upper sliding cover and the lower sliding cover, and report a sliding event of the sliding cover when the relative sliding distance reaches the threshold value. The sliding-cover sliding-assistant component is used for controlling the upper sliding cover 120 and the lower sliding cover 140 to automatically slide when the sliding-cover slides open according to the sliding-cover sliding event until the sliding-cover sliding-assistant component is completely switched to the sliding-open state from the closed state.
On the other hand, the sliding detection component is configured to detect whether a relative sliding distance between the upper sliding cover 102 and the lower sliding cover 140 along the sliding direction reaches a threshold value when the user starts to slide the upper sliding cover and the lower sliding cover, and report a sliding cover closing event when the relative sliding distance reaches the threshold value. The sliding cover sliding-assistant assembly is used for controlling the upper sliding cover 120 and the lower sliding cover 140 to automatically slide when the sliding cover is closed according to the sliding event until the sliding state is completely switched to the closed state.
The above-described slip detection assembly may be implemented by one magnet and two hall sensors. The hall sensor is an electronic device that generates an output voltage by a hall effect, which means that when a current passes through a hall semiconductor located in a magnetic field from one end to the other end, electrons in the current are shifted in a lateral direction of the hall semiconductor by a lorentz force, so that the hall semiconductor generates a potential difference. The potential difference generated by the Hall semiconductor through the Hall effect is the Hall voltage.
Fig. 2 shows a schematic structural diagram of a slide type terminal 100 according to another exemplary embodiment of the present application. The slide type terminal 100 includes: an upper slide cover 120 and a lower slide cover 140.
The upper sliding cover 120 and the lower sliding cover 140 are connected by a sliding rail (not shown).
A magnet 122 is disposed within the upper slider 120. Optionally, the magnet comprises a first pole and a second pole. In this embodiment, the first magnetic pole is an N pole, the second magnetic pole is an S pole, and the magnetic force lines of the magnet are oriented from the N pole to the S pole. Optionally, the front surface of the upper sliding cover 120 is further provided with a touch screen, and the screen occupancy of the touch screen is greater than a threshold, for example, the screen occupancy of the touch screen is greater than 90%.
The lower sliding cover 140 is provided with a first hall sensor 142, a second hall sensor 144 and a processor 146, and the first hall sensor 142 and the second hall sensor 144 are electrically connected with the processor 146 respectively. Optionally, the processor 146 is also connected to a memory 148. Optionally, the first hall sensor 142 and the second hall sensor 144 are respectively connected to a GPIO (General Purpose Input/Output) interface of the processor 146. Optionally, at least one of a motion sensor, a front camera, a rear camera, a communication chip, a physical interface, a microphone, a speaker, and an antenna is further disposed in the lower sliding cover 140.
The first and second hall sensors 142 and 144 are disposed at a preset distance d in the sliding direction of the upper and lower sliding covers. The preset distance d may be determined by a developer according to the total sliding length L of the upper and lower sliding covers, and the preset distance d is a distance less than L. Optionally, the midpoint of the preset distance d coincides with the midpoint of the total sliding length L.
In the state where the slide cover is slid open, the first hall sensor 142 and the second hall sensor 144 are both located on one side in the direction of the first magnetic pole of the magnet 122. Optionally, the first magnetic pole is an N-pole. One side of the direction of the first magnetic pole does not include the position right below the first magnetic pole.
In the closed state of the slide cover, the first hall sensor 142 and the second hall sensor are both located on one side of the magnet 122 in the direction of the second magnetic pole. Optionally, the second magnetic pole is an S-pole. One side in the direction of the second magnetic pole does not include the position right below the second magnetic pole.
Alternatively, when the direction of the magnetic flux line component in the vertical direction in the drawing is changed, the output level is also changed.
In a scenario where the magnet 122 is not interfered by other magnetic fields, that is, in a normal operation mode of the slide detection assembly:
fig. 3 is a schematic diagram illustrating a level change of the slide type terminal 100 shown in fig. 2 during a sliding process.
In the closed state 31, the first hall sensor 142 and the second hall sensor 144 are both located on one side of the direction of the N pole of the magnet 122, the first hall sensor 142 is close to the magnet 122, the magnetic line of force of the magnet 122 from top to bottom passes through the first hall sensor 142, at this time, the output level of the first hall sensor 142 is a first level 0, and the first level 0 may be a low level; the second hall sensor 144 is farther from the magnet 122 and less influenced by the magnet 122, and the output level of the second hall sensor 144 is the second level 1, and the second level 1 may be a high level. That is, in the closed state, the output levels of the first and second hall sensors 142 and 144 are 01.
When the magnet 122 slides to a position right above the first hall sensor 142, the magnetic line component in the vertical direction received by the first hall sensor 142 becomes 0, and the magnetic line component in the horizontal direction is not 0; when the magnet 122 continues to slide in the sliding direction, the vertical magnetic flux component received by the first hall sensor 142 changes from bottom to top. At this time, the output level of the first hall sensor 142 changes from the first level 0 to the second level 1.
In the intermediate state 32, the output levels of the first hall sensor 142 and the second hall sensor 144 are 11.
When the magnet 122 slides to a position right above the second hall sensor 144, the magnetic line component in the vertical direction received by the second hall sensor 144 becomes 0, and the magnetic line component in the horizontal direction is not 0; when the magnet 122 continues to slide in the slide-off direction, the vertical magnetic flux component received by the second hall sensor 144 changes from top to bottom. At this time, the output level of the second hall sensor 144 changes from the second level 1 to the first level 0.
In the slide-off state 32, the output levels of the first and second hall sensors 142 and 144 are 10.
That is, when the upper and lower sliders 120 and 140 are relatively slid in the slide-open direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the sequence of 01 → 11 → 10, and the program code executed by the processor 146 generates and outputs a slide-open event at an output level of 10. The sliding cover slide-open event can be output to an operating system and an application layer located at an upper layer. When the operating system receives the sliding event, the sliding assisting assembly can be controlled to drive the upper sliding cover 120 and the lower sliding cover 140 to automatically slide until the sliding event is completely in the sliding state.
Conversely, when the upper and lower sliders 120 and 140 are relatively slid in the closing direction, the output levels of the first and second hall sensors 142 and 144 transition in the order of 10 → 11 → 01, and the program code executed by the processor 146 generates and outputs a slider closing event when the output level is 01. The sliding closure event may be output to an operating system and an application layer located at an upper layer. When the operating system receives the sliding closure event, the sliding closure sliding assistance assembly may be controlled to drive the upper sliding closure 120 and the lower sliding closure 140 to automatically slide until the sliding closure is completely closed.
In summary, the slide-type terminal provided in this embodiment detects the state of the slide cover through two hall sensors and one magnet, can realize a more accurate state judgment of the state of the slide cover based on the level change in three stages, and can output a slide-cover state event in time at the middle position of the sliding process, thereby facilitating the quick start of the subsequent control logic.
Meanwhile, when the center point of the preset distance d is coincident with the center point of the maximum sliding process, due to the symmetry of the first Hall sensor and the second Hall sensor in the sliding process, sliding closure state events are generated in two sliding directions at almost the same triggering distance, and the consistency of user experience is ensured.
However, the inventor found that, in the process of manufacturing the sliding-type terminal 100, other electronic devices that are easily magnetized exist in the sliding-type terminal 100, for example, the USB control board needs to be connected to the main board through a flexible circuit board (commonly called a flat cable), and a strip-shaped thin steel sheet exists on the plug-in connector of the flexible circuit board, and is influenced by an external magnetic field in the manufacturing process, and is magnetized with a certain probability (for example, 3%). The magnetized thin steel sheet can affect the normal operation of the Hall sensor.
Fig. 4 shows a schematic position of the disturbing magnetic member 160. The disturbing magnetic member 160 is located near the first hall sensor 142, and the magnetic pole direction of the disturbing magnetic member 160 is the same as the magnetic pole direction of the magnet 122, so that the magnetic line component of the magnetic lines of force generated by the disturbing magnetic member 160 in the vertical direction is from top to bottom for the first hall sensor 142.
The intensity of the disturbing magnetization of the magnetic component can be divided into: weaker, medium and stronger magnetization. The output level variation of the dual hall sensor in these three cases is explained below using three different embodiments.
First, a scenario where the interfering magnetic component is weakly magnetized;
fig. 5 is a schematic diagram illustrating a level change of the slide type terminal 100 shown in fig. 4 during a sliding process.
In the closed state 31, the first hall sensor 142 and the second hall sensor 144 are both located on one side of the direction of the N pole of the magnet 122, the first hall sensor 142 is close to the magnet 122, the magnetic line of force of the magnet 122 from top to bottom passes through the first hall sensor 142, and meanwhile, the magnetic line of force component of the interference magnetic component 160 from top to bottom also passes through the first hall sensor 142, that is, the sum of the magnetic line of force components of the first hall sensor 142 in the vertical direction is from top to bottom, at this time, the output level of the first hall sensor 142 is a first level 0, and the first level 0 may be a low level; the second hall sensor 144 is farther from the magnet 122 and the interfering magnetic member 160, and is less affected by the magnet 122, and the output level of the second hall sensor 144 is a second level 1, which may be a high level. That is, in the closed state, the output levels of the first and second hall sensors 142 and 144 are 01.
When the magnet 122 slides to a position directly above the first hall sensor 142, the magnetic line component of the magnet 122 to the first hall sensor 142 in the vertical direction becomes 0, but the magnetic line component of the interfering magnetic member 160 in the vertical direction is not 0 (still from top to bottom), and the output level of the first hall sensor 142 is 0. When the magnet 122 continues to move to the right for a distance, the magnetic line component of the magnet 122 to the first hall sensor 142 in the vertical direction changes from bottom to top, the sum of the magnetic line component of the magnet 122 to the magnetic interference component 160 in the vertical direction is offset to 0, and the output level of the first hall sensor 142 changes from the first level 0 to the second level 1.
In the intermediate state 32a, the output levels of the first hall sensor 142 and the second hall sensor 144 are 11.
When the magnet 122 continues to slide rightward, the sum of the magnetic line components of the magnet 122 and the interfering magnetic member 160 in the vertical direction to the second hall sensor 122 is cancelled to 0, resulting in the output level of the second hall sensor 143 changing from the second level 1 to the first level 0.
In the intermediate state 32c, the output levels of the first and second hall sensors 142 and 144 are 10.
When the magnet 122 continues to slide, although the magnet 122 has moved away from the first hall sensor 142, the first hall sensor 142 still receives the magnetic flux line component from top to bottom interfering with the magnetic member 160 in the vertical direction, and the output level of the first hall sensor 142 changes from the second level 1 to the first level 0.
In the slide-open state 32, the output levels of the first hall sensor 142 and the second hall sensor 144 are 00.
That is, when the upper and lower sliders 120 and 140 are relatively slid in the slide-open direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the order of 01 → 11 → 10 → 00, and the program code executed by the processor 146 generates and outputs a slide-open event when the output level is 00. The sliding cover slide-open event can be output to an operating system and an application layer located at an upper layer. When the operating system receives the sliding event, the sliding assisting assembly can be controlled to drive the upper sliding cover 120 and the lower sliding cover 140 to automatically slide until the sliding event is completely in the sliding state.
In contrast, when the upper and lower sliders 120 and 140 are relatively slid in the closing direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the order of 00 → 10 → 11 → 01, and the program code executed by the processor 146 generates and outputs a slider closing event when the output level is 01. The sliding closure event may be output to an operating system and an application layer located at an upper layer. When the operating system receives the sliding closure event, the sliding closure sliding assistance assembly may be controlled to drive the upper sliding closure 120 and the lower sliding closure 140 to automatically slide until the sliding closure is completely closed.
Second, scenes of medium magnetization in the interfering magnetic component;
fig. 6 is a schematic diagram illustrating a level change of the slide type terminal 100 shown in fig. 4 during a sliding process. Unlike fig. 5, since the magnetic field of the disturbing magnetic member is strong, the time at which the output level of the first hall sensor 142 changes from the second level 1 to the first level 0 is advanced, that is, the falling edge timing at which the output level of the first hall sensor 142 changes from the high level to the low level is earlier than the falling edge timing at which the output level of the second hall sensor 144 changes from the high level to the low level.
That is, when the upper and lower sliders 120 and 140 are relatively slid in the slide-open direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the order of 01 → 11 → 01 → 00, and the program code executed by the processor 146 generates and outputs a slide-open event when the output level is 00. The sliding cover slide-open event can be output to an operating system and an application layer located at an upper layer. When the operating system receives the sliding event, the sliding assisting assembly can be controlled to drive the upper sliding cover 120 and the lower sliding cover 140 to automatically slide until the sliding event is completely in the sliding state.
In contrast, when the upper and lower sliders 120 and 140 are relatively slid in the closing direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the order of 00 → 01 → 11 → 01, and the program code executed by the processor 146 generates and outputs a slider closing event when the output level is 01. The sliding closure event may be output to an operating system and an application layer located at an upper layer. When the operating system receives the sliding closure event, the sliding closure sliding assistance assembly may be controlled to drive the upper sliding closure 120 and the lower sliding closure 140 to automatically slide until the sliding closure is completely closed.
Third, the scenario of strong magnetization of the interfering magnetic component:
fig. 7 is a schematic diagram illustrating a level change of the slide type terminal 100 shown in fig. 4 during a sliding process.
Unlike fig. 6, since the magnetic field of the disturbing magnetic member is too strong, the output level of the first hall sensor 142 may be maintained at the first level 0 and only the output level of the second hall sensor 144 may be changed from high to low in the closed state 31, the intermediate state 32e, and the slide-open state 33.
That is, when the upper slider 120 and the lower slider 140 slide relatively in the slide-open direction, the output levels of the first hall sensor 142 and the second hall sensor 144 transition in the order of 01 → 00, and the program code executed by the processor 146 generates and outputs a slider slide-open event when the output level is 00. The sliding cover slide-open event can be output to an operating system and an application layer located at an upper layer. When the operating system receives the sliding event, the sliding assisting assembly can be controlled to drive the upper sliding cover 120 and the lower sliding cover 140 to automatically slide until the sliding event is completely in the sliding state.
Conversely, when the upper and lower sliders 120 and 140 are relatively slid in the closing direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the 00 → 01 order, and the program code executed by the processor 146 generates and outputs a slider closing event when the output level is 01. The sliding closure event may be output to an operating system and an application layer located at an upper layer. When the operating system receives the sliding closure event, the sliding closure sliding assistance assembly may be controlled to drive the upper sliding closure 120 and the lower sliding closure 140 to automatically slide until the sliding closure is completely closed.
Fig. 8 shows a flowchart of a method for detecting a state of a sliding cover according to an exemplary embodiment of the present application. The method can be applied to the sliding-type terminal shown in fig. 2, and is suitable for the normal detection process under the condition that the sliding-type terminal is not interfered by other magnetic fields. The method comprises the following steps:
step 801, monitoring output levels of a first Hall sensor and a second Hall sensor;
and the output ends of the first Hall sensor and the second Hall sensor are respectively connected with the GPIO port of the processor.
Step 802, when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11 and 10, outputting a sliding cover sliding event when the output level is 10;
referring to fig. 2 and 3 in combination, in the closed state 31, the first hall sensor 142 and the second hall sensor 144 are both located on one side of the direction of the N pole of the magnet 122, the first hall sensor 142 is closer to the magnet 122, the magnetic line of force of the magnet 122 from top to bottom passes through the first hall sensor 142, and the output level of the first hall sensor 142 is a first level 0, where the first level 0 may be a low level; the second hall sensor 144 is farther from the magnet 122 and less influenced by the magnet 122, and the output level of the second hall sensor 144 is the second level 1, and the second level 1 may be a high level. That is, in the closed state, the output levels of the first and second hall sensors 142 and 144 are 01.
When the magnet 122 slides to a position right above the first hall sensor 142, the magnetic line component in the vertical direction received by the first hall sensor 142 becomes 0, and the magnetic line component in the horizontal direction is not 0; when the magnet 122 continues to slide in the sliding direction, the vertical magnetic flux component received by the first hall sensor 142 changes from bottom to top. At this time, the output level of the first hall sensor 142 changes from the first level 0 to the second level 1.
In the intermediate state 32, the output levels of the first hall sensor 142 and the second hall sensor 144 are 11.
When the magnet 122 slides to a position right above the second hall sensor 144, the magnetic line component in the vertical direction received by the second hall sensor 144 becomes 0, and the magnetic line component in the horizontal direction is not 0; when the magnet 122 continues to slide in the slide-off direction, the vertical magnetic flux component received by the second hall sensor 144 changes from top to bottom. At this time, the output level of the second hall sensor 144 changes from the second level 1 to the first level 0.
In the slide-off state 32, the output levels of the first and second hall sensors 142 and 144 are 10.
And after monitoring the level change, the processor generates and outputs a sliding cover sliding event when the output level is 10.
And 803, when the levels output by the first Hall sensor and the second Hall sensor respectively change according to the sequence of 10, 11 and 01, outputting a sliding closure closing event when the output level is 01.
Conversely, when the upper and lower sliders 120 and 140 are relatively slid in the closing direction, the output levels of the first and second hall sensors 142 and 144 transition in the order of 10 → 11 → 01, and the program code executed by the processor 146 generates and outputs a slider closing event when the output level is 01.
In summary, the method for detecting the state of the sliding cover provided by this embodiment can realize more accurate state judgment of the state of the sliding cover based on the level changes in the three stages, and can output the sliding cover state event in time at the middle position of the sliding process, which is beneficial to the quick start of the subsequent control logic.
Meanwhile, when the center point of the preset distance d is coincident with the center point of the maximum sliding process, due to the symmetry of the first Hall sensor and the second Hall sensor in the sliding process, sliding closure state events are generated in two sliding directions at almost the same triggering distance, and the consistency of user experience is ensured.
Fig. 9 shows a flowchart of a method for detecting a state of a sliding cover according to an exemplary embodiment of the present application. The method can be applied to the sliding-cover type terminal shown in fig. 2, and is suitable for the detection process under the interference magnetic field component which is magnetized weakly. The method comprises the following steps:
step 901, monitoring output levels of a first Hall sensor and a second Hall sensor;
and the output ends of the first Hall sensor and the second Hall sensor are respectively connected with the GPIO port of the processor.
Step 902, when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11, 10 and 00, outputting a sliding cover sliding event when the output level is 00;
with reference to fig. 4 and fig. 5, in the closed state 31, the first hall sensor 142 and the second hall sensor 144 are both located on one side of the direction of the N pole of the magnet 122, the first hall sensor 142 is closer to the magnet 122, the magnetic line of force of the magnet 122 from top to bottom passes through the first hall sensor 142, and meanwhile, the magnetic line of force component of the interference magnetic component 160 from top to bottom also passes through the first hall sensor 142, that is, the sum of the magnetic line of force components of the first hall sensor 142 in the vertical direction is from top to bottom, at this time, the output level of the first hall sensor 142 is a first level 0, and the first level 0 may be a low level; the second hall sensor 144 is farther from the magnet 122 and the interfering magnetic member 160, and is less affected by the magnet 122, and the output level of the second hall sensor 144 is a second level 1, which may be a high level. That is, in the closed state, the output levels of the first and second hall sensors 142 and 144 are 01.
When the magnet 122 slides to a position directly above the first hall sensor 142, the magnetic line component of the magnet 122 to the first hall sensor 142 in the vertical direction becomes 0, but the magnetic line component of the interfering magnetic member 160 in the vertical direction is not 0 (still from top to bottom), and the output level of the first hall sensor 142 is 0. When the magnet 122 continues to move to the right for a distance, the magnetic line component of the magnet 122 to the first hall sensor 142 in the vertical direction changes from bottom to top, the sum of the magnetic line component of the magnet 122 to the magnetic interference component 160 in the vertical direction is offset to 0, and the output level of the first hall sensor 142 changes from the first level 0 to the second level 1.
In the intermediate state 32a, the output levels of the first hall sensor 142 and the second hall sensor 144 are 11.
When the magnet 122 continues to slide rightward, the sum of the magnetic line components of the magnet 122 and the interfering magnetic member 160 in the vertical direction to the second hall sensor 122 is cancelled to 0, resulting in the output level of the second hall sensor 143 changing from the second level 1 to the first level 0.
In the intermediate state 32c, the output levels of the first and second hall sensors 142 and 144 are 10.
When the magnet 122 continues to slide, although the magnet 122 has moved away from the first hall sensor 142, the first hall sensor 142 still receives the magnetic flux line component from top to bottom interfering with the magnetic member 160 in the vertical direction, and the output level of the first hall sensor 142 changes from the second level 1 to the first level 0.
In the slide-open state 32, the output levels of the first hall sensor 142 and the second hall sensor 144 are 00.
That is, when the upper and lower sliders 120 and 140 are relatively slid in the slide-open direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the order of 01 → 11 → 10 → 00, and the program code executed by the processor 146 generates and outputs a slide-open event when the output level is 00.
And step 903, when the levels output by the first Hall sensor and the second Hall sensor respectively change according to the sequence of 00, 10, 11 and 01, outputting a sliding closure closing event when the output level is 01.
In contrast, when the upper and lower sliders 120 and 140 are relatively slid in the closing direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the order of 00 → 10 → 11 → 01, and the program code executed by the processor 146 generates and outputs a slider closing event when the output level is 01.
In summary, the method for detecting the state of the sliding cover provided by this embodiment implements detection of the state of the sliding cover through two hall sensors and one magnet, can implement relatively accurate state judgment of the state of the sliding cover based on level changes in four stages without hardware changes in a scene where a weakly magnetized interfering magnetic component exists, and can output a sliding cover state event in time at a middle position of a sliding process, thereby facilitating quick start of a subsequent control logic.
Fig. 10 shows a flowchart of a method for detecting a state of a sliding cover according to an exemplary embodiment of the present application. The method can be applied to the sliding-cover type terminal shown in fig. 2, and is suitable for the detection process under the interference magnetic field component with medium magnetization. The method comprises the following steps:
step 901, monitoring output levels of a first Hall sensor and a second Hall sensor;
and the output ends of the first Hall sensor and the second Hall sensor are respectively connected with the GPIO port of the processor.
Step 902, when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11 and 10, outputting a sliding cover sliding event when the output level is 10;
referring to fig. 4 and 6 in combination, unlike fig. 5, the time when the output level of the first hall sensor 142 changes from the second level 1 to the first level 0 is advanced due to the strong magnetic field of the interfering magnetic member, that is, the falling edge timing when the output level of the first hall sensor 142 changes from the high level to the low level is earlier than the falling edge timing when the output level of the second hall sensor 144 changes from the high level to the low level.
That is, when the upper and lower sliders 120 and 140 are relatively slid in the slide-open direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the order of 01 → 11 → 01 → 00, and the program code executed by the processor 146 generates and outputs a slide-open event when the output level is 00.
And step 903, when the levels output by the first Hall sensor and the second Hall sensor respectively change according to the sequence of 10, 11 and 01, outputting a sliding closure closing event when the output level is 01.
In contrast, when the upper and lower sliders 120 and 140 are relatively slid in the closing direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the order of 00 → 01 → 11 → 01, and the program code executed by the processor 146 generates and outputs a slider closing event when the output level is 01.
In summary, the method for detecting the state of the sliding cover provided by this embodiment implements detection of the state of the sliding cover through two hall sensors and one magnet, can implement relatively accurate state judgment of the state of the sliding cover based on level changes in four stages without hardware changes in a scene where a moderately magnetized interfering magnetic component exists, and can output a sliding cover state event in time at a middle position of a sliding process, thereby facilitating quick start of a subsequent control logic.
Fig. 11 shows a flowchart of a method for detecting a state of a sliding cover according to an exemplary embodiment of the present application. The method can be applied to the sliding-cover type terminal shown in fig. 2, and is suitable for the detection process under the interference magnetic field component with medium magnetization. The method comprises the following steps:
step 901, monitoring output levels of a first Hall sensor and a second Hall sensor;
and the output ends of the first Hall sensor and the second Hall sensor are respectively connected with the GPIO port of the processor.
Step 902, when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11 and 10, outputting a sliding cover sliding event when the output level is 10;
referring to fig. 4 and 7 in combination, unlike fig. 6, since the magnetic field of the interference magnetic member is too strong, the output level of the first hall sensor 142 may be maintained at the first level 0, and only the output level of the second hall sensor 144 may be changed from high to low.
That is, when the upper slider 120 and the lower slider 140 slide relatively in the slide-open direction, the output levels of the first hall sensor 142 and the second hall sensor 144 transition in the order of 01 → 00, and the program code executed by the processor 146 generates and outputs a slider slide-open event when the output level is 00.
And step 903, when the levels output by the first Hall sensor and the second Hall sensor respectively change according to the sequence of 10, 11 and 01, outputting a sliding closure closing event when the output level is 01.
Conversely, when the upper and lower sliders 120 and 140 are relatively slid in the closing direction, the output levels of the first and second hall sensors 142 and 144 are shifted in the 00 → 01 order, and the program code executed by the processor 146 generates and outputs a slider closing event when the output level is 01.
In summary, the method for detecting the state of the sliding cover provided by this embodiment implements detection of the state of the sliding cover through two hall sensors and one magnet, can implement relatively accurate state judgment of the state of the sliding cover based on level changes in two stages without hardware changes in a scene where a strongly magnetized interfering magnetic component exists, and can output a sliding cover state event in time at a middle position of a sliding process, thereby facilitating quick start of a subsequent control logic.
It should be noted that the above-mentioned slide closure event can be used for various subsequent judgment logics. For example, when there is a slide-open event or a slide-close event, the slide-aid assembly controls the relative sliding between the upper slide cover and the lower slide cover; for another example, when there is a slide-open event, the antenna that is working is switched from the lower antenna to the upper antenna; for another example, when there is a slide-open event, the front camera is automatically started to take a picture.
Another point to be noted is that experimental data shows that the magnetized ratio of the magnetic component is about 3%, that is, 97 un-magnetized and 3 magnetized components are generated for 100 sliding terminals. Since the magnetized disturbing magnetic components account for only 3% of the total number, while in the 3 cases (weaker magnetization, medium magnetization, stronger magnetization), the number of weaker magnetizations > the number of medium magnetizations > the number of stronger magnetizations. That is, the proportion of the magnetization intensity and the intensity of the magnetization intensity form a positive correlation. Therefore, the judgment logics of the four method embodiments can also be comprehensively realized into the same embodiment, the processor outputs the sliding cover sliding event when the output level under the normal condition is 10, and outputs the sliding cover sliding event when the output level under the other three conditions is 00.
Fig. 12 is a block diagram illustrating a structure of a sliding cover state detection apparatus according to an exemplary embodiment of the present application. The apparatus may be applied to, or implemented as part of, a slide type terminal as described above. The device comprises:
a monitoring module 1220 configured to monitor output levels of the first and second hall sensors;
an output module 1240 configured to output a sliding cover slide-off event when the output level of the first and second hall sensors is 10 when the output levels of the first and second hall sensors are sequentially changed in 01, 11, 10;
the output module 1240 is further configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor are sequentially changed according to 10, 11 and 01;
wherein the 1 represents a first level and the 0 represents a second level.
In an alternative embodiment, the monitoring module 1220 is configured to monitor output levels of the first hall sensor and the second hall sensor; an output module 1240 configured to output a slide cover slide-off event when the output level of the first and second hall sensors is 00 when the output levels are changed in the order of 01, 11, 10, 00; the output module 1240 is further configured to output a sliding closure event when the output level is 01 when the levels output by the first hall sensor and the second hall sensor respectively change in the order of 00, 10, 11, 01.
In an alternative embodiment, the monitoring module 1220 is configured to monitor output levels of the first hall sensor and the second hall sensor; an output module 1240 configured to output a slide cover slide-off event when the output level of the first and second hall sensors is 00 when the output levels of the first and second hall sensors are changed in the order of 01, 11, 01, 00; the output module 1240 is further configured to output a sliding closure closing event when the output level is 01 when the levels output by the first hall sensor and the second hall sensor respectively change according to the 00, 01, 11 and 01 sequence;
wherein the 1 represents a first level and the 0 represents a second level.
In an alternative embodiment, the monitoring module 1220 is configured to monitor output levels of the first hall sensor and the second hall sensor; an output module 1240 configured to output a sliding cover slide-off event when the output levels of the first and second hall sensors are 00 when the output levels are changed in the order of 01, 00; the output module 1240 is further configured to output a sliding closure closing event when the output levels of the first hall sensor and the second hall sensor are 01 and 00 respectively;
wherein the 1 represents a first level and the 0 represents a second level.
It should be noted that, when the sliding cover state detection apparatus provided in the foregoing embodiment detects the sliding cover state, only the division of the above function modules is exemplified, and in practical applications, the above function distribution may be completed by different function modules according to actual needs, that is, the content structure of the device is divided into different function modules, so as to complete all or part of the above described functions.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 13 is a block diagram illustrating a slide type terminal 1300 according to an exemplary embodiment. The slide-type terminal 1300 may be a slide-type terminal, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, or the like.
Referring to fig. 13, the slide type terminal 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, an audio component 1310, an input/output (I/O) interface 1312, a sensor component 1314, and a communications component 1316.
The processing component 1302 generally controls the overall operation of the slide type terminal 1300, such as operations associated with display, telephone call, data communication, camera operation, and recording operation. The processing component 1302 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 1302 can include one or more modules that facilitate interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate interaction between the multimedia component 1308 and the processing component 1302.
The memory 1304 is configured to store various types of data to support the operation in the slide type terminal 1300. Examples of such data include instructions for any application or method configured to operate on the slider terminal 1300, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1304 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 1306 provides power to the various components of the slider terminal 1300. The power components 1306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the slider terminal 1300.
The multimedia components 1308 include a screen between the slide-type terminal 1300 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1308 includes a front facing camera and/or a rear facing camera. When the slide type terminal 1300 is in an operation mode, such as a photographing mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 1310 is configured to output and/or input audio signals. For example, the audio module 1310 includes a Microphone (MIC) configured to receive an external audio signal when the slide-type terminal 1300 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1304 or transmitted via the communication component 1316. In some embodiments, audio component 1310 also includes a speaker configured to output audio signals.
The I/O interface 1312 provides an interface between the processing component 1302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 1314 includes one or more sensors configured to provide various aspects of state assessment for the slider terminal 1300. For example, the sensor assembly 1314 may detect an open/closed state of the slide type terminal 1300, relative positioning of components such as a display and a keypad of the slide type terminal 1300, a change in position of the slide type terminal 1300 or a component of the slide type terminal 1300, presence or absence of user contact with the slide type terminal 1300, orientation or acceleration/deceleration of the slide type terminal 1300, and a change in temperature of the slide type terminal 1300. The sensor assembly 1314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1314 may also include a light sensor, such as a CMOS or CCD image sensor, configured for use in imaging applications. In some embodiments, the sensor assembly 1314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication assembly 1316 is configured to facilitate communication between the slider terminal 1300 and other devices in a wired or wireless manner. The slider terminal 1300 may access a wireless network based on a communication standard, such as Wi-Fi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1316 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1316 also includes a Near Field Communications (NFC) module to facilitate short-range communications. In an exemplary embodiment, the slide-type terminal 1300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components configured to perform the slide state detection method described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1304 comprising instructions, executable by the processor 920 of the slide-type terminal 1300 to perform the slide status detection method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, in which instructions are executed by a processor of a slide terminal 1300, enable the slide terminal 1300 to perform a slide status detection method.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. A sliding closure type terminal is characterized in that the sliding closure type terminal comprises an upper sliding closure and a lower sliding closure, wherein the upper sliding closure and the lower sliding closure are connected through a sliding rail;
a magnet is arranged in the upper sliding cover;
a first Hall sensor, a second Hall sensor and a processor are arranged in the lower sliding cover, and the first Hall sensor and the second Hall sensor are respectively and electrically connected with the processor;
the first Hall sensor and the second Hall sensor are arranged at a preset distance along the sliding direction of the upper/lower sliding cover;
when the sliding cover slides open, the first Hall sensor and the second Hall sensor are both positioned on one side of the magnet in the direction of the first magnetic pole;
and in the closed state of the sliding cover, the first Hall sensor and the second Hall sensor are both positioned on one side of the magnet in the direction of the second magnetic pole.
2. Slide-type terminal according to claim 1,
the processor is configured to output a sliding cover slide-off event when the output level is 10 when the output levels of the first and second hall sensors change in the order of 01, 11, and 10;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first Hall sensor and the second Hall sensor are sequentially changed according to 10, 11 and 01;
wherein the 1 represents a first level and the 0 represents a second level.
3. Slide-type terminal according to claim 1,
the processor is configured to output a sliding cover slide-off event when the output level is 00 when the output levels of the first and second hall sensors are changed in the order of 01, 11, 10, 00;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor are changed according to the sequence of 00, 10, 11 and 01;
wherein the 1 represents a first level and the 0 represents a second level.
4. Slide-type terminal according to claim 1,
the processor is configured to output a sliding cover slide-off event when the output level is 00 when the output levels of the first and second hall sensors are changed in the order of 01, 11, 10, 00;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor are changed according to the sequence of 00, 10, 11 and 01;
wherein the 1 represents a first level and the 0 represents a second level.
5. Slide-type terminal according to claim 1,
the processor is configured to output a sliding cover slide-off event when the output level is 00 when the output levels of the first and second hall sensors are changed in the order of 01, 11, 01, 00;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor are changed according to the 00, 01, 11 and 01 sequence;
wherein the 1 represents a first level and the 0 represents a second level.
6. Slide-type terminal according to claim 1,
the processor is configured to output a sliding cover slide-open event when the output levels of the first and second hall sensors are 00 when the output levels are changed in the order of 01 and 00;
the processor is configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the 00 and 01 sequences;
wherein the 1 represents a first level and the 0 represents a second level.
7. A slide cover state detection method applied to the slide cover terminal according to any one of claims 1 to 6, the method comprising:
monitoring output levels of the first Hall sensor and the second Hall sensor;
when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11 and 10, outputting a sliding cover sliding event when the output level is 10;
when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the sequence of 10, 11 and 01, outputting a sliding closure closing event when the output level is 01;
wherein the 1 represents a first level and the 0 represents a second level.
8. A slide cover state detection method applied to the slide cover terminal according to any one of claims 1 to 6, the method comprising:
monitoring output levels of the first Hall sensor and the second Hall sensor;
when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11, 10 and 00, outputting a sliding cover sliding event when the output level is 00;
and when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the sequence of 00, 10, 11 and 01, outputting a sliding closure closing event when the output level is 01.
9. A slide cover state detection method applied to the slide cover terminal according to any one of claims 1 to 6, the method comprising:
monitoring output levels of the first Hall sensor and the second Hall sensor;
when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01, 11, 01 and 00, outputting a sliding cover sliding event when the output level is 00;
when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the sequence of 00, 01, 11 and 01, outputting a sliding closure event when the output level is 01;
wherein the 1 represents a first level and the 0 represents a second level.
10. A slide cover state detection method applied to the slide cover terminal according to any one of claims 1 to 6, the method comprising:
monitoring output levels of the first Hall sensor and the second Hall sensor;
when the output levels of the first Hall sensor and the second Hall sensor change according to the sequence of 01 and 00, outputting a sliding cover sliding event when the output level is 00;
when the levels respectively output by the first Hall sensor and the second Hall sensor change according to the 00 and 01 sequences, outputting a sliding closure event when the output level is 01;
wherein the 1 represents a first level and the 0 represents a second level.
11. A slide cover state detection device applied to the slide cover terminal according to any one of claims 1 to 6, the device comprising:
a monitoring module configured to monitor output levels of the first and second Hall sensors;
an output module configured to output a slide cover slide-open event when an output level of the first and second hall sensors is 10 when the output levels are sequentially changed by 01, 11, 10;
the output module is further configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor change according to the sequence of 10, 11 and 01;
wherein the 1 represents a first level and the 0 represents a second level.
12. A slide cover state detection device applied to the slide cover terminal according to any one of claims 1 to 6, the device comprising:
a monitoring module configured to monitor output levels of the first and second Hall sensors;
an output module configured to output a slide cover slide-off event when an output level of the first and second hall sensors is 00 when the output level is changed in a sequence of 01, 11, 10, 00;
the output module is further configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor change in the order of 00, 10, 11, 01.
13. A slide cover state detection device applied to the slide cover terminal according to any one of claims 1 to 6, the device comprising:
a monitoring module configured to monitor output levels of the first and second Hall sensors;
an output module configured to output a slide cover slide-off event when an output level of the first and second hall sensors is 00 when the output level is changed in a sequence of 01, 11, 01, 00;
the output module is further configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor change according to the 00, 01, 11 and 01 sequence;
wherein the 1 represents a first level and the 0 represents a second level.
14. A slide cover state detection device applied to the slide cover terminal according to any one of claims 1 to 6, the device comprising:
a monitoring module configured to monitor output levels of the first and second Hall sensors;
an output module configured to output a sliding cover slide-open event when an output level of the first hall sensor and the second hall sensor changes in a sequence of 01, 00, the output level being 00;
the output module is further configured to output a sliding closure closing event when the output level is 01 when the levels respectively output by the first hall sensor and the second hall sensor change according to the 00 and 01 sequences;
wherein the 1 represents a first level and the 0 represents a second level.
15. A computer-readable storage medium, characterized in that the readable storage medium stores executable instructions that, when executed by a processor, are configured to implement a slide status detection method according to any one of claims 7 to 10.
CN201811291611.0A 2018-10-31 2018-10-31 Sliding closure type terminal, sliding closure state detection method and device and storage medium Active CN111131559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811291611.0A CN111131559B (en) 2018-10-31 2018-10-31 Sliding closure type terminal, sliding closure state detection method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811291611.0A CN111131559B (en) 2018-10-31 2018-10-31 Sliding closure type terminal, sliding closure state detection method and device and storage medium

Publications (2)

Publication Number Publication Date
CN111131559A true CN111131559A (en) 2020-05-08
CN111131559B CN111131559B (en) 2021-08-31

Family

ID=70494232

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811291611.0A Active CN111131559B (en) 2018-10-31 2018-10-31 Sliding closure type terminal, sliding closure state detection method and device and storage medium

Country Status (1)

Country Link
CN (1) CN111131559B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294432A (en) * 2018-12-10 2020-06-16 北京小米移动软件有限公司 Sliding closure type terminal, sliding closure state detection method and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1627772A (en) * 2003-12-09 2005-06-15 Lg电子株式会社 Slide type portable communication terminal
CN1956364A (en) * 2005-09-09 2007-05-02 三星电子株式会社 Method of detecting opening and closing of a slide-type mobile communication terminal and apparatus thereof
CN1960383A (en) * 2005-10-31 2007-05-09 乐金电子(中国)研究开发中心有限公司 Cover-slide-type handset
KR20080024819A (en) * 2006-09-15 2008-03-19 삼성전자주식회사 Device for detecting open and close of sub body in portable terminal with sub body being capable of opening in a two direction
CN207410384U (en) * 2017-11-16 2018-05-25 奇酷互联网络科技(深圳)有限公司 Integrated circuit plate and mobile terminal
CN108205360A (en) * 2017-12-18 2018-06-26 中兴通讯股份有限公司 Method, apparatus, terminal and the storage medium of control terminal screen

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1627772A (en) * 2003-12-09 2005-06-15 Lg电子株式会社 Slide type portable communication terminal
CN1956364A (en) * 2005-09-09 2007-05-02 三星电子株式会社 Method of detecting opening and closing of a slide-type mobile communication terminal and apparatus thereof
CN1960383A (en) * 2005-10-31 2007-05-09 乐金电子(中国)研究开发中心有限公司 Cover-slide-type handset
KR20080024819A (en) * 2006-09-15 2008-03-19 삼성전자주식회사 Device for detecting open and close of sub body in portable terminal with sub body being capable of opening in a two direction
CN207410384U (en) * 2017-11-16 2018-05-25 奇酷互联网络科技(深圳)有限公司 Integrated circuit plate and mobile terminal
CN108205360A (en) * 2017-12-18 2018-06-26 中兴通讯股份有限公司 Method, apparatus, terminal and the storage medium of control terminal screen

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111294432A (en) * 2018-12-10 2020-06-16 北京小米移动软件有限公司 Sliding closure type terminal, sliding closure state detection method and device and storage medium

Also Published As

Publication number Publication date
CN111131559B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
US9674395B2 (en) Methods and apparatuses for generating photograph
US11158447B2 (en) Functional component, method for controlling functional component, and terminal
CN110662095B (en) Screen projection processing method and device, terminal and storage medium
US10212386B2 (en) Method, device, terminal device, and storage medium for video effect processing
CN106657780B (en) Image preview method and device
CN107102772B (en) Touch control method and device
CN105469056A (en) Face image processing method and device
US10318069B2 (en) Method for controlling state of touch screen, and electronic device and medium for implementing the same
US10861628B2 (en) Front assembly sliding structure, controlling device thereof, and terminal having same
CN105516586A (en) Picture shooting method, device and system
CN108566455B (en) Mobile terminal, control method of mobile terminal, and storage medium
CN111131557A (en) Sliding cover type terminal and threshold setting method of Hall sensor
CN111262990B (en) Sliding closure type terminal, sliding closure state detection method and device and storage medium
CN111131559B (en) Sliding closure type terminal, sliding closure state detection method and device and storage medium
CN105161040A (en) Method and device for adjusting backlight intensity
CN111131556B (en) Sliding cover type terminal, sliding cover state detection method, device and manufacturing method
CN111294457B (en) Sliding closure type terminal, sliding closure state detection method and device and storage medium
CN111294432B (en) Sliding closure type terminal, sliding closure state detection method and device and storage medium
CN109922203B (en) Terminal, screen off method and device
CN108962189A (en) Luminance regulating method and device
CN112965653B (en) Touch position reporting method and device and electronic equipment
CN111103997B (en) False touch prevention method and device and readable storage medium
CN115940310A (en) Charging method, charging device, and storage medium
CN111131558A (en) Sliding cover type terminal, sliding cover state detection method and device
CN111103996B (en) False touch prevention method and device and readable storage medium

Legal Events

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