Vehicle-mounted support mode starting method and related device

Through the combination of the Hall chip and the magnet, the unfolded and in-position status of the device is detected, which solves the problems of high cost and difficult identification in the existing technology, realizes the automatic start-up of the vehicle holder mode, and improves the user experience.

CN118540407APending Publication Date: 2024-08-23GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310153850.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing vehicle bracket detection methods require additional Hall devices, resulting in high costs and difficulty in effectively identifying the device's in-place status.

Method used

The combination of Hall chip and magnet is used to detect the changes in the magnetic field to determine the deployment and in-position status of the device, and automatically control the startup of the vehicle holder mode.

Benefits of technology

It saves hardware costs, realizes intelligent recognition of the device's own Hall chip, and automatically enters the vehicle mount mode, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540407A
    Figure CN118540407A
Patent Text Reader

Abstract

The embodiment of the invention discloses a vehicle-mounted support mode starting method and a related device. The method comprises the following steps: determining a Hall value of a Hall chip; according to the Hall value and a first preset threshold value, judging whether the first equipment is in an unfolded state or not; when the first device is in the unfolded state, whether the second device is in an in-place state or not is judged according to the Hall value and a second preset threshold value; and when the second equipment is in the in-place state, the first equipment is controlled to start the vehicle-mounted support mode. By adopting the embodiment of the invention, the material expenditure can be saved, and the hardware cost can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to a vehicle bracket mode starting method and related devices. Background Art

[0002] A car holder is a holder used to hold mobile phones and other electronic devices in the car. It is mainly used by drivers, allowing users to answer calls, navigate routes, charge devices, etc. more conveniently while driving.

[0003] Currently, electronic devices (including terminal devices, tablet computers, etc., for example, foldable mobile phones, etc.) can detect the vehicle bracket through near field communication (NFC) or a separate Hall device (or Hall chip), which requires additional materials and is costly. Summary of the invention

[0004] The embodiment of the present application provides a vehicle bracket mode startup method and related devices, which are beneficial to saving material expenses and hardware costs.

[0005] In a first aspect, an embodiment of the present application provides a method for starting a vehicle bracket mode, which is applied to a first device, wherein the first device includes a first main body and a second main body, the first main body and the second main body are connected by a rotating mechanism, and the second main body can be folded or unfolded relative to the first main body by the rotating mechanism, and the first device also includes a Hall chip and a first magnet, and the Hall chip is arranged in a projection area of ​​the second magnet of the second device; the method includes:

[0006] Determining the Hall value of the Hall chip;

[0007] determining, according to the Hall value and a first preset threshold, whether the first device is in an unfolded state;

[0008] When the first device is in the deployed state, judging whether the second device is in the in-position state according to the Hall value and a second preset threshold value;

[0009] When the second device is in the in-place state, the first device is controlled to start the vehicle bracket mode.

[0010] In a second aspect, an embodiment of the present application provides a vehicle bracket mode starting device, which is applied to a first device, wherein the first device includes a first main body and a second main body, the first main body and the second main body are connected by a rotating mechanism, and the second main body can be folded or unfolded relative to the first main body by the rotating mechanism, and the first device also includes a Hall chip and a first magnet, and the Hall chip is arranged in the projection area of ​​the second magnet of the second device; the device includes: a determination unit, a judgment unit and a control unit, wherein,

[0011] The determining unit is used to determine the Hall value of the Hall chip;

[0012] The judging unit is configured to judge whether the first device is in an unfolded state according to the Hall value and a first preset threshold value;

[0013] The judging unit is further configured to judge whether the second device is in the in-position state according to the Hall value and a second preset threshold value when the first device is in the deployed state;

[0014] The control unit is used to control the first device to start the vehicle bracket mode when the second device is in the in-place state.

[0015] In a third aspect, an embodiment of the present application provides an electronic device, comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps of any method in the first aspect of the embodiment of the present application.

[0016] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps described in any method of the first aspect of the embodiment of the present application.

[0017] In a fifth aspect, an embodiment of the present application provides a computer program product comprising instructions, wherein when the computer program product is run on an electronic device, the electronic device executes some or all of the steps described in any method of the first aspect. The computer program product may be a software installation package.

