WO2018161870A1 - Procédé et appareil de transmission de données, et terminal intelligent - Google Patents

Procédé et appareil de transmission de données, et terminal intelligent Download PDF

Info

Publication number
WO2018161870A1
WO2018161870A1 PCT/CN2018/078001 CN2018078001W WO2018161870A1 WO 2018161870 A1 WO2018161870 A1 WO 2018161870A1 CN 2018078001 W CN2018078001 W CN 2018078001W WO 2018161870 A1 WO2018161870 A1 WO 2018161870A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
terminal
data
identifier
queue
Prior art date
Application number
PCT/CN2018/078001
Other languages
English (en)
Chinese (zh)
Inventor
何辉
Original Assignee
广东欧珀移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Publication of WO2018161870A1 publication Critical patent/WO2018161870A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/08Access restriction or access information delivery, e.g. discovery data delivery
    • H04W48/10Access restriction or access information delivery, e.g. discovery data delivery using broadcasted information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • the present invention relates to the field of computer application technologies, and in particular, to a data transmission method, device, and intelligent terminal.
  • intelligent terminals can provide users with various functions and services, and help users to work, study and live.
  • the corresponding function can be experienced by providing a system service or a user installing a function application.
  • the data transmission service provided by the intelligent terminal is one of the services commonly used by users.
  • data transmission between two terminals is generally based on a mobile communication network, a computer network, and is implemented using an instant messaging application. How to better carry out data transmission between two terminals has become a hot issue of research.
  • the embodiment of the invention provides a data transmission method, device and intelligent terminal, which can simply perform data transmission between terminals.
  • an embodiment of the present invention provides a data transmission method, including:
  • the first terminal displays a user interface including a transmission identifier when detecting a data transmission instruction
  • the first terminal When detecting the selection operation of the transmission identifier, the first terminal sends the data to be transmitted to the second terminal by using the second connection;
  • the first terminal establishes a first connection with the second terminal based on the first connection policy, and interacts with the data through the first connection, and establishes the according to the second connection policy and the interaction connection data. a second connection between the first terminal and the second terminal.
  • an embodiment of the present invention further provides a data transmission apparatus, including:
  • a display module configured to display a user interface including a transmission identifier when detecting a data sending instruction
  • a transmitting module configured to send, to the second terminal, the data to be transmitted through the second connection when detecting the selection operation of the transmission identifier
  • connection module configured to establish a first connection between the first terminal and the second terminal based on the first connection policy, and connect data through the first connection, and establish a connection according to the second connection policy and the interaction connection data A second connection between the first terminal and the second terminal.
  • an embodiment of the present invention further provides an intelligent terminal, including a processor, a first communication interface, and a second communication interface, where:
  • the processor is configured to invoke a first communication interface to establish a first connection with the second terminal, and interactively connect data through the first connection, and invoke the second communication interface according to the second connection policy and the interaction Connecting data to establish a second connection between the first terminal and the second terminal;
  • the processor is further configured to display a user interface including a transmission identifier when detecting a data transmission instruction, and send the data to be transmitted to the first connection by using a second connection when detecting the selection operation of the transmission identifier Two terminals.
  • FIG. 1 is a schematic diagram of a user interface according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of interaction between establishing a connection between a first terminal and a second terminal according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a process for establishing a Bluetooth connection according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of another user interface according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a data transmission method according to an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a process of a first connection establishment method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present invention.
  • a user interface including the transmission identifier is displayed, and the user only needs to select the transmission identifier by touch click or the like, and the terminal can pass the
  • the established second connection sends the data, as shown in FIG. 1 , including the picture data 101 to be transmitted that has been selected by the user and the transmission interface identifier 102 provided to the user. Once the user clicks the transmission interface identifier 102, the established The second connection begins to transfer data.
  • the transmitting end may be regarded as the first terminal
  • the receiving end may be regarded as the second terminal that can establish the first connection and the second connection with the first terminal.
  • the embodiment of the present invention adopts an automatic pairing manner, and establishes a second connection based on the first connection, and can determine the two terminals that need data transmission by using the first connection with less power consumption, and then based on the first connection. Establishing a second connection with a large power consumption saves power to some extent.
  • the first connection may be established using Bluetooth BLE automatic scanning
  • the second connection is established by using WiFi P2P or the like (WiFi-based point-to-pair transmission). Since the scanning operation of the connection point identification in the early stage of WiFi P2P consumes a large amount of power consumption, the WiFi P2P mode can better transmit data, especially big data. Therefore, in the embodiment of the present invention, the two terminals of the data transmission are determined based on the Bluetooth, and the first connection is established, and the WiFi P2P connection is established on the basis of the first connection, thereby saving the power consumption of the connection data interaction phase of the WiFi P2P, which is convenient. Better transfer of data between terminals.
  • the basic interaction process for establishing the second connection transmission data may substantially include three phases, namely, Bluetooth scanning, Bluetooth connection, and establishing a WiFi P2P connection.
  • FIG. 2 it is an interaction diagram of establishing a connection between a first terminal and a second terminal according to an embodiment of the present invention.
  • FIG. 2 generally describes between the first terminal and the second terminal. The process of establishing a connection.
  • the first terminal of the embodiment of the present invention may trigger the execution of the step shown in FIG. 2 when the selected operation of the transmission identifier is detected, and establish the first terminal and the second terminal as the receiving end.
  • the second connection between the first terminal and the second terminal may be triggered by the step shown in FIG. 2 after the user of the first terminal turns on the Bluetooth scanning or the like.
  • the two connections are used to facilitate the subsequent transmission of the data to be transmitted when the selected operation of the transmission identifier is performed.
  • the second connection needs to enable functions such as Bluetooth, WiFi, etc., in order to cooperate with the first terminal.
  • the second terminal After the corresponding function is enabled, the second terminal enters an advertisement mode, and establishes a GATT (Generic Attribute Profile) service or the like to facilitate establishing a second connection.
  • GATT Generic Attribute Profile
  • the first terminal first scans the device in the advertising stage, the first terminal sends a scan data request in S201, and receives data returned by other terminals including the second terminal in S202.
  • the first terminal selects the second terminal from the returned data in S203, and transmits a connection request to request connection to the second terminal in S204.
  • a two-way communication connection between the first terminal and the second terminal, that is, the first connection, is established in S205.
  • the first terminal sends a request for transmission connection establishment data to the second terminal on the first connected channel in S206.
  • the second terminal obtains a connection connection instruction and enters a WiFi connection phase.
  • the second terminal returns the request data to the first terminal in S207.
  • the first terminal After receiving the request data, the first terminal obtains a connection connection command to enter a WiFi connection phase. The first terminal sends an instruction to enter a transmission connection phase at S208, and the second terminal returns a transmission success receipt in S209. After receiving the receipt of the transmission connection command, the first terminal also enters the WIFI connection phase. So far, the establishment of the second connection is completed between the first terminal and the second terminal.
  • an advertisement package for a Bluetooth BLE advertisement may carry 31 bytes of data.
  • the MAC address of the Bluetooth and the connection identifier of the receiver For example, the name of the receiving end.
  • the strategy that the advertisement can adopt includes: the receiving end advertisement does not set the total duration of the advertisement temporarily (as long as the user turns on the data transmission function according to the embodiment of the present invention, it is always on, Until the user turns off the data transfer function switch. After confirming the standby, it can wake up through the connection, can advertise and scan), and set the low-latency mode in the first 60 seconds to increase the probability of scanning, and the subsequent time is set to the balance mode. Reduce power consumption. After the Bluetooth completes the connection and determines that the WIFI establishes the connection, the advertisement of the sender stops reducing power consumption, and the interference of Bluetooth and wifi can also be reduced.
  • the processing of the abnormality that may occur may also be set, which may include: the data of the receiving end advertisement packet is excessively abnormal: such an abnormality may be avoided by strictly controlling the name of the receiving end. Too many ads on the receiving end and other internal exceptions: Since the total number of Bluetooth BLE ads is limited, for example, up to 10, the ad will fail after the limit is exceeded. The abnormal situation can be avoided by re-scanning.
  • the advertisement is re-tried or scanned three times, and the delay time is set according to the gradient, for example, setting the first retry wait 2s, the second 5s, the first Three times 10s, retry three times and still be abnormal, then turn off Bluetooth and then turn it on. Shutdown restart can be performed only once. Re-open the Bluetooth and try again three times. If it is unsuccessful, the user can be prompted.
  • the scan time set by the sender at one time can be 60s, the first 20s can be set to low delay mode, and the subsequent time can be set to balance mode.
  • the Bluetooth completes the connection and determines that the WiFi connection is established (the second connection)
  • the scanning operation of the receiving end stops reducing power consumption, and the interference of Bluetooth and wifi can also be reduced.
  • the scanning mainly has an exception that the timeout is not scanned to the advertising device. Considering the user interaction scenario, the user may not give the user a failure prompt, and the scanning is repeated until the user exits the selection sending interface.
  • the connection point of data transmission can be a single receiver connection and a multiple receiver connection.
  • the receiving end serves as a server end of the GATT, and the transmitting end (first terminal) initiates the connection, and the connection is established and the server is found (the second terminal)
  • the server and the sender negotiate the underlying data transmission connection mode, mainly three information: WiFi connection mode, including P2P or hotspot connection; transmission server information (WiFi P2P MAC address or hotspot name and password), transmission client Information (for the sender of the server authentication connection, can not be controlled during the connection process, can only add the sender information in the transmission data to process the data of the specified user); open the connection command (WIFI P2P scan Discovery command, or open Hotspot instruction). Transmit the packet format Characteristic (
  • FIG. 3 it is a schematic diagram of a process for establishing a Bluetooth connection according to an embodiment of the present invention.
  • the first terminal selects a target connection identifier in S301, where the target connection identifier is a connection identifier of the second terminal that is desired by the user as the receiving end.
  • the first terminal requests to establish a connection in S302, that is, requests to establish a first connection.
  • the first terminal determines whether the connection is successful in S303, and if successful, executes S304 and S305, if not, executes S306, determines whether the number of times exceeds the reconnection number threshold in S306, and if so, determines that the connection fails in S307. . If it is not exceeded, the request to establish the first connection is performed to perform the reconnection process.
  • connection establishment is performed on the established first connection, and in S308, it is determined whether the first connection is interrupted. If there is no interruption, the monitoring is continued, and S305 is performed. If the first connection is interrupted, the S306 is executed to determine whether the connection before the interruption is already the Nth interrupt reconnection, and if so, the connection failure is determined. If not, S302 is executed again, and the next interruption is performed after the next interruption.
  • the sending end may send a data request to the receiving end, where the data request is used to confirm to the receiving end whether the receiving end can start receiving data, and start timing after sending the data request.
  • the confirmation information returned by the receiving end to receive the data is received in the preset time range. If the confirmation information is not received within the preset time range, it is determined whether the number of times the data request is sent exceeds a preset number of times threshold. If the preset number of times threshold is not exceeded, S304 is performed again. If the number of times threshold is exceeded, S311 may be performed to determine that the connection has failed. After determining that the connection has failed, the S302 may be re-requested to establish the first connection.
  • S312 is performed, in which the relevant instruction for establishing the second connection between the first terminal and the second terminal is started to be sent, and after the relevant instruction is sent, the timing is started. And determining, in S313, whether the receipt information of the receiving end is received within a preset time range, where the receipt information is used to indicate that the receiving end starts to receive data, an instruction, and can respond to the corresponding data for establishing the second connection, instruction. If the receipt information of the receiving end is received, then S314 is executed to trigger the connection processing to enter the second connection.
  • the process of determining whether the number of times the related instruction of the second connection is sent exceeds the preset number of times threshold is performed, and if the preset number of times threshold is not exceeded, the S312 is performed again. If the preset number of times threshold is exceeded, then S311 is performed to determine that the connection has failed. After determining that the connection has failed, the S302 may be re-requested to establish the first connection.
  • connection identifiers of the receiving ends that need to be transmitted are included in one queue, and are sequentially based on all connection identifiers in the queue.
  • the connection process between the sender and the receiver is performed.
  • the Bluetooth scan can be restarted and wait for 5 seconds. If the same connection identifier is not scanned, the connection cannot be established.
  • the connection identifier is placed in another retry queue, and the next receiver connection is continued. If a matching device is found, the connection is re-processed.
  • the Bluetooth device After the selected connection identifiers are reconnected, the Bluetooth device performs a 5s scan again, and compares with each connection identifier in the retry queue. If the connection identifier in the retry queue can be scanned again, the corresponding correspondence is performed. The connection identifies the first connection process of the indicated terminal.
  • the second connection processing is performed on the basis of the first connection.
  • the second connection may be established by parsing the connection information obtained in the Bluetooth connection, that is, obtaining the connection type (WiFi P2P or WiFi hotspot) of the second connection, and selecting the currently supported optimal connection mode to establish the second connection. That is, according to the data transmitted by the first connection, the first terminal selects a connection mode of the WiFi P2P or a connection mode of the WiFi hotspot to establish a second connection.
  • both the first terminal and the second terminal can enter the scanning Discovery mode to perform state monitoring of the WiFi P2P connection.
  • the sender will filter all the peers (P2P connections, each sender and receiver are called peers), and select the device whose MAC address matches the address sent by Bluetooth BLE to connect. You can specify the receiver as the connection server.
  • the sender and the receiver exchange the MAC address of the receiver, so that the sender can identify the connection point of the multiple receivers that have been scanned when the WiFi P2P connection is established for scanning. In the MAC address), directly find the connection point identifier of the receiving end of the data to be transmitted.
  • the abnormal processing when the WiFi P2P connection is performed includes: an abnormal situation that does not support P2P may occur when scanning the Discovery. If the sending end cannot judge in advance, the abnormal processing may be performed through the Bluetooth connection described above (first) Connect) to renegotiate the underlying data transfer connection, or re-do a Bluetooth connection to re-determine the connection type of the second connection. In the current abnormal situation of P2P device busy, such abnormal conditions may occur when scanning Discovery and connection connect.
  • the WiFi P2P connection is in the form of broadcast, and the process can be unified into a separate thread to perform synchronization processing to avoid state abnormality.
  • the possible abnormalities and their processing methods include: the connection is abnormally disconnected, and the monitoring task is started after the direct connection of the WIFI P2P is established.
  • the connection is immediately reconnected, and the data is successfully reconnected. Will be retransmitted.
  • the instruction transfer creates two socket queues, one of which needs to support file transfer at the same time.
  • the purpose of creating two socket transfer instructions is that, first of all, when transmitting, there may be a part of data that needs to support the message synchronization queue. At this time, the first sent data is delivered first, and then sent, and then sent, so a synchronization message can be created. Queue, in which information and files that need to be synchronized are transmitted.
  • asynchronous asynchronous message queue When the synchronous queue transmits data with a large amount of data, the queue is blocked, so an asynchronous asynchronous message queue can be created at the same time to ensure that the message can be delivered to the other party in time. This asynchronous is relative to the previous synchronous queue. Asynchronous, but its own queue is also maintained in a sequential relationship.
  • the asynchronous message queue supports two-way, which is used to support the state information and instruction interaction of the two parties, such as file arrival, consent to receive, and receiving status.
  • data transmission of files and the like may create three socket queues, including the above-mentioned synchronous message queue (one connection), asynchronous message queue (one connection), and an asynchronous file queue, which is used by three socket connections. It is the same queue. It is not guaranteed that the queue will be transmitted first.
  • the format of the codec negotiated between the first terminal and the second terminal is as follows.
  • Table 3 is the instruction encoding format
  • Table 4 is the file encoding format
  • Table 5 is the heartbeat information encoding format.
  • the first three columns are header information, and the header information is described in Table 6 below.
  • the length of the data packet does not include the previous version number and the data type length.
  • a description of the other columns in the instruction encoding format is described in Table 7 below.
  • the descriptions of the other columns are as described in Table 8 below.
  • the STRING string type field uses 1 INTEGER as the length field, and identifies the length of the byte occupied by the string (excluding the 4 bytes occupied by the length field).
  • Strings are encoded in UTF-8.
  • special: empty string "" length field is 0, no data. That is, the empty string also takes up 4 bytes.
  • the INTEGER integer field occupies 4 bytes and uses the high-order encoding method. The value ranges from 0 to 4294967295.
  • the LONG long integer field occupies 8 bytes and uses the high-order encoding method. The value ranges from 0 to 18446744073709551615.
  • the Socket timeout monitoring is set in the monitoring connection state during the transmission, so as to implement the automatic reconnection.
  • Set two transmission queues, one to be transmitted queue, one transmission queue move the task from the queue to be transmitted to the transmission queue when starting transmission, and send the successful instruction back to remove the transmission queue task, if the connection is interrupted, transmission A timeout or subsequent file verification failure will retransmit the task of the transmission queue. It will also consider the file's breakpoint resume.
  • the data of the queue to be transmitted can be transmitted through the three socket queues mentioned above.
  • the transmitted data may also be verified, and the data verification may be performed by comparing the md5 value. If the receiving end determines that the inconsistency is inconsistent, the transmitting end is notified by the instruction channel to resend the data, that is, the transmission queue is about to be transmitted. The task in is re-added to the queue to be transmitted. For the transmission of data, it is also considered to increase the compression of the data to be transmitted by the compression module, thereby improving the transmission efficiency.
  • most of the data content can be transmitted as a file, in particular: text, contacts, and bookmarks are directly transmitted (as a character stream is directly transmitted, the size is limited, and more than 1M is processed in a file form), and the supported types and
  • the processor acts as a processor dynamic loader (similar to the backup and restore agent and cloud service agent) to provide type parsing and data processing methods.
  • the type of the loader cannot be found to be processed according to the file.
  • the interval time value may also be 150 milliseconds, etc.
  • the number of reconnections may be three times as mentioned above, or four times, five times, etc., and the above mentioned "more than 1M is processed by file form" In other embodiments, it may also be processed in the form of a file when it exceeds 2M.
  • the sender calculates the total size of the selected file and transmits it to the receiving end through the command channel.
  • the receiving end calculates its remaining space and then returns to the sending end. The space is insufficient to make the corresponding user prompt. If the storage space on the receiving end is sufficient, the corresponding steps of file transfer can be performed.
  • the processing manner and function described in the foregoing embodiments may be implemented in the form of a system control or implemented by an executable application.
  • the range of data that can be transmitted includes different categories of files, folders, texts and contacts, such as photos, videos, music, documents, archives, and installation packages. Data for installed non-system applications is not transferred.
  • the transmission identifier that triggers the system control may be provided at a prominent position in the user interface, and once the transmission identifier is clicked, the system control starts to work, and the various processing methods mentioned above are executed, and finally implemented. Data transfer and other functions.
  • the control center of the intelligent terminal adds an entry to open the control of the system, and controls the right to receive files, that is, the right to control whether to receive the file.
  • the received file can be stored in the specified folder, and the receiving and storing principle is placed in the folder corresponding to the system according to the file type.
  • the pictures may be correspondingly stored in a screenshot (Sceenshots) folder, a camera (Camera) folder, and other pictures (Pictures) folders preset in the terminal; the video may be correspondingly stored in a preset camera shooting file.
  • the processing of the processing of the files in the album may be based on the user's selection. First, select a thumbnail or a single picture and video to send in the album, enter the link and transfer process to continue, cancel and select file operations. The file range selected again is the next time the content is sent, regardless of the content being sent. As shown in FIG. 4, the user selects two pictures 401 and 402 in the album, and provides an entry for transmission, that is, a transmission identifier, on the user interface. After the user selects the transmission identifier, the user starts to the user who has established one or more receiving ends of the second connection (each receiving end can be regarded as the second terminal), for example, user A403 and user B in FIG.
  • the extent and order of the thumbnail previewed files may be consistent with the scope and order of the files that can be sent by the user as determined when the system controls are launched.
  • the size of the thumbnail preview file can be adjusted according to the preset size rules.
  • the pictures are all scaled up to a height of 232 DP, a maximum length of 324 DP, and a minimum of 36 DP. If the height or length exceeds the maximum or minimum requirements, the middle portion of the picture can be intercepted according to the maximum requirements.
  • the selection or cancellation of the selected picture and video can be continued, and then the transmission is continued.
  • Other multi-select or single file transmission once the system control is started, no new data can be selected in this transmission. When starting to send a file, it can prompt the corresponding receiving end to operate.
  • the sender can display the sent user, that is, the user identifier of the second terminal, and the like, and clearly know the target user to be sent by the file sent this time.
  • the sender may display the user identifier corresponding to the second terminal that has established the second connection.
  • the user identifier may be a registered account name or a device identifier of the device name of the smart terminal, and the user identifier may further include a corresponding identifier.
  • An identifier such as an avatar used by the user. After clicking the displayed user identifier of the second terminal (for example, after clicking the avatar), the triggering starts to transmit data through the second connection, and clicking the user identifier again can determine that the transmission of the corresponding data is canceled.
  • the user can also select multiple user identifiers at the same time, and can simultaneously transmit the selected file data to the second terminal corresponding to the multiple user identifiers.
  • a corresponding user interface for prompting the transmission status can be provided so that the user can clearly know the progress of the transmission and can cancel the transmission.
  • the user identifier which may be considered as a transmission identifier
  • any one or more of the status information of waiting for transmission, canceling transmission, transmission progress, and transmission completion may be displayed in the user interface. Clicking on the user ID (for example, clicking on the user's avatar) can also abort the data transfer between the current and all receiving users. When the transfer is aborted, the file data that has been transferred is not deleted.
  • the receiving end may display any one or more of the file type, the number of files, and the file size that the transmitting end needs to transmit on the receiving end. Even if a second connection between the two parties is established, the receiving end can choose to accept or reject the reception when transmitting data. The receiving end can also view information such as the progress of receiving data. After the transfer is complete, the user can quickly view the files that have been received. The user can choose to open the received file directly. According to different file types, the corresponding application can be directly called to open the transferred file. Among them, the transmitted text is opened by using a text application such as a note, and the image is opened by an application that manages the image using an album or the like.
  • the video is opened and played using an application such as a video player.
  • the music is opened and started playing using an application such as a local music player.
  • the contact information is directly opened using the terminal's contact application, which is in the contact details interface.
  • the URL is opened directly with the browser app. Other files with paths open directly in the file management application.
  • the data transmission process can be run in the background and the network experience is guaranteed to be normal.
  • a notification indication may be performed on the notification bar of the smart terminal, the notification indication is used to indicate the status of the current data transmission to the user, and clicking the notification indicates that the detailed data transmission interface can be entered.
  • the sender may prompt the user to use the Bluetooth and wlan permissions. After the user clicks the consent, the subsequent connection between the terminals can automatically enable the Bluetooth and WiFi corresponding functions.
  • the embodiment of the present invention can also perform statistics on the data, including statistically determining the sender model, the receiver model, the file type, the number distribution of different file types, and the one-time transmission file.
  • the data transmission method of the embodiment of the present invention is optimized based on these statistical data.
  • connection When establishing a communication connection between the terminals for transmitting data, the connection can be established through two connection modes that can implement different connection performances, thereby satisfying different connection requirements and data transmission requirements of the user.
  • the connection mode such as Bluetooth with low power consumption is used as the first connection, and the data is exchanged through the first connection to establish a connection manner such as WiFi capable of transmitting data of a large amount of data relatively quickly, thereby saving the energy consumption of the terminal and satisfying the user. Fast and large capacity requirements for data transmission.
  • FIG. 5 is a schematic flowchart of a data transmission method according to an embodiment of the present invention.
  • the method in the embodiment of the present invention may be implemented in an intelligent terminal, which may be a smart phone, a tablet, or a smart wearable.
  • a terminal with a data transmission function such as a device.
  • These smart terminals have low-power data transmission functions such as Bluetooth, and include data transmission functions such as WiFi that can quickly transfer various data.
  • the first terminal serves as a transmitting end and the second terminal serves as a receiving end, and both terminals are configured with a system control or an application that performs a data transmission processing function.
  • the method of the embodiment of the invention comprises the following steps.
  • the first terminal establishes a first connection with the second terminal based on the first connection policy.
  • the first connection policy includes the type of the first connection that needs to be established this time, and may also include a processing rule when the connection fails, such as the number of reconnections, the exception handling rule, and how to remind the user and other rules.
  • the first connection policy mainly indicates establishing a Bluetooth connection type with a small power consumption between the first terminal and the second terminal, and establishing a Bluetooth between the first terminal and the second terminal. connection.
  • the user may be prompted to prompt the first connection to be unsuccessful, or may further prompt the user for the reason for the connection failure, such as the Bluetooth connection abnormality mentioned in the above embodiment.
  • the first connection policy may also include related rules of Bluetooth scanning and related rules of the Bluetooth advertisement, including rules such as scanning frequency, scanning duration, connection identification frequency, and advertising duration. Reference may be made to the description of scanning and advertising in the above embodiments.
  • the first connection can be initiated again through the reconnection mechanism.
  • the first terminal does not receive the connection request of the second terminal after broadcasting the connection identifier.
  • the first terminal scans and acquires a connection identifier at a first scanning frequency in a first time range according to an indication of the first connection policy; the first terminal is based on the indication of the first connection policy, In the second time range, the connection identifier is obtained by scanning at the second scanning frequency; after the scanning ends, the first terminal determines the target connection identifier from each connection identifier obtained by scanning, and establishes and is based on the target connection identifier. a first connection between the two terminals, where the target connection identifier is a connection identifier of the second terminal.
  • the first terminal broadcasts the connection identifier of the local terminal at the first broadcast frequency in the first time range according to the indication of the first connection policy; the first terminal is based on the first connection policy And indicating, in the second time range, that the connection identifier of the local terminal is broadcasted by using the second broadcast frequency; the first terminal establishes a connection with the second terminal after the broadcast ends and the connection request of the second terminal is received a first connection, the connection request is sent by the second terminal based on the scanned connection identifier broadcast by the first terminal.
  • the first terminal exchanges data through the first connection, and establishes a second connection between the first terminal and the second terminal according to the second connection policy and the interaction connection data. After the first connection is successfully established, the data is interactively connected through the first connection.
  • the interactive connection data includes all necessary data required for establishing the second connection, such as the MAC address of the second terminal, the WiFi hotspot identification, the connection password, and the like.
  • the second connection policy indicates the type of the second connection, and may also include the number of reconnections, an exception handling rule, a rule of how the connection establishment fails to notify the user, and the like.
  • the first connection may be a WiFi-based communication connection, such as a WiFi hotspot communication connection method or a WiFi-based peer-to-peer P2P communication connection.
  • the first terminal selects, from the connection point identifier used to establish the second connection, the connection point that is interacted by the first connection, where the first terminal passes the first And establishing a second connection between the first terminal and the second terminal by connecting the second terminal interaction connection information corresponding to the connection point identifier.
  • a WiFi-based connection between the first terminal and the second terminal including a WiFi P2P connection or a WiFi hotspot connection, is completed by connecting data for establishing a connection that is interactively connected according to the scan result.
  • the power consumption for data exchange for the scanned terminal is generally much higher than that of the low-power communication connection based on Bluetooth. Therefore, in the embodiment of the present invention, power consumption for establishing a WiFi connection is saved.
  • the power consumption generated by the data transmission after the second connection is established is substantially the same as the power consumption generated by the existing WiFi hotspot or WiFi P2P connection.
  • the type of the second connection may include at least a connection type of the WiFi hotspot and a connection type of the WiFi P2P.
  • data indicating the connection type of the second connection may be included.
  • the second connection policy is to select a connection type according to the indication of the interaction data, and further exchange data based on the selected connection type to establish a second connection.
  • the first terminal may perform a connection establishment step in advance before the first terminal detects the data sending instruction, so as to pre-establish a connection between the first terminal and the second terminal, and prepare the user of the first terminal to send to the second terminal at any time.
  • the second terminal needs to open a system control for performing data transmission processing or open an application of the corresponding data transmission processing function installed, so that the first terminal can establish the first connection and the second connection.
  • the first terminal may also start to establish a connection between the first terminal and the second terminal when the data sending instruction is detected, so as to execute the data sending instruction of the first terminal.
  • the connection data exchanged by the first connection includes any one or more of the following types of data: a connection type of the second connection that needs to be established, the connection type includes a point-to-point connection type or a WiFi hotspot connection.
  • Type establishing client information required for the second connection, the client information includes: a connection point identifier and an authentication password, and the connection point identifier may be a WiFi hotspot address, a terminal MAC address, etc.; format information of the data packet; a triggering command of the second connection, the triggering command triggering the first terminal or the second terminal to start establishing a second connection, for example, triggering the first terminal or the second terminal to start to open the WiFi hotspot, and obtaining the name and password of the WiFi hotspot, so as to facilitate access WiFi hotspot.
  • the first terminal displays a user interface including a transmission identifier when detecting the data sending instruction.
  • the user interface can be referred to FIG. 1 , and a description about the user interface is also included in the foregoing embodiment, and details are not described herein.
  • the transmission identifier is configured with a corresponding trigger logic for triggering a corresponding system control or application that performs a data transmission process, or for directly triggering a system control or an application to start transmitting data.
  • the first terminal sends the data to be transmitted to the second terminal by using the second connection when detecting the selection operation of the transmission identifier.
  • the system control or the application may finally transmit the data to be transmitted through the second connection by using a background operation.
  • the data transmission format of the data to be transmitted, the configured transmission queue, the socket queue, and the operation processing of the specified folder storage and opening of the received data by the second terminal may refer to the description in the above embodiment.
  • the first task queue and the second task queue are preset, and the sending the data to be transmitted to the second terminal by using the second connection includes: storing the to-be-stored in the first task queue Transmitting data is stored in the second task queue, where the data to be transmitted is saved in the first task queue; data to be transmitted is obtained from the second task queue, and sent to the first If the data to be transmitted is not successfully sent by the second connection, the data to be transmitted stored in the first task queue is stored in the second task queue again, and The data to be transmitted is obtained in the second task queue, and is sent to the second terminal by using the second connection.
  • the first task queue and the second task queue correspond to the to-be-transmitted queue and the transmission queue mentioned in the foregoing embodiments. Three transmission queues can be set to transmit data in the second task queue.
  • the three transmission queues set include an isochronous message queue, an asynchronous message queue, and an asynchronous file queue. If the data to be transmitted acquired by the second task queue includes the first type of data, the first type of data is transferred to a preset synchronization message queue, and the data in the synchronization message queue is sent to the a second terminal; if the second task queue acquires data to be transmitted, including the second type of data, the second data is transferred to a preset asynchronous message queue, and the second connection is used in the asynchronous message queue.
  • Data is sent to the second terminal; if the second task queue acquires data to be transmitted, including the third type of data, the third type of data is transferred to a preset asynchronous file queue, and the asynchronous file is transmitted through the second connection.
  • the data in the queue is sent to the second terminal.
  • connection When establishing a communication connection between the terminals for transmitting data, the connection can be established through two connection modes that can implement different connection performances, thereby satisfying different connection requirements and data transmission requirements of the user.
  • the connection mode such as Bluetooth with low power consumption is used as the first connection, and the data is exchanged through the first connection to establish a connection manner such as WiFi capable of transmitting data of a large amount of data relatively quickly, thereby saving the energy consumption of the terminal and satisfying the user. Fast and large capacity requirements for data transmission.
  • the method in the embodiment of the present invention may be executed in an intelligent terminal, and corresponding to the foregoing S501, the smart terminal may be a smart phone.
  • Terminals with data transmission functions such as tablets and smart wearable devices.
  • these smart terminals have low-power data transmission functions such as Bluetooth, and include data transmission functions such as WiFi that can quickly transfer various data.
  • the first terminal serves as a transmitting end and the second terminal serves as a receiving end, and both terminals are configured with a system control or an application that performs a function of data transmission processing.
  • the method of the embodiment of the invention comprises the following steps.
  • connection identifier refers to an identifier provided by the terminal that can establish a Bluetooth connection.
  • the first terminal turns on the Bluetooth scan mode to scan a connection identifier such as a Bluetooth identifier of another terminal advertisement.
  • the S601 may include: the first terminal, according to the indication of the first connection policy, scans and acquires the connection identifier at the first scanning frequency in the first time range.
  • the first terminal scans and acquires the connection identifier at the second scanning frequency in the second time range based on the indication of the first connection policy.
  • more scan gradients can be configured, if necessary, to scan at different scan frequencies for different time periods.
  • the Bluetooth module is quickly opened to establish a Bluetooth connection, in the first few tens of seconds of the first terminal starting scanning, for example, 10 seconds.
  • the Bluetooth identifier of the corresponding second terminal is scanned. Therefore, the Bluetooth identifier of the second terminal can be scanned with a higher scanning frequency within the first time range after the start of scanning, in other time ranges. You can reduce the scan frequency to save power. Of course, after the user finds that the scanned connection identifier list includes the Bluetooth identifier of the second terminal, the user can turn off the scanning and proceed to the next step.
  • the first terminal determines a target connection identifier from each connection identifier obtained by scanning.
  • the target connection identifier includes a connection identifier of the second terminal.
  • all the connection identifiers obtained by scanning may be displayed in a list and presented to the user, and the user selects one or more as the target connection identifiers, and the selected target connection identifiers may be respectively used as the second.
  • the connection identifier of the terminal initiates connection processing for each second terminal.
  • the selected connection identifiers of the plurality of terminals waiting to be connected to the first terminal may be recorded into a preset connection queue; respectively, in the connection queue
  • the connection identifier of each terminal is used as the connection identifier of the second terminal, so as to establish a first connection with each terminal in the connection queue, respectively.
  • the connection queue is mainly used for recording the target connection identifier selected by the user, so as to establish subsequent connections with the terminals corresponding to the target connection identifiers, and avoiding that the user needs to select the next target connection after establishing a connection with one terminal.
  • the status of the logo is mainly used for recording the target connection identifier selected by the user, so as to establish subsequent connections with the terminals corresponding to the target connection identifiers, and avoiding that the user needs to select the next target connection after establishing a connection with one terminal.
  • the first terminal establishes a first connection with the second terminal based on the target connection identifier. After obtaining the Bluetooth identifier of the second terminal, the first terminal can establish a Bluetooth connection (first connection) with the second terminal.
  • first connection a Bluetooth connection
  • S603 For the abnormal processing manner, refer to the description in the foregoing embodiment. These abnormal conditions may cause the first connection establishment to fail, and if the first connection establishment fails, the following S603 is performed. If the first connection with a target connection identifier in the connection queue is successful, then continuing to establish a first connection with another second terminal for the next target connection identifier in the connection queue.
  • the first terminal performs a connection re-establishment process according to a preset re-establishment policy, so as to complete a first connection with the second terminal.
  • the determining, by the first terminal, that the first connection is failed includes: the first terminal does not scan to determine a connection identifier of the second terminal, that is, the target connection identifier is not determined.
  • Performing the connection re-establishment process by the first terminal according to the preset re-establishment policy includes: the first terminal scanning the connection identifier again according to the delay scan rule to determine the connection identifier of the second terminal, or the first terminal is closed first Connect the function and restart the closed first connection function within the preset duration.
  • the first terminal if there is a third terminal in the connection queue that fails to establish the first connection, the first terminal re-establishes a connection with the third terminal according to the reestablishment policy; in an embodiment, Reestablishing the connection with the third terminal according to the re-establishment policy, the first terminal restarting the first connection function after the first terminal closes the first connection function; the first terminal is based on the first connection If the connection is re-scanned to the connection identifier of the third terminal, establishing a connection with the third terminal; if the first terminal fails to re-scan the connection identifier of the third terminal, the third terminal The connection identifier of the terminal is recorded in the preset retry queue.
  • the steps of scanning and reconnecting the connection identifiers in the retry queue are performed again until the end condition is met, and the end condition may be satisfied, for example, may include
  • the reconnection of a connection identifier exceeds the number of thresholds (for example, three times), or the user manually stops or turns off scanning of the first connection such as Bluetooth.
  • connection When establishing a communication connection between the terminals for transmitting data, the connection can be established through two connection modes that can implement different connection performances, thereby satisfying different connection requirements and data transmission requirements of the user.
  • the connection mode such as Bluetooth with low power consumption is used as the first connection, and the data is exchanged through the first connection to establish a connection manner such as WiFi capable of transmitting data of a large amount of data relatively quickly, thereby saving the energy consumption of the terminal and satisfying the user. Fast and large capacity requirements for data transmission.
  • the data transmission device and the intelligent terminal according to the embodiment of the present invention are described in detail below.
  • FIG. 7 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present invention.
  • the data transmission apparatus according to the embodiment of the present invention may be disposed in an intelligent terminal, and the apparatus according to the embodiment of the present invention may be configured in a corresponding In the first terminal.
  • the device includes the following modules.
  • the display module 701 is configured to display a user interface including a transmission identifier when detecting a data transmission instruction, and a transmission module 702, configured to send the data to be transmitted through the second connection when detecting the selection operation of the transmission identifier
  • the second terminal the connection module 703, configured to establish a first connection between the first terminal and the second terminal based on the first connection policy, and interactively connect data through the first connection, according to the second connection policy and The interactive connection data establishes a second connection between the first terminal and the second terminal.
  • connection module 703 is configured to: according to the indication of the first connection policy, scan the first scan frequency to obtain the connection identifier in the first time range; based on the indication of the first connection policy, in the second In the time range, the connection identifier is obtained by scanning at the second scanning frequency; after the scanning ends, the target connection identifier is determined from each connection identifier obtained by scanning, and the first connection with the second terminal is established based on the target connection identifier. Connected, the target connection identifier is a connection identifier of the second terminal.
  • the connection module 703 is configured to: according to the indication of the first connection policy, broadcast the connection identifier of the local terminal at the first broadcast frequency in the first time range; based on the indication of the first connection policy, Broadcasting the connection identifier of the terminal at the second broadcast frequency in the second time range; after the broadcast ends and receiving the connection request of the second terminal, establishing a first connection with the second terminal, the connection The request is that the second terminal issues a connection identifier based on the scanned first terminal broadcast.
  • connection module 703 is further configured to perform a connection re-establishment process according to a preset re-establishment policy if the first connection fails to be established, so as to complete a first connection with the second terminal; Determining that the establishing the first connection fails includes: no scanning determines the connection identifier of the second terminal, or does not receive the connection request of the second terminal after the broadcast connection identifier.
  • connection module 703 is configured to scan the connection identifier again according to the delay scanning rule to determine the connection identifier of the second terminal, or to broadcast the local connection identifier based on the delayed broadcast rule.
  • the second terminal sends a connection request; or, is used to close the first connection function, and restarts the closed first connection function within a preset duration.
  • connection data exchanged by the first connection includes any one or more of the following types of data: a connection type of the second connection that needs to be established, the connection type includes a WiFi-based point-to-point P2P connection type or The WiFi hotspot connection type; the client information required for establishing the second connection, the client information includes: a connection point identifier and an authentication password; format information of the data packet; and a trigger instruction for establishing the second connection.
  • connection module 703 is configured to record the selected connection identifiers of the plurality of terminals waiting to be connected to the first terminal into a preset connection queue; each of the connection queues respectively The connection identifier of the terminal is used as the connection identifier of the second terminal, so as to establish a first connection with each terminal in the connection queue, respectively.
  • connection module 703 is configured to: if the third terminal that fails to establish the first connection exists in the connection queue, re-establish a connection with the third terminal according to the reestablishment policy;
  • the connection module 703 is configured to restart the first connection function after the first connection function is closed, and establish a connection with the third terminal if the connection identifier of the third terminal is rescanned based on the first connection function. If the connection identifier of the third terminal is not re-scanned, the connection identifier of the third terminal is recorded in a preset retry queue.
  • connection module 703 is configured to select, from the connection point identifier used to establish the second connection, a connection point that is interacted by the first connection; and connect the first connection and the first connection The second terminal interaction connection information corresponding to the point identifier is established, and the second connection between the first terminal and the second terminal is established.
  • the first task queue and the second task queue are preset, and the transmission module 702 is configured to store data to be transmitted stored in the first task queue into the second task queue.
  • the data to be transmitted is saved in the first task queue; the data to be transmitted is obtained from the second task queue, and is sent to the second terminal through the second connection; if the second connection is detected If the data to be transmitted is not successfully sent, the data to be transmitted stored in the first task queue is stored in the second task queue again, and the data to be transmitted is obtained from the second task queue.
  • the second connection is sent to the second terminal.
  • the transmitting module 702 is configured to: if the data to be transmitted acquired by the second task queue includes the first type of data, dump the first type of data into a preset synchronization message queue, and pass the The second connection sends the data in the synchronization message queue to the second terminal; if the second task queue acquires the data to be transmitted, including the second type of data, the second data is transferred to the preset asynchronous In the message queue, the data in the asynchronous message queue is sent to the second terminal by using the second connection; if the second task queue acquires the data to be transmitted, including the third type of data, the third type of data is transferred to the pre- In the asynchronous file queue, the data in the asynchronous file queue is sent to the second terminal through the second connection.
  • connection When establishing a communication connection between the terminals for transmitting data, the connection can be established through two connection modes that can implement different connection performances, thereby satisfying different connection requirements and data transmission requirements of the user.
  • the connection mode such as Bluetooth with low power consumption is used as the first connection, and the data is exchanged through the first connection to establish a connection manner such as WiFi capable of transmitting data of a large amount of data relatively quickly, thereby saving the energy consumption of the terminal and satisfying the user. Fast and large capacity requirements for data transmission.
  • FIG. 8 is a schematic structural diagram of an intelligent terminal according to an embodiment of the present invention.
  • the smart terminal according to the embodiment of the present invention may be, for example, a smart phone, a tablet computer, a smart wearable device, and the like, and a Bluetooth communication function and a WiFi communication.
  • the smart terminal includes a power module, various housings, and the like, and further includes a processor 801, a user interface 802, a memory 803, a first communication interface 804, and a second communication interface 805.
  • the user interface 802 can be a touch screen, a button, etc., and the interaction between the user and the smart terminal is completed based on the user interface 802.
  • the user interface 802 can be used to send user data, information, and the like, such as touch screen selection and voice. Enter the same data.
  • the first communication interface 804 consumes less power when it is used than the second communication interface 805 operates.
  • the first communication interface 804 can be a low-power communication interface such as Bluetooth, and the second communication interface 805 can be a WiFi module-based interface.
  • the memory 803 may include a volatile memory such as a RAM (random-access memory); the memory 803 may also include a non-volatile memory such as a flash memory. (flash memory), hard disk or solid state hard disk; the memory 803 may also include a combination of the above types of memories.
  • a volatile memory such as a RAM (random-access memory)
  • the memory 803 may also include a non-volatile memory such as a flash memory. (flash memory), hard disk or solid state hard disk; the memory 803 may also include a combination of the above types of memories.
  • the processor 801 can be a CPU (central processing unit).
  • the processor 801 may further include a hardware chip. It can be an ASIC (application-specific integrated circuit), a PLD (programmable logic device), or a combination thereof.
  • the PLD may be a CPLD (complex programmable logic device), an FPGA (field-programmable gate array), or any combination thereof.
  • the memory 803 is further configured to store program instructions.
  • the processor 801 can invoke the program instructions to implement the data transmission method of the embodiment of the present invention.
  • the processor 801 calls a program stored in the memory 803, and is used to invoke the first communication interface 804 to establish a first connection with the second terminal, and through the first connection. Interconnecting the data, invoking the second communication interface 805 to establish a second connection between the first terminal and the second terminal according to the second connection policy and the interaction connection data; the processor 801 is further configured to detect the data When the command is sent, the user interface including the transmission identifier is displayed. When the selection operation of the transmission identifier is detected, the data to be transmitted is sent to the second terminal through the second connection.
  • the processor 801 when used to establish a first connection with the second terminal based on the first connection policy, is used to indicate, based on the first connection policy, within the first time range, Obtaining a connection identifier by scanning at a first scanning frequency; and acquiring, according to an indication of the first connection policy, a connection identifier by scanning at a second scanning frequency in a second time range; and determining, after the scanning is finished, each connection identifier obtained by scanning And establishing, by the target connection identifier, a first connection with the second terminal, where the target connection identifier is a connection identifier of the second terminal.
  • the processor 801 when used to establish a first connection with the second terminal based on the first connection policy, is used to indicate, based on the first connection policy, within the first time range, Broadcasting the connection identifier of the terminal at the first broadcast frequency; broadcasting the connection identifier of the terminal at the second broadcast frequency in the second time range according to the indication of the first connection policy; ending the broadcast and receiving the second terminal After the connection request, a first connection with the second terminal is established, and the connection request is sent by the second terminal based on the scanned connection identifier broadcast by the first terminal.
  • the processor 801 is further configured to: if the first connection fails to be established, the first terminal performs a connection re-establishment process according to a preset re-establishment policy, so as to complete between the second terminal and the second terminal.
  • a first connection wherein the determining, by the first terminal, that the first connection fails to be performed includes: the first terminal does not scan to determine a connection identifier of the second terminal, or the first terminal does not receive the second after broadcasting the connection identifier The connection request of the terminal.
  • the processor 801 is configured to: after performing the connection re-establishment process according to the preset re-establishment policy, re-scanning the connection identifier based on the delay scan rule to determine the connection identifier of the second terminal; or based on The delayed broadcast rule broadcasts the local connection identifier to facilitate the second terminal to send a connection request; or turns off the first connection function, and restarts the closed first connection function within a preset duration.
  • connection data exchanged by the first connection includes any one or more of the following types of data: a connection type of the second connection that needs to be established, the connection type includes a WiFi-based point-to-point P2P connection type or The WiFi hotspot connection type; the client information required for establishing the second connection, the client information includes: a connection point identifier and an authentication password; format information of the data packet; and a trigger instruction for establishing the second connection.
  • the processor 801 when used to establish a first connection with the second terminal based on the first connection policy, is configured to connect the selected multiple terminals that are connected to the first terminal
  • the connection identifier is recorded in the preset connection queue; the connection identifier of each terminal in the connection queue is used as the connection identifier of the second terminal, so as to respectively establish a connection with each terminal in the connection queue.
  • the processor 801 is further configured to: if the first connection between the second terminal and the second terminal is established based on the first connection policy, if the first connection fails to be established in the connection queue a third terminal, the first terminal re-establishing a connection with the third terminal according to a reestablishment policy;
  • the processor 801 is configured to restart the first connection function after the first terminal closes the first connection function, and if the connection identifier of the third terminal is rescanned based on the first connection function, establish If the connection identifier of the third terminal is not re-scanned, the connection identifier of the third terminal is recorded in a preset retry queue.
  • the processor 801 is configured to be used for establishing a second connection when the second connection between the first terminal and the second terminal is established according to the connection data of the second connection policy and the interaction.
  • the connection point identifier of the two connections is selected to be identified by the connection point of the first connection interaction; and the first terminal and the second terminal interaction connection information corresponding to the connection point identifier are used to establish the first terminal and A second connection between the second terminals.
  • a first task queue and a second task queue are preset, and the processor 801 is configured to: when the data to be transmitted is sent to the second terminal by using the second connection, The data to be transmitted stored in the first task queue is stored in the second task queue, and the data to be transmitted is saved in the first task queue; the data to be transmitted is obtained from the second task queue, and passed Sending, to the second terminal, the second connection; if it is detected that the data to be transmitted is not successfully sent by the second connection, storing the data to be transmitted stored in the first task queue to the second And the data to be transmitted is obtained from the second task queue, and is sent to the second terminal by using the second connection.
  • the processor 801 is configured to: if the data to be transmitted is obtained from the second task queue, and is sent to the second terminal by using the second connection,
  • the data to be transmitted obtained by the queue includes the first type of data, the first terminal dumps the first type of data into a preset synchronization message queue, and sends the data in the synchronization message queue to the second through the second connection.
  • a terminal if the second task queue acquires data to be transmitted, including the second type of data, the first terminal transfers the second data to a preset asynchronous message queue, and the asynchronous message queue is performed through the second connection.
  • the data in the second task is sent to the second terminal; if the data to be transmitted in the second task queue includes the third type of data, the first terminal transfers the third type of data to the preset asynchronous file queue, The second connection sends data in the asynchronous file queue to the second terminal.
  • connection When establishing a communication connection between the terminals for transmitting data, the connection can be established through two connection modes that can implement different connection performances, thereby satisfying different connection requirements and data transmission requirements of the user.
  • the connection mode such as Bluetooth with low power consumption is used as the first connection, and the data is exchanged through the first connection to establish a connection manner such as WiFi capable of transmitting data of a large amount of data relatively quickly, thereby saving the energy consumption of the terminal and satisfying the user. Fast and large capacity requirements for data transmission.

Landscapes

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

Abstract

Les modes de réalisation de la présente invention concernent un procédé et un appareil de transmission de données, et un terminal intelligent. Le procédé comprend les étapes suivantes : à détection d'une instruction d'envoi de données, un premier terminal affiche une interface utilisateur comprenant un identificateur de transmission ; à détection d'une opération de sélection exécutée sur l'identificateur de transmission, le premier terminal : envoie, à un second terminal, via une seconde connexion, des données devant être transmises ; établit une première connexion avec le second terminal sur la base d'une première politique de connexion ; échange des données de connexion via la première connexion ; et établit la seconde connexion entre le premier terminal et le second terminal selon une seconde politique de connexion et les données de connexion échangées. Dans les modes de réalisation de la présente invention, un mode de connexion à faible consommation d'énergie, Bluetooth par exemple, peut être utilisé en tant que première connexion, et des données peuvent être échangées via la première connexion afin d'établir un mode de connexion apte à transmettre un grand volume de données plus rapidement, Wi-Fi par exemple, ce qui non seulement réduit la consommation d'énergie d'un terminal, mais répond également aux exigences d'utilisateurs pour une transmission de données rapide et de grande capacité.
PCT/CN2018/078001 2017-03-07 2018-03-05 Procédé et appareil de transmission de données, et terminal intelligent WO2018161870A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710132669.XA CN107018554B (zh) 2017-03-07 2017-03-07 一种数据传输方法、装置及智能终端
CN201710132669.X 2017-03-07

Publications (1)

Publication Number Publication Date
WO2018161870A1 true WO2018161870A1 (fr) 2018-09-13

Family

ID=59440377

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/078001 WO2018161870A1 (fr) 2017-03-07 2018-03-05 Procédé et appareil de transmission de données, et terminal intelligent

Country Status (2)

Country Link
CN (1) CN107018554B (fr)
WO (1) WO2018161870A1 (fr)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018554B (zh) * 2017-03-07 2020-11-06 Oppo广东移动通信有限公司 一种数据传输方法、装置及智能终端
CN109428915B (zh) * 2017-08-25 2021-06-29 北京国双科技有限公司 数据获取方法及装置
CN108429751A (zh) * 2018-03-15 2018-08-21 广州优视网络科技有限公司 文件传输控制方法、装置及计算机可读存储介质、终端
CN110505712A (zh) * 2018-05-17 2019-11-26 华为技术有限公司 一种传输文件的方法及终端
CN113473428B (zh) 2018-06-13 2024-01-30 华为技术有限公司 一种传输控制方法及设备
CN109150596B (zh) * 2018-08-08 2021-08-03 新智能源系统控制有限责任公司 一种scada系统实时数据转储方法和装置
CN109474848B (zh) * 2018-09-14 2021-10-19 视联动力信息技术股份有限公司 一种基于视联网的视频处理方法、装置、电子设备及介质
CN109587667B (zh) * 2018-11-23 2021-06-18 Oppo广东移动通信有限公司 一种连接建立方法及装置、设备、存储介质
CN109660973A (zh) * 2018-12-28 2019-04-19 努比亚技术有限公司 蓝牙控制方法、移动终端及存储介质
CN111867148B (zh) * 2019-04-30 2024-08-06 青岛海信移动通信技术有限公司 一种建立设备连接和数据传输的方法和设备
CN111866824A (zh) * 2019-04-30 2020-10-30 青岛海信移动通信技术股份有限公司 一种建立通信连接及数据传输的方法和设备
CN110072295B (zh) * 2019-04-30 2022-08-09 西安商鼎能源科技有限公司 双通道通信方法、装置、第一终端及介质
CN112469014A (zh) * 2019-09-06 2021-03-09 华为技术有限公司 配置蓝牙连接参数的方法和电子设备
CN111050415B (zh) * 2019-12-23 2021-12-17 精诚工坊电子集成技术(北京)有限公司 一种操作便捷的无线数据传输方法
CN111416889B (zh) * 2020-01-16 2022-03-04 重庆大学 通过gatt和异常处理来适配的通信方法及系统
CN113170215A (zh) * 2020-03-13 2021-07-23 深圳市大疆创新科技有限公司 视频直播方法、系统和计算机存储介质
CN111510349A (zh) * 2020-04-09 2020-08-07 上海东普信息科技有限公司 业务异常检测和告警方法、装置、设备及存储介质
CN111770491B (zh) * 2020-06-08 2024-01-02 上海依图网络科技有限公司 一种数据链路建立方法及装置
CN112492520A (zh) * 2020-12-15 2021-03-12 北京百度网讯科技有限公司 定位方法、装置、设备以及存储介质
CN113660311A (zh) * 2021-07-21 2021-11-16 广州心娱网络科技有限公司 一种用户状态更新方法、系统、电子装置及存储介质
CN117581624A (zh) * 2022-04-28 2024-02-20 北京小米移动软件有限公司 数据通信方法、装置、电子设备以及数据通信系统
US12048039B2 (en) 2022-08-26 2024-07-23 Htc Corporation Electronic system, control method and non- transitory computer readable storage medium
CN116055581A (zh) * 2022-11-23 2023-05-02 广东博力威科技股份有限公司 数据传输控制方法、装置、设备及存储介质

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974187A (zh) * 2014-05-27 2014-08-06 深圳市中兴移动通信有限公司 一种近距离文件传输方法、装置和移动终端
CN106028421A (zh) * 2016-05-24 2016-10-12 上海斐讯数据通信技术有限公司 一种连接无线设备方法
CN107018554A (zh) * 2017-03-07 2017-08-04 广东欧珀移动通信有限公司 一种数据传输方法、装置及智能终端

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8880663B2 (en) * 2010-09-27 2014-11-04 Nokia Corporation Method and apparatus for sharing user information
US9743225B2 (en) * 2013-11-06 2017-08-22 Lg Electronics Inc. Method and apparatus for forming communication link using bluetooth
CN104394600B (zh) * 2014-10-24 2018-03-16 小米科技有限责任公司 传输文件的方法及装置
CN104935641B (zh) * 2015-05-07 2018-03-30 广东欧珀移动通信有限公司 一种加速文件传输的方法和装置
CN105472038B (zh) * 2016-01-07 2020-06-16 腾讯科技(深圳)有限公司 文件传输的控制方法、装置以及系统
CN106028261A (zh) * 2016-04-29 2016-10-12 高翔 无线连接方法、装置及系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103974187A (zh) * 2014-05-27 2014-08-06 深圳市中兴移动通信有限公司 一种近距离文件传输方法、装置和移动终端
CN106028421A (zh) * 2016-05-24 2016-10-12 上海斐讯数据通信技术有限公司 一种连接无线设备方法
CN107018554A (zh) * 2017-03-07 2017-08-04 广东欧珀移动通信有限公司 一种数据传输方法、装置及智能终端

Also Published As

Publication number Publication date
CN107018554A (zh) 2017-08-04
CN107018554B (zh) 2020-11-06

Similar Documents

Publication Publication Date Title
WO2018161870A1 (fr) Procédé et appareil de transmission de données, et terminal intelligent
US9591524B2 (en) Method and apparatus for transmitting data in network system, and data transmission system
WO2018045561A1 (fr) Procédé de transmission de fichier, procédé de réception de fichier et terminal
US20140115587A1 (en) Exception handling method, apparatus, and client
WO2018184266A1 (fr) Procédé, dispositif et système de communication dans une chaîne de diffusion en direct
US11523146B2 (en) Live broadcast method and apparatus, electronic device, and storage medium
CN106453231B (zh) 信令获取、传输方法和装置
WO2011144025A2 (fr) Procédé de fonctionnement en réseau, dispositif côté serveur, dispositif côté client et système de réseau
KR20150027771A (ko) 이동 장치 및 애플리케이션의 클러스터링을 위한 시스템 및 방법
WO2017096931A1 (fr) Procédé pour transmettre un logiciel de transmission d'écran, procédé de transmission d'écran, dispositif et système de transmission de données
EP2605460A1 (fr) Titre FR
JP7328900B2 (ja) ファイル伝送方法、装置、およびコンピュータ読み取り可能な記憶媒体
WO2021042612A1 (fr) Procédé et appareil de projection d'écran sans fil, dispositif et support de stockage
WO2016065977A1 (fr) Procédé et dispositif de traitement d'appel, terminal de communication et serveur
CN106303679A (zh) 媒体播放控制方法及媒体播放客户端
WO2014183547A1 (fr) Procédé et dispositif de projection
WO2015062526A1 (fr) Procédé et appareil de télécommande basée sur une connexion sans fil
CN110798745A (zh) 多媒体播放的控制方法、服务器及存储介质
WO2021244519A1 (fr) Procédé et appareil de commande de wi-fi et dispositif électronique
WO2024017113A1 (fr) Procédé et appareil de synchronisation de données, et dispositif électronique
WO2024027745A1 (fr) Procédé de connexion de réseau, dispositif électronique, support de stockage lisible et puce
WO2015089790A1 (fr) Procédé, appareil, et système de traitement de service
WO2014180436A1 (fr) Procede de communication inter-terminaux, et terminal
KR20230132541A (ko) 통신 설정 방법, 장치 및 저장 매체
US20130179506A1 (en) Communicating Media Data

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: 18763949

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18763949

Country of ref document: EP

Kind code of ref document: A1