WO2017185494A1 - 终端间建立通信连接的方法和装置 - Google Patents

终端间建立通信连接的方法和装置 Download PDF

Info

Publication number
WO2017185494A1
WO2017185494A1 PCT/CN2016/085729 CN2016085729W WO2017185494A1 WO 2017185494 A1 WO2017185494 A1 WO 2017185494A1 CN 2016085729 W CN2016085729 W CN 2016085729W WO 2017185494 A1 WO2017185494 A1 WO 2017185494A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
communication
rate
communication mode
control terminal
Prior art date
Application number
PCT/CN2016/085729
Other languages
English (en)
French (fr)
Inventor
王煜辰
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017185494A1 publication Critical patent/WO2017185494A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/14Reselecting a network or an air interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User 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/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Definitions

  • the present application relates to, but is not limited to, the field of communications technologies, and in particular, to a method and apparatus for establishing a communication connection between terminals.
  • the user can remotely control the projector (for example, Spro2 projector) through the control terminal.
  • the projector for example, Spro2 projector
  • the user when establishing a communication connection between the control terminal and the controlled terminal, the user manually sets the control terminal and the control terminal repeatedly, so that a suitable communication mode can be selected, and the establishment of the control terminal and the controlled terminal is completed.
  • the operation of the communication connection, the related technology is easy for the user to abandon the use of remote control to operate the projector.
  • the embodiment of the invention provides a method and a device for establishing a communication connection between terminals, which can realize the intelligentization process of establishing a communication connection between terminals and improve the user experience.
  • a method for establishing a communication connection between terminals includes: testing, between the control terminal and the controlled terminal, after the control terminal and the controlled terminal establish a communication connection by using the first communication manner Obtaining a connection rate, obtaining a first connection rate, determining whether the first connection rate is less than a preset rate threshold, and acquiring a communication mode that the control terminal can support if the first connection rate is less than the preset rate threshold As a second communication mode, establishing a communication connection between the control terminal and the controlled terminal by using the second communication manner, and testing a connection rate between the control terminal and the controlled terminal to obtain a second connection a rate determining whether the second connection rate is less than the preset rate threshold; if the second connection rate is greater than or equal to the preset rate threshold, establishing the second communication mode as a target communication mode Control A communication connection between the terminal and the controlled terminal.
  • the method for establishing a communication connection between terminals according to the first aspect of the present invention is obtained by acquiring a control terminal when the first connection rate after the control terminal and the controlled terminal establish a communication connection in the first communication manner is less than a preset rate threshold.
  • the communication mode that can be supported is used as the second communication mode; the second communication mode is used to establish a communication connection between the control terminal and the controlled terminal, and the connection rate between the control terminal and the controlled terminal is tested, and the second connection rate is obtained, in the second
  • the connection rate is greater than or equal to the preset rate threshold
  • the second communication mode is used as the target communication mode to establish a communication connection between the control terminal and the controlled terminal, which can realize the intelligentization process of establishing the communication connection between the terminals and improve the user experience.
  • the device for establishing a communication connection between terminals includes: a test module, configured to test the control terminal and the after the control terminal and the controlled terminal establish a communication connection by using a first communication manner a first connection rate is obtained by the connection rate between the controlled terminals; the first determining module is configured to determine whether the first connection rate is less than a preset rate threshold; and the acquiring module is configured to be lower than the first connection rate When the preset rate threshold is used, the communication mode that the control terminal can support is obtained as the second communication mode; the first processing module is configured to establish communication between the control terminal and the controlled terminal by using the second communication mode.
  • the second determining module is configured to determine whether the second connection rate is less than the preset rate threshold; a processing module, configured to: when the second connection rate is greater than or equal to the preset rate threshold, the second pass Embodiment the target communication establishing the communication connection between the control terminal and the terminal are controlled.
  • the device for establishing a communication connection between the terminals obtains the control terminal by the first connection rate after the control terminal and the controlled terminal establish a communication connection in the first communication manner is less than the preset rate threshold.
  • the communication mode that can be supported is used as the second communication mode; the second communication mode is used to establish a communication connection between the control terminal and the controlled terminal, and the connection rate between the control terminal and the controlled terminal is tested, and the second connection rate is obtained, in the second
  • the connection rate is greater than or equal to the preset rate threshold
  • the second communication mode is used as the target communication mode to establish a communication connection between the control terminal and the controlled terminal, which can realize the intelligentization process of establishing the communication connection between the terminals and improve the user experience.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed to implement a method for establishing a communication connection between the terminals.
  • FIG. 1 is a schematic flowchart of a method for establishing a communication connection between terminals according to an embodiment of the present application
  • FIG. 2 is a schematic flow chart of a video encoding rate adjustment method of a projector according to another embodiment of the present application
  • FIG. 3 is a schematic flowchart of a method for establishing a communication connection between terminals according to another embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an apparatus for establishing a communication connection between terminals according to another embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an apparatus for establishing a communication connection between terminals according to another embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for establishing a communication connection between terminals according to an embodiment of the present application.
  • This embodiment is exemplified by a method of establishing a communication connection between the terminals as a device for establishing a communication connection between the terminals.
  • the method for establishing a communication connection between the terminals can be applied to the pair through the control terminal
  • a projector for example, a Spro2 projector
  • the control terminal may be a mobile terminal, and the mobile terminal may be a hardware device having various operating systems, such as a smart phone, a tablet computer, a personal digital assistant, an e-book, or the like.
  • control terminal can establish a communication connection with the controlled terminal (for example, the Spro2 projector) by accessing the wireless communication network.
  • the controlled terminal for example, the Spro2 projector
  • the Spro2 projector can be performed by the control terminal. Remote control, no restrictions here.
  • the method for establishing a communication connection between the terminals includes the following steps:
  • Step S11 After the control terminal and the controlled terminal establish a communication connection by using the first communication manner, test the connection rate between the control terminal and the controlled terminal to obtain a first connection rate.
  • the communication mode may be any one of a hotspot, a wireless access point (AP), and a Wi-Fi Direct.
  • AP wireless access point
  • Wi-Fi Direct any one of a hotspot, a wireless access point (AP), and a Wi-Fi Direct.
  • connection rate may be a rate at which the control terminal and the controlled terminal are connected, and the connection rate is used to identify the speed at which the control terminal connects to the controlled terminal.
  • the communication rate and communication quality of different communication modes are different under different usage scenarios of remote control.
  • the connection rate between the control terminal and the controlled terminal may be tested, and then the current communication mode is switched according to the test result to an alternative communication mode suitable for the current usage scenario.
  • the first communication mode may be any one of hotspot, AP, and Wi-Fi Direct.
  • Switching the current communication mode to an alternative communication method suitable for the current usage scenario may for example:
  • connection rate can be Tested, selected 5GHz band pairing and implemented remote control.
  • the AP device in a usage scenario of remote control, is in a position intermediate between the control terminal and the controlled terminal, and the control terminal is far from the controlled terminal, Select AP to communicate and implement remote control.
  • step S12 may be triggered.
  • Step S12 Determine whether the first connection rate is less than a preset rate threshold.
  • the preset rate threshold may be preset by a built-in program of the device that establishes the communication connection between the terminals, or may be configured by the user, which is not limited thereto.
  • step S13 is triggered.
  • the first connection rate is greater than or equal to the preset rate threshold, it indicates that the communication rate and the communication quality of the control terminal and the controlled terminal after establishing the communication connection in the first communication manner reach the standard, which is applicable to the current remote control. Use the scenario to switch the current communication mode.
  • the user when establishing a communication connection between the control terminal and the controlled terminal, the user manually sets the control terminal and the control terminal repeatedly, so that a suitable communication mode can be selected, and the establishment of the control terminal and the controlled terminal is completed.
  • the related art easily causes the user to abandon the use of the remote control to operate the controlled terminal (for example, a projector).
  • the communication connection between the control terminal and the controlled terminal is established in the first communication manner, and the communication connection rate in the current use scenario of the remote control is tested, and the communication quality of the current communication mode is evaluated.
  • the automatic switching communication mode can realize the intelligentization of the communication connection establishment process between terminals.
  • Step S13 If the first connection rate is less than the preset rate threshold, obtain a communication mode that the control terminal can support as the second communication mode.
  • control terminals can support different communication modes or the same in different usage scenarios.
  • the control terminal when the control terminal is a smart phone, it can support any one of AP and Wi-Fi Direct.
  • the control terminal is a tablet computer, any one of hotspot, AP, and Wi-Fi Direct can be supported, and there is no limitation thereto.
  • the control terminal supports three communication modes: hotspot, AP, and Wi-Fi Direct, and the first communication mode is an AP example.
  • the first connection rate after the control terminal and the controlled terminal establish a communication connection with the AP is less than the preset rate threshold, Obtaining the communication method hotspot that the control terminal can support, And Wi-Fi Direct, you can choose one of the hotspot and Wi-Fi Direct as the second communication method.
  • Step S14 Establish a communication connection between the control terminal and the controlled terminal by using the second communication mode, and test the connection rate between the control terminal and the controlled terminal to obtain a second connection rate.
  • the control terminal and the controlled terminal establish a communication connection with Wi-Fi Direct, test the connection rate to obtain the second connection rate, and may also select the hotspot as the second communication mode.
  • the control terminal and the controlled terminal establish a communication connection with the hotspot, and test the connection rate to obtain a second connection rate, which is not limited in the embodiment of the present invention.
  • Step S15 determining whether the second connection rate is less than a preset rate threshold.
  • step S16 is triggered.
  • the second connection rate is less than the preset rate threshold, it indicates that the communication rate and communication quality of the control terminal and the controlled terminal after establishing the communication connection in the second communication manner are not up to standard, and are not applicable to the current remote control. scenes to be used.
  • the Wi-Fi Direct can be switched to the hotspot, and when the control terminal and the controlled terminal establish a communication connection with the hotspot, the hotspot can be switched to the Wi- Fi Direct, and continue to test the connection rate under the switched communication mode to obtain the third connection rate, which is not limited.
  • Step S16 If the second connection rate is greater than or equal to the preset rate threshold, the second communication mode is used as the target communication mode to establish a communication connection between the control terminal and the controlled terminal.
  • the second connection rate is greater than or equal to the preset rate threshold, it indicates that the communication rate and the communication quality of the control terminal and the controlled terminal after establishing the communication connection in the second communication mode reach the standard, and is applicable to the current remote control.
  • the usage scenario may not switch the current communication mode, and the second communication mode is used as the target communication mode to transmit the communication rate value in the target communication mode.
  • the communication mode that the control terminal can support is obtained as the second communication mode;
  • the second communication mode establishes a communication connection between the control terminal and the controlled terminal, and tests the connection rate between the control terminal and the controlled terminal to obtain a second connection rate.
  • the second connection rate is greater than or equal to the preset rate threshold, the second communication mode is used as the target communication mode to establish a communication connection between the control terminal and the controlled terminal, so that the process of establishing the communication connection between the terminals can be intelligentized, and the user is improved. The experience of using.
  • FIG. 2 is a schematic flow chart of a video encoding rate adjustment method of a projector according to another embodiment of the present application.
  • the projector's video encoding rate adjustment method can be applied in the process of remotely controlling a projector (for example, a Spro2 projector) through a control terminal.
  • the video coding rate of the controlled terminal is manually adjusted by the user according to the current communication quality to ensure clear video under different communication qualities.
  • the video coding rate adjustment method of the projector can be used to automatically adjust the video coding rate of the controlled terminal according to the current communication quality.
  • the video encoding rate adjustment method of the projector includes the following steps:
  • Step S21 The control terminal transmits a preset parameter to the controlled terminal, where the preset parameter is a video parameter.
  • Step S22 Test the communication rate between the control terminal and the controlled terminal.
  • Step S23 Calculate the bandwidth required for video transmission according to the video compression parameter of the controlled terminal, obtain a target bandwidth, and obtain a target transmission rate according to the target bandwidth.
  • Step S24 It is judged whether the target transmission rate is greater than the communication rate, and if so, step S25 is performed, otherwise, step S26 is performed.
  • Step S25 The control terminal sends an instruction to reduce the video coding rate to the controlled terminal.
  • Step S26 Encoding the preset parameters with the current video coding rate of the controlled terminal.
  • the video coding rate of the controlled terminal is dynamically adjusted according to the communication rate, thereby ensuring video definition under different communication qualities.
  • FIG. 3 is a schematic flowchart of a method for establishing a communication connection between terminals according to another embodiment of the present application.
  • This embodiment is exemplified by a method of establishing a communication connection between the terminals as a device for establishing a communication connection between the terminals.
  • the method of establishing a communication connection between the terminals can be applied to the end of the control
  • the process of remotely controlling a projector for example, a Spro2 projector).
  • the method for establishing a communication connection between the terminals includes the following steps:
  • Step S301 configuring the primary communication mode and the standby communication mode.
  • This step can be performed by the controlled terminal.
  • the main communication mode is hotspot
  • the alternate communication mode is a Wi-Fi Direct example.
  • the main communication mode and the alternate communication mode are configured, for example, the information of the main communication mode and the information of the alternate communication mode are configured, for example, In the hotspot communication mode, the controlled terminal is used as the ssid (Service Set Identifier) and password of the hotspot, and the device name in the Wi-Fi Direct communication mode.
  • the primary communication mode is AP and the backup communication mode is hotspot or Wi-Fi Direct
  • the information of the primary communication mode is the ssid and password of the connected terminal connected to the router
  • the information of the alternate communication mode is when the controlled terminal is used as the hotspot. Ssid and password, or the device name when Wi-Fi Direct is connected.
  • Step S302 Establish a communication connection between the control terminal and the controlled terminal by using the primary communication mode as the first communication mode.
  • the information of the primary communication mode carrying the pairing code may be broadcast by the controlled terminal, the information of the primary communication mode is received by the control terminal, and the primary communication mode is established as the first communication mode.
  • Step S303 It is determined whether the remote control message is received within the first time period, and if yes, step S302 is performed; otherwise, step S304 is performed.
  • the first timing time may be preset by a built-in program of a device that establishes a communication connection between terminals, or may be configured by a user, and is not limited thereto.
  • the remote control message can be triggered by the user on the control terminal side.
  • the timer is started. If the remote control message and the pairing code are not received when the first time is reached, the step S304 is triggered. .
  • Step S304 Establish a communication connection between the control terminal and the controlled terminal by using the standby communication mode as the first communication mode.
  • the primary communication mode and the backup communication mode are pre-configured in the primary communication side.
  • the first communication mode is selected in the mode and the alternate communication mode, and the control terminal and the controlled terminal establish a communication connection by using the first communication mode, which can improve the efficiency of the communication connection establishment process between the terminals, and further improve the user experience.
  • Step S305 Test the connection rate between the control terminal and the controlled terminal to obtain a first connection rate.
  • the communication mode may be any one of a hotspot, a wireless access point (AP), and a Wi-Fi Direct.
  • AP wireless access point
  • Wi-Fi Direct any one of a hotspot, a wireless access point (AP), and a Wi-Fi Direct.
  • the communication rate and communication quality of different communication modes are different under different usage scenarios of remote control.
  • the connection rate between the control terminal and the controlled terminal may be tested, and then the current communication mode is switched according to the test result to an alternative communication mode suitable for the current usage scenario.
  • Step S306 Determine whether the first connection rate is less than the preset rate threshold. If yes, go to step S308; otherwise, go to step S307.
  • the preset rate threshold may be preset by a built-in program of the device that establishes the communication connection between the terminals, or may be configured by the user, which is not limited.
  • step S308 is triggered.
  • the user when establishing a communication connection between the control terminal and the controlled terminal, the user manually sets the control terminal and the control terminal repeatedly, so that a suitable communication mode can be selected, and the establishment of the control terminal and the controlled terminal is completed.
  • the operation of the communication connection the related art is easy for the user to abandon the use of remote control to operate the controlled terminal (such as a projector).
  • the communication connection between the control terminal and the controlled terminal is established in the first communication manner, and the communication connection rate in the current use scenario of the remote control is tested, and the communication quality of the current communication mode is evaluated.
  • the automatic switching communication mode can realize the intelligentization of the communication connection establishment process between terminals.
  • Step S307 The first communication mode is used as the target communication mode.
  • the first connection rate is greater than or equal to the preset rate threshold, it indicates that the communication rate and the communication quality of the control terminal and the controlled terminal after establishing the communication connection in the first communication manner reach the standard, which is applicable to the current remote control. Use the scenario to switch the current communication mode.
  • Step S308 Acquire a communication mode that the control terminal can support as the second communication mode.
  • control terminals can support different communication modes or the same in different usage scenarios.
  • the control terminal when the control terminal is a smart phone, it can support any one of AP and Wi-Fi Direct.
  • the control terminal is a tablet computer, any one of hotspot, AP, and Wi-Fi Direct can be supported, and there is no limitation thereto.
  • the control terminal supports three communication modes: hotspot, AP, and Wi-Fi Direct, and the first communication mode is an AP example.
  • the first connection rate after the control terminal and the controlled terminal establish a communication connection with the AP is less than the preset rate threshold.
  • the communication methods hotspot and Wi-Fi Direct that the control terminal can support are obtained, and one communication mode can be selected as the second communication method in the hotspot and the Wi-Fi Direct.
  • Step S309 Establish a communication connection between the control terminal and the controlled terminal by using the second communication mode, and test a connection rate between the control terminal and the controlled terminal to obtain a second connection rate.
  • the control terminal and the controlled terminal establish a communication connection with Wi-Fi Direct, test the connection rate to obtain the second connection rate, and may also select the hotspot as the second communication mode.
  • the control terminal and the controlled terminal establish a communication connection with the hotspot, and test the connection rate to obtain a second connection rate, which is not limited in the embodiment of the present invention.
  • Step S310 Determine whether the second connection rate is less than the preset rate threshold. If yes, go to step S312; otherwise, go to step S311.
  • the second connection rate is less than the preset rate threshold, it indicates that the communication rate and communication quality of the control terminal and the controlled terminal after establishing the communication connection in the second communication manner are not up to standard, and are not applicable to the current remote control. scenes to be used.
  • the Wi-Fi Direct can be switched to the hotspot, and when the control terminal and the controlled terminal establish a communication connection with the hotspot, the hotspot can be switched to the Wi- Fi Direct, and continue to test the connection rate in the switched communication mode, obtain the third connection rate, and repeatedly determine the target communication mode according to the third connection rate, which is not limited.
  • Step S311 Establish a communication connection between the control terminal and the controlled terminal by using the second communication mode as the target communication mode.
  • the second connection rate is greater than or equal to the preset rate threshold, it indicates The communication rate and the communication quality of the control terminal and the controlled terminal after establishing the communication connection in the second communication mode reach the standard, and are applicable to the current use scenario of the remote control, and may not switch the current communication mode, and use the second communication mode as the target communication mode. To transmit the communication rate value in the target communication mode.
  • Step S312 Comparing the first connection rate with the second connection rate to obtain a comparison result.
  • Step S313 The communication mode corresponding to the comparison result is used as the target communication mode.
  • the communication mode corresponding to the connection rate with a larger value may be selected as the target communication mode to target
  • the communication rate value is transmitted to the video transmission module in the communication mode.
  • the first communication mode is selected in the primary communication mode and the standby communication mode, and the control terminal and the controlled terminal establish a communication connection by using the first communication mode, The efficiency of establishing a communication connection between terminals is improved, and the user experience is improved.
  • the communication mode supported by the control terminal is acquired as the second communication mode; and the second communication mode is used to control
  • the terminal establishes a communication connection with the controlled terminal, and tests the connection rate between the control terminal and the controlled terminal to obtain a second connection rate.
  • the second connection rate is greater than or equal to the preset rate threshold, the second communication mode is targeted.
  • the communication method can realize the intelligentization of the communication connection establishment process between terminals, and further improve the user experience.
  • FIG. 4 is a schematic structural diagram of an apparatus for establishing a communication connection between terminals according to another embodiment of the present application.
  • the means for establishing a communication connection between the terminals can be applied in the process of remotely controlling a projector (for example, a Spro2 projector) through the control terminal.
  • the control terminal may be a mobile terminal, and the mobile terminal may be a hardware device having various operating systems, such as a smart phone, a tablet computer, a personal digital assistant, an e-book, or the like.
  • control terminal can establish a communication connection with the controlled terminal (for example, the Spro2 projector side) by accessing the wireless communication network, and after the remote control of the control terminal and the controlled terminal is completed, the Spro2 projector can be controlled by the control terminal.
  • the controlled terminal for example, the Spro2 projector side
  • remote control there is no limit here.
  • the device 40 for establishing a communication connection between the terminals includes:
  • the test module 401 is configured to test the connection rate between the control terminal and the controlled terminal after the control terminal and the controlled terminal establish a communication connection in the first communication manner to obtain a first connection rate.
  • the first determining module 402 is configured to determine whether the first connection rate is less than a preset rate threshold.
  • the obtaining module 403 is configured to acquire, as the second communication mode, a communication mode that the control terminal can support when the first connection rate is less than the preset rate threshold.
  • the first processing module 404 is configured to establish a communication connection between the control terminal and the controlled terminal by using the second communication manner, and test a connection rate between the control terminal and the controlled terminal to obtain a second connection rate.
  • the first processing module 404 is further configured to:
  • the first communication mode is used as the target communication mode.
  • the second determining module 405 is configured to determine whether the second connection rate is less than a preset rate threshold.
  • the second processing module 406 is configured to establish a communication connection between the control terminal and the controlled terminal by using the second communication mode as the target communication mode when the second connection rate is greater than or equal to the preset rate threshold.
  • the apparatus 40 for establishing a communication connection between the terminals further includes:
  • the comparison module 407 is configured to compare the first connection rate with the second connection rate when the second connection rate is less than the preset rate threshold, and obtain a comparison result.
  • the second processing module 406 is further configured to: when the comparison result is that the first connection rate is greater than the second connection rate, the communication mode corresponding to the first connection rate is used as the target communication mode; and the comparison result is that the first connection rate is less than the first connection rate When the connection rate is two, the communication method corresponding to the second connection rate is used as the target communication method.
  • the transmission module 408 is configured to transmit the communication rate value in the target communication mode.
  • the apparatus 40 for establishing a communication connection between the terminals further includes:
  • the configuration module 409 is configured to configure the primary communication mode and the backup communication mode.
  • the establishing module 410 is configured to establish a control terminal by using the main communication mode as the first communication mode. A communication connection with the controlled terminal.
  • the third determining module 411 is configured to determine whether the remote control message is received within the first timing time.
  • the third processing module 412 is configured to establish a communication connection between the control terminal and the controlled terminal as the first communication mode when the remote control message is not received within the first timeout period.
  • the communication mode that the control terminal can support is obtained as the second communication mode;
  • the second communication mode establishes a communication connection between the control terminal and the controlled terminal, and tests the connection rate between the control terminal and the controlled terminal to obtain a second connection rate.
  • the second connection mode is The second communication mode establishes a communication connection between the control terminal and the controlled terminal as the target communication mode, and can realize the intelligentization of the process of establishing the communication connection between the terminals, thereby improving the user experience.
  • portions of the application can be implemented in hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system.
  • any of the following techniques known in the art or a combination thereof may be used.
  • Implementation Discrete logic with logic gates for logic functions on data signals, application specific integrated circuits with suitable combinational gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), and the like.
  • the embodiment of the invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed to implement a method for establishing a communication connection between the terminals.
  • each functional unit in each embodiment of the present application may be integrated into one processing module, or each unit may exist physically separately, or two or more units may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated modules, if implemented in the form of software functional modules and sold or used as stand-alone products, may also be stored in a computer readable storage medium.
  • the above mentioned storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiments of the present invention provide a method and an apparatus for establishing a communication connection between terminals, which can implement intelligentization of a communication connection establishment process between terminals, and improve a user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

