Method for external device to access intelligent terminal, and electronic device

By detecting the preset status on the smart terminal and displaying the connection effect, users can select appropriate parameters to communicate with external devices, solving the problem that the smart terminal cannot recognize external devices, and improving access success rate and concealment.

WO2025113302A1PCT designated stage expired Publication Date: 2025-06-05VIVO MOBILE COMM CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/133435
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-11-27
Filing Date
2024-11-21
Publication Date
2025-06-05

AI Technical Summary

Technical Problem

When the smart terminal is interconnected with external devices, it cannot successfully identify the external device, resulting in unavailability to access.

Method used

By detecting whether the smart terminal is in a preset state, and displaying multiple connection effects when an external device is inserted, each connection effect corresponds to a set of parameters. After the user selects the connection effect, the smart terminal communicates with the external device according to the selected parameters and connects the external device when the communication quality reaches the preset quality.

Benefits of technology

It improves the success rate of external devices to access smart terminals, avoids the problems of interconnection interruption and the inability to identify external devices, and at the same time improves the concealment of the connection effect and reduces the possibility of poor user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024133435_05062025_PF_FP_ABST
    Figure CN2024133435_05062025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminal interconnection, and discloses a method for an external device to access an intelligent terminal, and an electronic device. The method comprises: detecting whether an intelligent terminal is in a preset state; when it is detected that the intelligent terminal is in the preset state and an external device is inserted into the intelligent terminal, displaying a plurality of connection effects, each connection effect corresponding to a group of parameters; when a selection operation on a first connection effect is received, communicating with the external device on the basis of a group of parameters corresponding to the first connection effect; and when the communication quality between the external device and the intelligent terminal is greater than or equal to preset quality, enabling the external device to access the intelligent terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Method for connecting external device to intelligent terminal and electronic device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to a Chinese patent application filed with the Patent Office of China on November 27, 2023, with application number 202311601900.7 and invention name “Method and electronic device for accessing external device to smart terminal”. The entire contents of the Chinese patent application are incorporated herein by reference. Technical Field

[0003] The present application belongs to the field of terminal interconnection technology, and specifically relates to a method for connecting an external device to a smart terminal and an electronic device. Background Art

[0004] With the development of terminal interconnection technology, smart terminals can connect with a variety of external devices to achieve data transmission between devices. Taking the smart terminal as an example, the smartphone can connect with various devices (slave devices) and host devices (master devices, also known as OTG (On-The-Go) peripherals) to transmit data. Devices can be personal computers (PCs) and car computers, while hosts can be data hard drives, Secure Digital (SD) cards, etc.

[0005] For external devices connected to smart devices via a Universal Serial Bus (USB) interface, when the smart terminal is interconnected with these external devices, it usually communicates with the external devices according to the communication parameters preset in the smart terminal to identify the external devices, and connects to the external devices after successful identification to achieve device interconnection. In related technologies, for user experience and software design factors, smart terminals usually use the same set of parameters to communicate with external devices. However, in actual applications, the hardware designs of external devices are diverse. When the smart terminal uses the same set of parameters to communicate with external devices, there may be compatibility issues with the parameters, resulting in the smart terminal being unable to successfully identify the external device and, thus, unable to interconnect with the external device. Summary of the Invention

[0006] The purpose of the embodiments of the present application is to provide a method and electronic device for accessing an external device to a smart terminal, which can solve the problem that the smart terminal cannot successfully identify the external device in a scenario where the smart terminal and the external device are interconnected.

[0007] In a first aspect, an embodiment of the present application provides a method for connecting an external device to a smart terminal, the method comprising:

[0008] Detect whether the smart terminal is in a preset state;

[0009] When it is detected that the smart terminal is in the preset state and an external device is plugged into the smart terminal, multiple connection effects are displayed, each connection effect corresponds to a set of parameters;

[0010] When a selection operation for a first connection effect is received, communicating with the external device according to a set of parameters corresponding to the first connection effect;

[0011] When the communication quality between the external device and the smart terminal is greater than or equal to a preset quality, the external device is connected to the smart terminal.

[0012] In a second aspect, an embodiment of the present application provides a device for connecting an external device to a smart terminal, the device comprising:

[0013] A detection module, used to detect whether the smart terminal is in a preset state;

[0014] A display module is configured to display a plurality of connection effects when it is detected that the smart terminal is in the preset state and an external device is plugged into the smart terminal, each connection effect corresponding to a set of parameters;

[0015] a communication module, configured to, upon receiving a selection operation for a first connection effect, communicate with the external device according to a set of parameters corresponding to the first connection effect;

[0016] The access module is configured to connect the external device to the smart terminal when the communication quality between the external device and the smart terminal is greater than or equal to a preset quality.

[0017] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0018] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0019] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0020] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.

