CN112492050A - Method and system for data transmission between terminals - Google Patents

Method and system for data transmission between terminals Download PDF

Info

Publication number
CN112492050A
CN112492050A CN202011488147.1A CN202011488147A CN112492050A CN 112492050 A CN112492050 A CN 112492050A CN 202011488147 A CN202011488147 A CN 202011488147A CN 112492050 A CN112492050 A CN 112492050A
Authority
CN
China
Prior art keywords
identity
data
sending
terminal
receiving
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.)
Pending
Application number
CN202011488147.1A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN202011488147.1A priority Critical patent/CN112492050A/en
Publication of CN112492050A publication Critical patent/CN112492050A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4535Network directories; Name-to-address mapping using an address exchange platform which sets up a session between two nodes, e.g. rendezvous servers, session initiation protocols [SIP] registrars or H.323 gatekeepers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Abstract

The invention relates to a method and a system for data transmission between terminals. The method comprises the following steps: receiving login request data of a receiving terminal; the receiving terminal sends the first identity ID to the receiving terminal after logging successfully and receives first coding information fed back by the receiving terminal; the first coded information comprises a first identity ID and starting data for starting the data transmission application; generating a first identity mark and sending the first identity mark to a receiving terminal; receiving login request data of a sending terminal; and sending the second identity ID to a sending terminal, receiving login request data of the sending terminal, receiving data to be transmitted sent by the sending terminal and a first identity ID obtained by identifying and analyzing the first identity after the sending terminal successfully logs in, and sending the data to be transmitted to a receiving terminal corresponding to the first identity ID. The method realizes data transmission between terminals by identifying and analyzing the identity, simplifies operation and improves transmission efficiency.

Description