一种终端间建立通信连接的方法,包括:在控制终端和被控制终端以第一通信方式建立通信连接后的第一连接速率小于预设速率阈值时,获取控制终端能够支持的通信方式作为第二通信方式;采用第二通信方式对控制终端和被控制终端建立通信连接,并测试控制终端和被控制终端之间的连接速率,得到第二连接速率;判断第二连接速率是否小于预设速率阈值;如果第二连接速率大于或者等于预设速率阈值,则将第二通信方式作为目标通信方式建立控制终端和被控制终端之间的通信连接。通过上述方法能够实现终端间通信连接建立过程的智能化,提升用户的使用体验。

Description

终端间建立通信连接的方法和装置 技术领域
本申请涉及但不限于通信技术领域,尤其涉及一种终端间建立通信连接的方法和装置。
背景技术
目前用户会通过控制终端对投影仪(例如,Spro2投影仪)进行远程控制。
相关技术中,在建立控制终端和被控制终端间的通信连接时,由用户手动在被控制终端和控制终端反复进行设置,才能选定较合适的通信方式,完成建立控制终端和被控制终端间通信连接的操作,相关技术易使用户放弃使用远程控制的方式来操作投影仪。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提出一种终端间建立通信连接的方法及装置,能够实现终端间通信连接建立过程的智能化,提升用户的使用体验。
本发明实施例的第一方面提出的终端间建立通信连接的方法,包括:在控制终端和被控制终端以第一通信方式建立通信连接后,测试所述控制终端和所述被控制终端之间的连接速率,得到第一连接速率;判断所述第一连接速率是否小于预设速率阈值;如果所述第一连接速率小于所述预设速率阈值,则获取所述控制终端能够支持的通信方式作为第二通信方式;采用所述第二通信方式对所述控制终端和所述被控制终端建立通信连接,并测试所述控制终端和所述被控制终端之间的连接速率,得到第二连接速率;判断所述第二连接速率是否小于所述预设速率阈值;如果所述第二连接速率大于或者等于所述预设速率阈值,则将所述第二通信方式作为目标通信方式建立所述控制 终端和所述被控制终端之间的通信连接。
本发明实施例的第一方面提出的终端间建立通信连接的方法,通过在控制终端和被控制终端以第一通信方式建立通信连接后的第一连接速率小于预设速率阈值时,获取控制终端能够支持的通信方式作为第二通信方式;采用第二通信方式对控制终端和被控制终端建立通信连接,并测试控制终端和被控制终端之间的连接速率,得到第二连接速率,在第二连接速率大于或者等于预设速率阈值时,将第二通信方式作为目标通信方式建立控制终端和被控制终端之间的通信连接,能够实现终端间通信连接建立过程的智能化,提升用户的使用体验。
本发明实施例的第二方面提出的终端间建立通信连接的装置,包括:测试模块,设置为在控制终端和被控制终端以第一通信方式建立通信连接后,测试所述控制终端和所述被控制终端之间的连接速率,得到第一连接速率;第一判断模块,设置为判断所述第一连接速率是否小于预设速率阈值;获取模块,设置为在所述第一连接速率小于所述预设速率阈值时,获取所述控制终端能够支持的通信方式作为第二通信方式;第一处理模块,设置为采用所述第二通信方式对所述控制终端和所述被控制终端建立通信连接,并测试所述控制终端和所述被控制终端之间的连接速率,得到第二连接速率;第二判断模块,设置为判断所述第二连接速率是否小于所述预设速率阈值;第二处理模块,设置为在所述第二连接速率大于或者等于所述预设速率阈值时,将所述第二通信方式作为目标通信方式建立所述控制终端和所述被控制终端之间的通信连接。
本发明实施例的第二方面提出的终端间建立通信连接的装置,通过在控制终端和被控制终端以第一通信方式建立通信连接后的第一连接速率小于预设速率阈值时,获取控制终端能够支持的通信方式作为第二通信方式;采用第二通信方式对控制终端和被控制终端建立通信连接,并测试控制终端和被控制终端之间的连接速率,得到第二连接速率,在第二连接速率大于或者等于预设速率阈值时,将第二通信方式作为目标通信方式建立控制终端和被控制终端之间的通信连接,能够实现终端间通信连接建立过程的智能化,提升用户的使用体验。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述的终端间建立通信连接的方法。
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是本申请一实施例提出的终端间建立通信连接的方法的流程示意图;
图2是本申请另一实施例提出的投影仪的视频编码率调节方法的流程示意图;
图3是本申请另一实施例提出的终端间建立通信连接的方法的流程示意图;
图4是本申请另一实施例提出的终端间建立通信连接的装置的结构示意图;
图5是本申请另一实施例提出的终端间建立通信连接的装置的结构示意图。
本发明的实施方式
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能理解为对本申请的限制。相反,本申请的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。
图1是本申请一实施例提出的终端间建立通信连接的方法的流程示意图。本实施例以该终端间建立通信连接的方法被配置为终端间建立通信连接的装置中来举例说明。该终端间建立通信连接的方法可以应用在通过控制终端对 投影仪(例如,Spro2投影仪)进行远程控制的过程中。其中,控制终端可以是移动终端,移动终端可以例如智能手机、平板电脑、个人数字助理、电子书等具有各种操作系统的硬件设备。例如,控制终端可通过接入无线通信网络,建立与被控制终端(例如,Spro2投影仪)的通信连接,在控制终端与被控制终端远程控制配对完成后,可以通过控制终端对Spro2投影仪进行远程控制,在此不做限制。
如图1所示,该终端间建立通信连接的方法包括如下步骤:
步骤S11:在控制终端和被控制终端以第一通信方式建立通信连接后,测试控制终端和被控制终端之间的连接速率,得到第一连接速率。
可选地,通信方式可以为无线热点(hotspot)、无线访问接入点(Wireless Access Point,AP)、Wi-Fi直连(Wi-Fi Direct)中的任一种。
其中,连接速率可以为控制终端与被控制终端之间进行连接的速率,连接速率用于标识控制终端连接被控制终端的快慢。
可以理解的是,在远程控制的不同使用场景下,不同的通信方式的通信速率和通信质量不同。可选地,可以在当前远程控制的使用场景下,对控制终端和被控制终端之间的连接速率进行测试,进而根据测试结果将当前通信方式切换到适合当前使用场景的备选通信方式下。
可选地,第一通信方式可以为hotspot、AP、Wi-Fi Direct中的任一种。
将当前通信方式切换到适合当前使用场景的备选通信方式可以例如:
一个示例:使用hotspot或AP进行通信连接,远程控制的使用场景中,控制终端和被控制终端的通信范围内有很多其它2.4GHz频段的无线通信信号的干扰,在该场景下,可以对连接速率进行测试,选择5GHz的频段配对并实施远程控制。
另一个示例:使用AP进行通信连接,远程控制的使用场景中,控制终端和被控制终端的网络性能差,连接该AP设备的用户较多,可以选择Wi-Fi Direct或者hotpot进行通信连接并实施远程控制。
另一个示例:使用AP进行通信连接,远程控制的使用场景中,AP设备处于控制终端和被控制终端中间的位置,控制终端距离被控制终端较远,可 以选择AP进行通信连接并实施远程控制。
在测试得到控制终端和被控制终端之间的第一连接速率后,可以触发步骤S12。
步骤S12:判断第一连接速率是否小于预设速率阈值。
在本实施例中,预设速率阈值可以由终端间建立通信连接的装置的内置程序预先设定,也可以由用户进行配置,对此不作限制。
在第一连接速率小于预设速率阈值时,触发步骤S13。
可以理解的是,如果第一连接速率大于或者等于预设速率阈值,则表明控制终端和被控制终端以第一通信方式建立通信连接后的通信速率和通信质量达到标准,适用于远程控制的当前使用场景,可以不对当前通信方式进行切换。
相关技术中,在建立控制终端和被控制终端间的通信连接时,由用户手动在被控制终端和控制终端反复进行设置,才能选定较合适的通信方式,完成建立控制终端和被控制终端间通信连接的操作,相关技术下易使用户放弃使用远程控制的方式来操作被控制终端(例如,投影仪)。而本发明实施例中,通过以第一通信方式建立控制终端和被控制终端之间的通信连接,并对远程控制当前使用场景下的通信连接速率进行测试,对当前通信方式的通信质量进行评价,自动切换通信方式,能够实现终端间通信连接建立过程的智能化。
步骤S13:如果第一连接速率小于预设速率阈值,则获取控制终端能够支持的通信方式作为第二通信方式。
可以理解的是,不同的控制终端在不同的使用场景下,能够支持的通信方式不同或者相同,例如,当控制终端为智能手机时,可以支持AP、Wi-Fi Direct中的任一种,而当控制终端为平板电脑时,可以支持hotspot、AP、Wi-Fi Direct中的任一种,对此不作限制。
以控制终端支持hotspot、AP、Wi-Fi Direct三种通信方式,且第一通信方式是AP示例,在控制终端和被控制终端以AP建立通信连接后的第一连接速率小于预设速率阈值时,获取该控制终端能够支持的通信方式hotspot、 和Wi-Fi Direct,可以在hotspot和Wi-Fi Direct中任选一种通信方式作为第二通信方式。
步骤S14:采用第二通信方式对控制终端和被控制终端建立通信连接,并测试控制终端和被控制终端之间的连接速率,得到第二连接速率。
以选定Wi-Fi Direct作为第二通信方式示例,将控制终端和被控制终端以Wi-Fi Direct建立通信连接,测试连接速率得到第二连接速率,也可以选定hotspot作为第二通信方式,将控制终端和被控制终端以hotspot建立通信连接,测试连接速率得到第二连接速率,本发明实施例对此不作限制。
步骤S15:判断第二连接速率是否小于预设速率阈值。
在第二连接速率大于或者等于预设速率阈值时,触发步骤S16。
可以理解的是,如果第二连接速率小于预设速率阈值,则表明控制终端和被控制终端以第二通信方式建立通信连接后的通信速率和通信质量未达到标准,不适用于远程控制的当前使用场景。例如,在控制终端和被控制终端以Wi-Fi Direct建立通信连接时,可以将Wi-Fi Direct切换至hotspot,在控制终端和被控制终端以hotspot建立通信连接时,可以将hotspot切换至Wi-Fi Direct,并继续测试切换后的通信方式下的连接速率,得到第三连接速率,对此不做限制。
步骤S16:如果第二连接速率大于或者等于预设速率阈值,则将第二通信方式作为目标通信方式建立控制终端和被控制终端之间的通信连接。
可以理解的是,如果第二连接速率大于或者等于预设速率阈值,则表明控制终端和被控制终端以第二通信方式建立通信连接后的通信速率和通信质量达到标准,适用于远程控制的当前使用场景,可以不对当前通信方式进行切换,将第二通信方式作为目标通信方式,以在目标通信方式下传输通信速率值。
本实施例中,通过在控制终端和被控制终端以第一通信方式建立通信连接后的第一连接速率小于预设速率阈值时,获取控制终端能够支持的通信方式作为第二通信方式;采用第二通信方式对控制终端和被控制终端建立通信连接,并测试控制终端和被控制终端之间的连接速率,得到第二连接速率, 在第二连接速率大于或者等于预设速率阈值时,将第二通信方式作为目标通信方式建立控制终端和被控制终端之间的通信连接,能够实现终端间通信连接建立过程的智能化,提升用户的使用体验。
图2是本申请另一实施例提出的投影仪的视频编码率调节方法的流程示意图。该投影仪的视频编码率调节方法可以应用在通过控制终端对投影仪(例如,Spro2投影仪)进行远程控制的过程中。
相关技术中,在控制终端和被控制终端间通过不同的通信方式进行连接时,由用户手动根据当前的通信质量对被控制终端的视频编码率进行调节,以保证在不同通信质量下的视频清晰度,而本发明实施例中,可以通过采用投影仪的视频编码率调节方法,实现根据当前的通信质量对被控制终端的视频编码率进行自动调节。
如图2所示,该投影仪的视频编码率调节方法包括如下步骤:
步骤S21:控制终端向被控制终端传输预置参数,其中,预置参数为视频参数。
步骤S22:测试控制终端与被控制终端的通信速率。
步骤S23:根据被控制终端的视频压缩参数计算视频传输时所需要的带宽,得到目标带宽,并根据目标带宽获取目标传输速率。
步骤S24:判断目标传输速率是否大于通信速率,若是,执行步骤S25,否则,执行步骤S26。
步骤S25:控制终端向被控制终端发送降低视频编码率的指令。
步骤S26:以被控制终端当前的视频编码率对预置参数进行编码。
本实施例中,通过测试控制终端与被控制终端之间在不同通信方式下的通信速率,根据通信速率对被控制终端的视频编码率进行动态调节,能够保证在不同通信质量下的视频清晰度,实现终端间通信连接建立过程的智能化,提升用户的使用体验。
图3是本申请另一实施例提出的终端间建立通信连接的方法的流程示意图。本实施例以该终端间建立通信连接的方法被配置为终端间建立通信连接的装置中来举例说明。该终端间建立通信连接的方法可以应用在通过控制终 端对投影仪(例如,Spro2投影仪)进行远程控制的过程中。
如图3所示,该终端间建立通信连接的方法包括如下步骤:
步骤S301:配置主用通信方式和备用通信方式。
本步骤可以由被控制终端执行。
以主用通信方式为hotspot,备用通信方式为Wi-Fi Direct示例,其中,配置主用通信方式和备用通信方式,可以例如,配置主用通信方式的信息和备用通信方式的信息,可选如,配置hotspot通信方式下,被控制终端作为hotspot的ssid(Service Set Identifier,服务集标识)和密码,Wi-Fi Direct通信方式下的设备名称。如果主用通信方式为AP,备用通信方式为hotspot或者Wi-Fi Direct,则主用通信方式的信息为被控制终端连接路由器的ssid和密码,备用通信方式的信息是被控制终端作为hotspot时的ssid和密码,或者Wi-Fi Direct连接时的设备名称。
步骤S302:将主用通信方式作为第一通信方式建立控制终端和被控制终端之间的通信连接。
可选地,在本步骤中,可以由被控制终端广播携带配对码的主用通信方式的信息,由控制终端接收主用通信方式的信息,并将主用通信方式作为第一通信方式建立控制终端和被控制终端之间的通信连接。
步骤S303:判断在第一计时时间内是否接收到远程控制消息,若是,则执行步骤S302,否则,执行步骤S304。
其中,第一计时时间可以由终端间建立通信连接的装置的内置程序预先设定,也可以由用户进行配置,对此不作限制。远程控制消息可以由用户在控制终端侧触发。
在以主用通信方式建立控制终端和被控制终端之间的通信连接后,启动计时器计时,如果在计时时间达到第一计时时间时,未接收到远程控制消息和配对码,则触发步骤S304。
步骤S304:将备用通信方式作为第一通信方式建立控制终端和被控制终端之间的通信连接。
本步骤中,通过预先配置主用通信方式和备用通信方式,在主用通信方 式和备用通信方式中选取第一通信方式,将控制终端和被控制终端以第一通信方式建立通信连接,可以提升终端间通信连接建立过程的效率,进一步提升用户的使用体验。
步骤S305:测试控制终端和被控制终端之间的连接速率,得到第一连接速率。
可选地,通信方式可以为无线热点(hotspot)、无线访问接入点(Wireless Access Point,AP)、Wi-Fi直连(Wi-Fi Direct)中的任一种。
可以理解的是,在远程控制的不同使用场景下,不同的通信方式的通信速率和通信质量不同。可选地,可以在当前远程控制的使用场景下,对控制终端和被控制终端之间的连接速率进行测试,进而根据测试结果将当前通信方式切换到适合当前使用场景的备选通信方式下。
步骤S306:判断第一连接速率是否小于预设速率阈值,若是,执行步骤S308,否则,执行步骤S307。
在本发明实施例中,预设速率阈值可以由终端间建立通信连接的装置的内置程序预先设定,也可以由用户进行配置,对此不作限制。
在第一连接速率小于预设速率阈值时,触发步骤S308。
相关技术中,在建立控制终端和被控制终端间的通信连接时,由用户手动在被控制终端和控制终端反复进行设置,才能选定较合适的通信方式,完成建立控制终端和被控制终端间通信连接的操作,相关技术下易使用户放弃使用远程控制的方式来操作被控制终端(例如投影仪)。而本发明实施例中,通过以第一通信方式建立控制终端和被控制终端之间的通信连接,并对远程控制当前使用场景下的通信连接速率进行测试,对当前通信方式的通信质量进行评价,自动切换通信方式,能够实现终端间通信连接建立过程的智能化。
步骤S307:将第一通信方式作为目标通信方式。
可以理解的是,如果第一连接速率大于或者等于预设速率阈值,则表明控制终端和被控制终端以第一通信方式建立通信连接后的通信速率和通信质量达到标准,适用于远程控制的当前使用场景,可以不对当前通信方式进行切换。
步骤S308:获取控制终端能够支持的通信方式作为第二通信方式。
可以理解的是,不同的控制终端在不同的使用场景下,能够支持的通信方式不同或者相同,例如,当控制终端为智能手机时,可以支持AP、Wi-Fi Direct中的任一种,而当控制终端为平板电脑时,可以支持hotspot、AP、Wi-Fi Direct中的任一种,对此不作限制。
以控制终端支持hotspot、AP、Wi-Fi Direct三种通信方式,且第一通信方式是AP示例,在控制终端和被控制终端以AP建立通信连接后的第一连接速率小于预设速率阈值时,获取该控制终端能够支持的通信方式hotspot、和Wi-Fi Direct,可以在hotspot和Wi-Fi Direct中任选一种通信方式作为第二通信方式。
步骤S309:采用第二通信方式对控制终端和被控制终端建立通信连接,并测试控制终端和被控制终端之间的连接速率,得到第二连接速率。
以选定Wi-Fi Direct作为第二通信方式示例,将控制终端和被控制终端以Wi-Fi Direct建立通信连接,测试连接速率得到第二连接速率,也可以选定hotspot作为第二通信方式,将控制终端和被控制终端以hotspot建立通信连接,测试连接速率得到第二连接速率,本发明实施例对此不作限制。
步骤S310:判断第二连接速率是否小于预设速率阈值,若是,执行步骤S312,否则,执行步骤S311。
可以理解的是,如果第二连接速率小于预设速率阈值,则表明控制终端和被控制终端以第二通信方式建立通信连接后的通信速率和通信质量未达到标准,不适用于远程控制的当前使用场景。例如,在控制终端和被控制终端以Wi-Fi Direct建立通信连接时,可以将Wi-Fi Direct切换至hotspot,在控制终端和被控制终端以hotspot建立通信连接时,可以将hotspot切换至Wi-Fi Direct,并继续测试切换后的通信方式下的连接速率,得到第三连接速率,并重复根据第三连接速率确定目标通信方式,对此不做限制。
步骤S311:将第二通信方式作为目标通信方式建立控制终端和被控制终端之间的通信连接。
可以理解的是,如果第二连接速率大于或者等于预设速率阈值,则表明 控制终端和被控制终端以第二通信方式建立通信连接后的通信速率和通信质量达到标准,适用于远程控制的当前使用场景,可以不对当前通信方式进行切换,将第二通信方式作为目标通信方式,以在目标通信方式下传输通信速率值。
步骤S312:将第一连接速率与第二连接速率做比对,得到比对结果。
步骤S313:将与比对结果对应的通信方式作为目标通信方式。
可以理解的是,速率值越大,表明该速率值对应的通信方式的通信质量越好。可选地,在本发明实施例中,在第一连接速率与第二连接速率均小于预设速率阈值时,可以选取值较大的连接速率对应的通信方式作为目标通信方式,以在目标通信方式下向视频传输模块传输通信速率值。
本实施例中,通过预先配置主用通信方式和备用通信方式,在主用通信方式和备用通信方式中选取第一通信方式,将控制终端和被控制终端以第一通信方式建立通信连接,可以实现终端间通信连接建立过程的效率,提升用户的使用体验。通过在控制终端和被控制终端以第一通信方式建立通信连接后的第一连接速率小于预设速率阈值时,获取控制终端能够支持的通信方式作为第二通信方式;采用第二通信方式对控制终端和被控制终端建立通信连接,并测试控制终端和被控制终端之间的连接速率,得到第二连接速率,在第二连接速率大于或者等于预设速率阈值时,将第二通信方式作为目标通信方式,能够实现终端间通信连接建立过程的智能化,进一步提升用户的使用体验。
图4是本申请另一实施例提出的终端间建立通信连接的装置的结构示意图。该终端间建立通信连接的装置可以应用在通过控制终端对投影仪(例如,Spro2投影仪)进行远程控制的过程中。其中,控制终端可以是移动终端,移动终端可以例如智能手机、平板电脑、个人数字助理、电子书等具有各种操作系统的硬件设备。例如,控制终端可通过接入无线通信网络,建立与被控制终端(例如,Spro2投影仪侧)的通信连接,在控制终端与被控制终端远程控制配对完成后,可以通过控制终端对Spro2投影仪进行远程控制,在此不做限制。
如图4所示,该终端间建立通信连接的装置40包括:
测试模块401,设置为在控制终端和被控制终端以第一通信方式建立通信连接后,测试控制终端和被控制终端之间的连接速率,得到第一连接速率。
第一判断模块402,设置为判断第一连接速率是否小于预设速率阈值。
获取模块403,设置为在第一连接速率小于预设速率阈值时,获取控制终端能够支持的通信方式作为第二通信方式。
第一处理模块404,设置为采用第二通信方式对控制终端和被控制终端建立通信连接,并测试控制终端和被控制终端之间的连接速率,得到第二连接速率。
可选地,第一处理模块404还设置为:
在第一连接速率大于或者等于预设速率阈值时,将第一通信方式作为目标通信方式。
第二判断模块405,设置为判断第二连接速率是否小于预设速率阈值。
第二处理模块406,设置为在第二连接速率大于或者等于预设速率阈值时,将第二通信方式作为目标通信方式建立控制终端和被控制终端之间的通信连接。
一些实施例中,参见图5,该终端间建立通信连接的装置40还包括:
比对模块407,设置为在第二连接速率小于预设速率阈值时,将第一连接速率与第二连接速率做比对,得到比对结果。
第二处理模块406还设置为:在比对结果为第一连接速率大于第二连接速率时,将第一连接速率对应的通信方式作为目标通信方式;在比对结果为第一连接速率小于第二连接速率时,将第二连接速率对应的通信方式作为目标通信方式。
传输模块408,设置为在目标通信方式下传输通信速率值。
可选地,一些实施例中,参见图5,该终端间建立通信连接的装置40还包括:
配置模块409,设置为配置主用通信方式和备用通信方式。
建立模块410,设置为将主用通信方式作为第一通信方式建立控制终端 和被控制终端之间的通信连接。
第三判断模块411,设置为判断在第一计时时间内是否接收到远程控制消息。
第三处理模块412,设置为在第一计时时间内未接收到远程控制消息时,将备用通信方式作为第一通信方式建立控制终端和被控制终端之间的通信连接。
需要说明的是,前述对终端间建立通信连接的方法实施例的解释说明也适用于该实施例的终端间建立通信连接的装置40,其实现原理类似,此处不再赘述。
本实施例中,通过在控制终端和被控制终端以第一通信方式建立通信连接后的第一连接速率小于预设速率阈值时,获取控制终端能够支持的通信方式作为第二通信方式;采用第二通信方式对控制终端和被控制终端建立通信连接,并测试控制终端和被控制终端之间的连接速率,得到第二连接速率,在第二连接速率大于或者等于预设速率阈值时,将第二通信方式作为目标通信方式建立控制终端和被控制终端之间的通信连接,能够实现终端间通信连接建立过程的智能化,提升用户的使用体验。
需要说明的是,在本申请的描述中,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。此外,在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。
流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的可选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。
应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来 实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。
本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述的终端间建立通信连接的方法。
本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件(例如处理器)完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。
此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。
上述提到的存储介质可以是只读存储器,磁盘或光盘等。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。
工业实用性
本申请实施例提供一种终端间建立通信连接的方法及装置,能够实现终端间通信连接建立过程的智能化,提升用户的使用体验。