[0021] In an embodiment of the present application, in a scenario where a smart terminal is interconnected with an external device, the smart terminal can display multiple connection effects for the user to select, and each connection effect can correspond to a set of parameters. After the user selects a certain connection effect, the smart terminal can communicate with the external device based on the parameters corresponding to the connection effect selected by the user, and connect the external device to the smart terminal when the communication quality between the external device and the smart terminal is greater than or equal to the preset quality. In this way, since the smart terminal can use different parameters to communicate with the external device, the compatibility is better, the success rate of the external device connecting to the smart terminal can be improved, and the problem of interconnection interruption and inability to recognize the external device can be avoided. In addition, since the smart terminal displays multiple connection effects for the user to select only when it detects that the smart terminal is in a preset state and an external device is inserted into the smart terminal, the display threshold of the connection effect can be increased, thereby improving the concealment of the connection effect, and avoiding the problem of a bad experience for the user due to frequent display of the connection effect when the user triggers it by mistake. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] FIG1 is a flow chart of a method for connecting an external device to a smart terminal according to an embodiment of the present application;

[0023] FIG2 is a schematic diagram of a method for connecting an external device to a smart terminal according to an embodiment of the present application;

[0024] 3 is a flow chart of a method for connecting an external device to a smart terminal according to an embodiment of the present application;

[0025] 4 is a schematic diagram of a method for connecting an external device to a smart terminal according to an embodiment of the present application;

[0026] 5 is a schematic structural diagram of an apparatus for connecting an external device to a smart terminal according to an embodiment of the present application;

[0027] FIG6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;

[0028] FIG7 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are 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 are within the scope of protection of this application.

[0030] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0031] It should be noted that in the technical solutions provided in the embodiments of this application, the intelligent terminal may be a terminal with an operating system, such as a smartphone. The external device may be a device that can be connected to the intelligent terminal via a USB interface, such as a hard drive. In one possible implementation, the external device may also be a device that can be connected to the intelligent terminal via other means. The external device may be either a device or a host device.

[0032] The following describes in detail the method for connecting an external device to a smart terminal and the electronic device provided in the embodiments of the present application through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0033] Figure 1 is a flow chart of a method for connecting an external device to a smart terminal according to an embodiment of the present application. The embodiment shown in Figure 1 can be executed by a smart terminal. The method for connecting an external device to a smart terminal shown in Figure 1 includes the following steps.

[0034] S12: Detect whether the smart terminal is in a preset state.

[0035] When a user wants to interconnect an external device with a smart terminal, the user can insert the external device into the smart terminal, for example, the user can insert the external device into the smart terminal through the connection interface of the smart terminal, which can be, for example, a USB interface. After the external device is inserted into the smart terminal, the smart terminal can communicate with the external device to connect the external device to the smart terminal. After the smart terminal communicates with the external device, there can be two results. One is that the smart terminal successfully identifies the external device and connects the external device to the smart terminal, and the other is that the smart terminal does not successfully identify the external device and fails to connect to the external device. In the case of successful identification and connection of the external device, the smart terminal and the external device are successfully interconnected, and the user can transfer data between the smart terminal and the external device. In the case of unsuccessful identification and failure to connect to the external device, the user can set the smart terminal to a preset state so that the smart terminal can subsequently display multiple connection effects in the preset state, and communicate with the external device based on these connection effects, and then connect the external device to the smart terminal.

[0036] For smart terminals, during operation, they can detect whether they are in a preset state. The smart terminal can detect whether it is in a preset state when an external device is plugged into the smart terminal or in real time, which is not specifically limited here.

[0037] Optionally, in some implementations, detecting whether the smart terminal is in a preset state may include at least one of the following:

[0038] Detect whether a specified button in the smart terminal is in a specified state;

[0039] Detect whether the display interface of the smart terminal is the specified interface;

[0040] Detect whether a startup operation for a specified application in the smart terminal is received.

[0041] The number of designated keys in a smart terminal can be one or more. When the number of designated keys is one, the designated key can be a virtual key or a physical key. When the number of designated keys is multiple, the multiple designated keys can include at least one of a virtual key and a physical key, that is, the multiple designated keys can all be virtual keys, all be physical keys, or include both virtual keys and physical keys. In order to improve the display threshold of the connection effect, the number of designated keys can be multiple.

[0042] Taking a smart phone as an example, the virtual buttons in the smart phone may include Wi-Fi, flashlight, navigation button, OTG switch, data switch, Bluetooth, power saving mode, etc., and the physical buttons may include volume button, power off button, etc.

[0043] The designated button has at least two states in the smart terminal, and the at least two states can be determined according to the actual scenario. Taking the smart terminal as a smart phone as an example, if the designated button is a flashlight (virtual button), the state of the flashlight can include an on state and an off state. Furthermore, if the flashlight has multiple modes, each mode corresponds to a different brightness, then the state of the flashlight can also include multiple states corresponding to multiple brightnesses. If the designated button is a volume button (physical button), the state of the volume button can include a mute state and a non-mute state. Furthermore, since the volume button can also be triggered continuously, the state of the volume button can also include multiple states corresponding to different continuous triggering times (or it can also be a state corresponding to an odd number of continuous triggerings, and a state corresponding to an even number of continuous triggerings). If the designated button includes a flashlight and a volume button, the states of the flashlight and the volume button can be any combination of the multiple states of the flashlight and the multiple states of the volume button.