[0018] It can be seen that in the embodiment of the present application, the Hall value of the Hall chip is determined; according to the Hall value and the first preset threshold, it is judged whether the first device is in the unfolded state; when the first device is in the unfolded state, according to the Hall value and the second preset threshold, it is judged whether the second device is in the in-place state; when the second device is in the in-place state, the first device is controlled to start the vehicle bracket mode. In this way, the Hall chip of the first device can be used in combination to intelligently identify whether the second device is in the in-place state, which is conducive to saving material expenses and hardware costs; and the vehicle bracket mode is automatically entered, which is conducive to facilitating the user to use the second device and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0020] Figure 1 It is a system architecture diagram of a vehicle bracket mode starting system provided in an embodiment of the present application;

[0021] Figure 2 is a structural schematic diagram of a first device provided in an embodiment of the present application;

[0022] Figure 3 This is a schematic diagram of the positional relationship between a Hall chip, a first magnet, and a second magnet provided in an embodiment of the present application;

[0023] Figure 4 It is a flowchart of a method for starting a vehicle bracket mode provided in an embodiment of the present application;

[0024] Figure 5 is a structural schematic diagram of an electronic device provided in an embodiment of the present application;

[0025] Figure 6 This is a block diagram of the functional units of a vehicle bracket mode starting device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0028] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0029] 1) Hall chips are magnetic sensors based on the Hall effect. They can be used to detect magnetic fields and their changes, and can be used in various applications related to magnetic fields.

[0030] 2) The electronic device may be a portable electronic device that also includes other functions such as a personal digital assistant and / or a music player function, such as a mobile phone, a tablet computer, a terminal device, a wearable electronic device with a wireless communication function (such as a smart watch, smart glasses), a vehicle-mounted device, etc. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with an IOS system, an Android system, a Microsoft system, or other operating systems. The above-mentioned portable electronic device may also be other portable electronic devices, such as a laptop computer (Laptop), etc. It should also be understood that in some other embodiments, the above-mentioned electronic device may not be a portable electronic device, but a desktop computer. In some embodiments, the electronic device may also be a communication terminal.

[0031] In some embodiments, when the first device is a foldable terminal device or a foldable tablet computer, the second device may be a vehicle-mounted device for placing the first device; for example, the vehicle-mounted device may be a vehicle-mounted bracket, such as a suction cup-type vehicle-mounted bracket, a magnet-type vehicle-mounted bracket, a clip-type vehicle-mounted bracket, etc., which is not limited here.

[0032] like Figure 1 , which is a schematic diagram of a system architecture of a vehicle bracket mode startup system, the vehicle bracket mode startup system may include a first device and a second device.

[0033] The first device can be placed on or inserted into the second device, and the first device can be a scroll screen electronic device, a folding screen electronic device, etc. The first device can be folded up and down, or folded left and right, etc. The second device can be a vehicle-mounted bracket, which can be used to place the first device.

[0034] For example, Figure 2 As shown, it is a structural schematic diagram of a first device, which includes a first main body and a second main body. The first main body is connected to the second main body through a rotating mechanism, and the second main body can be folded or unfolded relative to the first main body through the rotating mechanism, or the first main body can be folded or unfolded relative to the second main body through the rotating mechanism.

[0035] The first main body and / or the second main body may share a first display screen, and the first main body may include a second display screen. When the first main body and the second main body overlap, that is, when the first device is in a folded state, the second display screen of the first main body is the main screen. When the first main body and the second main body are separated, when the first device is in an unfolded state, the first display screen is the main screen. The first main body and / or the second main body may also include components such as cameras and sensors.

[0036] Among them, the above Figure 1 or Figure 2 The first device shown may also include a Hall chip and a first magnet.

[0037] For example, Figure 3 , which is a schematic diagram of the positional relationship between a Hall chip, a first magnet, and a second magnet. Figure 2 Consistently, the Hall chip can be installed on the first main body of the first device, the first magnet can be installed on the second main body of the first device, the first magnet overlaps with the projection area of ​​the Hall device, and the first device can identify or detect the folding or unfolding of the first main body and / or the second main body in the first device through the Hall chip and the first magnet.