Claims (10)

  1. 一种终端间建立通信连接的方法,包括以下步骤:
    在控制终端和被控制终端以第一通信方式建立通信连接后,测试所述控制终端和所述被控制终端之间的连接速率,得到第一连接速率;
    判断所述第一连接速率是否小于预设速率阈值;
    如果所述第一连接速率小于所述预设速率阈值,则获取所述控制终端能够支持的通信方式作为第二通信方式;
    采用所述第二通信方式对所述控制终端和所述被控制终端建立通信连接,并测试所述控制终端和所述被控制终端之间的连接速率,得到第二连接速率;
    判断所述第二连接速率是否小于所述预设速率阈值;
    如果所述第二连接速率大于或者等于所述预设速率阈值,则将所述第二通信方式作为目标通信方式建立所述控制终端和所述被控制终端之间的通信连接。
  2. 如权利要求1所述的终端间建立通信连接的方法,在所述判断所述第一连接速率是否小于预设速率阈值之后,所述方法还包括:
    如果所述第一连接速率大于或者等于所述预设速率阈值,则将所述第一通信方式作为目标通信方式。
  3. 如权利要求1所述的终端间建立通信连接的方法,在所述判断所述第二连接速率是否小于所述预设速率阈值之后,所述方法还包括:
    如果所述第二连接速率小于所述预设速率阈值,则将所述第一连接速率与所述第二连接速率做比对,得到比对结果;
    如果所述比对结果为所述第一连接速率大于所述第二连接速率,则将所述第一连接速率对应的通信方式作为目标通信方式;
    如果所述比对结果为所述第一连接速率小于所述第二连接速率,则将所述第二连接速率对应的通信方式作为目标通信方式。
  4. 如权利要求1所述的终端间建立通信连接的方法,所述方法还包括:
    在所述目标通信方式下传输通信速率值。
  5. 如权利要求1所述的终端间建立通信连接的方法,其中,所述将所述控制终端和所述被控制终端以第一通信方式建立通信连接,包括:
    配置主用通信方式和备用通信方式;
    将所述主用通信方式作为所述第一通信方式建立所述控制终端和所述被控制终端之间的通信连接;
    判断在第一计时时间内是否接收到远程控制消息;
    如果在所述第一计时时间内未接收到所述远程控制消息,则将所述备用通信方式作为所述第一通信方式建立所述控制终端和所述被控制终端之间的通信连接。
  6. 一种终端间建立通信连接的装置,包括:
    测试模块,设置为在控制终端和被控制终端以第一通信方式建立通信连接后,测试所述控制终端和所述被控制终端之间的连接速率,得到第一连接速率;
    第一判断模块,设置为判断所述第一连接速率是否小于预设速率阈值;
    获取模块,设置为在所述第一连接速率小于所述预设速率阈值时,获取所述控制终端能够支持的通信方式作为第二通信方式;
    第一处理模块,设置为采用所述第二通信方式对所述控制终端和所述被控制终端建立通信连接,并测试所述控制终端和所述被控制终端之间的连接速率,得到第二连接速率;
    第二判断模块,设置为判断所述第二连接速率是否小于所述预设速率阈值;
    第二处理模块,设置为在所述第二连接速率大于或者等于所述预设速率阈值时,将所述第二通信方式作为目标通信方式建立所述控制终端和所述被控制终端之间的通信连接。
  7. 如权利要求6所述的终端间建立通信连接的装置,其中,所述第一处理模块还设置为:
    在所述第一连接速率大于或者等于所述预设速率阈值时,将所述第一通信方式作为目标通信方式。
  8. 如权利要求6所述的终端间建立通信连接的装置,所述装置还包括:
    比对模块,设置为在所述第二连接速率小于所述预设速率阈值时,将所述第一连接速率与所述第二连接速率做比对,得到比对结果;
    所述第二处理模块还设置为:在所述比对结果为所述第一连接速率大于所述第二连接速率时,将所述第一连接速率对应的通信方式作为目标通信方式;在所述比对结果为所述第一连接速率小于所述第二连接速率时,将所述第二连接速率对应的通信方式作为目标通信方式。
  9. 如权利要求6所述的终端间建立通信连接的装置,所述装置还包括:
    传输模块,设置为在所述目标通信方式下传输通信速率值。
  10. 如权利要求6所述的终端间建立通信连接的装置,所述装置还包括:
    配置模块,设置为配置主用通信方式和备用通信方式;
    建立模块,设置为将所述主用通信方式作为所述第一通信方式建立所述控制终端和所述被控制终端之间的通信连接;
    第三判断模块,设置为判断在第一计时时间内是否接收到远程控制消息;
    第三处理模块,设置为在所述第一计时时间内未接收到所述远程控制消息时,将所述备用通信方式作为所述第一通信方式建立所述控制终端和所述被控制终端之间的通信连接。