Method and system for data transmission between terminals
Technical Field
The invention relates to the technical field of data transmission between terminals, in particular to a method and a system for data transmission between terminals.
Background
Along with the development of intelligent terminals, more and more terminal equipment is put into use. With the increase of the types and the number of users of the terminal devices, a scene of interaction between the terminal devices inevitably occurs, and the interaction between the terminal devices is actually transmission between data, so that the requirement of data transmission between the terminal devices is generated.
At present, data transmission modes between various types of terminal devices are different, for example, data transmission between a computer terminal and a mobile phone terminal is mostly realized through a data line, and data transmission between the mobile phone terminal and the mobile phone terminal is mostly realized through bluetooth, or through some software capable of transmitting data. In the data transmission mode, when data is transmitted, data lines need to be connected, or terminal equipment needs to have a Bluetooth function, or both terminals need to simultaneously install, register and log in the same software and add friends manually, and the data transmission step is complicated and low in efficiency.
Disclosure of Invention
In view of the above, the present invention provides a method and system for data transmission between terminals to overcome the shortcomings of the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for data transmission between terminals is applied to a server, and the method comprises the following steps:
receiving login request data of a receiving terminal;
after the receiving terminal successfully logs in, sending a preset first Identity (ID) to the receiving terminal, and receiving first coding information fed back by the receiving terminal; the first encoding information comprises the first identity ID and starting data for starting a data transmission application;
generating the first identity mark according to the first coding information and sending the first identity mark to the receiving terminal;
receiving login request data of a sending terminal;
after the sending terminal successfully logs in, receiving data to be transmitted sent by the sending terminal and a first identity ID obtained by identifying and analyzing the first identity;
and sending the data to be transmitted to a receiving terminal corresponding to the first identity ID.
Optionally, after the sending terminal successfully logs in, the method further includes:
sending a preset second identity ID to the sending terminal, and receiving second coding information fed back by the sending terminal; the second encoding information comprises the second identity ID and starting data for starting a data transmission application;
and generating the second identity according to the second coding information and sending the second identity to the sending terminal.
Optionally, the receiving the to-be-transmitted data sent by the sending terminal includes:
receiving the data to be transmitted uploaded by the sending terminal and storing the data to be transmitted to a cloud end;
receiving a data storage address fed back by the cloud; the data storage address feedback method comprises two modes, one mode is that a server directly returns the data storage address after the on-site real-time uploading is successful, the other mode is that a user manually selects a data file uploaded at the cloud end, and the server returns the data storage address.
Optionally, the method further includes:
constructing an equipment matching table of a preset database, and storing the first identity ID and the second identity ID into the equipment matching table;
and constructing a to-be-received data transmission table of the database, and storing the first identity ID, the second identity ID and the data storage address into the to-be-received data transmission table.
Optionally, the method further includes:
receiving a request instruction for acquiring a data record to be received, which is sent by the receiving terminal;
determining an identity ID corresponding to the receiving terminal according to the request instruction for acquiring the data record;
calling the data storage address correspondingly recorded in the data transmission table to be received according to the identity ID, and triggering downloading;
sending the data in the data storage address to the receiving terminal;
receiving a request instruction for acquiring a device pairing record corresponding to the device pairing table; the request instruction of the equipment pairing record is sent by the receiving terminal and/or the sending terminal;
determining an identity ID corresponding to the receiving terminal and/or the sending terminal according to the request instruction for obtaining the equipment pairing record;
calling a corresponding pairing record in the equipment pairing table according to the identity ID corresponding to the receiving terminal and/or the sending terminal;
and sending the pairing record to the receiving terminal and/or the sending terminal.
A method for data transmission between terminals is applied to a receiving terminal, and the method comprises the following steps:
sending login request data to a server, and receiving a first Identity (ID) distributed by the server;
sending the first identity ID and starting data for starting a data transmission application to the server;
and receiving and displaying the first identity identifier returned by the server so as to be identified and analyzed by the sending terminal and perform data transmission.
Optionally, the method further includes:
monitoring a data transmission table to be received and an equipment pairing table preset by the server in real time;
judging whether the data transmission table to be received and/or the equipment pairing table has data updating;
and if the data are updated, generating a request instruction for acquiring the data to be received and/or the equipment pairing record and sending the request instruction to the server.
A method for data transmission between terminals is applied to a sending terminal, and the method comprises the following steps:
identifying and analyzing the first identity identification to obtain a first identity ID and storing the first identity ID for use; specific ways of storing and using the first identity ID include: the data is stored locally and read locally when in use; or the data is stored in a device pairing table preset by a server and is read through a device pairing record when in use;
sending login request data to a server;
and after the login is successful, sending the data to be transmitted and the first identity ID to the server for data transmission.
Optionally, after sending the login request data to the server, the method further includes:
receiving a second identity ID allocated by the server;
sending the second identity ID and starting data for starting the data transmission application to the server;
receiving and displaying a second identity returned by the server for other sending terminals to recognize and analyze and perform data transmission;
sending a request instruction for creating a pairing record to a device pairing table to the server; the instruction includes the first identity ID and the second identity ID.
A system for transmitting terminal data, comprising:
the system comprises a receiving terminal, a sending terminal and a server which is respectively in communication connection with the receiving terminal and the sending terminal;
the receiving terminal is used for executing the method for transmitting data between terminals;
the sending terminal is used for executing the method for transmitting the data between the terminals;
the server is used for executing the method for transmitting data between the terminals.
The technical scheme provided by the application can comprise the following beneficial effects:
the method discloses a method for data transmission between terminals, which comprises the following steps: receiving login request data of a receiving terminal; after the receiving terminal successfully logs in, sending a preset first Identity (ID) to the receiving terminal, and receiving first coding information fed back by the receiving terminal; the first coded information comprises a first identity ID and starting data for starting the data transmission application; generating a first identity mark according to the first coding information and sending the first identity mark to a receiving terminal; receiving login request data of a sending terminal; after the sending terminal successfully logs in, receiving data to be transmitted sent by the sending terminal and a first identity ID obtained by identifying and analyzing a first identity; and sending the data to be transmitted to a receiving terminal corresponding to the first identity ID. According to the method, a receiving terminal obtains a first identity generated by a server, then a sending terminal scans and analyzes the first identity through a code scanning function to obtain a starting instruction for starting a data transmission application and the first identity, the first identity and the data to be transmitted are uploaded to the server through the data transmission application started by the starting instruction, the server determines the receiving terminal according to the first identity in the data after receiving the data sent by the sending terminal, and transmits the data to be transmitted to the receiving terminal, so that data transmission between the terminals is achieved. In the data transmission process, the sending terminal can realize sending and receiving between the terminals only by identifying and analyzing the identity shown by the receiving terminal, so that data transmission is realized, the data transmission steps are greatly simplified, and the data transmission efficiency is improved. According to the method, when the terminal transmits data, registration is not needed, and a friend is not needed to be added manually, the system automatically allocates the identity ID to perform anonymous login, an identifiable and analyzable identity is generated after the identity ID is allocated, and the sending terminal can send or receive the file through the identity displayed by the identifying and analyzable receiving terminal.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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 invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for data transmission between terminals according to an embodiment of the present invention;
fig. 2 is a block diagram of an apparatus for data transmission between terminals according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for data transmission between terminals according to another embodiment of the present invention;
fig. 4 is a flowchart of a method for data transmission between terminals according to another embodiment of the present invention;
fig. 5 is a block diagram of a server for data transmission between terminals according to an embodiment of the present invention;
fig. 6 is a structural diagram of a system for data transmission between terminals according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Fig. 1 is a flowchart of a method for data transmission between terminals according to an embodiment of the present invention. Referring to fig. 1, a method for data transmission between terminals includes:
step 101: and receiving login operation data of the receiving terminal. Before data transmission, a receiving terminal needs to log in a data transmission system in the application. Specifically, in the application, the interaction between the receiving terminal and the server is realized between the data transmission system and the receiving terminal through the data transmission website, and the process that the user opens the website of the website at the receiving terminal is regarded as the login process of the receiving terminal.
Step 102: after the receiving terminal successfully logs in, sending a preset first Identity (ID) to the receiving terminal, and receiving first coding information fed back by the receiving terminal; the first encoded information includes the first identity ID and launch data to launch a data transfer application.
Step 103: and generating the first identity identifier according to the first coding information and sending the first identity identifier to the receiving terminal. After receiving the first encoded information, the server generates a corresponding first identity identifier according to the first identity ID in the first encoded information and the start data for starting the data transmission application, and then returns the first identity identifier to the receiving terminal. When the application is actually developed, the identity mark can be a two-dimensional code, a small program code and the like, when the two-dimensional code is generated, the starting data for starting the data transmission application is an application website, the data transmission application of a website is developed by using the patent, and the webpage version data transmission application can be started by using the program scanning capable of opening the webpage application; when the applet codes are generated, the starting data for starting the data transmission application are the applet appid and the applet page path distributed by the applet service provider, the data transmission application of one applet is developed by using the patent, and the applet application can be opened by scanning the applet codes by using the app scanning function which can open the corresponding applet. The actual use depends on the scene.
When a receiving terminal logs in a data transmission website, the identity of the receiving terminal can be automatically displayed, and any terminal can establish communication connection with the receiving terminal by scanning the identity to transmit data between terminals.
Step 104: and receiving login request data of the sending terminal.
Step 105: and after the sending terminal successfully logs in, receiving the data to be transmitted sent by the sending terminal and a first identity ID obtained by identifying and analyzing the first identity. Here, the data storage address in the data to be transmitted may be uploaded to the cloud storage server on site, or may be uploaded to the cloud storage server; the first identity ID can be a pairing record which is stored locally after code scanning or stored in a device pairing table preset by a server through identification and analysis; the first identity identifier identified and analyzed by the sending terminal can be of various types, and can be identified and analyzed through code scanning according to the situation, wherein the first identity identifier is an equipment readable code such as a bar code, a two-dimensional code, a small program code and the like; how to scan the first identity mark by the sending terminal can utilize the scanning function in the existing software to scan, such as the scanning function of mobile phone WeChat or mobile phone QQ or mobile phone browser, and can also utilize the functions of camera shooting and the like carried by the terminal equipment to realize the scanning or identification and analysis of codes, and the specific mode can be determined according to the actual situation.
Step 106: and sending the data to be transmitted to a receiving terminal corresponding to the first identity ID. After the sending terminal logs in the data transmission website by scanning the first identity identifier, the sending terminal selects data to be sent on site or selects data which is uploaded in cloud storage to be sent, and then the function that the sending terminal sends the data to the receiving terminal is achieved.
Specifically, in step 106, when data is sent, four operations are performed, where the first operation is to upload data to the cloud storage server, the second operation is to store an address of the data in the cloud storage in the data transmission record to be received, the third operation is to send the data transmission record to be received to the receiving terminal, and the fourth operation is to request, by the receiving terminal, to download and receive the data according to the data storage address in the record. It should be noted here that the first operation and the second operation may not be performed in a short and continuous time, may be uploaded to cloud storage without being transmitted to a receiving end, and may select data uploaded in cloud storage to be transmitted to the receiving end without being uploaded on site, and the data storage address in the second operation may be obtained in two cases, one is the data storage address directly returned by the cloud storage server after successful uploading on site in real time, and the other is the data storage address returned by the cloud storage server after being manually selected by a user.
In the above embodiment, the first identity identifier is allocated to the receiving terminal, and then the sending terminal scans the first identity identifier displayed by the receiving terminal through the code scanning function to achieve data sending and receiving. In the data transmission process between the terminals of the embodiment, data transmission is achieved without other hardware equipment, and data transmission can be achieved only by scanning the identity shown by the data transmission application opened on the browser of the receiving terminal by the application capable of opening the webpage application after code scanning through the sending terminal, so that the operation steps of data transmission between the terminals are greatly simplified, and the data transmission efficiency between the terminals is greatly improved.
On the basis of the above embodiment, further, in the present application, the sending terminal also displays the identifiable identity, and the sending terminal may also be used as a receiving terminal to receive data at the same time, and the specific operations are as follows:
after the sending terminal successfully logs in, sending a preset second Identity (ID) to the sending terminal, and receiving second coding information fed back by the sending terminal; the second encoding information comprises the second identity ID and starting data for starting a data transmission application; and generating the second identity according to the second coding information and sending the second identity to the sending terminal.
The server sends the second identity to the sending terminal through the steps, and when other terminals send data to the sending terminal, the second identity can be directly identified. The functions of the receiving terminal and the sending terminal are not unique, the receiving terminal can be used as a sending terminal to send data, and the sending terminal can also be used as a receiving terminal to receive data. The specific end needs to be determined according to actual conditions and user requirements.
Further, on the basis of the above embodiment, the present application further discloses the following embodiment, in which mutual transmission between two terminals is realized according to the device pairing record, and the paired devices are directly sent from the device pairing record without scanning codes, specifically as follows:
creating a pairing record: in the application, the server also can construct a preset device matching table of a database, and store the first identity ID and the second identity ID into the device matching table. When the sending terminal successfully identifies and analyzes the first identity displayed by the receiving terminal, the first identity ID and a starting instruction for starting the data transmission application are obtained, the analyzed starting instruction for starting the data transmission application is executed at the sending terminal, the second identity ID allocated by the server is obtained after the application is started and automatically logs in successfully, when the sending terminal obtains the second identity ID, data such as the identity ID and the like are triggered to be stored into a preset equipment pairing table, an equipment pairing record is created, and the two identity IDs of the first identity ID and the second identity ID are respectively stored into two identity ID fields.
Obtaining a pairing record: both the receiving terminal and the sending terminal use their own identity ID as a condition, and autonomously monitor the inquiry or manually inquire the equipment to match any one of the two identity ID fields in the table, so as to find the record, and obtain their own identity ID and the other identity ID on the record, as can be seen from the step 105 in the embodiment of fig. 1, as long as the identity ID of the other party is obtained, data can be sent to the other party. Because the device matches the table, the sending terminal and the receiving terminal are both in autonomous monitoring inquiry or manual inquiry and accord with the own pairing record, the identity ID of the other terminal can be obtained when any terminal inquires the pairing record, and the receiving terminal can be exchanged to be used as the sending terminal role to carry out sending operation. Correspondingly, the problem that a certain terminal does not have code scanning capability and can also be used as a sending terminal, for example, in a scene that a desktop computer sends a mobile phone, the mobile phone scans a code to trigger and create a pairing record, the desktop computer obtains the pairing record, and data can be sent to the mobile phone by using the identity ID of the mobile phone in the pairing record; correspondingly, the problem that if one terminal obtains one or more pairing records, the paired devices do not need to scan codes any more and can also carry out data transmission is solved.
Sending data by using the identity ID in the pairing record: and constructing a data transmission table to be received of the database, storing the first identity ID, the second identity ID and the data storage address into the data transmission table to be received, and creating a record in the data transmission table to be received when the data transmission table is used for sending operation. And the first identity ID is obtained by analyzing the pairing record by the sending terminal and is stored in the identity ID of the receiving party. And the second identity ID is distributed to the sending terminal by the server for use and is stored in the ID field of the sending party. The data storage address is returned by the cloud storage server, and the data storage address is returned in two modes, namely, the data storage address is directly returned by the server after the on-site real-time uploading is successful, and the data file uploaded at the cloud end is manually selected by a user, and the data storage address is returned by the server. And the receiving terminal autonomously monitors and inquires or artificially inquires the ID field of the receiver in the data transmission table to be received by taking the first identity ID of the receiving terminal as a condition, searches the record to be received, further obtains the second identity ID of the sending terminal on the record and the data storage address sent by the sending terminal, and realizes the downloading and receiving of the data according to the data storage address.
Corresponding to the method for transmitting data between terminals provided by the embodiment of the invention, the embodiment of the invention also provides a device for transmitting data between terminals. Please see the examples below.
Fig. 2 is a block diagram of an apparatus for data transmission between terminals according to an embodiment of the present invention. Referring to fig. 2, an apparatus for data transmission between terminals includes:
a receiving end request receiving module 201, configured to receive login request data of a receiving terminal.
The first code receiving module 202 is configured to send a preset first identity ID to the receiving terminal after the receiving terminal successfully logs in, and receive first code information fed back by the receiving terminal; the first code information includes the first identity ID and transmission start data that starts transmission of data by the transmission terminal.
A first identity identifier sending module 203, configured to generate the first identity identifier according to the first encoding information and send the first identity identifier to the receiving terminal
A sending end request receiving module 204, configured to receive login request data of a sending terminal;
and the transmission data sending module 205 is configured to receive, after the sending terminal successfully logs in, to-be-transmitted data sent by the sending terminal and a first identity ID obtained by identifying and analyzing the first identity identifier. The receiving of the data to be transmitted sent by the sending terminal includes: receiving the data to be transmitted uploaded by the sending terminal and storing the data to be transmitted to a cloud end; receiving a data storage address fed back by the cloud; the data storage address feedback method comprises two modes, one mode is that a server directly returns the data storage address after the on-site real-time uploading is successful, the other mode is that a user manually selects a data file uploaded at the cloud end, and the server returns the data storage address.
A data transmission module 206, configured to send the data to be transmitted to a receiving terminal corresponding to the first identity ID.
In the device, the sending terminal identifies and analyzes the identity identifier displayed by the receiving terminal to obtain the first identity ID for sending and receiving the file. The data transmission steps between the terminals are simplified, and the data transmission efficiency is improved.
On the basis of the above embodiment, the present application also discloses another embodiment:
the inter-terminal data transmission device further includes:
the second identity ID sending module is used for sending a preset second identity ID to the sending terminal and receiving second coding information fed back by the sending terminal; the second encoding information comprises the second identity ID and starting data for starting a data transmission application;
and the second identity identification sending module is used for generating the second identity identification according to the second coding information and sending the second identity identification to the sending terminal. Therefore, the sending terminal can display the identity mark to be identified and analyzed by other terminals, and the role of the sending terminal is converted into the role of the receiving terminal.
The matching table construction module is used for constructing an equipment matching table of a preset database and storing the first identity ID and the second identity ID into the equipment matching table;
and the data transmission table building module is used for building a data transmission table to be received of the database and storing the first identity ID, the second identity ID and the data storage address into the data transmission table to be received.
In the above embodiment, the paired terminals can directly perform data transmission between the terminals through the pairing record in the device pairing table, so that repeated pairing operation between the terminals is avoided, or free switching operation between the sending role and the receiving role is avoided, and the transmission operation is simplified.
The above embodiment describes a data transmission method between terminals from a server side, and now also describes the data transmission method from a terminal device, specifically as follows:
fig. 3 is a flowchart of a method for data transmission between terminals according to another embodiment of the present invention. Referring to fig. 3, a method for data transmission between terminals, the method being applied to a receiving terminal, the method comprising:
step 301: and sending login request data to a server and receiving a first identity ID distributed by the server.
Step 302: and sending the first identity ID and starting data for starting the data transmission application to the server.
Step 303: and receiving and displaying the first identity identifier returned by the server so as to be identified and analyzed by the sending terminal and perform data transmission.
The receiving terminal obtains the self identity ID, namely the first identity ID, by logging in the data transmission application of the application, and the identification between the terminals is realized through the identity ID so as to realize data transmission.
On the basis of the above embodiment, the method in the above embodiment further includes:
monitoring a data transmission table to be received and an equipment pairing table preset by the server in real time; judging whether the data transmission table to be received and/or the equipment pairing table has data updating; and if the data are updated, generating a request instruction for acquiring the data to be received and/or the equipment pairing record and sending the request instruction to the server.
The receiving terminal which logs in the application system can monitor whether new equipment is matched with the receiving terminal or not in real time, or whether new data needs to be transmitted or not, if the new data exists, the data can be automatically downloaded through monitoring, so that the function of automatically monitoring the transmitted data by the terminal is realized, and the condition that the transmitted data is sent due to error delay of the server is avoided.
Fig. 4 is a flowchart of a method for data transmission between terminals according to another embodiment of the present invention. Referring to fig. 4, a method for data transmission between terminals, the method being applied to a sending terminal, the method comprising:
step 401: identifying and analyzing the first identity identification to obtain a first identity ID and storing the first identity ID for use; specific ways of storing and using the first identity ID include: the data is stored locally and read locally when in use; or storing the data in a device pairing table preset by a server, and reading the data through a device pairing record when the data is used.
Step 402: and sending login request data to the server.
Step 403: and after the login is successful, sending the data to be transmitted and the first identity ID to the server for data transmission.
Meanwhile, after sending the login request data to the server, the method further includes:
receiving a second identity ID allocated by the server;
sending the second identity ID and starting data for starting the data transmission application to the server;
receiving and displaying a second identity returned by the server for other terminals to recognize and analyze and perform data transmission;
sending a request instruction for creating a pairing record to a device pairing table to the server; the instruction includes the first identity ID and the second identity ID.
In the above embodiment, the receiving terminal obtains the identity ID by logging in a data transmission system (website) of the server, and then generates a device readable code for scanning by the sending terminal, the sending terminal obtains the identity ID of the receiving terminal and a start instruction for starting a data transmission application by parsing during scanning, after the sending terminal executes a data transmission application start instruction after scanning, the system is automatically triggered to log in, and after logging in, the allocated identity ID is obtained, the sending terminal has the identity ID of the receiving terminal and the identity ID of itself, the sending terminal further selects data to be transmitted to upload to the server, creates a data transmission record to be received, and writes a receiver identity ID, a sender identity ID, and a data file storage address in a corresponding field in the record. Meanwhile, once the identity ID is obtained by the receiving terminal or the sending terminal, the data transmission table to be received and the equipment pairing table are monitored immediately, if the full-duplex communication capability of the WebSocket protocol is used, the connection is established between the terminal and the data transmission table to be received or the equipment pairing table on the server, and once any table is recorded and updated, corresponding data is pushed to the corresponding terminal immediately, so that the effect of data transmission between the terminals only by scanning is realized, the data transmission operation is greatly simplified, and the data transmission efficiency is improved.
In order to more clearly introduce a hardware system for implementing the embodiment of the present invention, an embodiment of the present invention further provides an inter-terminal data transmission device, which corresponds to the inter-terminal data transmission method provided in the embodiment of the present invention. Please see the examples below.
Fig. 5 is a structural diagram of a server for data transmission between terminals according to an embodiment of the present invention. Referring to fig. 5, a transmission server of terminal data includes:
a processor 501, and a memory 502 connected to the processor 501;
the memory 502 is used for storing a computer program at least for executing the above-described method for data transmission between terminals; the processor 501 is used for calling and executing the computer program in the memory 502.
Fig. 6 is a structural diagram of a system for data transmission between terminals according to an embodiment of the present invention. Referring to fig. 6, a terminal data transmission system includes:
a receiving terminal 601, a sending terminal 602, and the server 603 which is connected with the receiving terminal 601 and the sending terminal 602 respectively in communication;
the receiving terminal 601 is configured to execute the method for data transmission between terminals;
the sending terminal 602 is configured to execute the method for data transmission between terminals.
Meanwhile, a storage medium is also disclosed in the present application, where the storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the method for transmitting data between terminals are implemented as described above.
After the terminal in the device or the system logs in, an identifiable and analyzable identity returned by the server, such as a two-dimensional code, is obtained, and the two-dimensional code has an identity ID distributed by the server. The sending terminal obtains the ID of the receiving terminal by identifying and analyzing the ID of the receiving terminal, the sending terminal has the own ID and the ID of the receiving terminal, the sending terminal writes data into a data transmission table to be received or an equipment pairing table, the record contains the two IDs, the receiving terminal or the sending terminal establishes connection with the data transmission table to be received or the equipment pairing table on the server by using full-duplex communication capacity such as a WebSocket protocol, and once any table has record update, the server side immediately pushes corresponding data to the corresponding terminal so as to realize data transmission between the terminals. Greatly simplifying the data transmission steps and improving the transmission efficiency. It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present invention, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method for data transmission between terminals is characterized in that the method is applied to a server and comprises the following steps:
receiving login request data of a receiving terminal;
after the receiving terminal successfully logs in, sending a preset first Identity (ID) to the receiving terminal, and receiving first coding information fed back by the receiving terminal; the first encoding information comprises the first identity ID and starting data for starting a data transmission application;
generating the first identity mark according to the first coding information and sending the first identity mark to the receiving terminal;
receiving login request data of a sending terminal;
after the sending terminal successfully logs in, receiving data to be transmitted sent by the sending terminal and a first identity ID obtained by identifying and analyzing the first identity;
and sending the data to be transmitted to a receiving terminal corresponding to the first identity ID.
2. The method of claim 1, wherein after the sending terminal successfully logs in, further comprising:
sending a preset second identity ID to the sending terminal, and receiving second coding information fed back by the sending terminal; the second encoding information comprises the second identity ID and starting data for starting a data transmission application;
and generating the second identity according to the second coding information and sending the second identity to the sending terminal.
3. The method according to claim 2, wherein the receiving the data to be transmitted sent by the sending terminal comprises:
receiving the data to be transmitted uploaded by the sending terminal and storing the data to be transmitted to a cloud end;
receiving a data storage address fed back by the cloud; the data storage address feedback method comprises two modes, one mode is that a server directly returns the data storage address after the on-site real-time uploading is successful, the other mode is that a user manually selects a data file uploaded at the cloud end, and the server returns the data storage address.
4. The method of claim 3, further comprising:
constructing an equipment matching table of a preset database, and storing the first identity ID and the second identity ID into the equipment matching table;
and constructing a to-be-received data transmission table of the database, and storing the first identity ID, the second identity ID and the data storage address into the to-be-received data transmission table.
5. The method of claim 4, further comprising:
receiving a request instruction for acquiring a data record to be received, which is sent by the receiving terminal;
determining an identity ID corresponding to the receiving terminal according to the request instruction for acquiring the data record;
calling the data storage address correspondingly recorded in the data transmission table to be received according to the identity ID, and triggering downloading;
sending the data in the data storage address to the receiving terminal;
receiving a request instruction for acquiring the equipment pairing record in the equipment pairing table; the request instruction of the equipment pairing record is sent by the receiving terminal and/or the sending terminal;
determining an identity ID corresponding to the receiving terminal and/or the sending terminal according to the request instruction for obtaining the equipment pairing record;
calling a corresponding pairing record in the equipment pairing table according to the identity ID corresponding to the receiving terminal and/or the sending terminal;
and sending the pairing record to the receiving terminal and/or the sending terminal.
6. A method for data transmission between terminals, the method being applied to a receiving terminal, the method comprising:
sending login request data to a server, and receiving a first Identity (ID) distributed by the server;
sending the first identity ID and starting data for starting a data transmission application to the server;
and receiving and displaying the first identity identifier returned by the server so as to be identified and analyzed by the sending terminal and perform data transmission.
7. The method of claim 6, further comprising:
monitoring a data transmission table to be received and an equipment pairing table preset by the server in real time;
judging whether the data transmission table to be received and/or the equipment pairing table has data updating;
and if the data are updated, generating a request instruction for acquiring the data to be received and/or the equipment pairing record and sending the request instruction to the server.
8. A method for data transmission between terminals, the method being applied to a sending terminal, the method comprising:
identifying and analyzing the first identity identification to obtain a first identity ID and storing the first identity ID for use; specific ways of storing and using the first identity ID include: the data is stored locally and read locally when in use; or the data is stored in a device pairing table preset by a server and is read through a device pairing record when in use;
sending login request data to a server;
and after the login is successful, sending the data to be transmitted and the first identity ID to the server for data transmission.
9. The method of claim 8, wherein after sending the login request data to the server, further comprising:
receiving a second identity ID allocated by the server;
sending a request instruction for creating a pairing record to a device pairing table to the server; the instruction includes the first identity ID and the second identity ID.
10. A system for transmitting terminal data, comprising:
the system comprises a receiving terminal, a sending terminal and a server which is respectively in communication connection with the receiving terminal and the sending terminal;
the receiving terminal is configured to perform the method for inter-terminal data transmission according to any one of claims 6 to 7;
the transmitting terminal is configured to perform the method for inter-terminal data transmission according to any of claims 8-9;
the server is configured to perform the method for data transmission between terminals according to any of claims 1-5.
CN202011488147.1A 2020-12-16 2020-12-16 Method and system for data transmission between terminals Pending CN112492050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011488147.1A CN112492050A (en) 2020-12-16 2020-12-16 Method and system for data transmission between terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011488147.1A CN112492050A (en) 2020-12-16 2020-12-16 Method and system for data transmission between terminals

