CN113162927B - Data transmission method, sending terminal, receiving terminal and electronic equipment - Google Patents

Data transmission method, sending terminal, receiving terminal and electronic equipment Download PDF

Info

Publication number
CN113162927B
CN113162927B CN202110419785.6A CN202110419785A CN113162927B CN 113162927 B CN113162927 B CN 113162927B CN 202110419785 A CN202110419785 A CN 202110419785A CN 113162927 B CN113162927 B CN 113162927B
Authority
CN
China
Prior art keywords
optical signal
area
authentication information
display screen
sending terminal
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
CN202110419785.6A
Other languages
Chinese (zh)
Other versions
CN113162927A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110419785.6A priority Critical patent/CN113162927B/en
Publication of CN113162927A publication Critical patent/CN113162927A/en
Application granted granted Critical
Publication of CN113162927B publication Critical patent/CN113162927B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)

Abstract

The application discloses a data transmission method, a sending terminal, a receiving terminal and electronic equipment, and belongs to the technical field of optical communication. The data transmission method at the sending terminal side comprises the following steps: the method comprises the steps that a sending terminal displays a first optical signal through a first area of a first display screen, and the sending terminal collects a second optical signal displayed by a second display screen of a receiving terminal through a camera, wherein the first optical signal carries first authentication information, and the second optical signal carries second authentication information; and under the condition that the second authentication information is matched with the first authentication information, the sending terminal displays a third optical signal through a second area of the first display screen, wherein the third optical signal carries first data.

Description

