CN111556439A - Terminal connection control method, terminal and computer storage medium - Google Patents
Terminal connection control method, terminal and computer storage medium Download PDFInfo
- Publication number
- CN111556439A CN111556439A CN202010324964.7A CN202010324964A CN111556439A CN 111556439 A CN111556439 A CN 111556439A CN 202010324964 A CN202010324964 A CN 202010324964A CN 111556439 A CN111556439 A CN 111556439A
- Authority
- CN
- China
- Prior art keywords
- terminal
- equipment
- working state
- peripheral
- target working
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/023—Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
- H04M1/6058—Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
- H04M1/6066—Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
- H04M1/6075—Portable telephones adapted for handsfree use adapted for handsfree use in a vehicle
- H04M1/6083—Portable telephones adapted for handsfree use adapted for handsfree use in a vehicle by interfacing with the vehicle audio system
- H04M1/6091—Portable telephones adapted for handsfree use adapted for handsfree use in a vehicle by interfacing with the vehicle audio system including a wireless interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72412—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/02—Details of telephonic subscriber devices including a Bluetooth interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/04—Details of telephonic subscriber devices including near field communication means, e.g. RFID
Abstract
The application relates to a connection control method of a terminal, the terminal and a computer storage medium, wherein the connection control method of the terminal is applied to the terminal, the target working state of the terminal is determined according to the use scene information by acquiring the use scene information of the terminal, and the connection mode of the terminal and peripheral equipment is controlled according to the target working state so that the terminal is in the target working state, so that the terminal and the peripheral equipment can be automatically matched to a proper connection mode, and the user experience is improved.
Description
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a connection control method for a terminal, and a computer storage medium.
Background
With the rapid development of terminal technology, the functions of mobile terminals such as mobile phones and tablet computers are also improved, and the mobile terminals become one of the common tools in daily life and work.
People often connect the mobile terminal with external equipment, and the external equipment is utilized to strengthen and expand certain functions of the terminal or improve the convenience of using the terminal. For example, the terminal is connected with the sound equipment to utilize the sound equipment to bring better audio-visual experience, or the wireless earphone is used in the driving process to ensure the driving safety, etc. However, there are some inconveniences in using the connection of the mobile terminal with the external device. For example, when a user uses a mobile phone to connect with a stereo to play music, if a call does not want to be played and answered, the user will perform manual operation to disconnect the connection between the mobile phone and the stereo and then answer the call, which may miss an important call, cause troublesome operation and waste time, and affect user experience.
Disclosure of Invention
In view of the above technical problems, the present application provides a connection control method for a terminal, and a computer storage medium, which can enable the terminal and peripheral devices to automatically match to a suitable connection mode, thereby improving user experience.
In order to solve the above technical problem, the present application provides a connection control method for a terminal, which is applied to a terminal and includes:
acquiring use scene information of a terminal;
determining a target working state of the terminal according to the using scene information;
and controlling the connection mode of the terminal and the surrounding equipment according to the target working state so as to enable the terminal to be in the target working state.
Wherein the usage scenario information includes at least one of a relative distance between the terminal and surrounding devices, operation data of the terminal, and device types of the surrounding devices.
Wherein, the controlling the connection mode between the terminal and the peripheral equipment according to the target working state to make the terminal in the target working state comprises:
and when the target working state of the terminal is to use the peripheral equipment, if the equipment type of the peripheral equipment is playing equipment, controlling the peripheral equipment to play according to the running data of the terminal.
And when the number of the peripheral equipment of which the equipment type is matched with the operation data of the terminal is more than one, selecting the peripheral equipment with the highest priority for use.
Wherein, the determining the target working state of the terminal according to the usage scenario information includes:
and if the relative distance between the terminal and the surrounding equipment in the acquired use scene information is smaller than or equal to a preset value, determining the target working state of the terminal according to the acquired other use scene information.
Determining a target working state of the terminal according to the obtained other using scene information, wherein the determining comprises the following steps:
and if the operation data of the terminal in the obtained other use scene information is preset type data, determining the target working state of the terminal according to the equipment types of the surrounding equipment.
When the preset type data is the call type data, the determining the target working state of the terminal according to the device types of the surrounding devices includes:
if the equipment type of the peripheral equipment is public playing equipment, the target working state of the terminal is that the playing function of the peripheral equipment is not used for communication; or the like, or, alternatively,
and if the equipment type of the peripheral equipment is not public playing equipment, the target working state of the terminal is that the peripheral equipment is used for communication.
Wherein, the controlling the connection mode between the terminal and the peripheral equipment according to the target working state to make the terminal in the target working state comprises:
and when the target working state of the terminal is that the playing function of the peripheral equipment is not used for communication, keeping the connection state of the terminal and the peripheral equipment, and switching the sound channel of the terminal back to the terminal for communication, or disconnecting the connection of the terminal and the peripheral equipment to switch the sound channel of the terminal back to the terminal for communication.
The present application also provides a terminal, including a memory and a processor, where the memory is used to store at least one program instruction, and the processor is used to implement the connection control method of the terminal by loading and executing the at least one program instruction.
The present application further provides a computer storage medium having computer program instructions stored thereon; which when executed by a processor implement the connection control method of the terminal as described above.
As described above, according to the connection control method of the terminal, the terminal and the computer storage medium of the application, the target working state of the terminal is determined according to the use scene information by acquiring the use scene information of the terminal, and the connection mode of the terminal and the peripheral device is controlled according to the target working state, so that the terminal is in the target working state, and thus the terminal and the peripheral device can be automatically matched to a proper connection mode, and the user experience is improved.
Drawings
Fig. 1 is a flowchart illustrating a connection control method of a terminal according to a first embodiment;
fig. 2 is a flowchart illustrating a connection control method of a terminal according to a second embodiment;
fig. 3 is a flowchart illustrating a connection control method of a terminal according to a third embodiment;
fig. 4 is a flowchart illustrating a connection control method of a terminal according to a fourth embodiment;
fig. 5 is a flowchart illustrating a connection control method of a terminal according to a fifth embodiment;
fig. 6 is one of the structural diagrams of the terminal shown according to the sixth embodiment;
fig. 7 is a second schematic structural diagram of the terminal shown in fig. 6.
Detailed Description
The following description of the embodiments of the present application is provided for illustrative purposes, and other advantages and capabilities of the present application will become apparent to those skilled in the art from the present disclosure.
In the following description, reference is made to the accompanying drawings that describe several embodiments of the application. It is to be understood that other embodiments may be utilized and that mechanical, structural, electrical, and operational changes may be made without departing from the spirit and scope of the present application. The following detailed description is not to be taken in a limiting sense. The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
First embodiment
Fig. 1 is a flowchart illustrating a connection control method of a terminal according to a first embodiment. Referring to fig. 1, the method for controlling connection of a terminal according to the present embodiment is applied to a terminal, and includes:
The terminal can be mobile terminal equipment such as a mobile phone, a tablet, a notebook computer and the like. The usage scenario information of the terminal includes, but is not limited to, a relative distance between the terminal and the surrounding devices, operation data of the terminal, one or more of device types of the surrounding devices, and the like, which may embody a current usage scenario of the terminal.
In an embodiment, the relative distance between the terminal and the peripheral device is obtained, the coordinate information between the terminal and the peripheral device can be determined through 5G accurate positioning, and then the relative distance between the terminal and the peripheral device is converted, or other short-distance wireless transmission technologies, such as bluetooth, NFC, and the like, are used, and through a power control algorithm of a protocol in an inquiry and scanning function in a device discovery process, that is, two parties establishing a communication protocol gradually reduce respective transmission power through session control, so that the relative distance can be obtained.
In one embodiment, the operation data of the terminal is obtained, that is, the application type or data type currently running or about to run by the terminal is obtained. The application types can be communication types, learning types, entertainment types, office types, efficiency types and the like, and the data types can be characters, audio frequencies, videos, pictures and the like. It should be noted that, generally, the application starting of the mobile terminal has subjectivity and randomness, and therefore, the type of the application or the type of the data to be run is obtained, which may be an application set to be automatically started at a preset time point, or an application set to be automatically started after being connected to some peripheral device, and then the type of the application or the type of the data obtained is determined.
In an embodiment, the device type of the peripheral device is obtained, that is, information data of the device type of the peripheral device is obtained after the terminal establishes a connection with the peripheral device or during a scanning process before the connection is established, and is used for analyzing and adjusting a connection mode between the terminal and the peripheral device. In addition, in other embodiments, the connection state of the terminal and the peripheral device may also be used as the usage scenario information of the terminal, to determine the current usage scenario of the terminal, so as to assist in adjusting the connection manner between the terminal and the peripheral device.
And step 202, controlling the target working state of the terminal according to the using scene information.
The peripheral equipment is external equipment which can be connected with the terminal, part of functions of the terminal can be generally expanded or the convenience of using the terminal is improved by utilizing the peripheral equipment, and the peripheral equipment of a scene is blue tooth earphones, a car machine, a sound box, screen projection equipment and the like. After acquiring the use scene information of the terminal, controlling the connection mode of the terminal and the surrounding equipment according to the use scene information, comprising: and determining a target working state of the terminal according to the using scene information, and controlling a connection mode of the terminal and peripheral equipment according to the target working state so as to enable the terminal to be in the target working state. The target working state of the terminal can be connected or not connected, or connected with the surrounding equipment in a certain specific mode, or can be the function of using, partially using or not using the surrounding equipment, and after the terminal determines a target working state according to the using scene information, the terminal can control the connection mode of the terminal and the surrounding equipment to realize the target working state.
And 203, controlling the connection mode of the terminal and the peripheral equipment according to the target working state so as to enable the terminal to be in the target working state.
The target working state of the terminal can be determined according to the information of the plurality of using scenes, and then the connection mode of the terminal and the surrounding equipment is controlled according to the target working state so as to enable the terminal to be in the target working state. Specifically, if the relative distance between the terminal and the surrounding equipment in the acquired use scene information is smaller than or equal to a preset value, the target working state of the terminal is determined according to the acquired other use scene information. In this embodiment, a relative distance between the terminal and the peripheral device is first obtained, and when the relative distance is less than or equal to a preset value, there are possibilities of various target operating states in the state, so that it is necessary to further obtain the remaining usage scenario information to determine a target state. In the prior art, the connection between the terminal and the surrounding equipment is less limited by the relative distance, so that in practical application, a user can set a preset value according to the own needs for representing the relationship between the own use needs and the relative distance between the terminal and the surrounding equipment. For example, the user may set a preset value of 50 meters to adapt to an indoor use scenario, and when the relative distance is less than or equal to 50 meters, the target operating state is to use the peripheral device, so that the terminal and the peripheral device maintain connection within the relative distance of 50 meters and use the functions of the peripheral device. Of course, there may be a case that the relative distance is less than 50 meters but the user does not want the terminal to be connected with the peripheral device, so the user may continue to set other usage scenario information as a necessary condition for controlling the terminal to be connected with the peripheral device, and the terminal continues to determine the target operating state of the terminal in combination with the other usage scenario information after judging that the relative distance is less than or equal to the preset value, so as to better meet various usage requirements of the user. For another example, when the terminal is a mobile phone and the peripheral equipment is a vehicle-mounted system, the distance between the coordinate of the mobile phone and the coordinate of the automobile is smaller than a preset value through 5G accurate positioning inquiry, and meanwhile, the mobile phone determines that the position of the driver is in the manned state through receiving data of a pressure sensor of a seat of the automobile. The mobile phone automatically switches with the vehicle-mounted system sound channel, and the music playing module is automatically opened. And when the position of the mobile phone and the vehicle-mounted system is found to be larger than the preset value through re-positioning, and the position of the driver is inquired to be no longer in the manned state, actively disconnecting the related communication connection and closing the corresponding application.
Further, the preset value in this embodiment is used to determine a relationship between a relative distance between the terminal and the peripheral device and a target working state, and the preset value is smaller than an effective connection distance between the terminal and the peripheral device, so as to ensure that the terminal and the peripheral device effectively control a connection mode with the peripheral device in a connection maintaining state, avoid a situation that the terminal and the peripheral device are disconnected in an uncontrolled state, and improve reliability of the connection control method of the terminal.
In an embodiment, the method for controlling connection of a terminal further includes switching a connection mode between the terminal and a peripheral device along with a change of usage scenario information of the terminal, so as to ensure that the connection mode between the terminal and the peripheral device can continuously achieve a target operating state of the terminal under the current usage scenario information. For example, when the relative distance between the terminal and the surrounding equipment is greater than a preset value, the terminal and the surrounding equipment are connected in a 5G mode. When a user carries the terminal to approach the peripheral equipment, namely the relative distance between the terminal and the peripheral equipment is smaller and smaller along with the movement of the terminal, when the relative distance is smaller than a preset value, the connection mode of the terminal and the peripheral equipment is switched to short-distance wireless connection (such as Bluetooth connection), so that the terminal and the peripheral equipment can be connected in a power-saving and flow-saving mode, and the service time of the terminal and the peripheral equipment before next charging is prolonged. For another example, when the terminal is a mobile phone and the peripheral device is a smart audio, the mobile phone plays music through being connected with the smart audio, and at this time, the target working state of the mobile phone is to use the playing function of the smart audio. When the mobile phone receives an incoming call, the user does not want to continue playing the phone sound through the intelligent sound box, at the moment, the mobile phone can automatically switch the connection mode of the mobile phone and the intelligent sound box according to the current application as a call, namely, the target working state of the mobile phone is the playing function of not using the intelligent sound box during the period that the user receives the call. When the call is finished, the connection mode of the mobile phone and the intelligent sound box is automatically switched back to the previous mode, namely the playing function of the intelligent sound box is used, and meanwhile, the application for playing music before is automatically started, so that the switching process is natural and smooth, the user does not need additional operation, the user cannot feel the existence of the method, and the user experience is improved.
According to the connection control method of the terminal, the use scene information of the terminal is obtained, the target working state of the terminal is determined according to the use scene information, and the connection mode of the terminal and the peripheral equipment is controlled according to the target working state, so that the terminal is in the target working state, the terminal and the peripheral equipment can be automatically matched to a proper connection mode, and the user experience is improved.
Second embodiment
Fig. 2 is a flowchart illustrating a connection control method of a terminal according to a second embodiment. Referring to fig. 2, the method for controlling connection of a terminal according to the present embodiment is applied to a terminal, and includes:
The specific implementation process of this step may refer to the related description of step 201 in the first embodiment, and is not described herein again.
After the usage scenario information is acquired and the relative distance between the terminal and the peripheral equipment is smaller than or equal to the preset value, the target working state of the terminal is continuously determined according to the acquired other usage scenario information, and the method comprises the following steps: and if the operation data of the terminal is matched with the equipment types of the peripheral equipment in the obtained other using scene information, the target working state of the terminal is to use the peripheral equipment. Specifically, the terminal acquires current operation data, receives or detects data information containing the device type sent by the peripheral device, and when the operation data is matched with the device type, the peripheral device can be used. For example, the terminal is running a certain reading application, and the peripheral device has a display screen and supports the reading application, so that the terminal can automatically switch to use the peripheral device to run the reading application to continue reading, the reading experience is more comfortable, or the terminal is adapted to a scene in which multiple people read together, and the use range of the terminal is expanded.
In one embodiment, when the number of the peripheral devices of which the device types match with the operation data of the terminal is more than one, the peripheral device with the highest priority is selected for use. The terminal can set the priority of the connected peripheral equipment, and when the peripheral equipment is obtained, the peripheral equipment used is selected according to the priority. The setting of the priority can be determined according to the relative distance between the terminal and the surrounding equipment, and because the communication is greatly influenced by the distance, the closer the distance, the more complete the data transmission is, and the better the connection effect is. For example, when the peripheral devices are a first device and a second device, and when the relative distance between the terminal and the first device is smaller than the relative distance between the terminal and the second device, the priority of the first device is set to be higher than that of the second device, and the terminal is controlled to be connected with the first device with the higher priority. Of course, in other embodiments, the setting of the priority may also be determined according to the performance of the surrounding devices or the sequence of adding connections or user settings, so as to ensure that the user experience is optimized.
And 303, controlling the connection mode of the terminal and the peripheral equipment according to the target working state so as to enable the terminal to be in the target working state.
In one embodiment, controlling a connection mode between a terminal and a peripheral device according to a target operating state to enable the terminal to be in the target operating state includes: and when the target working state of the terminal is to use the peripheral equipment, if the equipment type of the peripheral equipment is the playing equipment, controlling the peripheral equipment to play according to the running data of the terminal. For example, when the terminal is a mobile phone and the peripheral device is a bluetooth headset, the mobile phone establishes a connection with the bluetooth headset, the mobile phone is playing an audio file, and the bluetooth headset supports playing of the audio file, then the mobile phone automatically switches the sound channel to the bluetooth headset, and continues to play the audio file.
The related implementation process of this step may also refer to the description of step 202 in the first embodiment, and is not described herein again.
According to the connection control method of the terminal, by obtaining the use scene information of the terminal, if the relative distance between the terminal and the peripheral equipment is smaller than or equal to the preset value and the operation data of the terminal is matched with the equipment type of the peripheral equipment in the obtained use scene information, the target working state of the terminal is that the peripheral equipment is used, and the connection mode of the terminal and the peripheral equipment is controlled according to the target working state so that the terminal is in the target working state, so that the terminal and the peripheral equipment can be automatically matched to a proper connection mode, and the user experience is improved.
Third embodiment
Fig. 3 is a flowchart illustrating a connection control method of a terminal according to a third embodiment. Referring to fig. 3, the method for controlling connection of a terminal according to the present embodiment is applied to a terminal, and includes:
The specific implementation process of this step may refer to the related description of step 201 in the first embodiment, and is not described herein again.
Specifically, the terminal acquires current operation data, receives data information containing the device type and sent by the peripheral devices connected with the terminal, and does not use the peripheral devices when the operation data is not matched with the device type. For example, if the terminal is running a video application and the surrounding devices have no display screen or do not support the video application, then the terminal will not use the surrounding devices and continue running the reading application on the terminal while looking for other potentially available surrounding devices. For another example, when the terminal is a mobile phone and the peripheral device is a tianmao eidolon, the mobile phone is not provided with an application matched with the tianmao eidolon, and even if the relative distance between the mobile phone and the tianmao eidolon is smaller than a preset value, the mobile phone is not connected.
And step 403, controlling the connection mode of the terminal and the peripheral equipment according to the target working state so as to enable the terminal to be in the target working state.
When the target working state of the terminal is that peripheral equipment is not used, the peripheral equipment may not be connected under the condition that the peripheral equipment is not connected, or the terminal is disconnected from the peripheral equipment under the condition that the peripheral equipment is connected.
According to the connection control method of the terminal, by obtaining the use scene information of the terminal, if the relative distance between the terminal and the peripheral equipment is smaller than or equal to the preset value and the operation data of the terminal is not matched with the equipment types of the peripheral equipment in the obtained use scene information, the target working state of the terminal is that the peripheral equipment is not used, and the connection mode of the terminal and the peripheral equipment is controlled according to the target working state so that the terminal is in the target working state, so that the terminal and the peripheral equipment can be automatically matched to a proper connection mode, and the user experience is improved.
Fourth embodiment
Fig. 4 is a flowchart illustrating a connection control method of a terminal according to a fourth embodiment. Referring to fig. 4, the method for controlling connection of a terminal according to the present embodiment is applied to a terminal, and includes:
The specific implementation process of this step may refer to the related description of step 201 in the first embodiment, and is not described herein again.
And after the acquired use scene information is that the relative distance between the terminal and the surrounding equipment is smaller than or equal to a preset value, continuously acquiring the rest use scene information to determine the target working state of the terminal. If the operation data of the terminal in the obtained other use scene information is preset type data, the preset type data can be communication type, character type and the like, and the terminal determines the target working state of the terminal according to the equipment types of the surrounding equipment. For example, when the terminal is a mobile phone and the peripheral device is a bluetooth headset, it is determined whether the mobile phone has a multimedia file to be played, and if so, the bluetooth headset supports the multimedia file type, and the mobile phone is controlled to play by using the bluetooth headset.
In one embodiment, when the preset type data is call type data, determining a target operating state of the terminal according to device types of surrounding devices includes: if the equipment type of the peripheral equipment is public playing equipment, the target working state of the terminal is that the playing function of the peripheral equipment is not used for communication; or, if the device type of the peripheral device is not the public playing device, the target working state of the terminal is to use the peripheral device for communication. For example, when the terminal is a mobile phone and the peripheral devices are car devices, the mobile phone is connected with the car devices, the car devices are public playing devices, and when a user receives a call, the user does not use the car devices to play out the incoming call, so that privacy is guaranteed. When the terminal is a mobile phone and the peripheral equipment is a Bluetooth headset, the mobile phone is connected with the Bluetooth headset, the headset is not a public playing device, and when a user receives a call, the user can use the Bluetooth headset to answer the call.
And 503, controlling the connection mode of the terminal and the peripheral equipment according to the target working state so as to enable the terminal to be in the target working state.
In one embodiment, controlling a connection mode between a terminal and a peripheral device according to a target operating state to enable the terminal to be in the target operating state includes: when the target working state of the terminal is that the playing function of the peripheral equipment is not used for communication, the connection state of the terminal and the peripheral equipment is kept, and the sound channel of the terminal is switched back to the terminal for communication, or the connection between the terminal and the peripheral equipment is disconnected so that the sound channel of the terminal is switched back to the terminal for communication. Here, the target operation states of the plurality of types of terminals can be realized with the same technical effect, so that the user can set the target operation state of the terminal corresponding to the specific use scene information when acquiring the specific use scene information as required. For example, the terminal is interrupted by a call during playing music using the peripheral devices, and the terminal may only switch the audio channel back to the terminal and keep connected with the peripheral devices, so that the terminal continues to play music using the peripheral devices after the call is over. In the process of conversation, the target working state of the terminal can be set to temporarily cut off the connection between the terminal and surrounding equipment, so that the electric quantity of the terminal is supplied to the conversation as much as possible, and the conversation time is ensured.
The related implementation process of this step may also refer to the description of step 202 in the first embodiment, and is not described herein again.
According to the connection control method of the terminal, by obtaining the use scene information of the terminal, if the relative distance between the terminal and the peripheral equipment is smaller than or equal to the preset value and the operation data of the terminal is the preset type data in the obtained use scene information, the target working state of the terminal is determined according to the equipment type of the peripheral equipment, and the connection mode of the terminal and the peripheral equipment is controlled according to the target working state so that the terminal is in the target working state, so that the terminal and the peripheral equipment can be automatically matched to a proper connection mode, and the user experience is improved.
Fifth embodiment
Fig. 5 is a flowchart illustrating a connection control method of a terminal according to a fifth embodiment. Referring to fig. 5, the method for controlling connection of a terminal according to the present embodiment is applied to a terminal, and includes:
The specific implementation process of this step may refer to the related description of step 201 in the first embodiment, and is not described herein again.
In this embodiment, a target operating state of the terminal may also be determined according to the single usage scenario information. Specifically, if the relative distance between the terminal and the peripheral device in the acquired usage scenario information is greater than the preset value, the target operating state of the terminal is that the peripheral device is not used, and other usage scenario information is not combined. For example, when the preset value is 50 meters and the relative distance between the terminal and the surrounding devices is greater than 50 meters, the terminal is controlled not to use the functions of the surrounding devices or to disconnect the terminal from the surrounding devices.
When the target working state of the terminal is that peripheral equipment is not used, the peripheral equipment may not be connected under the condition that the peripheral equipment is not connected, or the peripheral equipment is disconnected under the condition that the peripheral equipment is connected, and the related implementation process of this step may refer to the description of step 202 in the first embodiment, and is not described herein again.
In other embodiments, the relative distance between the terminal and the surrounding device is greater than the preset value, and the target working state of the terminal can be set to switch the communication mode between the terminal and the surrounding device. For example, when the relative distance between the terminal and the surrounding device is short, the connection mode between the terminal and the surrounding device can be set to be bluetooth or NFC, and when the relative distance is large, even larger than the effective connection distance of the original communication mode, the connection mode between the terminal and the surrounding device can be switched to be local area network connection, for example, connection through a 5G network.
According to the connection control method of the terminal, by obtaining the use scene information of the terminal, if the relative distance between the terminal and the peripheral equipment in the obtained use scene information is greater than the preset value, the target working state of the terminal is that the peripheral equipment is not used, and the connection mode of the terminal and the peripheral equipment is controlled according to the target working state so that the terminal is in the target working state, so that the terminal and the peripheral equipment can be automatically matched to a proper connection mode, and the user experience is improved.
Sixth embodiment
Fig. 6 is one of the structural diagrams of the terminal shown according to the sixth embodiment. Referring to fig. 6, the terminal 10 of the present embodiment includes a memory 102 and a processor 106, the memory 102 is configured to store at least one program instruction, and the processor 106 is configured to implement the connection control method of the terminal of the first to fifth embodiments by loading and executing the at least one program instruction, including:
acquiring use scene information of a terminal;
and controlling the connection mode of the terminal and the surrounding equipment according to the using scene information.
In one embodiment, the processor 106 performs the step of controlling the connection mode of the terminal and the peripheral devices according to the usage scenario information, including:
determining a target working state of the terminal according to the using scene information;
and controlling the connection mode of the terminal and the peripheral equipment according to the target working state so as to enable the terminal to be in the target working state.
In one embodiment, the usage scenario information includes at least one of a relative distance between the terminal and the surrounding devices, operation data of the terminal, and device types of the surrounding devices.
In one embodiment, the processor 106 performs the step of determining the target operation state of the terminal according to the usage scenario information, including:
and if the relative distance between the terminal and the surrounding equipment in the acquired use scene information is smaller than or equal to a preset value, determining the target working state of the terminal according to the acquired other use scene information.
In one embodiment, the processor 106 performs the step of determining the target operating state of the terminal according to the acquired remaining usage scenario information, including:
and if the operation data of the terminal is matched with the equipment types of the peripheral equipment in the obtained other using scene information, the target working state of the terminal is to use the peripheral equipment.
In one embodiment, the processor 106 performs the step of controlling the connection mode between the terminal and the peripheral device according to the target operating state, so as to enable the terminal to be in the target operating state, including:
and when the target working state of the terminal is to use the peripheral equipment, if the equipment type of the peripheral equipment is the playing equipment, controlling the peripheral equipment to play according to the running data of the terminal.
In one embodiment, when the number of the peripheral devices of which the device types are matched with the operation data of the terminal is more than one, the peripheral device with the highest priority is selected for use.
In one embodiment, the step of determining the target operating state of the terminal according to the acquired remaining usage scenario information by the processor 106 includes:
and if the operation data of the terminal is not matched with the function types of the peripheral equipment in the obtained other using scene information, the target working state of the terminal is that the peripheral equipment is not used.
In one embodiment, the processor 106 performs the step of determining the target operating state of the terminal according to the acquired remaining usage scenario information, including:
and if the operation data of the terminal in the obtained other use scene information is the preset type data, determining the target working state of the terminal according to the equipment types of the surrounding equipment.
In an embodiment, when the preset type data is call type data, the processor 106 executes a step of determining a target operating state of the terminal according to the device type of the peripheral device, including:
if the equipment type of the peripheral equipment is public playing equipment, the target working state of the terminal is that the playing function of the peripheral equipment is not used for communication; or the like, or, alternatively,
and if the equipment type of the peripheral equipment is not public playing equipment, the target working state of the terminal is that the peripheral equipment is used for communication.
In one embodiment, the processor 106 performs the step of controlling the connection mode between the terminal and the peripheral device according to the target operating state, so as to enable the terminal to be in the target operating state, including:
when the target working state of the terminal is that the playing function of the peripheral equipment is not used for communication, the connection state of the terminal and the peripheral equipment is kept, and the sound channel of the terminal is switched back to the terminal for communication, or the connection between the terminal and the peripheral equipment is disconnected so that the sound channel of the terminal is switched back to the terminal for communication.
In one embodiment, the processor 106 performs the step of determining the target operation state of the terminal according to the usage scenario information, including:
and if the relative distance between the terminal and the peripheral equipment in the acquired use scene information is greater than the preset value, the target working state of the terminal is that the peripheral equipment is not used.
In one embodiment, the preset value is smaller than an effective connection distance between the terminal and surrounding devices.
The specific implementation process of the terminal in this embodiment may refer to the related descriptions of the first to fifth embodiments, and is not described herein again.
Referring to fig. 7, in actual implementation, the terminal 10 includes a memory 102, a memory controller 104, one or more processors 106 (only one of which is shown), a peripheral interface 108, a radio frequency module 150, a positioning module 112, a camera module 114, an audio module 116, a screen 118, and a key module 160. These components communicate with each other via one or more communication buses/signal lines 122.
It will be appreciated that the configuration shown in fig. 7 is merely illustrative and that terminal 10 may include more or fewer components than shown in fig. 7 or may have a different configuration than shown in fig. 7. The components shown in fig. 7 may be implemented in hardware, software, or a combination thereof.
The memory 102 may be used to store software programs and modules, such as program instructions/modules corresponding to the connection control method of the terminal in the embodiment of the present application, and the processor 106 executes various functional applications and data processing by running the software programs and modules stored in the storage controller 104, so as to implement the connection control method of the terminal.
The memory 102 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 102 may further include memory located remotely from the processor 106, which may be connected to the terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. Access to the memory 102 by the processor 106, and possibly other components, may be under the control of the memory controller 104.
In some embodiments, the peripheral interface 108, the processor 106, and the memory controller 104 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The rf module 150 is used for receiving and transmitting electromagnetic waves, and implementing interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. Rf module 150 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The rf module 150 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols, and technologies, including, but not limited to, Global System for Mobile Communication (GSM), Enhanced Mobile Communication (Enhanced Data GSM Environment, EDGE), wideband Code division multiple Access (W-CDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), bluetooth, Wireless Fidelity (WiFi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g, and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide mail Access (Microwave for Wireless Communication), other suitable protocols for short message Communication (wimax), and any other suitable protocols, and may even include those protocols that have not yet been developed.
The positioning module 112 is used for acquiring the current position of the terminal 10. Examples of the positioning module 112 include, but are not limited to, a global positioning satellite system (GPS), a wireless local area network-based positioning technology, or a mobile communication network-based positioning technology.
The camera module 114 is used to take a picture or video. The pictures or videos taken may be stored in the memory 102 and transmitted through the radio frequency module 150.
The screen 118 provides an output interface between the terminal 10 and the user. In particular, screen 118 displays video output to the user, the content of which may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. It is understood that the screen 118 may also include a touch screen. The touch screen provides both an output and an input interface between the terminal 10 and a user. In addition to displaying video output to users, touch screens also receive user input, such as user clicks, swipes, and other gesture operations, so that user interface objects respond to these user input. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Specific examples of touch screen display units include, but are not limited to, liquid crystal displays or light emitting polymer displays.
The key module 160 also provides an interface for user input to the terminal 10, and the user can press different keys to cause the terminal 10 to perform different functions.
The terminal of the embodiment, by implementing the connection control method, includes: the method comprises the steps of obtaining use scene information of a terminal, determining a target working state of the terminal according to the use scene information, and controlling a connection mode of the terminal and peripheral equipment according to the target working state so as to enable the terminal to be in the target working state, so that the terminal and the peripheral equipment can be automatically matched to a proper connection mode, and user experience is improved.
The present application further provides a computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement the connection control methods of the terminals as in the first to fifth embodiments.
In practical implementation, the computer storage medium is applied to the terminal shown in fig. 6 or fig. 7, so that the terminal and the peripheral device can be automatically matched to a proper connection mode, and the user experience is improved.
The computer storage medium of this embodiment, which is implemented by a processor of a terminal when executed, includes: the method comprises the steps of obtaining use scene information of a terminal, determining a target working state of the terminal according to the use scene information, and controlling a connection mode of the terminal and peripheral equipment according to the target working state so as to enable the terminal to be in the target working state, so that the terminal and the peripheral equipment can be automatically matched to a proper connection mode, and user experience is improved.
The above embodiments are merely illustrative of the principles and utilities of the present application and are not intended to limit the application. Any person skilled in the art can modify or change the above-described embodiments without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical concepts disclosed in the present application shall be covered by the claims of the present application.
Claims (10)
1. A connection control method of a terminal is applied to the terminal, and is characterized by comprising the following steps:
acquiring use scene information of a terminal;
determining a target working state of the terminal according to the using scene information;
and controlling the connection mode of the terminal and the surrounding equipment according to the target working state so as to enable the terminal to be in the target working state.
2. The method according to claim 1, wherein the usage scenario information includes at least one of a relative distance between the terminal and surrounding devices, operation data of the terminal, and a device type of the surrounding devices.
3. The method according to claim 1, wherein the controlling a connection manner between the terminal and peripheral devices according to the target operating state to make the terminal in the target operating state comprises:
and when the target working state of the terminal is to use the peripheral equipment, if the equipment type of the peripheral equipment is playing equipment, controlling the peripheral equipment to play according to the running data of the terminal.
4. The method according to claim 1, wherein when the number of peripheral devices whose device types match the operation data of the terminal is greater than one, the peripheral device with the highest priority is selected for use.
5. The method according to claim 1, wherein the determining the target operating state of the terminal according to the usage scenario information comprises:
and if the relative distance between the terminal and the surrounding equipment in the acquired use scene information is smaller than or equal to a preset value, determining the target working state of the terminal according to the acquired other use scene information.
6. The method according to claim 5, wherein the determining the target operating state of the terminal according to the obtained remaining usage scenario information comprises:
and if the operation data of the terminal in the obtained other use scene information is preset type data, determining the target working state of the terminal according to the equipment types of the surrounding equipment.
7. The method according to claim 6, wherein when the preset type data is call type data, the determining the target operating state of the terminal according to the device type of the peripheral device includes:
if the equipment type of the peripheral equipment is public playing equipment, the target working state of the terminal is that the playing function of the peripheral equipment is not used for communication; or the like, or, alternatively,
and if the equipment type of the peripheral equipment is not public playing equipment, the target working state of the terminal is that the peripheral equipment is used for communication.
8. The method according to claim 7, wherein the controlling a connection manner between the terminal and peripheral devices according to the target operating state to make the terminal in the target operating state comprises:
and when the target working state of the terminal is that the playing function of the peripheral equipment is not used for communication, keeping the connection state of the terminal and the peripheral equipment, and switching the sound channel of the terminal back to the terminal for communication, or disconnecting the connection of the terminal and the peripheral equipment to switch the sound channel of the terminal back to the terminal for communication.
9. A terminal, characterized in that it comprises a memory for storing at least one program instruction and a processor for implementing the connection control method of the terminal according to any one of claims 1 to 8 by loading and executing the at least one program instruction.
10. A computer storage medium having computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement a connection control method for a terminal as claimed in any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010324964.7A CN111556439A (en) | 2020-04-23 | 2020-04-23 | Terminal connection control method, terminal and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010324964.7A CN111556439A (en) | 2020-04-23 | 2020-04-23 | Terminal connection control method, terminal and computer storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111556439A true CN111556439A (en) | 2020-08-18 |
Family
ID=72003896
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010324964.7A Pending CN111556439A (en) | 2020-04-23 | 2020-04-23 | Terminal connection control method, terminal and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111556439A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113050916A (en) * | 2021-04-09 | 2021-06-29 | 深圳Tcl新技术有限公司 | Audio playing method, device and storage medium |
CN113194445A (en) * | 2021-04-15 | 2021-07-30 | 厦门亿联网络技术股份有限公司 | Connection method and device |
WO2022127171A1 (en) * | 2020-12-14 | 2022-06-23 | 深圳Tcl新技术有限公司 | Bluetooth connection method and system, intelligent terminal and computer storage medium |
CN115866129A (en) * | 2021-09-24 | 2023-03-28 | 北京小米移动软件有限公司 | Application scene recognition method and device, terminal and storage medium |
-
2020
- 2020-04-23 CN CN202010324964.7A patent/CN111556439A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022127171A1 (en) * | 2020-12-14 | 2022-06-23 | 深圳Tcl新技术有限公司 | Bluetooth connection method and system, intelligent terminal and computer storage medium |
GB2617297A (en) * | 2020-12-14 | 2023-10-04 | Shenzhen Tcl New Tech Co Ltd | Bluetooth connection method and system, intelligent terminal and computer storage medium |
CN113050916A (en) * | 2021-04-09 | 2021-06-29 | 深圳Tcl新技术有限公司 | Audio playing method, device and storage medium |
CN113194445A (en) * | 2021-04-15 | 2021-07-30 | 厦门亿联网络技术股份有限公司 | Connection method and device |
CN115866129A (en) * | 2021-09-24 | 2023-03-28 | 北京小米移动软件有限公司 | Application scene recognition method and device, terminal and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11240874B2 (en) | Data transmission method and device | |
US11812485B2 (en) | Bluetooth communication method and terminal | |
US20220400305A1 (en) | Content continuation method and electronic device | |
CA2740581C (en) | System and method for resuming media | |
US10237901B2 (en) | Method and apparatus for connecting with controlled smart device, and storage medium | |
CN111556439A (en) | Terminal connection control method, terminal and computer storage medium | |
KR101814151B1 (en) | Mobile device, display apparatus and control method thereof | |
US20100048133A1 (en) | Audio data flow input/output method and system | |
US20120142308A1 (en) | Device and method for processing emergency call in a portable terminal | |
US10827455B1 (en) | Method and apparatus for sending a notification to a short-range wireless communication audio output device | |
JP2007507129A (en) | Method, electronic device and computer program product for transmitting data stored in electronic device in the absence of subscriber verification module | |
EP4027670A1 (en) | Bluetooth data transmission method and apparatus, terminal and storage medium | |
US11284398B2 (en) | Communication link configuration method and device | |
JP2021521737A (en) | Access control method, message broadcasting method and related equipment | |
CN105657868A (en) | Mobile terminal and interface control method thereof | |
CN111107518A (en) | Display method, vehicle-mounted terminal, display system and computer-readable storage medium | |
CN111479263A (en) | Communication connection method, terminal and computer storage medium | |
CN114040373A (en) | Audio service processing method and device, electronic equipment and storage medium | |
CN108377298B (en) | Method and device for switching answering mode, mobile terminal and computer readable storage medium | |
US20100210247A1 (en) | Multi-standby terminal and method of providing call waiting sound thereof | |
CN113395576B (en) | Scene switching method, computer equipment and storage medium | |
KR101977259B1 (en) | Mobile terminal and cloud system using the mobile terminal | |
US11477591B2 (en) | Audio data processing method, terminal device, and storage medium | |
CN113271385A (en) | Call forwarding method | |
CN116744244B (en) | Communication method, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |