CN107529133B - Data transmission method, device, storage medium and computer equipment - Google Patents
Data transmission method, device, storage medium and computer equipment Download PDFInfo
- Publication number
- CN107529133B CN107529133B CN201710797136.3A CN201710797136A CN107529133B CN 107529133 B CN107529133 B CN 107529133B CN 201710797136 A CN201710797136 A CN 201710797136A CN 107529133 B CN107529133 B CN 107529133B
- Authority
- CN
- China
- Prior art keywords
- terminal
- type
- message
- data
- target data
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000005540 biological transmission Effects 0.000 title claims abstract description 60
- 238000004891 communication Methods 0.000 claims description 32
- 238000004590 computer program Methods 0.000 claims description 28
- 238000004806 packaging method and process Methods 0.000 claims description 16
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 230000001133 acceleration Effects 0.000 description 3
- 230000001413 cellular effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000013500 data storage Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/18—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/18—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
- H04W4/185—Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals by embedding added-value information into content, e.g. geo-tagging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/70—Services for machine-to-machine communication [M2M] or machine type communication [MTC]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/64—Details of telephonic subscriber devices file transfer between terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The application relates to a data transmission method and device, a storage medium and computer equipment. The data transmission method comprises the following steps: the first terminal receives a second type message which is sent by a second terminal and used for inquiring the terminal in the local area network; sending a first type message responding to the second type message to the second terminal; receiving a third type message containing keywords sent by the second terminal after receiving the first type message; and inquiring target data matched with the keywords, forming a fourth type of message according to the target data, and sending the fourth type of message to the second terminal, wherein the fourth type of message is used for indicating the second terminal to acquire the target data according to the fourth type of message. The data transmission method and device, the storage medium and the computer equipment can improve the data sharing efficiency.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data transmission method, an apparatus, a storage medium, and a computer device.
Background
With the convenience of network communication, more and more users can share data with other users, for example, files such as contacts, pictures and videos on the user terminal can be shared with other user terminals.
In the conventional data sharing method, because the sending terminal needs to search for the data to be sent and select the receiving terminal for receiving the data, the data sharing process is complicated, and the data sharing efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data transmission method, a data transmission device, a storage medium and computer equipment, which can improve the operation efficiency of data sharing.
A method of data transmission, the method comprising: the first terminal receives a second type message which is sent by a second terminal and used for inquiring the terminal in the local area network; sending a first type message responding to the second type message to the second terminal; receiving a third type message containing keywords sent by the second terminal after receiving the first type message; and inquiring target data matched with the keywords, forming a fourth type of message according to the target data, and sending the fourth type of message to the second terminal, wherein the fourth type of message is used for indicating the second terminal to acquire the target data according to the fourth type of message.
A method of data transmission, the method comprising: the second terminal broadcasts a second type of message for inquiring the terminal in the local area network to the local area network; receiving a first type message which is sent by a first terminal and responds to the second type message; sending a third type message containing keywords for inquiring target data to the first terminal; and receiving a fourth type message which is sent by the first terminal and contains target data information matched with the keywords.
A data transmission apparatus, the apparatus comprising: the first communication establishing module is used for receiving a second type of message sent by a second terminal and used for inquiring the terminal in the local area network; sending a first type message responding to the second type message to the second terminal; the data transmission module is used for receiving a third type message containing keywords sent by the second terminal after receiving the first type message; and inquiring target data matched with the keywords, forming a fourth type of message according to the target data, and sending the fourth type of message to the second terminal, wherein the fourth type of message is used for indicating the second terminal to acquire the target data according to the fourth type of message.
A data transmission apparatus, the apparatus comprising: the second communication establishing module is used for broadcasting a second type of message for inquiring the terminal in the local area network to the local area network; receiving a first type message which is sent by a first terminal and responds to the second type message; the data acquisition module is used for sending a third type of message containing keywords for inquiring target data to the first terminal; and receiving a fourth type message which is sent by the first terminal and contains target data information matched with the keywords.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of any of the data transmission methods.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the data transmission methods when executing the computer program.
According to the data transmission method, the data transmission device, the storage medium and the computer equipment, the first terminal and the second terminal realize communication in the local area network through the first type of message and the second type of message, the second terminal used for acquiring the target data provides the keywords used for inquiring the target data, and the first terminal inquires the matched target data according to the keywords, so that the input operation of the first terminal on the keywords can be simplified, and the efficiency of inquiring and sharing the target data is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a diagram illustrating an exemplary data transmission method;
FIG. 2 is a flow diagram of a method for data transmission in one embodiment;
FIG. 3 is a flowchart illustrating querying target data matched with the keywords, forming a fourth type of message according to the target data, and sending the fourth type of message to the second terminal in one embodiment;
FIG. 4 is a flow diagram of a method for contact information transfer in one embodiment;
FIG. 5 is a flow chart of a method of data transmission in another embodiment;
FIG. 6 is a flow diagram of a process for third type message generation in one embodiment;
FIG. 7 is a flowchart of a method for contact information transfer in another embodiment;
FIG. 8 is a timing diagram of a data transmission method in yet another embodiment;
FIG. 9 is a block diagram showing the structure of a data transmission apparatus according to an embodiment;
FIG. 10 is a block diagram showing the construction of a data transmission apparatus according to another embodiment;
fig. 11 is an internal structural view of a terminal in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first terminal may be termed a second terminal, and, similarly, a second terminal may be termed a first terminal, without departing from the scope of the present application. The first terminal and the second terminal are both terminals, but they are not the same terminal.
Fig. 1 is a schematic diagram of an application environment of a data transmission method in one embodiment. As shown in fig. 1, the application environment includes a first terminal 110 and a second terminal 120 in the same local area network. The first terminal 110 may be a transmitting end of data and the second terminal 120 may be a receiving end of data. After establishing communication connection with the first terminal 110, the second terminal 120 may send a message including a keyword to the first terminal 110, after acquiring the keyword, the first terminal 110 may query target data matched with the keyword, generate a message including the target data information, and send the message to the second terminal 120, and the second terminal 120 may acquire the target data information, thereby implementing sharing of the target data.
In an embodiment, as shown in fig. 2, a data transmission method is provided, and this embodiment mainly takes the application of the method to the first terminal 110 shown in fig. 1 as an example for description. The method comprises the following steps:
In this embodiment, the second type of message is a message for querying other terminals in the local area network. The second type of message and all other types of messages (such as the first type of message, the third type of message, the fourth type of message, and the fifth type of message) in the following text all include an IP (Internet Protocol) address of a terminal (i.e., a message sending end) that sends the corresponding message and identification information of the message sending end. The terminal (i.e. the message receiving terminal) receiving the message can uniquely identify the corresponding second terminal according to the identification information therein, and communicate with the message sending terminal according to the terminal IP address. The identification information of the terminal may be a MAC address of the terminal, so that each terminal is uniquely identified according to the MAC (Media Access Control) address.
In one embodiment, each type of message further includes message type information of the message, and the message receiving end can identify the type of the received message according to the message type information therein and make a corresponding response. The category information of the message may be determined according to a message sending mode, or may be a preset message number, and the message receiving end identifies the category of the message according to the message number in the received message.
The message sending mode of the second type of message can be a mode of broadcasting to the local area network, and the terminal which starts the local area network communication mode can receive the second type of message broadcasted in the local area network. After detecting that the terminal itself starts the local area network communication mode, the first terminal can receive the message broadcasted in the local area network in real time or according to a certain frequency, thereby receiving the second type of message broadcasted by the second terminal.
In this embodiment, the first type message may be a message for responding to the second type message, and indicates that data may be shared to the second terminal. The first terminal can obtain the IP address of the second terminal after receiving the second type message, and sends the first type message responding to the second type message to the second terminal according to the IP address, so that the second terminal knows that the first terminal has successfully received the second type message, and can communicate with the first terminal according to the IP address of the first terminal contained in the first type message.
In this embodiment, the third type of message is a message used to instruct the first terminal to search for the target data according to the keyword therein. The second terminal can receive keywords input by a user, generate a third type of message according to the keywords, and send the third type of message to the first terminal through the acquired IP address of the first terminal. The keyword is used for querying target data. The target data may be any visual data including, but not limited to, contact information, pictures, documents, videos, and the like.
In one embodiment, after receiving the third type of message, the first terminal identifies the terminal identity of the second terminal according to the terminal MAC address carried in the message; and determining the type of the message according to the message type information carried in the message, and further acquiring the keywords in the message to inquire the target data.
And 208, inquiring target data matched with the keywords, forming a fourth type of message according to the target data, and sending the fourth type of message to the second terminal.
In this embodiment, the fourth type of message is used to instruct the second terminal to acquire the target data according to the fourth type of message. And the first terminal triggers the query of the target data according to the received third type message. And data matched with the keywords can be inquired from a preset storage area, the inquired data is displayed, a selection instruction of a user on the displayed data is received, and the selected data is set as target data. And forming a fourth type message according to the target data. And sending the formed fourth type of message to the second terminal, so that the second terminal acquires corresponding target data according to the fourth type of message. In one embodiment, the target data to be transmitted may include one or more to enable sharing of one or more target data at the same time.
According to the data transmission method, the first terminal determines the second terminal for acquiring the target data through the second type of message, the target data to be transmitted is determined according to the keywords in the received third type of message, the fourth type of message is formed according to the target data, and the fourth type of message is sent to the second terminal, so that the target data are transmitted. Because the keywords for inquiring the target data are contained in the received third-type messages and are generated by the second terminal, but not input by the first terminal for sharing the target data, the input operation of the first terminal on the keywords can be simplified, and the efficiency of inquiring and sharing the target data is improved.
In one embodiment, before step 202, the method further comprises: the first terminal broadcasts a first type message to the local area network for the second terminal to discover the first terminal.
In this embodiment, the first terminal may receive the data sharing instruction, start the local area network communication mode according to the data sharing instruction, generate the first type of message, and broadcast the first type of message to the local area network. The terminal which opens the local area network communication mode can capture the first type of information and can inquire the first terminal, and local area network communication with the first terminal is realized.
In one embodiment, the first terminal may provide a share button for triggering the data sharing instruction, and the data sharing instruction is triggered when a triggering operation of the share button is detected. Or when receiving a preset gesture or voice message for triggering the data sharing instruction, analyzing the gesture or voice message, and when the obtained analyzed message is matched with the data sharing instruction, triggering the data sharing instruction.
In one embodiment, as shown in FIG. 3, the step 208 includes:
In this embodiment, the second terminal further sets a data size threshold (i.e., the preset size) of the target data, where the data size threshold is a threshold for judging whether to directly perform target data transmission. When the size of the target data to be transmitted does not exceed the preset threshold value, the transmission mode of directly transmitting the target data can be judged and selected, and when the size of the target data to be transmitted exceeds the preset size, the transmission mode of indirectly transmitting the target data is judged and selected.
The data amount threshold may be a fixed value preset by the terminal, or may also be a threshold determined by receiving a value input by a user. The data amount threshold may be a numerical value of any data size, such as a data size that may be 1Mb, 10 Mb. The first terminal may obtain a data size of the target data to be transmitted, and determine whether the data size exceeds a preset size, if so, perform step 304, otherwise, perform step 306.
And step 304, generating link information of the target data, packaging the link information into a fourth type of message, and sending the fourth type of message to the second terminal.
In this embodiment, the fourth type of message is used to instruct the second terminal to acquire the target data according to the link information. The first terminal can detect whether the link information of the target data to be transmitted exists or not, and if yes, the link information is extracted. If not, link information for the target data may be generated. The link information is used for identifying target position information of the target data existing in the local area network or on the first terminal, so that the second terminal can acquire the position information of the target data according to the link information and further can access the target data according to the position information. The link information may be a Uniform Resource Locator (URL), and the second terminal may access the target data according to the URL by generating a URL including the location information and the access method of the target data.
The fourth type message also includes the IP address and the MAC address of the first terminal, encapsulates the link information, and transmits the fourth type message in which the link information is encapsulated to the second terminal.
And step 306, packaging the target data into a fourth type message, and sending the fourth type message to the second terminal.
In this embodiment, when the data size of the target data does not exceed the preset size, the target data is directly extracted, and the target data is encapsulated into the fourth type of message and sent to the second terminal. The fourth type message is used for instructing the second terminal to directly acquire the target data encapsulated in the fourth type message.
In this embodiment, the size of the target data to be transmitted is detected, different data transmission modes are adopted according to different data sizes, when the size exceeds the preset size, the link information of the target data is sent to the second terminal, so that the second terminal obtains the target data according to the link information, and if the size does not exceed the preset size, the target data is directly transmitted, and the speed of transmitting the target data is increased.
In one embodiment, the third type of message further includes data category information; inquiring target data matched with the keywords, wherein the inquiring target data comprises the following steps: and inquiring target data which is matched with the keywords and belongs to the data category.
In this embodiment, the data category includes any category such as a contact, a document, a picture, a video, and the like, and the data category information may include a category identifier for identifying the data category. The first terminal can acquire the data category information in the third-type message, determine the data category of the data to be transmitted according to the data category information, and search the target data matched with the keywords from the data belonging to the determined data category. According to the data category information, the first terminal can reduce the query range of the target data and can further improve the query accuracy of the target data.
In one embodiment, the target data includes contact information. The contact information may include, but is not limited to, contact information or friend information in a phone directory, an instant messaging application, a game application, and the like. When the data category contained in the acquired data category information is the contact category, the first terminal can inquire target data matched with the keyword from the stored contact set. Specifically, the contact information of the contact containing the keyword can be queried from the contact set, the queried contact information is displayed, a selection instruction of the user for the displayed contact information is received, the contact information to be sent is selected according to the selection instruction, and the contact information to be sent is the target data.
In one embodiment, the data category information may include one or more specific contact category information, such as contacts in the phone directory category or contacts in an instant messaging application. By the method, the contact person information sharing efficiency can be improved.
In one embodiment, taking target data as contact information as an example, a method for transmitting contact information is provided, as shown in fig. 4, the method includes:
In this embodiment, a sharing button for sharing contact information may be provided on the first terminal, and when a trigger operation on the sharing button is detected, a contact information sharing instruction is generated, a local area network communication mode is started according to the contact information sharing instruction, and a first type of message is generated. A first type of message is broadcast to the local area network. The first type of message includes the IP address and the MAC address of the first terminal.
In one embodiment, the first terminal may continuously broadcast the first type of message to the local area network according to a preset frequency to prevent the first type of message from being failed in transmission or being failed to be received by the second terminal. The preset frequency may be any suitable frequency, and may be transmitted once every 5 seconds, for example.
In this embodiment, the first terminal may recognize the second type of message according to the type of the received message, and acquire the MAC address of the second terminal and the IP address of the second terminal included in the second type of message.
In this embodiment, the first terminal sends the first type of message to the second terminal through the acquired IP address of the second terminal.
And step 408, receiving a third type message which is sent by the second terminal after receiving the first type message and contains the keyword and the contact person category.
In this embodiment, the keyword is a keyword for querying contact information, and the keyword may be any character within a preset length range, for example, any one or a combination of multiple characters, such as chinese characters, english, numbers, and letters. The first terminal can receive the third type of message, and after the message type is identified, the keyword in the message and the data type of the data to be searched, namely the contact type, are acquired.
And step 410, inquiring the contact information matched with the keyword, packaging the contact information into a fourth type of message, and sending the fourth type of message to the second terminal.
In this embodiment, the first terminal may trigger the search for the contact information according to the third type of message, and search for the contact information including the keyword. Specifically, whether one or more field information of name, gender, contact tag, phone number, account number and the like in the contact information contains the keyword can be searched, the inquired contact information is displayed for the user to select, and the contact information corresponding to the received selection instruction is used as the contact information to be sent. And packaging the contact information to be sent into the fourth type of message, and sending the fourth type of message to the second terminal. The contact information to be sent may include one or more.
In an embodiment, as shown in fig. 5, another data transmission method is provided, and this embodiment mainly takes the application of this method to the second terminal 120 shown in fig. 1 as an example for description. The data transmission method comprises the following steps:
In this embodiment, the second terminal is a terminal that requests to receive data, and the second terminal may receive a search instruction for another terminal in the lan when the lan communication mode is turned on, generate a second type of message according to the search instruction, and broadcast the second type of message into the lan, so that the terminal that turns on the lan communication mode may receive the second type of message.
In one embodiment, the second terminal may extract its own MAC address and IP address according to the search instruction, encapsulate the MAC address and IP address of the second terminal into the second type message, and broadcast the second type message to the local area network. Wherein, the second type message also carries the message type. And the first terminal receiving the second type message determines that the message is used for terminal search according to the message type. And uniquely identifying the second terminal according to the MAC address thereof, and performing local area network communication with the second terminal according to the IP address thereof.
In this embodiment, when receiving a message sent by the second terminal, the second terminal may identify which type of message the received message belongs to according to the message type information in the message.
The first type message may be a message for responding to the second type message, indicating that data may be shared to the second terminal. After receiving the first type message responding to the second type message, the second terminal can know that the first terminal agreeing to share data is inquired. The second terminal may acquire the MAC address and the IP address included in the first type message.
In this embodiment, the second terminal may receive the entered keyword, may receive a sending instruction for the entered keyword, packages the entered keyword into the third type of message according to the sending instruction, and sends the third type of message to the first terminal through the obtained IP address in the first type of message.
In one embodiment, the second terminal may provide a preset region for inputting a keyword, and form the keyword according to received information of inputting the preset region. The preset area can be displayed in the form of an input box.
And step 508, receiving a fourth type message which is sent by the first terminal and contains target data information matched with the keywords.
In this embodiment, the target data may be the matched data obtained by the first terminal searching according to the keyword, including but not limited to visual data such as contact information, pictures, documents, videos, and the like. When receiving the fourth type of message, the second terminal may acquire target data information therein, where the target data information may be target data itself, and may also be indirect information such as link information of the target data, so as to acquire the target data according to the indirect information.
According to the data transmission method, the second terminal searches the first terminal by broadcasting the second type of message, the searched first terminal is determined according to the received first type of message responding to the second type of message, then the third type of message containing the keywords is sent to the first terminal, the fourth type of message containing the target data information matched with the keywords and sent by the first terminal is received, and the target data is obtained from the first terminal. In the data transmission method, since the keyword for querying the target data is generated by the second terminal, the efficiency of acquiring the target data from the first terminal can be improved.
In one embodiment, after step 508, further comprising: broadcasting a fifth type message for stopping data sharing to the local area network.
In this embodiment, the fifth type of message is a message for notifying other terminals to stop sharing data. The second terminal can receive a stop instruction for stopping data sharing, generate a fifth type of message for stopping data sharing according to the stop instruction, broadcast the fifth type of message to the terminals in the local area network, and stop searching and/or sending the target data after other terminals receive the fifth type of message. The second terminal may provide a stop button for stopping the data sharing, may trigger a stop instruction when a click operation acting on the stop button is detected, and may generate a fifth type message.
In one embodiment, the second terminal may broadcast the fifth type of message to the first terminal, and the first terminal may stop searching and/or sending the target data after receiving the fifth type of message.
In an embodiment, the data transmission method further includes a third type message generation process, which may be performed before the step 506, as shown in fig. 6, and the process includes:
In this embodiment, the preset area is an area for inputting keywords, and may be an input box. The position and size of the preset area can be any suitable position and suitable size in the terminal. The second terminal may receive data input by the user, and fill the input data into the preset area. Or the camera can be called to scan the camera shooting area, the character recognizer is called to recognize character information in the camera shooting area, and the recognized character information is used as data filled into the preset area. Or the voice collecting device can be used for collecting voice information in the field environment and filling the voice information into the preset area, or the collected voice information is converted into character information, and the converted character information is used as data filled into the preset area.
In this embodiment, after detecting that the preset region is filled with data, the second terminal detects whether the data in the data filled into the preset region changes within the preset time, and if so, updates the data filled in the preset region and re-detects whether the data filled within the preset time changes. And when the time is kept unchanged within the preset time length, generating a keyword according to the data in the preset area. Specifically, when the data is text information, the text information can be directly used as a keyword, and when the data is non-text information, such as voice information, the voice information can be converted into text information, and the converted text information is used as a keyword.
In this embodiment, after determining the keyword, the keyword may be encapsulated in the third type message.
In this embodiment, when the data filled into the preset area is kept unchanged within the preset duration, the keyword is generated according to the data in the preset area, and convenience in keyword entry can be improved.
In an embodiment, the destination data information includes link information generated by the first terminal according to the destination data, and after step 508, the data transmission method further includes: and acquiring target data according to the link information.
In this embodiment, the first terminal may encapsulate the connection information of the target data into the fourth type message. The second terminal may obtain and display the link information in the fourth type of message. When the click operation acting on the link information is detected, the address pointed by the link information can be accessed, the target data is displayed, and the target data is acquired after the acquisition instruction of the displayed target data is received. In this embodiment, by acquiring the target data according to the link information, the efficiency of acquiring larger target data can be improved. Meanwhile, the target data is displayed before being acquired to confirm whether the target data needs to be acquired or not, and the accuracy of acquiring the target data can be improved.
In one embodiment, the first terminal includes a plurality; step 506 includes: and sending a third type message containing keywords for inquiring the target data to the first terminals corresponding to all the first type messages.
In this embodiment, the second type of message is a broadcast message, so that all terminals receiving the second type of message can send the first type of message responding to the second type of message to the second terminal, and thus, the first terminal may include multiple terminals. The second terminals can send the third type messages to all the first terminals receiving the first type messages, and each second type terminal can search and send target data according to keywords contained in the third type messages.
After step 508, the data transmission method further comprises: displaying target data information contained in the fourth type of messages sent by each first terminal; and acquiring target data corresponding to one or more pieces of target data information.
In this embodiment, the first terminal may receive the fourth type messages sent by the plurality of first terminals, display the target data information in each received fourth type message, receive a selection instruction of one or more target data information from a user, and obtain corresponding target data according to the selection instruction.
In one embodiment, when the target data information is the target data itself, the second terminal may store the selected target data in the corresponding storage location according to the selection instruction. When the target data information is the link information, the address pointed by each link information corresponding to the selection instruction can be accessed, and the corresponding target data is displayed. And after receiving an acquisition instruction of the displayed one or more target data, acquiring the target data, and storing according to the storage operation of the user.
In this embodiment, by sending the third type of message to the first terminals corresponding to all the first type of messages, the probability of successfully querying the target data can be increased, and thus the success rate of target data sharing can be increased.
In one embodiment, the target data includes contact information. Taking target data as contact information as an example, as shown in fig. 7, another contact information transmission method is provided, and the method includes:
In this embodiment, the second terminal may provide an inquiry button for searching for other terminals in the lan, and when the trigger operation on the inquiry button is detected, the lan communication mode is started, and the second type of message is broadcast to the lan. The second terminal may continuously broadcast the second type of message to the local area network according to a preset frequency to prevent the second type of message from being failed in transmission or being failed to be received by the first terminal. The preset frequency may be any suitable frequency, and may be transmitted once every 5 seconds, for example.
In one embodiment, a contact adding button is arranged on the contact application in the second terminal, and after the operation acting on the adding button is detected, an adding mode comprising searching and adding through a local area network can be provided. And after the selection operation of the adding mode is detected, starting a local area network communication mode and broadcasting a second type of message to the local area network.
In this embodiment, the second terminal may display the first terminal corresponding to the received first type of message, that is, display the first terminal that realizes the communication with the second terminal lan. Wherein, the first terminal can comprise a plurality of terminals.
In one embodiment, the second terminal may receive data filled into a preset area; when the data filled into the preset area is kept unchanged within the preset time, generating keywords according to the data in the preset area; and packaging the keywords into the third type messages.
In one embodiment, upon receiving the fourth type of message, the contact information therein may be presented. When a plurality of messages of the fourth type are contained and/or a plurality of pieces of contact information are contained in the messages of the fourth type, each piece of contact information can be displayed, for example, each piece of received contact information can be displayed in a list form, and an adding operation is provided. The second terminal can receive an adding instruction of the displayed one or more contact information and add the one or more contact information into the address list, so that the contact information can be acquired and added from the first terminal.
In one embodiment, there is provided a data transmission method, as shown in fig. 8, the method including:
In this embodiment, the first terminal may provide a share button for triggering the data sharing instruction, and when the trigger operation on the share button is detected, the data sharing instruction is triggered. And starting a local area network communication mode according to the data sharing instruction, generating a first type of message, and continuously broadcasting the first type of message to the local area network according to a preset frequency.
In this embodiment, the second terminal may provide an inquiry button for searching for other terminals in the local area network, and when the trigger operation on the inquiry button is detected, the local area network communication mode is started, and the second type of message is continuously broadcast to the local area network according to the preset frequency.
In step 806, the first terminal sends a first type message to the second terminal in response to the second type message.
In this embodiment, after receiving the second type of message, the first terminal sends the first type of message to the second terminal again. After receiving the first type of message, the second terminal may use the corresponding first terminal as a terminal requesting to acquire the target data. Meanwhile, the second terminal can perform local area network communication with the first terminal according to the MAC address and the IP address of the first terminal in the first type of message.
And 808, the second terminal acquires the word keywords for inquiring the target data and generates a third type of message.
In one embodiment, the second terminal may receive data filled into a preset area; when the data filled into the preset area is kept unchanged within the preset time, generating keywords according to the data in the preset area; and packaging the keywords into the third type messages.
In one embodiment, the second terminal may send a third type of message to all or part of the first terminals to which it is connected. Specifically, before sending the third type of message, each connected first terminal may be displayed, and a selection instruction for one or more first terminals may be received, and the first terminal to which the third type of message is to be sent is determined according to the selection instruction.
In step 812, the first terminal queries target data matched with the keyword, and forms a fourth type message according to the target data.
In this embodiment, the first terminal may display the queried data, receive a selection instruction of the user for the displayed data, and use one or more corresponding to the selection instruction as the target data.
In one embodiment, the first terminal may further detect whether a data size of the target data exceeds a preset size; and if so, generating link information of the target data, packaging the link information into the fourth type of message, and sending the fourth type of message to the second terminal.
The link information is generated for each target data exceeding the preset size, and the link information is encapsulated into the fourth type message.
In one embodiment, each message of the fourth type may contain one or more pieces of target data information. For example, all the target data or the link information of the target data may be encapsulated into the fourth type message to be packaged and sent to the second terminal, so as to improve the sending efficiency. And each target data or the link information of the target data can be independently packaged and sent to the second terminal one by one, so that all target data or link information of the target data can be prevented from being sent unsuccessfully.
In this embodiment, the second terminal may display the target data information in each received fourth type message, for example, display each target data or link information. The second terminal can receive a storage instruction of one or more target data, and stores the corresponding one or more target data according to the storage instruction. And an access instruction for one or more link information can be received, the address pointed by the corresponding one or more link information is accessed, corresponding target data is displayed, and then the target data is selected and stored.
In one embodiment, the first terminal and the second terminal may each broadcast the fifth type message at any time to stop data sharing to other terminals in the local area network.
According to the data transmission method, the first terminal and the second terminal realize communication in the local area network through the first type of message and the second type of message, the second terminal used for acquiring the target data provides the keywords used for inquiring the target data, and the first terminal inquires the matched target data according to the keywords, so that the input operation of the first terminal on the keywords can be simplified, and the inquiring and sharing efficiency of the target data is improved.
Especially, in the case that the user of the second terminal is more aware of the specific data to be acquired, for example, the data to be acquired by the target receiving terminal user is a specific contact, picture, video, or other file. Therefore, in the present embodiment, by determining the keyword for querying the target data by the second terminal, the efficiency of data sharing can be improved more than by inputting the keyword by the user of the first terminal sharing data in the conventional method.
In one embodiment, as shown in fig. 9, there is provided a data transmission apparatus including:
a first communication establishing module 902, configured to receive a second type of message sent by a second terminal and used for querying terminals in a local area network; sending a first type message responding to the second type message to the second terminal;
a data transmission module 904, configured to receive a third type of message that is sent by the second terminal after receiving the first type of message and contains the keyword; and inquiring target data matched with the keywords, forming a fourth type message according to the target data, and sending the fourth type message to the second terminal, wherein the fourth type message is used for indicating the second terminal to acquire the target data according to the fourth type message.
In one embodiment, the data transmission module 904 is further configured to detect whether the data size of the target data exceeds a preset size; and if so, generating link information of the target data, packaging the link information into a fourth type of message, and sending the fourth type of message to the second terminal, wherein the fourth type of message is used for indicating the second terminal to acquire the target data according to the link information.
In one embodiment, the third type of message further includes data category information.
The data transmission module 904 is also used for inquiring the target data which is matched with the keyword and belongs to the data category.
In one embodiment, the first communication establishing module 902 is further configured to broadcast a first type of message for the second terminal to discover the first terminal into the local area network.
In one embodiment, as shown in fig. 10, there is provided another data transmission apparatus including:
a second communication establishing module 1002, configured to broadcast a second type of message for querying a terminal in the local area network to the local area network; receiving a first type message which is sent by a first terminal and responds to a second type message;
a data obtaining module 1004, configured to send a third type of message including a keyword for querying target data to the first terminal; and receiving a fourth type message which is sent by the first terminal and contains target data information matched with the keywords.
In one embodiment, the data acquisition module 1004 is further configured to broadcast a fifth type of message for stopping data sharing to the local area network.
In one embodiment, the data obtaining module 1004 is further configured to receive data filled into the preset area; when the data filled into the preset area is kept unchanged within the preset time, generating keywords according to the data in the preset area; and packaging the keywords into the third type messages.
In one embodiment, the target data information includes link information generated by the first terminal according to the target data; the data obtaining module 1004 is further configured to obtain the target data according to the link information.
In one embodiment, the first terminal includes a plurality; the data obtaining module 1004 is further configured to send a third type of message including a keyword for querying the target data to the first terminals corresponding to all the first type of messages; displaying target data information contained in the fourth type of messages sent by each first terminal; and acquiring target data corresponding to one or more pieces of target data information.
The division of the modules in the data transmission device is only for illustration, and in other embodiments, the data transmission device may be divided into different modules as needed to complete all or part of the functions of the data transmission device. Wherein each module may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules. The processor can be a Central Processing Unit (CPU), a microprocessor, a singlechip and the like.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of any of the above-mentioned data transmission methods.
In one embodiment, the computer program when executed by the processor implements the steps of: receiving a second type of message sent by a second terminal and used for inquiring the terminal in the local area network; sending a first type message responding to the second type message to the second terminal; receiving a third type message containing keywords sent by a second terminal after receiving the first type message; and inquiring target data matched with the keywords, forming a fourth type message according to the target data, and sending the fourth type message to the second terminal, wherein the fourth type message is used for indicating the second terminal to acquire the target data according to the fourth type message.
In one embodiment, the computer program when executed by the processor further performs the steps of: detecting whether the data size of the target data exceeds a preset size or not; and if so, generating link information of the target data, packaging the link information into a fourth type of message, and sending the fourth type of message to the second terminal, wherein the fourth type of message is used for indicating the second terminal to acquire the target data according to the link information.
In one embodiment, the third type of message further includes data category information; the computer program when executed by the processor further realizes the steps of: inquiring target data matched with the keywords, wherein the inquiring target data comprises the following steps: and inquiring target data which is matched with the keywords and belongs to the data category.
In one embodiment, the computer program when executed by the processor further performs the steps of: the first terminal broadcasts a first type message to the local area network for the second terminal to discover the first terminal.
In one embodiment, the computer program when executed by the processor implements the steps of: broadcasting a second type of message for inquiring the terminal in the local area network to the local area network; receiving a first type message which is sent by a first terminal and responds to a second type message; sending a third type message containing keywords for inquiring target data to the first terminal; and receiving a fourth type message which is sent by the first terminal and contains target data information matched with the keywords.
In one embodiment, the computer program when executed by the processor further performs the steps of: broadcasting a fifth type message for stopping data sharing to the local area network.
In one embodiment, the computer program when executed by the processor further performs the steps of: receiving data filled into a preset area; when the data filled into the preset area is kept unchanged within the preset time, generating keywords according to the data in the preset area; and packaging the keywords into the third type messages.
In one embodiment, the target data information includes link information generated by the first terminal according to the target data; the computer program when executed by the processor further realizes the steps of: and acquiring target data according to the link information.
In one embodiment, the computer program when executed by the processor further performs the steps of: sending a third type message containing keywords for inquiring target data to the first terminals corresponding to all the first type messages; displaying target data information contained in the fourth type of messages sent by each first terminal; and acquiring target data corresponding to one or more pieces of target data information.
The embodiment of the application also provides computer equipment. As shown in fig. 11, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The computer device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the computer device as the mobile phone as an example:
fig. 11 is a block diagram of a partial structure of a mobile phone related to a computer device provided in an embodiment of the present application. Referring to fig. 11, the cellular phone includes: radio Frequency (RF) circuitry 1110, memory 1120, input unit 1130, display unit 1140, sensors 1150, audio circuitry 1160, wireless fidelity (WiFi) module 1170, processor 1180, and power supply 1190. Those skilled in the art will appreciate that the handset configuration shown in fig. 11 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 1110 may be configured to receive and transmit signals during information transmission and reception or during a call, and may receive downlink information of a base station and then process the downlink information to the processor 1180; the uplink data may also be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division MultIPle Access (CDMA), Wideband Code Division MultIPle Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Messaging Service (SMS), and the like.
The memory 1120 may be used to store software programs and modules, and the processor 1180 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1120. The memory 1120 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 1120 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1130 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 1100. Specifically, the input unit 1130 may include a touch panel 1131 and other input devices 1132. Touch panel 1131, which may also be referred to as a touch screen, can collect touch operations of a user on or near the touch panel 1131 (for example, operations of the user on or near touch panel 1131 by using any suitable object or accessory such as a finger or a stylus pen), and drive corresponding connection devices according to a preset program. In one embodiment, the touch panel 1131 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1180, and can receive and execute commands sent by the processor 1180. In addition, the touch panel 1131 can be implemented by using various types such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 1130 may include other input devices 1132 in addition to the touch panel 1131. In particular, other input devices 1132 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), and the like.
The display unit 1140 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The display unit 1140 may include a display panel 1141. In one embodiment, the Display panel 1141 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, touch panel 1131 can cover display panel 1141, and when touch panel 1131 detects a touch operation thereon or nearby, the touch operation is transmitted to processor 1180 to determine the category of the touch event, and then processor 1180 provides a corresponding visual output on display panel 1141 according to the category of the touch event. Although in fig. 11, the touch panel 1131 and the display panel 1141 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1131 and the display panel 1141 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 1100 can also include at least one sensor 1150, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1141 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1141 and/or the backlight when the mobile phone moves to the ear. The motion sensor can comprise an acceleration sensor, the acceleration sensor can detect the magnitude of acceleration in each direction, the magnitude and the direction of gravity can be detected when the mobile phone is static, and the motion sensor can be used for identifying the application of the gesture of the mobile phone (such as horizontal and vertical screen switching), the vibration identification related functions (such as pedometer and knocking) and the like; the mobile phone may be provided with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor.
WiFi belongs to short-distance wireless transmission technology, and the cell phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 1170, and provides wireless broadband internet access for the user. Although fig. 11 shows the WiFi module 1170, it is to be understood that it does not necessarily form part of the handset 1100 and may be omitted as desired.
The processor 1180 is a control center of the mobile phone, and is connected to various parts of the whole mobile phone through various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1120 and calling data stored in the memory 1120, thereby performing overall monitoring of the mobile phone. In one embodiment, the processor 1180 may include one or more processing units. In one embodiment, the processor 1180 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, user interfaces, application programs, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated within processor 1180.
The cell phone 1100 also includes a power supply 1190 (e.g., a battery) for providing power to various components, which may be logically coupled to the processor 1180 via a power management system, such that the power management system may be configured to manage charging, discharging, and power consumption.
In one embodiment, the cell phone 1100 may also include a camera, a bluetooth module, and the like.
In one embodiment, a computer device is provided, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of any of the above-mentioned data transmission methods when executing the computer program.
In one embodiment, the processor, when executing the computer program, performs the steps of: receiving a second type of message sent by a second terminal and used for inquiring the terminal in the local area network; sending a first type message responding to the second type message to the second terminal; receiving a third type message containing keywords sent by a second terminal after receiving the first type message; and inquiring target data matched with the keywords, forming a fourth type message according to the target data, and sending the fourth type message to the second terminal, wherein the fourth type message is used for indicating the second terminal to acquire the target data according to the fourth type message.
In one embodiment, the processor, when executing the computer program, further performs the steps of: detecting whether the data size of the target data exceeds a preset size or not; and if so, generating link information of the target data, packaging the link information into a fourth type of message, and sending the fourth type of message to the second terminal, wherein the fourth type of message is used for indicating the second terminal to acquire the target data according to the link information.
In one embodiment, the third type of message further includes data category information; the processor, when executing the computer program, further performs the steps of: inquiring target data matched with the keywords, wherein the inquiring target data comprises the following steps: and inquiring target data which is matched with the keywords and belongs to the data category.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the first terminal broadcasts a first type message to the local area network for the second terminal to discover the first terminal.
In one embodiment, the processor, when executing the computer program, performs the steps of: broadcasting a second type of message for inquiring the terminal in the local area network to the local area network; receiving a first type message which is sent by a first terminal and responds to a second type message; sending a third type message containing keywords for inquiring target data to the first terminal; and receiving a fourth type message which is sent by the first terminal and contains target data information matched with the keywords.
In one embodiment, the processor, when executing the computer program, further performs the steps of: broadcasting a fifth type message for stopping data sharing to the local area network.
In one embodiment, the processor, when executing the computer program, further performs the steps of: receiving data filled into a preset area; when the data filled into the preset area is kept unchanged within the preset time, generating keywords according to the data in the preset area; and packaging the keywords into the third type messages.
In one embodiment, the target data information includes link information generated by the first terminal according to the target data; the processor, when executing the computer program, further performs the steps of: and acquiring target data according to the link information.
In one embodiment, the processor, when executing the computer program, further performs the steps of: sending a third type message containing keywords for inquiring target data to the first terminals corresponding to all the first type messages; displaying target data information contained in the fourth type of messages sent by each first terminal; and acquiring target data corresponding to one or more pieces of target data information.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Suitable non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (12)
1. A data transmission method is applied to a first terminal, and comprises the following steps:
receiving a second type of message sent by a second terminal and used for inquiring the terminal in the local area network;
sending a first type message responding to the second type message to the second terminal;
receiving a third type message containing keywords sent by the second terminal after receiving the first type message; the third type of message also comprises data type information;
acquiring the data category of the data to be transmitted according to the data category information, and inquiring target data which is matched with the keywords and belongs to the data category;
detecting whether the data size of the target data exceeds a preset size or not;
if so, generating link information of the target data, packaging the link information into a fourth type of message, and sending the fourth type of message to the second terminal, wherein the fourth type of message is used for indicating the second terminal to acquire the target data according to the fourth type of message;
before the receiving the second type of message that the second terminal sends the terminal used for inquiring in the local area network, the method further includes:
if the triggering operation of a sharing button of the sharing instruction on the first terminal is detected, triggering a data sharing instruction;
or acquiring gesture or voice information for triggering a data sharing instruction, and if the gesture or voice information is matched with preset gesture or voice information, triggering the data sharing instruction;
and the first terminal receives the data sharing instruction, starts a local area network communication mode according to the data sharing instruction, generates a first type message for enabling the second terminal to discover the first terminal, and broadcasts the first type message to the local area network according to a preset frequency.
2. The method of claim 1, wherein before the first terminal receives a second type of message sent by a second terminal for querying terminals in a local area network, the method further comprises:
the first terminal broadcasts a first type message to the local area network for the second terminal to discover the first terminal.
3. The method of claim 1, wherein the target data comprises contact information.
4. A data transmission method is applied to a second terminal, and comprises the following steps:
after receiving a first type of message broadcasted by a first terminal to a local area network for enabling a second terminal to discover the first terminal, broadcasting a second type of message for inquiring the terminals in the local area network to the local area network;
receiving a first type message which is sent by a first terminal and responds to the second type message;
sending a third type message containing keywords for inquiring target data to the first terminal; the third type of message also comprises data type information;
receiving a fourth type of message which is searched by the first terminal according to the data category in the data category information and is sent by the first terminal, wherein the fourth type of message comprises target data information which is matched with the keyword and corresponds to the data category, and the target data information comprises link information generated by the first terminal according to target data;
and acquiring the target data according to the link information.
5. The method according to claim 4, further comprising, after receiving a fourth type message sent by the first terminal and containing target data information matching the keyword:
broadcasting a fifth type of message for stopping data sharing to the local area network.
6. The method according to claim 4, wherein before said sending the third type of message containing the keyword for querying the target data to the first terminal, further comprising:
receiving data filled into a preset area;
when the data filled into the preset area is kept unchanged within a preset time length, generating keywords according to the data in the preset area;
and packaging the keywords into a third type message.
7. The method of claim 4, wherein the first terminal comprises a plurality;
the sending of the third type message containing the keyword for querying the target data to the first terminal includes:
sending a third type message containing keywords for inquiring target data to the first terminals corresponding to all the first type messages;
after the receiving of the fourth type message sent by the first terminal and containing the target data information matched with the keyword, the method further includes:
displaying target data information contained in the fourth type of messages sent by each first terminal;
and acquiring target data corresponding to one or more pieces of target data information.
8. The method of claim 4, wherein the target data comprises contact information.
9. A data transmission apparatus, characterized in that the apparatus comprises:
the first communication establishing module is used for receiving a second type of message sent by a second terminal and used for inquiring the terminal in the local area network; sending a first type message responding to the second type message to the second terminal;
the data transmission module is used for receiving a third type message containing keywords sent by the second terminal after receiving the first type message; the third type of message also comprises data type information; acquiring the data category of data to be transmitted according to the data category information, inquiring target data which is matched with the keywords and belongs to the data category, detecting whether the data size of the target data exceeds a preset size, if so, generating link information of the target data, packaging the link information into a fourth type message, and transmitting the fourth type message to the second terminal, wherein the fourth type message is used for indicating the second terminal to acquire the target data according to the fourth type message;
the data transmission device is further configured to trigger a data sharing instruction if a trigger operation of a sharing button of the sharing instruction on the first terminal is detected before a second type of message, which is sent by a second terminal and used for querying terminals in the local area network, is received; or acquiring gesture or voice information for triggering a data sharing instruction, and if the gesture or voice information is matched with preset gesture or voice information, triggering the data sharing instruction; and the first terminal receives the data sharing instruction, starts a local area network communication mode according to the data sharing instruction, generates a first type message for enabling the second terminal to discover the first terminal, and broadcasts the first type message to the local area network according to a preset frequency.
10. A data transmission apparatus, characterized in that the apparatus comprises:
the second communication establishing module is used for broadcasting a second type of message for inquiring the terminal in the local area network to the local area network after receiving the first type of message which is broadcasted to the local area network by the first terminal and used for enabling the second terminal to discover the first terminal; receiving a first type message which is sent by a first terminal and responds to the second type message;
the data acquisition module is used for sending a third type of message containing keywords for inquiring target data to the first terminal; the third type of message also comprises data type information; receiving a fourth type of message which is searched by the first terminal according to the data category in the data category information and is sent by the first terminal, wherein the fourth type of message comprises target data information which is matched with the keyword and corresponds to the data category, and the target data information comprises link information generated by the first terminal according to target data; and acquiring the target data according to the link information.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of one of claims 1 to 3 and/or 4 to 8.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method of any one of claims 1 to 3 and/or 4 to 8 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710797136.3A CN107529133B (en) | 2017-09-06 | 2017-09-06 | Data transmission method, device, storage medium and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710797136.3A CN107529133B (en) | 2017-09-06 | 2017-09-06 | Data transmission method, device, storage medium and computer equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107529133A CN107529133A (en) | 2017-12-29 |
CN107529133B true CN107529133B (en) | 2021-08-03 |
Family
ID=60683775
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710797136.3A Expired - Fee Related CN107529133B (en) | 2017-09-06 | 2017-09-06 | Data transmission method, device, storage medium and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107529133B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109286690A (en) * | 2018-08-29 | 2019-01-29 | 博瓦(武汉)科技有限公司 | Automatically the method for peer IP is obtained in a kind of local area network |
CN112580947A (en) * | 2020-12-08 | 2021-03-30 | 北京索为云网科技有限公司 | Information processing method, device and storage medium |
CN115514734B (en) * | 2022-10-03 | 2023-08-01 | 陈军 | Message sending method and system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102711088A (en) * | 2011-03-28 | 2012-10-03 | 中兴通讯股份有限公司 | Method and device for acquiring contact information |
CN102752748A (en) * | 2012-06-26 | 2012-10-24 | 中国联合网络通信集团有限公司 | Data transmission method and system based on mobile terminal and mobile terminal |
CN103491153A (en) * | 2013-09-17 | 2014-01-01 | 天脉聚源(北京)传媒科技有限公司 | Method, equipment and peer-to-peer network system for data sharing |
CN104093129A (en) * | 2014-06-10 | 2014-10-08 | 中兴通讯股份有限公司 | Wi-Fi-based information sharing broadcast method and apparatus |
CN106534448A (en) * | 2016-10-13 | 2017-03-22 | Tcl移动通信科技(宁波)有限公司 | Mobile terminal-based method and system of sharing contact information |
-
2017
- 2017-09-06 CN CN201710797136.3A patent/CN107529133B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102711088A (en) * | 2011-03-28 | 2012-10-03 | 中兴通讯股份有限公司 | Method and device for acquiring contact information |
CN102752748A (en) * | 2012-06-26 | 2012-10-24 | 中国联合网络通信集团有限公司 | Data transmission method and system based on mobile terminal and mobile terminal |
CN103491153A (en) * | 2013-09-17 | 2014-01-01 | 天脉聚源(北京)传媒科技有限公司 | Method, equipment and peer-to-peer network system for data sharing |
CN104093129A (en) * | 2014-06-10 | 2014-10-08 | 中兴通讯股份有限公司 | Wi-Fi-based information sharing broadcast method and apparatus |
CN106534448A (en) * | 2016-10-13 | 2017-03-22 | Tcl移动通信科技(宁波)有限公司 | Mobile terminal-based method and system of sharing contact information |
Also Published As
Publication number | Publication date |
---|---|
CN107529133A (en) | 2017-12-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10831161B2 (en) | Method and device for sending communication message | |
CN107562835B (en) | File searching method and device, mobile terminal and computer readable storage medium | |
CN107707538B (en) | Data transmission method and device, mobile terminal and computer readable storage medium | |
WO2020077485A1 (en) | Geo-fence updating method, and communication device | |
WO2014206068A1 (en) | A method, apparatus and system for sharing webpage | |
CN107172266A (en) | Method for controlling fingerprint identification and Related product | |
CN108549698B (en) | File processing method and device, mobile terminal and computer readable storage medium | |
CN107992822B (en) | Image processing method and apparatus, computer device, computer-readable storage medium | |
US10956653B2 (en) | Method and apparatus for displaying page and a computer storage medium | |
CN108733337B (en) | Screen display method and device, electronic equipment and computer readable storage medium | |
CN109445917B (en) | Application processing method and device, electronic equipment and computer readable storage medium | |
CN107172267B (en) | Fingerprint identification control method and related product | |
CN107423601B (en) | Fingerprint identification control method, fingerprint identification control device, fingerprint identification control terminal, fingerprint identification control storage medium and computer product | |
CN107743305B (en) | Method and device for loading configuration information and computer equipment | |
CN107484154B (en) | Data switching method and device, terminal and computer readable storage medium | |
CN107529133B (en) | Data transmission method, device, storage medium and computer equipment | |
CN107621915B (en) | Message reminding method, device and computer storage medium | |
CN107194223B (en) | Fingerprint identification area display method and related product | |
CN108449481A (en) | A kind of associated person information recommends method and terminal | |
WO2018166202A1 (en) | Network positioning method, computer equipment and non-volatile readable storage medium | |
CN106033467A (en) | Image file sharing method and device | |
WO2015117554A1 (en) | Data processing method, apparatus, and terminal device | |
CN107992615B (en) | Website recommendation method, server and terminal | |
CN108804434B (en) | Message query method, server and terminal equipment | |
CN106020945B (en) | Shortcut item adding method and device |
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: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 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: 20210803 |
|
CF01 | Termination of patent right due to non-payment of annual fee |