CN107018554B - Data transmission method and device and intelligent terminal - Google Patents

Data transmission method and device and intelligent terminal Download PDF

Info

Publication number
CN107018554B
CN107018554B CN201710132669.XA CN201710132669A CN107018554B CN 107018554 B CN107018554 B CN 107018554B CN 201710132669 A CN201710132669 A CN 201710132669A CN 107018554 B CN107018554 B CN 107018554B
Authority
CN
China
Prior art keywords
connection
terminal
data
queue
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201710132669.XA
Other languages
Chinese (zh)
Other versions
CN107018554A (en
Inventor
何辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710132669.XA priority Critical patent/CN107018554B/en
Publication of CN107018554A publication Critical patent/CN107018554A/en
Priority to PCT/CN2018/078001 priority patent/WO2018161870A1/en
Application granted granted Critical
Publication of CN107018554B publication Critical patent/CN107018554B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

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

Landscapes

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

Abstract

The embodiment of the invention discloses a data transmission method, a data transmission device and an intelligent terminal, wherein the method comprises the following steps: the method comprises the steps that when a first terminal detects a data sending instruction, a user interface comprising a transmission identifier is displayed; when the first terminal detects the selection operation of the transmission identifier, the first terminal sends the data to be transmitted to the second terminal through a second connection; the first terminal establishes a first connection with the second terminal based on a first connection strategy, interacts connection data through the first connection, and establishes a second connection between the first terminal and the second terminal according to a second connection strategy and the interacted connection data. By adopting the embodiment of the invention, the connection modes such as Bluetooth and the like with low power consumption can be used as the first connection, and the connection modes such as WiFi and the like which can quickly transmit data with large data volume are established by exchanging data through the first connection, so that the energy consumption of the terminal is saved, and the requirements of users on quickness and large capacity of data transmission can be met.

Description

Data transmission method and device and intelligent terminal
Technical Field
The invention relates to the technical field of computer application, in particular to a data transmission method and device and an intelligent terminal.
Background
With the development of computer technology and electronic technology, the intelligent terminal can provide services with various functions for users, and help is brought to the work, study and life of the users. In a general intelligent terminal, a corresponding function can be experienced by providing a system service or installing a function application by a user.
The data transmission service provided by the intelligent terminal is one of the services commonly used by users. Currently, data transmission between two terminals is generally based on a mobile communication network and a computer network, and is implemented by using an instant messaging application. How to better transmit data between two terminals becomes a hot issue of research.
Disclosure of Invention
The embodiment of the invention provides a data transmission method, a data transmission device and an intelligent terminal, which can simply and conveniently transmit data between terminals.
In one aspect, an embodiment of the present invention provides a data transmission method, including:
the method comprises the steps that when a first terminal detects a data sending instruction, a user interface comprising a transmission identifier is displayed;
when the first terminal detects the selection operation of the transmission identifier, the first terminal sends the data to be transmitted to the second terminal through a second connection;
the first terminal establishes a first connection with the second terminal based on a first connection strategy, interacts connection data through the first connection, and establishes a second connection between the first terminal and the second terminal according to a second connection strategy and the interacted connection data.
Correspondingly, an embodiment of the present invention further provides a data transmission device, including:
the display module is used for displaying a user interface comprising a transmission identifier when a data sending instruction is detected;
the transmission module is used for sending the data to be transmitted to the second terminal through a second connection when the selection operation of the transmission identifier is detected;
the connection module is used for establishing a first connection between a first terminal and a second terminal based on a first connection strategy, interacting connection data through the first connection, and establishing a second connection between the first terminal and the second terminal according to a second connection strategy and the interacted connection data.
Correspondingly, the embodiment of the present invention further provides an intelligent terminal, including a processor, a first communication interface, and a second communication interface, wherein:
the processor is used for calling the first communication interface to establish a first connection with the second terminal, interacting connection data through the first connection, and calling the second communication interface to establish a second connection between the first terminal and the second terminal according to a second connection strategy and the interacted connection data;
the processor is further configured to display a user interface including a transmission identifier when a data transmission instruction is detected, and transmit data to be transmitted to the second terminal through a second connection when a selection operation on the transmission identifier is detected.
In the embodiment of the invention, a connection mode such as Bluetooth with low power consumption can be used as a first connection, and data is interacted through the first connection so as to establish a connection mode such as WiFi capable of rapidly transmitting data with large data volume, so that the energy consumption of the terminal is saved, and the requirements of the user on rapidness and large capacity of data transmission can be met.
Drawings
FIG. 1 is a schematic diagram of a user interface of an embodiment of the present invention;
fig. 2 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. 3 is a flowchart illustrating a process of establishing a Bluetooth connection according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another user interface of an embodiment of the present invention;
fig. 5 is a flowchart illustrating a data transmission method according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating 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.
Detailed Description
In the embodiment of the invention, in order to reduce user operation, when it is detected that a user needs to send certain data, a user interface containing a transmission identifier is displayed, and after the user selects the transmission identifier by means of touch clicking and the like, the terminal can send the data through an established second connection, as shown in fig. 1, the data comprises to-be-transmitted picture data 101 which is selected by the user and a transmission interface identifier 102 which is provided for the user, and once the user clicks the transmission interface identifier 102, the data transmission is started based on the established second connection. In the embodiments described below, the transmitting end may be regarded as a first terminal, and the receiving end may be regarded as a second terminal that can establish a first connection and a second connection with the first terminal.
In addition, the embodiment of the invention adopts an automatic pairing mode, establishes the second connection based on the first connection, can adopt the first connection with lower power consumption to determine the two terminals needing data transmission, and then establishes the second connection with higher power consumption on the basis of the first connection, thereby saving the power consumption to a certain extent.
In one embodiment, the first connection may be established using bluetooth BLE auto-scan, the second connection may be established using WiFi P2P, etc. (WiFi-based point-to-point transmission). Due to the fact that power consumption consumed by scanning operation of the WiFi P2P early connection point identification is large, the mode of the WiFi P2P can better transmit data, particularly large data. Therefore, in the embodiment of the invention, the terminals of the two parties of data transmission are determined based on Bluetooth, the first connection is established, and the WiFi P2P connection is established on the basis of the first connection, so that the power consumption of the WiFi P2P in the data interaction stage is saved, and the data can be better transmitted between the terminals.
In the embodiment of the present invention, the basic interactive process of establishing the second connection to transmit data may substantially include three phases, i.e., bluetooth scanning, bluetooth connection, and establishing a WiFi P2P connection.
In one embodiment, as shown in fig. 2, which is an interactive schematic diagram of establishing a connection between a first terminal and a second terminal according to an embodiment of the present invention, a process of establishing a connection between a first terminal and a second terminal is roughly described in fig. 2.
In other embodiments, the first terminal in the embodiment of the present invention may be used as a data sending end, and when the operation of selecting the transmission identifier is detected, the step shown in fig. 2 is triggered to be executed to establish the second connection between the first terminal and the second terminal serving as the receiving end, or the step shown in fig. 2 is triggered to be executed to establish the second connection between the first terminal and the second terminal after the user of the first terminal starts operations such as bluetooth scanning, so that the data to be transmitted can be directly sent when the operation of selecting the transmission identifier is subsequently performed. The second connection requires the activation of a function, such as bluetooth, WiFi, etc., in order to facilitate the cooperation with the first terminal. After the second terminal starts the corresponding function, the second terminal enters an advertisement mode, and establishes a GATT (Generic Attribute Profile) service and the like so as to establish a second connection.
As shown in fig. 2, a first terminal first scans a device in an advertisement phase, and the first terminal sends a scan data request in S201 and receives data returned by other terminals including a second terminal and the like in S202. The first terminal selects and determines a second terminal from the returned data in S203, and transmits a connection request to request connection to the second terminal in S204. A bi-directional communication connection, i.e. a first connection, between the first terminal and the second terminal is established in S205. After the first connection is established, the first terminal sends data requesting for transmission of connection establishment to the second terminal on the channel of the first connection in S206. And the second terminal obtains a transmission connection establishment instruction after receiving the request transmission connection establishment data, and enters a WiFi connection stage. The second terminal returns the request data to the first terminal in S207. And the first terminal obtains a transmission connection establishment instruction to enter a WiFi connection stage after receiving the request data. The first terminal sends an instruction for entering a transmission connection stage in S208, and the second terminal returns a transmission success receipt in S209. And after receiving the transmission connection establishment instruction receipt, the first terminal also enters a WIFI connection stage. And at this point, the first terminal and the second terminal complete the establishment of the second connection.
In one embodiment, the advertisement packet for the bluetooth BLE advertisement may carry 31bytes of data, and in order to display the names of all the receiving terminals at this stage to select the second terminal from the names, the MAC address of bluetooth and the connection identifier of the receiving terminal, such as the name of the receiving terminal, need to be carried.
As shown in table 1, three advertisement modes are shown in which the terminal advertises its connection identity.
Table 1:
advertising model Interval (millisecond) Power consumption
Low time delay 100 Height of
Balancing 250 Balancing
High time delay 1000 Is low in
Based on table 1, considering power consumption and success rate comprehensively, the strategies that the advertisement can adopt include: the receiving end advertisement does not set the total advertisement duration (as long as the user turns on the data transmission function in the embodiment of the invention, the receiving end advertisement is always on until the user turns off the data transmission function switch, the receiving end advertisement can be awakened through connection after the standby is confirmed, the advertisement and the scanning can be realized), the scanning probability is increased by setting the receiving end advertisement to be in the low-delay mode in the first 60 seconds, and the subsequent time is set to be in the balance mode, so that the power consumption is reduced. After the Bluetooth is connected and the WIFI is determined to establish connection, the advertisement of the sending end stops reducing power consumption, and the interference between the Bluetooth and the WIFI can be reduced.
The embodiment of the invention also sets the processing of the possible exception, which can include: the receiving end advertisment packet has overlarge data: such anomalies can be avoided by tightly controlling the name of the receiving end. Receiver-side advertisement excess and other internal anomalies: since the number of advertisements of the total bluetooth BLE is limited, for example, a maximum of 10 advertisements are supported, the advertisement may fail after exceeding the limit. This abnormal situation can be avoided by rescanning, in one embodiment, a retry advertisement is performed after a delay or scanning is performed three times, the delay time is set according to a gradient, for example, the first retry is set to wait for 2s, the second retry is set to wait for 5s, and the third retry is set to wait for 10s, and the bluetooth is turned off and then turned on when the retry is still abnormal for three times. The shutdown restart may be performed only once, and the user prompt may be performed if the restart is unsuccessful after three times of bluetooth retry.
In one embodiment, as shown in table 2, three modes of the terminal in scanning for connection identities are shown.
Table 2:
scanning mode Window (mils) Spacing (mils) Power consumption
Low power consumption 500 5000 Is low in
Balancing 2000 5000 Balancing
Low time delay 5000 5000 Height of
The scanning time set by the sending end in a single time can be 60s, the first 20s can be set to be in a low-delay mode, and the subsequent time can be set to be in a balanced mode. After the bluetooth completes the connection and determines that the WiFi establishes the connection (second connection), the scanning operation of the receiving end stops reducing the power consumption, and the interference of the bluetooth and the WiFi can also be reduced. The scanning mainly has the exception that the advertisement equipment is not scanned in overtime, and the user can not be prompted for failure and continuously retried in scanning in consideration of the interaction scene of the user until the user quits the selection sending interface.
In the bluetooth connection establishment phase, i.e. the first connection establishment phase, the scanned receiving end will make a connection request after the user makes a selection to determine the data transmission connection. The connection of data transmission can be divided into single receiving end connection and multi-receiving end connection. For a single-terminal connection (first connection) between a first terminal and a second terminal, a receiving terminal serves as a server of a GATT, a sending terminal (first terminal) starts the connection, and after the connection is established and the server (second terminal) is found, the server and the sending terminal negotiate a connection mode of underlying data transmission, which mainly includes three information: WiFi connectivity means, including P2P or hotspot connections; the method comprises the steps of transmitting server information (WiFi P2P MAC address or hotspot name and password), transmitting client information (a transmitting end used for the authentication of the connection of a server end cannot be controlled in the connection process, and only transmitting end information can be added into transmission data so as to process the data of a specified user); and (4) an instruction for opening connection (an instruction for WIFI P2P to scan Discovery or an instruction for opening hot spots). The transport packet format is charasteristic (UUID, value).
Fig. 3 is a schematic flowchart illustrating a process of establishing a bluetooth connection according to an embodiment of the present invention. After scanning the connection identifiers of the corresponding one or more receiving terminals, the first terminal selects a target connection identifier in S301, where the target connection identifier is a connection identifier of a second terminal that is desired by the user as a receiving terminal. The first terminal requests to establish a connection, i.e. requests to establish a first connection, in S302. The first terminal judges whether the connection is successful in S303, if successful, performs S304 and S305, if unsuccessful, performs S306, judges whether the number of times exceeds a reconnection number threshold in S306, and if so, determines that the connection is failed in S307. And if not, re-requesting to establish the first connection to execute the step S302, and performing reconnection processing.
In S305, performing connection monitoring on the established first connection, in S308, determining whether the first connection is interrupted, if not, continuing monitoring, and executing S305. If the first connection is interrupted, executing the step S306, and determining whether the connection before interruption is the nth interruption reconnection, if so, determining that the connection fails. If not, S302 is executed again, and reconnection is executed after the next interruption.
Based on the established first connection, the sender may send a data request to the receiver in S304, where the data request is used to confirm to the receiver whether the receiver may start receiving data, and after sending the data request, that is, starting timing, it is determined in S309 whether acknowledgement information that confirms that the receiver can receive data is received in a preset time range. If the confirmation information is not received within the preset time range, S310 is executed to determine whether the number of times of sending the data request exceeds a preset number threshold, and if not, S304 is executed again. If the number of times exceeds the threshold, S311 may be performed to determine that the connection has failed. After determining that the connection fails, the establishing of the first connection may be re-requested to perform S302.
If the determination result in S309 is that the confirmation information is received, S312 is executed, in S312, a relevant instruction for establishing a second connection between the first terminal and the second terminal is started to be transmitted, after the relevant instruction is transmitted, timing is started, and in S313, it is determined whether 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 and instructions, and the corresponding relevant data and instructions for establishing the second connection can be replied. If the receipt information of the receiving end is received, S314 is executed to trigger the connection process entering the second connection. If the receipt information of the receiving end is not received, S315 is executed to determine whether the number of times of sending the related instruction of the second connection exceeds a preset number threshold, and if not, S312 is executed again. If the number of times exceeds the preset number threshold, S311 is executed to determine that the connection fails. After determining that the connection fails, the establishing of the first connection may be re-requested to perform S302.
Under the condition of multi-receiving-end connection, when a user selects a plurality of terminals in scanned connection identifiers as receiving ends, the connection identifiers of all the receiving ends needing to be transmitted are contained in one queue, and connection processing between the sending ends and the receiving ends is carried out on the basis of all the connection identifiers in the queue in sequence. And when the terminal corresponding to the determined connection identifier cannot establish connection and cannot establish connection successfully through the abnormal processing flow, restarting Bluetooth scanning and waiting for 5s, if the same connection identifier is not scanned, placing the connection identifier which cannot establish connection into another retry queue, continuing to execute the connection of the next receiving end, and if a matched device is found, performing connection processing again. And after the selected connection identifiers are all reconnected, the Bluetooth device performs scanning for 5s again, the scanning is compared with each connection identifier in the retry queue, and if the connection identifiers in the retry queue can be scanned again, the Bluetooth device performs first connection processing of the terminal indicated by the corresponding connection identifiers.
After the establishment of the first connection is completed in the above manner, the second connection process is performed on the basis of the first connection. In an embodiment, the second connection may be established by analyzing the bottom layer 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, that is, according to data transmitted by the first connection, the first terminal selects the connection mode of the WiFi P2P or the connection mode of the WiFi hotspot to establish the second connection.
When the WiFi P2P (second connection) is established, both the first terminal and the second terminal may enter the scan Discovery mode, and perform status monitoring of the WiFi P2P connection. The sending end filters all scanned peers (in the connection of P2P, each sending end and receiving end is called a peer), selects the equipment with the MAC address meeting the address sent by the Bluetooth BLE for connection, and can designate the receiving end as a connection server. In the above-mentioned bluetooth BLE connection, the MAC addresses of the receiving terminals are exchanged between the sending terminal and the receiving terminal, so that the sending terminal can directly find the connection point identifier of the receiving terminal that wants to transmit data from the scanned connection point identifiers (MAC addresses) of the multiple receiving terminals when the sending terminal establishes the WiFi P2P connection for scanning.
In one embodiment, exception handling when making a WiFi P2P connection includes: when Discovery is scanned, an abnormal condition that P2P is not supported may occur, and if the sender cannot judge in advance, this abnormal processing may renegotiate the underlying data transmission connection mode through the bluetooth connection (first connection) again, or perform the bluetooth connection again to redetermine the connection type of the second connection. When the current P2P device is busy, such abnormal situations may occur during scanning Discovery and initiating connection, in order to overcome such abnormal situations, retry may be performed after setting the current request delay (the first retry of the gradient may wait for 15s, the second retry may wait for 25s, and the third retry may wait for 35s), the number of re-requests is not more than three, and a connection failure may be confirmed when more than three requests are performed. The timeout time of the process of establishing the transmission connection may be 30s, direct retry of the device is not detected, the total number of retries does not exceed three times, and if not detected after three times, the connection may be determined as a connection failure. It should be noted that, the WiFi P2P connections are all in a broadcast form, and the flows can be unified into a single thread for synchronous processing, so as to avoid abnormal states.
After the WiFi P2P connection is established, possible exceptions and their handling include: and (3) the connection is disconnected abnormally, a monitoring task is started after the direct connection of the WIFI P2P is established, the disconnection is detected, reconnection is carried out immediately, and the data is retransmitted after the reconnection is successful. If the reconnection fails, the reconnection is retried for three times, and if the reconnection cannot be established, the transmission is judged to fail.
When the WiFi P2P connection between the sending end and a plurality of receiving ends needs to be established, the currently executed receiving end can not establish the second connection, then the next connection is directly carried out, and the process of carrying out reconnection is carried out finally after the temporary failure. The situation that the sending end establishes connection with a plurality of receiving ends is processed as follows.
After a second connection between a sending terminal (a first terminal) and a receiving terminal (a second terminal) is established, transmission of corresponding files can be carried out, and network application program interface socket operation is adopted for transmission after the established second connection. In one embodiment, the command transfer creates two socket queues, where one socket needs to support file transfer at the same time. The purpose of creating two socket transmission instructions is that firstly, during transmission, a part of data may exist to support a message synchronization queue, and at this time, the data sent first arrives first and then arrives later, so that a synchronization message queue can be created, and information and files needing synchronization are transmitted in the queue. When the synchronous queue is transmitting data with large data volume, the queue is blocked, so that an asynchronous message queue can be created at the same time to ensure that the message can also be sent to the other side in time, the asynchronization is relative to the asynchronization of the last synchronous queue, but the queue of the asynchronous message queue keeps the precedence relationship, and the asynchronous message queue supports two-way and is used for supporting the interaction of state information and instructions of two connecting sides, such as the arrival, whether to agree with the receiving, the receiving state and the like of a file.
In the embodiment of the invention, three socket queues can be created for the transmission of data such as files and the like, wherein the three socket queues comprise the synchronous message queue (one connection) and the asynchronous message queue (one connection) and comprise the asynchronous file queue, and the three socket queues use the same queue, so that the condition that the data are firstly transmitted when being added into the queue is not ensured.
The format of the codec negotiated between the first terminal and the second terminal is shown in the following tables, where table 3 is an instruction encoding format, table 4 is a file encoding format, and table 5 is a heartbeat information encoding format.
Table 3:
Figure BDA0001240507760000081
table 4:
Figure BDA0001240507760000082
table 5:
Version DataType Body Length Resp/Req
in tables 3, 4, and 5, the first 3 columns are header information, and the description of the header information is as described in table 6 below. Here, in the following description in table 6, the length of the packet does not include the previous version number and the data type length. The description of the other columns in the instruction encoding format is described below in table 7. The description of the other columns in the file encoding format is described in table 8 below.
Table 6:
name (R) Data type Description of the invention
Version Int Version number of data packet
DataType Int Data type (see data type description)
BodyLength Long Length of data packet
Table 7:
Figure BDA0001240507760000091
table 8:
Figure BDA0001240507760000092
further, in the embodiment of the present invention, descriptions for the above-mentioned various data types are as described in table 9 below.
Table 9:
name (R) Value taking Description of the invention
DATA_TYPE_COMMAND 0x00001000 Instruction data type
DATA_TYPE_FILE 0x00002000 File data type
DATA_TYPE_HEARTBEAT 0x00004000 Type of heartbeat data
In addition, in data encoding, the STRING type field uses 1 inter as a length field to identify the length of the byte number occupied by the STRING (excluding the 4 bytes occupied by the length field). The character string is encoded by UTF-8. The method is characterized in that: the "length" field of the empty string is 0, and there is no data. I.e. the dummy string also takes 4 bytes in length. The INTEREGER INTEGER field takes 4 bytes and adopts a high-order preceding coding mode. The value range is 0 to 4294967295. The LONG integer field of LONG takes 8 bytes and adopts the coding mode with the high order preceding. Ranging from 0 to 18446744073709551615.
In the embodiment of the invention, the monitoring connection state in the transmission process is set, and Socket overtime monitoring is set, so that automatic reconnection is disconnected. Setting two transmission queues, one waiting transmission queue and one transmission queue, moving the task from the waiting transmission queue to the transmission queue when starting transmission, removing the task of the transmission queue when the receiving end sends back a success instruction, and retransmitting the task of the transmission queue if the connection is interrupted, the transmission is overtime or the subsequent file check fails. Breakpoint resuming of files is also considered. The data of the queue to be transmitted can be transmitted through the three socket queues mentioned above.
In the embodiment of the present invention, the transmitted data may also be checked, the data may be checked by comparing md5 values, and if the receiving end determines that the data are inconsistent, the receiving end notifies the sending end to resend the data through the instruction channel, that is, the task in the transmission queue is added to the queue to be transmitted again. For the data transmission, the compression module can be added to compress the data to be transmitted, so that the transmission efficiency is improved.
In the embodiment of the present invention, most of the data content can be transmitted as a file, specifically: characters, contacts and bookmarks are directly transmitted (as character streams are directly transmitted, the size is limited, and the character streams are processed in a file form exceeding 1M), supported types and processors are used as processors for dynamic loading (similar to agents of backup restoration and cloud services) to provide a type analysis and data processing method, and the types of the loaders cannot be found and are uniformly processed according to files.
It should be noted that the specific values such as the specific time value, the time value, and the file data value mentioned in the above positions are only examples, and in other embodiments, other values may also be used, for example, in table 1, in the low-latency advertisement mode, the interval time value may also be 150 milliseconds, etc., the number of reconnection times may be three times, four times, five times, etc., the above-mentioned "processing in file form over 1M" may be used, and in other embodiments, the processing in file form may also be used when the number exceeds 2M.
The embodiment of the invention also comprises the limitation of the size of the transmission data. The sending end calculates the total size of the selected file, the file is transmitted to the receiving end through the command channel, the receiving end calculates the remaining space of the receiving end, then the receiving end replies to the sending end, and the space is not enough to do corresponding user prompt. If the storage space of the receiving end is enough, the corresponding steps of file transmission can be carried out.
In the embodiment of the present invention, the processing manners and functions including those described in the above embodiments may be implemented in the form of a system control, or implemented by an executable application. The data range capable of being transmitted comprises files of different types such as photos, videos, music, documents, compression packages, installation packages and the like, folders, texts such as characters, contacts and the like, and websites. Data of the installed non-system applications is not transmitted. When the system control is used as a system control, a transmission identifier for triggering the system control can be provided at a remarkable position in a user interface, once the transmission identifier is clicked, the system control starts to work, the above-mentioned various processing modes are executed, and functions such as data transmission and the like are finally realized. The control center of the intelligent terminal is additionally provided with an inlet for opening the system control to control the file receiving authority, namely the authority for receiving the file.
When the intelligent terminal serves as a receiving end, the received files can be stored in a designated folder, and the receiving and storing principle is that the received files are placed in the folder correspondingly set by the system according to the file types. In one embodiment, the Pictures may be stored in a screenshot (screenshots) folder, a Camera (Camera) folder, or other Pictures (Pictures) folder preset in the terminal; the video can be correspondingly stored in a preset camera shooting folder, other image (Movies) files and the like; the Music is stored in a preset Music (Music) folder; the website is stored in a preset browser favorite; the characters can generate a note or TXT file to record the transmitted characters and the like; the contact information is stored in a contact folder of the terminal. For other file classes not mentioned, the other file classes may be stored via a folder with a transmission path, for example, a folder with a file name "file receiving XXX".
In one embodiment, the sending processing logic of the files in the album may be performed according to a user's selection. Firstly, thumbnails or single pictures and videos are selected from the photo album to be sent, and file operations can be continued, cancelled and selected when the thumbnails or the single pictures and the videos enter the link and transmission process. The file range selected again is the next transmission content, regardless of the content being transmitted. As shown in fig. 4, the user selects two pictures 401 and 402 in the album and provides an entry for the transmission, i.e. a transmission identifier, on the user interface. The user, upon click-selecting the transmission identity, starts to transmit to the users of one or more receivers (each of which may be considered as a second terminal) that have established the second connection, e.g. user a403 and user B in fig. 4.
When the sending is initiated for the large picture single picture, other pictures can be selected again to be sent together. When a plurality of pictures are selected and transmitted, it is necessary to confirm whether or not the selected pictures are appropriate, and this is particularly important in the case of many continuous photographs. The photo needs to send a plurality of people, but the picture range of each person is different, so that multiple connection is avoided. Furthermore, there are many files with high photo similarity, and the files to be transmitted need to be selected according to the content and quality of the photos. When a single large picture is sent, photos with quality and the like meeting the requirements of a user can be well selected, and when the photos to be sent are selected through the thumbnails, a plurality of photos can be simultaneously selected.
The range and sequence of the files previewed by the thumbnail can be consistent with the range and sequence of the files which can be sent by the user and are determined when the system control is started. The size of the thumbnail preview file can be adjusted according to a preset size rule. In one embodiment, the picture is fully scaled up to a height of 232DP, a length of at most 324DP, and a minimum of 36DP, and if the height or length exceeds the maximum or minimum requirement, the middle portion of the picture can be cut as desired.
After the system control is started in the photo album of the intelligent terminal, the pictures and videos which are selected can be continuously added or cancelled, and then the pictures and videos are continuously sent. Other multi-selection or single file transmission, once the system control is started, new data can not be selected in the transmission. When starting to transmit a file, the corresponding receiving end can be prompted as to how to operate.
The sending end can display the sent user, namely, display information such as the user identification of the second terminal, and definitely know the target user to which the file sent this time is to be sent. In an embodiment, the sending end may display user identifiers corresponding to all second terminals that have established the second connection, where the user identifiers may be device identifiers such as registered account names or device names of the intelligent terminals, and the user identifiers may further include identifiers such as a head portrait used by the corresponding user. After the displayed user identifier of the second terminal is clicked (for example, after the avatar is clicked), the data transmission through the second connection is triggered to start, and it can be determined that the transmission of the corresponding data is cancelled by clicking the user identifier again. The user can also select a plurality of user identifications at the same time, and the selected file data can be transmitted to the second terminals corresponding to the plurality of user identifications at the same time.
In one embodiment, a corresponding user interface for prompting the status of the transmission may be provided so that the user can clearly know the progress of the transmission and can cancel the transmission. In one embodiment, after the user identifier (which may be regarded as a transmission identifier) is clicked to start transmitting data, any one or more of status information of waiting for transmission, canceling transmission, progress of transmission and completion of transmission can be displayed in the user interface. The user identification (such as the head portrait of the user) can also be clicked to stop the data transmission between the current user and all receiving end users, and when the transmission is stopped, the transmitted file data is not deleted.
In an embodiment, after the receiving end opens the system control or the data transmission application, the receiving end may display any one or more of the file type, the file number, and the file size that the sending end needs to transmit. Even if the second connection between the two parties is established, the receiving end can choose to accept or reject the reception when the transmitting end transmits data. The receiving end can also check information such as the progress of receiving data. After the transmission is completed, the user can quickly view the received files. The user can select to directly open the received file, and can directly call the corresponding application program to open the transmitted file according to different file types. The transmitted characters are opened by using character applications such as notes, and the pictures are opened by using applications for managing the pictures such as albums. The video is opened and played using an application such as a video player. The music is opened and begins playing using an application such as a local music player. And the contact information is directly opened by using the contact application of the terminal and is positioned in a contact detail interface. The web site is opened directly with the browser application. Other files with paths are opened directly in the file management application.
The transmission process of the data can run in the background, and normal network experience is guaranteed. After a user at a sending end operates in a background and transmits data, a notification instruction can be carried out on a notification bar of the intelligent terminal, the notification instruction is used for indicating the current data transmission state to the user, and the user can enter a detailed data transmission interface by clicking the notification instruction.
After the sending end starts the system control or the application for the first time, the sending end can prompt the user to use the Bluetooth and the wlan authority, and after the user clicks the agreement, the subsequent connection establishment between the terminals can automatically start corresponding functions of the Bluetooth and the WiFi.
In addition, after obtaining the data statistics authorization of the user, the embodiment of the invention can also perform data statistics, including the statistics of determining any one or more of the sending terminal model, the receiving terminal model, the file type, the number distribution of different file types, the percentage of the number of files transmitted at one time, the percentage of users transmitting folders, the file transmission speed distribution, the transmission success rate, the transmission times/number, the reason of transmission failure, and the schedule operation path statistics. The data transmission method of the embodiment of the invention is optimized based on the statistical data.
In the embodiment of the invention, a connection mode such as Bluetooth with low power consumption can be used as a first connection, and data is interacted through the first connection so as to establish a connection mode such as WiFi capable of rapidly transmitting data with large data volume, so that the energy consumption of the terminal is saved, and the requirements of the user on rapidness and large capacity of data transmission can be met.
The following describes a data transmission method, a data transmission device and an intelligent terminal according to embodiments of the present invention.
Please refer to fig. 5, which is a flowchart illustrating a data transmission method according to an embodiment of the present invention, where the method according to the embodiment of the present invention may be executed in an intelligent terminal, and the intelligent terminal may be a terminal with a data transmission function, such as a smart phone, a tablet computer, and an intelligent wearable device. The intelligent terminals have low-power-consumption data transmission functions such as Bluetooth and the like, and comprise data transmission functions such as WiFi and the like which can quickly transmit various data. In the embodiment of the present invention, the first terminal serves as a sending terminal, the second terminal serves as a receiving terminal, and both terminals are configured with a system control or an application program that performs a data transmission processing function. The method of an embodiment of the present invention includes the following steps.
S501: 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 at this time, and may also include processing rules when the connection fails, such as the number of reconnection times, exception handling rules, how to remind the user, and other rules. In one embodiment, the first connection policy mainly indicates that a bluetooth connection type with less power consumption between the first terminal and the second terminal is established, and the bluetooth connection between the first terminal and the second terminal is established.
After the bluetooth connection between the first terminal and the second terminal is successfully established, S502 described below is executed, and if the first connection is not successfully established according to the first connection policy, for example, the first connection cannot be established after multiple reconnection, a prompt may be sent to the user to prompt that the first connection is unsuccessful, or further prompt the user about the reason of the connection failure, which may be, for example, the case of the bluetooth connection abnormality mentioned in the above embodiment.
The first connection strategy may further include relevant rules of bluetooth scanning and relevant rules of bluetooth advertisement, including rules of scanning frequency, scanning duration, connection identifier advertisement frequency, advertisement duration, etc. Reference may be made to the description of the scanning and advertising in the above embodiments.
If the first connection is established unsuccessfully, the establishment of the first connection may be initiated again through a reconnect mechanism. In one embodiment, the first terminal does not receive a connection request from the second terminal after broadcasting the connection identity.
In one embodiment, the first terminal scans for a connection identifier at a first scanning frequency within a first time range based on the indication of the first connection policy; the first terminal scans and acquires a connection identifier at a second scanning frequency in a second time range based on the indication of the first connection strategy; after the scanning is finished, the first terminal determines a target connection identifier from all the connection identifiers obtained through scanning, and establishes a first connection with the second terminal based on the target connection identifier, wherein the target connection identifier is the connection identifier of the second terminal.
Or, in one embodiment, the first terminal broadcasts the connection identifier of the terminal at a first broadcast frequency in a first time range based on the indication of the first connection policy; the first terminal broadcasts the connection identifier of the terminal at a second broadcast frequency in a second time range based on the indication of the first connection strategy; the method comprises the steps that after broadcasting is finished and a connection request of a second terminal is received by the first terminal, a first connection between the first terminal and the second terminal is established, wherein the connection request is sent by the second terminal based on a scanned connection identifier broadcasted by the first terminal.
S502: and the first terminal exchanges connection data through the first connection and establishes a second connection between the first terminal and the second terminal according to a second connection strategy and the exchanged connection data. After the first connection is successfully established, data is interactively connected through the first connection. The interacted connection data includes all necessary data needed for establishing the second connection, such as the MAC address of the second terminal, WiFi hotspot identification, connection password, etc. The second connection policy indicates the type of the second connection, and may further include a number of reconnection, an exception handling rule, a rule on how to notify the user of the connection establishment failure, and the like. The first connection may be a WiFi-based communication connection, for example, a WiFi hotspot communication connection or a WiFi-based peer-to-peer P2P communication connection.
When establishing the second connection, the first terminal selects the connection point identifier interacted by the first connection from the connection point identifiers used for establishing the second connection; and the first terminal establishes a second connection between the first terminal and the second terminal by the first connection and the second terminal interaction connection information corresponding to the connection point identification.
Because the data required for establishing the second connection are interacted through the first connection with lower power consumption, when the second connection based on the WiFi is established, after the terminal needing to establish the connection is scanned based on the WiFi, the data used for establishing the connection, which are interacted and connected according to the scanning result through the first connection, are directly completed, and the connection based on the WiFi between the first terminal and the second terminal is completed, wherein the connection based on the WiFi is a WiFi P2P connection or a WiFi hotspot connection. And when the WiFi is connected, the power consumption for performing data interaction for the scanned terminal is generally much higher than that when the data is interacted based on the communication connection with low power consumption such as bluetooth. Therefore, in the embodiment of the invention, the power consumption for establishing the WiFi connection is saved. The power consumption for data transmission after establishing the second connection is substantially the same as the power consumption for data transmission based on the existing WiFi hotspot or WiFi P2P connection.
In the embodiment of the present invention, the types of the second connection may include at least a connection type of a WiFi hotspot and a connection type of WiFi p 2P. In the interaction data based on the first connection, data indicating a connection type of the second connection may be included. In S502, the second connection policy is to select a connection type according to the indication of the interaction data, and further interact 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 transmission instruction, so as to establish a connection between the first terminal and the second terminal in advance, and prepare for a user of the first terminal to transmit data to the second terminal at any time, where the second terminal needs to open a system control for performing data transmission processing or open an application with an installed corresponding data transmission processing function, so that the first terminal can establish the first connection and the second connection. In other embodiments, the first terminal may also start to establish a connection between the first terminal and the second terminal when detecting the data transmission instruction, so as to execute the data transmission instruction of the first terminal this time.
In one embodiment, the connection data interacted with over the first connection includes any one or more of: the connection type of the second connection to be established comprises a point-to-point connection type or a WiFi hotspot connection type; client information required for establishing the second connection, the client information including: the access point identification comprises a connection point identification and an authentication password, wherein the connection point identification can be a WiFi hot spot address, a terminal MAC address and the like; format information of the data packet; and a triggering instruction for establishing the second connection, where the triggering instruction triggers the first terminal or the second terminal to start establishing the second connection, for example, triggers the first terminal or the second terminal to start opening a WiFi hotspot, and obtains a name and a password of the WiFi hotspot, so as to facilitate access to the WiFi hotspot.
S503: and when the first terminal detects the data sending instruction, displaying a user interface comprising a transmission identifier. The user interface may refer to fig. 1, and a description of the user interface is also included in the above embodiment, which is not described herein. The transmission identifier is configured with corresponding trigger logic, and is used for triggering and starting a corresponding system control or application executing data transmission processing, or directly triggering the system control or application to start data transmission.
S504: and when the first terminal detects the selection operation of the transmission identifier, the first terminal sends the data to be transmitted to the second terminal through a second connection. After the user selects the transmission identifier through selection operations such as user click operations, the system control or the application can finally transmit the data to be transmitted through the second connection in a background running mode.
In other embodiments, after detecting the selection operation, S501 and S502 are started to be executed, the background runs the step of establishing the second connection between the first terminal and the second terminal, and S504 is executed to send the data to be transmitted to the second terminal through the second connection.
The data transmission format, the configured transmission queue, the socket queue, and the operation processing such as storing and opening of the designated folder of the received data by the second terminal can all refer to the description in the above embodiments.
In one embodiment, a first task queue and a second task queue are preset, and the sending the data to be transmitted to the second terminal through the second connection includes: storing data to be transmitted stored in the first task queue into the second task queue, wherein the data to be transmitted is stored in the first task queue; acquiring data to be transmitted from the second task queue, and sending the data to the second terminal through a second connection; and if the data to be transmitted is detected to be unsuccessfully transmitted through the second connection, storing the data to be transmitted stored in the first task queue into the second task queue again, acquiring the data to be transmitted from the second task queue, and transmitting the data to be transmitted to the second terminal through the second connection. The first task queue and the second task queue correspond to the queue to be transmitted and the transmission queue mentioned in the above embodiments. Three transmit queues may be provided to transmit data in the second task queue.
In one embodiment, the three transmission queues are arranged to include a synchronous message queue, an asynchronous message queue, and an asynchronous file queue. If the data to be transmitted acquired by the second task queue comprises first-class data, transferring the first-class data to a preset synchronous message queue, and sending the data in the synchronous message queue to the second terminal through a second connection; if the data to be transmitted obtained by the second task queue comprises second-class data, transferring the second data to a preset asynchronous message queue, and sending the data in the asynchronous message queue to the second terminal through a second connection; and if the data to be transmitted obtained by the second task queue comprises third-class data, transferring the third-class data to a preset asynchronous file queue, and sending the data in the asynchronous file queue to the second terminal through a second connection. The description of the three transmit queues and corresponding types of data may refer to the embodiments described above.
In the embodiment of the invention, a connection mode such as Bluetooth with low power consumption can be used as a first connection, and data is interacted through the first connection so as to establish a connection mode such as WiFi capable of rapidly transmitting data with large data volume, so that the energy consumption of the terminal is saved, and the requirements of the user on rapidness and large capacity of data transmission can be met.
Referring to fig. 6 again, a flowchart of the first connection establishing method according to the embodiment of the present invention is shown, where the method according to the embodiment of the present invention may be executed in an intelligent terminal, and the intelligent terminal may be a terminal with a data transmission function, such as a smart phone, a tablet computer, and an intelligent wearable device, corresponding to the above S501. Particularly, the intelligent terminals have a low-power data transmission function such as bluetooth, and include a data transmission function such as WiFi capable of rapidly transmitting various data. In the embodiment of the present invention, the first terminal serves as a sending terminal, the second terminal serves as a receiving terminal, and both terminals are configured with a system control or an application program that performs a function of data transmission processing. The method of an embodiment of the present invention includes the following steps.
S601: the first terminal scans the connection identifier. In the embodiment of the present invention, the connection identifier refers to an identifier provided by the terminal and capable of establishing a bluetooth connection. And the first terminal starts a Bluetooth scanning mode to scan connection identifications such as Bluetooth identifications of advertisements of other terminals.
In this embodiment of the present invention, the S601 may include: and the first terminal scans and acquires the connection identifier at a first scanning frequency in a first time range based on the indication of the first connection strategy. And the first terminal scans and acquires the connection identifier at a second scanning frequency in a second time range based on the indication of the first connection strategy. In other embodiments, more scan gradients may be configured, if necessary, to scan at different scan frequencies for different time periods. Generally, when it is determined that a communication connection is to be established between terminals that need to establish data transmission, a bluetooth module is quickly opened to establish a bluetooth connection, and a corresponding bluetooth identifier of a second terminal is scanned within a first few tens of seconds, for example, within a time range of 10 seconds, before a first terminal starts scanning, so that the bluetooth identifier of the second terminal can be scanned by using a higher scanning frequency within the first time range after the start of scanning, and the scanning frequency can be reduced within other time ranges to save power consumption. Certainly, after the user finds that the scanned connection identifier list includes the bluetooth identifier of the second terminal, the user may close the scanning and proceed to the next step.
S602: and after the scanning is finished, the first terminal determines a target connection identifier from all the connection identifiers obtained by scanning. The target connection identifier includes a connection identifier of the second terminal. After the scanning process of S601 is executed, all the connection identifiers obtained by scanning may be displayed in one list to prompt the user, and the user selects one or more connection identifiers as target connection identifiers, where the selected target connection identifiers may be respectively used as connection identifiers of second terminals, and respectively initiate connection processes for each second terminal.
In one embodiment, when a plurality of connection identifiers are scanned, the connection identifiers of a plurality of selected terminals waiting to be connected with the first terminal can be recorded in a preset connection queue; and respectively taking the connection identifier of each terminal in the connection queue as the connection identifier of the second terminal so as to establish the first connection between each terminal in the connection queue. The connection queue is mainly used for recording the target connection identifiers selected by the user, so that the connection with the terminals corresponding to the target connection identifiers can be sequentially established subsequently, and the condition that the user needs to select the next target connection identifier after the connection with one terminal is established is avoided.
S603: and 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 may establish a bluetooth connection (first connection) with the second terminal. In the process of establishing the first connection, there may be an abnormal condition, and the exception handling manner may refer to the description in the above embodiment. These abnormal conditions may cause the first connection establishment to fail, and if the first connection establishment fails, S603 described below is performed. And if the first connection with a certain target connection identifier in the connection queue is successful, continuing to establish the first connection with another second terminal aiming at the next target connection identifier in the connection queue.
S604: and if the first connection is failed to be established, the first terminal executes connection reestablishment processing according to a preset reestablishment strategy so as to complete the first connection with the second terminal. Wherein the determining, by the first terminal, that the first connection is established unsuccessfully includes: the first terminal does not scan and determine the connection identifier of the second terminal, that is, the target connection identifier is not determined.
The first terminal executing connection reestablishment processing according to a preset reestablishment strategy comprises the following steps: and the first terminal scans the connection identifier again based on the delay scanning rule to determine the connection identifier of the second terminal, or the first terminal closes the first connection function and restarts the closed first connection function within a preset time range.
In one embodiment, if a third terminal that fails to establish the first connection exists in the connection queue, the first terminal reestablishes the connection with the third terminal according to a reestablishment policy; in one embodiment, the reestablishing, by the first terminal, the connection with the third terminal according to the reestablishment policy includes: after the first terminal closes the first connection function, the first connection function is restarted; if the first terminal re-scans the connection identifier of the third terminal based on the first connection function, the first terminal establishes connection with the third terminal; and if the first terminal fails to scan the connection identifier of the third terminal again, recording the connection identifier of the third terminal in a preset retry queue. After completing the connection of the terminals corresponding to other connection identifiers in other teams, the first terminal scans and reconnects the connection identifiers in the retry queue again until an end condition is met, where the end condition includes, for example, that the number of reconnects for a certain connection identifier exceeds a threshold (e.g., three times), or that a user manually stops or closes the scanning of the first connection such as bluetooth.
In the embodiment of the invention, a connection mode such as Bluetooth with low power consumption can be used as a first connection, and data is interacted through the first connection so as to establish a connection mode such as WiFi capable of rapidly transmitting data with large data volume, so that the energy consumption of the terminal is saved, and the requirements of the user on rapidness and large capacity of data transmission can be met.
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 device according to an embodiment of the present invention, where the data transmission device according to the embodiment of the present invention may be disposed in an intelligent terminal, and the data transmission device according to the embodiment of the present invention may be disposed in a corresponding first terminal. The device comprises the following modules.
A display module 701, configured to display a user interface including a transmission identifier when a data sending instruction is detected; a transmission module 702, configured to send data to be transmitted to the second terminal through a second connection when a selection operation on the transmission identifier is detected; the connection module 703 is configured to establish a first connection between the first terminal and the second terminal based on the first connection policy, interact connection data through the first connection, and establish a second connection between the first terminal and the second terminal according to a second connection policy and the interactive connection data.
In one embodiment, the connection module 703 is configured to scan for a connection identifier at a first scanning frequency within a first time range based on the indication of the first connection policy; scanning and acquiring a connection identifier at a second scanning frequency within a second time range based on the indication of the first connection strategy; after scanning is finished, determining a target connection identifier from all the connection identifiers obtained through scanning, and establishing a first connection with a second terminal based on the target connection identifier, wherein the target connection identifier is the connection identifier of the second terminal.
In one embodiment, the connection module 703 is configured to broadcast the connection identifier of the terminal at a first broadcast frequency within a first time range based on the indication of the first connection policy; broadcasting the connection identifier of the terminal at a second broadcast frequency in a second time range based on the indication of the first connection policy; after the broadcasting is finished and a connection request of a second terminal is received, establishing a first connection with the second terminal, wherein the connection request is sent by the second terminal based on the scanned connection identifier broadcasted by the first terminal.
In an embodiment, the connection module 703 is further configured to, if the first connection is failed to be established, execute connection reestablishment processing according to a preset reestablishment policy, so as to complete the first connection with the second terminal; wherein determining that establishing the first connection fails comprises: and the connection identifier of the second terminal is not scanned and determined, or the connection request of the second terminal is not received after the connection identifier is broadcasted.
In an embodiment, the connection module 703 is configured to scan the connection identifier again based on a delay scanning rule to determine the connection identifier of the second terminal; or, the second terminal is configured to broadcast the local connection identifier based on the delayed broadcast rule so as to facilitate the second terminal to send the connection request; or, the method is configured to close the first connection function, and restart the closed first connection function within a preset time range.
In one embodiment, the connection data interacted with over the first connection includes any one or more of: a connection type of a second connection to be established, wherein the connection type comprises a WiFi point-to-point P2P-based connection type or a WiFi hotspot connection type; client information required for establishing the second connection, the client information including: a connection point identifier and an authentication password; format information of the data packet; a triggering instruction for establishing the second connection.
In an embodiment, the connection module 703 is configured to record connection identifiers of a plurality of selected terminals waiting to be connected to the first terminal into a preset connection queue; and respectively taking the connection identifier of each terminal in the connection queue as the connection identifier of the second terminal so as to establish the first connection between each terminal in the connection queue.
In an embodiment, the connection module 703 is configured to reestablish a connection with a third terminal according to a reestablishment policy if the third terminal that failed to establish the first connection exists in the connection queue;
the connection module 703 is configured to restart the first connection function after the first connection function is closed; if the connection identifier of the third terminal is rescanned based on the first connection function, establishing connection with the third terminal; and if the connection identifier of the third terminal cannot be rescanned, recording the connection identifier of the third terminal into a preset retry queue.
In one embodiment, the connection module 703 is configured to select a connection point identifier interacted with by the first connection from connection point identifiers used for establishing the second connection; and establishing a second connection between the first terminal and the second terminal through the first connection and second terminal interaction connection information corresponding to the connection point identification.
In an embodiment, a first task queue and a 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, where the data to be transmitted is stored in the first task queue; acquiring data to be transmitted from the second task queue, and sending the data to the second terminal through a second connection; and if the data to be transmitted is detected to be unsuccessfully transmitted through the second connection, storing the data to be transmitted stored in the first task queue into the second task queue again, acquiring the data to be transmitted from the second task queue, and transmitting the data to be transmitted to the second terminal through the second connection.
In an embodiment, the transmission module 702 is configured to, if the data to be transmitted obtained by the second task queue includes first-type data, forward the first-type data to a preset synchronous message queue, and send the data in the synchronous message queue to the second terminal through a second connection; if the data to be transmitted obtained by the second task queue comprises second-class data, transferring the second data to a preset asynchronous message queue, and sending the data in the asynchronous message queue to the second terminal through a second connection; and if the data to be transmitted obtained by the second task queue comprises third-class data, transferring the third-class data to a preset asynchronous file queue, and sending the data in the asynchronous file queue to the second terminal through a second connection.
The specific implementation of each module of the apparatus according to the embodiment of the present invention may refer to the description of the relevant content in the embodiments corresponding to fig. 1 to fig. 6, which is not repeated herein.
In the embodiment of the invention, a connection mode such as Bluetooth with low power consumption can be used as a first connection, and data is interacted through the first connection so as to establish a connection mode such as WiFi capable of rapidly transmitting data with large data volume, so that the energy consumption of the terminal is saved, and the requirements of the user on rapidness and large capacity of data transmission can be met.
Referring to fig. 8, a schematic structural diagram of an intelligent terminal according to an embodiment of the present invention is shown, where the intelligent terminal according to the embodiment of the present invention may be, for example, a terminal with a bluetooth communication function and a WiFi communication function, such as a smart phone, a tablet computer, and an intelligent wearable device. The intelligent terminal comprises a power supply module, various shells and other structures, and further comprises 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 may be a touch screen, a button, or the like, and the user interface 802 may be used to complete interaction between a user and the intelligent terminal, and the user interface 802 may be used to provide data and information to the user, and may also be used to receive data of the user, such as touch screen selection, voice input, or the like. In the embodiment of the present invention, the first communication interface 804 consumes less power when being used than the second communication interface 805 consumes when operating. The first communication interface 804 may be a low power consumption communication interface such as bluetooth, and the second communication interface 805 may be a WiFi module-based interface.
The memory 803 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 803 may also include a non-volatile memory (non-volatile), such as a flash memory (flash memory), a hard disk, or a solid state disk; the memory 803 may also comprise a combination of memories of the kind described above.
The processor 801 may be a Central Processing Unit (CPU). The processor 801 may further include a hardware chip. May 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.
Optionally, the memory 803 is also used for storing program instructions. The processor 801 may call the program instruction to implement the data transmission method according to the embodiment of the present invention.
In this embodiment of the present invention, the processor 801 calls a program stored in the memory 803, to call the first communication interface 804 to establish a first connection with the second terminal, and through the first connection, interacts connection data, and calls the second communication interface 805 to establish a second connection between the first terminal and the second terminal according to a second connection policy and the interacted connection data; the processor 801 is further configured to display a user interface including a transmission identifier when a data transmission instruction is detected, and send data to be transmitted to the second terminal through a second connection when a selection operation on the transmission identifier is detected.
In one embodiment, the processor 801, when configured to establish a first connection with a second terminal based on a first connection policy, is configured to scan for a connection identifier at a first scanning frequency within a first time range based on an indication of the first connection policy; scanning and acquiring a connection identifier at a second scanning frequency within a second time range based on the indication of the first connection strategy; after scanning is finished, determining a target connection identifier from all the connection identifiers obtained through scanning, and establishing a first connection with a second terminal based on the target connection identifier, wherein the target connection identifier is the connection identifier of the second terminal.
In one embodiment, the processor 801, when configured to establish a first connection with a second terminal based on a first connection policy, is configured to broadcast a connection identifier of the terminal at a first broadcast frequency within a first time range based on an indication of the first connection policy; broadcasting the connection identifier of the terminal at a second broadcast frequency in a second time range based on the indication of the first connection policy; after the broadcasting is finished and a connection request of a second terminal is received, establishing a first connection with the second terminal, wherein the connection request is sent by the second terminal based on the scanned connection identifier broadcasted by the first terminal.
In an embodiment, the processor 801 is further configured to, if establishing the first connection fails, perform connection reestablishment processing by the first terminal according to a preset reestablishment policy, so as to complete the first connection with the second terminal; wherein the determining, by the first terminal, that the first connection is established unsuccessfully includes: and the first terminal does not scan and determine the connection identifier of the second terminal, or the first terminal does not receive the connection request of the second terminal after broadcasting the connection identifier.
In an embodiment, the processor 801, when configured to perform connection reestablishment processing according to a preset reestablishment policy, is configured to scan the connection identifier again based on a delayed scanning rule to determine the connection identifier of the second terminal; or based on the time delay broadcast rule, broadcasting the local terminal connection identifier so as to facilitate the second terminal to send the connection request; or closing the first connection function and restarting the closed first connection function within a preset time range.
In one embodiment, the connection data interacted with over the first connection includes any one or more of: a connection type of a second connection to be established, wherein the connection type comprises a WiFi point-to-point P2P-based connection type or a WiFi hotspot connection type; client information required for establishing the second connection, the client information including: a connection point identifier and an authentication password; format information of the data packet; a triggering instruction for establishing the second connection.
In one embodiment, the processor 801, when configured to establish a first connection with a second terminal based on a first connection policy, is configured to record connection identifiers of a plurality of selected terminals waiting to be connected with the first terminal into a preset connection queue; and respectively taking the connection identifier of each terminal in the connection queue as the connection identifier of the second terminal so as to establish the first connection between each terminal in the connection queue.
In an embodiment, the processor 801, when configured to establish a first connection with a second terminal based on a first connection policy, is further configured to, if a third terminal that fails to establish the first connection exists in the connection queue, reestablish, by the first terminal, 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; if the connection identifier of the third terminal is rescanned based on the first connection function, establishing connection with the third terminal; and if the connection identifier of the third terminal cannot be rescanned, recording the connection identifier of the third terminal into a preset retry queue.
In one embodiment, the processor 801, when configured to establish a second connection between the first terminal and a second terminal according to a second connection policy and the interactive connection data, is configured to select a connection point identifier interacted by the first connection from connection point identifiers used to establish the second connection; and establishing a second connection between the first terminal and the second terminal through the first connection and second terminal interaction connection information corresponding to the connection point identification.
In an embodiment, a first task queue and a second task queue are preset, and the processor 801, when configured to send data to be transmitted to the second terminal through a second connection, is configured to store the data to be transmitted stored in the first task queue into the second task queue, where the data to be transmitted is stored in the first task queue; acquiring data to be transmitted from the second task queue, and sending the data to the second terminal through a second connection; and if the data to be transmitted is detected to be unsuccessfully transmitted through the second connection, storing the data to be transmitted stored in the first task queue into the second task queue again, acquiring the data to be transmitted from the second task queue, and transmitting the data to be transmitted to the second terminal through the second connection.
In an embodiment, when the processor 801 is configured to obtain data to be transmitted from the second task queue and send the data to the second terminal through the second connection, if the data to be transmitted obtained from the second task queue includes the first type of data, the first terminal stores the first type of data in a preset synchronization message queue, and sends the data in the synchronization message queue to the second terminal through the second connection; if the data to be transmitted obtained by the second task queue comprises second-class data, the first terminal transfers the second data to a preset asynchronous message queue, and the data in the asynchronous message queue is sent to the second terminal through a second connection; and if the data to be transmitted obtained by the second task queue comprises third-class data, the first terminal stores the third-class data into a preset asynchronous file queue, and sends the data in the asynchronous file queue to the second terminal through a second connection.
The specific implementation of each structural module of the intelligent terminal according to the embodiment of the present invention may refer to the description of the relevant content in the embodiments corresponding to fig. 1 to fig. 6, which is not repeated herein.
In the embodiment of the invention, a connection mode such as Bluetooth with low power consumption can be used as a first connection, and data is interacted through the first connection so as to establish a connection mode such as WiFi capable of rapidly transmitting data with large data volume, so that the energy consumption of the terminal is saved, and the requirements of the user on rapidness and large capacity of data transmission can be met.

Claims (23)

1. A method of data transmission, comprising:
the method comprises the steps that when a first terminal detects a data sending instruction, a user interface comprising a transmission identifier is displayed;
when the first terminal detects the selection operation of the transmission identifier, the first terminal sends the data to be transmitted to the second terminal through the second connection;
the first terminal establishes a first connection with a second terminal based on a first connection strategy, and establishes a second connection between the first terminal and the second terminal according to a second connection strategy and the connection data corresponding to the first connection through the first connection interaction connection data, wherein the first connection interaction connection data comprises bottom layer connection information carried in the first connection channel in a transmission manner, and the bottom layer connection information comprises a connection type of the second connection;
the sending of the data to be transmitted comprises: the method comprises the steps that three socket queues are created through instruction transmission, the three socket queues respectively comprise a synchronous message queue, an asynchronous message queue and an asynchronous file queue, the three socket queues are connected through the same queue, queuing time is not limited to correspond to transmission time, the synchronous message queue is used for transmitting information and files needing to be synchronized, data sent first are sent first and then sent later, the asynchronous message queue is used for ensuring that asynchronous messages can also be sent to the second terminal in time, asynchronization is asynchronous relative to the last synchronous queue, the asynchronous message queue keeps a precedence relationship, the asynchronous message queue is bidirectional transmission and supports state information and instruction interaction of two connecting sides.
2. The method of claim 1, wherein the first terminal establishing a first connection with a second terminal based on a first connection policy comprises:
the first terminal scans and acquires a connection identifier at a first scanning frequency in a first time range based on the indication of the first connection strategy;
the first terminal scans and acquires a connection identifier at a second scanning frequency in a second time range based on the indication of the first connection strategy;
after the scanning is finished, the first terminal determines a target connection identifier from all the connection identifiers obtained through scanning, and establishes a first connection with the second terminal based on the target connection identifier, wherein the target connection identifier is the connection identifier of the second terminal.
3. The method of claim 1, wherein the first terminal establishing a first connection with a second terminal based on a first connection policy comprises:
the first terminal broadcasts the connection identifier of the terminal at a first broadcast frequency in a first time range based on the indication of the first connection strategy;
the first terminal broadcasts the connection identifier of the terminal at a second broadcast frequency in a second time range based on the indication of the first connection strategy;
the method comprises the steps that after broadcasting is finished and a connection request of a second terminal is received by the first terminal, a first connection between the first terminal and the second terminal is established, wherein the connection request is sent by the second terminal based on a scanned connection identifier broadcasted by the first terminal.
4. The method of claim 2 or 3, further comprising:
if the first connection is failed to be established, the first terminal executes connection reestablishment processing according to a preset reestablishment strategy so as to complete the first connection with the second terminal;
wherein the determining, by the first terminal, that the first connection is established unsuccessfully includes: and the first terminal does not scan and determine the connection identifier of the second terminal, or the first terminal does not receive the connection request of the second terminal after broadcasting the connection identifier.
5. The method according to claim 4, wherein the first terminal performing the connection re-establishment process according to the preset re-establishment policy comprises any one of the following steps:
the first terminal scans the connection identifier again based on a delay scanning rule to determine the connection identifier of the second terminal;
the first terminal broadcasts the local terminal connection identifier based on a delay broadcast rule so as to facilitate the second terminal to send a connection request;
and the first terminal closes the first connection function and restarts the closed first connection function within a preset time range.
6. The method of claim 1, wherein connection data interacted with over the first connection comprises any one or more of:
a connection type of a second connection to be established, wherein the connection type comprises a WiFi point-to-point P2P-based connection type or a WiFi hotspot connection type; client information required for establishing the second connection, the client information including: a connection point identifier and an authentication password; format information of the data packet; a triggering instruction for establishing the second connection.
7. The method of claim 1, wherein the first terminal establishing a first connection with a second terminal based on a first connection policy comprises:
recording the connection identifiers of a plurality of selected terminals waiting to be connected with the first terminal into a preset connection queue;
and respectively taking the connection identifier of each terminal in the connection queue as the connection identifier of the second terminal so as to establish the first connection between each terminal in the connection queue.
8. The method of claim 7, wherein the first terminal establishes a first connection with a second terminal based on a first connection policy, further comprising:
if a third terminal which fails to establish the first connection exists in the connection queue, the first terminal reestablishes the connection with the third terminal according to a reestablishment strategy;
the reestablishing, by the first terminal, the connection with the third terminal according to the reestablishment policy includes:
after the first terminal closes the first connection function, the first connection function is restarted;
if the first terminal re-scans the connection identifier of the third terminal based on the first connection function, the first terminal establishes connection with the third terminal;
and if the first terminal fails to scan the connection identifier of the third terminal again, recording the connection identifier of the third terminal in a preset retry queue.
9. The method of claim 1, wherein the first terminal establishing a second connection between the first terminal and a second terminal according to a second connection policy and the interactive connection data comprises:
the first terminal selects the connection point identification interacted by the first connection from the connection point identifications used for establishing the second connection;
and the first terminal establishes a second connection between the first terminal and the second terminal by the first connection and the second terminal interaction connection information corresponding to the connection point identification.
10. The method of claim 1, wherein a first task queue and a second task queue are preset, and the first terminal sends data to be transmitted to the second terminal through a second connection, comprising:
the first terminal stores the data to be transmitted stored in the first task queue into the second task queue, and the data to be transmitted is stored in the first task queue;
the first terminal acquires data to be transmitted from the second task queue and sends the data to the second terminal through a second connection;
and if the data to be transmitted is detected to be unsuccessfully transmitted through the second connection, the first terminal stores the data to be transmitted stored in the first task queue into the second task queue again, acquires the data to be transmitted from the second task queue and transmits the data to the second terminal through the second connection.
11. The method of claim 10, wherein the first terminal obtaining data to be transmitted from the second task queue and sending the data to the second terminal through a second connection comprises:
if the data to be transmitted acquired by the second task queue comprises first-class data, the first terminal stores the first-class data into a preset synchronous message queue, and sends the data in the synchronous message queue to the second terminal through a second connection;
if the data to be transmitted obtained by the second task queue comprises second-class data, the first terminal stores the second-class data in a preset asynchronous message queue, and sends the data in the asynchronous message queue to the second terminal through a second connection;
and if the data to be transmitted obtained by the second task queue comprises third-class data, the first terminal stores the third-class data into a preset asynchronous file queue, and sends the data in the asynchronous file queue to the second terminal through a second connection.
12. A data transmission apparatus, comprising:
the display module is used for displaying a user interface comprising a transmission identifier when a data sending instruction is detected;
the transmission module is used for transmitting the data to be transmitted to a second terminal through a second connection when the selection operation of the transmission identifier is detected;
the connection module is used for establishing a first connection between a first terminal and a second terminal based on a first connection strategy, and establishing a second connection between the first terminal and the second terminal according to a second connection strategy and the connection data corresponding to the first connection through the first connection interaction connection data, wherein the first connection interaction connection data comprises bottom layer connection information carried in the first connection channel in a transmission manner, and the bottom layer connection information comprises the connection type of the second connection;
the sending of the data to be transmitted comprises: the method comprises the steps that three socket queues are created through instruction transmission, the three socket queues respectively comprise a synchronous message queue, an asynchronous message queue and an asynchronous file queue, the three socket queues are connected through the same queue, queuing time is not limited to correspond to transmission time, the synchronous message queue is used for transmitting information and files needing to be synchronized, data sent first are sent first and then sent later, the asynchronous message queue is used for ensuring that asynchronous messages can also be sent to the second terminal in time, asynchronization is asynchronous relative to the last synchronous queue, the asynchronous message queue keeps a precedence relationship, the asynchronous message queue is bidirectional transmission and supports state information and instruction interaction of two connecting sides.
13. The apparatus of claim 12,
the connection module is used for scanning and acquiring a connection identifier at a first scanning frequency in a first time range based on the indication of the first connection strategy; scanning and acquiring a connection identifier at a second scanning frequency within a second time range based on the indication of the first connection strategy; after scanning is finished, determining a target connection identifier from all the connection identifiers obtained through scanning, and establishing a first connection with a second terminal based on the target connection identifier, wherein the target connection identifier is the connection identifier of the second terminal.
14. The apparatus of claim 12,
the connection module is used for broadcasting the connection identifier of the terminal at a first broadcast frequency in a first time range based on the indication of the first connection strategy; broadcasting the connection identifier of the terminal at a second broadcast frequency in a second time range based on the indication of the first connection policy; after the broadcasting is finished and a connection request of a second terminal is received, establishing a first connection with the second terminal, wherein the connection request is sent by the second terminal based on the scanned connection identifier broadcasted by the first terminal.
15. The apparatus of claim 13 or 14, further comprising:
the connection module is further configured to, if the first connection is failed to be established, execute connection reestablishment processing according to a preset reestablishment policy, so as to complete the first connection with the second terminal; wherein determining that establishing the first connection fails comprises: and the connection identifier of the second terminal is not scanned and determined, or the connection request of the second terminal is not received after the connection identifier is broadcasted.
16. The apparatus of claim 15,
the connection module is used for scanning the connection identifier again based on the delay scanning rule to determine the connection identifier of the second terminal; or, the second terminal is configured to broadcast the local connection identifier based on the delayed broadcast rule so as to facilitate the second terminal to send the connection request; or, the method is configured to close the first connection function, and restart the closed first connection function within a preset time range.
17. The apparatus of claim 12, wherein connection data interacted with over the first connection comprises any one or more of:
a connection type of a second connection to be established, wherein the connection type comprises a WiFi point-to-point P2P-based connection type or a WiFi hotspot connection type; client information required for establishing the second connection, the client information including: a connection point identifier and an authentication password; format information of the data packet; a triggering instruction for establishing the second connection.
18. The apparatus of claim 12,
the connection module is used for recording the connection identifiers of a plurality of selected terminals waiting to be connected with the first terminal into a preset connection queue; and respectively taking the connection identifier of each terminal in the connection queue as the connection identifier of the second terminal so as to establish the first connection between each terminal in the connection queue.
19. The apparatus of claim 18,
the connection module is used for reestablishing the connection with the third terminal according to a reestablishment strategy if the third terminal which fails to establish the first connection exists in the connection queue;
the connection module is used for restarting the first connection function after the first connection function is closed; if the connection identifier of the third terminal is rescanned based on the first connection function, establishing connection with the third terminal; and if the connection identifier of the third terminal cannot be rescanned, recording the connection identifier of the third terminal into a preset retry queue.
20. The apparatus of claim 12,
the connection module is used for selecting the connection point identifier interacted by the first connection from the connection point identifiers used for establishing the second connection; and establishing a second connection between the first terminal and the second terminal through the first connection and second terminal interaction connection information corresponding to the connection point identification.
21. The apparatus according to claim 12, wherein a first task queue and a second task queue are preset, and the transmission module is configured to store data to be transmitted stored in the first task queue into the second task queue, where the data to be transmitted is stored in the first task queue; acquiring data to be transmitted from the second task queue, and sending the data to the second terminal through a second connection; and if the data to be transmitted is detected to be unsuccessfully transmitted through the second connection, storing the data to be transmitted stored in the first task queue into the second task queue again, acquiring the data to be transmitted from the second task queue, and transmitting the data to be transmitted to the second terminal through the second connection.
22. The apparatus of claim 21,
the transmission module is configured to, if the to-be-transmitted data acquired by the second task queue includes first-type data, forward the first-type data to a preset synchronous message queue, and send the data in the synchronous message queue to the second terminal through a second connection; if the second task queue obtains that the data to be transmitted comprises second-class data, transferring the second-class data to a preset asynchronous message queue, and sending the data in the asynchronous message queue to the second terminal through a second connection; and if the data to be transmitted obtained by the second task queue comprises third-class data, transferring the third-class data to a preset asynchronous file queue, and sending the data in the asynchronous file queue to the second terminal through a second connection.
23. The intelligent terminal is characterized by comprising a processor, a first communication interface and a second communication interface, wherein:
the processor is configured to invoke a first communication interface to establish a first connection with a second terminal, and to exchange connection data through the first connection, invoke a second communication interface to establish a second connection between the intelligent terminal and the second terminal according to a second connection policy and the connection data corresponding to the first connection, where the connection data of the first connection interaction includes bottom connection information carried in the first connection channel by transmission, and the bottom connection information includes a connection type of the second connection;
the processor is further configured to display a user interface including a transmission identifier when a data transmission instruction is detected, and transmit data to be transmitted to the second terminal through a second connection when a selection operation on the transmission identifier is detected;
the sending of the data to be transmitted comprises: the method comprises the steps that three socket queues are created through instruction transmission, the three socket queues respectively comprise a synchronous message queue, an asynchronous message queue and an asynchronous file queue, the three socket queues are connected through the same queue, queuing time is not limited to correspond to transmission time, the synchronous message queue is used for transmitting information and files needing to be synchronized, data sent first are sent first and then sent later, the asynchronous message queue is used for ensuring that asynchronous messages can also be sent to the second terminal in time, asynchronization is asynchronous relative to the last synchronous queue, the asynchronous message queue keeps a precedence relationship, the asynchronous message queue is bidirectional transmission and supports state information and instruction interaction of two connecting sides.
CN201710132669.XA 2017-03-07 2017-03-07 Data transmission method and device and intelligent terminal Expired - Fee Related CN107018554B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710132669.XA CN107018554B (en) 2017-03-07 2017-03-07 Data transmission method and device and intelligent terminal
PCT/CN2018/078001 WO2018161870A1 (en) 2017-03-07 2018-03-05 Data transmission method and apparatus and smart terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710132669.XA CN107018554B (en) 2017-03-07 2017-03-07 Data transmission method and device and intelligent terminal

Publications (2)

Publication Number Publication Date
CN107018554A CN107018554A (en) 2017-08-04
CN107018554B true CN107018554B (en) 2020-11-06

Family

ID=59440377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710132669.XA Expired - Fee Related CN107018554B (en) 2017-03-07 2017-03-07 Data transmission method and device and intelligent terminal

Country Status (2)

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

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018554B (en) * 2017-03-07 2020-11-06 Oppo广东移动通信有限公司 Data transmission method and device and intelligent terminal
CN109428915B (en) * 2017-08-25 2021-06-29 北京国双科技有限公司 Data acquisition method and device
CN108429751A (en) * 2018-03-15 2018-08-21 广州优视网络科技有限公司 File transfer control method, device and computer readable storage medium, terminal
CN110505712A (en) * 2018-05-17 2019-11-26 华为技术有限公司 A kind of method and terminal for transmitting file
AU2018427289B2 (en) * 2018-06-13 2022-02-17 Huawei Technologies Co., Ltd. Transmission control method and device
CN109150596B (en) * 2018-08-08 2021-08-03 新智能源系统控制有限责任公司 SCADA system real-time data dump method and device
CN109474848B (en) * 2018-09-14 2021-10-19 视联动力信息技术股份有限公司 Video processing method and device based on video network, electronic equipment and medium
CN109587667B (en) * 2018-11-23 2021-06-18 Oppo广东移动通信有限公司 Connection establishing method and device, equipment and storage medium
CN109660973A (en) * 2018-12-28 2019-04-19 努比亚技术有限公司 Bluetooth control method, mobile terminal and storage medium
CN111867148A (en) * 2019-04-30 2020-10-30 青岛海信移动通信技术股份有限公司 Method and equipment for establishing equipment connection and data transmission
CN111866824A (en) * 2019-04-30 2020-10-30 青岛海信移动通信技术股份有限公司 Method and equipment for establishing communication connection and data transmission
CN110072295B (en) * 2019-04-30 2022-08-09 西安商鼎能源科技有限公司 Dual-channel communication method, device, first terminal and medium
CN112469014A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Method and electronic equipment for configuring Bluetooth connection parameters
CN111050415B (en) * 2019-12-23 2021-12-17 精诚工坊电子集成技术(北京)有限公司 Wireless data transmission method convenient to operate
CN111416889B (en) * 2020-01-16 2022-03-04 重庆大学 Communication method and system adapted through GATT and exception handling
CN113170215A (en) * 2020-03-13 2021-07-23 深圳市大疆创新科技有限公司 Video live broadcast method, system and computer storage medium
CN111510349A (en) * 2020-04-09 2020-08-07 上海东普信息科技有限公司 Method, device, equipment and storage medium for service abnormity detection and alarm
CN111770491B (en) * 2020-06-08 2024-01-02 上海依图网络科技有限公司 Data link establishment method and device
CN112492520A (en) * 2020-12-15 2021-03-12 北京百度网讯科技有限公司 Positioning method, device, equipment and storage medium
CN113660311A (en) * 2021-07-21 2021-11-16 广州心娱网络科技有限公司 User state updating method, system, electronic device and storage medium
CN117581624A (en) * 2022-04-28 2024-02-20 北京小米移动软件有限公司 Data communication method, device, electronic equipment and data communication system
CN116055581A (en) * 2022-11-23 2023-05-02 广东博力威科技股份有限公司 Data transmission control method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015069031A1 (en) * 2013-11-06 2015-05-14 엘지전자(주) Method and apparatus for forming communication link using bluetooth
CN104935641A (en) * 2015-05-07 2015-09-23 广东欧珀移动通信有限公司 Method and apparatus of accelerating file transmission
CN105472038A (en) * 2016-01-07 2016-04-06 腾讯科技(深圳)有限公司 Control method, control apparatus and control system for file transmission
CN106028261A (en) * 2016-04-29 2016-10-12 高翔 Wireless connection method, device and system

Family Cites Families (5)

* 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
CN103974187A (en) * 2014-05-27 2014-08-06 深圳市中兴移动通信有限公司 Near-distance file transmission method and device as well as mobile terminal
CN104394600B (en) * 2014-10-24 2018-03-16 小米科技有限责任公司 Transmit the method and device of file
CN106028421A (en) * 2016-05-24 2016-10-12 上海斐讯数据通信技术有限公司 Wireless equipment connection method
CN107018554B (en) * 2017-03-07 2020-11-06 Oppo广东移动通信有限公司 Data transmission method and device and intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015069031A1 (en) * 2013-11-06 2015-05-14 엘지전자(주) Method and apparatus for forming communication link using bluetooth
CN104935641A (en) * 2015-05-07 2015-09-23 广东欧珀移动通信有限公司 Method and apparatus of accelerating file transmission
CN105472038A (en) * 2016-01-07 2016-04-06 腾讯科技(深圳)有限公司 Control method, control apparatus and control system for file transmission
CN106028261A (en) * 2016-04-29 2016-10-12 高翔 Wireless connection method, device and system

Also Published As

Publication number Publication date
CN107018554A (en) 2017-08-04
WO2018161870A1 (en) 2018-09-13

Similar Documents

Publication Publication Date Title
CN107018554B (en) Data transmission method and device and intelligent terminal
US20140115587A1 (en) Exception handling method, apparatus, and client
US9591524B2 (en) Method and apparatus for transmitting data in network system, and data transmission system
US8705447B2 (en) Remote control method and system, and remote control method of a mobile device
WO2021237433A1 (en) Message pushing method and apparatus, and electronic device and computer-readable medium
CN104429155A (en) Method and apparatus for handling topology in wireless communication system
EP2945337A2 (en) Method, system and server for service switching
EP2605460A1 (en) Method, apparatus, and system for transferring file to user of instant message system
CN106453231B (en) Signaling acquisition and transmission method and device
WO2014183404A1 (en) Data transmission method, apparatus, system and terminal
US11523146B2 (en) Live broadcast method and apparatus, electronic device, and storage medium
CN106713127B (en) Method and device for acquiring and processing instant chat records
US9325898B2 (en) Communication apparatus and method for controlling the same
US20140055627A1 (en) Information processing apparatus, data distribution system, method of controlling information processing apparatus, and storage medium
EP2652929B1 (en) A system and a method for providing a communication service in a communication network
US20220286731A1 (en) Multimedia apparatus and cast method
US10044777B2 (en) Method and device for communicating between at least a first terminal and a second terminal
WO2024027745A1 (en) Network connection method, electronic device, readable storage medium, and chip
WO2024017113A1 (en) Data synchronization method and apparatus, and electronic device
JP5405550B2 (en) File transmission management system and file transmission management method for supporting file transmission in mobile messaging service
EP2672667A2 (en) Method and system for implementing ip-based vvm
WO2013167069A2 (en) Method, system and central device for achieving service handover
US9210076B2 (en) Apparatus and method for processing data of mobile terminal
WO2012152085A1 (en) Method and system for managing and discovering terminal capability information
CN106792130B (en) Mobile terminal and control method of mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201106

CF01 Termination of patent right due to non-payment of annual fee