[0038] The second device may include a second magnet, and the Hall chip of the first device may be arranged in a projection area of ​​the second magnet of the second device within the first main body.

[0039] The Hall chip is located in the projection area of ​​the second magnet on the first main body, and the arrangement position of the first magnet can be set relative to the arrangement position of the Hall chip on the first main body, and is set in the projection area of ​​the Hall device on the second main body. The first magnet, the second magnet and the Hall chip can be combined to identify or detect whether the second device is in place or in a state of being in place.

[0040] See also Figure 4 , Figure 4 It is a flow chart of a method for starting a vehicle bracket mode provided in an embodiment of the present application, which is applied to a first device, wherein the first device includes a first main body and a second main body, wherein the first main body and the second main body are connected via a rotating mechanism, and the second main body can be folded or unfolded relative to the first main body via the rotating mechanism, and the first device also includes a Hall chip and a first magnet, wherein the Hall chip is arranged within the projection area of ​​the second magnet of the second device; as shown in the figure, the method for starting a vehicle bracket mode includes the following operations.

[0041] S401, determining the Hall value of the Hall chip.

[0042] The first device in this embodiment may be: Figure 1 or Figure 2 or Figure 3 Any of the following, the second device is Figure 1 The second device in.

[0043] Among them, the Hall value of the Hall chip can be used to characterize the magnetic field change of the first magnet and / or the second magnet, so as to determine whether the first device is in an unfolded state or a folded state according to the magnetic field change, and determine whether the second device is in place.

[0044] For example, the first device may also detect the Hall value of the Hall chip at preset time intervals. The preset time interval may be set by the user or by the system default, and is not limited here.

[0045] S402: Determine whether the first device is in an unfolded state according to the Hall value and a first preset threshold.

[0046] S403: When the first device is in the unfolded state, determine whether the second device is in the in-place state according to the Hall value and a second preset threshold.

[0047] The first preset threshold and / or the second preset threshold may be set by the user or by the system by default, which is not limited here. The first preset threshold is different from the second preset threshold, the first preset threshold may be greater than 0, and the second preset threshold may be less than 0.

[0048] Among them, the first preset threshold can be used to judge or determine whether the first device is in an unfolded state or a folded state; the second preset threshold and the first preset threshold can be combined to identify whether the second device is in place or in a position state.

[0049] Among them, whether the above-mentioned second device is in place or whether the second device is in place can be understood as: whether the first device is inserted into or placed in the second device, and the in-place state of the second device can be understood according to different types of second devices.

[0050] The magnetic pole directions of the first magnet and the second magnet relative to the first device are opposite.

[0051] For example, Figure 3 The first device shown can be set so that the N pole of the first magnet faces upward relative to the first device, and the second device can be set so that the S pole of the corresponding second magnet faces upward relative to the first device. The first preset threshold can be set according to which pole of the first magnet faces upward, and the second preset threshold can also be set according to which pole of the second magnet faces upward, which is not limited here.

[0052] Optionally, the second magnet can also be used in the Z direction, with the S pole facing upward or in the direction of the first device, which can be used to avoid detection when the first device is unfolded or folded, which helps to reduce misjudgment of starting the vehicle bracket mode.

[0053] S404: When the second device is in the in-place state, control the first device to start the vehicle bracket mode.

[0054] The above-mentioned car cradle mode can be used for the first device to enter related applications, for example, it can be a driving travel application, such as map, music playback, call, etc. The car cradle mode can be set by the user or by system default, which is not limited here.

[0055] It should be noted that the vehicle holder mode can be entered or started only when the first device is in the unfolded state.

[0056] It can be seen that the vehicle bracket mode startup method described in the embodiment of the present application determines the Hall value of the Hall chip; determines whether the first device is in the unfolded state according to the Hall value and the first preset threshold; when the first device is in the unfolded state, determines whether the second device is in the in-place state according to the Hall value and the second preset threshold; when the second device is in the in-place state, controls the first device to start the vehicle bracket mode. In this way, the Hall chip of the first device can be used in combination to intelligently identify whether the second device is in the in-place state, which is conducive to saving material expenses and hardware costs; and automatically enters the vehicle bracket mode, which is conducive to facilitating users to use the second device and improving user experience.

