CN108512600B - Face-to-face data transmission method and device - Google Patents

Face-to-face data transmission method and device Download PDF

Info

Publication number
CN108512600B
CN108512600B CN201810324569.1A CN201810324569A CN108512600B CN 108512600 B CN108512600 B CN 108512600B CN 201810324569 A CN201810324569 A CN 201810324569A CN 108512600 B CN108512600 B CN 108512600B
Authority
CN
China
Prior art keywords
terminal
data
face
transmission
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810324569.1A
Other languages
Chinese (zh)
Other versions
CN108512600A (en
Inventor
白勃
杜欣
苏博
李静磊
陈南
权进国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xidian University
Original Assignee
Xidian University
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 Xidian University filed Critical Xidian University
Priority to CN201810324569.1A priority Critical patent/CN108512600B/en
Publication of CN108512600A publication Critical patent/CN108512600A/en
Application granted granted Critical
Publication of CN108512600B publication Critical patent/CN108512600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication

Abstract

The invention provides a face-to-face data transmission method and device. The invention relates to a face-to-face data transmission method, which comprises the following steps: establishing a data transmission link between a first terminal and at least one second terminal; transmitting a data request identifier to each second terminal through the first terminal; according to the working mode of the first terminal, coding conversion processing is carried out on the target data to obtain coded data of a preset display mode; when the data response identification and the terminal identification transmitted by any second terminal are received, the first terminal transmits the coded data to the second terminal corresponding to the terminal identification, so that the coded data are shot by the second terminal and are converted and decoded to obtain target data. The invention realizes high-speed and rapid face-to-face data transmission among users by means of a visible light communication technology.

Description

Face-to-face data transmission method and device
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting face-to-face data.
Background
As the demand for data sharing among users gradually increases, it is urgent to provide sufficient resources to terminals for high-speed and real-time data transmission.
The existing face-to-face data transmission method generally adopts a mode that a plurality of users jointly access a wireless network (Wi-Fi)/a wired network or adopts a mode that one user serves as a Wi-Fi hotspot and other users access to realize the face-to-face data transmission among the users. In addition, no matter which mode is adopted, the existing face-to-face data transmission method can compress transmission data such as photos, videos and documents, and the like, so that the transmission data rate is improved.
However, the existing face-to-face data transmission method cannot avoid that the transmitted data is distorted more or less, and is easily influenced by the channel quality of Wi-Fi/wired network to cause the transmission data rate to be reduced.
Disclosure of Invention
The invention provides a face-to-face data transmission method and a face-to-face data transmission device, which are used for solving the problems that the existing transmission data has distortion phenomenon and the data transmission rate is easily influenced by a network.
In a first aspect, the present invention provides a face-to-face data transmission method, including:
establishing a data transmission link between a first terminal and at least one second terminal;
transmitting a data request identifier to each of the second terminals through the first terminal;
according to the working mode of the first terminal, carrying out coding conversion processing on target data to obtain coded data of a preset display mode;
and when receiving a data response identifier and a terminal identifier transmitted by any one second terminal, transmitting the coded data to a second terminal corresponding to the terminal identifier through the first terminal, so as to shoot the coded data through the second terminal, and performing conversion decoding processing on the coded data to obtain the target data.
Optionally, the transmitting, by the first terminal, the encoded data to a second terminal corresponding to the terminal identifier includes:
when the difference value between the current time and the initial time is greater than a preset time length, judging whether a successful transmission identifier transmitted by the second terminal is received, wherein the initial time is the time when the first terminal starts to transmit the coded data to the second terminal;
if so, continuing to transmit the untransmitted coded data to the second terminal through the first terminal;
if not, transmitting the coded data transmitted within the preset time length to the second terminal again through the first terminal; and if the successful transmission identifier is not received within the preset time length, adjusting the transmission parameters of the first terminal and/or the second terminal until the successful transmission identifier is received.
Optionally, when the operating mode of the first terminal is a display screen mode, the preset display mode of the encoded data is a video stream display mode.
Optionally, the transmitting, by the first terminal, the encoded data to a second terminal corresponding to the terminal identifier includes:
hiding the coded data in the normal display data according to an image hiding algorithm;
and displaying the coded data hidden in the normal display data to the second terminal through the first terminal.
Optionally, when the operation mode of the first terminal is a flash mode, the preset display mode of the coded data is a bright and dark display mode.
Optionally, before the transmitting, by the first terminal, a data request identifier to each of the second terminals, the method includes:
and setting transmission parameters of the first terminal and/or the second terminal.
In a second aspect, the present invention provides a face-to-face data transmission apparatus comprising:
the establishing module is used for establishing a data transmission link between the first terminal and at least one second terminal;
a transmission module, configured to transmit a data request identifier to each of the second terminals through the first terminal;
the processing module is used for carrying out coding conversion processing on the target data according to the working mode of the first terminal to obtain coded data of a preset display mode;
the transmission module is further configured to transmit the encoded data to a second terminal corresponding to the terminal identifier through the first terminal when receiving a data response identifier and a terminal identifier transmitted by any one of the second terminals, so that the encoded data is photographed by the second terminal, and the encoded data is converted and decoded to obtain the target data.
Optionally, the transmission module includes:
a determining unit, configured to determine whether a successful transmission identifier transmitted by the second terminal is received when a difference between a current time and an initial time is greater than a preset time, where the initial time is a time when the first terminal starts to transmit the encoded data to the second terminal;
a transmission unit, configured to continue to transmit, by the first terminal, un-transmitted encoded data to the second terminal when receiving a successful transmission identifier transmitted by the second terminal;
the transmission unit is further configured to transmit, by the first terminal, the encoded data transmitted within the preset duration to the second terminal again when the successful transmission identifier transmitted by the second terminal is not received;
and the adjusting unit is used for adjusting the transmission parameters of the first terminal and/or the second terminal until the successful transmission identifier is received when the successful transmission identifier is not received within the preset time length.
Optionally, when the operating mode of the first terminal is a display screen mode, the preset display mode of the encoded data is a video stream display mode.
Optionally, the transmission module further includes:
a hiding unit for hiding the encoded data in the normal display data according to an image hiding algorithm;
and the transmission unit is used for displaying the coded data hidden in the normal display data to the second terminal through the first terminal.
Optionally, when the operation mode of the first terminal is a flash mode, the preset display mode of the coded data is a bright and dark display mode.
Optionally, the apparatus further comprises:
a setting module 64, configured to set transmission parameters of the first terminal and/or the second terminal.
In a third aspect, the present invention provides a face-to-face data transmission apparatus comprising: a memory and a processor;
the memory is to store program instructions;
the processor is configured to invoke program instructions stored in the memory to implement the face-to-face data transfer method of the first aspect.
In a fourth aspect, the invention is a readable storage medium comprising: a readable storage medium and a computer program for implementing the face-to-face data transmission method according to the first aspect.
The method and the device for transmitting face-to-face data provided by the invention have the advantages that through establishing a data transmission link between a first terminal and a second terminal, a data request identifier is transmitted to each second terminal through the first terminal, coding conversion processing is carried out on target data according to the working mode of the first terminal to obtain coded data in a preset display mode, when a data response identifier and a terminal identifier transmitted by any second terminal are received, the coded data can be transmitted to the second terminal corresponding to the terminal identifier through the first terminal, further, the coded data can be obtained through shooting processing of the second terminal, and then the target data is obtained through conversion decoding processing on the coded data. According to the invention, through the visible light communication technology, the data transmission link between the terminals is established, so that the first terminal can transmit data to any second terminal, the high-speed real-time face-to-face data transmission process is realized, the data transmission rate and efficiency are ensured, the quality and quantity of the transmitted data are ensured, the problems of data distortion phenomenon and network influence on the data transmission rate in the prior art are solved, and the method is low in cost and easy to realize.
Drawings
In order to clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are 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 schematic view of a scenario of a face-to-face data transmission method according to the present invention;
FIG. 2 is a flow chart of a face-to-face data transfer method provided by the present invention;
FIG. 3 is a flow chart of a face-to-face data transfer method provided by the present invention;
FIG. 4 is a flow chart of a face-to-face data transfer method provided by the present invention;
FIG. 5 is a flow chart of a face-to-face data transfer method provided by the present invention;
FIG. 6 is a schematic structural diagram of a face-to-face data transmission device according to the present invention;
FIG. 7 is a schematic structural view of a face-to-face data transfer device according to the present invention;
fig. 8 is a schematic diagram of a hardware structure of the face-to-face data transmission device according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present invention without any creative efforts shall fall within the protection scope of the embodiments of the present invention.
The existing face-to-face data transmission method has limited data transmission rate, and the channel quality and channel resources of a Wi-Fi/wired network provided for a terminal cannot be guaranteed, so that the data transmission rate is easily reduced, and the requirement of sharing data among users cannot be met in real time.
Fig. 1 is a schematic view of a scenario of a face-to-face data transmission method according to the present invention. Further, in the Visible Light Communication (VLC) technology, Visible Light with a wavelength of 380nm to 780nm may be used as a carrier signal, and parameters such as intensity, phase, frequency, hue, polarization and the like of the Visible Light signal are modulated to realize high-speed transmission of wireless data. Therefore, as shown in fig. 1, the method for transmitting face-to-face data in this embodiment can provide a data transmission link for a terminal through a visible light communication technology, so as to implement a high-speed and real-time face-to-face data transmission process, improve a data transmission rate, ensure quality and quantity of transmission data, and solve the problems of a data distortion phenomenon and a data transmission rate susceptible to network influence in the prior art.
Terminal shown in fig. 1: the wireless terminal can be a wireless terminal or a wired terminal, and the wireless terminal can be a device with a wireless transceiving function, can be deployed on land, and comprises indoor or outdoor, handheld or vehicle-mounted; can also be deployed on the water surface (such as a ship and the like); and may also be deployed in the air (e.g., airplanes, balloons, satellites, etc.). The terminal may be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal, an Augmented Reality (AR) terminal, a wireless terminal in industrial control (industrial control), a wireless terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like, which are not limited herein.
In this embodiment, the first terminal may transmit data to at least one second terminal, and the number of the second terminals is not limited in this embodiment. For convenience of description, the first terminal and the second terminal in this embodiment are shown as a mobile phone with a front side and a back side opposite to each other, and the first terminal transmits data to a second terminal as an example, where the first terminal and the second terminal may be opposite in front side, opposite in back side, or opposite in front side and back side, and this embodiment is not limited to the above-mentioned placing manner.
The following describes in detail a specific technical solution of the face-to-face data transmission method provided by the present invention with reference to the scenario shown in fig. 1.
Fig. 2 is a flowchart of a face-to-face data transmission method provided in the present invention, and as shown in fig. 2, the face-to-face data transmission method of the present embodiment may include:
s101, establishing a data transmission link between the first terminal and at least one second terminal.
Specifically, the first terminal and the second terminal may be used as transmitting antennas for visible light signals, and may employ modules such as a flash lamp or a display screen, which is not limited in this embodiment. The first terminal and the second terminal can also be used as receiving antennas for visible light signals, and devices such as a camera or a light sensor can be adopted, which is not limited in this embodiment.
Further, on the premise that the first terminal and each second terminal have the functions of sending and receiving data, the embodiment may establish a data transmission link between the first terminal and the second terminal, where the data transmission link can connect the first terminal and the second terminal, so that the first terminal can transmit target data to the second terminal through the data transmission link.
And S102, transmitting the data request identification to each second terminal through the first terminal.
Specifically, before the first terminal transmits the target data to the second terminals, the first terminal needs to transmit a data request identifier to each second terminal, where the data request identifier is used to indicate that the first terminal is about to transmit the target data to the first terminal. The embodiment does not limit the specific form of the data request identifier.
And S103, according to the working mode of the first terminal, carrying out coding conversion processing on the target data to obtain coded data of a preset display mode.
Specifically, since the target data may be data in the form of a photograph, a video, a document, or the like, and the target data includes various forms, before the first terminal transmits the target data to any second terminal, in order to enable the target data in different forms to be transmitted in the form of a visible light signal, the target data may be subjected to encoding conversion processing according to an operating mode of the first terminal, so that the target data can be changed into encoded data in a unified display mode, where the unified display mode is a preset display mode, and a specific preset display mode of the encoded data is not limited to a single mode and can be adjusted and set according to the operating mode of the first terminal.
And S104, when the data response identifier and the terminal identifier transmitted by any second terminal are received, transmitting the coded data to the second terminal corresponding to the terminal identifier through the first terminal, so that the coded data are shot through the second terminal, and performing conversion decoding processing on the coded data to obtain target data.
Specifically, when any second terminal receives the data request identifier and is ready to receive the target data, the second terminal may transmit a data response identifier, where the data response identifier is used to indicate that the second terminal is ready to receive the target data. In order to distinguish different second terminals, each second terminal can also transmit a terminal identifier of the second terminal, so that any second terminal can be uniquely determined through the terminal identifier. In this embodiment, the specific forms of the data response identifier and the terminal identifier are not limited.
Further, when the data response identifier and the terminal identifier transmitted by any second terminal are received, the first terminal can transmit the encoded data to the second terminal through a visible light communication technology, so that the encoded data can be shot by the second terminal to obtain the encoded data. Because the coding setting data is obtained by coding and converting the target data, the coding data can be converted and decoded to obtain the target data, thereby completing the process of data transmission among users, improving the data transmission rate and ensuring the quality and quantity of data transmission.
In the method for transmitting face-to-face data provided by this embodiment, by establishing a data transmission link between a first terminal and a second terminal, a data request identifier is transmitted to each second terminal through the first terminal, and coding conversion processing is performed on target data according to a working mode of the first terminal to obtain coded data in a preset display mode. In the embodiment, the data transmission link between the terminals is established through the visible light communication technology, so that the first terminal can transmit data to any second terminal, a high-speed real-time face-to-face data transmission process is realized, the data transmission rate and efficiency are ensured, the quality and quantity of the transmitted data are guaranteed, the problems that the data distortion phenomenon and the data transmission rate are easily influenced by a network in the prior art are solved, and the method is low in cost and easy to realize.
On the basis of the above embodiments, the technical solution of the embodiment of the face-to-face data transmission method shown in fig. 2 is described in detail with reference to fig. 3 to 8.
First, in order to enable the first terminal to detect whether the encoded data is transmitted to the second terminal in real time, a detailed description is given to a specific manner of transmitting the encoded data to the second terminal corresponding to the terminal identifier through the first terminal in S104 in the embodiment of fig. 2 with reference to fig. 3.
Fig. 3 is a flowchart of a face-to-face data transmission method provided in the present invention, and as shown in fig. 3, the face-to-face data transmission method of the present embodiment may include:
s201, when the difference value between the current time and the initial time is larger than a preset time length, judging whether a successful transmission identifier transmitted by a second terminal is received, wherein the initial time is the time when the first terminal starts to transmit the coded data to the second terminal. If yes, executing S202; if not, go to S203.
Specifically, when the first terminal starts to transmit the encoded data to any one of the second terminals, the time is recorded as an initial time. And then, continuously recording the difference value between the current time and the initial time, and judging whether a successful transmission identifier transmitted by any second terminal is received or not when the difference value between the current time and the initial time is greater than a preset time length, wherein the successful transmission identifier is used for indicating that the second terminal successfully receives the coded data transmitted by the first terminal. The preset duration may be set according to the actual time for transmitting one frame of encoded data through the first terminal, specifically, the preset duration may be the duration for transmitting N frames of encoded data, or may be directly set according to an empirical value, and the specific duration of the preset duration is not limited in this embodiment.
Further, when receiving the successful transmission identifier transmitted by the second terminal, executing S202; when the successful transmission identifier transmitted by the second terminal is not received, S203 is executed.
S202, the first terminal continuously transmits the untransmitted coded data to the second terminal.
Specifically, when the successful transmission identifier transmitted by the second terminal is received, the non-transmitted coded data is continuously transmitted to the second terminal through the first terminal.
S203, transmitting the coded data transmitted within the preset time length to the second terminal again through the first terminal; and if the successful transmission identifier is not received within the preset time length, adjusting the transmission parameters of the first terminal and/or the second terminal until the successful transmission identifier is received.
Specifically, when the successful transmission identifier transmitted by the second terminal is not received, the first terminal transmits the encoded data transmitted within the preset time duration to the second terminal again, that is, the first terminal retransmits the encoded data that is not successfully transmitted within the preset time duration, so that the data transmission rate is improved, and the integrity and the effectiveness of the transmitted data are ensured.
Further, after the first terminal retransmits the encoded data that has not been successfully transmitted within the preset duration to the second terminal again, if the successful transmission identifier transmitted by the second terminal is received, S202 may be executed to continue transmitting the encoded data that has not been transmitted to the second terminal through the first terminal. If the successful transmission identifier is not received yet, it indicates that the encoded data cannot be transmitted to the second terminal through the first terminal or the encoded data transmitted by the first terminal cannot be acquired through the second terminal. Furthermore, the transmission parameters of the first terminal and/or the second terminal may be adjusted until a successful transmission identifier transmitted by the second terminal can be received. Therefore, in the process of transmitting data face to face by a user, the data can be transmitted quickly and in real time through the first terminal and received accurately and quickly through the second terminal by adjusting the transmission parameters of the terminals, and the data transmission rate and efficiency are improved.
Second, since the first terminal may include various types of transmission antennas, the operation mode of the first terminal includes various types. Next, with continuing to refer to fig. 2 or fig. 3, a detailed description will be given of a specific implementation manner of the first terminal in two different operation modes.
On one hand, when the working mode of the first terminal is the display screen mode, the preset display mode of the coded data is the video stream display mode.
Specifically, when a data response identifier and a terminal identifier transmitted by any second terminal are received, since the working mode of the first terminal is the display screen mode, when encoding conversion processing is performed on target data, it can be determined that the preset display mode of encoded data is the video stream display mode, and the obtained encoded data is a continuous video. Furthermore, by using the visible light communication technology, the first terminal can display the coded data to the second terminal, so that the second terminal can shoot the coded data.
Further, since the operation mode of the first terminal is the display screen mode, and in order to maintain the normal display of the first terminal, a specific implementation manner of transmitting the encoded data to the second terminal corresponding to the terminal identifier through the first terminal in the embodiment S104 shown in fig. 2 is described in detail with reference to fig. 4.
Fig. 4 is a flowchart of a face-to-face data transmission method provided in the present invention, and as shown in fig. 4, the face-to-face data transmission method of the present embodiment may include:
s301, establishing a data transmission link between the first terminal and at least one second terminal.
S302, transmitting the data request identification to each second terminal through the first terminal.
And S303, performing coding conversion processing on the target data according to the fact that the working mode of the first terminal is the display screen mode to obtain coded data of which the preset display mode is the video stream display mode.
S304, when the data response identification and the terminal identification transmitted by any second terminal are received, the coded data are hidden in the normal display data according to the image hiding algorithm.
And S305, displaying the coded data hidden in the normal display data to the second terminal through the first terminal, shooting the coded data through the second terminal, and performing conversion decoding processing on the coded data to obtain target data.
S301, S302, and S303 are similar to the implementation manners of S101, S102, and S103 in the embodiment of fig. 2, and are not described herein again.
Specifically, the encoded data can be hidden in the normal display data according to the image hiding algorithm and then displayed by the first terminal, so that the encoded data can be obtained through shooting by the second terminal, the target data can be obtained through conversion and decoding, and the display mode of the encoded data does not affect the display of the normal display data in the first terminal in the data transmission process.
On the other hand, when the operation mode of the first terminal is the flash mode, the preset display mode of the coded data is a bright and dark display mode.
Specifically, when a data response identifier and a terminal identifier transmitted by any second terminal are received, since the working mode of the first terminal is the flash lamp mode, when encoding conversion processing is performed on target data, it can be determined that the preset display mode of encoded data is a bright and dark display mode, and the obtained encoded data is flash lamp continuous on and off data. Furthermore, by using the visible light communication technology, the first terminal can transmit the coded data to the second terminal, so that the second terminal can shoot the coded data.
Finally, in order to enable the first terminal to transmit the encoded data to the second terminal at a high speed in real time, it is necessary to set the transmission parameters of the first terminal and the second terminal according to actual conditions before transmitting the encoded data, so that the first terminal and each second terminal can cooperate with each other, and therefore, on the basis of the above-mentioned embodiments, the technical solution of the embodiment of the face-to-face data transmission method shown in fig. 2 is described in detail with reference to fig. 5.
Fig. 5 is a flowchart of a face-to-face data transmission method provided by the present invention, and as shown in fig. 5, the face-to-face data transmission method of the present embodiment may include:
s401, establishing a data transmission link between the first terminal and at least one second terminal.
S402, setting transmission parameters of the first terminal and/or the second terminal.
And S403, transmitting the data request identification to each second terminal through the first terminal.
And S404, according to the working mode of the first terminal, carrying out coding conversion processing on the target data to obtain coded data of a preset display mode.
S405, when the data response identification and the terminal identification transmitted by any second terminal are received, the first terminal transmits the coded data to the second terminal corresponding to the terminal identification, so that the second terminal shoots the coded data, and the coded data is converted and decoded to obtain target data.
S401, S403, S404, and S405 are similar to the implementation manners of S101, S102, S103, and S104 in the embodiment of fig. 2, and are not repeated here
Specifically, after a data transmission link between a first terminal and a second terminal is established, a transmission parameter of the first terminal and/or the second terminal may be set, where the transmission parameter in this embodiment may be a data sending rate or a data receiving rate, or a focal length of the first terminal and/or the second terminal, and the specific size of the transmission parameter is not limited in this embodiment, it is only necessary that encoded data can be transmitted to the second terminal corresponding to a terminal identifier through the first terminal, and the encoded data can be shot through the second terminal, and the encoded data can be converted and decoded to obtain target data.
Furthermore, in the process of face-to-face data transmission between users, the transmission parameters of the first terminal and/or the second terminal are set, so that the second terminal can rapidly and clearly shoot the coded data to obtain accurate coded data. Furthermore, because the coded data shot by the second terminal is clear, the target data obtained by converting and decoding the coded data is more accurate, so that the transmission data rate of the user part is improved, and the accuracy of data transmission is ensured.
Fig. 6 is a schematic structural view of the face-to-face data transmission device provided in the present invention, and as shown in fig. 6, the face-to-face data transmission device 60 of the present embodiment includes:
an establishing module 61, configured to establish a data transmission link between a first terminal and at least one second terminal;
a transmission module 62, configured to transmit a data request identifier to each of the second terminals through the first terminal;
the processing module 63 is configured to perform coding conversion processing on the target data according to the working mode of the first terminal to obtain coded data in a preset display mode;
the transmission module 62 is further configured to transmit the encoded data to a second terminal corresponding to the terminal identifier through the first terminal when receiving the data response identifier and the terminal identifier transmitted by any one of the second terminals, so that the encoded data is photographed by the second terminal, and the encoded data is converted and decoded to obtain the target data.
Optionally, the transmission module 62 includes:
a determining unit 621, configured to determine whether a successful transmission identifier transmitted by the second terminal is received when a difference between a current time and an initial time is greater than a preset time, where the initial time is a time when the first terminal starts to transmit the encoded data to the second terminal;
a transmitting unit 622, configured to, when receiving a successful transmission identifier transmitted by the second terminal, continue to transmit, by the first terminal, encoded data that is not transmitted to the second terminal;
the transmitting unit 622 is further configured to transmit, by the first terminal, the encoded data transmitted within the preset duration to the second terminal again when the successful transmission identifier transmitted by the second terminal is not received;
an adjusting unit 623, configured to adjust the transmission parameter of the first terminal and/or the second terminal until the successful transmission identifier is received when the successful transmission identifier is still not received within the preset time duration.
Optionally, when the operating mode of the first terminal is a display screen mode, the preset display mode of the encoded data is a video stream display mode.
Optionally, the transmission module 62 further includes:
a hiding unit 624, configured to hide the encoded data in the normal display data according to an image hiding algorithm;
the transmission unit 622 is configured to display, by the first terminal, the encoded data hidden in the normal display data to the second terminal.
Optionally, when the operation mode of the first terminal is a flash mode, the preset display mode of the coded data is a bright and dark display mode.
Fig. 7 is a schematic structural diagram of a face-to-face data transmission device provided in the present invention, and as shown in fig. 7, the face-to-face data transmission device 60 of the present embodiment further includes, on the basis of the device structure shown in fig. 6:
a setting module 64, configured to set transmission parameters of the first terminal and/or the second terminal.
The face-to-face data transmission device provided in this embodiment can be used to implement the face-to-face data transmission method, and its implementation and technical effects are similar, and this embodiment is not described herein again.
In the present invention, the function modules of the surface-to-surface data transmission device may be divided according to the above method, for example, each function module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that the division of the modules in the embodiments of the present invention is schematic, and is only a logical function division, and there may be another division manner in actual implementation.
Fig. 8 is a schematic diagram of a hardware structure of the face-to-face data transmission device according to the present invention. As shown in fig. 8, the face-to-face data transmission device 80 includes: a memory 81 and a processor 82;
a memory 81 for storing a computer program;
and a processor 82 for executing the computer program stored in the memory to implement the robot calibration method in the above embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 81 may be separate or integrated with the processor 82.
When the memory 81 is a device independent of the processor 82, the face-to-face data transmission apparatus 80 may further include:
a bus 83 for connecting the memory 81 and the processor 82.
The face-to-face data transmission device provided in this embodiment can be used to implement the face-to-face data transmission method, and its implementation and technical effects are similar, and this embodiment is not described herein again.
The present invention also provides a computer-readable storage medium including a computer program for implementing the face-to-face data transmission method as in the above embodiments.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the modules is only one logical division, and other divisions may be realized in practice, for example, a plurality of modules may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or modules, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit. The unit formed by the modules can be realized in a hardware form, and can also be realized in a form of hardware and a software functional unit.
The integrated module implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present application.
It should be understood that the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present invention may be embodied directly in a hardware processor, or in a combination of the hardware and software modules within the processor.
The memory may comprise a high-speed RAM memory, and may further comprise a non-volatile storage NVM, such as at least one disk memory, and may also be a usb disk, a removable hard disk, a read-only memory, a magnetic or optical disk, etc.
The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, the buses in the figures of the present application are not limited to only one bus or one type of bus.
The computer-readable storage medium may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A face-to-face data transmission method, comprising:
establishing a data transmission link between a first terminal and at least one second terminal, and setting transmission parameters of the first terminal and/or the second terminal;
transmitting a data request identifier to each of the second terminals through the first terminal;
according to the working mode of the first terminal, coding conversion processing is carried out on target data to obtain coded data of a preset display mode, the preset display mode of the coded data comprises a non-single mode, the preset display mode is adjusted and set according to the working mode of the first terminal, the working mode is a working state of the first terminal at the moment when the first terminal receives the transmission data request identification, and when the working mode of the first terminal is a mode with a display screen and a flash lamp, the preset display mode of the coded data is that the coded data are coded and converted through the cooperation of a video stream display mode and a brightness display mode;
when a data response identifier and a terminal identifier transmitted by any one second terminal are received, transmitting the coded data to a second terminal corresponding to the terminal identifier through the first terminal, so that the coded data are shot through the second terminal, and performing conversion decoding processing on the coded data to obtain the target data;
in the process of transmitting the coded data, the transmission parameters of the first terminal and/or the second terminal are set, so that the second terminal can rapidly and clearly shoot the coded data to obtain the accurate coded data.
2. The method of claim 1, wherein the transmitting, by the first terminal, the encoded data to a second terminal corresponding to the terminal identity comprises:
when the difference value between the current time and the initial time is greater than a preset time length, judging whether a successful transmission identifier transmitted by the second terminal is received, wherein the initial time is the time when the first terminal starts to transmit the coded data to the second terminal;
if so, continuing to transmit the untransmitted coded data to the second terminal through the first terminal;
if not, transmitting the coded data transmitted within the preset time length to the second terminal again through the first terminal; and if the successful transmission identifier is not received within the preset time length, adjusting the transmission parameters of the first terminal and/or the second terminal until the successful transmission identifier is received.
3. The method according to claim 1 or 2, wherein said transmitting, by the first terminal, the encoded data to a second terminal corresponding to the terminal identity comprises:
hiding the coded data in normal display data according to an image hiding algorithm;
and displaying the coded data hidden in the normal display data to the second terminal through the first terminal.
4. A face-to-face data transfer device, comprising:
the establishing module is used for establishing a data transmission link between the first terminal and at least one second terminal;
a setting module, configured to set a transmission parameter of the first terminal and/or the second terminal;
a transmission module, configured to transmit a data request identifier to each of the second terminals through the first terminal;
the processing module is used for performing coding conversion processing on target data according to a working mode of the first terminal to obtain coded data of a preset display mode, wherein the specific preset display mode of the coded data comprises a non-single mode, the preset display mode is adjusted and set according to the working mode of the first terminal, the working mode is a working state of the first terminal at the moment when the first terminal receives the transmission data request identifier, and when the working mode of the first terminal is a mode with a display screen and a flash lamp, the preset display mode of the coded data is to perform coding conversion on the coded data through the cooperation of a video stream display mode and a bright display mode;
the transmission module is further configured to transmit the encoded data to a second terminal corresponding to the terminal identifier through the first terminal when receiving a data response identifier and a terminal identifier transmitted by any one of the second terminals, so that the encoded data is photographed by the second terminal, and the encoded data is converted and decoded to obtain the target data;
in the process of transmitting the encoded data, the setting module is further configured to set transmission parameters of the first terminal and/or the second terminal, so that the second terminal can rapidly and clearly shoot the encoded data to obtain the accurate encoded data.
5. The apparatus of claim 4, wherein the transmission module comprises:
a determining unit, configured to determine whether a successful transmission identifier transmitted by the second terminal is received when a difference between a current time and an initial time is greater than a preset time, where the initial time is a time when the first terminal starts to transmit the encoded data to the second terminal;
a transmission unit, configured to continue to transmit, by the first terminal, un-transmitted encoded data to the second terminal when receiving a successful transmission identifier transmitted by the second terminal;
the transmission unit is further configured to transmit, by the first terminal, the encoded data transmitted within the preset duration to the second terminal again when the successful transmission identifier transmitted by the second terminal is not received;
and the adjusting unit is used for adjusting the transmission parameters of the first terminal and/or the second terminal until the successful transmission identifier is received when the successful transmission identifier is not received within the preset time length.
6. A face-to-face data transfer device, comprising: a memory and a processor;
the memory is to store program instructions;
the processor is configured to invoke program instructions stored in the memory to implement the face-to-face data transfer method of any of claims 1-3.
7. A computer-readable storage medium, comprising: a readable storage medium and a computer program for implementing the face-to-face data transmission method of any one of claims 1 to 3.
CN201810324569.1A 2018-04-12 2018-04-12 Face-to-face data transmission method and device Active CN108512600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810324569.1A CN108512600B (en) 2018-04-12 2018-04-12 Face-to-face data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810324569.1A CN108512600B (en) 2018-04-12 2018-04-12 Face-to-face data transmission method and device

Publications (2)

Publication Number Publication Date
CN108512600A CN108512600A (en) 2018-09-07
CN108512600B true CN108512600B (en) 2021-06-29

Family

ID=63381772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810324569.1A Active CN108512600B (en) 2018-04-12 2018-04-12 Face-to-face data transmission method and device

Country Status (1)

Country Link
CN (1) CN108512600B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
BR102019011429A2 (en) * 2019-06-03 2019-09-10 Exatron Ind Eletronica Ltda device and method of communication between portable flash apparatus and light-emitting electronic equipment
CN110266384B (en) * 2019-06-28 2021-02-02 Oppo广东移动通信有限公司 Local area network communication control method and related product
CN110380781B (en) * 2019-07-18 2021-07-16 Oppo广东移动通信有限公司 Signal enhancement method and system, and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023566A (en) * 2011-09-22 2013-04-03 深圳光启高等理工研究院 Advertising board information transmission method and system
CN104734779A (en) * 2013-12-20 2015-06-24 中兴通讯股份有限公司 Simple-data processing method and device
CN106059667A (en) * 2016-08-09 2016-10-26 浪潮电子信息产业股份有限公司 Visible light-based communication method and display equipment thereof
CN107204806A (en) * 2017-04-26 2017-09-26 珠海市魅族科技有限公司 A kind of information interacting method and device
CN107295344A (en) * 2017-05-12 2017-10-24 杨铮 The method and device of embedded graphic code in a kind of video
CN107370538A (en) * 2017-07-20 2017-11-21 西安电子科技大学 Radio data transmission method, camera and system
CN107579775A (en) * 2017-08-24 2018-01-12 上海与德科技有限公司 A kind of data transmission method, device, mobile terminal and storage medium
CN107623545A (en) * 2016-07-15 2018-01-23 中国人民解放军信息工程大学 Document transmission method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023566A (en) * 2011-09-22 2013-04-03 深圳光启高等理工研究院 Advertising board information transmission method and system
CN104734779A (en) * 2013-12-20 2015-06-24 中兴通讯股份有限公司 Simple-data processing method and device
CN107623545A (en) * 2016-07-15 2018-01-23 中国人民解放军信息工程大学 Document transmission method and device
CN106059667A (en) * 2016-08-09 2016-10-26 浪潮电子信息产业股份有限公司 Visible light-based communication method and display equipment thereof
CN107204806A (en) * 2017-04-26 2017-09-26 珠海市魅族科技有限公司 A kind of information interacting method and device
CN107295344A (en) * 2017-05-12 2017-10-24 杨铮 The method and device of embedded graphic code in a kind of video
CN107370538A (en) * 2017-07-20 2017-11-21 西安电子科技大学 Radio data transmission method, camera and system
CN107579775A (en) * 2017-08-24 2018-01-12 上海与德科技有限公司 A kind of data transmission method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN108512600A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
US10616480B2 (en) Method, system, device for video data transmission and photographing apparatus
US11595635B2 (en) Communication methods and systems, electronic devices, servers, and readable storage media
CN108512600B (en) Face-to-face data transmission method and device
US20200404154A1 (en) Image processing method, device, and system, and storage medium
WO2019214506A1 (en) Communication methods and systems, electronic devices, and readable storage media
WO2015144084A1 (en) Video synchronous playback method, apparatus, and system
CN108810277B (en) Photographing preview method and device
CN107704798B (en) Image blurring method and device, computer readable storage medium and computer device
US10237318B2 (en) Electronic device and method for encoding image data thereof
US10062405B2 (en) Electronic device and method for operating the same
CN110865782B (en) Data transmission method, device and equipment
US20200259880A1 (en) Data processing method and apparatus
US20200007794A1 (en) Image transmission method, apparatus, and device
WO2018058575A1 (en) Processing method and system for flight image data, and ground end device
CN105827957A (en) Image processing system and method
KR20180104641A (en) Apparatus and method for generating, streaming, and rendering high dynamic range images
CN110832539A (en) Method for adjusting image transmission resolution, image shooting device and machine-readable storage medium
US11393078B2 (en) Electronic device and method for correcting image on basis of image transmission state
CN106717000A (en) An image signal processing method and device
CN112911383A (en) Multipath screen projection method, device and system under local area network
CN115883962A (en) Camera control method, system, electronic equipment and storage medium
CN109547699A (en) A kind of method and device taken pictures
WO2023066054A1 (en) Image processing method, cloud server, vr terminal and storage medium
CN205901968U (en) Unmanned aerial vehicle image transmission system
CN108874343B (en) Preview window sharing 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
GR01 Patent grant
GR01 Patent grant