Data transmission method, sending terminal, receiving terminal and electronic equipment
Technical Field
The application belongs to the technical field of optical communication, and particularly relates to a data transmission method, a sending terminal, a receiving terminal and electronic equipment.
Background
With the development of optical communication technology, it has become possible to transmit data by optical signals. Currently, the optical transmission mechanism is generally as follows: before data transmission, handshaking communication between two devices is achieved through the on-off of a screen between a sending device and a receiving device, after handshaking is successful, the sending device transmits data to the receiving device through the on-off of the screen, the receiving device senses an optical signal emitted by the sending device through an optical Sensor (Photo Sensor), and the optical Sensor identifies the optical signal to acquire data carried in the optical signal.
In the existing optical transmission mechanism, other devices can also easily acquire data carried in an optical signal, which makes the confidentiality of optical transmission poor.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data transmission method, a sending terminal, a receiving terminal, and an electronic device, so as to solve the technical problem of poor confidentiality existing in the existing optical transmission mechanism.
In a first aspect, an embodiment of the present application provides a data transmission method, where the method includes:
the method comprises the steps that a sending terminal displays a first optical signal through a first area of a first display screen, and the sending terminal collects a second optical signal displayed by a second display screen of a receiving terminal through a camera, wherein the first optical signal carries first authentication information, and the second optical signal carries second authentication information;
and under the condition that the second authentication information is matched with the first authentication information, the sending terminal displays a third optical signal through a second area of the first display screen, wherein the third optical signal carries first data.
In a second aspect, an embodiment of the present application provides a data transmission method, where the method includes:
a receiving terminal acquires a first optical signal displayed by a first display screen of a sending terminal through a camera, wherein the first optical signal carries first authentication information;
the receiving terminal analyzes the first optical signal according to a key received in advance to obtain authentication information carried by the first optical signal;
generating second authentication information according to the authentication information carried by the first optical signal;
and the receiving terminal displays a second optical signal through a second display screen, wherein the second optical signal carries the second authentication information.
In a third aspect, an embodiment of the present application provides a sending terminal, including:
the first display module is used for displaying a first optical signal through a first area of a first display screen, wherein the first optical signal carries first authentication information;
the first acquisition module is used for acquiring a second optical signal displayed by a second display screen of the receiving terminal through the camera, and the second optical signal carries second authentication information;
and the second display module is used for displaying a third optical signal through a second area of the first display screen under the condition that the second authentication information is matched with the first authentication information, wherein the third optical signal carries first data.
In a fourth aspect, an embodiment of the present application provides a receiving terminal, including:
the first acquisition module is used for acquiring a first optical signal displayed by a first display screen of the sending terminal through a camera, wherein the first optical signal carries first authentication information;
the first analysis module is used for analyzing the first optical signal by the receiving terminal according to a pre-received secret key so as to obtain authentication information carried by the first optical signal;
the generating module is used for generating second authentication information according to the authentication information carried by the first optical signal;
and the first display module is used for displaying a second optical signal by the receiving terminal through a second display screen, wherein the second optical signal carries the second authentication information.
In a fifth aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a sixth aspect, the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the second aspect.
In a seventh aspect, this application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In an eighth aspect, the present embodiments provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the second aspect.
In a ninth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In a tenth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the second aspect.
In the embodiment of the application, in the process of data transmission by adopting an optical communication technology, the sending terminal and the receiving terminal send optical signals carrying authentication information to each other, and acquire the optical signals through respective cameras to perform authentication verification, and under the condition that the receiving terminal passes the authentication verification, the sending terminal side can send the optical signals carrying data to the receiving terminal. Because the camera has the characteristic of high pixel and the characteristic of high sensitivity to optical signals, and compared with a common optical sensor, the camera can identify more tiny and more complex optical signals, so that the authentication of the optical signals can be verified by adopting the camera, the authentication complexity can be improved, and the confidentiality of data transmission can be improved.
Drawings
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a data transmission performed by a sending terminal and a receiving terminal interactively according to an embodiment of the present application;
fig. 3 is a schematic diagram of a transmitting terminal that may correspond to multiple receiving terminals according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a sending terminal according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another data transmission method provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a receiving terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another electronic device provided in an embodiment of the present application;
fig. 9 is a schematic hardware configuration diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a hardware configuration diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below clearly with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The data transmission method, the sending terminal, the receiving terminal and the electronic device provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 shows a flowchart of a data transmission method provided in an embodiment of the present application.
As shown in fig. 1, the data transmission method includes the following steps:
step 101: a sending terminal displays a first optical signal through a first area of a first display screen, and the sending terminal collects a second optical signal displayed by a second display screen of a receiving terminal through a camera, wherein the first optical signal carries first authentication information, and the second optical signal carries second authentication information;
step 102: and under the condition that the second authentication information is matched with the first authentication information, the sending terminal displays a third optical signal through a second area of the first display screen, wherein the third optical signal carries first data.
In the embodiment of the application, in the process of data transmission by adopting an optical communication technology, the sending terminal and the receiving terminal send optical signals carrying authentication information to each other, and acquire the optical signals through respective cameras to perform authentication verification, and under the condition that the receiving terminal passes the authentication verification, the sending terminal side can send the optical signals carrying data to the receiving terminal.
In some embodiments, the data transmission process of the embodiments of the present application is as follows:
in step 101, the transmitting terminal may display a first optical signal carrying first authentication information through a first area of a first display screen. Correspondingly, the receiving terminal can acquire the first optical signal through the camera; then, the receiving terminal can analyze the first optical signal according to the key received in advance to obtain the authentication information carried by the first optical signal, and generate second authentication information according to the authentication information obtained by analysis; then, the receiving terminal can display the second optical signal carrying the second authentication information through the second display screen. Correspondingly, in step 101, the sending terminal may further collect a second optical signal through the camera, and analyze the second optical signal to obtain authentication information carried by the second optical signal; then, the sending terminal may verify the authentication information carried by the second optical signal to determine whether the second authentication information matches the first authentication information. If the transmitting terminal determines that the second authentication information matches the first authentication information, step 102 is performed. The transmitting terminal may terminate the data transmission if the transmitting terminal determines that the second authentication information does not match the first authentication information.
In step 102, the transmitting terminal may display a third optical signal carrying the first data through a second area of the first display screen. Correspondingly, the receiving terminal can acquire a third optical signal through the camera and analyze the third optical signal to obtain the first data carried in the third optical signal.
In the embodiment of the application, the camera has the characteristics of high pixel and high sensitivity to optical signals, so that compared with a common optical sensor, the camera can identify more tiny and more complex optical signals. In view of this, in the embodiment of the present application, the sending terminal and the receiving terminal perform authentication verification by sending the optical signal and collecting the optical signal through the camera, and the sending terminal may use a smaller and higher-complexity optical signal to carry authentication information with a larger information amount and higher complexity, so as to improve the confidentiality of data transmission.
Further, under the condition that the authentication verification is passed, the sending terminal sends the optical signal, and the receiving terminal collects the optical signal through the camera to perform data transmission.
The following describes a specific process of implementing data transmission by interaction between a sending terminal and a receiving terminal with reference to fig. 2.
As shown in fig. 2, the data transmission method includes the following steps:
s1: the sending terminal displays a first optical signal through a first area of a first display screen;
s2: a receiving terminal collects a first optical signal through a camera;
s3: the receiving terminal analyzes the first optical signal according to a pre-received secret key to obtain authentication information carried by the first optical signal;
s4: the receiving terminal generates second authentication information according to the authentication information carried by the first optical signal;
s5: the receiving terminal displays the second optical signal through a second display screen;
s6: the sending terminal collects a second optical signal through the camera;
s7: the sending terminal carries out authentication verification on the second optical signal;
s8: under the condition that the verification is passed, the transmitting terminal displays a third optical signal through a second area of the first display screen;
s9: and the receiving terminal collects a third optical signal through the camera.
Through the interaction process, the sending terminal and the receiving terminal send optical signals and acquire the optical signals through the camera to perform authentication verification, so that the confidentiality of data transmission is improved.
The following explains the principle related to the improvement of data transmission speed:
the imaging of the camera is usually composed of three primary colors, and the colors presented by the display screen are also usually composed of three primary colors, so the color of each pixel point of the display screen can be decomposed into three primary colors, i.e., into a matrix [ a, B, C ] of one row and three columns, wherein A, B, C is a numerical value between 0 and 255 respectively. Assuming that a pixel can represent a 24-bit (bit) long character string, the display screen has a large number of pixels, for example 2400 × 1080=2592000 pixels, so that the display screen can transmit a data stream of 59.32MB size each time. Assuming that the refresh rate of the display screen is 60 times per second, the data transfer rate can reach 3559.2M/s.
Therefore, in the embodiment of the present application, the third optical signal may be displayed in the form of multicolor light for data transmission, that is, the third optical signal may be a multicolor optical signal composed of three primary colors.
In addition, because the optical signals are collected by the camera for data transmission, on one hand, in the process of data transmission of the sending terminal, the receiving terminal can analyze the collected optical signals in real time to obtain data carried in the optical signals, so that synchronous transmission of the data is realized; on the other hand, in the process of data transmission by the sending terminal, the receiving terminal can record the optical signal through the camera first, and then analyze the optical signal according to the recorded video at the later stage, so as to obtain the data carried in the optical signal, thereby realizing asynchronous transmission of the data.
Therefore, the data transmission method and the data transmission device can improve the confidentiality of data transmission, can improve the data transmission speed, and can improve the flexibility of data transmission time and space.
In this embodiment of the application, the first area of the first display screen may be understood as being used to send an optical signal carrying authentication information, and therefore, the first area of the first display screen may be simply referred to as an authentication area. The first area of the first display screen may be a partial area of the first display screen or may be an entire area of the first display screen.
The second area of the first display screen may be understood as being used for transmitting optical signals carrying data, and thus, the second area of the first display screen may be simply referred to as a data transmission area. The second area of the first display screen may be a partial area of the first display screen, or may be an entire area of the first display screen.
In some embodiments, the first area and the second area of the first display screen are different areas, so that the camera can distinguish whether the optical signal is an optical signal carrying authentication information or an optical signal carrying data based on the display area of the optical signal.
In some embodiments, the data transmission speed may be increased by enlarging the data transmission area, or the authentication complexity may be increased by enlarging the authentication area, in view of which the first area and the second area of the first display screen may also overlap.
In some embodiments, the first area of the first display screen is a one-nth area of the first display screen near the camera, and the second area of the first display screen is an area of the first display screen other than the first area. For example, the first area of the first display screen is a tenth area of the first display screen close to the camera, and the second area of the first display screen is the remaining ninth tenth area; or the second area of the first display screen is a ninth tenth area of the first display screen close to the camera, and the first area of the first display screen is the remaining tenth area. In this way, more area of the first display screen can be used for data transmission, thereby being capable of improving the data transmission speed.
Optionally, in a case that the second authentication information is matched with the first authentication information, the sending terminal displays a third optical signal through a second area of the first display screen, including:
and under the condition that the second authentication information is matched with the first authentication information, the sending terminal displays the third optical signal through the second area of the first display screen and displays a fourth optical signal through the first area of the first display screen, wherein the fourth optical signal carries third authentication information.
In order to further improve the confidentiality of data transmission, the embodiment provides a technical scheme for synchronously performing authentication in the data transmission process.
In this embodiment, in the process of data transmission by the sending terminal, the first area and the second area of the first display screen may work simultaneously, wherein the third optical signal carrying the first data is displayed through the second area of the first display screen, and the fourth optical signal carrying the third authentication information is displayed through the first area of the first display screen. Correspondingly, the receiving terminal collects the third optical signal and the fourth optical signal simultaneously through the camera, and analyzes the third optical signal according to the fourth optical signal to obtain the first data carried in the third optical signal.
In this embodiment, the first area and the second area of the first display screen are different areas.
In the embodiment, the sending terminal not only authenticates the receiving terminal before data transmission, but also continuously authenticates the receiving terminal in the data transmission process, thereby further improving the confidentiality of data transmission.
Optionally, when the distance between the sending terminal and the receiving terminal is less than or equal to a first threshold, the first optical signal is an optical signal with a color change or an optical signal with a brightness change;
and under the condition that the distance between the sending terminal and the receiving terminal is greater than the first threshold value, the first optical signal is an optical signal with a color changing.
The optical communication technology is adopted between the sending terminal and the receiving terminal to carry out data transmission, so that the method is suitable for industrial scenes and private scenes. In an industrial scenario, the screen sizes of the sending terminal and the receiving terminal are generally large, and the distance between the sending terminal and the receiving terminal is generally long. In a private scene, the screen sizes of the sending terminal and the receiving terminal are generally small, and the distance between the sending terminal and the receiving terminal is generally short, for example, when data transmission is performed between two mobile phones by using an optical communication technology, the display screens of the two mobile phones are opposite and close to each other.
In order to better realize the authentication under different scenes, different authentication modes can be selected according to different scenes.
Specifically, when the distance between the sending terminal and the receiving terminal is less than or equal to the first threshold, because the sending terminal and the receiving terminal are closer, the interference of the external environment light on the camera is smaller, and therefore, in some embodiments, the sending terminal and the receiving terminal may perform physical encryption by using the illumination intensity, that is, the authentication may be implemented by using the light signal with the changed brightness. In other embodiments, the transmitting terminal and the receiving terminal may be encrypted using spectral colors, i.e., authentication may be accomplished by light signals that vary in color.
When distance between sending terminal and the receiving terminal is greater than first threshold value, because sending terminal is far away with receiving terminal, the interference of the external environment light that the camera received is great, the discernment degree of camera to illumination intensity reduces, and because the discernment degree of camera to spectrum colour receives the influence of distance and external environment light less, consequently, sending terminal and receiving terminal can adopt the spectrum colour to encrypt, that is to say, can realize the authentication through the light signal of colour change.
As an example, the authentication method in which the sending terminal performs physical encryption by using the illumination intensity may be: the sending terminal divides the first area of the display screen into N blocks for block flashing, and the flashing brightness of the N blocks is x1, x2, … and xN candela respectively.
As an example, the authentication method for the sending terminal to encrypt by using the spectrum color may be: the transmitting terminal divides the first area of the display screen into N pixel areas, the spectral color of each pixel area being represented by RGB values.
In the embodiment, the proper authentication mode is selected according to different scenes, so that the validity and stability of authentication can be ensured.
Optionally, in a case that a distance between the sending terminal and the receiving terminal is less than or equal to a first threshold, before the sending terminal displays the first optical signal through the first area of the first display screen, the method further includes:
the sending terminal displays a fifth optical signal through a first area of the first display screen, and the sending terminal collects a sixth optical signal displayed by the second display screen through a camera, wherein the fifth optical signal carries fourth authentication information, and the sixth optical signal carries fifth authentication information;
the transmitting terminal displays a first optical signal through a first area of a first display screen, and includes:
and under the condition that the fifth authentication information is matched with the fourth authentication information, the sending terminal displays the first optical signal through a first area of the first display screen.
In this embodiment, in consideration of a higher privacy requirement of data transmission in a private scenario, two-level authentication may be employed in the private scenario.
Specifically, in the first authentication phase, the sending terminal may display a fifth optical signal carrying the fourth authentication information through the first area of the first display screen. Correspondingly, the receiving terminal can acquire a fifth optical signal through the camera; then, the receiving terminal may analyze the fifth optical signal according to the pre-received secret key to obtain authentication information carried by the fifth optical signal, and generate fifth authentication information according to the authentication information obtained through analysis; then, the receiving terminal can display the sixth optical signal carrying the fifth authentication information through the second display screen. Correspondingly, the sending terminal can acquire a sixth optical signal through the camera and analyze the sixth optical signal to obtain authentication information carried by the sixth optical signal; then, the sending terminal may verify the authentication information carried by the sixth optical signal to determine whether the fifth authentication information matches the fourth authentication information. And if the sending terminal judges that the fifth authentication information is matched with the fourth authentication information, entering a second authentication stage. The transmitting terminal may terminate the data transmission if the transmitting terminal determines that the fifth authentication information does not match the fourth authentication information.
In the second authentication phase, the sending terminal may display the first optical signal carrying the first authentication information through the first area of the first display screen. Correspondingly, the receiving terminal can acquire the first optical signal through the camera; then, the receiving terminal can analyze the first optical signal according to the key received in advance to obtain the authentication information carried by the first optical signal, and generate second authentication information according to the authentication information obtained by analysis; then, the receiving terminal can display the second optical signal carrying the second authentication information through the second display screen. Correspondingly, the sending terminal can acquire the second optical signal through the camera and analyze the second optical signal to obtain authentication information carried by the second optical signal; then, the sending terminal may verify the authentication information carried by the second optical signal to determine whether the second authentication information matches the first authentication information. And if the sending terminal judges that the second authentication information is matched with the first authentication information, displaying a third optical signal carrying the first data through a second area of the first display screen. The transmitting terminal may terminate the data transmission if the transmitting terminal determines that the second authentication information does not match the first authentication information.
In some embodiments, the first authentication phase may be implemented by a light signal with a varying brightness, and the second authentication phase may be implemented by a light signal with a varying color, or vice versa. In addition, the first authentication phase and the second authentication phase can also adopt the same authentication mode.
In the embodiment, the sending terminal adopts two-stage authentication in a private scene, so that the privacy and the safety of data transmission can be further improved.
It should be noted that, in an industrial scenario, the sending terminal may also adopt two-level authentication, and in a private scenario, the sending terminal may also adopt multi-level authentication, which is not limited in this embodiment of the present application.
Optionally, the sending terminal displays the third optical signal through the second area of the first display screen, including:
under the condition that the distance between the sending terminal and the receiving terminal is smaller than or equal to a first threshold value, the sending terminal displays the third optical signal at a first refresh rate through every N pixel points of a second area of the first display screen, wherein N is an integer larger than or equal to 1;
and under the condition that the distance between the sending terminal and the receiving terminal is greater than the first threshold value, the sending terminal displays the third optical signal at a second refresh rate through every M pixel points in a second area of the first display screen, wherein M is an integer greater than N, and the second refresh rate is greater than or equal to the first refresh rate.
In order to more efficiently and stably realize data transmission in different scenes, an appropriate data transmission mode can be selected according to the different scenes.
Specifically, when the distance between the sending terminal and the receiving terminal is less than or equal to the first threshold, the sending terminal and the receiving terminal are closer, and the sensitivity of the camera for identifying the optical signal is higher, so that the sending terminal can perform data transmission through a smaller pixel unit to improve the data transmission speed. Smaller pixel cells may be understood as comprising fewer pixels per pixel cell.
When the distance between the sending terminal and the receiving terminal is greater than the first threshold, the sending terminal is far away from the receiving terminal, and the sensitivity of the camera for identifying the optical signal is reduced, so that the sending terminal can perform data transmission through a large pixel unit to ensure the stability of the data transmission. A larger pixel unit is understood to mean that each pixel unit comprises more pixels.
It is easily understood that in the case where the transmitting terminal displays the optical signal with the same screen refresh rate, data transmission is performed through a larger pixel unit, which may decrease the data transmission speed. On this basis, in order to appropriately increase the data transmission speed, in the case where the distance between the transmitting terminal and the receiving terminal is greater than the first threshold value, the transmitting terminal may display the optical signal with a larger screen refresh rate. Thus, in some embodiments, in an industrial scenario, the screen refresh rate at the time of data transmission by the sending terminal may be higher than in a private scenario. Of course, the sending terminal may also use a fixed screen refresh rate without distinguishing different scenes, which is not limited in the embodiment of the present application.
In addition, as shown in fig. 3, in an industrial scenario, one transmitting terminal may correspond to a plurality of receiving terminals (which may be called Slave terminals), and the plurality of receiving terminals may simultaneously receive data transmitted by the transmitting terminal. Due to the reciprocity of information transmission, one sending terminal can receive optical signals displayed by a plurality of receiving terminals in a polling or time division manner so as to realize the authentication between one sending terminal and a plurality of receiving terminals. In addition, also can be each other between a plurality of terminals send terminal and receiving terminal, and the light information that the display screen of other terminals shows can be gathered to the camera that makes certain terminal among a plurality of terminals through reasonable overall arrangement.
In summary, the embodiment of the application can not only improve the confidentiality of data transmission, but also improve the data transmission speed, and can also improve the flexibility of data transmission time and space.
It should be noted that, in the data transmission method provided in the embodiment of the present application, the execution main body may be a sending terminal, or a control module in the sending terminal for executing the data transmission method. In the embodiment of the present application, a method for a sending terminal to perform data transmission is taken as an example, and a data transmission apparatus provided in the embodiment of the present application is described.
Fig. 4 shows a schematic structural diagram of a sending terminal according to an embodiment of the present application.
As shown in fig. 4, the transmission terminal 300 includes:
the first display module 301 is configured to display a first optical signal through a first area of a first display screen, where the first optical signal carries first authentication information;
the first acquisition module 302 is configured to acquire, through a camera, a second optical signal displayed on a second display screen of the receiving terminal, where the second optical signal carries second authentication information;
a second display module 303, configured to display a third optical signal through a second area of the first display screen under the condition that the second authentication information is matched with the first authentication information, where the third optical signal carries first data.
Optionally, the second display module 303 is specifically configured to:
and under the condition that the second authentication information is matched with the first authentication information, displaying the third optical signal through the second area of the first display screen, and displaying a fourth optical signal through the first area of the first display screen, wherein the fourth optical signal carries third authentication information.
Optionally, the sending terminal 300 further includes:
a third display module, configured to display a fifth optical signal through a first area of the first display screen when a distance between the sending terminal and the receiving terminal is smaller than or equal to a first threshold, where the fifth optical signal carries fourth authentication information;
the second acquisition module is used for acquiring a sixth optical signal displayed by the second display screen through a camera, wherein the sixth optical signal carries fifth authentication information;
the first display module 301 is specifically configured to:
and under the condition that the fifth authentication information is matched with the fourth authentication information, the sending terminal displays the first optical signal through a first area of the first display screen.
Optionally, when the distance between the sending terminal and the receiving terminal is less than or equal to a first threshold, the first optical signal is an optical signal with a color change or an optical signal with a brightness change;
and under the condition that the distance between the sending terminal and the receiving terminal is greater than the first threshold value, the first optical signal is an optical signal with color change.
Optionally, the second display module 303 is specifically configured to:
under the condition that the distance between the sending terminal and the receiving terminal is smaller than or equal to a first threshold value, the sending terminal displays the third optical signal at a first refresh rate through every N pixel points of a second area of the first display screen, wherein N is an integer larger than or equal to 1;
and under the condition that the distance between the sending terminal and the receiving terminal is greater than the first threshold value, the sending terminal displays the third optical signal at a second refresh rate through every M pixel points in a second area of the first display screen, wherein M is an integer greater than N, and the second refresh rate is greater than or equal to the first refresh rate.
In the embodiment of the application, the camera is adopted to carry out authentication verification on the optical signal, so that the authentication complexity can be improved, and the confidentiality of data transmission can be improved.
The transmitting terminal in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in the terminal. The sending terminal may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The sending terminal in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The sending terminal provided in the embodiment of the present application can implement each process implemented in the method embodiments of fig. 1 to fig. 3, and is not described herein again to avoid repetition.
Fig. 5 shows a flowchart of a data transmission method provided in an embodiment of the present application.
As shown in fig. 5, the data transmission method includes the following steps:
step 401: a receiving terminal acquires a first optical signal displayed by a first display screen of a sending terminal through a camera, wherein the first optical signal carries first authentication information;
step 402: the receiving terminal analyzes the first optical signal according to a key received in advance to obtain authentication information carried by the first optical signal;
step 403: generating second authentication information according to the authentication information carried by the first optical signal;
step 404: and the receiving terminal displays a second optical signal through a second display screen, wherein the second optical signal carries the second authentication information.
Optionally, after the receiving terminal displays the second optical signal through the second display screen, the method further includes:
the receiving terminal acquires a third optical signal displayed by a first display screen of the sending terminal through a camera, wherein the third optical signal carries first data;
the receiving terminal analyzes the third optical signal to obtain the first data carried in the third optical signal.
Optionally, after the receiving terminal displays the second optical signal through the second display screen, the method further includes:
the receiving terminal collects a third optical signal displayed in a first area of a first display screen of the sending terminal through a camera and collects a fourth optical signal displayed in a second area of the first display screen, wherein the third optical signal carries first data, and the fourth optical signal carries third authentication information;
and the receiving terminal analyzes the third optical signal according to the fourth optical signal to obtain the first data carried in the third optical signal.
Optionally, when the first optical signal is an optical signal with a brightness change, the second optical signal is an optical signal with a brightness change;
in a case where the first optical signal is a color-changing optical signal, the second optical signal is a color-changing optical signal.
In the embodiment of the application, the camera is adopted to carry out authentication verification on the optical signal, so that the authentication complexity can be improved, and the confidentiality of data transmission can be improved.
The relevant descriptions of the embodiments of the present application can refer to the relevant descriptions of the foregoing embodiments, and can achieve the same technical effects, which are not repeated herein to avoid redundancy.
It should be noted that, in the data transmission method provided in the embodiment of the present application, the execution main body may be a receiving terminal, or a control module in the receiving terminal for executing the data transmission method. In the embodiment of the present application, a method for a receiving terminal to perform data transmission is taken as an example, and a data transmission apparatus provided in the embodiment of the present application is described.
Fig. 6 shows a schematic structural diagram of a receiving terminal according to an embodiment of the present application.
As shown in fig. 6, receiving terminal 500 includes:
a first collecting module 501, configured to collect, by using a camera, a first optical signal displayed on a first display screen of a sending terminal, where the first optical signal carries first authentication information;
a first analyzing module 502, configured to analyze, by the receiving terminal, the first optical signal according to a pre-received secret key to obtain authentication information carried by the first optical signal;
a generating module 503, configured to generate second authentication information according to the authentication information carried by the first optical signal;
a first display module 504, configured to display, by the receiving terminal, a second optical signal through a second display screen, where the second optical signal carries the second authentication information.
Optionally, the receiving terminal 500 further includes:
the second acquisition module is used for acquiring a third optical signal displayed by a first display screen of the sending terminal through a camera, and the third optical signal carries first data;
and the second analysis module is used for analyzing the third optical signal to obtain the first data carried in the third optical signal.
Optionally, the receiving terminal 500 further includes:
the third acquisition module is used for acquiring a third optical signal displayed in a first area of a first display screen of the sending terminal through a camera and acquiring a fourth optical signal displayed in a second area of the first display screen, wherein the third optical signal carries first data and the fourth optical signal carries third authentication information;
and the third analyzing module is configured to analyze the third optical signal according to the fourth optical signal to obtain the first data carried in the third optical signal.
Optionally, when the first optical signal is an optical signal with a brightness change, the second optical signal is an optical signal with a brightness change;
in a case where the first optical signal is a color-changing optical signal, the second optical signal is a color-changing optical signal.
In the embodiment of the application, the camera is adopted to carry out authentication verification on the optical signal, so that the authentication complexity can be improved, and the confidentiality of data transmission can be improved.
The receiving terminal in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in the terminal. The receiving terminal may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The receiving terminal in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The receiving terminal provided in this embodiment of the present application can implement each process implemented in the method embodiment of fig. 5, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction implements each process of the method embodiment in fig. 1 when executed by the processor 601, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Optionally, as shown in fig. 8, an electronic device 700 is further provided in the embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and capable of running on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the method embodiment in fig. 5, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 9 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 9 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
Wherein, the display unit 806 is configured to:
displaying a first optical signal through a first area of a first display screen, wherein the first optical signal carries first authentication information;
a processor 810 configured to:
acquiring a second optical signal displayed by a second display screen of the receiving terminal through a camera, wherein the second optical signal carries second authentication information;
a display unit 806, further configured to:
and displaying a third optical signal through a second area of the first display screen under the condition that the second authentication information is matched with the first authentication information, wherein the third optical signal carries first data.
In the embodiment of the application, the camera is adopted to carry out authentication verification on the optical signal, so that the authentication complexity can be improved, and the confidentiality of data transmission can be improved.
Optionally, the display unit 806 is further configured to:
and under the condition that the second authentication information is matched with the first authentication information, displaying the third optical signal through the second area of the first display screen, and displaying a fourth optical signal through the first area of the first display screen, wherein the fourth optical signal carries third authentication information.
Optionally, in a case that the distance between the sending terminal and the receiving terminal is less than or equal to the first threshold, the display unit 806 is further configured to:
displaying a fifth optical signal through a first area of the first display screen, wherein the fifth optical signal carries fourth authentication information;
a processor 810, further configured to:
collecting a sixth optical signal displayed by the second display screen through a camera, wherein the sixth optical signal carries fifth authentication information;
a display unit 806 further configured to:
and under the condition that the fifth authentication information is matched with the fourth authentication information, the sending terminal displays the first optical signal through a first area of the first display screen.
Optionally, when the distance between the sending terminal and the receiving terminal is less than or equal to a first threshold, the first optical signal is an optical signal with a color change or an optical signal with a brightness change;
and under the condition that the distance between the sending terminal and the receiving terminal is greater than the first threshold value, the first optical signal is an optical signal with a color changing.
Optionally, the display unit 806 is further configured to:
displaying the third optical signal at a first refresh rate through every N pixel points of a second area of the first display screen under the condition that the distance between the sending terminal and the receiving terminal is smaller than or equal to a first threshold, wherein N is an integer larger than or equal to 1;
and under the condition that the distance between the sending terminal and the receiving terminal is greater than the first threshold, displaying the third optical signal at a second refresh rate through every M pixel points in a second area of the first display screen, wherein M is an integer greater than N, and the second refresh rate is greater than or equal to the first refresh rate.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into processor 810.
Fig. 10 is a schematic hardware structure diagram of another electronic device for implementing the embodiment of the present application.
The electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 910.
Those skilled in the art will appreciate that the electronic device 900 may further comprise a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 910 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
Wherein, the processor 910 is configured to:
acquiring a first optical signal displayed by a first display screen of a sending terminal through a camera, wherein the first optical signal carries first authentication information;
analyzing the first optical signal according to a pre-received secret key to obtain authentication information carried by the first optical signal;
generating second authentication information according to the authentication information carried by the first optical signal;
a display unit 906 for:
and displaying a second optical signal, wherein the second optical signal carries the second authentication information.
In the embodiment of the application, the camera is adopted to carry out authentication verification on the optical signal, so that the authentication complexity can be improved, and the confidentiality of data transmission can be improved.
Optionally, the processor 910 is further configured to:
collecting a third optical signal displayed by a first display screen of the sending terminal through a camera, wherein the third optical signal carries first data;
and analyzing the third optical signal to obtain the first data carried in the third optical signal.
Optionally, the processor 910 is further configured to:
acquiring a third optical signal displayed in a first area of a first display screen of the sending terminal through a camera, and acquiring a fourth optical signal displayed in a second area of the first display screen, wherein the third optical signal carries first data, and the fourth optical signal carries third authentication information;
and analyzing the third optical signal according to the fourth optical signal to obtain the first data carried in the third optical signal.
Optionally, when the first optical signal is an optical signal with a brightness change, the second optical signal is an optical signal with a brightness change;
in a case where the first optical signal is a color-changing optical signal, the second optical signal is a color-changing optical signal.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics processor 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capture mode or an image capture mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 909 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 910 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the data transmission method embodiment shown in fig. 1, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the data transmission method shown in fig. 5, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the data transmission method embodiment shown in fig. 1, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the data transmission method embodiment shown in fig. 5, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. A method of data transmission, comprising:
the method comprises the steps that a sending terminal displays a first optical signal through a first area of a first display screen, and the sending terminal collects a second optical signal displayed by a second display screen of a receiving terminal through a camera, wherein the first optical signal carries first authentication information, and the second optical signal carries second authentication information;
under the condition that the second authentication information is matched with the first authentication information, the sending terminal displays a third optical signal through a second area of the first display screen, wherein the third optical signal carries first data;
the first area is an authentication area, the second area is a data transmission area, and the first area and the second area are different areas;
wherein, in the case that the second authentication information matches the first authentication information, the sending terminal displays a third optical signal through a second area of the first display screen, including:
and under the condition that the second authentication information is matched with the first authentication information, the sending terminal displays the third optical signal through the second area of the first display screen and displays a fourth optical signal through the first area of the first display screen, wherein the fourth optical signal carries third authentication information.
2. The method according to claim 1, wherein in a case where a distance between the transmitting terminal and the receiving terminal is less than or equal to a first threshold, before the transmitting terminal displays the first optical signal through the first area of the first display screen, the method further comprises:
the sending terminal displays a fifth optical signal through a first area of the first display screen, and the sending terminal collects a sixth optical signal displayed by the second display screen through a camera, wherein the fifth optical signal carries fourth authentication information, and the sixth optical signal carries fifth authentication information;
the transmitting terminal displays a first optical signal through a first area of a first display screen, and includes:
and under the condition that the fifth authentication information is matched with the fourth authentication information, the sending terminal displays the first optical signal through a first area of the first display screen.
3. The method of claim 1, wherein the transmitting terminal displaying a third optical signal through a second area of the first display screen comprises:
under the condition that the distance between the sending terminal and the receiving terminal is smaller than or equal to a first threshold value, the sending terminal displays the third optical signal at a first refresh rate through every N pixel points of a second area of the first display screen, wherein N is an integer larger than or equal to 1;
and under the condition that the distance between the sending terminal and the receiving terminal is greater than the first threshold, the sending terminal displays the third optical signal at a second refresh rate through every M pixel points in a second area of the first display screen, wherein M is an integer greater than N, and the second refresh rate is greater than or equal to the first refresh rate.
4. A method of data transmission, comprising:
a receiving terminal collects a first optical signal displayed in a first area of a first display screen of a sending terminal through a camera, wherein the first optical signal carries first authentication information;
the receiving terminal analyzes the first optical signal according to a key received in advance to obtain authentication information carried by the first optical signal;
generating second authentication information according to the authentication information carried by the first optical signal;
the receiving terminal displays a second optical signal through a second display screen, wherein the second optical signal carries the second authentication information;
the receiving terminal collects a third optical signal displayed in a second area of the first display screen through a camera;
the first area is an authentication area, the second area is a data transmission area, and the first area and the second area are different areas;
wherein, receiving terminal passes through the camera and gathers the third light signal that the second region of first display screen shows, include:
the receiving terminal collects a fourth optical signal displayed in a first area of a first display screen of the sending terminal through a camera, and collects a third optical signal displayed in a second area of the first display screen, wherein the third optical signal carries first data, and the fourth optical signal carries third authentication information;
and the receiving terminal analyzes the third optical signal according to the fourth optical signal to obtain the first data carried in the third optical signal.
5. A transmitting terminal, comprising:
the first display module is used for displaying a first optical signal through a first area of a first display screen, wherein the first optical signal carries first authentication information;
the first acquisition module is used for acquiring a second optical signal displayed by a second display screen of the receiving terminal through the camera, and the second optical signal carries second authentication information;
the second display module is used for displaying a third optical signal through a second area of the first display screen under the condition that the second authentication information is matched with the first authentication information, wherein the third optical signal carries first data;
the first area is an authentication area, the second area is a data transmission area, and the first area and the second area are different areas;
the second display module is specifically configured to:
and under the condition that the second authentication information is matched with the first authentication information, displaying the third optical signal through the second area of the first display screen, and displaying a fourth optical signal through the first area of the first display screen, wherein the fourth optical signal carries third authentication information.
6. The transmitting terminal of claim 5, further comprising:
a third display module, configured to display a fifth optical signal through a first area of the first display screen when a distance between the sending terminal and the receiving terminal is smaller than or equal to a first threshold, where the fifth optical signal carries fourth authentication information;
the second acquisition module is used for acquiring a sixth optical signal displayed by the second display screen through a camera, wherein the sixth optical signal carries fifth authentication information;
the first display module is specifically configured to:
and under the condition that the fifth authentication information is matched with the fourth authentication information, the sending terminal displays the first optical signal through a first area of the first display screen.
7. The sending terminal of claim 5, wherein the second display module is specifically configured to:
under the condition that the distance between the sending terminal and the receiving terminal is smaller than or equal to a first threshold value, the sending terminal displays the third optical signal at a first refresh rate through every N pixel points of a second area of the first display screen, wherein N is an integer larger than or equal to 1;
and under the condition that the distance between the sending terminal and the receiving terminal is greater than the first threshold, the sending terminal displays the third optical signal at a second refresh rate through every M pixel points in a second area of the first display screen, wherein M is an integer greater than N, and the second refresh rate is greater than or equal to the first refresh rate.
8. A receiving terminal, comprising:
the first acquisition module is used for acquiring a first optical signal displayed in a first area of a first display screen of the sending terminal through a camera, wherein the first optical signal carries first authentication information;
the first analysis module is used for analyzing the first optical signal by the receiving terminal according to a pre-received secret key so as to obtain authentication information carried by the first optical signal;
the generating module is used for generating second authentication information according to the authentication information carried by the first optical signal;
the first display module is used for displaying a second optical signal by the receiving terminal through a second display screen, wherein the second optical signal carries the second authentication information;
the third acquisition module is used for acquiring a third optical signal displayed in a second area of the first display screen through the camera;
the first area is an authentication area, the second area is a data transmission area, and the first area and the second area are different areas;
the third acquisition module is specifically configured to acquire, by using a camera, a fourth optical signal displayed in a first area of a first display screen of the sending terminal, and acquire a third optical signal displayed in a second area of the first display screen, where the third optical signal carries first data and the fourth optical signal carries third authentication information;
the receiving terminal further includes:
and the third analyzing module is configured to analyze the third optical signal according to the fourth optical signal to obtain the first data carried in the third optical signal.
9. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the data transmission method according to any one of claims 1 to 5.
CN202110419785.6A 2021-04-19 2021-04-19 Data transmission method, sending terminal, receiving terminal and electronic equipment Active CN113162927B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110419785.6A CN113162927B (en) 2021-04-19 2021-04-19 Data transmission method, sending terminal, receiving terminal and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110419785.6A CN113162927B (en) 2021-04-19 2021-04-19 Data transmission method, sending terminal, receiving terminal and electronic equipment