[0044] The designated state of a designated key can be any one or more of the multiple states of the designated key, which can be determined based on actual circumstances and is not specifically limited here. Optionally, in some embodiments, if the multiple states of the designated key include a default state and a non-default state, the designated state can be the non-default state of the designated key. This can increase the threshold for displaying the connection effect and avoid disturbing the user. For example, taking the smart terminal as a smartphone, if the designated button is a flashlight in the smartphone, the default state of the flashlight is usually off, and the on state is usually a non-default state, then the designated state of the flashlight can be on.

[0045] Optionally, in some embodiments, multiple states of a designated key can be switched between each other. Thus, when detecting whether a designated key is in the designated state, it can be specifically detected whether the designated key has switched from a non-designated state to a designated state, that is, whether the designated state of the designated key is a state obtained by switching from other states. Taking the example of a designated key including a first state and a second state, when detecting whether the designated key is in the designated state, it can include:

[0046] Detecting whether a designated key switches from a first state to a second state, where the designated state includes the second state.

[0047] Specifically, the smart terminal can set the second state to the designated state of the designated key and the first state to the non-designated state of the designated key. In this way, when detecting whether the designated key is in the designated state, it can be detected whether the designated key is switched from the first state to the second state. If so, it can be determined that the designated key is in the designated state, thereby raising the threshold for displaying the connection effect and avoiding affecting the user experience. This is because when the user is using the smart terminal normally, when there is no relevant demand, the state of the designated key is usually not switched. When the state of the designated key is not switched, it means that the user has no relevant demand. If the connection effect is displayed at this time, it will cause disturbance to the user, thereby reducing the user experience. Conversely, when the state of the designated key is switched, it means that the user has a relevant demand. If the connection effect is displayed at this time, it will not cause disturbance to the user and can meet the user's demand. In view of this, when detecting whether the designated key is in the designated state, it can be detected whether the designated state of the designated key is a state switched from other states. If not, the connection effect can be not displayed to avoid disturbing the user.

[0048] To facilitate understanding of how to detect whether a designated button in a smart terminal is in a designated state, the following description will be made by taking a smart phone as an example.

[0049] Assume that there are two designated buttons in a smartphone, specifically a flashlight (virtual button) and a volume button (physical button). The flashlight includes two states: on and off. The off state is the default state. The volume button includes a silent state and a non-silent state. The non-silent state is the default state. Then, the on state of the flashlight and the silent state of the volume button can be used as designated states, and the other states (the on state of the flashlight and the non-silent state of the volume button, the off state of the flashlight and the silent state of the volume button, the off state of the flashlight and the non-silent state of the volume button) can be determined as non-designated states. In this way, when detecting whether the designated button is in the designated state, it is possible to detect whether the flashlight and the volume button are switched from the non-designated state to the designated state. If so, it can be determined that the designated button is in the designated state. For example, if it is detected that the flashlight is switched from the off state to the on state and the volume button is switched from the non-silent state to the silent state, it can be determined that the designated button is in the designated state.

[0050] It should be noted that in actual applications, to facilitate user operation, the state of a designated key when an external device is detected to be plugged into the smart terminal can be regarded as a non-designated state, and other states other than the non-designated state can be determined as designated states. In this way, once the state of the designated key is detected to have switched, the designated key can be considered to be in the designated state. As a result, the user does not need to remember which state of the designated key is the designated state and which state is not the designated state, thereby facilitating user operation and improving user experience. For example, taking the smart terminal as a smartphone, and the designated keys including the flashlight and the volume key as an example, assuming that when the smartphone detects that an external device is plugged in, the flashlight is off and the volume key is muted, then the flashlight off state and the volume key muted state can be regarded as non-designated states, and the remaining states (flashlight off state and volume key non-muted state, flashlight on state and volume key muted state, flashlight on state and volume key non-muted state) can be regarded as designated states. Subsequently, if the user turns on the flashlight or adjusts the smartphone to non-muted state, the smartphone can be determined to be in the designated state. In this way, the user does not need to remember which state of the flashlight and volume keys is the designated state, thereby facilitating user operation and improving user experience.

[0051] The designated interface of the smart terminal can be set according to actual circumstances and is not specifically limited here. Optionally, the designated interface can be an interface that is not frequently used on the smart terminal, thereby avoiding the false triggering of multiple connection results and raising the threshold for displaying connection results. For example, if the smart terminal's commonly used interface is the main interface and the less frequently used interface is the font and font size settings interface, the designated interface can be the font and font size settings interface.