[0057] In a possible example, the method may include the following steps of determining whether the first device is in an unfolded state based on the Hall value and a first preset threshold: if the Hall value is greater than the first preset threshold, determining that the first device is in a folded state; if the Hall value is less than or equal to the first preset threshold, determining that the first device is in the unfolded state, and executing the step of determining whether the second device is in a position state based on the Hall value and the second preset threshold.

[0058] Among them, in Figure 3 In the first device shown, the N pole of the first magnet is set upward, and the S pole of the corresponding second magnet is set upward. When the first device is in a folded state, the N pole of the first magnet is toward the Hall chip, the first main body and the second main body move relative to each other and tend to overlap, the Hall device is affected by the first magnet, and the Hall value of the Hall chip is much greater than 0.

[0059] When the first device is in the unfolded state, the first main body and the second main body move relative to each other, and the first magnet and the Hall chip are distributed on both sides of the rotating shaft mechanism. At this time, the N pole of the first magnet is far away from the Hall chip, and the Hall value of the Hall chip approaches 0. Therefore, the first device can set the first preset threshold value to a real number greater than 0, for example, it can be 0.2, 0.5, 1, etc.

[0060] It can be seen that in this example, the first device can determine whether the first device is in a folded state or an unfolded state by comparing the Hall value and the first preset threshold, which is conducive to detecting the unfolding or folding of the first main body and the second main body of the first device.

[0061] In a possible example, the method may include the following steps: if the Hall value is less than or equal to the second preset threshold, determining that the second device is not in the in-place state, and maintaining the first device in the unfolded state; if the Hall value is greater than the second preset threshold, determining that the second device is in the in-place state, and controlling the first device to start the vehicle holder mode.

[0062] Among them, in Figure 3In the case where the first device sets the N pole of the first magnet upward and the second device sets the S pole of its corresponding second magnet upward, the S pole of the second magnet of the second device faces the Hall chip of the first device. Affected by the magnetic field of the second magnet, the Hall value of the Hall chip is much less than 0. At this time, the Hall value less than 0 also reflects the size and direction of the Hall value. Therefore, the second preset threshold value can be set to a real number less than 0, for example, it can be set to -0.5, -1, -2, etc.

[0063] For example, if the first preset threshold is 0.2 and the second preset threshold is -0.5, when the Hall value is detected to be -1, and the Hall value is less than 0.2, it can be determined that the first device is in the expanded state, and further compare the size relationship between the Hall value and the second preset threshold. If the first device detects that -1 is less than -0.5, it can be determined that the second device is in the in-place state, and the first device can start the vehicle bracket mode corresponding to the in-place state.

[0064] For another example, when the Hall value detected is 0.1, which is less than 0.2, it can be determined that the first device is in the expanded state, and further compares the size relationship between the Hall value and the second preset threshold. If it is detected that 0.1 is greater than -0.5, it can be determined that the second device is not in place, and the first device can be maintained in the expanded state.

[0065] It can be seen that in this example, the first device can combine the first preset threshold and the second preset threshold to work together to identify whether the second device is in place, and further determine whether the vehicle holder mode needs to be started; in this way, the first device can use the Hall chip of the first device to intelligently identify whether the second device is in place, which is conducive to saving material expenses and hardware costs; and automatically enter the vehicle holder mode to achieve the user's desired vehicle state, such as listening to music, map mode, etc., which is conducive to improving user experience.

[0066] In one possible example, after controlling the first device to enter the vehicle bracket mode, the above method may further include the following steps: detecting the Hall value of the Hall chip every first preset time period; if the Hall value is less than or equal to the second preset threshold, maintaining the first device in the vehicle bracket mode; if the Hall value is greater than the second preset threshold, controlling the first device to exit the vehicle bracket mode.

