[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2019237291A1 - 一种传输控制方法及设备 - Google Patents

一种传输控制方法及设备 Download PDF

Info

Publication number
WO2019237291A1
WO2019237291A1 PCT/CN2018/091149 CN2018091149W WO2019237291A1 WO 2019237291 A1 WO2019237291 A1 WO 2019237291A1 CN 2018091149 W CN2018091149 W CN 2018091149W WO 2019237291 A1 WO2019237291 A1 WO 2019237291A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication connection
communication
data
connection
error
Prior art date
Application number
PCT/CN2018/091149
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 华为技术有限公司
Priority to CN201880079002.0A priority Critical patent/CN111448825B/zh
Priority to CN202110656790.9A priority patent/CN113473428B/zh
Priority to EP18922405.8A priority patent/EP3799469B1/en
Priority to PCT/CN2018/091149 priority patent/WO2019237291A1/zh
Priority to AU2018427289A priority patent/AU2018427289B2/en
Priority to US17/251,551 priority patent/US11553393B2/en
Publication of WO2019237291A1 publication Critical patent/WO2019237291A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/305Handover due to radio link failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0055Transmission or use of information for re-establishing the radio link
    • H04W36/0077Transmission or use of information for re-establishing the radio link of access information of target access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • Embodiments of the present application relate to the field of communications technologies, and in particular, to a transmission control method and device.
  • Wireless LAN technology enables users to access network resources conveniently and wirelessly anytime, anywhere.
  • Wi-Fi Wireless Fidelity
  • Wi-Fi has been widely used as one of wireless local area network (WLAN) technologies.
  • WLAN wireless local area network
  • the device can only reconnect to the Wi-Fi hotspot in response to a user operation after giving an error prompt. After the Wi-Fi connection fails, the user needs to intervene before the device can re-establish the Wi-Fi connection. Devices are less efficient at establishing Wi-Fi connections.
  • the embodiments of the present application provide a transmission control method and device, and the devices on both sides can timely detect a Wi-Fi connection error and perform fault tolerance processing.
  • an embodiment of the present application provides a transmission control method.
  • the transmission control method includes: a first device and a second device transmit first data through a first communication connection; a first device and a second device connect through a first communication connection During the transmission of the first data, the first device found that the first communication connection was in error; the first device sent the first communication connection error information to the second device through the second communication connection.
  • the second communication connection is different from the first communication connection, and the foregoing error information is used to indicate that the first communication connection is in error.
  • the first device may send error information of the first communication connection to the second device through the second communication connection after finding that the first communication connection is in error.
  • the first device sends the error information of the first communication connection to the second device in time, so that the second device can detect the error of the first communication connection in time. In this way, the first device and the second device can perform fault tolerance processing in a timely manner.
  • the first device after the first device sends error information of the first communication connection to the second device through the second communication connection, the first device interacts with the second device through the second communication connection. Connection parameters for communication connections.
  • the first device and the second device can directly re-establish the first communication connection according to the connection parameter.
  • the connection parameters of the first communication connection instead of performing error correction processing on the first communication connection, and then interacting with the connection parameters of the first communication connection according to the normal flow of the first communication connection, and then re-establishing the first communication connection according to the connection parameters. In this way, the time for establishing the first communication connection can be shortened, and the efficiency of establishing the first communication connection can be improved.
  • the foregoing error information may further include first breakpoint information of the first data.
  • the first breakpoint information is used to indicate a cut-off position of data in the first data that the first device and the second device have transmitted correctly.
  • the first device and the second device may re-establish the first communication connection according to the connection parameters of the first communication connection, and then use the first breakpoint information to pass the first A communication connection transmits the first data.
  • the first device and the second device may according to the first breakpoint Information, transmitting the first data through the second communication connection.
  • the first data is continuously transmitted according to the second communication connection.
  • the first data is transmitted through the re-established first communication connection. In this way, the transmission of the first data can be completed quickly, and the transmission efficiency of the first data can be improved.
  • the first communication connection Take the first communication connection as a Wi-Fi connection and the second communication connection as a Bluetooth connection as an example. It can be understood that in the case where the first device and the second device have established a Bluetooth connection, it takes time for the first device and the second device to re-establish a Wi-Fi connection; therefore, the first device and the second device are connected via Bluetooth. The transmission of the first data through the connection can quickly complete the transmission of the first data and improve the transmission efficiency of the first data. In the case where the first device and the second device have not established a Bluetooth connection, it takes time to re-establish a Wi-Fi connection between the first device and the second device, and the time required to establish a Bluetooth connection is less than the time required to establish a Wi-Fi connection. Therefore, transmitting the first data through the Bluetooth connection between the first device and the second device can quickly complete the transmission of the first data and improve the transmission efficiency of the first data.
  • the first device and the second device can directly transmit the first data through the second communication connection. That is, the first device performs a second operation with the second device: transmitting the first data through the second communication connection.
  • the first device and the second device may wait for the first communication connection to be re-established successfully, and transmit the first data through the re-established first communication connection. That is, the first device and the second device perform operation 1: re-establish the first communication connection, and transmit the first data through the re-established first communication connection.
  • the user may select the first device and the second device to perform the foregoing “operation one” or “operation two”.
  • the first device and the second device transmitting the first data through the second communication connection according to the first breakpoint information may include: the first device displaying a second interface including the first confirmation information.
  • the first confirmation information is used to indicate that the first communication connection is in error, and requests the user to confirm that the first operation or the second operation is performed.
  • the first device and the second device may transmit the first data through the second communication connection according to the first breakpoint information.
  • the first device and the second device may transmit the first data through the first communication connection according to the first breakpoint information.
  • the transmission rate of the first communication connection may be greater than the transmission rate of the second communication connection.
  • the first device and the second device may retransmit the first data through the first communication connection after the first communication connection is successfully established.
  • the first device and the second device re-establish the first communication connection according to the connection parameters of the first communication connection.
  • the first device and the second device may stop transmitting the first data through the second communication connection, and according to the second breakpoint information of the first data, The first data is transmitted over the first communication connection.
  • the second breakpoint information is used to indicate a cut-off position of data in the first data that has been correctly transmitted by the first device and the second device through the second communication connection.
  • the first device may determine whether the transmission rate of the first communication connection is higher than the transmission rate of the second communication connection.
  • the first device and the second device may stop transmitting the first data through the second communication connection, and according to the second interruption of the first data, Point information, and continue to transmit the first data through the first communication connection.
  • the terminal may determine whether the amount of the untransmitted data in the first data is greater than a preset data amount threshold. When the amount of data that has not been transmitted is greater than a preset data amount threshold, the terminal may stop transmitting the first data through the second communication connection, and continue transmitting the first data through the first communication connection. When the amount of data that has not been transmitted is less than or equal to a preset data amount threshold, the terminal may continue to transmit the first data through the second communication connection.
  • the user can choose whether to continue transmitting the first data through the re-established first communication connection.
  • the first device may display a fourth interface including the second confirmation information.
  • the second confirmation information is used to indicate that the first communication connection is successfully established, and requests the user to confirm whether to continue transmitting the first data through the re-established first communication connection.
  • the first device and the second device may stop transmitting the first data through the second communication connection, and according to the second breakpoint information of the first data, pass The first communication connection transmits first data.
  • an embodiment of the present application provides a transmission control method.
  • the transmission control method includes: during a process of establishing a first communication connection between the first device and the second device, the first device finds that the first communication connection is in error; The device sends error information of the first communication connection to the second device through the second communication connection. The second communication connection is different from the first communication connection, and the error information is used to indicate that the first communication connection is in error.
  • the first device and the second device exchange connection parameters of the first communication connection through the second communication connection; the first device and the second device establish a first communication connection according to the connection parameters of the first communication connection.
  • the first device may send error information of the first communication connection to the second device through the second communication connection after finding that the first communication connection is in error.
  • the first device sends the error information of the first communication connection to the second device in time, so that the second device can detect the error of the first communication connection in time.
  • the first device and the second device may exchange connection parameters of the first communication connection through the second communication connection after the first communication connection fails. Then, the first communication connection is re-established directly according to the connection parameter. In this way, the time for establishing the first communication connection can be shortened, and the efficiency of establishing the first communication connection can be improved.
  • the functions of the second communication connection between the first device and the second device are both turned on. And, the first device establishes a second communication connection with the second device. In this case, when the first device finds that the first communication connection is in error, it may directly send an error message to the second device through the second communication connection between the first device and the second device.
  • the function of the second communication connection of the second device is turned on. Before the first device sends an error message to the second device through the second communication connection, the function of the second communication connection of the first device is turned on. However, the first device and the second device have not established a second communication connection. In this case, in response to finding that the first communication connection is in error, the first device may establish a second communication connection with the second device.
  • the function of the second communication connection (such as the Bluetooth connection) of the second device is turned on.
  • the function of the second communication connection of the first device is turned off.
  • the first device in response to finding that the first communication connection is in error, the first device may enable the function of the second communication connection of the first device and establish a second communication connection with the second device.
  • the first device and the second device have another communication connection in addition to the first communication connection.
  • the first device in response to finding that the first communication connection is in error, the first device may determine that the other communication connection is the second communication connection. Then, the first communication connection error information is sent to the second device through the second communication connection.
  • the first prompt information may be sent before the first device sends the error information to the second device through the Bluetooth connection.
  • the first prompt information is used to indicate that the first communication connection is in error, and requests the user to confirm that error information is sent to the second device through the Bluetooth connection.
  • the manner in which the first device sends out the first prompt information may include: the first terminal displaying an interface including the first prompt information; or the first terminal playing the first prompt information through a voice prompt.
  • the first device and the second device have multiple communication connections except the first communication connection.
  • the first device in response to finding that the first communication connection is faulty, the first device may select a communication connection with a lower power consumption or a faster transmission rate from the plurality of communication connections as the second communication connection. Then, the first communication connection error information is sent to the second device through the second communication connection.
  • the first device and the second device have multiple communication connections except the first communication connection.
  • the first device in response to finding that the first communication connection is in error, the first device may display the first interface.
  • the first interface includes the selection items of the plurality of communication connections.
  • the first device uses the communication connection selected by the user as the second communication connection in response to the user's selection operation on the selection items of the plurality of communication connections. That is, when there are multiple communication connections between the first device and the second device, the user can select the second communication connection from the multiple communication connections. In this way, the interaction performance between the device and the user can be improved.
  • the first interface further includes second prompt information.
  • the second prompt information is used to indicate that the first communication connection is in error, and instruct the user to select one communication connection from at least two communication connections.
  • the first device in response to finding that the first communication connection is in error, may display a third interface.
  • the third interface includes a plurality of communication connection options.
  • the multiple communication connections include communication connections that can be established between the first device and the second device.
  • the communication connection corresponding to the selection item selected by the user is determined as the second communication connection, and a second communication connection is established with the second device.
  • the communication connection that can be established between the first device and the second device may include: a communication connection that has been established between the first device and the second device, and a communication connection that has not been established between the first device and the second device.
  • the first device and the second device have not established the foregoing communication connection
  • the first device and the second device have the conditions for establishing the communication connection.
  • the communication connections that can be established between the first device and the second device include a Bluetooth connection and a USB connection.
  • the first communication connection is a Wi-Fi connection
  • the second communication connection is a Bluetooth connection
  • the communication connections in the embodiments of the present application include, but are not limited to, Wi-Fi connections and Bluetooth connections. The embodiments of this application will not be described in detail here.
  • an embodiment of the present application provides a device.
  • the device is a first device, and the device includes a first communication unit, a detection unit, and a second communication unit.
  • the first communication unit is configured to transmit the first data with the second device through the first communication connection.
  • the detecting unit is configured to detect an error in the first communication connection during the process of transmitting the first data between the first communication unit and the second device through the first communication connection.
  • the second communication unit is configured to send error information of the first communication connection to the second device through the second communication connection.
  • the second communication connection is different from the first communication connection, and the error information is used to indicate that the first communication connection is in error.
  • the second communication unit is further configured to, after sending error information of the first communication connection to the second device through the second communication connection, communicate with the second device through the second The communication connection interacts with connection parameters of the first communication connection.
  • the establishing unit is configured to establish a first communication connection with the second device according to the connection parameters of the first communication connection obtained by the second communication unit.
  • the foregoing error information further includes first breakpoint information of the first data, and the first breakpoint information is used to indicate that in the first data, the first device and the second device The cut-off position of the data that has been correctly transmitted.
  • the second communication unit is further configured to transmit the first data through the second communication connection with the second device according to the first breakpoint information after sending the error information of the first communication connection to the second device through the second communication connection.
  • the foregoing error information further includes first breakpoint information of the first data, and the first breakpoint information is used to indicate that in the first data, the first device and the second device The cut-off position of the data that has been correctly transmitted.
  • the first communication unit is further configured to transmit the first data through the first communication connection with the second device according to the first breakpoint information after the first communication connection is established by the establishment unit.
  • the foregoing device further includes: a control unit.
  • the control unit is configured to control the second communication unit and the second device to stop transmitting the first data through the second communication connection after the establishment unit establishes the first communication connection.
  • the first communication unit is configured to transmit the first data through the first communication connection according to the second breakpoint information of the first data.
  • the second breakpoint information is used to indicate a cut-off position of data in the first data that has been correctly transmitted by the first device and the second device through the second communication connection.
  • control unit is specifically configured to: if the first data has not yet been transmitted, and the amount of the untransmitted data is greater than a preset data amount threshold, control the second The communication unit and the second device stop transmitting the first data through the second communication connection, and transmit the first data through the first communication connection according to the second breakpoint information.
  • the foregoing device further includes: a selection unit.
  • a selection unit configured to select a second one or more communication connections in response to the first communication connection being found to be in error before the second communication unit sends the first communication connection error information to the second device through the second communication connection
  • the communication connection, and the second communication connection is a communication connection with the smallest power consumption and / or the fastest transmission rate among the one or more communication connections.
  • the one or more communication connections include all communication connections established by the first device and the second device except the first communication connection.
  • the foregoing device further includes: a prompting unit.
  • a prompting unit configured to issue a first communication connection error message to the second device through the second communication connection after the selection unit selects the second communication connection from the one or more communication connections, Prompt message.
  • the first prompt information is used to indicate that the first connection is in error, and requests the user to confirm whether to send error information to the second device through the second communication connection.
  • the foregoing device further includes: a display unit.
  • a display unit configured to display a first interface in response to a failure of the first communication connection before the second communication unit sends error information of the first communication connection to the second device through the second communication connection, and the first interface includes one or more One communication connection option.
  • One or more communication connections include all communication connections established by the first device and the second device except the first communication connection.
  • the determining unit is configured to determine, as a second communication connection, a communication connection corresponding to the selection item selected by the user in response to a user's selection operation on one or more selection items of the communication connection.
  • the first interface displayed by the display unit further includes second prompt information; the second prompt information is used to indicate that the first communication connection is in error, and instruct the user to switch from at least two Select a communication connection among the communication connections.
  • the establishment unit is further configured to, before the second communication unit sends the error information of the first communication connection to the second device through the second communication connection, respond to the discovery of the first A communication connection error occurs, and a second communication connection is established with the second device.
  • the display unit is configured to display a third interface in response to finding that the first communication connection is in error.
  • the third interface includes multiple communication connection options and multiple communication.
  • the connection includes a communication connection that can be established between the first device and the second device;
  • the establishing unit is further configured to determine the communication connection corresponding to the selection item selected by the user as the second communication connection in response to the user's selection operation of the multiple communication connection selection items displayed on the display unit, and establish the second communication with the second device. connection.
  • the display unit is used for a first device to display a second interface, and the second interface includes first confirmation information, and the first confirmation information is used to indicate that the first communication connection is in error. And ask the user to confirm that the following operation 1 or operation 2 is performed; operation 1 is: re-establishing the first communication connection and transmitting the first data through the re-established first communication connection; operation 2 is: transmitting the first data through the second communication connection .
  • the second communication unit is further configured to respond to a user's selection of operation two displayed on the display unit, and the first device and the second device transmit the first data through the second communication connection according to the first breakpoint information.
  • the first communication unit is further configured to respond to a user's selection of operation one displayed on the display unit, and after the first communication connection is established by the establishing unit, the The device transmits the first data through the first communication connection according to the first breakpoint information.
  • the display unit is configured to display a fourth interface if the first data has not been successfully transmitted when the establishment unit establishes the first communication connection, and the fourth interface includes The second confirmation information is used to indicate that the first communication connection is successfully established, and requests the user to confirm whether to continue transmitting the first data through the re-established first communication connection.
  • the control unit is specifically configured to continue transmitting the first data through the re-established first communication connection in response to the user selection, and stop transmitting the first data through the second communication connection with the second device.
  • the first communication connection is a Wi-Fi connection
  • the second communication connection is a Bluetooth connection
  • an embodiment of the present application provides a device.
  • the device is a first device.
  • the device includes a processor, a memory, a first communication interface, and a second communication interface.
  • the first communication interface, the second communication interface, and the memory Coupling with the processor, the first communication interface is used to send and receive data through the first communication connection, the second communication interface is used to send and receive data through the second communication connection, and the second communication connection is different from the first communication connection.
  • the memory is used to store computer program code.
  • the computer program code includes computer instructions. When the processor executes the computer instructions, the first communication interface is used to transmit the first data through the first communication connection.
  • the processor is used to During the transmission of the first data through the first communication connection between the communication interface and the second device, the first communication connection was found to be in error; the second communication interface is used to send the first communication connection error information to the second device through the second communication connection.
  • the error information is used to indicate that the first communication connection is in error.
  • the second communication interface is further configured to, after sending the error information of the first communication connection to the second device through the second communication connection, communicate with the second device through the second The communication connection interacts with connection parameters of the first communication connection.
  • the processor is further configured to establish a first communication connection with the second device according to the connection parameters of the first communication connection.
  • the foregoing error information further includes first breakpoint information of the first data, and the first breakpoint information is used to indicate that in the first data, the first device and the second device The cut-off position of the data that has been correctly transmitted.
  • the second communication interface is further configured to transmit the first data through the second communication connection with the second device according to the first breakpoint information after sending the error information of the first communication connection to the second device through the second communication connection.
  • the foregoing error information further includes first breakpoint information of the first data, and the first breakpoint information is used to indicate that in the first data, the first device and the second device The cut-off position of the data that has been correctly transmitted.
  • the first communication interface is further configured to, after the processor and the second device establish the first communication connection according to the connection parameters of the first communication connection, transmit the first communication connection with the second device through the first communication connection according to the first breakpoint information. data.
  • the processor is further configured to control the second communication interface and the second device to stop when the first data has not been transmitted when the first communication connection is successfully established.
  • the first data is transmitted over the second communication connection.
  • the first communication interface is further configured to transmit the first data through the first communication connection according to the second breakpoint information of the first data.
  • the second breakpoint information is used to indicate a cut-off position of data in the first data that has been correctly transmitted by the first device and the second device through the second communication connection.
  • the processor is configured to control the second communication interface and the second device to stop transmitting the first data through the second communication connection if the first data has not been transmitted
  • the processor includes a processor for controlling the second communication interface and the second device to stop transmitting the first data through the second communication connection if the first data has not been transmitted and the amount of the untransmitted data is greater than a preset data amount threshold.
  • the foregoing processor is further configured to, before the second communication interface sends the first communication connection error information to the second device through the second communication connection, respond to the discovery of the first A communication connection is faulty, and a second communication connection is selected from one or more communication connections.
  • the second communication connection is a communication connection with the smallest power consumption and / or the fastest transmission rate among the one or more communication connections.
  • the one or more communication connections include all communication connections established by the first device and the second device except the first communication connection.
  • the foregoing processor is further configured to, after selecting the second communication connection from one or more communication connections, the second communication interface sends the second communication interface to the first communication connection through the second communication connection.
  • the first prompt information is sent. The first prompt information is used to indicate that the first connection is in error and requests the user to confirm whether to send the error information to the second device through the second communication connection.
  • the foregoing device further includes: a display.
  • a display configured to display a first interface in response to a first communication connection error before the second communication interface sends error information of the first communication connection to the second device through the second communication connection, and the first interface includes one or more A communication connection option.
  • One or more communication connections include all communication connections established by the first device and the second device except the first communication connection.
  • the processor is further configured to determine, as a second communication connection, a communication connection corresponding to the selection item selected by the user in response to a user's selection operation of one or more selection items of the communication connection.
  • the first interface displayed on the display further includes a second prompt information; the second prompt information is used to indicate that the first communication connection is in error, and instructs the user to select from at least two Select a communication connection among the communication connections.
  • the foregoing processor is further configured to, before the second communication interface sends the first communication connection error information to the second device through the second communication connection, respond to the discovery of the first A communication connection error occurs, and a second communication connection is established with the second device.
  • the foregoing display is further configured to display a third interface in response to a failure of the first communication connection, and the third interface includes multiple communication connection options and multiple communication.
  • the connection includes a communication connection that can be established between the first device and the second device.
  • the processor is further configured to determine the communication connection corresponding to the selection item selected by the user as the second communication connection in response to the user's selection operation of multiple communication connection selection items, and establish a second communication connection with the second device.
  • the display is used to display a second interface.
  • the second interface includes first confirmation information, and the first confirmation information is used to indicate that the first communication connection is in error and requests the user. Confirm that the following operation 1 or operation 2 is performed; operation 1 is: re-establishing the first communication connection and transmitting the first data through the re-established first communication connection; operation 2 is: transmitting the first data through the second communication connection.
  • the second communication interface is further configured to transmit the first data through a second communication connection with the second device according to the first breakpoint information in response to the user's selection of operation two.
  • the foregoing first communication interface is further configured to respond to a user's selection of operation one, and after the processor establishes the first communication connection, communicate with the second device according to the first Breakpoint information, the first data is transmitted through the first communication connection.
  • the foregoing display is configured to display a fourth interface when the processor has successfully established the first communication connection, and if the first data has not been transmitted, the fourth interface includes the first interface.
  • Second confirmation information the second confirmation information is used to indicate that the first communication connection is successfully established, and requests the user to confirm whether to continue transmitting the first data through the re-established first communication connection.
  • the processor is further configured to control the second communication interface and the second device to stop transmitting the first data through the second communication connection in response to the user selecting to continue transmitting the first data through the re-established first communication connection.
  • the first communication interface is further configured to transmit the first data through the first communication connection according to the second breakpoint information of the first data.
  • an embodiment of the present application provides a computer storage medium.
  • the computer storage medium includes computer instructions, and when the computer instructions are run on a device, the device is caused to execute the first aspect or the second aspect and its possible The transmission control method described in the design method.
  • an embodiment of the present application provides a computer program product, and when the computer program product runs on a computer, the computer is caused to perform the transmission according to the first aspect or the second aspect and a possible design manner thereof. Control Method.
  • FIG. 1 is a schematic architecture diagram of a communication system according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of a hardware structure of a mobile phone according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of establishing a Wi-Fi connection according to an embodiment of the present application
  • FIG. 4 is a first schematic flowchart of a transmission control method according to an embodiment of the present application.
  • FIG. 5 is a second flowchart of a transmission control method according to an embodiment of the present application.
  • FIG. 6 is a third flowchart of a transmission control method according to an embodiment of the present application.
  • FIG. 7 is a first schematic diagram of a frame structure example of a Bluetooth frame according to an embodiment of the present application.
  • FIG. 8 is a second schematic diagram of a frame structure example of a Bluetooth frame according to an embodiment of the present application.
  • FIG. 9 is a third example of a frame structure of a Bluetooth frame according to an embodiment of the present application.
  • FIG. 10 is a first schematic diagram of a display interface according to an embodiment of the present application.
  • FIG. 11 is a second schematic diagram of a display interface provided by an embodiment of the present application.
  • FIG. 12 is a third schematic diagram of a display interface according to an embodiment of the present application.
  • FIG. 13 is a fourth flowchart of a transmission control method according to an embodiment of the present application.
  • FIG. 14 is a fourth schematic diagram of a display interface according to an embodiment of the present application.
  • FIG. 15 is a schematic flowchart of a transmission control method according to an embodiment of the present application.
  • 16A is a schematic flowchart of a transmission control method according to an embodiment of the present application.
  • 16B is a schematic flowchart VII of a transmission control method according to an embodiment of the present application.
  • 17 is a schematic flowchart of a transmission control method according to an embodiment of the present application.
  • FIG. 18 is a fifth schematic diagram of a display interface according to an embodiment of the present application.
  • FIG. 19 is a sixth schematic diagram of a display interface according to an embodiment of the present application.
  • FIG. 20 is a first schematic structural composition diagram of a device according to an embodiment of the present application.
  • 21 is a second schematic diagram of the structure and composition of a device according to an embodiment of the present application.
  • FIG. 22 is a third structural schematic diagram of a device according to an embodiment of the present application.
  • first and second are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise stated, the meaning of "a plurality" is two or more.
  • An embodiment of the present application provides a transmission control method, which can be applied to a device.
  • the method may be applied to a process in which a device establishes a first communication connection and performs data transmission through the first communication connection.
  • the device can feed back error information to the opposite device through the second communication connection, so that the opposite device can make corresponding processing according to the error information. In this way, the device can detect Wi-Fi connection errors in time and perform fault tolerance processing in a timely manner.
  • the first communication connection in the embodiment of the present application may include Wi-Fi connection, Bluetooth connection, Universal Serial Bus (USB) connection, Ultra Wideband (UWB) connection, ZigBee (ZigBee Technology) Any of a connection and a near field communication (NFC) connection.
  • the second communication connection may include any one of a Bluetooth connection, a USB connection, a UWB connection, a ZigBee connection, and an NFC connection.
  • the first communication connection in the embodiment of the present application is different from the second communication connection.
  • the second communication connection may be any one of a Bluetooth connection, a USB connection, a UWB connection, a ZigBee connection, and an NFC connection.
  • the first communication connection is a Bluetooth connection
  • the second communication connection may be any one of a USB connection, a UWB connection, a ZigBee connection, and an NFC connection.
  • the Bluetooth connection in the embodiment of the present application may be a conventional Bluetooth connection or a Bluetooth Low Energy (BLE) connection.
  • FIG. 1 is a schematic structural diagram of a communication system to which a transmission control method according to an embodiment of the present application is applied.
  • the communication system 100 may include a wireless access point (AP) 101, a station (STA) 102, and a STA 103.
  • STA 102 and STA 103 can establish Wi-Fi connection with AP 101. That is, STA 102 and STA 103 can access the Wi-Fi network provided by AP 101.
  • the AP 101 in the embodiment of the present application may be a wireless router.
  • AP 101 can be a mobile phone, tablet, desktop, laptop, handheld computer, laptop, Ultra-mobile Personal Computer (UMPC), netbook, cellular phone, and Personal Digital Assistant (Personal Digital Assistant (PDA), wearable electronic devices (such as smart watches), tablet computers, augmented reality (AR) ⁇ virtual reality (VR) devices, and in-car computers can be used as wireless access points (such as Wi- Fi hotspot), a device that provides a wireless network for other devices, the embodiment of this application does not specifically limit the specific form of the AP 101.
  • PDA Personal Digital Assistant
  • wearable electronic devices such as smart watches
  • AR augmented reality
  • VR virtual reality
  • in-car computers can be used as wireless access points (such as Wi- Fi hotspot)
  • Wi- Fi hotspot such as Wi- Fi hotspot
  • STA 102 and STA 103 in the embodiments of the present application may be mobile phones, tablet computers, desktops, laptops, handheld computers, laptops, UMPCs, netbooks, cellular phones, and PDAs, wearable electronic devices (such as smart watches) , Tablet computers, AR ⁇ VR devices, and on-board computers, the embodiments of this application do not specifically limit the specific forms of STA 102 and STA 103.
  • the above-mentioned AP 101, STA 102, or STA 103 is a mobile phone 200 as an example, and the device provided in the embodiment of the present application is described.
  • the mobile phone 200 shown in FIG. 2 is only an example, and does not constitute a limitation on the mobile phone 200.
  • the mobile phone 200 may have more or fewer components than those shown in the figure. You can combine two or more parts, or you can have different part configurations.
  • the various components shown in FIG. 2 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.
  • the mobile phone 200 may specifically include: a processor 201, a radio frequency (RF) circuit 202, a memory 203, a touch screen 204, a Bluetooth device 205, one or more sensors 206, a Wi-Fi device 207, and positioning The device 208, audio circuit 209, peripheral interface 120, power supply system 211, fingerprint reader 212, and other components. These components can communicate via one or more communication buses or signal lines (not shown in FIG. 2).
  • RF radio frequency
  • the processor 201 is a control center of the mobile phone 200, and uses various interfaces and lines to connect various parts of the mobile phone 200, and runs or executes an application program (Application, App) stored in the memory 203, and calls data stored in the memory 203. And instructions to perform various functions of the mobile phone 200 and process data.
  • the processor 201 may include one or more processing units; the processor 201 may further integrate an application processor and a modem processor.
  • the application processor mainly deals with the operating system, user interface, and application programs.
  • the modem processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 201.
  • the processor 201 may be a Kirin 960 chip manufactured by Huawei Technologies Co., Ltd.
  • the radio frequency circuit 202 may be used for receiving and transmitting wireless signals during information transmission and reception or during a call. Specifically, the radio frequency circuit 202 may receive the downlink data of the base station and then process the downlink data to the processor 201. In addition, uplink-related data is transmitted to the base station. Generally, the radio frequency circuit 202 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency circuit 202 can also communicate with other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to a global mobile communication system, a general packet wireless service, code division multiple access, broadband code division multiple access, long-term evolution, email, short message service, and the like.
  • the memory 203 is used to store application programs and data, and the processor 201 executes various functions and data processing of the mobile phone 200 by running the application programs and data stored in the memory 203.
  • the memory 203 mainly includes a program storage area and a data storage area.
  • the storage program area may store an operating system and application programs required for at least one function (such as a sound playback function and an image playback function).
  • the storage data area can store data (such as audio data, phone book, etc.) created when the mobile phone 200 is used.
  • the memory 203 may include a high-speed random access memory, and may also include a non-volatile memory, such as a magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the memory 203 can store various operating systems, such as those developed by Apple Inc. Operating system, developed by Google Operating system, etc.
  • the touch screen 204 may include a touch-sensitive surface 204-1 and a display 204-2.
  • the touch-sensitive surface 204-1 (such as a touch panel) can capture touch events on or near the user of the mobile phone 200 (for example, the user uses a finger, a stylus, or any suitable object on the touch-sensitive surface 204-1). Or operations near the touch-sensitive surface 204-1), and send the collected touch information to other devices such as the processor 201.
  • the touch event of the user near the touch-sensitive surface 204-1 may be referred to as a floating touch. Hovering touch can mean that the user does not need to directly touch the touchpad in order to select, move, or drag an object (such as an icon), but only needs the user to be near the terminal in order to perform the desired function.
  • the touch-sensitive surface 204-1 capable of floating touch can be implemented using a capacitive type, an infrared light sensor, and an ultrasonic wave.
  • the touch-sensitive surface 204-1 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and then When sent to the processor 201, the touch controller may also receive and execute instructions sent by the processor 201.
  • the display also referred to as a display screen
  • the display 204-2 may be used to display information input by the user or information provided to the user and various menus of the mobile phone 200.
  • the display 204-2 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the touch-sensitive surface 204-1 may be overlaid on the display 204-2. When the touch-sensitive surface 204-1 detects a touch event on or near it, it is transmitted to the processor 201 to determine the type of the touch event.
  • the touch-sensitive surface 204-1 and the display screen 204-2 are implemented as two independent components to implement the input and output functions of the mobile phone 200, in some embodiments, the touch-sensitive surface 204- 1 Integrated with the display 204-2 to implement the input and output functions of the mobile phone 200. It can be understood that the touch screen 204 is formed by stacking multiple layers of materials. Only the touch-sensitive surface (layer) and the display screen (layer) are shown in the embodiments of the present application, and other layers are not described in the embodiments of the present application.
  • the touch-sensitive surface 204-1 may cover the display 204-2, and the size of the touch-sensitive surface 204-1 is larger than the size of the display screen 204-2, so that the display screen 204- 2 are all covered under the touch-sensitive surface 204-1, or the touch-sensitive surface 204-1 may be configured on the front of the mobile phone 200 in the form of a comprehensive board, that is, the user's touch on the front of the mobile phone 200 can be perceived by the mobile phone 200, In this way, a full touch experience on the front of the mobile phone 200 can be realized.
  • the touch-sensitive surface 204-1 is configured on the front of the mobile phone 200 in the form of a full board
  • the display 204-2 may also be configured on the front of the mobile phone 200 in the form of a full board, so that it is on the front of the mobile phone 200
  • a frameless structure can be realized.
  • the mobile phone 200 may further include a Bluetooth device 205 for implementing data exchange between the mobile phone 200 and other short-range terminals (such as a mobile phone, a smart watch, etc.).
  • the Bluetooth device in the embodiment of the present application may be an integrated circuit or a Bluetooth chip.
  • the mobile phone 200 may further include at least one sensor 206, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor.
  • the ambient light sensor may adjust the brightness of the display of the touch screen 204 according to the brightness of the ambient light.
  • the proximity sensor may turn off the power of the display when the mobile phone 200 is moved to the ear.
  • an accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary.
  • the mobile phone 200 may further have a fingerprint recognition function.
  • the fingerprint reader 212 can be arranged on the back of the mobile phone 200 (for example, under the rear camera), or the fingerprint reader 212 can be arranged on the front of the phone 200 (for example, under the touch screen 204 and then on the home screen key of the phone 200) .
  • the fingerprint recognition function can also be implemented by configuring the fingerprint reader 212 in the touch screen 204, that is, the fingerprint reader 212 can be integrated with the touch screen 204 to implement the fingerprint recognition function of the mobile phone 200.
  • the fingerprint reader 212 may be configured in the touch screen 204, may be a part of the touch screen 204, or may be configured in the touch screen 204 in other ways.
  • the fingerprint reader 212 can also be implemented as a full-board fingerprint reader. Therefore, the touch screen 204 can be regarded as a panel where fingerprint collection can be performed at any position.
  • the fingerprint identifier 212 can process the collected fingerprints. For example, the fingerprint identifier 212 may perform processing such as fingerprint verification on the collected fingerprint. The fingerprint identifier 212 may also send the processing result of the fingerprint verification (such as whether the fingerprint verification is passed) to the processor 201 so that the processor 201 responds according to the received result of the fingerprint verification. In other embodiments, the fingerprint identifier 212 may also send the collected fingerprint to the processor 201 so that the processor 201 processes the fingerprint (for example, fingerprint verification, etc.).
  • the main component of the fingerprint reader 212 in the embodiment of the present application is a fingerprint sensor.
  • the fingerprint sensor may use any type of sensing technology, including, but not limited to, optical, capacitive, piezoelectric, or ultrasonic sensing technologies.
  • Wi-Fi device 207 is used to provide mobile phone 200 with network access that complies with Wi-Fi related standard protocols. Mobile phone 200 can access Wi-Fi access points through Wi-Fi device 207 to help users send and receive email, Browse the web and access streaming media, etc., it provides users with wireless broadband Internet access. In some other embodiments, the Wi-Fi device 207 can also be used as a Wi-Fi wireless access point, and can provide Wi-Fi network access for other terminals.
  • the positioning device 208 is configured to provide a geographic location for the mobile phone 200. It can be understood that the positioning device 208 may specifically be a receiver of a positioning system such as a Global Positioning System (GPS) or a Beidou satellite navigation system. After receiving the geographical position sent by the positioning system, the positioning device 208 sends the information to the processor 201 for processing, or sends the information to the memory 203 for storage. In other embodiments, the positioning device 208 may be a receiver of an assisted global positioning system (AGPS). AGPS is a GPS positioning operation method with certain assistance. It can use the signal from the base station and the GPS satellite signal to make the mobile phone 200 locate faster.
  • AGPS assisted global positioning system
  • the positioning device 208 can be used with Communication is assisted by a positioning server (for example, the positioning server of the mobile phone 200) to obtain positioning assistance.
  • the AGPS system assists the positioning device 208 to complete ranging and positioning services by serving as an auxiliary server.
  • the auxiliary positioning server communicates with the terminal such as the positioning device 208 (ie, the GPS receiver) of the mobile phone 200 through a wireless communication network to provide positioning assist.
  • the audio circuit 209, the speaker 213, and the microphone 214 may provide an audio interface between the user and the mobile phone 200.
  • the audio circuit 209 can transmit the received electrical data converted electrical signal to the speaker 214, and the speaker 213 converts it into a sound signal for output.
  • the microphone 214 converts the collected sound signal into an electrical signal, and the audio circuit 209 After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 202 for sending to another mobile phone, or the audio data is output to the memory 203 for further processing.
  • the peripheral interface 220 is used to provide various interfaces for external input / output devices (such as a keyboard, a mouse, an external display, an external memory, a user identification module card, etc.). For example, it is connected to a mouse through a universal serial bus interface, and connected to a subscriber identity module (SIM) card provided by a telecommunications operator through a metal contact on the card slot of the subscriber identity module.
  • SIM subscriber identity module
  • the peripheral interface 120 may be used to couple the above-mentioned external input / output peripherals to the processor 201 and the memory 203.
  • the mobile phone 200 may further include a power supply device 211 (such as a battery and a power management chip) for supplying power to various components.
  • the battery may be logically connected to the processor 201 through the power management chip, so as to manage charging, discharging, and power consumption management through the power supply device 211. And other functions.
  • the mobile phone 200 may further include a camera (a front camera and / or a rear camera), a flash, a micro-projection device, a near field communication (NFC) device, and the like, and details are not described herein.
  • a camera a front camera and / or a rear camera
  • a flash a flash
  • a micro-projection device a micro-projection device
  • NFC near field communication
  • the method of the embodiment of the present application may be applied to a process in which a STA 102 or a STA 103 and an AP 101 (that is, a Wi-Fi hotspot) establish a Wi-Fi connection.
  • a method for establishing a Wi-Fi connection between the STA 102 and the AP 101 is used as an example to describe the method in the embodiment of the present application:
  • the process of establishing a Wi-Fi connection between the STA 102 and the AP 101 may specifically include the scanning processes S301-S302, the authentication processes S303-S304, and the association processes S305-S306 shown in FIG. 3:
  • S301 STA 102 sends a Probe Request frame to AP 101.
  • STA 102 can use Scanning to search for the AP, that is, the STA searches for the SSID transmitted by the AP.
  • the STA searches for the SSID transmitted by the AP.
  • the STA can search on every available channel.
  • an Active Scanning search method is used as an example.
  • the STA can send a Probe Request frame on each available channel (such as 13 channels) in turn.
  • the Probe Request frame carries the SSID of the AP.
  • the Probe Request frame is used to search for an AP with the above SSID.
  • the STA can discover the AP by listening to the beacon frames sent by the AP periodically.
  • the Beacon frame can provide information about the AP and the Basic Service Set (BSS) where the AP is located.
  • BSS Basic Service Set
  • the AP 101 returns a Probe Response frame to the STA 102.
  • AP 101 can receive a Probe Request frame with an SSID sent by STA 102.
  • the AP responds to the Probe Request frame and returns a Probe frame to the STA.
  • the STA 102 sends an Authentication Request frame to the AP 101.
  • the STA 102 After the STA 102 receives the Probe Response frame sent by the AP 101, it can send an Authentication Request frame to the AP 101 to perform the identity authentication of the STA 102.
  • the AP 101 returns an Authentication Response frame to the STA 102.
  • AP 101 After AP 101 receives the Authentication Request frame, it can perform identity authentication on STA 102. After the identity authentication is passed, an Authentication Response frame is returned to the second device 1002 to indicate that the identity authentication is passed.
  • the STA 102 sends an Association Request frame to the AP 101.
  • STA 102 can initiate a formal connection request to AP 101, that is, an Association Request frame, requesting access to the Wi-Fi network provided by AP 101.
  • the AP 101 returns an Association Response (Association Response) frame to the STA 102.
  • AP 101 After AP 101 receives the Association Request frame, it can respond to the Association Request frame and send an Association frame to the STA 102. At this point, the Wi-Fi connection is complete, and STA 102 can perform data transmission through the Wi-Fi network provided by AP 101.
  • a Wi-Fi connection error may occur due to any of the foregoing scanning process, authentication process, or association process, resulting in Wi-Fi connection failure.
  • the embodiments of the present application provide a transmission control method, which can timely detect errors in the Wi-Fi connection and perform fault tolerance processing.
  • the transmission control method is applied to a process in which a first device establishes a first communication connection with a second device.
  • the first device in this embodiment of the present application may be the STA 102 described above, and the second device is an AP 101.
  • the first device may be the above-mentioned AP 101, and the second device may be the STA 102.
  • the transmission control method may include S401-S404:
  • the first device is STA 102
  • the second device is AP 101
  • the first communication connection is a Wi-Fi connection.
  • the STA 102 determines that the Wi-Fi connection error occurs: After the STA 102 executes S301, the Probe frame that is not received by the AP 101 within the first preset time is determined to determine that the Wi-Fi connection is in error. Alternatively, after the STA 102 executes S303, the Authentication Response frame sent by the AP 101 is not received within the first preset time, and it is determined that the Wi-Fi connection is in error. Or, after the STA 102 executes S305, the Association Response Frame sent by the AP 101 is not received within the first preset time, and it is determined that the Wi-Fi connection is in error.
  • the foregoing Wi-Fi connection error may be caused by an AP 101 failure.
  • the AP 101 fault can at least include the situation (1), the situation (2) and the situation (3).
  • Case (1) The Wi-Fi device of AP 101 is faulty and cannot send or receive Wi-Fi frames.
  • the Wi-Fi device of the AP 101 fails, it cannot receive the Probe Request frame, the Authentication Request frame, or the Association Request frame sent by the STA 102. Therefore, it is also impossible to send a Probe frame, an Authentication frame, or an Association frame to the STA 102. Or, if the Wi-Fi device of the AP 101 is faulty, it can only receive a Probe Request frame, an Authentication Request frame, or an Association Request frame sent by the STA 102, but cannot send a ProbeResponse frame, an Authentication Response Frame, or an AssociationResponse frame to the STA 102.
  • Case (2) The network of AP 101 is faulty, and Wi-Fi network cannot be provided.
  • the network failure of the AP 101 may refer to the optical network failure of the wireless router.
  • the network failure of the AP 101 may refer to the mobile network of the mobile phone (such as the Fourth Generation of Mobile Phone Mobile Communication Standards, 4G) network) failure.
  • Case (3) Other components of the AP 101 are faulty and cannot assist the Wi-Fi device to send and receive Wi-Fi frames.
  • other components of the AP 101 fail, which cannot assist the Wi-Fi device to send and receive Wi-Fi frames, and also cause the Wi-Fi device to send and receive Wi-Fi frames.
  • other components of the AP 101 may include a CPU of the AP 101.
  • AP 101 failure may also include power failure of AP 101.
  • the AP 101 When the AP 101 is powered off, the AP 101 cannot send or receive Wi-Fi frames.
  • the Wi-Fi connection error may also be caused by the STA 102 failure.
  • the STA 102 failure can at least include the situation (4):
  • the Wi-Fi device of the STA 102 fails. At this time, the STA 102 cannot receive the Probe frame, the Authentication frame, or the Association frame that is sent by the AP 101.
  • the STA 102 may determine that the Wi-Fi connection is in error may include: After the STA 102 receives the Probe frame, it cannot perform S303 to send an Authentication Request frame to the AP 101 to determine that the Wi-Fi connection is in error. Alternatively, after the STA 102 receives the Authentication Response frame, it cannot execute S305 to send the Association Request frame to the AP 101 to determine that the Wi-Fi connection is in error.
  • the above-mentioned Wi-Fi connection error may be caused by a failure of the Wi-Fi device of the STA 102.
  • the first device is an AP 101
  • the second device is an STA 102
  • the first communication connection is a Wi-Fi connection.
  • the AP 101 can determine that the Wi-Fi connection is in error.
  • the AP 101 determines that the Wi-Fi connection error occurs: After the AP 101 executes S302 to send a Probe frame to the STA 102, the AP does not receive the Authentication Request frame sent by the STA 102 within the second preset time, and determines that the Wi-Fi connection error . After AP 101 executes S304 to send an Authentication and Response frame to STA 102, it does not receive the Association Request frame sent by STA 102 within the second preset time, and determines that the Wi-Fi connection is in error.
  • the foregoing Wi-Fi connection error may be caused by an AP 101 failure.
  • the AP 101 fault can at least include the situation (5), the situation (6) and the situation (7).
  • Case (5) The Wi-Fi device of the AP 101 is faulty and cannot send or receive Wi-Fi frames.
  • Case (6) The network of AP 101 is faulty, and Wi-Fi network cannot be provided. Among them, the detailed description of the situation (6) can refer to the situation (2), which will not be repeated here in the embodiment of the present application.
  • Case (7) Other components of the AP 101 are faulty and cannot assist the Wi-Fi device to send and receive Wi-Fi frames. Among them, the detailed description of the situation (7) can refer to the situation (3), which will not be repeated here in the embodiment of the present application.
  • the Wi-Fi connection error can also be caused by the STA 102 failure.
  • the STA 102 side failure can at least include the situation (8):
  • the STA 102 cannot receive a Probe frame, an Authentication frame, or an Association frame, or an Authentication Request frame or an Association Request frame.
  • the first communication connection is a Wi-Fi connection.
  • the foregoing Wi-Fi connection error may be due to the fact that the first device or the second device does not support 5G Wi-Fi, and the 5G Wi-Fi connection cannot be established.
  • the first device sends error information of the first communication connection to the second device through the second communication connection.
  • the first device may send the Wi-Fi connection error information to the second device.
  • the error information is used to indicate that the Wi-Fi connection between the first device and the second device is incorrect.
  • the Bluetooth of the first device and the second device are both on. And, the first device establishes a Bluetooth connection with the second device. That is, before S401, the first device and the second device establish a second communication connection. In this way, when the first device finds that the Wi-Fi connection is wrong, it can directly send an error message to the second device through the Bluetooth connection of the first device and the second device.
  • a device that has established a Bluetooth connection with the first device includes, but is not limited to, a second device.
  • the first device needs to obtain the identity of the second device.
  • the first device selects the second device from the devices that have established a Bluetooth connection with the first device according to the identity of the second device.
  • the identifier of the second device may be used to uniquely identify the second device.
  • the identifier of the second device may be a Media Access Control (Media Access Control, MAC) address of the second device.
  • MAC Media Access Control
  • the first device discovers that the Wi-Fi connection between the first device and the second device is wrong, it can obtain the MAC address (such as MAC address-1) of the second device.
  • the first device may find a device with a MAC address of MAC address-1 among the devices that have established a Bluetooth connection with the first device.
  • the first device may send an error message to the found device via the Bluetooth connection.
  • the function of the second communication connection (such as the Bluetooth connection) of the second device is turned on.
  • the function of the second communication connection of the first device is in a closed state. As shown in FIG. 5, after S401 and before S402, the method in this embodiment of the present application further includes S501:
  • the first device In response to finding that the first communication connection is in error, the first device enables the function of the second communication connection of the first device, and establishes a second communication connection with the second device.
  • the first communication connection is a Wi-Fi connection and the second communication connection is a Bluetooth connection.
  • Bluetooth of the second device is on, that is, Bluetooth of the second device is turned on.
  • the Bluetooth of the first device may be in an off state.
  • the first device may turn on the Bluetooth of the first device and establish a Bluetooth connection with the second device.
  • the first device finds that the first communication connection is in error, it starts the function of the second communication connection of the first device and establishes a second communication connection with the second device. In this way, the power consumption of the first device can be reduced.
  • the function of the second communication connection of the second device is turned on. Before executing S402, the function of the second communication connection of the first device is on. However, the first device and the second device have not established a second communication connection. As shown in FIG. 6, after S401 and before S402, the method in this embodiment of the present application further includes S601:
  • the first device In response to finding that the first communication connection is in error, the first device establishes a second communication connection with the second device.
  • the first communication connection is a Wi-Fi connection and the second communication connection is a Bluetooth connection.
  • the Bluetooth of the first device may be on. However, the Bluetooth connection between the first device and the second device is not established. In response to discovering a Wi-Fi connection, the first device may establish a Bluetooth connection with the second device.
  • the first device before the first device executes S501 or S601, before establishing a second communication connection with the second device, multiple Bluetooth devices can be searched.
  • the first device needs to obtain the identifier of the second device, and then, according to the identifier of the second device, find the Bluetooth device corresponding to the identifier from the multiple Bluetooth devices.
  • the first device establishes a Bluetooth connection with the found Bluetooth device, and sends an error message to the found Bluetooth device.
  • the identifier of the second device may be used to uniquely identify the second device.
  • the identity of the second device may be a MAC address of the second device.
  • the first device can obtain the MAC address (eg, MAC address-1) of the second device. Then, the first device may find a device with a MAC address of MAC address-1 among the searched Bluetooth devices.
  • the first device can establish a Bluetooth connection with the found Bluetooth device, and the found Bluetooth device sends an error message.
  • the first device may send a Bluetooth frame carrying the error information to the second device through the Bluetooth connection between the first device and the second device based on the Bluetooth protocol.
  • the first device may send a Bluetooth frame carrying the foregoing error information to the second device based on a Bluetooth Serial Port (Serial Port Profile, SPP) protocol.
  • SPP Bluetooth Serial Port Profile
  • FIG. 7 is a schematic diagram illustrating an example of a frame structure of an SPP Bluetooth frame (ie, a Bluetooth frame sent based on the SPP protocol) according to an embodiment of the present application.
  • the SPP Bluetooth frame may include: Logical Link Control and Adaptation Protocol (L2CAP) 71, RFCOMM 72, and Data field 73.
  • L2CAP Logical Link Control and Adaptation Protocol
  • the above error information may be carried in the Data field 73 of the SPP Bluetooth frame.
  • the above error information may be carried in L2CAP 71 of the SPP Bluetooth frame.
  • the L2CAP 71 includes an L2CAP header 711 and a payload field 712.
  • the error information may be carried in the payload field 712 of the L2CAP 71.
  • L2CAP 81 may include an L2CAP header 811 and a payload field 812.
  • the above error information may be carried in the L2CAP header 811 or the payload field 812.
  • the above-mentioned Bluetooth frame may be a BLE Bluetooth frame based on a Generic Attribute Configuration Protocol (GATT).
  • GATT Generic Attribute Configuration Protocol
  • the BLE Bluetooth frame may include: L2CAP 91 and Data field 92.
  • the above error information may be carried in the Data field 92 of the BLE Bluetooth frame.
  • the above error information may be carried in L2CAP 91 of the BLE Bluetooth frame.
  • the L2CAP 91 may include: an L2CAP header 911, an attribute protocol (ATT) field 912, and a GATT field 913.
  • the GATT field 913 may include: other fields 9131 and a payload field 9132.
  • the above error information may be carried in the L2CAP header 911 or the payload field 9132.
  • the error information includes the error code of the Wi-Fi connection.
  • the error code is used to indicate the cause of the Wi-Fi connection error between the first device and the second device. For example, when the error code is 00, it is used to indicate that the Wi-Fi device of the AP 101 is faulty. When the error code is 01, it is used to indicate that the Wi-Fi device of the STA 102 is faulty. When the error code is 10, it is used to indicate the network failure of the AP 101. When the error code is 11, it is used to indicate that AP 101 or STA 102 does not support 5G Wi-Fi.
  • the error codes in the embodiments of the present application include, but are not limited to, the foregoing “00”, “01”, “10”, and “11”. Other forms of error codes are not repeated here in the examples of this application.
  • the second communication connection in the embodiment of the present application may be a communication connection that satisfies a preset condition in addition to the first communication connection among the possible communication connections between the first device and the second device.
  • the first device After the first device discovers that the first communication connection is in error, it may select a communication connection that meets a preset condition in addition to the first communication connection from the possible communication connections between the first device and the second device.
  • the method for the first device to select the second communication connection may include: when there is another communication connection other than the first communication connection between the first device and the second device, the first device determines the other communication connection.
  • the communication connection is a second communication connection.
  • the first communication connection is a Wi-Fi connection.
  • a Wi-Fi connection not only a Wi-Fi connection, but also a Bluetooth connection is established between the first device and the second device. Then when the first device finds that the Wi-Fi connection is in error, the Bluetooth connection is the second communication connection.
  • the first prompt information may be sent before the first device sends the error information to the second device through the Bluetooth connection.
  • the first prompt information is used to indicate that the first communication connection is in error, and requests the user to confirm that error information is sent to the second device through the Bluetooth connection.
  • the manner in which the first device sends out the first prompt information may include: the first terminal displaying an interface including the first prompt information; or the first terminal playing the first prompt information through a voice prompt.
  • the mobile phone 200 is a first device and the mobile phone 300 is a second device.
  • the mobile phone 200 is STA 102, and the mobile phone 300 is AP 101.
  • the mobile phone 200 finds that the Wi-Fi connection is in error.
  • the mobile phone 200 may display the first prompt information 1001 shown in FIG. 10.
  • the first prompt message 1001 may be "Failure to establish a Wi-Fi connection with the mobile phone 300. Will the mobile phone 300 be notified of an error message via Bluetooth?".
  • the mobile phone 200 may send an error message to the mobile phone 300 via Bluetooth in response to a user's selection operation of the “Yes” button shown in FIG. 10.
  • the method for the first device to select the second communication connection may include: when the first device and the second device have one or more communication connections other than the first communication connection, the first device may A communication connection with a smaller power consumption or a faster transmission rate is selected from the one or more communication connections as the second communication connection.
  • a communication connection with low power consumption refers to a communication connection with the lowest power consumption when multiple communication connections transmit the same data.
  • the first communication connection is a Wi-Fi connection.
  • a Wi-Fi connection is established between the first device and the second device, but a Bluetooth connection and a ZigBee connection are also established. It is assumed that the power consumption of transmitting data by Bluetooth connection is less than the power consumption of transmitting data by ZigBee connection. Then when the first device finds that the Wi-Fi connection is wrong, it can determine that the Bluetooth connection is the second communication connection.
  • a communication connection with a higher transmission rate refers to a communication connection with the fastest transmission rate when multiple communication connections transmit the same data.
  • the first communication connection is a Wi-Fi connection.
  • a Wi-Fi connection is established between the first device and the second device, but a Bluetooth connection and a USB connection are also established. It is assumed that the USB connection is transmitting data at a higher rate than the Bluetooth connection. Then when the first device finds that the Wi-Fi connection is wrong, it can determine that the USB connection is the second communication connection.
  • the method for the first device to select the second communication connection may include: when the first device and the second device have multiple communication connections other than the first communication connection, the first device displays the first communication connection. interface.
  • the first interface includes the selection items of the plurality of communication connections.
  • the first device uses the communication connection selected by the user as the second communication connection in response to the user's selection operation on the selection items of the plurality of communication connections.
  • the mobile phone 200 is a first device and the mobile phone 300 is a second device.
  • the mobile phone 200 is STA 102
  • the mobile phone 300 is AP 101.
  • the mobile phone 200 and the mobile phone 300 establish a Bluetooth connection and a USB connection.
  • the mobile phone 200 finds that the Wi-Fi connection is in error.
  • the mobile phone 200 may display a first interface 1101 shown in FIG. 11.
  • the first interface 1101 includes a Bluetooth connection option 1102 and a USB connection option 1103.
  • the mobile phone 200 may select a Bluetooth connection as the second communication connection in response to a user's selection operation (such as a click operation) on the Bluetooth connection selection item 1102.
  • the mobile phone 200 may send an error message to the mobile phone 300 through a Bluetooth connection.
  • the first interface 1101 may further include second prompt information 1104.
  • the second prompt message 1104 is used to indicate that the Wi-Fi connection is in error, and instruct the user to select a communication connection from the communication connections to be selected to send an error message to the mobile phone 300.
  • the second prompt message 1104 may be "Failure to establish a Wi-Fi connection with the mobile phone 300, please select a communication connection to notify the mobile phone 300 of error information!.
  • the mobile phone 200 in response to the user's selection operation of the "Cancel" button shown in FIG. 11, the mobile phone 200 may not need to send an error message to the mobile phone 300 through any communication connection. And, the mobile phone 300 may stop establishing a Wi-Fi connection with the mobile phone 300.
  • the method for the first device to select the second communication connection may include: when the first device has only the first communication connection with the second device, the first device may request to establish the second communication with the second device. connection.
  • the second communication connection may be any communication connection among possible communication connections between the first device and the second device.
  • the second communication connection may be a communication connection with a smaller power consumption or a faster transmission rate among the possible communication connections between the first device and the second device.
  • the method for the first device to select the second communication connection may include: when the first device and the second device only have the first communication connection, the first device may request to establish a user-selected connection with the second device. Communication connection (ie second communication connection). Specifically, the first device may display a third interface in response to finding that the first communication connection is in error. The third interface includes options for a possible communication connection between the first device and the second device. The first device may request the second device to establish a second communication connection corresponding to the selection item selected by the user in response to the user's selection operation of the selection item of the communication connection.
  • the mobile phone 200 may display a third interface 1201 shown in FIG. 12.
  • the third interface 1201 includes a Bluetooth connection option 1202, a USB connection option 1203, and a ZigBee connection option 1204.
  • the mobile phone 200 may select a Bluetooth connection as the second communication connection in response to a user's selection operation (such as a click operation) on the Bluetooth connection selection item 1202.
  • the mobile phone 200 may request to establish a Bluetooth connection with the mobile phone 300, and send an error message to the mobile phone 300 through the Bluetooth connection.
  • the third interface 1201 may further include third prompt information 1205.
  • the third prompt message 1205 is used to indicate that the Wi-Fi connection is in error, and instruct the user to select a communication connection from the communication connections to be selected to establish a corresponding communication connection with the mobile phone 300, and send an error to the mobile phone 300 through the communication connection.
  • the third prompt message 1205 may be "Failed to establish a Wi-Fi connection with the mobile phone 300, please select a communication connection so that the mobile phone 200 establishes the communication connection with the mobile phone 300, and notify the mobile phone 300 of the error information through the communication connection! .
  • the second device receives error information of the first communication connection sent by the first device through the second communication connection.
  • the second device may receive the error information of the Wi-Fi connection sent by the first device through the Bluetooth connection.
  • the first device and the second device may perform fault tolerance processing on the first communication connection according to the foregoing error information. That is, after S403, the method in the embodiment of the present application may further include S404:
  • the first device and the second device perform fault tolerance processing on the first communication connection according to the error information.
  • S404 shown in FIG. 4 may include S1301-S1302:
  • the first device and the second device use a second communication connection to exchange connection parameters of the first communication connection.
  • the first device and the second device establish a first communication connection according to the connection parameters of the first communication connection transmitted through the second communication connection.
  • the second device may actively request to re-establish a first communication connection with the first device.
  • the second device and the first device may use a second communication connection to exchange connection parameters of the first communication connection.
  • the first device is an AP 101 and the second device is an STA 102.
  • the first communication connection is a Wi-Fi connection and the Bluetooth connection of the second communication connection.
  • STA 102 After STA 102 receives the error message sent by AP 101 through Bluetooth connection, it can interact with the AP 101 through Wi-Fi connection parameters via Bluetooth connection.
  • the connection parameters of the Wi-Fi connection may include: Wi-Fi capability of STA 102 (for example, STA 102 supports Wi-Fi 5G and Wi-Fi 2.4G, or STA 102 Wi-Fi 2.4G, etc. ), The transmission rate supported by STA 102, the service set identifier (SSID) of the AP 101, and the Wi-Fi key.
  • Wi-Fi capability of STA 102 for example, STA 102 supports Wi-Fi 5G and Wi-Fi 2.4G, or STA 102 Wi-Fi 2.4G, etc.
  • the transmission rate supported by STA 102 for example, STA 102 supports Wi-Fi 5G and Wi-Fi 2.4G, or STA 102 Wi-Fi 2.4G, etc.
  • the transmission rate supported by STA 102 for example, STA 102 supports Wi-Fi 5G and Wi-Fi 2.4G, or STA 102 Wi-Fi 2.4G, etc.
  • the transmission rate supported by STA 102 for example, STA 102 supports Wi-Fi 5G
  • the first communication connection is a Wi-Fi connection and the Bluetooth connection of the second communication connection is taken as an example.
  • the first device and the second device may exchange connection parameters of the Wi-Fi connection through the Bluetooth connection between the first device and the second device based on the Bluetooth protocol.
  • the specific method for the first device and the second device to interact with the connection parameters of the Wi-Fi connection through the Bluetooth connection based on the Bluetooth protocol can refer to the first device and the second device based on the Bluetooth protocol to transmit the Wi-Fi connection through the Bluetooth connection.
  • the method of error information is not described in the embodiment of the present application.
  • the second device may display a fifth interface, and the fifth interface includes third confirmation information.
  • the third confirmation information is used to instruct the second device to receive error information of the first communication connection through the second communication connection, and request the user to confirm whether to re-establish the first communication connection through the second communication connection.
  • the mobile phone 300 is a second device.
  • the mobile phone 300 may display the fifth interface 1401 shown in FIG. 14 after receiving the error information sent by the mobile phone 200 through the Bluetooth connection.
  • the fifth interface 1401 includes third confirmation information 1402.
  • the third confirmation information 1402 may be "The mobile phone 200 indicates that the Wi-Fi connection failed through the Bluetooth connection.
  • the mobile phone 300 receives a user's click operation (such as a click operation) on the "Yes" button in the fifth interface 1401.
  • a user's click operation such as a click operation
  • the mobile phone 300 can interact with the mobile phone 200 via Wi-Fi connection connection parameters through the Bluetooth connection, and re-establish the Wi-Fi connection.
  • the first device in response to finding that the first communication connection is faulty, after the first device sends error information to the second device through the second communication connection, it may also actively request to re-establish the first communication connection with the first device.
  • the first device is an AP 101 and the second device is an STA 102.
  • the first communication connection is a Wi-Fi connection and the Bluetooth connection of the second communication connection.
  • AP 101 sends error information to STA 102, it can also exchange Wi-Fi connection connection parameters with STA 102 via Bluetooth connection. For example, as shown in FIG.
  • the mobile phone 200 may also interact with the mobile phone 300 via Wi-Fi connection connection parameters and re-establish a Wi-Fi connection in response to a user's click operation on the "Yes" button.
  • the mobile phone 200 in response to the user's selection operation of the Bluetooth connection selection item, can also interact with the mobile phone 300 through Wi-Fi connection parameters of the Wi-Fi connection and re-establish the Wi-Fi connection.
  • the first device and the second device can also perform error correction processing on the cause of the error in the first communication connection according to the error information, so that the first communication connection can be re-established as soon as possible.
  • the first device and the second device may exchange connection parameters of the first communication connection through the second communication connection after the first communication connection fails. In this way, after the first device and the second device correct the foregoing errors, the first communication connection can be re-established directly according to the connection parameters of the first communication connection transmitted through the second communication connection. In this way, the time for establishing the first communication connection can be shortened, and the efficiency of establishing the first communication connection can be improved.
  • An embodiment of the present application provides a transmission control method. After a first device detects an error in the first communication connection, the first device may send error information of the first communication connection to the second device through the second communication connection. The first device sends the error information of the first communication connection to the second device in time, so that the second device can detect the error of the first communication connection in time. In addition, the first device and the second device may exchange connection parameters of the first communication connection through the second communication connection after the first communication connection fails. Then, the first communication connection is re-established directly according to the connection parameter. In this way, the time for establishing the first communication connection can be shortened, and the efficiency of establishing the first communication connection can be improved.
  • the first device and the second device have established a first communication connection.
  • the transmission control method provided in the embodiment of the present application may be applied to a process in which a first device and a second device perform data transmission through a first communication connection.
  • the method in the embodiment of the present application may be applied to a scenario of mobile phone cloning. Take the first communication connection as a Wi-Fi connection as an example.
  • mobile phone 1 that is, the first device
  • mobile phone 2 that is, the second device
  • can transmit clone information that is, the first data
  • the clone information (that is, the first data) may include various communication data in the mobile phone 1, mobile phone short messages, WeChat information, photos, contacts, and the like.
  • the mobile phone 1 and the mobile phone 2 can exchange error information of the first communication connection through a second communication connection (such as a Bluetooth connection).
  • the mobile phone 1 and the mobile phone 2 can continue to transmit the clone information through a second communication connection (such as a Bluetooth connection).
  • the mobile phone 1 and the mobile phone 2 may also exchange connection parameters of the Wi-Fi connection through a second communication connection (such as a Bluetooth connection) to re-establish a Wi-Fi connection.
  • the first communication connection may be a Wi-Fi connection.
  • the first device may be the above-mentioned STA 102, and the second device may be the AP 101.
  • the first device may be the above-mentioned AP 101, and the second device may be the STA 102.
  • the first device may be the STA 102 and the second device is the STA 103.
  • STA 102 and STA 103 can perform data transmission through the Wi-Fi network provided by AP 101.
  • the transmission control method may include S1501-S1507:
  • the first device and the second device transmit the first data through the first communication connection.
  • the first data in the embodiment of the present application may be multiple data forms such as a file, signaling, or message.
  • the embodiment of the present application does not limit the specific form of the first data.
  • the first device finds that the first communication connection is in error.
  • the first device may be a receiving end of the first data or a sending end of the first data. For example, when the first device is the receiving end of the first data, if the first device finds that the received first data is garbled, the first device can check whether the first communication connection is in error.
  • the first device is STA 102
  • the second device is AP 101
  • the first communication connection is a Wi-Fi connection.
  • Wi-Fi connection errors can be caused by AP 101 failure.
  • the AP 101 fault may include at least the above-mentioned situation (1), situation (2), and situation (3).
  • AP 101 failure may also include power failure of AP 101.
  • the Wi-Fi connection error can also be caused by the STA 102 failure.
  • the failure of STA 102 may include at least the above situation (4).
  • the first device is an AP 101
  • the second device is an STA 102
  • the first communication connection is a Wi-Fi connection.
  • the above Wi-Fi connection error may be caused by AP 101 failure.
  • the AP 101 failure can include at least the above-mentioned situation (5), situation (6) and situation (7).
  • the Wi-Fi connection error can also be caused by the STA 102 failure.
  • the fault on the STA 102 side can at least include the above situation (8).
  • the first device is STA 103
  • the second device is STA 102
  • the first communication connection is a Wi-Fi connection.
  • the above Wi-Fi connection error may be caused by AP 101 failure.
  • AP 101 fails, Wi-Fi networks cannot be provided for STA 103 and STA 102, which results in Wi-Fi connection errors and abnormal first data transmission.
  • the first device sends error information of the first communication connection to the second device through the second communication connection.
  • the function of the second communication connection (such as the Bluetooth connection) of the second device is turned on.
  • the method in the embodiment of the present application may further include the foregoing S501 or S601. The detailed description of S501 and S601 is not repeated here in the embodiment of the present application.
  • the second communication connection in the embodiment of the present application may be a communication connection that satisfies a preset condition in addition to the first communication connection among the possible communication connections between the first device and the second device.
  • the first device After the first device discovers that the first communication connection is in error, it may select a communication connection that meets a preset condition in addition to the first communication connection from the possible communication connections between the first device and the second device.
  • the second device receives error information of the first communication connection sent by the first device through the second communication connection.
  • the first device and the second device may exchange connection parameters of the first communication connection through a second communication connection, so as to re-establish the first communication connection.
  • the method in the embodiment of the present application may further include the foregoing S1505-S1507.
  • the first device and the second device exchange a connection parameter of the first communication connection through a second communication connection.
  • S1506 The first device and the second device establish a first communication connection according to the connection parameters of the first communication connection transmitted through the second communication connection.
  • the first device and the second device transmit the first data through the first communication connection according to the first breakpoint information of the first data.
  • the above error information may further include first breakpoint information of the first data.
  • the first breakpoint information of the first data is used to indicate a cut-off position of data that has been correctly transmitted by the first device and the second device during the transmission of the first data.
  • the first breakpoint information of the first data may be an identifier of data that was recently correctly transmitted in the first data.
  • the data that was recently correctly transmitted in the first data refers to the error that ended the first communication connection, and the latest data that was correctly transmitted in the first data. In this way, the first device and the second device can continue to transmit the first data through the first communication connection according to the first breakpoint information of the first data.
  • the first device may send error information of the first communication connection to the second device through the second communication connection after finding that the first communication connection is in error.
  • the first device sends the error information of the first communication connection to the second device in time, so that the second device can detect the error of the first communication connection in time.
  • the first device and the second device may exchange connection parameters of the first communication connection through the second communication connection after the first communication connection fails. Then, the first communication connection is re-established directly according to the connection parameter. In this way, the time for establishing the first communication connection can be shortened, and the efficiency of establishing the first communication connection can be improved.
  • the first device and the second device may continue to transmit the first data directly through the second communication connection according to the first breakpoint information of the first data.
  • the method in the embodiment of the present application may further include S1505-S1506 and S1601:
  • the first device and the second device continue to transmit the first data through the second communication connection according to the first breakpoint information of the first data.
  • the first device and the second device execute S1505-S1506 and S1601 simultaneously.
  • the first device and the second device may continue to transmit the first data through the second communication connection directly.
  • the first device and the second device in the embodiment of the present application may not execute S1505-S1507, but directly execute S1601.
  • the method in the embodiment of the present application may further include S1601.
  • the first device may send error information of the first communication connection to the second device through the second communication connection after finding that the first communication connection is in error.
  • the first device sends the error information of the first communication connection to the second device in time, so that the second device can detect the error of the first communication connection in time.
  • the first device and the second device may continue to transmit the first data through the second communication connection according to the first breakpoint information of the first data directly after the first communication connection fails.
  • the first communication connection Take the first communication connection as a Wi-Fi connection and the second communication connection as a Bluetooth connection as an example. It can be understood that in the case where the first device and the second device have established a Bluetooth connection, it takes time for the first device and the second device to re-establish a Wi-Fi connection; therefore, the first device and the second device are connected via Bluetooth. The transmission of the first data through the connection can quickly complete the transmission of the first data and improve the transmission efficiency of the first data. In the case where the first device and the second device have not established a Bluetooth connection, it takes time to re-establish a Wi-Fi connection between the first device and the second device, and the time required to establish a Bluetooth connection is less than the time required to establish a Wi-Fi connection. Therefore, transmitting the first data through the Bluetooth connection between the first device and the second device can quickly complete the transmission of the first data and improve the transmission efficiency of the first data.
  • the first device or the second device may determine to continue to execute S1505-S1507, or continue to execute S1601, or continue to execute S1505-S1506 and S1601 according to a preset policy.
  • the method for determining whether the first device or the second device performs the foregoing steps according to a preset policy may include: at least one of the first device or the second device according to a service type of the first data, a data amount of the first data, and available resources. One item, determine to perform the above steps.
  • the available resources may include a communication connection available to the first device and the second device.
  • the service type of the first data may indicate that the first data is video data, audio data, or text data.
  • Different service types have different requirements on latency. For example, when a user watches a video using a Wi-Fi network, the first data is video data. In order to ensure the user experience when a user watches a video, video data generally requires higher delay. For example, the delay requirement for video data is higher than the delay requirement for text data. Therefore, when the first data is video data, in order to ensure continuous and uninterrupted transmission of the video data, after S1504, the first device and the second device may directly execute S1601, and according to the first breakpoint information of the first data, The first data continues to be transmitted through the second communication connection.
  • the first device and the second device may execute S1505-S1506 and S1601. That is, the first device and the second device can transmit the video-type data through the Bluetooth connection while re-establishing the Wi-Fi connection.
  • the first device and the second device can continue to transmit the first data through the re-established Wi-Fi connection after re-establishing the Wi-Fi connection. That is, after S1504, the first device and the second device can execute S1505-S1507.
  • the transmission rate of the first communication connection may be greater than the transmission rate of the second communication connection.
  • the first device and the second device may retransmit the first data through the first communication connection after the first communication connection is successfully established. That is, as shown in FIG. 17, after S1505-S1506 and S1601 shown in FIG. 16A, the method in this embodiment of the present application may further include S1701:
  • S1701 may be replaced by: when the first communication connection is successfully established, if the first data has not been transmitted and the transmission rate of the first communication connection is higher than the transmission rate of the second communication connection, the first device and the first communication connection The two devices stop transmitting the first data through the second communication connection, and continue transmitting the first data through the first communication connection according to the second breakpoint information of the first data.
  • the second breakpoint information may be transmitted by the first device and the second device through the second communication connection.
  • the second breakpoint information is used to indicate a cut-off position of data that has been correctly transmitted by the first device and the second device during the transmission of the first data through the second communication connection.
  • the first device and the second device may stop transmitting the video data through the Bluetooth connection.
  • the first device and the second device may continue to transmit video data through a Wi-Fi connection according to the second breakpoint information of the video data.
  • the terminal may determine whether the amount of the untransmitted data in the first data is greater than a preset data amount threshold. When the amount of data that has not been transmitted is greater than a preset data amount threshold, the terminal may stop transmitting the first data through the second communication connection, and continue transmitting the first data through the first communication connection. When the amount of data that has not been transmitted is less than or equal to a preset data amount threshold, the terminal may continue to transmit the first data through the second communication connection.
  • the data amount of the first data may indicate the size of the first data. When the data amount of the first data is small, the first device and the second device may transmit the first data through the Bluetooth device until the first data is transmitted. Even if the Wi-Fi connection is re-established, the first data does not need to be transmitted through the re-established Wi-Fi connection.
  • the available resources may include communication connections available to the first device and the second device. For example, when the first device and the second device have no other available communication connection except the first communication connection (such as a Wi-Fi connection), or cannot establish other available communication connections, the first device and the second device After the Wi-Fi connection is re-established, the first data may continue to be transmitted through the re-established Wi-Fi connection. That is, after S1504, the first device and the second device can execute S1505-S1507.
  • the user may also decide that after S1504, the first device and the second device continue to execute S1505-S1507, S1601, or S1505-S1506 and S1601.
  • the user of the first device may decide that after S1503, the first device and the second device continue to execute S1505-S1507, S1601, or S1505-S1506 and S1601.
  • the first device may display the second interface while performing S1503.
  • the second interface includes first confirmation information.
  • the first confirmation information is used to indicate that the first communication connection is in error, and requests the user to confirm that "the first communication connection is re-established and then the first data is transmitted through the re-established first communication connection" or "the first data is transmitted through the second communication connection ".
  • the first device is a mobile phone 400
  • the first communication connection is a Wi-Fi connection
  • the second communication connection is a Bluetooth connection.
  • the mobile phone 400 may display the second interface 1801 shown in FIG. 18 while executing S1503.
  • the second interface 1801 includes first confirmation information 1802.
  • the first confirmation message 1802 may be "Wi-Fi connection error! Please confirm that after re-establishing the Wi-Fi connection, transmit the first data through the re-established Wi-Fi connection, or transmit the first data through the Bluetooth connection?".
  • the user of the second device may decide that after S1504, the first device and the second device continue to execute S1505-S1507, S1601, or S1505-S1506 and S1601.
  • the second device may display the second interface in response to receiving the error information of the first communication connection.
  • the second interface includes first confirmation information.
  • the first confirmation information is used to indicate that the first communication connection is in error, and requests the user to confirm that "the first communication connection is re-established, and then the first data is transmitted through the re-established first communication connection" or "the first data is transmitted through the second communication connection.” ".
  • the second device is a mobile phone 400
  • the first communication connection is a Wi-Fi connection
  • the second communication connection is a Bluetooth connection.
  • the mobile phone 400 When the mobile phone 400 receives the error message of the Wi-Fi connection, it can display the second interface 1801 shown in FIG. 18.
  • the second interface 1801 includes first confirmation information 1802.
  • the first confirmation message 1802 may be "Wi-Fi connection error! Please confirm that after re-establishing the Wi-Fi connection, transmit the first data through the re-established Wi-Fi connection, or transmit the first data through the Bluetooth connection?".
  • the mobile phone 400 may execute S1505-S1507 in response to the user's selection operation of the option "Re-establish Wi-Fi connection, and then transmit first data through the re-established Wi-Fi connection".
  • the mobile phone 400 may execute S1505-S1506 and S1601 in response to the user's selection operation of the option "Transfer first data through Bluetooth connection" shown in FIG. 18, or may execute S1601.
  • the mobile phone 400 may further display a fourth interface 1901.
  • the fourth interface 1901 includes second confirmation information 1902.
  • the second confirmation information 1902 is used to indicate that the Wi-Fi connection is successfully re-established, and whether to continue transmitting data through the re-established Wi-Fi connection.
  • the mobile phone 400 may stop transmitting the first data through the Bluetooth connection in response to the user ’s click operation on the “Yes” button shown in FIG. 19, and continue to transmit the first data through the Wi-Fi connection according to the second breakpoint information of the first data. data.
  • the mobile phone 400 may continue to transmit the first data through the Bluetooth connection in response to the user's click operation on the “No” button shown in FIG. 19.
  • the first device and the second device may transmit the first data through a Bluetooth connection between the first device and the second device based on the Bluetooth protocol.
  • the specific method for transmitting the first data through the Bluetooth connection based on the Bluetooth protocol between the first device and the second device can be referred to the method for transmitting the error information of the Wi-Fi connection through the Bluetooth connection based on the Bluetooth protocol between the first device and the second device. This embodiment of the present application will not repeat them here.
  • the embodiment of the present application provides a transmission control method, which can not only improve the efficiency of establishing the first communication connection, but also improve the transmission efficiency of the first data.
  • the first device or the second device may complete the transmission of the first data through the communication connection selected by the user in response to the user's selection of the first data transmission mode. In this way, the interaction performance between the device and the user can be improved.
  • the first device and the second device include a hardware structure and / or a software module corresponding to each function.
  • the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is performed by hardware or computer software-driven hardware depends on the specific application and design constraints of the technical solution. Professional technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present application.
  • the embodiments of the present application may divide the functional modules of the foregoing devices according to the foregoing method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of the modules in the embodiments of the present application is schematic, and is only a logical function division. In actual implementation, there may be another division manner.
  • an embodiment of the present application provides a device 2000, which includes a first communication unit 2001, a detection unit 2002, and a second communication unit 2003.
  • the first communication unit 2001 is used to support the device 2000 to perform S301, S303, S305, S1501, S1507 in the above method embodiment, and / or other processes used in the technology described herein.
  • the detection unit 2002 is used to support the device 2000 to perform S401, S1502 in the above method embodiment, and / or other processes used in the technology described herein.
  • the second communication unit 2003 is used to support the device 2000 to perform S402, S1301, S1503, S1505, S1601, and / or other processes for the technology described herein.
  • the above-mentioned device 2000 may further include: a establishing unit 2004.
  • the establishing unit 2004 is configured to support the device 2000 to establish a first communication connection and a second communication connection with the second device.
  • the establishing unit 2004 is used to support the device 2000 to execute S501, S601, S1302, S1506 in the above method embodiment, and / or other processes used in the technology described herein.
  • the above-mentioned device 2000 may further include: a control unit.
  • the control unit is used to support the device 2000 to perform the operations of controlling the second communication unit 2003 “stopping the transmission of the first data through the second communication connection” in S404 and S1701 in the foregoing method embodiment, and / or the technology described herein Other processes.
  • the above-mentioned device 2000 may further include: a selection unit.
  • the selection unit is used to support the device 2000 in selecting a second communication connection from one or more communication connections, and / or other processes for the techniques described herein.
  • the above-mentioned device 2000 may further include: a prompting unit.
  • the prompting unit is used to support the device 2000 to issue a first prompting message, and / or other processes for the techniques described herein.
  • the above device 2000 may further include: a display unit and a determination unit.
  • the display unit is configured to support the device 2000 to display the first interface, the third interface, the second interface, the fourth interface, and the like, and / or other processes used in the technology described herein.
  • the determination unit is configured to support the device 2000 in response to a user's selection operation of a selection item of the communication connection displayed by the display unit, to determine that the communication connection selected by the user is the second communication connection, and / or other processes for the technology described herein.
  • the functional units of the above device 2000 include but are not limited to the above units.
  • the above-mentioned device 2000 may further include a storage unit.
  • the above-mentioned first communication unit 2001 and second communication unit 2003 may be integrated into one communication module for implementation.
  • the above-mentioned detection unit 2002, establishment unit 2004, control unit, selection unit, prompting unit, and determination unit may be implemented in one processing module.
  • the display unit may be a display module.
  • the storage unit may be a storage module.
  • FIG. 22 shows a schematic diagram of a possible structure of the device involved in the foregoing embodiment.
  • the device 2200 includes a processing module 2201, a storage module 2202, a display module 2203, and a communication module 2204.
  • the processing module 2201 is configured to control and manage the device 2200.
  • the display module 2203 is configured to display an interface and receive a touch operation of a user.
  • the storage module 2202 is configured to store program codes and data of the device 2200.
  • the communication module 2204 is used to communicate with other devices. For example, the communication module is used to receive or send information to other devices.
  • the processing module 2201 may be a processor or a controller.
  • the processing module 2201 may include a central processing unit (CPU) and a graphics processing unit (GPU), a general-purpose processor, and a digital signal processor (Digital Signal Processor). , DSP), application-specific integrated circuit (ASIC), field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the disclosure of this application.
  • the processor may also be a combination that realizes computing functions, for example, a combination including one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
  • the communication module may be a transceiver, a transceiver circuit, or a communication interface.
  • the storage module 2202 may be a memory.
  • the processing module 2201 is a processor (such as the processor 201 shown in FIG. 2, the communication module is a radio frequency circuit (such as the radio frequency circuit 202 shown in FIG. 2), and the storage module 2202 is a memory (such as the memory 203 shown in FIG. 2).
  • the display module 2203 is a display (including the display 204 including the touch panel 204-1 and the display panel 204-5 shown in FIG. 2)
  • the device provided in this application may be the mobile phone 200 shown in FIG. 2.
  • the communication module may include not only a radio frequency circuit, but also a WiFi module and a Bluetooth module. Communication modules such as a radio frequency circuit, a WiFi module, and a Bluetooth module may be collectively referred to as a communication interface. It may be referred to as a second communication interface, wherein the processor, the communication interface, the touch screen, and the memory may be coupled together through a bus.
  • An embodiment of the present application further provides a computer storage medium, where the computer storage code is stored in the computer storage medium.
  • the processor executes the computer program code
  • the device executes FIG. 4, FIG. 5, FIG. 13, FIG.
  • the relevant method steps in any of FIGS. 16A, 16B, and 17 implement the method in the above embodiment.
  • the embodiment of the present application further provides a computer program product, which causes the computer to execute FIG. 4, FIG. 5, FIG. 6, FIG. 13, FIG. 15, FIG. 16A, FIG. 16B, and FIG. 17 when the computer program product runs on the computer.
  • the relevant method steps in any of the figures implement the method in the above embodiments.
  • the device 2000 and the device 2200, the computer storage medium, or the computer program product provided in this application are used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, refer to the corresponding ones provided above. The beneficial effects in the method are not repeated here.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the modules or units is only a logical function division.
  • multiple units or components may be divided.
  • the combination can either be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, which may be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each of the units may exist separately physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially a part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium , Including a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in the embodiments of the present application.
  • the foregoing storage medium includes: various types of media that can store program codes, such as a flash memory, a mobile hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Communication Control (AREA)

Abstract

本申请实施例提供一种传输控制方法及设备,涉及通信技术领域,可以使双方设备及时发现Wi-Fi连接出错,并进行容错处理。具体方案包括:第一设备与第二设备通过第一通信连接传输第一数据;第一设备与第二设备通过第一通信连接传输第一数据的过程中,第一设备发现第一通信连接出错;第一设备通过第二通信连接向第二设备发送第一通信连接的错误信息。其中,第二通信连接与第一通信连接不同,上述错误信息用于指示第一通信连接出错。

Description

一种传输控制方法及设备 技术领域
本申请实施例涉及通信技术领域,尤其涉及一种传输控制方法及设备。
背景技术
无线局域网技术使得用户可以便捷的以无线方式随时随地的访问网络资源。无线保真(Wireless Fidelity,Wi-Fi)作为无线局域网(wireless local area network,WLAN)技术中的一种得到了广泛应用。其中,设备在连接至Wi-Fi热点后,便可以通过Wi-Fi热点提供的Wi-Fi网络传输数据。
但是,在设备与Wi-Fi热点建立Wi-Fi连接的过程中,如果Wi-Fi连接出错,那么,设备只能在进行错误提示后,响应于用户的操作重新连接Wi-Fi热点。在Wi-Fi连接出错后,需要用户介入,设备才可以重新建立Wi-Fi连接。设备建立Wi-Fi连接的效率较低。
另外,设备通过Wi-Fi网络传输文件的过程中,传输双方只要一方的Wi-Fi连接出现问题,就会导致文件传输错误。而另一方无法及时感知到文件传输错误,需要用户介入,双方设备才可以重新建立Wi-Fi连接,从而继续传输文件。
发明内容
本申请实施例提供一种传输控制方法及设备,双方设备可以及时发现Wi-Fi连接出错,并进行容错处理。
第一方面,本申请实施例提供一种传输控制方法,该传输控制方法包括:第一设备与第二设备通过第一通信连接传输第一数据;第一设备与第二设备通过第一通信连接传输第一数据的过程中,第一设备发现第一通信连接出错;第一设备通过第二通信连接向第二设备发送第一通信连接的错误信息。其中,第二通信连接与第一通信连接不同,上述错误信息用于指示第一通信连接出错。
其中,第一设备可以在发现第一通信连接出错后,可以通过第二通信连接向第二设备发送第一通信连接的错误信息。第一设备及时向第二设备发送第一通信连接的错误信息,可以使得第二设备可以及时感知到第一通信连接出错。这样,第一设备与第二设备可以及时进行容错处理。
结合第一方面,在一种可能的设计方式中,第一设备可以在通过第二通信连接向第二设备发送第一通信连接的错误信息之后,通过第二通信连接与第二设备交互第一通信连接的连接参数。这样,第一设备与第二设备可以直接根据该连接参数重新建立第一通信连接。而不是对第一通信连接进行纠错处理,然后按照第一通信连接的正常流程交互第一通信连接的连接参数,再根据连接参数重新建立第一通信连接。如此,可以缩短建立第一通信连接的时间,提高建立第一通信连接的效率。
结合第一方面,在另一种可能的设计方式中,上述错误信息还可以包括第一数据的第一断点信息。该第一断点信息用于指示第一数据中、第一设备与第二设备已经正 确传输的数据的截止位置。
结合第一方面,在另一种可能的设计方式中,第一设备与第二设备可以在根据第一通信连接的连接参数,重新建立第一通信连接之后,根据第一断点信息,通过第一通信连接传输第一数据。
结合第一方面,在另一种可能的设计方式中,第一设备通过第二通信连接向第二设备发送第一通信连接的错误信息之后,第一设备与第二设备可以根据第一断点信息,通过第二通信连接传输第一数据。其中,在第一通信连接出错后,直接根据第二通信连接继续传输第一数据。而不是在重新建立第一通信连接后再通过重新建立的第一通信连接传输第一数据。这样,可以快速完成第一数据的传输,提高第一数据的传输效率。
以第一通信连接是Wi-Fi连接,第二通信连接是蓝牙连接为例。可以理解,在第一设备与第二设备已建立了蓝牙连接的情况下,由于第一设备与第二设备重新建立Wi-Fi连接需要时间;因此,第一设备与第二设备之间通过蓝牙连接传输第一数据,可以快速完成第一数据的传输,提高第一数据的传输效率。在第一设备与第二设备未建立了蓝牙连接的情况下,由于第一设备与第二设备重新建立Wi-Fi连接需要时间,并且建立蓝牙连接所需要的时间小于建立Wi-Fi连接需要时间;因此,第一设备与第二设备之间通过蓝牙连接传输第一数据,可以快速完成第一数据的传输,提高第一数据的传输效率。
可以理解,第一通信连接出错后,第一设备与第二设备可以直接通过第二通信连接传输第一数据。即第一设备与第二设备执行操作二:通过第二通信连接传输第一数据。或者,第一通信连接出错后,第一设备与第二设备可以等待第一通信连接重新建立成功,通过重新建立的第一通信连接传输第一数据。即第一设备与第二设备执行操作一:重新建立第一通信连接,通过重新建立的第一通信连接传输第一数据。
结合第一方面,在另一种可能的设计方式中,可以由用户选择第一设备与第二设备执行上述“操作一”或者“操作二”。上述第一设备与第二设备根据第一断点信息,通过第二通信连接传输所述第一数据,可以包括:第一设备显示包括第一确认信息的第二界面。该第一确认信息用于指示第一通信连接出错,并请求用户确认执行上述操作一或者操作二。响应于用户对操作二的选择,第一设备与第二设备可以根据第一断点信息,通过第二通信连接传输第一数据。响应于用户对操作一的选择,在建立第一通信连接后,第一设备与第二设备可以根据第一断点信息,通过第一通信连接传输第一数据。
结合第一方面,在另一种可能的设计方式中,考虑到第一通信连接的传输速率可能大于第二通信连接的传输速率。第一设备和第二设备可以在第一通信连接建立成功之后,重新通过第一通信连接传输第一数据。其中,第一设备与第二设备根据第一通信连接的连接参数,重新建立第一通信连接。在重新建立第一通信连接成功时,如果第一数据还未传输完,第一设备与第二设备可以停止通过第二通信连接传输第一数据,并根据第一数据的第二断点信息,通过第一通信连接传输第一数据。其中,第二断点信息用于指示第一数据中、第一设备与第二设备通过第二通信连接已经正确传输的数据的截止位置。
可选的,在第一通信连接建立成功时,如果第一数据还未传输完,第一设备可以判断第一通信连接的传输速率是否高于第二通信连接的传输速率。在第一通信连接的传输速率高于第二通信连接的传输速率的情况下,第一设备与第二设备可以停止通过第二通信连接继续传输第一数据,并根据第一数据的第二断点信息,通过第一通信连接继续传输第一数据。
可选的,在第一通信连接建立成功时,如果第一数据还未传输完,终端可以判断第一数据中、还未传输完的数据量是否大于预设数据量阈值。当还未传输完的数据量大于预设数据量阈值时,终端可以停止通过第二通信连接继续传输第一数据,并通过第一通信连接继续传输第一数据。当还未传输完的数据量小于或者等于预设数据量阈值时,终端可以继续通过第二通信连接传输第一数据。
结合第一方面,在另一种可能的设计方式中,为了提高设备与用户的交互性能。重新建立第一通信连接成功时,如果第一数据还未传输完,可以由用户选择是否通过重新建立的第一通信连接继续传输第一数据。具体的,在第一通信连接建立成功时,如果第一数据还未传输完,第一设备可以显示包括第二确认信息的第四界面。其中,上述第二确认信息用于指示第一通信连接建立成功,并请求用户确认是否通过重新建立的第一通信连接继续传输第一数据。响应于用户选择通过重新建立的第一通信连接继续传输第一数据,第一设备与第二设备可以停止通过第二通信连接传输第一数据,并根据第一数据的第二断点信息,通过第一通信连接传输第一数据。
第二方面,本申请实施例提供一种传输控制方法,该传输控制方法包括:在第一设备与第二设备建立第一通信连接的过程中,第一设备发现第一通信连接出错;第一设备通过第二通信连接向第二设备发送第一通信连接的错误信息,第二通信连接与第一通信连接不同,该错误信息用于指示所述第一通信连接出错。第一设备与第二设备通过第二通信连接,交互第一通信连接的连接参数;第一设备与第二设备根据第一通信连接的连接参数,建立第一通信连接。
本申请实施例中,第一设备可以在发现第一通信连接出错后,通过第二通信连接向第二设备发送第一通信连接的错误信息。第一设备及时向第二设备发送第一通信连接的错误信息,可以使得第二设备可以及时感知到第一通信连接出错。并且,第一设备与第二设备可以在第一通信连接出错后,通过第二通信连接交互第一通信连接的连接参数。然后,直接根据该连接参数重新建立第一通信连接。如此,可以缩短建立第一通信连接的时间,提高建立第一通信连接的效率。
结合第一方面或第二方面,在另一种可能的设计方式中,第一设备与第二设备的第二通信连接的功能均处于开启状态。并且,第一设备与第二设备建立了第二通信连接。在这种情况下,第一设备发现第一通信连接出错时,便可以直接通过第一设备与第二设备的第二通信连接,向第二设备发送错误信息。
结合第一方面或第二方面,在另一种可能的设计方式中,第二设备的第二通信连接的功能处于开启状态。在第一设备通过第二通信连接向第二设备发送错误信息之前,第一设备的第二通信连接的功能处于开启状态。但是,第一设备与第二设备并未建立第二通信连接。在这种情况下,响应于发现第一通信连接出错,第一设备可以与第二设备建立第二通信连接。
结合第一方面或第二方面,在另一种可能的设计方式中,第二设备的第二通信连接(如蓝牙连接)的功能处于开启状态。第一设备的第二通信连接的功能处于关闭状态。在这种情况下,响应于发现第一通信连接出错,第一设备可以开启第一设备的第二通信连接的功能,并与第二设备建立第二通信连接。
结合第一方面或第二方面,在另一种可能的设计方式中,第一设备与第二设备存在除第一通信连接之外的另一个通信连接。在这种情况下,响应于发现第一通信连接出错,第一设备可以确定该另一个通信连接为第二通信连接。然后,通过该第二通信连接向第二设备发送第一通信连接的错误信息。
可选的,第一设备通过蓝牙连接向第二设备发送错误信息之前,可以发出第一提示信息。该第一提示信息用于指示第一通信连接出错,并请求用户确认通过蓝牙连接向第二设备发送错误信息。其中,第一设备发出第一提示信息的方式可以包括:第一终端显示包括第一提示信息的界面;或者第一终端通过语音提示的方式播放第一提示信息。
结合第一方面或第二方面,在另一种可能的设计方式中,第一设备与第二设备存在除第一通信连接之外的多个通信连接。在这种情况下,响应于发现第一通信连接出错,第一设备可以从上述多个通信连接中选择出功耗较小或者传输速率较快的通信连接,作为第二通信连接。然后,通过该第二通信连接向第二设备发送第一通信连接的错误信息。
结合第一方面或第二方面,在另一种可能的设计方式中,第一设备与第二设备存在除第一通信连接之外的多个通信连接。在这种情况下,响应于发现第一通信连接出错,第一设备可以显示第一界面。该第一界面包括上述多个通信连接的选择项。第一设备响应于用户对多个通信连接的选择项的选择操作,将用户选择的通信连接作为第二通信连接。也就是说,当第一设备与第二设备存在多个通信连接时,可以由用户从这多个通信连接中,选择出第二通信连接。这样,可以提高设备与用户之间的交互性能。
可选的,上述第一界面中还包括第二提示信息。该第二提示信息用于指示第一通信连接出错,并指示用户从至少两个通信连接中选择一个通信连接。
结合第一方面或第二方面,在另一种可能的设计方式中,响应于发现第一通信连接出错,第一设备可以显示第三界面。该第三界面包括多个通信连接的选择项。该多个通信连接包括第一设备与第二设备能够建立的通信连接。响应于用户对多个通信连接的选择项的选择操作,将用户选择的选择项目对应的通信连接确定为第二通信连接,与第二设备建立第二通信连接。
本申请实施例中,第一设备与第二设备能够建立的通信连接可以包括:第一设备与第二设备已建立的通信连接,以及第一设备与第二设备还未建立的通信连接。其中,虽然第一设备与第二设备还未建立上述通信连接,但是第一设备与第二设备具备建立该通信连接的条件。例如,假设第一设备与第二设备当前已经建立了USE连接。第一设备与第二设备虽然还未建立蓝牙连接,但是第一设备与第二设备的蓝牙均已经开启,第一设备与第二设备具备建立蓝牙连接的条件。因此,第一设备与第二设备能够建立的通信连接包括蓝牙连接和USB连接。
结合第一方面或第二方面,在另一种可能的设计方式中,上述第一通信连接是Wi-Fi连接,第二通信连接是蓝牙连接。当然,本申请实施例中的通信连接包括但不限于Wi-Fi连接和蓝牙连接。本申请实施例这里不予赘述。
第三方面,本申请实施例提供一种设备,该设备是第一设备,该设备包括:第一通信单元、检测单元和第二通信单元。其中,第一通信单元,用于与第二设备通过第一通信连接传输第一数据。检测单元,用于第一通信单元与第二设备通过第一通信连接传输第一数据的过程中,发现第一通信连接出错。第二通信单元,用于通过第二通信连接向第二设备发送第一通信连接的错误信息,第二通信连接与第一通信连接不同,错误信息用于指示第一通信连接出错。
结合第三方面,在一种可能的设计方式中,上述第二通信单元,还用于在通过第二通信连接向第二设备发送第一通信连接的错误信息之后,与第二设备通过第二通信连接,交互第一通信连接的连接参数。建立单元,用于与第二设备根据第二通信单元得到的第一通信连接的连接参数,建立第一通信连接。
结合第三方面,在另一种可能的设计方式中,上述错误信息还包括第一数据的第一断点信息,第一断点信息用于指示第一数据中、第一设备与第二设备已经正确传输的数据的截止位置。第二通信单元,还用于在通过第二通信连接向第二设备发送第一通信连接的错误信息之后,与第二设备根据第一断点信息,通过第二通信连接传输第一数据。
结合第三方面,在另一种可能的设计方式中,上述错误信息还包括第一数据的第一断点信息,第一断点信息用于指示第一数据中、第一设备与第二设备已经正确传输的数据的截止位置。第一通信单元,还用于在建立单元建立第一通信连接后,与第二设备根据第一断点信息,通过第一通信连接传输第一数据。
结合第三方面,在另一种可能的设计方式中,上述设备还包括:控制单元。控制单元,用于在建立单元建立第一通信连接后,如果第一数据还未传输完,控制第二通信单元与第二设备停止通过第二通信连接传输第一数据。第一通信单元,用于根据第一数据的第二断点信息,通过第一通信连接传输第一数据。其中,第二断点信息用于指示第一数据中、第一设备与第二设备通过第二通信连接已经正确传输的数据的截止位置。
结合第三方面,在另一种可能的设计方式中,上述控制单元,具体用于:如果第一数据还未传输完,且还未传输完的数据量大于预设数据量阈值,控制第二通信单元与第二设备停止通过第二通信连接传输第一数据,并根据第二断点信息通过第一通信连接传输第一数据。
结合第三方面,在另一种可能的设计方式中,上述设备还包括:选择单元。选择单元,用于在第二通信单元通过第二通信连接向第二设备发送第一通信连接的错误信息之前,响应于发现第一通信连接出错,从一个或多个通信连接中选择出第二通信连接,第二通信连接是一个或多个通信连接中功耗最小和/或传输速率最快的通信连接。其中,一个或多个通信连接包括除第一通信连接之外,第一设备与第二设备已建立的所有通信连接。
结合第三方面,在另一种可能的设计方式中,上述设备还包括:提示单元。提示 单元,用于在选择单元从一个或多个通信连接中选择出第二通信连接之后,第二通信单元通过第二通信连接向第二设备发送第一通信连接的错误信息之前,发出第一提示信息。其中,第一提示信息用于指示第一连接出错,并请求用户确认是否通过第二通信连接向第二设备发送错误信息。
结合第三方面,在另一种可能的设计方式中,上述设备还包括:显示单元。显示单元,用于在第二通信单元通过第二通信连接向第二设备发送第一通信连接的错误信息之前,响应于发现第一通信连接出错,显示第一界面,第一界面包括一个或多个通信连接的选择项,一个或多个通信连接包括除第一通信连接之外,第一设备与第二设备已建立的所有通信连接。确定单元,用于响应于用户对一个或多个通信连接的选择项的选择操作,将用户选择的选择项目对应的通信连接确定为第二通信连接。
结合第三方面,在另一种可能的设计方式中,上述显示单元显示的第一界面中还包括第二提示信息;第二提示信息用于指示第一通信连接出错,并指示用户从至少两个通信连接中选择一个通信连接。
结合第三方面,在另一种可能的设计方式中,上述建立单元,还用于在第二通信单元通过第二通信连接向第二设备发送第一通信连接的错误信息之前,响应于发现第一通信连接出错,与第二设备建立第二通信连接。
结合第三方面,在另一种可能的设计方式中,上述显示单元,用于响应于发现第一通信连接出错,显示第三界面,第三界面包括多个通信连接的选择项,多个通信连接包括第一设备与第二设备能够建立的通信连接;
建立单元,还用于响应于用户对显示单元显示的多个通信连接的选择项的选择操作,将用户选择的选择项目对应的通信连接确定为第二通信连接,与第二设备建立第二通信连接。
结合第三方面,在另一种可能的设计方式中,上述显示单元,用于第一设备显示第二界面,第二界面包括第一确认信息,第一确认信息用于指示第一通信连接出错,并请求用户确认执行以下操作一或者操作二;操作一为:重新建立第一通信连接,通过重新建立的第一通信连接传输第一数据;操作二为:通过第二通信连接传输第一数据。第二通信单元,还用于响应于用户对显示单元显示的操作二的选择,第一设备与第二设备根据第一断点信息,通过第二通信连接传输第一数据。
结合第三方面,在另一种可能的设计方式中,上述第一通信单元,还用于响应于用户对显示单元显示的操作一的选择,在建立单元建立第一通信连接后,与第二设备根据第一断点信息,通过第一通信连接传输第一数据。
结合第三方面,在另一种可能的设计方式中,上述显示单元,用于在建立单元建立第一通信连接成功时,如果第一数据还未传输完,显示第四界面,第四界面包括第二确认信息,第二确认信息用于指示第一通信连接建立成功,并请求用户确认是否通过重新建立的第一通信连接继续传输第一数据。控制单元,具体用于响应于用户选择通过重新建立的第一通信连接继续传输第一数据,与第二设备停止通过第二通信连接传输第一数据。
结合第三方面,在另一种可能的设计方式中,上述第一通信连接是Wi-Fi连接,第二通信连接是蓝牙连接。
第四方面,本申请实施例提供一种设备,该设备是第一设备,该设备包括:处理器、存储器、第一通信接口和第二通信接口;第一通信接口、第二通信接口、存储器与处理器耦合,第一通信接口用于通过第一通信连接收发数据,第二通信接口用于通过第二通信连接收发数据,第二通信连接与第一通信连接不同,存储器包括非易失性存储介质,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,处理器执行计算机指令时,第一通信接口,用于通过第一通信连接传输第一数据;处理器,用于在第一通信接口与第二设备通过第一通信连接传输第一数据的过程中,发现第一通信连接出错;第二通信接口,用于通过第二通信连接向第二设备发送第一通信连接的错误信息,错误信息用于指示第一通信连接出错。
结合第四方面,在一种可能的设计方式中,上述第二通信接口,还用于在通过第二通信连接向第二设备发送第一通信连接的错误信息之后,与第二设备通过第二通信连接,交互第一通信连接的连接参数。处理器,还用于与第二设备根据第一通信连接的连接参数,建立第一通信连接。
结合第四方面,在另一种可能的设计方式中,上述错误信息还包括第一数据的第一断点信息,第一断点信息用于指示第一数据中、第一设备与第二设备已经正确传输的数据的截止位置。第二通信接口,还用于在通过第二通信连接向第二设备发送第一通信连接的错误信息之后,与第二设备根据第一断点信息,通过第二通信连接传输第一数据。
结合第四方面,在另一种可能的设计方式中,上述错误信息还包括第一数据的第一断点信息,第一断点信息用于指示第一数据中、第一设备与第二设备已经正确传输的数据的截止位置。第一通信接口,还用于在处理器与第二设备根据第一通信连接的连接参数,建立第一通信连接之后,与第二设备根据第一断点信息,通过第一通信连接传输第一数据。
结合第四方面,在另一种可能的设计方式中,上述处理器,还用于在建立第一通信连接成功时,如果第一数据还未传输完,控制第二通信接口与第二设备停止通过第二通信连接传输第一数据。第一通信接口,还用于根据第一数据的第二断点信息,通过第一通信连接传输第一数据。其中,第二断点信息用于指示第一数据中、第一设备与第二设备通过第二通信连接已经正确传输的数据的截止位置。
结合第四方面,在另一种可能的设计方式中,上述处理器,用于如果第一数据还未传输完,控制第二通信接口与第二设备停止通过第二通信连接传输第一数据,包括:处理器,用于如果第一数据还未传输完,且还未传输完的数据量大于预设数据量阈值,控制第二通信接口与第二设备停止通过第二通信连接传输第一数据。
结合第四方面,在另一种可能的设计方式中,上述处理器,还用于在第二通信接口通过第二通信连接向第二设备发送第一通信连接的错误信息之前,响应于发现第一通信连接出错,从一个或多个通信连接中选择出第二通信连接,第二通信连接是一个或多个通信连接中功耗最小和/或传输速率最快的通信连接。其中,一个或多个通信连接包括除第一通信连接之外,第一设备与第二设备已建立的所有通信连接。
结合第四方面,在另一种可能的设计方式中,上述处理器,还用于在从一个或多个通信连接中选择出第二通信连接之后,第二通信接口通过第二通信连接向第二设备 发送第一通信连接的错误信息之前,发出第一提示信息,第一提示信息用于指示第一连接出错,并请求用户确认是否通过第二通信连接向第二设备发送错误信息。
结合第四方面,在另一种可能的设计方式中,上述设备还包括:显示器。显示器,用于在第二通信接口通过第二通信连接向第二设备发送第一通信连接的错误信息之前,响应于发现第一通信连接出错,显示第一界面,第一界面包括一个或多个通信连接的选择项,一个或多个通信连接包括除第一通信连接之外,第一设备与第二设备已建立的所有通信连接。处理器,还用于响应于用户对一个或多个通信连接的选择项的选择操作,将用户选择的选择项目对应的通信连接确定为第二通信连接。
结合第四方面,在另一种可能的设计方式中,上述显示器显示的第一界面中还包括第二提示信息;第二提示信息用于指示第一通信连接出错,并指示用户从至少两个通信连接中选择一个通信连接。
结合第四方面,在另一种可能的设计方式中,上述处理器,还用于在第二通信接口通过第二通信连接向第二设备发送第一通信连接的错误信息之前,响应于发现第一通信连接出错,与第二设备建立第二通信连接。
结合第四方面,在另一种可能的设计方式中,上述显示器,还用于响应于发现第一通信连接出错,显示第三界面,第三界面包括多个通信连接的选择项,多个通信连接包括第一设备与第二设备能够建立的通信连接。处理器,还用于响应于用户对多个通信连接的选择项的选择操作,将用户选择的选择项目对应的通信连接确定为第二通信连接,与第二设备建立第二通信连接。
结合第四方面,在另一种可能的设计方式中,上述显示器,用于显示第二界面,第二界面包括第一确认信息,第一确认信息用于指示第一通信连接出错,并请求用户确认执行以下操作一或者操作二;操作一为:重新建立第一通信连接,通过重新建立的第一通信连接传输第一数据;操作二为:通过第二通信连接传输第一数据。第二通信接口,还用于响应于用户对操作二的选择,与第二设备根据第一断点信息,通过第二通信连接传输第一数据。
结合第四方面,在另一种可能的设计方式中,上述第一通信接口,还用于响应于用户对操作一的选择,在处理器建立第一通信连接后,与第二设备根据第一断点信息,通过第一通信连接传输第一数据。
结合第四方面,在另一种可能的设计方式中,上述显示器,用于在处理器建立第一通信连接成功时,如果第一数据还未传输完,显示第四界面,第四界面包括第二确认信息,第二确认信息用于指示第一通信连接建立成功,并请求用户确认是否通过重新建立的第一通信连接继续传输第一数据。处理器,还用于响应于用户选择通过重新建立的第一通信连接继续传输第一数据,控制第二通信接口与第二设备停止通过第二通信连接传输第一数据。第一通信接口,还用于根据第一数据的第二断点信息,通过第一通信连接传输第一数据。
第五方面,本申请实施例提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在设备上运行时,使得所述设备执行如第一方面或第二方面及其可能的设计方式所述的传输控制方法。
第六方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计 算机上运行时,使得所述计算机执行如第一方面或第二方面及其可能的设计方式所述的传输控制方法。
另外,第二方面至第四方面及其任一种设计方式,以及第五方面和第六方面所带来的技术效果可参见上述第一方面,及其不同设计方式所带来的技术效果,本申请实施例这里不再赘述。
附图说明
图1为本申请实施例提供的一种通信系统的架构示意图;
图2为本申请实施例提供的一种手机的硬件结构示意图;
图3为本申请实施例提供的一种建立Wi-Fi连接的流程示意图;
图4为本申请实施例提供的一种传输控制方法的流程示意图一;
图5为本申请实施例提供的一种传输控制方法的流程示意图二;
图6为本申请实施例提供的一种传输控制方法的流程示意图三;
图7为本申请实施例提供的一种蓝牙帧的帧结构实例示意图一;
图8为本申请实施例提供的一种蓝牙帧的帧结构实例示意图二;
图9为本申请实施例提供的一种蓝牙帧的帧结构实例示意图三;
图10为本申请实施例提供的一种显示界面的示意图一;
图11为本申请实施例提供的一种显示界面的示意图二;
图12为本申请实施例提供的一种显示界面的示意图三;
图13为本申请实施例提供的一种传输控制方法的流程示意图四;
图14为本申请实施例提供的一种显示界面的示意图四;
图15为本申请实施例提供的一种传输控制方法的流程示意图五;
图16A为本申请实施例提供的一种传输控制方法的流程示意图六;
图16B为本申请实施例提供的一种传输控制方法的流程示意图七;
图17为本申请实施例提供的一种传输控制方法的流程示意图八;
图18为本申请实施例提供的一种显示界面的示意图五;
图19为本申请实施例提供的一种显示界面的示意图六;
图20为本申请实施例提供的一种设备的结构组成示意图一;
图21为本申请实施例提供的一种设备的结构组成示意图二;
图22为本申请实施例提供的一种设备的结构组成示意图三。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供一种传输控制方法,该方法可以应用于设备。具体的,该方法可以应用于设备建立第一通信连接,以及通过第一通信连接进行数据传输的过程中。采用本申请实施例提供的方法,设备可以在第一通信连接出错后,通过第二通信连接向对端设备反馈错误信息,以便对端设备可以根据该错误信息做出相应处理。如此,设备可以及时发现Wi-Fi连接出错,并及时进行容错处理。
本申请实施例中的第一通信连接可以包括Wi-Fi连接、蓝牙连接、通用串行总线(Universal Serial Bus,USB)连接、无载波通信技术(Ultra Wideband,UWB)连接、ZigBee(ZigBee Technology)连接和近场通信(Near Field Communication,NFC)连接中的任意一种。第二通信连接可以包括蓝牙连接、USB连接、UWB连接、ZigBee连接和NFC连接中的任意一种。
需要说明的是,本申请实施例中的第一通信连接与第二通信连接不同。例如,当第一通信连接是Wi-Fi连接时,第二通信连接可以为蓝牙连接、USB连接、UWB连接、ZigBee连接和NFC连接中的任意一种。当第一通信连接是蓝牙连接时,第二通信连接可以为USB连接、UWB连接、ZigBee连接和NFC连接中的任意一种。其中,本申请实施例中的蓝牙连接可以为传统蓝牙连接或者蓝牙低功耗(Bluetooth Low Energy,BLE)连接。
请参考图1,其示出本申请实施例提供的一种传输控制方法所应用的通信系统的架构示意图。如图1所示,该通信系统100中可以包括无线接入点(Access Point,AP)101、站点(Station,STA)102和STA 103。STA 102和STA 103可以与AP 101建立Wi-Fi连接。即STA 102和STA 103可以接入AP 101提供的Wi-Fi网络。
示例性的,本申请实施例中的AP 101可以是无线路由器。或者,AP 101可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本、蜂窝电话、以及个人数字助理(Personal Digital Assistant,PDA)、可穿戴电子设备(如智能手表)、平板电脑、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备以及车载电脑等可以作为无线接入点(如Wi-Fi热点),为其他设备提供无线网络的设备,本申请实施例对该AP 101的具体形式不做特殊限制。
本申请实施例中的STA 102和STA 103可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、UMPC、上网本、蜂窝电话、以及PDA、可穿戴电子设备(如智能手表)、平板电脑、AR\VR设备以及车载电脑等设备,本申请实施例对该STA 102和STA 103的具体形式不做特殊限制。
请参考图2,本申请实施例这里以上述AP 101、STA 102或者STA 103为手机200为例,对本申请实施例提供的设备进行介绍。其中,本领域技术人员可以理解,图2所示的手机200仅仅是一个范例,并不构成对手机200的限定,并且手机200可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图2中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
如图2所示,手机200具体可以包括:处理器201、射频(Radio Frequency,RF)电路202、存储器203、触摸屏204、蓝牙装置205、一个或多个传感器206、Wi-Fi装置207、定位装置208、音频电路209、外设接口120、电源系统211以及指纹识别器212等部件。这些部件可通过一根或多根通信总线或信号线(图2中未示出)进行通信。
下面结合图2对手机200的各个部件进行具体的介绍:
处理器201是手机200的控制中心,利用各种接口和线路连接手机200的各个部 分,通过运行或执行存储在存储器203内的应用程序(Application,App),以及调用存储在存储器203内的数据和指令,执行手机200的各种功能和处理数据。在一些实施例中,处理器201可包括一个或多个处理单元;处理器201还可以集成应用处理器和调制解调处理器。其中,应用处理器主要处理操作系统、用户界面和应用程序等。调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器201中。举例来说,处理器201可以是华为技术有限公司制造的麒麟960芯片。
射频电路202可用于在收发信息或通话过程中,无线信号的接收和发送。具体地,射频电路202可以将基站的下行数据接收后,给处理器201处理。另外,将涉及上行的数据发送给基站。通常,射频电路202包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频电路202还可以通过无线通信和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统、通用分组无线服务、码分多址、宽带码分多址、长期演进、电子邮件、短消息服务等。
存储器203用于存储应用程序以及数据,处理器201通过运行存储在存储器203的应用程序以及数据,执行手机200的各种功能以及数据处理。存储器203主要包括存储程序区以及存储数据区。其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)。存储数据区可以存储根据使用手机200时所创建的数据(比如音频数据、电话本等)。此外,存储器203可以包括高速随机存取存储器,还可以包括非易失存储器,例如磁盘存储器件、闪存器件或其他易失性固态存储器件等。存储器203可以存储各种操作系统,例如苹果公司所开发的
Figure PCTCN2018091149-appb-000001
操作系统,谷歌公司所开发的
Figure PCTCN2018091149-appb-000002
操作系统等。
触摸屏204可以包括触敏表面204-1和显示器204-2。其中,触敏表面204-1(例如触控面板)可采集手机200的用户在其上或附近的触摸事件(比如用户使用手指、触控笔等任何适合的物体在触敏表面204-1上或在触敏表面204-1附近的操作),并将采集到的触摸信息发送给其他器件例如处理器201。其中,用户在触敏表面204-1附近的触摸事件可以称之为悬浮触控。悬浮触控可以是指,用户无需为了选择、移动或拖动目标(例如图标等)而直接接触触控板,而只需用户位于终端附近以便执行所想要的功能。在悬浮触控的应用场景下,术语“触摸”、“接触”等不会暗示用于直接接触触摸屏,而是在其附近或接近的接触。能够进行悬浮触控的触敏表面204-1可以采用电容式、红外光感以及超声波等实现。触敏表面204-1可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再发送给处理器201,触摸控制器还可以接收处理器201发送的指令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型来实现触敏表面204-1。显示器(也称为显示屏)204-2可用于显示由用户输入的信息或提供给用户的信息以及手机200的各种菜单。可以采用液晶显示器、有机发光二极管等形式来配置显示器204-2。触敏表面204-1可以覆盖在显示器204-2之上,当触敏表面204-1检测到在其上或附近的触摸事件后,传送给处理器201以确定触摸事件的 类型,随后处理器201可以根据触摸事件的类型在显示器204-2上提供相应的视觉输出。虽然在图2中,触敏表面204-1与显示屏204-2是作为两个独立的部件来实现手机200的输入和输出功能,但是在某些实施例中,可以将触敏表面204-1与显示屏204-2集成而实现手机200的输入和输出功能。可以理解的是,触摸屏204是由多层材料堆叠而成,本申请实施例中只展示出了触敏表面(层)和显示屏(层),其他层在本申请实施例中不予记载。另外,在本申请其他一些实施例中,触敏表面204-1可以覆盖在显示器204-2之上,并且触敏表面204-1的尺寸大于显示屏204-2的尺寸,使得显示屏204-2全部覆盖在触敏表面204-1下面,或者,上述触敏表面204-1可以以全面板的形式配置在手机200的正面,也即用户在手机200正面的触摸均能被手机200感知,这样就可以实现手机200正面的全触控体验。在其他一些实施例中,触敏表面204-1以全面板的形式配置在手机200的正面,显示屏204-2也可以以全面板的形式配置在手机200的正面,这样在手机200的正面就能够实现无边框的结构。
手机200还可以包括蓝牙装置205,用于实现手机200与其他短距离的终端(例如手机、智能手表等)之间的数据交换。本申请实施例中的蓝牙装置可以是集成电路或者蓝牙芯片等。
手机200还可以包括至少一种传感器206,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节触摸屏204的显示器的亮度,接近传感器可在手机200移动到耳边时,关闭显示器的电源。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机200姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机200还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不予赘述。
在本申请各个实施例中,手机200还可以具有指纹识别功能。例如,可以在手机200的背面(例如后置摄像头的下方)配置指纹识别器212,或者在手机200的正面(例如触摸屏204的下方,再例如手机200的主屏幕键上)配置指纹识别器212。另外,也可以通过在触摸屏204中配置指纹识别器212来实现指纹识别功能,即指纹识别器212可以与触摸屏204集成在一起来实现手机200的指纹识别功能。在这种情况下,该指纹识别器212可以配置在触摸屏204中,可以是触摸屏204的一部分,也可以以其他方式配置在触摸屏204中。另外,该指纹识别器212还可以被实现为全面板指纹识别器,因此,可以把触摸屏204看成是任何位置都可以进行指纹采集的一个面板。在一些实施例中,该指纹识别器212可以对采集到的指纹进行处理。例如,指纹识别器212可以对采集到的指纹进行指纹验证等处理。指纹识别器212还可以将指纹验证的处理结果(如指纹验证是否通过)发送给处理器201,以便处理器201根据接收到的指纹验证的结果进行相应的响应。在其他一些实施例中,该指纹识别器212也可以将采集到的指纹发送给处理器201,以便处理器201对该指纹进行处理(例如指纹验证等)。本申请实施例中的指纹识别器212的主要部件是指纹传感器,该指纹传感器可以采用任何类型的感测技术,包括但不限于光学式、电容式、压电式或超声波传感技术等。
Wi-Fi装置207,用于为手机200提供遵循Wi-Fi相关标准协议的网络接入,手机200可以通过Wi-Fi装置207接入到Wi-Fi接入点,进而帮助用户收发电子邮件、浏览网页和访问流媒体等,它为用户提供了无线的宽带互联网访问。在其他一些实施例中,该Wi-Fi装置207也可以作为Wi-Fi无线接入点,可以为其他终端提供Wi-Fi网络接入。
定位装置208,用于为手机200提供地理位置。可以理解的是,该定位装置208具体可以是全球定位系统(Global Positioning System,GPS)、北斗卫星导航系统等定位系统的接收器。定位装置208在接收到上述定位系统发送的地理位置后,将该信息发送给处理器201处理,或者发送给存储器203保存。在另外的一些实施例中,该定位装置208可以是辅助全球卫星定位系统(Assisted Global Positioning System,AGPS)的接收器。AGPS是一种在一定辅助配合下进行GPS定位的运行方式,它可以利用基站的信号,配合GPS卫星信号,可以让手机200定位的速度更快;在AGPS系统中,该定位装置208可通过与辅助定位服务器(例如手机200定位服务器)的通信而获得定位辅助。AGPS系统通过作为辅助服务器来协助定位装置208完成测距和定位服务,在这种情况下,辅助定位服务器通过无线通信网络与终端例如手机200的定位装置208(即GPS接收器)通信而提供定位协助。
音频电路209、扬声器213、麦克风214可提供用户与手机200之间的音频接口。音频电路209可将接收到的音频数据转换后的电信号,传输到扬声器214,由扬声器213转换为声音信号输出;另一方面,麦克风214将收集的声音信号转换为电信号,由音频电路209接收后转换为音频数据,再将音频数据输出至RF电路202以发送给比如另一手机,或者将音频数据输出至存储器203以便进一步处理。
外设接口220,用于为外部的输入/输出设备(例如键盘、鼠标、外接显示器、外部存储器、用户识别模块卡等)提供各种接口。例如通过通用串行总线接口与鼠标连接,通过用户识别模块卡卡槽上的金属触点与电信运营商提供的用户识别模块(Subscriber Identity Module,SIM)卡连接。外设接口120可以被用来将上述外部的输入/输出外围设备耦接到处理器201和存储器203。
手机200还可以包括给各个部件供电的电源装置211(比如电池和电源管理芯片),电池可以通过电源管理芯片与处理器201逻辑相连,从而通过电源装置211实现管理充电、放电、以及功耗管理等功能。
尽管图2未示出,手机200还可以包括摄像头(前置摄像头和/或后置摄像头)、闪光灯、微型投影装置、近场通信(Near Field Communication,NFC)装置等,在此不予赘述。
以下实施例中的方法均可以在具有上述硬件结构的手机200中实现。
在本申请实施例的第一种应用场景中,本申请实施例的方法可以应用于STA 102或者STA 103与AP 101(即Wi-Fi热点)建立Wi-Fi连接的过程中。本申请实施例这里以STA 102与AP 101建立Wi-Fi连接为例,对本申请实施例的方法进行说明:
其中,STA 102与AP 101建立Wi-Fi连接的过程,具体可以包括图3所示的扫描过程S301-S302、认证过程S303-S304,以及关联过程S305-S306:
S301、STA 102向AP 101发送探测请求(Probe Request)帧。
其中,STA 102可以使用Scanning来搜索AP,即STA搜索AP发射的SSID。当STA漫游时搜索并连接一个新的AP,STA可以在每个可用的信道上进行搜索。其中,STA搜索AP的方式有Active/Passive两种。
本申请实施例S301这里以Active Scanning搜索方式为例。STA可以依次在每个可用的信道(如13个信道)发出Probe Request帧。该Probe Request帧中携带AP的SSID。该Probe Request帧用于搜索具有上述SSID的AP。
在Passive Scanning搜索方式中,STA可以通过侦听AP定期发送的信标(Beacon)帧来发现AP。该Beacon帧可以提供AP以及AP所在本服务集(Basic Service Set,BSS)的相关信息。
S302、AP 101向STA 102返回探测响应(Probe Response)帧。
AP 101可以接收到STA 102发送的携带一个SSID的Probe Request帧。当该Probe Request帧携带的SSID与AP的SSID相同时,AP对该Probe Request帧进行应答,向STA返回Probe Response帧。
S303、STA 102向AP 101发送认证请求(Authentication Request)帧。
STA 102接收到AP 101发送的Probe Response帧后,则可以向AP 101发送Authentication Request帧,以进行STA 102的身份认证。
S304、AP 101向STA 102返回认证响应(Authentication Response)帧。
AP 101接收到Authentication Request帧后,可以对STA 102进行身份认证。在身份认证通过后,向第二设备1002返回Authentication Response帧,以指示身份认证通过。
S305、STA 102向AP 101发送关联请求(Association Request)帧。
STA 102的身份认证通过后,Wi-Fi连接的所有的准备工作就绪。此时,STA 102可以向AP 101发起正式连接请求,即Association Request帧,请求接入AP 101提供的Wi-Fi网络。
S306、AP 101向STA 102返回关联响应(Association Response)帧。
AP 101接收到Association Request帧后,可以回应Association Request帧,向STA 102发送Association Response帧。至此,Wi-Fi连接完成,STA 102可以通过AP 101提供的Wi-Fi网络进行数据传输。
可以理解,在上述建立Wi-Fi连接的过程中,可能会因为上述扫描过程、认证过程或者关联过程中任一过程出现Wi-Fi连接出错,导致Wi-Fi连接失败。本申请实施例提供一种传输控制方法,可以及时发现Wi-Fi连接出错,并进行容错处理。
在第一种应用场景中,该传输控制方法应用于第一设备与第二设备建立第一通信连接的过程中。本申请实施例中的第一设备可以是上述STA 102,第二设备是AP 101。或者,第一设备可以是上述AP 101,第二设备是STA 102。如图4所示,该传输控制方法可以包括S401-S404:
S401、在第一设备与第二设备建立第一通信连接的过程中,第一设备发现第一通信连接出错。
在本申请实施例的第一种实现方式中,假设第一设备是STA 102,第二设备是AP  101,第一通信连接是Wi-Fi连接。在第一种实现方式中,可以由STA 102确定Wi-Fi连接出错。
具体的,STA 102确定Wi-Fi连接出错可以包括:STA 102执行S301后,第一预设时间内没有接收到AP 101发送的Probe Response帧,确定Wi-Fi连接出错。或者,STA 102执行S303后,第一预设时间内没有接收到AP 101发送的Authentication Response帧,确定Wi-Fi连接出错。或者,STA 102执行S305后,第一预设时间内没有接收到AP 101发送的Association Response帧,确定Wi-Fi连接出错。
在第一种实现方式中,上述Wi-Fi连接出错可以是由于AP 101故障导致的。其中,AP 101故障至少可以包括情况(1)、情况(2)和情况(3)。
情况(1):AP 101的Wi-Fi装置故障,不能收发Wi-Fi帧。
在第一种应用场景中结合情况(1),AP 101的Wi-Fi装置故障时,不能接收STA 102发送的Probe Request帧、Authentication Request帧或者Association Request帧。从而,也不能向STA 102发送Probe Response帧、Authentication Response帧或者Association Response帧。或者,AP 101的Wi-Fi装置故障,只能接收STA 102发送的Probe Request帧、Authentication Request帧或者Association Request帧,而不能向STA 102发送Probe Response帧、Authentication Response帧或者Association Response帧。
情况(2):AP 101的网络故障,不能提供Wi-Fi网络。
例如,当AP 101是无线路由器时,AP 101的网络故障可以是指该无线路由器的光纤网络故障。当AP 101是终端(如手机)提供的Wi-Fi热点时,AP 101的网络故障可以是指该手机的移动网络(如第四代移动电话行动通信标准(Fourth Generation of mobile phone mobile communications standards,4G)网络)故障。
情况(3):AP 101的其他部件故障,不能协助Wi-Fi装置收发Wi-Fi帧。
其中,除上述情况(1)和情况(2)中的故障外,AP 101的其他部件故障,不能协助Wi-Fi装置收发Wi-Fi帧,也会导致Wi-Fi装置收发Wi-Fi帧。例如,上述AP 101的其他部件可以包括AP 101的CPU。
可选的,AP 101故障还可以包括AP 101断电。当AP 101断电时,AP 101也不能收发Wi-Fi帧。
在第一种实现方式中,Wi-Fi连接出错还可以是由于STA 102故障导致的。其中,STA 102故障至少可以包括情况(4):
情况(4):STA 102的Wi-Fi装置故障,不能接收AP 101发送的Wi-Fi帧。
在第一种应用场景中结合情况(4),STA 102发送Probe Request帧、Authentication Request帧或者Association Request帧后,STA 102的Wi-Fi装置故障。此时,STA 102无法接收AP 101发送的Probe Response帧、Authentication Response帧或者Association Response帧。
或者,STA 102确定Wi-Fi连接出错可以包括:STA 102接收到Probe Response帧后,无法执行S303向AP 101发送Authentication Request帧,确定Wi-Fi连接出错。或者,STA 102接收到Authentication Response帧后,无法执行S305向AP 101发送Association Request帧,确定Wi-Fi连接出错。其中,上述Wi-Fi连接出错可以是由于STA 102的Wi-Fi装置故障导致的。
在本申请实施例的第二种实现方式中,假设第一设备是AP 101,第二设备是STA 102,第一通信连接是Wi-Fi连接。在第一种实现方式中,可以由AP 101确定Wi-Fi连接出错。
具体的,AP 101确定Wi-Fi连接出错可以包括:AP 101执行S302向STA 102发送Probe Response帧后,第二预设时间内没有接收到STA 102发送的Authentication Request帧,确定Wi-Fi连接出错。AP 101执行S304向STA 102发送Authentication Response帧后,第二预设时间内没有接收到STA 102发送的Association Request帧,确定Wi-Fi连接出错。
在第二种实现方式中,上述Wi-Fi连接出错可以是由于AP 101故障导致的。其中,AP 101故障至少可以包括情况(5)、情况(6)和情况(7)。
情况(5):AP 101的Wi-Fi装置故障,不能收发Wi-Fi帧。
在第一种应用场景中结合情况(5),AP 101的Wi-Fi装置故障时,不能接收STA 102发送的Authentication Request帧或者Association Request帧。
情况(6):AP 101的网络故障,不能提供Wi-Fi网络。其中,情况(6)的详细描述可以参考情况(2),本申请实施例这里不再赘述。
情况(7):AP 101的其他部件故障,不能协助Wi-Fi装置收发Wi-Fi帧。其中,情况(7)的详细描述可以参考情况(3),本申请实施例这里不再赘述。
在第二种实现方式中,Wi-Fi连接出错还可以是由于STA 102故障导致的。其中,STA 102侧故障至少可以包括情况(8):
情况(8):STA 102的Wi-Fi装置故障,不能向AP 101发送Wi-Fi帧。
在第一种应用场景中结合情况(8),STA 102无法接收Probe Response帧、Authentication Response帧或者Association Response帧,也无法发送Authentication Request帧或者Association Request帧。
在本申请实施例的第三种实现方式中,假设第一通信连接是Wi-Fi连接。上述Wi-Fi连接出错可以是由于第一设备或者第二设备不支持5G Wi-Fi,导致5G Wi-Fi连接无法建立。
S402、第一设备通过第二通信连接向第二设备发送第一通信连接的错误信息。
以第一通信连接是Wi-Fi连接,第二通信连接是蓝牙连接为例。第一设备在确定Wi-Fi连接出错后,可以向第二设备发送Wi-Fi连接的错误信息。该错误信息用于指示第一设备与第二设备的Wi-Fi连接出错。
在一些实施例中,在执行S401之前,第一设备与第二设备的蓝牙均处于开启状态。并且,第一设备与第二设备建立了蓝牙连接。即在S401之前,第一设备与第二设备便建立了第二通信连接。这样,第一设备发现Wi-Fi连接出错时,便可以直接通过第一设备与第二设备的蓝牙连接,向第二设备发送错误信息。
可以理解,与第一设备建立了蓝牙连接的设备包括但不限于第二设备。第一设备需要获取上述第二设备的标识。第一设备根据第二设备的标识,从与第一设备建立了蓝牙连接的设备中选择出第二设备。其中,本申请实施例中,第二设备的标识可以用于唯一标识第二设备。例如,第二设备的标识可以为第二设备的媒体访问控制(Media Access Control,MAC)地址。第一设备发现第一设备与第二设备的Wi-Fi连接出错时, 可以获取第二设备的MAC地址(如MAC地址-1)。然后,第一设备可以查找与第一设备建立了蓝牙连接的设备中,MAC地址为MAC地址-1的设备。最后,第一设备可以通过蓝牙连接向查找到的设备发送错误信息。
在另一些实施例中,第二设备的第二通信连接(如蓝牙连接)的功能处于开启状态。在执行S402之前,第一设备的第二通信连接的功能处于关闭状态。如图5所示,在S401之后,S402之前,本申请实施例的方法还包括S501:
S501、响应于发现第一通信连接出错,第一设备开启第一设备的第二通信连接的功能,并与第二设备建立第二通信连接。
例如,假设第一通信连接是Wi-Fi连接,第二通信连接是蓝牙连接。第二设备的蓝牙处于开启状态,即第二设备的蓝牙被打开。在执行S402之前,第一设备的蓝牙可以处于关闭状态。响应于发现Wi-Fi连接出错,第一设备可以开启第一设备的蓝牙,并与第二设备建立蓝牙连接。
其中,第一设备在发现第一通信连接出错时,才开启第一设备的第二通信连接的功能,并与第二设备建立第二通信连接。这样,可以降低第一设备的功耗。
在另一些实施例中,第二设备的第二通信连接的功能处于开启状态。在执行S402之前,第一设备的第二通信连接的功能处于开启状态。但是,第一设备与第二设备并未建立第二通信连接。如图6所示,在S401之后,S402之前,本申请实施例的方法还包括S601:
S601、响应于发现第一通信连接出错,第一设备与第二设备建立第二通信连接。
例如,假设第一通信连接是Wi-Fi连接,第二通信连接是蓝牙连接。在执行S402之前,第一设备的蓝牙可以处于开启状态.但是,第一设备与第二设备并未建立蓝牙连接。响应于发现Wi-Fi连接,第一设备可以与第二设备建立蓝牙连接。
可以理解,第一设备执行S501或者S601,与第二设备建立第二通信连接之前,可以搜索到多个蓝牙设备。第一设备需要获取上述第二设备的标识,然后根据第二设备的标识,从上述多个蓝牙设备中查找该标识所对应的蓝牙设备。第一设备与查找到的蓝牙设备建立蓝牙连接,并向查找到的蓝牙设备发送错误信息。其中,第二设备的标识可以用于唯一标识第二设备。例如,第二设备的标识可以为第二设备的MAC地址。第一设备可以获取第二设备的MAC地址(如MAC地址-1)。然后,第一设备可以查找搜索到的蓝牙设备中,MAC地址为MAC地址-1的设备。最后,第一设备可以与查找到的蓝牙设备建立蓝牙连接,并查找到的蓝牙设备发送错误信息。
其中,第一设备可以基于蓝牙协议,通过第一设备与第二设备之间的蓝牙连接,向第二设备发送携带上述错误信息的蓝牙帧。
示例性的,在一种实现方式中,第一设备可以基于蓝牙串口(Serial Port Profile,SPP)协议向第二设备发送携带上述错误信息的蓝牙帧。
请参考图7,其示出本申请实施例提供的一种SPP蓝牙帧(即基于SPP协议发送的蓝牙帧)的帧结构实例示意图。如图7所示,SPP蓝牙帧可以包括:逻辑链路控制和适配协议(Logical Link Control and Adaptation Protocol,L2CAP)71、RFCOMM72和Data字段73。上述错误信息可以携带在SPP蓝牙帧的Data字段73中。或者,上述错误信息可以携带在SPP蓝牙帧的L2CAP 71中。其中,L2CAP 71包括L2CAP头 711和净核(Payload)字段712。例如,错误信息可以携带在L2CAP 71的Payload字段712中。
或者,上述错误信息可以携带在图8所示的蓝牙帧的L2CAP 81或者Data字段82中。例如,L2CAP 81可以包括L2CAP头811和Payload字段812。上述错误信息可以携带在L2CAP头811或者Payload字段812中。
在另一种实现方式中,上述蓝牙帧可以是基于通用属性配置协议(Generic Attribute Protocol,GATT)的BLE蓝牙帧。请参考图9,其示出本申请实施例提供的一种BLE蓝牙帧的帧结构实例示意图。如图9所示,BLE蓝牙帧可以包括:L2CAP 91和Data字段92。上述错误信息可以携带在BLE蓝牙帧的Data字段92中。或者,上述错误信息可以携带在BLE蓝牙帧的L2CAP 91中。如图9所示,L2CAP 91可以包括:L2CAP头911、属性协议(Attribute Protocol,ATT)字段912和GATT字段913。其中,GATT字段913可以包括:其他字段9131和Payload字段9132。具体的,上述错误信息可以携带在L2CAP头911或者Payload字段9132中。
可选的,上述错误信息中包括上述Wi-Fi连接的错误码。该错误码用于指示第一设备与第二设备的Wi-Fi连接出错的原因。例如,当错误码为00时,用于指示AP 101的Wi-Fi装置故障。当错误码为01时,用于指示STA 102的Wi-Fi装置故障。当错误码是10时,用于指示AP 101的网络故障。当错误码是11时,用于指示AP 101或者STA 102不支持5G Wi-Fi。需要说明的是,本申请实施例中的错误码包括但不限于上述“00”“01”、“10”和“11”。错误码的其他形式本申请实例这里不予赘述。
可选的,本申请实施例中的第二通信连接可以是第一设备与第二设备可能的通信连接中除第一通信连接之外,满足预设条件的通信连接。第一设备发现第一通信连接出错后,可以从第一设备与第二设备可能的通信连接中,选择出除第一通信连接之外、满足预设条件的通信连接。
在一种实现方式中,第一设备选择第二通信连接的方法可以包括:当第一设备与第二设备存在除第一通信连接之外的另一个通信连接时,第一设备确定该另一个通信连接为第二通信连接。例如,假设第一通信连接是Wi-Fi连接。第一设备与第二设备之间不仅建立了Wi-Fi连接,还建立了蓝牙连接。那么第一设备发现Wi-Fi连接出错时,该蓝牙连接为第二通信连接。
可选的,第一设备通过蓝牙连接向第二设备发送错误信息之前,可以发出第一提示信息。该第一提示信息用于指示第一通信连接出错,并请求用户确认通过蓝牙连接向第二设备发送错误信息。其中,第一设备发出第一提示信息的方式可以包括:第一终端显示包括第一提示信息的界面;或者第一终端通过语音提示的方式播放第一提示信息。
例如,假设手机200是第一设备,手机300是第二设备。手机200是STA 102,手机300是AP 101。在手机200与手机300建立Wi-Fi连接的过程中,手机200发现Wi-Fi连接出错。手机200可以显示图10所示的第一提示信息1001。该第一提示信息1001可以为“与手机300建立Wi-Fi连接失败,是否通过蓝牙通知手机300错误信息?”。其中,手机200响应于用户对图10所示的“是”按钮的选择操作,可以通过蓝牙向手机300发送错误信息。
在另一种实现方式中,第一设备选择第二通信连接的方法可以包括:当第一设备与第二设备存在除第一通信连接之外的一个或多个通信连接时,第一设备可以从上述一个或多个通信连接中选择出功耗较小或者传输速率较快的通信连接,作为第二通信连接。
其中,本申请实施例中,功耗较小的通信连接是指多个通信连接传输相同的数据时,功耗最小的通信连接。例如,假设第一通信连接是Wi-Fi连接。第一设备与第二设备之间不仅建立了Wi-Fi连接,还建立了蓝牙连接和ZigBee连接。假设蓝牙连接传输数据的功耗小于ZigBee连接传输数据的功耗。那么第一设备发现Wi-Fi连接出错时,可以确定蓝牙连接为第二通信连接。
本申请实施例中,传输速率较高的通信连接是指多个通信连接传输相同的数据时,传输速率最快的通信连接。例如,假设第一通信连接是Wi-Fi连接。第一设备与第二设备之间不仅建立了Wi-Fi连接,还建立了蓝牙连接和USB连接。假设USB连接传输数据的速率高于蓝牙连接传输数据的速率。那么第一设备发现Wi-Fi连接出错时,可以确定USB连接为第二通信连接。
在另一种实现方式中,第一设备选择第二通信连接的方法可以包括:当第一设备与第二设备存在除第一通信连接之外的多个通信连接时,第一设备显示第一界面。该第一界面包括上述多个通信连接的选择项。第一设备响应于用户对多个通信连接的选择项的选择操作,将用户选择的通信连接作为第二通信连接。
例如,假设手机200是第一设备,手机300是第二设备。手机200是STA 102,手机300是AP 101。手机200与手机300建立了蓝牙连接和USB连接。在手机200与手机300建立Wi-Fi连接的过程中,手机200发现Wi-Fi连接出错。手机200可以显示图11所示的第一界面1101。该第一界面1101中包括蓝牙连接的选择项1102和USB连接的选择项1103。手机200可以响应于用户对蓝牙连接的选择项1102的选择操作(如单击操作),选择蓝牙连接作为第二通信连接。并且,手机200可以通过蓝牙连接向手机300发送错误信息。
上述第一界面1101还可以包括第二提示信息1104。该第二提示信息1104用于指示Wi-Fi连接出错,并指示用户从待选的通信连接中选择一个通信连接,以向手机300发送错误信息。例如,该第二提示信息1104可以为“与手机300建立Wi-Fi连接失败,请选择一种通信连接向手机300通知错误信息!”。其中,响应于用户对图11所示的“取消”按钮的选择操作,手机200可以不需要通过任一通信连接向手机300发送错误信息。并且,手机300可以停止与手机300建立Wi-Fi连接。
在另一种实现方式中,第一设备选择第二通信连接的方法可以包括:当第一设备与第二设备仅存在第一通信连接时,第一设备可以请求与第二设备建立第二通信连接。在这种实现方式中,该第二通信连接可以是第一设备与第二设备可能的通信连接中的任一通信连接。或者,该第二通信连接可以是第一设备与第二设备可能的通信连接中、功耗较小或者传输速率较快的通信连接。
在另一种实现方式中,第一设备选择第二通信连接的方法可以包括:当第一设备与第二设备仅存在第一通信连接时,第一设备可以请求与第二设备建立用户选择的通信连接(即第二通信连接)。具体的,第一设备响应于发现第一通信连接出错,可以 显示第三界面。该第三界面中包括第一设备与第二设备可能的通信连接的选择项。第一设备响应于用户对上述通信连接的选择项的选择操作,可以请求与第二设备建立用户选择的选择项对应的第二通信连接。
例如,假设手机200是第一设备,手机300是第二设备。手机200是STA 102,手机300是AP 101。在手机200与手机300建立Wi-Fi连接的过程中,手机200发现Wi-Fi连接出错。手机200可以显示图12所示的第三界面1201。该第三界面1201中包括蓝牙连接的选择项1202、USB连接的选择项1203和ZigBee连接的选择项1204等。手机200可以响应于用户对蓝牙连接的选择项1202的选择操作(如单击操作),选择蓝牙连接作为第二通信连接。并且,手机200可以请求与手机300建立蓝牙连接,并通过蓝牙连接向手机300发送错误信息。
可选的,上述第三界面1201还可以包括第三提示信息1205。该第三提示信息1205用于指示Wi-Fi连接出错,并指示用户从待选的通信连接中选择一个通信连接,以与手机300建立对应的通信连接,并通过该通信连接向手机300发送错误信息。例如,该第三提示信息1205可以为“与手机300建立Wi-Fi连接失败,请选择一个通信连接,以便手机200与手机300建立该通信连接,通过该通信连接向手机300通知错误信息!”。
S403、第二设备接收第一设备通过第二通信连接发送的第一通信连接的错误信息。
基于上述实例,第二设备可以接收第一设备通过蓝牙连接发送的Wi-Fi连接的错误信息。
在S403之后,第一设备和第二设备可以根据上述错误信息,对第一通信连接进行容错处理。即在S403之后,本申请实施例的方法还可以包括S404:
S404、第一设备与第二设备根据错误信息,对第一通信连接进行容错处理。
在本申请一些实施例中,上述S404具体可以包括S1301-S1302。例如,如图13所示,图4所示的S404可以包括S1301-S1302:
S1301、第一设备与第二设备通过第二通信连接,交互第一通信连接的连接参数。
S1302、第一设备与第二设备根据通过第二通信连接传输的第一通信连接的连接参数,建立第一通信连接。
在一种实现方式中,第二设备在接收到上述错误信息后,可以主动请求与第一设备重新建立第一通信连接。在本申请实施例中,第二设备与第一设备可以通过第二通信连接,交互第一通信连接的连接参数。
示例性的,假设第一设备是AP 101,第二设备是STA 102。第一通信连接是Wi-Fi连接,第二通信连接的蓝牙连接。STA 102接收到AP 101通过蓝牙连接发送的错误信息后,可以通过蓝牙连接与AP 101交互Wi-Fi连接的连接参数。
其中,本申请实施例中,Wi-Fi连接的连接参数可以包括:STA 102的Wi-Fi能力(例如,STA 102支持Wi-Fi 5G和Wi-Fi 2.4G,或者STA 102Wi-Fi 2.4G等)、STA 102支持的传输速率、AP 101的服务集标识(Service Set Identifier,SSID)和Wi-Fi的密钥等。
需要说明的是,以第一通信连接是Wi-Fi连接,第二通信连接的蓝牙连接为例。本申请实施例中,第一设备和第二设备可以基于蓝牙协议,通过第一设备与第二设备之间的蓝牙连接,交互Wi-Fi连接的连接参数。其中,第一设备和第二设备基于蓝牙 协议,通过蓝牙连接交互Wi-Fi连接的连接参数的具体方式,可以参考第一设备和第二设备基于蓝牙协议,通过蓝牙连接传输Wi-Fi连接的错误信息的方法,本申请实施例这里不予赘述。
可选的,在S403(第二设备接收错误信息)后,第二设备可以显示第五界面,该第五界面中包括第三确认信息。该第三确认信息用于指示第二设备通过第二通信连接接收到第一通信连接的错误信息,并请求用户确认是否通过第二通信连接重新建立第一通信连接。例如,假设手机300是第二设备。结合图10-图12中的任一附图,如图14所示,手机300接收到手机200通过蓝牙连接发送的错误信息后,可以显示图14所示的第五界面1401。第五界面1401中包括第三确认信息1402。举例来说,第三确认信息1402可以为“手机200通过蓝牙连接指示Wi-Fi连接失败,是否通过蓝牙连接重新建立Wi-Fi连接?”。手机300接收用户对第五界面1401中的“是”按钮的点击操作(如单击操作)。响应于该点击操作,手机300可以通过蓝牙连接与手机200交互Wi-Fi连接的连接参数,并重新建立Wi-Fi连接。
在另一种实现方式中,响应于发现第一通信连接出错,第一设备通过第二通信连接向第二设备发送错误信息后,还可以主动请求与第一设备重新建立第一通信连接。示例性的,假设第一设备是AP 101,第二设备是STA 102。第一通信连接是Wi-Fi连接,第二通信连接的蓝牙连接。AP 101向STA 102发送错误信息后,还可以通过蓝牙连接与STA 102交互Wi-Fi连接的连接参数。例如,如图10所示,手机200响应于用户对“是”按钮的点击操作,还可以通过蓝牙连接与手机300交互Wi-Fi连接的连接参数,并重新建立Wi-Fi连接。如图11或图12所示,手机200响应于用户对蓝牙连接选择项的选择操作,还可以通过蓝牙连接与手机300交互Wi-Fi连接的连接参数,并重新建立Wi-Fi连接。
可以理解,在第一通信连接出错后,第一设备和第二设备还可以根据错误信息,对导致第一通信连接出错的原因进行纠错处理,以便于可以尽快重新建立第一通信连接。但是,第一设备和第二设备进行纠错处理需要时间。本申请实施例中,第一设备与第二设备可以在第一通信连接出错后,通过第二通信连接,交互第一通信连接的连接参数。这样,在第一设备与第二设备纠正上述错误后,便可以直接根据通过第二通信连接传输的第一通信连接的连接参数,重新建立第一通信连接。如此,可以缩短建立第一通信连接的时间,提高建立第一通信连接的效率。
本申请实施例提供一种传输控制方法,第一设备可以在发现第一通信连接出错后,通过第二通信连接向第二设备发送第一通信连接的错误信息。第一设备及时向第二设备发送第一通信连接的错误信息,可以使得第二设备可以及时感知到第一通信连接出错。并且,第一设备与第二设备可以在第一通信连接出错后,通过第二通信连接交互第一通信连接的连接参数。然后,直接根据该连接参数重新建立第一通信连接。如此,可以缩短建立第一通信连接的时间,提高建立第一通信连接的效率。
在本申请实施例的第二种应用场景中,第一设备与第二设备已经建立了第一通信连接。本申请实施例提供的传输控制方法可以应用于第一设备与第二设备,通过第一通信连接进行数据传输的过程中。例如,本申请实施例的方法可以应用于手机克隆的场景中。以第一通信连接是Wi-Fi连接为例。在手机克隆的场景中,手机1(即第一 设备)与手机2(即第二设备)可以通过Wi-Fi连接传输克隆信息(即第一数据)。其中,上述克隆信息(即第一数据)可以包括手机1中的各种通讯数据、手机短信、微信信息、照片以及联系人等。在手机1与手机2通过Wi-Fi连接传输克隆信息的过程中,如果Wi-Fi连接出错;手机1与手机2可以通过第二通信连接(如蓝牙连接)交互第一通信连接的错误信息。并且,手机1与手机2可以通过第二通信连接(如蓝牙连接)继续传输上述克隆信息。手机1与手机2还可以通过第二通信连接(如蓝牙连接)交互Wi-Fi连接的连接参数,以重新建立Wi-Fi连接。
示例性的,第一通信连接可以是Wi-Fi连接。第一设备可以是上述STA 102,第二设备是AP 101。或者,第一设备可以是上述AP 101,第二设备是STA 102。或者,第一设备可以是上述STA 102,第二设备是STA 103。STA 102与STA 103可以通过AP 101提供的Wi-Fi网络进行数据传输。
本申请实施例提供一种传输控制方法,如图15所示,该传输控制方法可以包括S1501-S1507:
S1501、第一设备与第二设备通过第一通信连接传输第一数据。
示例性的,本申请实施例中的第一数据可以为文件、信令或者消息等多种数据形式。本申请实施例对第一数据的具体形式不作限制。
S1502、在第一设备与第二设备通过第一通信连接传输第一数据的过程中,第一设备发现第一通信连接出错。
其中,第一设备可以是第一数据的接收端,也可以是第一数据的发送端。例如,当第一设备是第一数据的接收端时,如果第一设备发现接收到的第一数据出现乱码的情况,第一设备便可以检查第一通信连接是否出错。
在一种实现方式中,假设第一设备是STA 102,第二设备是AP 101,第一通信连接是Wi-Fi连接。Wi-Fi连接出错可以是由于AP 101故障导致的。其中,AP 101故障至少可以包括上述情况(1)、情况(2)和情况(3)。可选的,AP 101故障还可以包括AP 101断电。或者,Wi-Fi连接出错还可以是由于STA 102故障导致的。其中,STA 102故障至少可以包括上述情况(4)。
在另一种实现方式中,假设第一设备是AP 101,第二设备是STA 102,第一通信连接是Wi-Fi连接。上述Wi-Fi连接出错可以是由于AP 101故障导致的。其中,AP 101故障至少可以包括上述情况(5)、情况(6)和情况(7)。或者,Wi-Fi连接出错还可以是由于STA 102故障导致的。其中,STA 102侧故障至少可以包括上述情况(8)。
在另一种实现方式中,假设第一设备是STA 103,第二设备是STA 102,第一通信连接是Wi-Fi连接。上述Wi-Fi连接出错可能是AP 101故障导致的。其中,当AP 101发生故障时,无法为STA 103和STA 102提供Wi-Fi网络,从而导致Wi-Fi连接出错,第一数据传输异常。
S1503、第一设备通过第二通信连接向第二设备发送第一通信连接的错误信息。
其中,S1503的详细描述可以参考上述实施例中S402的相关介绍,本申请实施例这里不予赘述。
在一种实现方式中,在S1502之前,第二设备的第二通信连接(如蓝牙连接)的功能处于开启状态。在另一种实现方式中,在S1502之后,S1503之前,本申请实施 例的方法还可以包括上述S501或者S601。其中,S501和S601的详细描述本申请实施例这里不再赘述。
可选的,本申请实施例中的第二通信连接可以是第一设备与第二设备可能的通信连接中除第一通信连接之外,满足预设条件的通信连接。第一设备发现第一通信连接出错后,可以从第一设备与第二设备可能的通信连接中,选择出除第一通信连接之外、满足预设条件的通信连接。
需要说明的是,第一设备选择第二通信连接的方法可以参考第一种应用场景中的详细描述,本申请实施例这里不再赘述。
S1504、第二设备接收第一设备通过第二通信连接发送的第一通信连接的错误信息。
其中,S1504的详细描述可以参考上述实施例中S403的相关介绍,本申请实施例这里不予赘述。
在S1504之后,在一些实施例中,第一设备与第二设备可以通过第二通信连接,交互第一通信连接的连接参数,以便于重新建立第一通信连接。具体的,在S1504之后,本申请实施例的方法还可以包括上述S1505-S1507。
S1505、第一设备与第二设备通过第二通信连接,交互第一通信连接的连接参数。
S1506、第一设备与第二设备根据通过第二通信连接传输的第一通信连接的连接参数,建立第一通信连接。
其中,S1505-S1506的详细描述可以参考上述实施例中S1301-S1302的相关介绍,本申请实施例这里不予赘述。
S1507、在建立第一通信连接后,第一设备与第二设备根据第一数据的第一断点信息,通过第一通信连接传输第一数据。
可选的,上述错误信息中还可以包括第一数据的第一断点信息。其中,第一数据的第一断点信息用于指示传输第一数据的过程中,第一设备与第二设备已经正确传输的数据的截止位置。例如,该第一数据的第一断点信息可以为第一数据中最近被正确传输的数据的标识。其中,第一数据中最近被正确传输的数据是指截止第一通信连接出错,第一数据中最新被正确传输的数据。这样,第一设备与第二设备便可以根据第一数据的第一断点信息,通过第一通信连接继续传输第一数据。
本申请实施例提供的传输控制方法,第一设备可以在发现第一通信连接出错后,通过第二通信连接向第二设备发送第一通信连接的错误信息。第一设备及时向第二设备发送第一通信连接的错误信息,可以使得第二设备可以及时感知到第一通信连接出错。并且,第一设备与第二设备可以在第一通信连接出错后,通过第二通信连接交互第一通信连接的连接参数。然后,直接根据该连接参数重新建立第一通信连接。如此,可以缩短建立第一通信连接的时间,提高建立第一通信连接的效率。
在另一些实施例中,为了提高第一数据的传输效率。第一设备与第二设备在执行S1505-S1506的过程中,可以根据第一数据的第一断点信息,直接通过第二通信连接继续传输第一数据。具体的,如图16A所示,在S1504之后,本申请实施例的方法还可以包括S1505-S1506和S1601:
S1601、第一设备与第二设备根据第一数据的第一断点信息,通过第二通信连接继续传输第一数据。
需要说明的是,在图16A所示的方案中,第一设备与第二设备同时执行S1505-S1506以及S1601。
在另一些实施例中,在S1504之后,第一设备与第二设备可以直接通过第二通信连接继续传输第一数据。在这种情况下,在S1504之后,本申请实施例的方第一设备与第二设备可以不执行S1505-S1507,而是直接执行S1601。具体的,如图16B所示,在S1504之后,本申请实施例的方法还可以包括S1601。
本申请实施例提供的传输控制方法,第一设备可以在发现第一通信连接出错后,通过第二通信连接向第二设备发送第一通信连接的错误信息。第一设备及时向第二设备发送第一通信连接的错误信息,可以使得第二设备可以及时感知到第一通信连接出错。并且,第一设备与第二设备可以在第一通信连接出错后,直接根据第一数据的第一断点信息,通过第二通信连接继续传输第一数据。
以第一通信连接是Wi-Fi连接,第二通信连接是蓝牙连接为例。可以理解,在第一设备与第二设备已建立了蓝牙连接的情况下,由于第一设备与第二设备重新建立Wi-Fi连接需要时间;因此,第一设备与第二设备之间通过蓝牙连接传输第一数据,可以快速完成第一数据的传输,提高第一数据的传输效率。在第一设备与第二设备未建立了蓝牙连接的情况下,由于第一设备与第二设备重新建立Wi-Fi连接需要时间,并且建立蓝牙连接所需要的时间小于建立Wi-Fi连接需要时间;因此,第一设备与第二设备之间通过蓝牙连接传输第一数据,可以快速完成第一数据的传输,提高第一数据的传输效率。
可选的,本申请实施例中,在S1504之后,第一设备或者第二设备可以根据预设策略,确定继续执行S1505-S1507,或者继续执行S1601,或者继续执行S1505-S1506和S1601。其中,第一设备或者第二设备根据预设策略,确定执行上述步骤的方法可以包括:第一设备或者第二设备根据第一数据的业务类型、第一数据的数据量和可用资源中的至少一项,确定执行上述步骤。其中,上述可用资源可以包括第一设备与第二设备可用的通信连接。
第一数据的业务类型可以指示第一数据是视频类数据、音频类数据或者文本类数据等。不同业务类型的数据对时延的要求不同。例如,当用户使用Wi-Fi网络观看视频的过程中,上述第一数据是视频类数据。为了保证用户观看视频时的用户体验,视频类数据对时延的要求一般较高。例如,视频类数据对时延的要求高于文本类数据对时延的要求。因此,当第一数据是视频类数据时,为了保证视频类数据的连续不中断传输,在S1504之后,第一设备与第二设备可以直接执行S1601,根据第一数据的第一断点信息,通过第二通信连接继续传输第一数据。
或者,当第一数据是视频类数据时,为了保证视频类数据的连续不中断传输,在S1504之后,第一设备与第二设备可以执行S1505-S1506和S1601。即第一设备与第二设备可以在重新建立Wi-Fi连接的同时,通过蓝牙连接传输该视频类数据。
当第一数据对时延的要求较低时,第一设备与第二设备则可以在重新建立Wi-Fi连接后,再通过重新建立的Wi-Fi连接继续传输该第一数据。即在S1504之后,第一设备与第二设备可以执行S1505-S1507。
可选的,考虑到第一通信连接的传输速率可能大于第二通信连接的传输速率。第 一设备和第二设备可以在第一通信连接建立成功之后,重新通过第一通信连接传输第一数据。即如图17所示,图16A所示的S1505-S1506和S1601之后,本申请实施例的方法还可以包括S1701:
S1701、在第一通信连接建立成功时,如果第一数据还未传输完,第一设备与第二设备停止通过第二通信连接继续传输第一数据,并根据第一数据的第二断点信息,通过第一通信连接继续传输第一数据。
可选的,S1701可以替换为:在第一通信连接建立成功时,如果第一数据还未传输完,且第一通信连接的传输速率高于第二通信连接的传输速率,第一设备与第二设备停止通过第二通信连接继续传输第一数据,并根据第一数据的第二断点信息,通过第一通信连接继续传输第一数据。
其中,上述第二断点信息可以是第一设备与第二设备通过上述第二通信连接传输的。第二断点信息用于指示在通过第二通信连接传输第一数据的过程中,第一设备与第二设备已经正确传输的数据的截止位置。
例如,基于上述实例,当第一设备与第二设备重新建立Wi-Fi连接后,上述视频类数据还未传输完,第一设备与第二设备则可以停止通过蓝牙连接传输该视频类数据。并且,第一设备与第二设备可以根据该视频类数据的第二断点信息,通过Wi-Fi连接继续传输视频类数据。
可选的,在第一通信连接建立成功时,如果第一数据还未传输完,终端可以判断第一数据中、还未传输完的数据量是否大于预设数据量阈值。当还未传输完的数据量大于预设数据量阈值时,终端可以停止通过第二通信连接继续传输第一数据,并通过第一通信连接继续传输第一数据。当还未传输完的数据量小于或者等于预设数据量阈值时,终端可以继续通过第二通信连接传输第一数据。其中,第一数据的数据量可以指示第一数据的大小。当第一数据的数据量较小时,第一设备和第二设备可以通过上述蓝牙设备传输该第一数据,直至第一数据传输完。即使Wi-Fi连接重新建立,也不需要通过重新建立的Wi-Fi连接传输该第一数据。
上述可用资源可以包括第一设备与第二设备可用的通信连接。例如,当第一设备与第二设备除上述第一通信连接(如Wi-Fi连接)之外,没有其他的可用通信连接,或者无法建立其他的可用通信连接时,第一设备与第二设备则可以在重新建立Wi-Fi连接后,再通过重新建立的Wi-Fi连接继续传输该第一数据。即在S1504之后,第一设备与第二设备可以执行S1505-S1507。
可选的,本申请实施例中,还可以由用户决定在S1504之后,第一设备与第二设备继续执行S1505-S1507、S1601或者S1505-S1506和S1601。
在一种实现方式中,可以由第一设备的用户决定在S1503之后,第一设备与第二设备继续执行S1505-S1507、S1601或者S1505-S1506和S1601。第一设备响应于发现第一通信连接出错,可以在执行S1503的同时,显示第二界面。第二界面中包括第一确认信息。第一确认信息用于指示第一通信连接出错,并请求用户确认“重新建立第一通信连接,然后通过重新建立的第一通信连接传输第一数据”或者“通过第二通信连接传输第一数据”。
例如,假设第一设备是手机400,第一通信连接是Wi-Fi连接,第二通信连接是 蓝牙连接。手机400响应于发现Wi-Fi连接出错,可以在执行S1503的同时,显示图18所示的第二界面1801。第二界面1801中包括第一确认信息1802。第一确认信息1802可以为“Wi-Fi连接出错!请确认在重新建立Wi-Fi连接后,通过重新建立的Wi-Fi连接传输第一数据,还是通过蓝牙连接传输第一数据?”。
在另一种实现方式中,可以由第二设备的用户决定在S1504之后,第一设备与第二设备继续执行S1505-S1507、S1601或者S1505-S1506和S1601。第二设备响应于接收到第一通信连接的错误信息,可以显示第二界面。第二界面中包括第一确认信息。第一确认信息用于指示第一通信连接出错,并请求用户确认“重新建立第一通信连接,然后通过重新建立的第一通信连接传输第一数据”或者“通过第二通信连接传输第一数据”。例如,假设第二设备是手机400,第一通信连接是Wi-Fi连接,第二通信连接是蓝牙连接。手机400接收到Wi-Fi连接的错误信息,可以显示图18所示的第二界面1801。第二界面1801中包括第一确认信息1802。第一确认信息1802可以为“Wi-Fi连接出错!请确认在重新建立Wi-Fi连接后,通过重新建立的Wi-Fi连接传输第一数据,还是通过蓝牙连接传输第一数据?”。手机400响应于用户对图18所示的“重新建立Wi-Fi连接,然后通过重新建立的Wi-Fi连接传输第一数据”选项的选择操作,可以执行S1505-S1507。手机400响应于用户对图18所示的“通过蓝牙连接传输第一数据”选项的选择操作,可以执行S1505-S1506和S1601,或者,可以执行S1601。
可选的,如果用户选择了“通过蓝牙连接传输第一数据”,那么在Wi-Fi连接重新建立成功时,如果第一数据还未传输完,手机400还可以显示第四界面1901。第四界面1901中包括第二确认信息1902。第二确认信息1902用于指示Wi-Fi连接重新建立成功,是否通过重新建立的Wi-Fi连接继续传输数据。手机400响应于用户对图19所示的“是”按钮的点击操作,可以停止通过蓝牙连接传输第一数据,并根据第一数据的第二断点信息,通过Wi-Fi连接继续传输第一数据。手机400响应于用户对图19所示的“否”按钮的点击操作,可以继续通过蓝牙连接传输第一数据。
需要说明的是,第一设备和第二设备可以基于蓝牙协议,通过第一设备与第二设备之间的蓝牙连接,传输上述第一数据。其中,第一设备和第二设备基于蓝牙协议,通过蓝牙连接传输第一数据的具体方式,可以参考第一设备和第二设备基于蓝牙协议,通过蓝牙连接传输Wi-Fi连接的错误信息的方法,本申请实施例这里不予赘述。
本申请实施例提供一种传输控制方法,不仅可以提高建立第一通信连接的效率,还可以提高第一数据的传输效率。并且,第一设备或者第二设备还可以响应于用户对第一数据的传输方式的选择,通过用户选择的通信连接完成第一数据的传输。这样,可以提高设备与用户的交互性能。
可以理解的是,上述第一设备和第二设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对上述设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,如图20所示,本申请实施例提供一种设备2000,该设备2000包括:第一通信单元2001、检测单元2002和第二通信单元2003。
其中,第一通信单元2001用于支持设备2000执行上述方法实施例中的S301、S303、S305、S1501、S1507,/或用于本文所描述的技术的其它过程。
检测单元2002用于支持设备2000执行上述方法实施例中的S401、S1502,/或用于本文所描述的技术的其它过程。
第二通信单元2003用于支持设备2000执行上述方法实施例中的S402、S1301、S1503、S1505、S1601,和/或用于本文所描述的技术的其它过程。
进一步的,如图21所示,上述设备2000还可以包括:建立单元2004。建立单元2004用于支持设备2000与第二设备建立第一通信连接和第二通信连接。具体的,建立单元2004用于支持设备2000执行上述方法实施例中的S501、S601、S1302、S1506,和/或用于本文所描述的技术的其它过程。
进一步的,上述设备2000还可以包括:控制单元。控制单元用于支持设备2000执行上述方法实施例中的S404、S1701中控制第二通信单元2003“停止通过第二通信连接继续传输第一数据”的操作,和/或用于本文所描述的技术的其它过程。
进一步的,上述设备2000还可以包括:选择单元。选择单元用于支持设备2000从一个或多个通信连接中选择出第二通信连接,和/或用于本文所描述的技术的其它过程。
进一步的,上述设备2000还可以包括:提示单元。提示单元用于支持设备2000发出第一提示信息,和/或用于本文所描述的技术的其它过程。
进一步的,上述设备2000还可以包括:显示单元和确定单元。显示单元用于支持设备2000显示第一界面、第三界面、第二界面以及第四界面等,和/或用于本文所描述的技术的其它过程。确定单元用于支持设备2000响应于用户对显示单元显示的通信连接的选择项的选择操作,确定用户选择的通信连接为第二通信连接,和/或用于本文所描述的技术的其它过程。
当然,上述设备2000的功能单元备包括但不限于上述单元。例如,上述设备2000还可以包括存储单元。
在采用集成单元的情况下,上述第一通信单元2001和第二通信单元2003可以集成在一个通信模块中实现。上述检测单元2002、建立单元2004、控制单元、选择单元、提示单元和确定单元可以在一个处理模块中实现。上述显示单元可以为显示模块。上述存储单元可以是存储模块。图22示出了上述实施例中所涉及的设备的一种可能的结构示意图。该设备2200包括:处理模块2201、存储模块2202和显示模块2203和通信模块2204。
其中,处理模块2201用于对设备2200进行控制管理。显示模块2203用于显示界面以及接收用户的触控操作。存储模块2202,用于保存设备2200的程序代码和数据。通信模块2204用于与其他设备通信。如通信模块用于接收或者向其他设备发送的信息。
其中,处理模块2201可以是处理器或控制器,例如可以包括中央处理器(Central Processing Unit,CPU)和图形处理器(Graphics Processing Unit,GPU),通用处理器,数字信号处理器(Digital Signal Processor,DSP),专用集成电路(Application-Specific Integrated Circuit,ASIC),现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块可以是收发器、收发电路或通信接口等。存储模块2202可以是存储器。
当处理模块2201为处理器(如图2所示的处理器201,通信模块为射频电路(如图2所示的射频电路202),存储模块2202为存储器(如图2所示的存储器203),显示模块2203为显示器(包括图2所示的包括触控板204-1和显示板204-5的显示器204)时,本申请所提供的设备可以为图2所示的手机200。其中,上述通信模块不仅可以包括射频电路,还可以包括WiFi模块和蓝牙模块。射频电路、WiFi模块和蓝牙模块等通信模块可以统称为通信接口。或者,上述WiFi模块可以称为第一通信接口,蓝牙模块可以称为第二通信接口。其中,上述处理器、通信接口、触摸屏和存储器可以通过总线耦合在一起。
本申请实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机程序代码,当上述处理器执行该计算机程序代码时,设备执行图4、图5、图6、图13、图15、图16A、图16B和图17中任一附图中的相关方法步骤实现上述实施例中的方法。
本申请实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行图4、图5、图6、图13、图15、图16A、图16B和图17中任一附图中的相关方法步骤实现上述实施例中的方法。
其中,本申请提供的设备2000和设备2200、计算机存储介质或者计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或 不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (35)

  1. 一种传输控制方法,其特征在于,所述传输控制方法包括:
    第一设备与第二设备通过第一通信连接传输第一数据,所述第一通信连接是无线保真Wi-Fi连接;
    所述第一设备与所述第二设备通过所述第一通信连接传输所述第一数据的过程中,所述第一设备发现所述第一通信连接出错;
    所述第一设备通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息,所述第二通信连接与所述第一通信连接不同,所述错误信息用于指示所述第一通信连接出错。
  2. 根据权利要求1所述的传输控制方法,其特征在于,所述错误信息包括所述第一数据的第一断点信息,所述第一断点信息用于指示所述第一数据中、所述第一设备与所述第二设备已经正确传输的数据的截止位置;
    在所述第一设备通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之后,所述方法还包括:
    所述第一设备与所述第二设备根据所述第一断点信息,通过所述第二通信连接传输所述第一数据。
  3. 根据权利要求1或2所述的传输控制方法,其特征在于,在所述第一设备通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之后,所述方法还包括:
    所述第一设备与所述第二设备通过所述第二通信连接,交互所述第一通信连接的连接参数;
    所述第一设备与所述第二设备根据所述第一通信连接的连接参数,建立所述第一通信连接。
  4. 根据权利要求3所述的传输控制方法,其特征在于,在所述第一设备与所述第二设备根据所述第一通信连接的连接参数,建立所述第一通信连接之后,所述方法还包括:
    响应于所述第一通信连接建立成功,如果所述第一数据还未传输完,所述第一设备与所述第二设备停止通过所述第二通信连接传输第一数据,并根据所述第一数据的第二断点信息,通过所述第一通信连接传输所述第一数据;
    其中,所述第二断点信息用于指示所述第一数据中、所述第一设备与所述第二设备通过所述第二通信连接已经正确传输的数据的截止位置。
  5. 根据权利要求4所述的传输控制方法,其特征在于,所述如果所述第一数据还未传输完,所述第一设备与所述第二设备停止通过所述第二通信连接传输第一数据,并根据所述第一数据的第二断点信息,通过所述第一通信连接传输所述第一数据,包括:
    如果所述第一数据还未传输完,且还未传输完的数据量大于预设数据量阈值,所述第一设备与所述第二设备停止通过所述第二通信连接传输第一数据,并根据所述第二断点信息通过所述第一通信连接传输所述第一数据。
  6. 根据权利要求1-5中任意一项所述的传输控制方法,其特征在于,在所述第一 设备通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之前,所述方法还包括:
    响应于发现所述第一通信连接出错,所述第一设备从一个或多个通信连接中选择出所述第二通信连接,所述第二通信连接是所述一个或多个通信连接中功耗最小和/或传输速率最快的通信连接;
    其中,所述一个或多个通信连接包括除所述第一通信连接之外,所述第一设备与所述第二设备已建立的所有通信连接。
  7. 根据权利要求6所述的传输控制方法,其特征在于,在所述第一设备从一个或多个通信连接中选择出所述第二通信连接之后,所述第一设备通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之前,所述方法还包括:
    所述第一设备发出第一提示信息,所述第一提示信息用于指示所述第一连接出错,并请求用户确认是否通过所述第二通信连接向所述第二设备发送所述错误信息。
  8. 根据权利要求1-7中任意一项所述的传输控制方法,其特征在于,在所述第一设备通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之前,所述方法还包括:
    响应于发现所述第一通信连接出错,所述第一设备显示第一界面,所述第一界面包括一个或多个通信连接的选择项,所述一个或多个通信连接包括除所述第一通信连接之外,所述第一设备与所述第二设备已建立的所有通信连接;
    响应于用户对所述一个或多个通信连接的选择项的选择操作,将用户选择的选择项目对应的通信连接确定为所述第二通信连接。
  9. 根据权利要求8所述的传输控制方法,其特征在于,所述第一界面中还包括第二提示信息;所述第二提示信息用于指示所述第一通信连接出错,并指示用户从所述至少两个通信连接中选择一个通信连接。
  10. 根据权利要求1-9中任意一项所述的传输控制方法,其特征在于,所述第一设备与所述第二设备根据所述第一断点信息,通过所述第二通信连接传输所述第一数据,包括:
    所述第一设备显示第二界面,所述第二界面包括第一确认信息,所述第一确认信息用于指示所述第一通信连接出错,并请求用户确认执行以下操作一或者操作二;其中,所述操作一为:重新建立所述第一通信连接,通过重新建立的第一通信连接传输所述第一数据;所述操作二为:通过所述第二通信连接传输所述第一数据;
    响应于用户对所述操作二的选择,所述第一设备与所述第二设备根据所述第一断点信息,通过所述第二通信连接传输所述第一数据。
  11. 根据权利要求10所述的传输控制方法,其特征在于,所述方法还包括:
    响应于用户对所述操作一的选择,所述第一设备与第二设备重新建立所述第一通信连接,在重新建立所述第一通信连接后,所述第一设备与所述第二设备根据所述第一断点信息,通过所述第一通信连接传输所述第一数据。
  12. 一种设备,其特征在于,所述设备是第一设备,所述设备包括:
    第一通信单元,用于与第二设备通过第一通信连接传输第一数据;
    检测单元,用于所述第一通信单元与所述第二设备通过所述第一通信连接传输所 述第一数据的过程中,发现所述第一通信连接出错;
    第二通信单元,用于通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息,所述第二通信连接与所述第一通信连接不同,所述错误信息用于指示所述第一通信连接出错。
  13. 根据权利要求12所述的设备,其特征在于,所述错误信息还包括所述第一数据的第一断点信息,所述第一断点信息用于指示所述第一数据中、所述第一设备与所述第二设备已经正确传输的数据的截止位置;
    所述设备还包括:
    所述第二通信单元,还用于在通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之后,与所述第二设备根据所述第一断点信息,通过所述第二通信连接传输所述第一数据。
  14. 根据权利要求12或13所述的设备,其特征在于,所述第二通信单元,还用于在通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之后,与所述第二设备通过所述第二通信连接,交互所述第一通信连接的连接参数;
    建立单元,用于与所述第二设备根据所述第二通信单元得到的所述第一通信连接的连接参数,建立所述第一通信连接。
  15. 根据权利要求14所述的设备,其特征在于,所述设备还包括:
    控制单元,用于响应于所述建立单元成功建立所述第一通信连接,如果所述第一数据还未传输完,控制所述第二通信单元与所述第二设备停止通过所述第二通信连接传输第一数据;
    所述第一通信单元,用于根据所述第一数据的第二断点信息,通过所述第一通信连接传输所述第一数据;
    其中,所述第二断点信息用于指示所述第一数据中、所述第一设备与所述第二设备通过所述第二通信连接已经正确传输的数据的截止位置。
  16. 根据权利要求15所述的设备,其特征在于,所述控制单元,具体用于:
    如果所述第一数据还未传输完,且还未传输完的数据量大于预设数据量阈值,控制所述第二通信单元与所述第二设备停止通过所述第二通信连接传输第一数据,并根据所述第二断点信息通过所述第一通信连接传输所述第一数据。
  17. 根据权利要求12-16中任意一项所述的设备,其特征在于,所述设备还包括:
    选择单元,用于在所述第二通信单元通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之前,响应于发现所述第一通信连接出错,从一个或多个通信连接中选择出所述第二通信连接,所述第二通信连接是所述一个或多个通信连接中功耗最小和/或传输速率最快的通信连接;
    其中,所述一个或多个通信连接包括除所述第一通信连接之外,所述第一设备与所述第二设备已建立的所有通信连接。
  18. 根据权利要求16所述的设备,其特征在于,所述设备还包括:
    提示单元,用于在所述选择单元从一个或多个通信连接中选择出所述第二通信连接之后,所述第二通信单元通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之前,发出第一提示信息;
    其中,所述第一提示信息用于指示所述第一连接出错,并请求用户确认是否通过所述第二通信连接向所述第二设备发送所述错误信息。
  19. 根据权利要求12-18中任意一项所述的设备,其特征在于,所述设备还包括:
    显示单元,用于在所述第二通信单元通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之前,响应于发现所述第一通信连接出错,显示第一界面,所述第一界面包括一个或多个通信连接的选择项,所述一个或多个通信连接包括除所述第一通信连接之外,所述第一设备与所述第二设备已建立的所有通信连接;
    确定单元,用于响应于用户对所述一个或多个通信连接的选择项的选择操作,将用户选择的选择项目对应的通信连接确定为所述第二通信连接。
  20. 根据权利要求19所述的设备,其特征在于,所述显示单元显示的所述第一界面中还包括第二提示信息;所述第二提示信息用于指示所述第一通信连接出错,并指示用户从所述至少两个通信连接中选择一个通信连接。
  21. 根据权利要求12-20中任意一项所述的设备,其特征在于,所述设备还包括:
    显示单元,用于所述第一设备显示第二界面,所述第二界面包括第一确认信息,所述第一确认信息用于指示所述第一通信连接出错,并请求用户确认执行以下操作一或者操作二;所述操作一为:重新建立所述第一通信连接,通过重新建立的第一通信连接传输所述第一数据;所述操作二为:通过所述第二通信连接传输所述第一数据;
    所述第二通信单元,还用于响应于用户对所述显示单元显示的所述操作二的选择,所述第一设备与所述第二设备根据所述第一断点信息,通过所述第二通信连接传输所述第一数据。
  22. 根据权利要求21所述的设备,其特征在于,所述第一通信单元,还用于响应于用户对所述显示单元显示的所述操作一的选择,在所述建立单元建立所述第一通信连接后,与所述第二设备根据所述第一断点信息,通过所述第一通信连接传输所述第一数据。
  23. 一种设备,其特征在于,所述设备是第一设备,所述设备包括:处理器、存储器、第一通信接口和第二通信接口;所述第一通信接口、所述第二通信接口、所述存储器与所述处理器耦合,所述第一通信接口用于通过第一通信连接收发数据,所述第二通信接口用于通过第二通信连接收发数据,所述第二通信连接与所述第一通信连接不同,所述存储器包括非易失性存储介质,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述处理器执行计算机指令时,
    所述第一通信接口,用于通过第一通信连接传输第一数据;
    所述处理器,用于在所述第一通信接口与所述第二设备通过所述第一通信连接传输所述第一数据的过程中,发现所述第一通信连接出错;
    所述第二通信接口,用于通过所述第二通信连接向所述第二设备发送所述第一通信连接的错误信息,所述错误信息用于指示所述第一通信连接出错。
  24. 根据权利要求23所述的设备,其特征在于,所述错误信息还包括所述第一数据的第一断点信息,所述第一断点信息用于指示所述第一数据中、所述第一设备与所述第二设备已经正确传输的数据的截止位置;
    所述第二通信接口,还用于在通过第二通信连接向所述第二设备发送所述第一通 信连接的错误信息之后,与所述第二设备根据所述第一断点信息,通过所述第二通信连接传输所述第一数据。
  25. 根据权利要求23或24所述的设备,其特征在于,所述第二通信接口,还用于在通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之后,与所述第二设备通过所述第二通信连接,交互所述第一通信连接的连接参数;
    所述处理器,还用于与所述第二设备根据所述第一通信连接的连接参数,建立所述第一通信连接。
  26. 根据权利要求25所述的设备,其特征在于,所述处理器,还用于响应于所述第一通信连接建立成功,如果所述第一数据还未传输完,控制所述第二通信接口与所述第二设备停止通过所述第二通信连接传输第一数据;
    所述第一通信接口,还用于根据所述第一数据的第二断点信息,通过所述第一通信连接传输所述第一数据;
    其中,所述第二断点信息用于指示所述第一数据中、所述第一设备与所述第二设备通过所述第二通信连接已经正确传输的数据的截止位置。
  27. 根据权利要求26所述的设备,其特征在于,所述处理器,用于如果所述第一数据还未传输完,控制所述第二通信接口与所述第二设备停止通过所述第二通信连接传输第一数据,包括:
    所述处理器,用于如果所述第一数据还未传输完,且还未传输完的数据量大于预设数据量阈值,控制所述第二通信接口与所述第二设备停止通过所述第二通信连接传输第一数据。
  28. 根据权利要求23-27中任意一项所述的设备,其特征在于,所述处理器,还用于在所述第二通信接口通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之前,响应于发现所述第一通信连接出错,从一个或多个通信连接中选择出所述第二通信连接,所述第二通信连接是所述一个或多个通信连接中功耗最小和/或传输速率最快的通信连接;
    其中,所述一个或多个通信连接包括除所述第一通信连接之外,所述第一设备与所述第二设备已建立的所有通信连接。
  29. 根据权利要求28所述的设备,其特征在于,所述处理器,还用于在从一个或多个通信连接中选择出所述第二通信连接之后,所述第二通信接口通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之前,发出第一提示信息,所述第一提示信息用于指示所述第一连接出错,并请求用户确认是否通过所述第二通信连接向所述第二设备发送所述错误信息。
  30. 根据权利要求23-29中任意一项所述的设备,其特征在于,所述设备还包括:
    显示器,用于在所述第二通信接口通过第二通信连接向所述第二设备发送所述第一通信连接的错误信息之前,响应于发现所述第一通信连接出错,显示第一界面,所述第一界面包括一个或多个通信连接的选择项,所述一个或多个通信连接包括除所述第一通信连接之外,所述第一设备与所述第二设备已建立的所有通信连接;
    所述处理器,还用于响应于用户对所述一个或多个通信连接的选择项的选择操作,将用户选择的选择项目对应的通信连接确定为所述第二通信连接。
  31. 根据权利要求30所述的设备,其特征在于,所述显示器显示的所述第一界面中还包括第二提示信息;所述第二提示信息用于指示所述第一通信连接出错,并指示用户从所述至少两个通信连接中选择一个通信连接。
  32. 根据权利要求23-31中任意一项所述的设备,其特征在于,所述设备还包括:
    显示器,用于显示第二界面,所述第二界面包括第一确认信息,所述第一确认信息用于指示所述第一通信连接出错,并请求用户确认执行以下操作一或者操作二;所述操作一为:重新建立所述第一通信连接,通过重新建立的第一通信连接传输所述第一数据;所述操作二为:通过所述第二通信连接传输所述第一数据;
    所述第二通信接口,还用于响应于用户对所述操作二的选择,与所述第二设备根据所述第一断点信息,通过所述第二通信连接传输所述第一数据。
  33. 根据权利要求32所述的设备,其特征在于,所述第一通信接口,还用于响应于用户对所述操作一的选择,在所述处理器建立所述第一通信连接后,与所述第二设备根据所述第一断点信息,通过所述第一通信连接传输所述第一数据。
  34. 一种计算机存储介质,其特征在于,所述计算机存储介质包括计算机指令,当所述计算机指令在设备上运行时,使得所述设备执行如权利要求1-11中任意一项所述的传输控制方法。
  35. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-11中任意一项所述的传输控制方法。
PCT/CN2018/091149 2018-06-13 2018-06-13 一种传输控制方法及设备 WO2019237291A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
CN201880079002.0A CN111448825B (zh) 2018-06-13 2018-06-13 一种传输控制方法及设备
CN202110656790.9A CN113473428B (zh) 2018-06-13 2018-06-13 一种传输控制方法及设备
EP18922405.8A EP3799469B1 (en) 2018-06-13 2018-06-13 Transmission control method and device
PCT/CN2018/091149 WO2019237291A1 (zh) 2018-06-13 2018-06-13 一种传输控制方法及设备
AU2018427289A AU2018427289B2 (en) 2018-06-13 2018-06-13 Transmission control method and device
US17/251,551 US11553393B2 (en) 2018-06-13 2018-06-13 Transmission control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/091149 WO2019237291A1 (zh) 2018-06-13 2018-06-13 一种传输控制方法及设备

Publications (1)

Publication Number Publication Date
WO2019237291A1 true WO2019237291A1 (zh) 2019-12-19

Family

ID=68841820

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/091149 WO2019237291A1 (zh) 2018-06-13 2018-06-13 一种传输控制方法及设备

Country Status (5)

Country Link
US (1) US11553393B2 (zh)
EP (1) EP3799469B1 (zh)
CN (2) CN113473428B (zh)
AU (1) AU2018427289B2 (zh)
WO (1) WO2019237291A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11595789B2 (en) * 2019-05-31 2023-02-28 Apple Inc. Missed communication notification
CN113419907B (zh) * 2021-05-26 2023-05-23 杭州安恒信息技术股份有限公司 操作系统探测方法、装置、电子装置和计算机设备
CN113824798A (zh) * 2021-11-19 2021-12-21 浙江中控技术股份有限公司 断点续传方法及系统

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205430248U (zh) * 2015-12-20 2016-08-03 南京邮电大学 支持VLC+WiFi联合接入系统的VLC接收终端
CN105992288A (zh) * 2015-03-05 2016-10-05 中兴通讯股份有限公司 一种在切换程序中传输数据的方法、装置和系统
CN107105516A (zh) * 2011-11-28 2017-08-29 Sk电信有限公司 用于支持基于多网络的数据传输服务的设备和方法

Family Cites Families (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101626317A (zh) 2008-07-07 2010-01-13 华为技术有限公司 一种链路故障恢复的方法、系统和装置
US8995359B2 (en) * 2010-04-05 2015-03-31 Qualcomm Incorporated Method and apparatus to facilitate support for multi-radio coexistence
CN102804910A (zh) 2011-03-21 2012-11-28 华为技术有限公司 连接建立方法、故障处理方法、通信系统及相关设备
CN102315864B (zh) 2011-09-07 2015-11-25 百度在线网络技术(北京)有限公司 用于移动设备点对点数据传输的方法和装置
US9049637B2 (en) 2011-09-09 2015-06-02 Genband Us Llc Automatic transfer of mobile calls between voice over internet protocol (VoIP) and guaranteed service (GS) networks based on quality of service (QoS) measurements
WO2013042920A2 (ko) * 2011-09-19 2013-03-28 에스케이텔레콤 주식회사 다중 네트워크 기반 데이터 동시 전송 서비스를 지원하는 장치 및 방법
KR101278722B1 (ko) 2011-12-28 2013-06-25 에스케이텔레콤 주식회사 이기종 네트워크 기반 데이터 동시 전송 방법 및 이에 적용되는 장치
KR101437371B1 (ko) 2012-02-15 2014-09-03 에스케이텔레콤 주식회사 이기종 네트워크 기반 데이터 동시 전송 서비스를 지원하는 장치
CN103368611A (zh) * 2012-03-27 2013-10-23 腾讯科技(深圳)有限公司 传输文件的方法和移动终端
JP6090309B2 (ja) 2012-04-10 2017-03-08 ソニー株式会社 通信装置、通信制御方法及びプログラム
WO2014067053A1 (zh) 2012-10-29 2014-05-08 华为终端有限公司 通信连接建立方法和终端
CN104730366B (zh) 2013-12-23 2017-12-19 美的集团股份有限公司 用于家用电器的故障诊断与维修辅助设备
CN104883716A (zh) * 2014-02-27 2015-09-02 宇龙计算机通信科技(深圳)有限公司 网络处理装置及网络切换的方法
JP2016046792A (ja) * 2014-08-27 2016-04-04 富士通株式会社 移動通信装置、無線通信方法および通信制御プログラム
US9826423B2 (en) * 2014-12-12 2017-11-21 Netgear, Inc. Systems and methods for LTE and WLAN coexistence
CN104581993B (zh) * 2014-12-15 2019-05-03 华为技术有限公司 无线连接建立的方法、数据传输的方法以及终端
JP6246142B2 (ja) * 2015-01-14 2017-12-13 キヤノン株式会社 情報処理装置、情報処理方法及びプログラム
CN107211242B (zh) 2015-02-08 2020-10-23 苹果公司 车内无线通信
DE112015006863T5 (de) 2015-08-31 2018-05-30 Intel IP Corporation Duale Konnektivität für Zuverlässigkeit
CN205072837U (zh) * 2015-10-14 2016-03-09 北京异度矩阵科技有限公司 一种智能体温监控报警系统
JP6724338B2 (ja) * 2015-10-30 2020-07-15 ブラザー工業株式会社 通信機器
CN106996004A (zh) 2016-01-26 2017-08-01 青岛海尔洗衣机有限公司 一种智能家电控制方法及采用其的洗衣机
CN107371219B (zh) 2016-05-13 2020-08-25 华为终端有限公司 WiFi配置方法、WiFi移动终端和WiFi设备
CN107567109A (zh) 2016-08-31 2018-01-09 深圳云麦科技有限公司 一种wifi智能硬件快速连接wifi设备的系统及方法
US10515318B2 (en) * 2016-09-30 2019-12-24 Fortinet, Inc. Automated resolution of Wi-Fi connectivity issues over SMS
CN106571989A (zh) 2016-11-09 2017-04-19 杭州联络互动信息科技股份有限公司 智能移动终端控制智能家居设备的方法和装置
CN107018554B (zh) * 2017-03-07 2020-11-06 Oppo广东移动通信有限公司 一种数据传输方法、装置及智能终端
CN207148921U (zh) * 2017-06-22 2018-03-27 深圳市捷顺科技实业股份有限公司 一种用于通过蓝牙通信的停车场的管理系统
CN107948959A (zh) 2017-11-20 2018-04-20 珠海市魅族科技有限公司 通信控制方法及装置、计算机装置及可读存储介质
US10705899B2 (en) * 2018-11-27 2020-07-07 Centurylink Intellectual Property Llc Method and system for detecting errors in local area network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107105516A (zh) * 2011-11-28 2017-08-29 Sk电信有限公司 用于支持基于多网络的数据传输服务的设备和方法
CN105992288A (zh) * 2015-03-05 2016-10-05 中兴通讯股份有限公司 一种在切换程序中传输数据的方法、装置和系统
CN205430248U (zh) * 2015-12-20 2016-08-03 南京邮电大学 支持VLC+WiFi联合接入系统的VLC接收终端

Also Published As

Publication number Publication date
US20210250836A1 (en) 2021-08-12
CN113473428B (zh) 2024-01-30
EP3799469B1 (en) 2023-10-04
EP3799469A4 (en) 2021-06-23
AU2018427289B2 (en) 2022-02-17
CN113473428A (zh) 2021-10-01
AU2018427289A1 (en) 2021-01-21
US11553393B2 (en) 2023-01-10
CN111448825B (zh) 2021-06-15
EP3799469A1 (en) 2021-03-31
CN111448825A (zh) 2020-07-24

Similar Documents

Publication Publication Date Title
EP3893109B1 (en) Method and device for connecting bluetooth devices
JP7204792B2 (ja) Wi-fiホットスポット接続方法および端末
KR102092063B1 (ko) 통신 서비스 수행 방법 및 장치
US20200029200A1 (en) Access method, network device, terminal device, and amf device
JP2021524190A (ja) データ伝送方法、関連装置、システム及びコンピュータープログラム
WO2017080378A1 (zh) 一种授权频谱辅助接入方法,网络设备及终端设备
US20100330910A1 (en) Method for transmitting and receiving data using e-field in portable terminal and apparatus thereof
WO2018161962A1 (zh) 分享图像的方法、电子设备及系统
WO2019184016A1 (zh) Sim卡鉴权方法及终端
WO2019140657A1 (zh) 一种网络连接的方法、装置及终端
CN112119673B (zh) 支持多种无线通信协议的电子装置及其方法
WO2018153028A1 (zh) 一种建立无线局域网连接的方法、装置和终端
CN111031471A (zh) 一种数据传输方法、终端及基站
WO2019237291A1 (zh) 一种传输控制方法及设备
WO2019178816A1 (zh) 一种补充业务的设置方法及设备
CN108540146A (zh) 一种天线切换的方法、装置及计算机存储介质
WO2017128663A1 (zh) 移动终端及wifi控制方法、存储介质
WO2019191996A1 (zh) 一种数据传输方法及设备
WO2018119789A1 (zh) 一种连接接入点的方法及终端、管理服务器
WO2024077425A1 (zh) 移动网络感知方法、装置、存储介质、感知执行端以及感知应用功能网元
WO2022213277A1 (zh) 处理方法、设备、系统及存储介质
WO2015089738A1 (zh) 一种上行同步方法和终端

Legal Events

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

Ref document number: 18922405

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018922405

Country of ref document: EP

Effective date: 20201222

ENP Entry into the national phase

Ref document number: 2018427289

Country of ref document: AU

Date of ref document: 20180613

Kind code of ref document: A