Publications (1)

Publication Number Publication Date
CN112492050A true CN112492050A (en) 2021-03-12

Family

ID=74917358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011488147.1A Pending CN112492050A (en) 2020-12-16 2020-12-16 Method and system for data transmission between terminals

Country Status (1)

Country Link
CN (1) CN112492050A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542260A (en) * 2021-07-12 2021-10-22 宏图智能物流股份有限公司 Warehouse voice transmission method based on distribution mode
CN115828220A (en) * 2022-12-30 2023-03-21 南京叁月半信息科技有限公司 Method and system for identifying identity of communication receiver

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347306A (en) * 2013-06-24 2013-10-09 腾讯科技(深圳)有限公司 Method, system and device for establishing correlation among multiple terminals
CN103647869A (en) * 2013-11-14 2014-03-19 深圳创维数字技术股份有限公司 Terminal pairing method, terminal and system
CN104486397A (en) * 2014-12-10 2015-04-01 北京奇虎科技有限公司 Method for carrying out data transmission in browser, client and mobile terminal
CN107911483A (en) * 2017-12-12 2018-04-13 阿里巴巴集团控股有限公司 A kind of information transferring method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347306A (en) * 2013-06-24 2013-10-09 腾讯科技(深圳)有限公司 Method, system and device for establishing correlation among multiple terminals
CN103647869A (en) * 2013-11-14 2014-03-19 深圳创维数字技术股份有限公司 Terminal pairing method, terminal and system
CN104486397A (en) * 2014-12-10 2015-04-01 北京奇虎科技有限公司 Method for carrying out data transmission in browser, client and mobile terminal
CN107911483A (en) * 2017-12-12 2018-04-13 阿里巴巴集团控股有限公司 A kind of information transferring method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113542260A (en) * 2021-07-12 2021-10-22 宏图智能物流股份有限公司 Warehouse voice transmission method based on distribution mode
CN115828220A (en) * 2022-12-30 2023-03-21 南京叁月半信息科技有限公司 Method and system for identifying identity of communication receiver