[0067] The Hall value may change at any time with the state of the first device or the temperature or magnetic field of the environment, so the Hall value of the Hall chip may be detected at regular intervals, and the preset first preset time length may be set by the user or by the system default. For example, it may be set to 200ms, 300ms, 1s, 2s, and so on.

[0068] For example, if the first preset threshold is 0.2 and the second preset threshold is -0.5. If after 200ms, the first device detects that the Hall value of the Hall chip is -0.3, and -0.3 is greater than -0.5, it indicates that the second device is not in place, and the first device can be controlled to exit the vehicle bracket mode; if the first device detects that the Hall value of the Hall chip is -0.7, the first device can be maintained in the vehicle bracket mode.

[0069] Optionally, when the Hall value is greater than a second preset threshold, after controlling the first device to exit the vehicle holder mode, the display state of the first device can be returned to the previous page for starting the vehicle holder mode.

[0070] It can be seen that in this example, after controlling the first device to enter the vehicle bracket mode, the first device can detect the Hall value of the Hall chip at intervals to determine the start or exit of the vehicle bracket mode, and can automatically start or exit the vehicle bracket mode, which is beneficial to improve the flexibility of the vehicle bracket mode and improve the user experience.

[0071] In a possible example, after controlling the first device to exit the vehicle bracket mode, the method may further include the following steps: detecting the Hall value of the Hall chip every second preset time period, and judging whether the first device is in the unfolded state based on the Hall value and the first preset threshold.

[0072] The second preset duration can be set by the user or by the system by default, which is not limited here. The second preset duration can also be set to be the same as or different from the first preset duration.

[0073] For example, since the user may fold the first device immediately after exiting the vehicle holder mode, the setting value of the second preset time length may be smaller than the first preset time length.

[0074] For example, the second preset duration can be set to 100ms, and the Hall value of the Hall chip can be continuously monitored every 100ms after exiting the vehicle holder mode. If the first preset threshold is set to 0.2, and the first device detects a Hall value of 0.1, which is less than 0.2, it can be determined that the first device is in an unfolded state; if the first device detects a Hall value of 0.22, which is greater than 0.2, it can be determined that the first device is in a folded state or a non-expanded state, that is, in a folding state, and the Hall value can be continuously detected again at intervals of 100ms; if the user receives a message reminder at this time and before the device tends to be in a fully folded state (a state where the first main body and the second main body overlap), the Hall value is detected to be 0.18, which is less than 0.2, then it can be determined that the first device is in an unfolded state. In this way, the Hall value can be dynamically monitored to monitor the unfolded state of the first device at any time.

[0075] It can be seen that in this example, at this time, since the second device is not in the in-place state, the first device only needs to compare the Hall value with the first preset threshold value to determine whether the first device is in the expanded state or the folded state, thereby realizing the monitoring of the expanded state of the first device at any time, which is beneficial to improve the sensitivity of the first device state monitoring; thereby adapting the first device to adjust its screen light or screen display state at any time, etc., which is beneficial to improve the user experience.

[0076] In a possible example, after determining that the second device is in the in-place state, the method may further include the following step: popping up a preset dialog box, wherein the preset dialog box is used to indicate that the first device is about to enter the vehicle holder mode.

[0077] The preset dialog box can be set by the user or by the system default, which is not limited here. The preset dialog box can be used to indicate or prompt the user that the first device is about to enter the vehicle holder mode, and can also be used to determine whether the user needs to enter the vehicle holder mode. Of course, the preset dialog box can also be used to provide the user with different selectable applications in the vehicle holder mode, such as map applications, music applications, etc., which are not limited here.

[0078] It can be seen that in this example, after determining that the second device is in place and before entering the vehicle holder mode, the first device can trigger a pop-up preset dialog box to provide the user with a variety of functions, which is conducive to improving the user experience.

[0079] In a possible example, the Hall chip is arranged in the first main body, and the first magnet is installed in the second main body, or the Hall chip is arranged in the second main body, and the first magnet is installed in the first main body; the Hall chip and the first magnet are arranged correspondingly.