Publications (2)

Publication Number Publication Date
CN113162927A CN113162927A (en) 2021-07-23
CN113162927B true CN113162927B (en) 2023-04-18

Family

ID=76868677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110419785.6A Active CN113162927B (en) 2021-04-19 2021-04-19 Data transmission method, sending terminal, receiving terminal and electronic equipment

Country Status (1)

Country Link
CN (1) CN113162927B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111884722A (en) * 2020-07-06 2020-11-03 Oppo(重庆)智能科技有限公司 Information transmission method, terminal and storage medium
CN112351425A (en) * 2020-10-15 2021-02-09 维沃移动通信有限公司 Access authentication method and device and electronic equipment

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793261A (en) * 2013-11-15 2014-05-14 深圳光启创新技术有限公司 Methods and devices for sending and receiving instruction information
CN103795471B (en) * 2013-11-16 2015-07-01 深圳光启创新技术有限公司 Optical or acoustic communication method and system
CN104243026B (en) * 2014-07-10 2016-05-04 腾讯科技(深圳)有限公司 Method for sending information, message receiving method, device and system
CN106790974A (en) * 2016-11-20 2017-05-31 滁州职业技术学院 The method and mobile terminal of a kind of display screen power saving
CN106506856A (en) * 2016-11-30 2017-03-15 努比亚技术有限公司 A kind of screen-refresh control method and terminal
CN106788731B (en) * 2017-03-17 2019-03-01 维沃移动通信有限公司 Data transmission method and mobile terminal
CN107147444A (en) * 2017-04-18 2017-09-08 东莞信大融合创新研究院 A kind of data transmission method based on visible ray, device and system
CN109104243B (en) * 2018-08-01 2020-11-03 北方工业大学 Pixel communication method, information sending terminal and information receiving terminal
CN110444003A (en) * 2019-07-25 2019-11-12 Oppo(重庆)智能科技有限公司 Control method, device, storage medium and electronic equipment
CN110429981B (en) * 2019-08-14 2021-12-03 暨南大学 Hidden information transmission system and method based on LED display and visible light communication
CN111552533B (en) * 2020-04-24 2023-09-19 北京小米移动软件有限公司 Distance detection method and device and intelligent equipment
CN111816139B (en) * 2020-06-17 2022-05-17 维沃移动通信有限公司 Screen refresh rate switching method and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111884722A (en) * 2020-07-06 2020-11-03 Oppo(重庆)智能科技有限公司 Information transmission method, terminal and storage medium
CN112351425A (en) * 2020-10-15 2021-02-09 维沃移动通信有限公司 Access authentication method and device and electronic equipment