PCT/CN2016/085729 2016-04-26 2016-06-14 终端间建立通信连接的方法和装置 WO2017185494A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610263447.7 2016-04-26
CN201610263447.7A CN107318172B (zh) 2016-04-26 2016-04-26 终端间建立通信连接的方法和装置

Publications (1)

Publication Number Publication Date
WO2017185494A1 true WO2017185494A1 (zh) 2017-11-02

Family

ID=60161805

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/085729 WO2017185494A1 (zh) 2016-04-26 2016-06-14 终端间建立通信连接的方法和装置

Country Status (2)

Country Link
CN (1) CN107318172B (zh)
WO (1) WO2017185494A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873155B (zh) * 2016-03-30 2019-05-31 联想(北京)有限公司 一种信息处理方法及电子设备
CN109041103B (zh) * 2018-09-30 2022-07-19 Oppo广东移动通信有限公司 终端控制方法、系统及终端
CN113345254A (zh) * 2021-06-02 2021-09-03 浙江浙大中控信息技术有限公司 智慧路口智能交通信号灯系统及车路协同智能交通信号灯

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060270351A1 (en) * 2004-06-15 2006-11-30 Rotani, Inc. Method and apparatus for increasing data throughput
CN104954859A (zh) * 2014-03-28 2015-09-30 比亚迪股份有限公司 通过车载多媒体对移动终端进行控制的方法、装置和系统
CN105101317A (zh) * 2015-07-28 2015-11-25 努比亚技术有限公司 网络切换装置和方法
CN105325035A (zh) * 2013-06-25 2016-02-10 高通股份有限公司 用于基于数据活动性进行动态用户装备能力报告的装置和方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060270351A1 (en) * 2004-06-15 2006-11-30 Rotani, Inc. Method and apparatus for increasing data throughput
CN105325035A (zh) * 2013-06-25 2016-02-10 高通股份有限公司 用于基于数据活动性进行动态用户装备能力报告的装置和方法
CN104954859A (zh) * 2014-03-28 2015-09-30 比亚迪股份有限公司 通过车载多媒体对移动终端进行控制的方法、装置和系统
CN105101317A (zh) * 2015-07-28 2015-11-25 努比亚技术有限公司 网络切换装置和方法