[0080] For example, the Hall chip and the first magnet are respectively located in different main bodies and are arranged correspondingly; since the Hall chip can also be used to identify whether the second device is in place, the first device can determine the arrangement position of the Hall chip in the first main body after determining that the second magnet of the second device is located in the projection area of ​​the first main body, and select the projection area of ​​the arrangement position in the first main body as the corresponding position of the first magnet.

[0081] It can be seen that in this example, the Hall chip and the first magnet can be arranged correspondingly, which is conducive to identifying the unfolded state or folded state of the first device.

[0082] See also Figure 5 , Figure 5: is a structural schematic diagram of an electronic device provided by an embodiment of the present application. As shown in the figure, the electronic device includes a processor, a memory, a communication interface and one or more programs, which are applied to a first device. The first device includes a first main body and a second main body. The first main body and the second main body are connected by a rotating mechanism. The second main body can be folded or unfolded relative to the first main body by the rotating mechanism. The first device also includes a Hall chip and a first magnet. The Hall chip is arranged in the projection area of ​​the second magnet of the second device; wherein the one or more programs are stored in the memory, and the one or more programs are configured to execute the following steps by the processor:

[0083] Determining the Hall value of the Hall chip;

[0084] determining, according to the Hall value and a first preset threshold, whether the first device is in an unfolded state;

[0085] When the first device is in the deployed state, judging whether the second device is in the in-position state according to the Hall value and a second preset threshold value;

[0086] When the second device is in the in-place state, the first device is controlled to start the vehicle bracket mode.

[0087] It can be seen that the electronic device described in the embodiment of the present application determines the Hall value of the Hall chip; determines whether the first device is in the unfolded state according to the Hall value and the first preset threshold; when the first device is in the unfolded state, determines whether the second device is in the in-place state according to the Hall value and the second preset threshold; when the second device is in the in-place state, controls the first device to start the vehicle bracket mode. In this way, the Hall chip of the first device can be used in combination to intelligently identify whether the second device is in the in-place state, which is conducive to saving material expenses and hardware costs; and automatically enters the vehicle bracket mode, which is conducive to facilitating users to use the second device and improving user experience.

[0088] In a possible example, judging whether the first device is in an unfolded state according to the Hall value and the first preset threshold, the program includes instructions for executing the following steps:

[0089] If the Hall value is greater than the first preset threshold, it is determined that the first device is in a folded state;

[0090] If the Hall value is less than or equal to the first preset threshold, it is determined that the first device is in the deployed state, and the step of determining whether the second device is in the in-place state based on the Hall value and the second preset threshold is performed.

[0091] In a possible example, judging whether the second device is in the on-site state according to the Hall value and the second preset threshold, the program includes instructions for executing the following steps:

[0092] If the Hall value is less than or equal to the second preset threshold, it is determined that the second device is not in the in-position state, and the first device is maintained in the deployed state;

[0093] If the Hall value is greater than the second preset threshold, it is determined that the second device is in the in-place state, and the first device is controlled to start the vehicle bracket mode.

[0094] In a possible example, after controlling the first device to enter the vehicle holder mode, the program further includes instructions for executing the following steps:

[0095] Detecting the Hall value of the Hall chip at a first preset time interval;

[0096] If the Hall value is less than or equal to the second preset threshold, maintaining the first device in the vehicle holder mode;

[0097] If the Hall value is greater than the second preset threshold, the first device is controlled to exit the vehicle bracket mode.

[0098] In a possible example, after controlling the first device to exit the vehicle holder mode, the program further includes instructions for performing the following steps:

[0099] The Hall value of the Hall chip is detected every second preset time period, and whether the first device is in the unfolded state is determined based on the Hall value and the first preset threshold.

[0100] In a possible example, after determining that the second device is in the in-place state, the program further includes instructions for executing the following steps:

[0101] A preset dialog box pops up, where the preset dialog box is used to indicate that the first device is about to enter the vehicle holder mode.

[0102] In a possible example, the Hall chip is arranged in the first main body, and the first magnet is installed in the second main body, or the Hall chip is arranged in the second main body, and the first magnet is installed in the first main body; the Hall chip and the first magnet are arranged correspondingly.