Similar Documents

Publication Publication Date Title
EP3640849B1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
CN109428878B (en) Vulnerability detection method, detection device and detection system
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN108429670B (en) Message sending method, message receiving method and terminal
CN112492050A (en) Method and system for data transmission between terminals
CN111224792B (en) Conference access method and device
CN109547524B (en) User behavior storage method, device, equipment and storage medium based on Internet of things
KR20130026609A (en) Apparatus and method for providing multimedia cloud service associated with social network service in multimedia cloud system
CN105450479A (en) Method and apparatus for monitoring module
CN107846609B (en) Real-time transmission method, device and system for control room data
CN106302093B (en) Communication method, system and server
CN112532712B (en) Protocol transmission method and device, storage medium, and electronic device
CN111884938B (en) Router information acquisition method and device
CN107231275B (en) Method for connection configuration of user equipment and household equipment
CN111884905A (en) Message management method and system
CN112073488A (en) Method and device for processing request
CN104065563A (en) Processing method, device and system for instant message
CN115348333A (en) Data transmission method, system and equipment based on UDP (user Datagram protocol) double-end communication interaction
CN112565458B (en) Platform remote control method and device, storage medium and electronic equipment
US20140143264A1 (en) Policy event driven remote desktop recording across a data network
CN114803750B (en) Elevator car display screen resource offline updating method and medium based on UDP and FTP
CN112714068A (en) Method, device and system for processing coded image, storage medium and electronic device
CN114765603A (en) Screen sharing method of mobile terminal, mobile terminal and storage medium
CN110474807A (en) A kind of log processing method and device
CN111193621A (en) Method for guaranteeing data communication between RTOS (real time operating System) equipment side and server side of Internet of things

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210312

RJ01 Rejection of invention patent application after publication