[0052] The designated application in the smart terminal can be an application already installed on the smart terminal. Alternatively, the designated application can be an application that is not frequently used on the smart terminal, thereby avoiding the false triggering of multiple connection effects and raising the threshold for displaying connection effects. Alternatively, the designated application can be a proprietary application that provides device interconnection functionality. This proprietary application includes a device interconnection function option, which includes multiple connection effects. Each connection effect corresponds to a set of parameters, and each set of parameters can be used for communication between the smart terminal and external devices. If the designated application is a proprietary application, the function of setting function parameters for multiple functional modules in the smart terminal can be optionally integrated with the device interconnection function within the proprietary application. For example, taking the smart terminal as a smartphone, the multiple functional modules in the smartphone can include a flashlight, volume, and sound effects. The flashlight function parameter can be a brightness parameter, which can be set to different brightness levels. The volume function parameter can be a volume level, which can be set to a high or low level. The sound effects function parameter can be a sound effect parameter, which can be set to different sound effects. By integrating the function of setting the functional parameters of multiple functional modules in the smart terminal and the device interconnection function into the same application, users can easily set multiple functions of the smart terminal in the same application, thereby simplifying user operations and improving convenience.

[0053] In an embodiment of the present application, the smart terminal can determine that the smart terminal is in a preset state when it detects that a designated button in the smart terminal is in a designated state, the display interface of the smart terminal is a designated interface, and a startup operation for a designated application in the smart terminal is received. Otherwise, if it is detected that the designated button is not in a designated state, the display interface is not a designated interface, and no startup operation for the designated application is received, it can be determined that the smart terminal is not in the preset state.

[0054] If the smart terminal is detected to be in the preset state, it may mean that an external device has been plugged into the smart terminal but has not been successfully connected to the smart terminal, and the user has set the state of the smart terminal to the preset state, and S14 may be executed at this time. If the smart terminal is detected to be not in the preset state, it may mean that the external device has been successfully connected to the smart terminal, or there may be no external device that needs to be connected to the smart terminal at this time, and subsequent S14 to S18 may not be executed.

[0055] S14: When it is detected that the smart terminal is in a preset state and an external device is plugged into the smart terminal, a plurality of connection effects are displayed, each of which corresponds to a set of parameters.

[0056] When it is detected that the smart terminal is in a preset state, the smart terminal may further detect whether an external device is inserted into the smart terminal. When detecting whether an external device is inserted into the smart terminal, optionally, in some embodiments, it may be detected whether an insertion operation of the external device is received. If so, it can be determined that an external device is inserted into the smart terminal. If not, it can be determined that no external device is inserted into the smart terminal. The corresponding scenario may be: when the user inserts an external device into the smart terminal and the smart terminal fails to successfully connect to the external device, the user can unplug the external device and then set the smart terminal to a preset state. After that, the user can choose to insert the external device into the smart terminal again. Among them, when the smart terminal detects whether an insertion operation of an external device is received, it may specifically detect whether an insertion operation of an external device is received within a preset time. If so, it can be determined that an external device is inserted into the smart terminal. If not, it can be determined that no external device is inserted into the smart terminal.

[0057] Optionally, in other embodiments, when detecting whether an external device is plugged into the smart terminal, it may also be detected whether the external device is already plugged into the smart terminal. If so, it can be determined that an external device is plugged into the smart terminal; if not, it can be determined that no external device is plugged into the smart terminal. A corresponding scenario may be: when a user plugs an external device into the smart terminal and the smart terminal fails to successfully connect to the external device, the user sets the smart terminal to a preset state, during which the external device is always plugged into the smart terminal.

[0058] When a smart terminal detects that it is in a preset state and an external device is plugged into the smart terminal, it can display multiple connection effects. These effects can be understood as device access modes, with different connection effects corresponding to different device access modes. Each connection effect can be associated with a set of parameters, each of which is used to facilitate communication between the smart terminal and the external device.

[0059] Optionally, in some implementations, when displaying multiple connection effects, the smart terminal may include any of the following:

[0060] Display multiple connection effects in the form of pop-up windows;

[0061] Display multiple connection effects in a specified interface;

[0062] Displays multiple connection effects in a specified application.

[0063] Specifically, if the smart terminal detects that a designated button is in a designated state, when displaying multiple connection effects, the results can be displayed in a pop-up window. If the smart terminal detects that the display interface is a designated interface, when displaying multiple connection effects, the results can be displayed in the designated interface. If the smart terminal receives a launch operation for a designated application, when displaying multiple connection effects, the results can be displayed in the designated application. This makes it easier for users to view and select from multiple connection effects.

[0064] Optionally, in some implementations, before displaying multiple connection effects, the following steps may be further included:

[0065] Determine a default connection effect preset for the preset state according to the preset state;

[0066] Communicate with external devices according to a set of parameters corresponding to the default connection effect;

[0067] Among them, multiple connection effects are displayed, including:

[0068] When the communication quality between the external device and the smart terminal is less than a preset quality, multiple connection effects are displayed.

[0069] Specifically, a smart terminal may have multiple preset states. For each preset state, a corresponding default connection effect may be preset. Different preset states may correspond to different default connection effects. The default connection effect may correspond to a set of parameters used for communication between the smart terminal and an external device. The default connection effect may be any one of the multiple connection effects described above, or may be another connection effect different from the multiple connection effects, and is not specifically limited here.