[0103] The above mainly introduces the scheme of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. It should be easily appreciated by those skilled in the art that, in combination with the units and algorithm steps of each example described in the embodiments provided herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0104] The embodiment of the present application can divide the electronic device into functional units according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0105] In the case of dividing each functional module into corresponding functional modules, Figure 6 A schematic diagram of a vehicle-mounted bracket mode starter is shown, such as Figure 6 As shown, it is applied to a first device, the first device includes a first main body and a second main body, the first main body and the second main body are connected by a rotating mechanism, and the second main body can be folded or unfolded relative to the first main body by the rotating mechanism, and the first device also includes a Hall chip and a first magnet, and the Hall chip is arranged in the projection area of ​​the second magnet of the second device; the vehicle bracket mode starting device 600 may include: a determination unit 601, a judgment unit 602 and a control unit 603, wherein,

[0106] The determining unit 601 is used to determine the Hall value of the Hall chip;

[0107] The judging unit 602 is configured to judge whether the first device is in an unfolded state according to the Hall value and a first preset threshold;

[0108] The judging unit 602 is further configured to judge whether the second device is in the in-position state according to the Hall value and a second preset threshold value when the first device is in the unfolded state;

[0109] The control unit 603 is used to control the first device to start the vehicle bracket mode when the second device is in the in-place state.

[0110] It can be seen that the vehicle bracket mode startup device provided in the embodiment of the present application determines the Hall value of the Hall chip; judges whether the first device is in the unfolded state according to the Hall value and the first preset threshold; when the first device is in the unfolded state, judges whether the second device is in the in-place state according to the Hall value and the second preset threshold; when the second device is in the in-place state, controls the first device to start the vehicle bracket mode. In this way, the Hall chip of the first device can be used in combination to intelligently identify whether the second device is in the in-place state, which is conducive to saving material expenses and hardware costs; and automatically enters the vehicle bracket mode, which is conducive to facilitating users to use the second device and improving user experience.

[0111] In a possible example, judging whether the first device is in the unfolded state according to the Hall value and the first preset threshold, the judging unit 602 is specifically used to:

[0112] If the Hall value is greater than the first preset threshold, it is determined that the first device is in a folded state;

[0113] If the Hall value is less than or equal to the first preset threshold, it is determined that the first device is in the deployed state, and the step of determining whether the second device is in the in-place state based on the Hall value and the second preset threshold is performed.

[0114] In a possible example, judging whether the second device is in the on-site state according to the Hall value and the second preset threshold, the judging unit 602 is further configured to:

[0115] If the Hall value is less than or equal to the second preset threshold, it is determined that the second device is not in the in-position state, and the first device is maintained in the deployed state;

[0116] If the Hall value is greater than the second preset threshold, it is determined that the second device is in the in-place state, and the first device is controlled to start the vehicle bracket mode.

[0117] In a possible example, after controlling the first device to enter the vehicle bracket mode, the control unit 603 is specifically configured to:

[0118] Detecting the Hall value of the Hall chip at a first preset time interval;

[0119] If the Hall value is less than or equal to the second preset threshold, maintaining the first device in the vehicle holder mode;

[0120] If the Hall value is greater than the second preset threshold, the first device is controlled to exit the vehicle bracket mode.

[0121] In a possible example, after controlling the first device to exit the vehicle bracket mode, the control unit 603 is further configured to:

[0122] The Hall value of the Hall chip is detected every second preset time period, and whether the first device is in the unfolded state is determined based on the Hall value and the first preset threshold.

[0123] In a possible example, after determining that the second device is in the in-place state, the control unit 603 is further configured to:

[0124] A preset dialog box pops up, where the preset dialog box is used to indicate that the first device is about to enter the vehicle holder mode.

[0125] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0126] The electronic device provided in this embodiment is used to execute the above-mentioned vehicle bracket mode starting method, and thus can achieve the same effect as the above-mentioned implementation method.