Also Published As

Publication number Publication date
CN107318172B (zh) 2021-09-21
CN107318172A (zh) 2017-11-03

Similar Documents

Publication Publication Date Title
US11026148B2 (en) Electronic apparatus for wireless communication and wireless communication method
JP6142062B2 (ja) ユーザ端末及びプロセッサ
KR101886319B1 (ko) 이웃 영역 네트워크 검출을 위한 방법들 및 장치
KR101942348B1 (ko) 블루투스 저에너지 결합된 리슨 및 스캔 윈도우
KR101643999B1 (ko) Wlan 및 plmn 선택을 위한 andsf 정책들
CN108141398B (zh) 自主群发起者的智能信道选择
WO2015151962A1 (ja) 情報処理装置および情報処理方法
WO2016179835A1 (zh) 边链路信息传输方法、装置以及通信系统
WO2014112599A1 (ja) 通信制御方法及びユーザ端末
KR20180026407A (ko) 서비스 발견 및 토폴로지 관리
JP2017022784A (ja) インターratハンドオーバ測定値を用いたカバレッジホールの識別
JP2018518907A (ja) 近傍アウェアネットワーク内でのワイヤレス発見ロケーションおよび測距のための方法および装置
EP2966932B1 (en) Wireless fidelity wi-fi access method for user equipment and wi-fi access node
WO2014198013A1 (zh) 无线通信方法、用户设备及网络节点
KR20190101811A (ko) 복수의 가입자 식별 모듈들을 사용하는 전자 장치 및 그의 통신 서비스 제공 방법
KR102598542B1 (ko) 반송파 집성을 위한 반송파 조합 송신 방법 및 이를 위한 전자 장치
KR101671380B1 (ko) 무선 네트워크의 조정 방법, 장치, 프로그램 및 저장매체
US9961669B2 (en) Near field communication (NFC) to bluetooth handover
WO2022120751A1 (zh) 通信方法及装置、接入设备、终端及存储介质
US11871294B2 (en) Frequency band handover in dual-connectivity systems
US20210185751A1 (en) Communication apparatus, control method for communication apparatus, and non-transitory computer-readable storage medium
WO2017185494A1 (zh) 终端间建立通信连接的方法和装置
JP2013168904A (ja) 無線通信装置、無線通信を行なう方法、及び、無線通信を無線通信装置に実行させるためのコンピュータプログラム
US20230074029A1 (en) Non-standalone architecture frame alignment
KR102424844B1 (ko) 외부 장치와의 무선 p2p 통신을 지원하는 전자 장치 및 그 전자 장치의 통신 방법

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16900004

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16900004

Country of ref document: EP

Kind code of ref document: A1