[0070] When the smart terminal detects that the smart terminal is in a preset state and an external device is inserted into the smart terminal, it can determine the default connection effect corresponding to the preset state according to the current preset state of the smart terminal, and communicate with the external device based on a set of parameters corresponding to the default connection effect. After communicating with the external device, if the communication quality between the external device and the smart terminal is greater than or equal to the preset quality, the external device can be connected to the smart terminal, and there is no need to display multiple connection effects. If the communication quality between the external device and the smart terminal is less than the preset quality, it can be said that the smart terminal cannot successfully identify the external device. At this time, multiple connection effects can be displayed so that the smart terminal can communicate with the external device based on the parameters corresponding to the multiple connection effects, and then the external device can be successfully connected to the smart terminal.

[0071] In this way, since the corresponding default connection effect can be set for the preset state of the smart terminal, communication with the external device is performed based on the parameters corresponding to the default connection effect before displaying multiple connection effects. There is no need to display multiple connection effects and the user selects a connection effect before communicating with the external device. Therefore, user operations can be simplified and the recognition success rate can be improved.

[0072] S16: When a selection operation for the first connection effect is received, communicating with the external device according to a set of parameters corresponding to the first connection effect.

[0073] After the smart terminal displays multiple connection effects, the user can select one of the multiple connection effects. For example, if the user selects a first connection effect, the smart terminal can communicate with the external device based on a set of parameters corresponding to the first connection effect to identify the external device.

[0074] Optionally, in some embodiments, the parameters corresponding to each connection effect can also be used by the smart terminal to optimize the communication quality between the external device and the smart terminal. When the smart terminal communicates with the external device based on a set of parameters corresponding to the first connection effect, the communication quality between the external device and the smart terminal can be optimized based on the parameters corresponding to the first connection effect to improve the success rate of external device recognition.

[0075] S18: When it is determined that the communication quality between the external device and the smart terminal is greater than or equal to a preset quality, the external device is connected to the smart terminal.

[0076] After communicating with the external device, the smart terminal may determine whether the signal quality between the external device and the smart terminal is greater than or equal to a preset quality. The communication quality herein may be the communication quality after the smart terminal communicates with the external device based on a set of parameters corresponding to the first connection effect, or the communication quality obtained after the smart terminal optimizes the communication quality between the external device and the smart terminal based on the set of parameters corresponding to the first connection effect.

[0077] If the communication quality is greater than or equal to the preset quality, it indicates that the smart terminal has successfully identified the external device. At this point, the external device can be connected to the smart terminal to achieve interconnection between the smart terminal and the external device. If the communication quality is less than the preset quality, it indicates that the smart terminal has not successfully identified the external device and cannot connect the external device to the smart terminal. The user can then continue to select another connection effect. After the user selects another connection effect, the smart terminal can communicate with the external device based on the parameters corresponding to the other connection effect selected by the user, and determine whether the communication quality is greater than or equal to the preset quality. If so, the external device can be connected to the smart terminal. If not, the user can continue to select another connection effect, and so on, until the communication quality between the external device and the smart terminal is greater than or equal to the preset quality, and the external device is connected to the smart terminal. In other words, the user's selection of a connection effect is a cyclical process. That is, each time the user selects a connection effect, the smart terminal will communicate with the external device based on the set of parameters corresponding to that connection effect until the communication quality between the external device and the smart terminal is greater than or equal to the preset quality, and the external device is connected to the smart terminal. The preset quality can be determined based on actual conditions and is not specifically limited here.

[0078] It should be noted that after the external device is connected to the smart terminal, the smart terminal can display a prompt message on the display interface to let the user know whether the external device has been connected to the smart terminal, and then determine whether to continue to select other connection effects. For example, after the user selects a certain connection effect, if the smart terminal does not display a prompt message, the user can continue to select other connection effects. If the smart terminal displays a prompt message, the user knows that the external device has been connected to the smart terminal, and the user does not need to select other connection effects. Among them, the prompt message displayed by the smart terminal can be a device interconnection icon, a pop-up prompt, a text prompt or a voice prompt, etc., which is not specifically limited here.

[0079] Optionally, in some implementations, after the smart terminal connects the external device to the smart terminal based on a set of parameters corresponding to a first connection effect among the multiple connection effects, the smart terminal may further include any of the following:

[0080] Setting a group of parameters corresponding to the first connected effect to default parameters;

[0081] In a case where the number of times the first connection effect is selected is greater than or equal to a preset number of times, a group of parameters corresponding to the first connection effect is set as default parameters.

[0082] The default parameters may be the parameters used by the smart terminal when communicating with the external device when an external device is plugged into the smart terminal and the smart terminal is not in a preset state. In an embodiment of the present application, after the smart terminal connects the external device to the smart terminal according to a set of parameters corresponding to the first connection effect, the set of parameters corresponding to the first connection effect may be set as the default parameters. In this way, when the external device is subsequently plugged into the smart terminal again, the smart terminal can directly successfully connect the external device to the smart terminal based on the set of parameters corresponding to the first connection effect, without the user having to select a connection effect, thereby improving access efficiency and simplifying user operations. Alternatively, the smart terminal may also record the number of times the first connection effect is selected and determine whether the number is greater than or equal to a preset number. If so, it can be indicated that each time the user plugs the external device into the smart terminal, the smart terminal uses the set of parameters corresponding to the first connection effect to communicate with the external device at a high frequency. In this case, the set of parameters corresponding to the first connection effect may be set as the default parameters. In this way, when the external device is subsequently plugged into the smart terminal again, the probability of the smart terminal successfully connecting the external device to the smart terminal based on the set of parameters corresponding to the first connection effect is high. In the case of successful access, the user does not need to select a connection effect, thereby simplifying user operations.

[0083] Optionally, considering that in actual applications, when users select multiple connection effects, they typically select them in order from the front to the back according to the order in which the multiple connection effects are arranged, the smart terminal can further adjust the order of the first connection effect after connecting the external device to the smart terminal based on a set of parameters corresponding to the first connection effect. For example, the first connection effect can be arranged first. In this way, when the smart terminal displays multiple connection effects, the user can select the first connection effect first, thereby improving the efficiency of connecting the external device to the smart terminal.

[0084] To facilitate understanding of the technical solutions provided by the embodiments of the present application, in some more specific implementations, reference may be made to the embodiments shown in FIG. 2 to FIG. 4 .

[0085] Figure 2 is a schematic diagram of a method for connecting an external device to a smart terminal according to an embodiment of the present application. In the embodiment shown in Figure 2, the smart terminal is a smart phone, and the preset state of the smart terminal can be a specified key in the smart terminal being in a specified state, the specified key being specifically a navigation key (virtual key) and a volume key (physical key) in the smart phone, and the specified state being specifically a navigation key being in a triggered state and a volume key being in a muted state.

[0086] In Figure 2, if a user inserts an OTG device into a smartphone and the smartphone fails to connect, the user can unplug the OTG device, set the smartphone's volume button to a static state, trigger the navigation button to display recent applications, and then reinsert the OTG device. The smart terminal can detect that the volume button and navigation button are in the preset state and that an OTG device has been inserted into the smart terminal. At this time, the smart terminal can display multiple connection effects in the form of pop-up windows, namely, connection effect 1, connection effect 2, ..., connection effect n as shown in Figure 2. The user can select each connection effect in turn until the smartphone successfully recognizes the external device and displays the OTG device icon on the display interface. At this point, the smartphone and the external device are successfully connected.

[0087] The software flow corresponding to the embodiment shown in Figure 2 may be shown in Figure 3. State 1 in Figure 3 may be the state of the volume key, and state 2 may be the state of the navigation key. State 1 being "true" may indicate that the volume key is in a mute state, and state 2 being "true" may indicate that the navigation key is in a triggered state.

[0088] Figure 4 is a schematic diagram of a method for connecting an external device to a smart terminal according to an embodiment of the present application. In the embodiment shown in Figure 4, the smart terminal is a smartphone, and the preset state of the smart terminal can be receiving a startup operation for a designated application in the smart terminal, and the designated application is a proprietary application, which can provide device interconnection function options and function parameter setting options for multiple functional modules in the smart terminal, allowing the user to select connection effects and parameter settings.

[0089] In Figure 4, if a user inserts an OTG device into a smartphone and the smartphone fails to connect, the user can unplug the OTG device and then launch a proprietary application, namely Application 1 shown in Figure 4. Upon detecting the launch of Application 1, the smart terminal can launch Application 1 and display device interconnection function options on Application 1's display interface. The user can select the device interconnection function option, and the smartphone can then display multiple connection effects, such as Connection Effect 1, Connection Effect 2, ..., Connection Effect n, as shown in Figure 4. The user can insert the OTG device into the smartphone and select each connection effect in turn until the smartphone successfully recognizes the external device and displays the OTG device icon on the display interface. At this point, the smartphone and the external device are successfully connected.

[0090] In addition, as shown in Figure 4, when displaying device interconnection functions, the smart terminal can also simultaneously display function parameter setting options for multiple function modules, namely Function 1 to Function n shown in Figure 4. Users can set the function parameters of the function modules in the smart terminal by selecting these functions. For example, Function 1 is the brightness setting function corresponding to the flashlight. The user can enter the flashlight brightness setting interface by clicking Function 1 to set the flashlight brightness.