[0127] In the case of using an integrated unit, the electronic device may include a processing module, a storage module and a communication module. Among them, the processing module can be used to control and manage the actions of the electronic device, for example, it can be used to support the electronic device to execute the steps performed by the above-mentioned determination unit 601, judgment unit 602 and control unit 603. The storage module can be used to support the electronic device to execute stored program codes and data, etc. The communication module can be used to support the communication between the electronic device and other devices.

[0128] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0129] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.

[0130] The embodiment of the present application also provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause a computer to execute some or all of the steps of any method described in the method embodiment. The computer program product may be a software installation package, and the computer includes an electronic device.

[0131] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0132] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0133] In the several embodiments provided in the present application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the above-mentioned units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0134] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0135] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0136] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or CD-ROM and other media that can store program codes.

[0137] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which can include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.

[0138] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. At the same time, for general technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A vehicle bracket mode startup method, applied to a first device, characterized in that: The first device includes a first main body and a second main body, the first main body is connected to the second main body by a rotating mechanism, and the second main body can be folded or unfolded relative to the first main body by the rotating mechanism, the first device also includes a Hall chip and a first magnet, and the Hall chip is arranged in the projection area of ​​the second magnet of the second device; the method includes: Determining the Hall value of the Hall chip; determining, according to the Hall value and a first preset threshold, whether the first device is in an unfolded state; When the first device is in the deployed state, judging whether the second device is in the in-position state according to the Hall value and a second preset threshold value; When the second device is in the in-place state, the first device is controlled to start the vehicle bracket mode.

2. The method according to claim 1, characterized in that The determining, according to the Hall value and the first preset threshold, whether the first device is in the unfolded state includes: If the Hall value is greater than the first preset threshold, it is determined that the first device is in a folded state; If the Hall value is less than or equal to the first preset threshold, it is determined that the first device is in the deployed state, and the step of determining whether the second device is in the in-place state based on the Hall value and the second preset threshold is performed.

3. The method according to claim 1 or 2, characterized in that: The step of judging whether the second device is in the on-site state according to the Hall value and the second preset threshold value includes: If the Hall value is less than or equal to the second preset threshold, it is determined that the second device is not in the in-position state, and the first device is maintained in the deployed state; If the Hall value is greater than the second preset threshold, it is determined that the second device is in the in-place state, and the first device is controlled to start the vehicle bracket mode.

4. The method according to claim 3, characterized in that After controlling the first device to enter the vehicle holder mode, the method further includes: Detecting the Hall value of the Hall chip at a first preset time interval; If the Hall value is less than or equal to the second preset threshold, maintaining the first device in the vehicle holder mode; If the Hall value is greater than the second preset threshold, the first device is controlled to exit the vehicle bracket mode.

5. The method according to claim 4, characterized in that After controlling the first device to exit the vehicle holder mode, the method further includes: The Hall value of the Hall chip is detected every second preset time period, and whether the first device is in the unfolded state is determined based on the Hall value and the first preset threshold.

6. The method according to claim 3, characterized in that: After determining that the second device is in the in-place state, the method further includes: A preset dialog box pops up, where the preset dialog box is used to indicate that the first device is about to enter the vehicle holder mode.

7. The method according to claim 1, characterized in that The Hall chip is arranged in the first main body, and the first magnet is installed in the second main body, or the Hall chip is arranged in the second main body, and the first magnet is installed in the first main body; The Hall chip is arranged corresponding to the first magnet.

8. A vehicle-mounted bracket mode starting device, characterized in that: Applied to a first device, the first device includes a first main body and a second main body, the first main body is connected to the second main body by a rotating mechanism, the second main body can be folded or unfolded relative to the first main body by the rotating mechanism, the first device also includes a Hall chip and a first magnet, the Hall chip is arranged in the projection area of ​​the second magnet of the second device; the device includes: a determination unit, a judgment unit and a control unit, wherein, The determining unit is used to determine the Hall value of the Hall chip; The judging unit is configured to judge whether the first device is in an unfolded state according to the Hall value and a first preset threshold value; The judging unit is further configured to judge whether the second device is in the in-position state according to the Hall value and a second preset threshold value when the first device is in the deployed state; The control unit is used to control the first device to start the vehicle bracket mode when the second device is in the in-place state.

9. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7.