Also Published As

Publication number Publication date
CN113162927A (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN101365123B (en) Information display device and information display method
CN107256555A (en) A kind of image processing method, device and storage medium
US20230005194A1 (en) Image processing method and apparatus, readable medium and electronic device
CN111327947B (en) Screen capture management method and device and mobile terminal
CN113014801B (en) Video recording method, video recording device, electronic equipment and medium
CN104641631B (en) By the color enhancement of gamut extension
CN112929494B (en) Information processing method, information processing apparatus, information processing medium, and electronic device
CN113162927B (en) Data transmission method, sending terminal, receiving terminal and electronic equipment
CN113721876A (en) Screen projection processing method and related equipment
CN110190947B (en) Information encryption and decryption method, terminal and computer readable storage medium
KR20210085433A (en) Service system that recommends personal color
CN111581622A (en) Information processing method and device and electronic equipment
CN106844264A (en) A kind of mobile terminal
CN112148171B (en) Interface switching method and device and electronic equipment
CN113031838B (en) Screen recording method and device and electronic equipment
CN113709375A (en) Image display method and device and electronic equipment
CN113840035A (en) Information sharing method and device, electronic equipment and readable storage medium
CN102932634A (en) Network video monitoring system, encryption/decryption method and device of video signal thereof
CN115701017A (en) Image processing method and device
CN109918882B (en) Image encryption method and mobile terminal
CN113010918A (en) Information processing method and device
CN111813741A (en) File sharing method and electronic equipment
CN113691528B (en) Two-dimensional code processing method and device and electronic equipment
CN115134473A (en) Image encryption method and device
CN202856913U (en) Color image encryption system based on chaos and displacement

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