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:
step 201, obtaining the usage scene information of the terminal.
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.
Andstep 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:
step 301, obtaining the usage scenario information of the terminal.
The specific implementation process of this step may refer to the related description ofstep 201 in the first embodiment, and is not described herein again.
Step 302, if the relative distance between the terminal and the surrounding equipment in the obtained using scene information is smaller than or equal to the preset value and the operation data of the terminal is matched with the equipment type of the surrounding equipment, the target working state of the terminal is to use the surrounding equipment.
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 ofstep 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:
step 401, obtaining the usage scenario information of the terminal.
The specific implementation process of this step may refer to the related description ofstep 201 in the first embodiment, and is not described herein again.
Step 402, if the relative distance between the terminal and the surrounding 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 surrounding equipment in the acquired use scene information, the target working state of the terminal is that the surrounding equipment is not used.
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:
step 501, obtaining the usage scene information of the terminal.
The specific implementation process of this step may refer to the related description ofstep 201 in the first embodiment, and is not described herein again.
Step 502, if the relative distance between the terminal and the surrounding equipment in the obtained using scene information is smaller than or equal to a preset value and the operation data of the terminal is preset type data, determining the target working state of the terminal according to the equipment type of the surrounding equipment.
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 ofstep 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:
step 601, obtaining the use scene information of the terminal.
The specific implementation process of this step may refer to the related description ofstep 201 in the first embodiment, and is not described herein again.
Step 602, if the relative distance between the terminal and the peripheral device in the obtained usage scenario information is greater than the preset value, the target working state of the terminal is that the peripheral device is not used.
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.
Step 603, 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.
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 ofstep 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, theterminal 10 of the present embodiment includes amemory 102 and aprocessor 106, thememory 102 is configured to store at least one program instruction, and theprocessor 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, theprocessor 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, theprocessor 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, theprocessor 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, theprocessor 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 theprocessor 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, theprocessor 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, theprocessor 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, theprocessor 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, theprocessor 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 amemory 102, amemory controller 104, one or more processors 106 (only one of which is shown), aperipheral interface 108, aradio frequency module 150, apositioning module 112, acamera module 114, anaudio module 116, ascreen 118, and akey 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.
Thememory 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 theprocessor 106 executes various functional applications and data processing by running the software programs and modules stored in thestorage controller 104, so as to implement the connection control method of the terminal.
Thememory 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, thememory 102 may further include memory located remotely from theprocessor 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 thememory 102 by theprocessor 106, and possibly other components, may be under the control of thememory controller 104.
Peripheral interface 108 couples various input/output devices to the CPU andmemory 102. Theprocessor 106 executes various software, instructions within thememory 102 to perform various functions of the terminal 10 and to perform data processing.
In some embodiments, theperipheral interface 108, theprocessor 106, and thememory controller 104 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
Therf 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. Therf 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.
Thepositioning module 112 is used for acquiring the current position of the terminal 10. Examples of thepositioning 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.
Thecamera module 114 is used to take a picture or video. The pictures or videos taken may be stored in thememory 102 and transmitted through theradio frequency module 150.
Audio module 116 provides an audio interface to a user that may include one or more microphones, one or more speakers, and audio circuitry. The audio circuitry receives audio data from theperipheral interface 108, converts the audio data to electrical information, and transmits the electrical information to the speaker. The speaker converts the electrical information into sound waves that the human ear can hear. The audio circuitry also receives electrical information from the microphone, converts the electrical information to voice data, and transmits the voice data to theperipheral interface 108 for further processing. The audio data may be retrieved from thememory 102 or through theradio frequency module 150. In addition, the audio data may also be stored in thememory 102 or transmitted through theradio frequency module 150. In some examples, theaudio module 116 may also include an earphone jack for providing an audio interface to a headset or other device.
Thescreen 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 thescreen 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.
Thekey 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.