[0091] In an embodiment of the present application, in a scenario where a smart terminal is interconnected with an external device, the smart terminal can display multiple connection effects for the user to select, and each connection effect can correspond to a set of parameters. After the user selects a certain connection effect, the smart terminal can communicate with the external device based on the parameters corresponding to the connection effect selected by the user, and connect the external device to the smart terminal when the communication quality between the external device and the smart terminal is greater than or equal to the preset quality. In this way, since the smart terminal can use different parameters to communicate with the external device, the compatibility is better, the success rate of the external device connecting to the smart terminal can be improved, and the problem of interconnection interruption and inability to recognize the external device can be avoided. In addition, since the smart terminal displays multiple connection effects for the user to select only when it detects that the smart terminal is in a preset state and an external device is inserted into the smart terminal, the display threshold of the connection effect can be increased, thereby improving the concealment of the connection effect, and avoiding the problem of a bad experience for the user due to frequent display of the connection effect when the user triggers it by mistake.

[0092] The method for connecting an external device to a smart terminal provided in the embodiments of the present application can be performed by an apparatus for connecting an external device to a smart terminal. In the embodiments of the present application, the apparatus for connecting an external device to a smart terminal is used as an example to illustrate the method for connecting an external device to a smart terminal provided in the embodiments of the present application.

[0093] FIG5 is a structural diagram of an apparatus for connecting an external device to a smart terminal according to an embodiment of the present application. As shown in FIG5 , the apparatus 500 includes the following modules.

[0094] Detection module 501, used to detect whether the smart terminal is in a preset state;

[0095] The display module 502 is configured to display a plurality of connection effects when it is detected that the smart terminal is in the preset state and an external device is plugged into the smart terminal, each connection effect corresponding to a set of parameters;

[0096] a communication module 503 configured to communicate with the external device according to a set of parameters corresponding to the first connection effect when a selection operation for the first connection effect is received;

[0097] The access module 504 is configured to connect the external device to the smart terminal if the communication quality between the external device and the smart terminal is greater than or equal to a preset quality.

[0098] Optionally, in some embodiments, the detection module 501 is configured to perform at least one of the following:

[0099] Detecting whether a designated button in the smart terminal is in a designated state;

[0100] Detecting whether the display interface of the smart terminal is a designated interface;

[0101] Detecting whether a start operation for a specified application in the smart terminal is received.

[0102] Optionally, in some embodiments, there are multiple designated keys, and the multiple designated keys include at least one of a virtual key and a physical key.

[0103] Optionally, in some implementations, the designated key includes a first state and a second state; wherein the detection module 501 is configured to:

[0104] Detecting whether the designated key switches from the first state to the second state, the designated state including the second state.

[0105] Optionally, in some embodiments, the display module 502 is used for any of the following:

[0106] Displaying the multiple connection effects in a pop-up window;

[0107] Displaying the multiple connection effects in the designated interface;

[0108] The plurality of connection effects are displayed in the designated application.

[0109] Optionally, in some implementations, the communication module 503 is further configured to:

[0110] Determining a default connection effect preset for the preset state according to the preset state;

[0111] communicating with the external device according to a set of parameters corresponding to the default connection effect;

[0112] The display module 502 is used to:

[0113] When the communication quality between the external device and the smart terminal is less than the preset quality, the plurality of connection effects are displayed.

[0114] Optionally, in some implementations, the parameter is used to optimize the communication quality between the external device and the smart terminal; the communication module 503 is used to:

[0115] The communication quality between the external device and the smart terminal is optimized according to the parameters corresponding to the first connection effect.

[0116] Optionally, in some implementations, the access module 504 is further configured to:

[0117] Setting a set of parameters corresponding to the first connection effect as default parameters;

[0118] In a case where the number of times the first connection effect is selected is greater than or equal to a preset number, a group of parameters corresponding to the first connection effect is set as default parameters.

[0119] According to the device 500 of the embodiment of the present application, the method flow of the embodiment shown in FIG1 of the present application can be referred to, and the various units / modules in the device 500 and the above-mentioned other operations and / or functions are respectively for realizing the corresponding flow in the embodiment shown in FIG1 and can achieve the same or equivalent technical effects. For the sake of brevity, they will not be repeated here.

[0120] The device for connecting an external device to a smart terminal in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other device other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0121] The device for connecting an external device to a smart terminal in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0122] The apparatus for connecting an external device to a smart terminal provided in the embodiment of the present application can implement each process implemented in the method embodiment of FIG1 , and will not be described again here to avoid repetition.

[0123] Optionally, as shown in Figure 6, an embodiment of the present application also provides an electronic device 600, including a processor 601 and a memory 602, and the memory 602 stores a program or instruction that can be run on the processor 601. When the program or instruction is executed by the processor 601, the various steps of the above-mentioned method embodiment of connecting an external device to a smart terminal are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0124] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0125] FIG7 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0126] The electronic device 700 includes but is not limited to components such as a radio frequency unit 701 , a network module 702 , an audio output unit 703 , an input unit 704 , a sensor 705 , a display unit 706 , a user input unit 707 , an interface unit 708 , a memory 709 , and a processor 710 .

[0127] Those skilled in the art will appreciate that the electronic device 700 may further include a power source (e.g., a battery) to power various components. The power source may be logically connected to the processor 710 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The electronic device structure shown in FIG7 does not limit the electronic device. The electronic device may include more or fewer components than shown, or may combine certain components or arrange the components differently, which will not be described in detail here.

[0128] Among them, the processor 710 is used to detect whether the smart terminal is in a preset state; when it is detected that the smart terminal is in the preset state and an external device is inserted into the smart terminal, multiple connection effects are displayed, and each connection effect corresponds to a set of parameters; when a selection operation for a first connection effect is received, the external device is communicated with the external device according to a set of parameters corresponding to the first connection effect; when the communication quality between the external device and the smart terminal is greater than or equal to the preset quality, the external device is connected to the smart terminal.

[0129] In the embodiments of the present application, since the smart terminal can use different parameters to communicate with external devices, it has better compatibility, can improve the success rate of external devices connecting to the smart terminal, and avoid problems such as interconnection interruption and failure to recognize external devices. In addition, since the smart terminal only displays multiple connection effects for the user to select when it detects that the smart terminal is in a preset state and an external device is plugged into the smart terminal, the display threshold of the connection effect can be raised, thereby improving the concealment of the connection effect, avoiding the problem of frequent display of connection effects in the event of user error triggering, which may cause a poor user experience.

[0130] It should be understood that in an embodiment of the present application, the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.

[0131] The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 709 may include a volatile memory or a non-volatile memory, or the memory 709 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0132] Processor 710 may include one or more processing units. Optionally, processor 710 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 710.

[0133] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment of connecting an external device to a smart terminal are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0134] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0135] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment of connecting an external device to a smart terminal, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0136] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0137] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the method embodiment for connecting an external device to a smart terminal as described above, and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0138] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0139] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0140] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A method for connecting an external device to a smart terminal, comprising: Detect whether the smart terminal is in a preset state; When it is detected that the smart terminal is in the preset state and an external device is plugged into the smart terminal, multiple connection effects are displayed, each connection effect corresponds to a set of parameters; When a selection operation for a first connection effect is received, communicating with the external device according to a set of parameters corresponding to the first connection effect; When the communication quality between the external device and the smart terminal is greater than or equal to a preset quality, the external device is connected to the smart terminal.

2. The method according to claim 1, wherein: The detecting whether the intelligent terminal is in a preset state includes at least one of the following: Detecting whether a designated button in the smart terminal is in a designated state; Detecting whether the display interface of the smart terminal is a designated interface; Detect whether a start operation for a specified application in the smart terminal is received.

3. The method according to claim 2, wherein: The number of the designated keys is multiple, and the multiple designated keys include at least one of a virtual key and a physical key.

4. The method according to claim 3, wherein: The designated button includes a first state and a second state; wherein the detecting whether the designated button in the smart terminal is in the designated state includes: Detecting whether the designated key switches from the first state to the second state, the designated state including the second state.

5. The method according to claim 2, wherein: The display of multiple connection effects includes any of the following: Displaying the multiple connection effects in a pop-up window; Displaying the multiple connection effects in the designated interface; The plurality of connection effects are displayed in the designated application.

6. The method according to claim 1, wherein: Before displaying the plurality of connection effects, the method further includes: Determine a default connection effect preset for the preset state according to the preset state; communicating with the external device according to a set of parameters corresponding to the default connection effect; The display of the plurality of connection effects includes: When the communication quality between the external device and the smart terminal is less than the preset quality, the plurality of connection effects are displayed.

7. The method according to claim 1, wherein: The parameters are used to optimize the communication quality between the external device and the smart terminal; the communicating with the external device according to a set of parameters corresponding to the first connection effect includes: The communication quality between the external device and the smart terminal is optimized according to the parameters corresponding to the first connection effect.

8. The method according to claim 1, wherein: After the external device is connected to the smart terminal, the method further includes any one of the following: Setting a set of parameters corresponding to the first connection effect as default parameters; When the number of times the first connection effect is selected is greater than or equal to a preset number of times, a group of parameters corresponding to the first connection effect is set as default parameters.

9. A device for connecting an external device to a smart terminal, comprising: A detection module, used to detect whether the smart terminal is in a preset state; A display module, configured to display a plurality of connection effects, each of which corresponds to a set of parameters, when it is detected that the smart terminal is in the preset state and an external device is plugged into the smart terminal; a communication module, configured to communicate with the external device according to a set of parameters corresponding to the first connection effect when a selection operation on the first connection effect is received; The access module is used to connect the external device to the smart terminal when the communication quality between the external device and the smart terminal is greater than or equal to a preset quality.

10. An electronic device comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 8 are implemented.

11. A readable storage medium storing a program or an instruction, wherein the program or the instruction, when executed by a processor, implements the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Method and device for realizing USB OTG (Universal Serial Bus On-The-Go) function of mobile terminal

    CN103744821A

  • Switching control method and device

    CN105068958A

  • Measuring equipment and system based on intelligent terminal

    CN105526967A

  • Connection method of mobile terminals and mobile terminals

    CN108268409A

  • Electronic device control method and electronic device

    CN110456970A