A connection method and device of an intelligent device and a storage medium
By acquiring the connection status parameters between the terminal and the smart device and adjusting the connection relationship according to preset conditions, the problem of power waste when the smart device is not in use is solved, thus achieving energy saving and optimizing the user experience.
Patent Information
- Application Number
- CN202110677439.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-16
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2041-06-16
AI Technical Summary
Maintaining a Bluetooth connection between a smart device and a terminal for an extended period when the device is not in use results in wasted power consumption and negatively impacts the user experience.
By acquiring connection status parameters between the terminal and smart devices, the connection relationship is adjusted according to preset conditions, including disconnecting or reconnecting, and the usage status is determined based on parameters such as posture, motion state, and distance.
Save terminal power consumption, optimize user experience, and improve terminal usage efficiency.
Smart Images

Figure CN115484578B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of mobile terminal technology, and in particular to a connection method, apparatus and storage medium for a smart device. Background Technology
[0002] With the development of smart devices, more and more smart devices are being used on terminals such as mobile phones or tablets. For example, a terminal can connect to a smart device via Bluetooth, allowing the smart device to be used in conjunction with the terminal. Similarly, a stylus can be connected to a terminal via Bluetooth to use the stylus. However, if a smart device is not in use, it will remain connected to the smart terminal via Bluetooth unless the Bluetooth function is manually turned off, resulting in wasted power consumption and negatively impacting the user experience. Summary of the Invention
[0003] In view of this, the present disclosure provides a method, apparatus and storage medium for connecting smart devices.
[0004] According to a first aspect, this disclosure provides a method for connecting a smart device, applied to a terminal, the method comprising:
[0005] Obtain the connection status parameters between the terminal and the smart device;
[0006] In response to the connection status parameters meeting preset conditions, the connection relationship between the terminal and the smart device is adjusted.
[0007] In some implementations, when the terminal is connected to a smart device, the connection status parameters include a first connection status parameter and / or a second connection status parameter.
[0008] The first connection status parameter is used to describe the status parameters of the terminal;
[0009] The second connection status parameter is used to describe the status parameters of the smart device.
[0010] In some implementations, the first connection state parameter includes the terminal's attitude parameters;
[0011] The step of adjusting the connection relationship between the terminal and the smart device in response to the connection status parameter satisfying a preset condition includes:
[0012] In response to the terminal's posture parameters meeting the preset parameter range, the connection with the smart device is disconnected.
[0013] In some implementations, the first connection state parameter includes the terminal's motion state parameters;
[0014] The step of adjusting the connection relationship between the terminal and the smart device in response to the connection status parameter satisfying a preset condition includes:
[0015] In response to the terminal's motion state parameters meeting the preset motion parameter range, the connection with the smart device is disconnected.
[0016] In some implementations, the second connection state parameter includes motion state parameters of the smart device;
[0017] The step of adjusting the connection relationship between the terminal and the smart device in response to the connection status parameter satisfying a preset condition includes:
[0018] In response to the smart device's motion state parameters meeting the preset motion parameter range, the connection with the smart device is disconnected.
[0019] In some implementations, the second connection status parameter includes a distance parameter between the smart device and the terminal;
[0020] The step of adjusting the connection relationship between the terminal and the smart device in response to the connection status parameter satisfying a preset condition includes:
[0021] In response to the distance parameters between the smart device and the terminal meeting the preset distance parameters, the connection with the smart device is disconnected.
[0022] In some implementations, when the terminal is not connected to the smart device, the connection status parameters include relevant parameters of the connection records between the terminal and the smart device;
[0023] The step of adjusting the connection relationship between the terminal and the smart device in response to the connection status parameter satisfying a preset condition includes:
[0024] In response to the fact that the relevant parameters of the connection record between the terminal and the smart device meet the conditions for reconnection, the connection with the smart device is restored.
[0025] In some implementations, the process of restoring the connection with the smart device in response to the relevant parameters of the connection record between the terminal and the smart device satisfying the connection restoration conditions includes:
[0026] When the relevant parameters of the connection record between the terminal and the smart device meet the conditions for reconnection, it is determined whether the disconnection operation between the terminal and the smart device was completed through a human interaction interface;
[0027] If not, restore the connection to the smart device.
[0028] According to a second aspect, embodiments of this disclosure provide a connection device for a smart device, the device comprising:
[0029] Acquisition module: used to acquire the connection status parameters between the terminal and the smart device;
[0030] Adjustment module: Used to adjust the connection relationship between the terminal and the smart device in response to the connection status parameters meeting preset conditions.
[0031] In some implementations, when the terminal is connected to a smart device, the connection status parameters include a first connection status parameter and / or a second connection status parameter.
[0032] The first connection status parameter is used to describe the status parameters of the terminal;
[0033] The second connection status parameter is used to describe the status parameters of the smart device.
[0034] In some implementations, the first connection state parameter includes the terminal's attitude parameters;
[0035] The adjustment module includes:
[0036] In response to the terminal's posture parameters meeting the preset parameter range, the connection with the smart device is disconnected.
[0037] In some implementations, the first connection state parameter includes the terminal's motion state parameters;
[0038] The adjustment module includes:
[0039] In response to the terminal's motion state parameters meeting the preset motion parameter range, the connection with the smart device is disconnected.
[0040] In some implementations, the second connection state parameter includes motion state parameters of the smart device;
[0041] The adjustment module includes:
[0042] In response to the smart device's motion state parameters meeting the preset motion parameter range, the connection with the smart device is disconnected.
[0043] In some implementations, the second connection status parameter includes a distance parameter between the smart device and the terminal;
[0044] The adjustment module includes:
[0045] In response to the distance parameters between the smart device and the terminal meeting the preset distance parameters, the connection with the smart device is disconnected.
[0046] In some implementations, when the terminal is not connected to the smart device, the connection status parameters include relevant parameters of the connection records between the terminal and the smart device;
[0047] The adjustment module includes:
[0048] In response to the fact that the relevant parameters of the connection record between the terminal and the smart device meet the conditions for reconnection, the connection with the smart device is restored.
[0049] In some embodiments, the adjustment module includes:
[0050] When the relevant parameters of the connection record between the terminal and the smart device meet the conditions for reconnection, it is determined whether the disconnection operation between the terminal and the smart device was completed through a human interaction interface;
[0051] If not, restore the connection to the smart device.
[0052] According to a third aspect, a connection device for a smart device is provided, comprising:
[0053] processor;
[0054] Memory used to store processor-executable instructions;
[0055] The processor is configured as follows:
[0056] Obtain the connection status parameters between the terminal and the smart device;
[0057] In response to the connection status parameters meeting preset conditions, the connection relationship between the terminal and the smart device is adjusted.
[0058] According to a fourth aspect, embodiments of this disclosure provide a computer-readable storage medium storing instructions that, when executed on a computer, cause a terminal to perform a connection method for a smart device, the method comprising:
[0059] Obtain the connection status parameters between the terminal and the smart device;
[0060] In response to the connection status parameters meeting preset conditions, the connection relationship between the terminal and the smart device is adjusted.
[0061] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects: by obtaining connection status parameters, the usage status of the terminal and the smart device can be determined, and when one or more of the terminal or the smart device is in an unused state, the connection between the terminal and the smart device can be disconnected in a timely manner to avoid unnecessary power consumption waste, save resources, and optimize user experience.
[0062] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0063] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0064] Figure 1 This is a flowchart illustrating a connection method for a smart device according to an exemplary embodiment;
[0065] Figure 2 This is a flowchart illustrating a connection method for a smart device according to an exemplary embodiment;
[0066] Figure 3 It shows Figure 2 A flowchart illustrating a connection method for a smart device according to an exemplary embodiment is shown below;
[0067] Figure 4 This is a structural diagram illustrating a connection device for a smart device according to an exemplary embodiment;
[0068] Figure 5 This is a block diagram illustrating a connection device for a smart device according to an exemplary embodiment. Detailed Implementation
[0069] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with those in this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the embodiments in this disclosure as detailed in the appended claims.
[0070] This disclosure provides an exemplary embodiment of a method for connecting a smart device, such as... Figure 1 As shown, the connection method for smart devices is applied to the terminal, and the connection method for smart devices includes:
[0071] Step S101: Obtain the connection status parameters between the terminal and the smart device;
[0072] Step S102: In response to the connection status parameters meeting the preset conditions, adjust the connection relationship between the terminal and the smart device.
[0073] The smart device connection method provided in this disclosure acquires connection status parameters between the terminal and the smart device, and adjusts the connection relationship between the terminal and the smart device in response to the acquisition of connection status parameters by the terminal meeting preset conditions. The terminal includes, but is not limited to, mobile phones, tablets, etc. The smart device includes, but is not limited to, electronic devices such as styluses and Bluetooth headsets.
[0074] The preset conditions can be any conditions that describe the connection status relationship between the smart device and the terminal. The connection status relationship between the smart device and the terminal can include conditions regarding the connection status relationship when the terminal and the smart device are connected, or conditions regarding the connection status relationship when the terminal and the smart device are not connected. For example, when the terminal and the smart device are connected, in response to the connection status parameters meeting the preset conditions, the terminal can disconnect from the smart device; when the terminal and the smart device are not connected, in response to the connection status parameters meeting the preset conditions, the connection with the smart device can be restored. This allows the terminal to disconnect or restore the connection with the smart device according to the actual situation, improving the user experience.
[0075] In an exemplary embodiment of this disclosure, a method for connecting a smart device is provided, the method for connecting the smart device includes... Figure 1 The method shown, and:
[0076] When a terminal connects to a smart device, the connection status parameters include a first connection status parameter and / or a second connection status parameter.
[0077] The first connection status parameter is used to describe the status parameters of the terminal;
[0078] The second connection status parameter is used to describe the status parameters of the smart device.
[0079] In the exemplary embodiments provided in this disclosure, when a terminal is connected to a smart device, the connection status parameters may include a first connection status parameter, which describes the status parameters of the terminal. When the first connection status parameter of the terminal meets a preset condition, the connection with the smart device is disconnected. The connection status parameters may also include a second connection status parameter, which describes the status parameters of the smart device. When the second connection status parameter of the smart device meets a preset condition, the terminal disconnects from the smart device. This achieves the goal of determining whether to disconnect from the smart device based on the status parameters of the terminal and / or the smart device, so that the terminal disconnects from the smart device when it is not in use, reducing the power consumption of the terminal and improving the efficiency of the terminal.
[0080] In a smart device connection method provided in an exemplary embodiment of this disclosure, the first connection state parameter includes the terminal's posture parameter;
[0081] In response to the connection status parameters meeting preset conditions, the connection relationship between the terminal and the smart device is adjusted, including:
[0082] If the terminal's attitude parameters meet the preset parameter range, disconnect from the smart device.
[0083] In the connection method for smart devices provided in this disclosure, the first connection state parameter may include the terminal's posture parameters. In response to the terminal's posture parameters satisfying a preset parameter range, the connection with the smart device is disconnected.
[0084] In one example, the terminal is a mobile phone, and the smart device is a stylus. The mobile phone and stylus are connected via Bluetooth. The mobile phone uses its own accelerometer and / or magnetometer to determine that its posture parameters meet the preset parameter range of the mobile phone. For example, the posture parameters of the mobile phone meet the preset parameter range of the mobile phone being upside down. When the posture parameters of the mobile phone meet the preset parameter range of the mobile phone being upside down, it is considered that the mobile phone is in a state where the stylus is not used, and thus it is determined that the smart device is not used. In response to the mobile phone's posture parameters meeting the preset parameter range of the mobile phone being upside down, the mobile phone closes the Bluetooth connection with the stylus.
[0085] In the smart device connection method provided in this disclosure, the connection with the smart device is disconnected when the terminal's posture parameters are detected to meet preset conditions. By obtaining the terminal's posture parameters, the usage status of the smart device is determined, and the connection can be disconnected or maintained. This allows the terminal to disconnect from the smart device in a timely manner when not in use, saving terminal power consumption and improving terminal usage efficiency.
[0086] In a smart device connection method provided in an exemplary embodiment of this disclosure, the first connection state parameter includes the motion state parameter of the terminal;
[0087] In response to the connection status parameters meeting preset conditions, the connection relationship between the terminal and the smart device is adjusted, including:
[0088] If the terminal's motion state parameters meet the preset motion parameter range, disconnect from the smart device.
[0089] In the connection method of the smart device provided in this disclosure, the first connection status parameter may include the motion parameters of the terminal. When the motion parameters of the terminal meet the preset motion parameter range, the connection with the smart device is disconnected.
[0090] In one example, the terminal is a mobile phone, and the smart device is a stylus. The mobile phone and stylus are connected via Bluetooth. The mobile phone, through its own accelerometer or other computing unit, determines that the phone's motion parameters meet its preset parameter range. For example, if the phone's motion parameters meet the preset motion parameter range indicating that the phone is flipping or undergoing high-speed motion exceeding a preset speed, it is considered that the phone is in a state where the stylus is not being used, and thus it is determined that the stylus is not being used. The terminal's motion parameters include the preset motion parameter range indicating that the phone is flipping or undergoing high-speed motion exceeding a preset speed. If it is determined that the stylus is not being used, in response to the mobile phone's motion parameters meeting the preset motion parameter range indicating that the phone is flipping or undergoing high-speed motion exceeding a preset speed, the mobile phone deactivates its Bluetooth connection with the stylus.
[0091] In the smart device connection method provided in this disclosure, when a terminal is connected to a smart device, if the terminal's motion state parameters are detected to meet a preset motion parameter range, the connection with the smart device is disconnected. By obtaining the terminal's motion state parameters, the usage status of the smart device is determined, and the terminal is able to choose to disconnect or maintain the connection, enabling the terminal to disconnect from the smart device in a timely manner when not in use, saving terminal power consumption and improving terminal usage efficiency.
[0092] In a smart device connection method provided in an exemplary embodiment of this disclosure, the second connection state parameter includes the motion state parameter of the smart device;
[0093] The step of adjusting the connection relationship between the terminal and the smart device in response to the connection status parameter satisfying a preset condition includes:
[0094] In response to the smart device's motion state parameters meeting the preset motion parameter range, the connection with the smart device is disconnected.
[0095] In the connection method for smart devices provided in this disclosure, the second connection status parameter may include the motion parameters of the smart device. When the motion parameters of the smart device meet the preset motion parameter range, the connection with the smart device is disconnected.
[0096] In one example, the terminal is a mobile phone, and the smart device is a stylus. The mobile phone and stylus are connected via Bluetooth. The mobile phone uses motion-related sensors to determine whether the stylus's motion state parameters meet the stylus's preset parameter range. For example, the mobile phone's motion state parameters meet the preset parameter range where the movement speed is within a preset range for a first preset time period. For instance, if the movement speed is consistently 0 for the first preset time period, it is considered to be in a non-motion state. When the stylus's motion state parameters meet the preset parameter range, the mobile phone is considered to be in a state where the stylus is not being used, thus determining that the stylus is not being used. In response to the stylus's motion state parameters meeting the preset parameter range, the mobile phone deactivates the Bluetooth connection with the stylus.
[0097] In one example, the terminal is a mobile phone, and the smart device is a stylus. The mobile phone and stylus are connected via Bluetooth. The mobile phone has a Hall sensor, and the stylus has a magnetic structure. When the stylus is placed in a charger with a magnetic attraction mechanism for charging, the mobile phone uses the Hall sensor to obtain the state information caused by the proximity of the magnetic structure, thereby determining that the stylus is in a charging state. The motion state parameters include whether the stylus is in a charging state, i.e., stationary, with a movement rate of 0. When the stylus's motion state parameters meet the condition that the stylus is in a charging state, it is considered that the stylus is in an unused state. In response to the stylus's motion state parameters meeting the preset motion parameter range, the mobile phone deactivates the Bluetooth connection with the stylus.
[0098] In the smart device connection method provided in this disclosure, when the motion state parameters of the smart device are detected to meet the preset motion parameter range, it is determined that the smart device is in an unused state, and the mobile phone disconnects from the smart device. By obtaining the motion state parameters of the smart device, the usage status of the smart device is determined, and the connection can be disconnected or kept open, enabling the terminal to disconnect from the smart device in a timely manner when it is not in use, saving terminal power consumption and improving terminal usage efficiency.
[0099] In a smart device connection method provided in an exemplary embodiment of this disclosure, the second connection status parameter includes the distance parameter between the smart device and the terminal;
[0100] In response to the connection status parameters meeting preset conditions, the connection relationship between the terminal and the smart device is adjusted, including:
[0101] If the distance parameters between the smart device and the terminal meet the preset distance parameters, disconnect the connection with the smart device.
[0102] In one example, the terminal is a tablet computer, and the smart device is a stylus. The tablet computer and the stylus are connected via Bluetooth. When the distance parameter between the stylus and the tablet computer remains greater than a preset distance parameter for a second preset time period, the stylus is considered to be in an unused state. In response to the distance parameter between the stylus and the tablet computer meeting the preset distance parameter, the tablet computer disconnects from the stylus. The distance parameter between the smart device and the terminal includes whether it remains greater than the preset distance parameter for the second preset time period. If so, the stylus is determined to be in an unused state, and the tablet computer disconnects from the stylus.
[0103] In the smart device connection method provided in this disclosure, when the distance parameter between the smart device and the terminal is detected to meet a preset distance parameter, the smart device is considered to be in an unused state, and the terminal disconnects from the smart device. The usage status of the smart device is determined by the distance parameter between the smart device and the terminal. If the distance remains greater than the preset distance for a second preset time period, it is confirmed that the smart device is in an unused state, and the connection with the smart device is disconnected. This prevents the terminal from still activating the connection module when the smart device is outside the preset connection distance parameter, thus avoiding unnecessary power consumption.
[0104] In a smart device connection method provided in an exemplary embodiment of this disclosure, when the terminal is not connected to the smart device, the connection status parameters include relevant parameters of the connection record between the terminal and the smart device. For example... Figure 2 As shown, Figure 2 A flowchart illustrating a method for adjusting the connection relationship between a terminal and a smart device when the terminal is not connected to a smart device, in response to the connection status parameter meeting a preset condition, is shown according to an exemplary embodiment of this disclosure:
[0105] Step S201: In response to the fact that the relevant parameters of the connection record between the terminal and the smart device meet the conditions for resuming connection, the connection with the smart device is restored. In the connection method for the smart device provided in this disclosure, when the terminal is not connected to the smart device, the connection status parameters include the relevant parameters of the connection record between the terminal and the smart device. By obtaining the connection status parameters, it is determined whether the conditions for the terminal to resume connection with the smart device are met. That is, when the relevant parameters of the connection record between the terminal and the smart device meet the conditions for resuming connection, the connection with the smart device is restored.
[0106] In one example, the terminal is a mobile phone, and the smart device is a stylus. After the mobile phone detects that the stylus has been used again, it retrieves the relevant parameters of the connection record between the mobile phone and the stylus. If the retrieved relevant parameters of the connection record between the mobile phone and the stylus meet the conditions for reconnection, the Bluetooth connection with the stylus is restored.
[0107] In the connection of the smart device provided in this disclosure, when the terminal is not connected to the smart device, when the smart device is detected to be used again, the relevant parameters of the connection record between the terminal and the smart device are obtained. When the relevant parameters of the connection record meet the preset conditions, the connection with the smart device is restored in response to the relevant parameters of the connection record meeting the preset conditions. The connection between the terminal and the smart device is automatically restored, saving the user the tedious step of having to reopen the connection and improving the user experience.
[0108] In a smart device connection method provided in an exemplary embodiment of this disclosure, such as... Figure 3 As shown, Figure 3 It shows Figure 2In step S201, the flowchart of the method for restoring the connection with the smart device in response to the relevant parameters of the connection record between the terminal and the smart device meeting the connection restoration conditions is as follows:
[0109] Step S2011: When the relevant parameters of the connection record between the terminal and the smart device meet the conditions for reconnection, determine whether the terminal and the smart device disconnected through a manual interaction interface.
[0110] Step S2012: If not, restore the connection with the smart device.
[0111] In the smart device connection method provided in this disclosure, in order to avoid erroneous operation when restoring the connection with the smart device, it is necessary to first determine whether the disconnection operation between the terminal and the smart device was completed through a manual interactive interface. If so, it means that the user of the terminal actively disconnected the connection with the smart device. In this case, it is not necessary to restore the connection with the smart device. If not, it means that the terminal automatically disconnected the connection with the smart device when the smart device was not in use in order to save power consumption, and the connection with the smart device can be restored.
[0112] In one example, the terminal is a tablet computer and the smart device is a stylus. When the Hall sensor in the tablet computer detects that the stylus is not charging, it first determines how the tablet computer and the stylus were disconnected last time. If the last disconnection was completed by a human interaction interface, it chooses not to re-establish the connection with the stylus; otherwise, it chooses to re-establish the connection with the stylus.
[0113] In this embodiment of the disclosure, after determining whether the terminal and the smart device were disconnected via a human-interactive interface, the user can choose whether to restore the connection with the smart device. This prevents the terminal from automatically reconnecting to the smart device after the user actively turns it off, thus avoiding inconvenience to the user.
[0114] In the above examples, the smart devices are all illustrated using a stylus pen, which does not constitute a limitation of this disclosure. The state detection method provided in this disclosure can be applied to any connection relationship between electronic devices and terminals.
[0115] This disclosure also provides a connection device for a smart device, see reference. Figure 4 , Figure 4 This is a structural diagram of a connection device for a smart device according to an exemplary embodiment. Figure 4 As shown, the device is applied to a terminal and is characterized in that it includes:
[0116] Acquisition module 11: used to acquire the connection status parameters between the terminal and the smart device;
[0117] Adjustment module 12: Used to adjust the connection relationship between the terminal and the smart device in response to the connection status parameters meeting preset conditions.
[0118] This disclosure also provides a connection device for a smart device, the device including... Figure 4 The apparatus shown, and:
[0119] When the terminal is connected to a smart device, the connection status parameters include a first connection status parameter and / or a second connection status parameter.
[0120] The first connection status parameter is used to describe the status parameters of the terminal;
[0121] The second connection status parameter is used to describe the status parameters of the smart device.
[0122] This disclosure also provides a connection device for a smart device, the device including... Figure 4 The apparatus shown, and:
[0123] The first connection state parameter includes the terminal's attitude parameters;
[0124] The adjustment module 12 further includes:
[0125] In response to the terminal's posture parameters meeting the preset parameter range, the connection with the smart device is disconnected.
[0126] This disclosure also provides a connection device for a smart device, the device including... Figure 4 The apparatus shown, and:
[0127] The first connection state parameters include the terminal's motion state parameters;
[0128] The adjustment module 12 further includes:
[0129] In response to the terminal's motion state parameters meeting the preset motion parameter range, the connection with the smart device is disconnected.
[0130] This disclosure also provides a connection device for a smart device, the device including... Figure 4 The apparatus shown, and:
[0131] The second connection status parameter includes the motion status parameters of the smart device;
[0132] The adjustment module 12 further includes:
[0133] In response to the smart device's motion state parameters meeting the preset motion parameter range, the connection with the smart device is disconnected.
[0134] This disclosure also provides a connection device for a smart device, the device including... Figure 4 The apparatus shown, and:
[0135] The second connection status parameter includes the distance parameter between the smart device and the terminal;
[0136] The adjustment module 12 includes:
[0137] In response to the distance parameters between the smart device and the terminal meeting the preset distance parameters, the connection with the smart device is disconnected.
[0138] This disclosure also provides a connection device for a smart device, the device including... Figure 4 The apparatus shown, and:
[0139] When the terminal is not connected to the smart device, the connection status parameters include relevant parameters of the connection records between the terminal and the smart device;
[0140] The adjustment module 12 further includes:
[0141] In response to the fact that the relevant parameters of the connection record between the terminal and the smart device meet the conditions for reconnection, the connection with the smart device is restored.
[0142] This disclosure also provides a connection device for a smart device, the device including... Figure 4 The apparatus shown, and:
[0143] The adjustment module 12 includes:
[0144] When the relevant parameters of the connection record between the terminal and the smart device meet the conditions for reconnection, it is determined whether the disconnection operation between the terminal and the smart device was completed through a human interaction interface;
[0145] If not, restore the connection to the smart device.
[0146] Figure 5 This is a block diagram illustrating a connectivity device 500 for a smart device according to an exemplary embodiment. For example, device 500 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, etc.
[0147] Reference Figure 5 The device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.
[0148] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0149] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of this data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 storage, flash memory, magnetic disk, or optical disk.
[0150] The power supply component 506 provides power to the various components of the device 500. The power supply component 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to the device 500.
[0151] Multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. 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 touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0152] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0153] I / O interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0154] Sensor assembly 514 includes one or more sensors for providing status assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0155] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0156] In an exemplary embodiment, the apparatus 500 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, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0157] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of the device 500 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0158] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enables the mobile terminal to execute a connection method for a smart device, the connection method for the smart device comprising:
[0159] Obtain the connection status parameters between the terminal and the smart device;
[0160] In response to the connection status parameters meeting preset conditions, the connection relationship between the terminal and the smart device is adjusted.
[0161] Other embodiments of the embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the embodiments of this disclosure that follow the general principles of the embodiments of this disclosure and include common knowledge or customary techniques in the art not disclosed in the embodiments. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of the embodiments of this disclosure are indicated by the following claims.
[0162] It should be understood that the embodiments in this disclosure are not limited to the precise structures described above and shown in the accompanying drawings, and various combinations, substitutions, modifications, and changes can be made to the method steps or device components disclosed in this application without departing from its scope. All such combinations, substitutions, modifications, and changes are considered to be included within the scope of this disclosure. The scope of protection claimed in this disclosure is limited by the appended claims.
Claims
1. A connection method of a smart device, applied to a terminal, and having the steps of: obtaining a connection state parameter of the terminal and a smart device, wherein the smart device comprises a stylus; in response to the connection state parameter satisfying a preset condition, adjusting a connection relationship between the terminal and the smart device; wherein, when the terminal is connected with the smart device, the connection state parameter comprises a first connection state parameter; the first connection state parameter is used to describe a state parameter of the terminal, and the first connection state parameter comprises a posture parameter of the terminal and / or a motion state parameter of the terminal; in response to the connection state parameter satisfying a preset condition, adjusting the connection relationship between the terminal and the smart device comprises: in response to the posture parameter of the terminal indicating that the terminal is in a reverse state, and / or in response to the motion state parameter of the terminal indicating that the terminal is in a flipped state or a motion state exceeding a preset speed, determining that the smart device is not used by the terminal, and disconnecting the connection with the smart device; when the terminal is connected with the smart device, the connection state parameter further comprises a second connection state parameter; the second connection state parameter is used to describe a state parameter of the smart device, and the second connection state parameter comprises a motion state parameter of the smart device; in response to the connection state parameter satisfying a preset condition, adjusting the connection relationship between the terminal and the smart device comprises: in response to the motion state parameter of the smart device indicating that the smart device is in a charging state, determining that the smart device is not used by the terminal, and disconnecting the connection with the smart device; when the terminal is not connected with the smart device, the terminal detects that the smart device is used again, and the connection state parameter comprises a related parameter of a connection record of the terminal and the smart device; in response to the connection state parameter satisfying a preset condition, adjusting the connection relationship between the terminal and the smart device comprises: in response to the related parameter of the connection record of the terminal and the smart device satisfying a connection resuming condition, resuming the connection with the smart device; in response to the connection state parameter satisfying a preset condition, adjusting the connection relationship between the terminal and the smart device comprises: in response to the related parameter of the connection record of the terminal and the smart device satisfying a connection resuming condition, resuming the connection with the smart device; in response to the related parameter of the connection record of the terminal and the smart device satisfying a connection resuming condition, resuming the connection with the smart device comprises: determining whether the terminal and the smart device complete a disconnection operation via a manual interaction interface; if not, resuming the connection with the smart device; the second connection state parameter comprises a distance parameter of the smart device and the terminal; in response to the connection state parameter satisfying a preset condition, adjusting the connection relationship between the terminal and the smart device comprises: in response to the distance parameter of the smart device and the terminal satisfying a preset distance parameter, disconnecting the connection with the smart device. 3.A connection device of a smart device, applied to a terminal, and having a obtaining module: used to obtain a connection state parameter of the terminal and a smart device, wherein the smart device comprises a stylus. 2.The connection method of a smart device according to claim 1, wherein, an adjusting module, configured to adjust a connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition; wherein the connection state parameter comprises a first connection state parameter when the terminal is connected with the smart device; the first connection state parameter is used to describe a state parameter of the terminal, and the first connection state parameter comprises a posture parameter of the terminal and / or a motion state parameter of the terminal; the adjusting module is further configured to: determine that the smart device is not used by the terminal, and disconnect the connection with the smart device, in response to the posture parameter of the terminal indicating that the terminal is in a reverse state, and / or in response to the motion state parameter of the terminal indicating that the terminal is in a flipped state or a motion state exceeding a preset speed; the connection state parameter further comprises a second connection state parameter when the terminal is connected with the smart device; the second connection state parameter is used to describe a state parameter of the smart device, and the second connection state parameter comprises a motion state parameter of the smart device; the adjusting module is further configured to: determine that the smart device is not used by the terminal, and disconnect the connection with the smart device, in response to the motion state parameter of the smart device indicating that the smart device is in a charging state; when the terminal is not connected with the smart device, the terminal detects that the smart device is used again, and the connection state parameter comprises a related parameter of a connection record of the terminal and the smart device; the adjusting module comprises: reconnect with the smart device in response to the related parameter of the connection record of the terminal and the smart device satisfying a connection resuming condition; the adjusting module comprises: determine whether the terminal and the smart device complete a disconnection operation via a manual interaction interface when the related parameter of the connection record of the terminal and the smart device satisfies the connection resuming condition; if not, reconnect with the smart device.
4. The connection apparatus of the smart device according to claim 3, wherein, the second connection state parameter comprises a distance parameter of the smart device and the terminal; the adjusting module comprises: disconnect the connection with the smart device in response to the distance parameter of the smart device and the terminal satisfying a preset distance parameter.
5. A connection device of a smart device, characterized in that, comprise: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to: obtain a connection state parameter of a terminal and a smart device, wherein the smart device comprises a stylus; adjust a connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition; wherein the connection state parameter comprises a first connection state parameter when the terminal is connected with the smart device; the first connection state parameter is used to describe a state parameter of the terminal, and the first connection state parameter comprises a posture parameter of the terminal and / or a motion state parameter of the terminal; the adjusting the connection relationship between the terminal and the smart device in response to the connection state parameter satisfying the preset condition comprises: in response to the posture parameter of the terminal representing that the terminal is in a upside-down state, and / or in response to the motion state parameter of the terminal representing that the terminal is in a turnover state or a motion state exceeding a preset speed, determining that the smart device is not used by the terminal, and disconnecting the connection with the smart device; when the terminal is connected with the smart device, the connection state parameter further comprises a second connection state parameter; the second connection state parameter is used to describe a state parameter of the smart device, and the second connection state parameter comprises a motion state parameter of the smart device; the adjusting the connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition comprises: in response to the motion state parameter of the smart device representing that the smart device is in a charging state, determining that the smart device is not used by the terminal, and disconnecting the connection with the smart device; when the terminal is not connected with the smart device, the terminal detects that the smart device is used again, and the connection state parameter comprises a related parameter of a connection record between the terminal and the smart device; the adjusting the connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition comprises: in response to the related parameter of the connection record between the terminal and the smart device satisfying a connection resuming condition, resuming the connection with the smart device; the resuming the connection with the smart device in response to the related parameter of the connection record between the terminal and the smart device satisfying a connection resuming condition comprises: when the related parameter of the connection record between the terminal and the smart device satisfies the connection resuming condition, determining whether the terminal and the smart device complete a disconnection operation via a manual interaction interface; if not, resuming the connection with the smart device. 6.A non-transitory computer readable storage medium having instructions stored therein, which when executed on a computer, cause a terminal to perform a connection method of a smart device, the connection method comprising: acquiring a connection state parameter of a terminal and a smart device, wherein the smart device comprises a stylus; adjusting a connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition; wherein when the terminal is connected with the smart device, the connection state parameter comprises a first connection state parameter; the first connection state parameter is used to describe a state parameter of the terminal, and the first connection state parameter comprises a posture parameter of the terminal and / or a motion state parameter of the terminal; and the adjusting the connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition comprises: in response to the posture parameter of the terminal representing that the terminal is in a upside-down state, and / or in response to the motion state parameter of the terminal representing that the terminal is in a turnover state or a motion state exceeding a preset speed, determining that the smart device is not used by the terminal, and disconnecting the connection with the smart device; when the terminal is connected with the smart device, the connection state parameter further comprises a second connection state parameter; the second connection state parameter is used to describe a state parameter of the smart device, and the second connection state parameter comprises a motion state parameter of the smart device; and the adjusting the connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition comprises: in response to the motion state parameter of the smart device representing that the smart device is in a charging state, determining that the smart device is not used by the terminal, and disconnecting the connection with the smart device; when the terminal is not connected with the smart device, the terminal detects that the smart device is used again, and the connection state parameter comprises a related parameter of a connection record between the terminal and the smart device; the adjusting the connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition comprises: in response to the related parameter of the connection record between the terminal and the smart device satisfying a connection resuming condition, resuming the connection with the smart device; and the resuming the connection with the smart device in response to the related parameter of the connection record between the terminal and the smart device satisfying a connection resuming condition comprises: when the related parameter of the connection record between the terminal and the smart device satisfies the connection resuming condition, determining whether the terminal and the smart device complete a disconnection operation via a manual interaction interface; and if not, resuming the connection with the smart device. The second connection state parameter is used for describing a state parameter of the smart device, and the second connection state parameter comprises a motion state parameter of the smart device; The adjusting the connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition comprises: In response to the motion state parameter of the smart device indicating that the smart device is in a charging state, determining that the smart device is not used by the terminal, and disconnecting the connection with the smart device; When the terminal is not connected with the smart device, the terminal detects that the smart device is used again, and the connection state parameter comprises a related parameter of a connection record between the terminal and the smart device; The adjusting the connection relationship between the terminal and the smart device in response to the connection state parameter satisfying a preset condition comprises: In response to the related parameter of the connection record between the terminal and the smart device satisfying a connection resuming condition, resuming the connection with the smart device; The resuming the connection with the smart device in response to the related parameter of the connection record between the terminal and the smart device satisfying a connection resuming condition comprises: When the related parameter of the connection record between the terminal and the smart device satisfies the connection resuming condition, determining whether the terminal and the smart device complete a disconnection operation via a manual interaction interface; If not, resuming the connection with the smart device.
Citation Information
Patent Citations
Method and device for preventing mobile terminals from missing calls
CN104065832A
Use state recognition method and device, storage medium and electronic equipment
CN111176465A