[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2022012153A1 - Data transmission method and device, and storage medium - Google Patents

Data transmission method and device, and storage medium Download PDF

Info

Publication number
WO2022012153A1
WO2022012153A1 PCT/CN2021/094684 CN2021094684W WO2022012153A1 WO 2022012153 A1 WO2022012153 A1 WO 2022012153A1 CN 2021094684 W CN2021094684 W CN 2021094684W WO 2022012153 A1 WO2022012153 A1 WO 2022012153A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
image
video stream
target
original images
Prior art date
Application number
PCT/CN2021/094684
Other languages
French (fr)
Chinese (zh)
Inventor
刘国树
Original Assignee
RealMe重庆移动通信有限公司
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 RealMe重庆移动通信有限公司 filed Critical RealMe重庆移动通信有限公司
Publication of WO2022012153A1 publication Critical patent/WO2022012153A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4405Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video stream decryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Definitions

  • Embodiments of the present invention relate to the technical field of data transmission, and in particular, to a data transmission method, device, and storage medium.
  • Embodiments of the present invention provide a data transmission method, device, and storage medium, so as to solve the problem in the prior art that the transmission of a large amount of data cannot be realized.
  • a data transmission method including:
  • the first device collects the picture of each frame of image in the video stream played on the screen of the second device, and obtains M original images, the video stream is generated by encoding the first data, and the video stream includes M frames of images, and the video stream
  • Each frame of image in includes N image display areas, and each image display area indicates a data unit in the first data, wherein M and N are integers greater than or equal to 2;
  • the first device decodes the M original images to obtain first data.
  • a data transmission method including:
  • the second device obtains the first data to be transmitted, and encodes the first data to generate a video stream;
  • the second device plays the video stream on the screen, the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates that the first data a data unit, so that the first device collects the picture of each frame of the image in the video stream played on the screen of the second device, obtains M original images, and decodes the M original images, to obtain the first data, wherein M and N are integers greater than or equal to 2.
  • a first device including:
  • the receiving module is used to collect the picture of each frame of image in the video stream played on the screen of the second device, and obtain M original images, the video stream is generated by encoding the first data, and the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data;
  • a processing module configured to decode the M original images to obtain the first data.
  • a second device comprising:
  • a processing module configured to obtain the first data to be transmitted, and encode the first data to generate a video stream
  • a playback module configured to play the video stream on the screen, the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates the first A data unit in the data, so that the first device collects the picture of each frame of the image in the video stream played on the screen of the second device, obtains M original images, and performs the processing on the M original images. decoding to obtain the first data.
  • a first device comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the following: The steps of the data transmission method described in the first aspect.
  • a second device comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the following: The steps of the data transmission method described in the second aspect.
  • a computer-readable storage medium comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the data transmission method described in the first aspect are implemented, Alternatively, the steps of the data transmission method described in the second aspect are implemented.
  • the first device collects images of each frame of images in the video stream played on the screen of the second device, and obtains M original images, the video stream is generated by encoding the first data, and the video stream is Including M frames of images, each frame of image in the video stream includes N image display areas, each image display area indicates a data unit in the first data, wherein, M and N are integers greater than or equal to 2; the first device Decode the M original images to obtain the first data.
  • each frame of image in the video stream on the second device can indicate a data unit through the image display area
  • the first device can capture the picture of each frame of image in the video stream on the second device through the camera, to obtain a large amount of information carried by the video stream, so that a large amount of data can be transmitted between the first device and the second device.
  • FIG. 1 is a schematic diagram 1 of an architecture for implementing data transmission according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a lossy encoding and lossless encoding provided by an embodiment of the present invention
  • FIG. 3 is a schematic diagram 2 of an architecture for implementing data transmission according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram 1 of a data transmission method provided by an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of dividing a mobile phone screen into multiple display areas according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram 2 of a data transmission method provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram 3 of a data transmission method provided by an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of a first device according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a second device according to an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of hardware of a mobile phone according to an embodiment of the present invention.
  • first and second and the like in the description and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of the objects.
  • first device and the second device, etc. are used to distinguish different devices, not to describe a specific order of the devices.
  • FIG. 1 is a schematic diagram of the architecture implemented by a data transmission method. After the image is captured, encoded, compressed and encrypted, the data transmission device can transmit it through the Internet, etc., and the data receiving device is decompressed and decoded. , After the decryption process, the effective information contained in the image can be extracted.
  • a 1024*768 24-bit color image without encoding and compression will have a size of 2.25MB, but after encoding and compression, it will only have Dozens of KB in size, encoding compression can greatly reduce the size of the image.
  • Commonly used encoding methods include lossless numbering (which can completely restore the original image after decompression without any loss of information) and lossy encoding (which is irreversible, the decoded image cannot completely restore the original image, and there will be some information. lost).
  • the image encoding formats include PNG format and JPEG format.
  • the PNG format is a lossless encoding method
  • the JPEG format is a lossy encoding format.
  • the encoding process of the image is a compression process of the image.
  • the algorithm will remove a large amount of redundant information on the image and only retain the indispensable and effective information.
  • the algorithm will integrate multiple pixel points with similar pixel values into the same pixel value for storage, which would have required space for storing multiple pixel values. After encoding and compression, only one pixel value needs to be stored, which greatly saves storage space.
  • the four pixel points with the same pixel value indicated by 21 and the four pixel points with the same pixel value indicated by 22 are finally integrated into 23 This is a pixel; while the lossless encoding algorithm will only integrate multiple pixels with the same pixel value into one value for storage to achieve the purpose of compression.
  • the lossless encoded image will occupy a larger space than the lossy encoded image, that is,
  • the four pixel points indicated by 21 shown in FIG. 2 are finally integrated into one pixel point 24
  • the four pixel points indicated by 22 are finally integrated into one pixel point 25 .
  • the amount of transmitted data can be increased based on the above-mentioned image compression technology, the increase in the amount of transmitted data is very limited, and some image information may be lost.
  • the video stream may include M frames of images, wherein each frame of image may indicate the first data to be transmitted through the image display area.
  • a data unit is displayed on the screen, so that the first device can capture each frame of image in the video stream on the second device through the camera to obtain a large amount of data carried by the video stream, so that the first device and the second device can be used.
  • a large amount of data is transmitted between the two devices.
  • the data transmission method provided in the embodiment of the present invention may be implemented through data transmission between two devices (the first device and the second device in the embodiment of the present invention), wherein the first device may serve as a data sending end, and the second device
  • the device may serve as a data receiving end, or the first device may serve as a data receiving end, and the second device may serve as a data sending end.
  • the device in this embodiment of the present invention may be an intelligent peripheral device, a mobile terminal device, or a non-mobile terminal device.
  • the mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA) etc.
  • the non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in this embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an architecture for implementing data transmission provided by an embodiment of the present invention.
  • two independent devices are involved, one device is a smart peripheral that can capture images, play video streams, and receive and play audio, and the other device is a smart phone, and the smart phone can be installed on the smart peripheral.
  • an application can be installed on the smartphone. The application can encrypt the audio, picture, video, text file and other data through special encoding and then continuously display it on the screen of the mobile phone in the form of a video stream. The encryption key is passed through the audio module.
  • the smart peripheral uses the camera it carries to capture the picture of each frame of the video stream presented on the smartphone screen to obtain the original image, and uses the audio module (that is, the audio receiver). or microphone) to receive the audio key, and then process and decode and decrypt the collected original image in turn in combination with the audio key to obtain the data transmitted by the smartphone.
  • the audio module that is, the audio receiver). or microphone
  • the smart peripheral can play the specially encrypted video stream on its screen, and at the same time use the speaker to play the audio key, and the smart phone uses the camera it carries to collect the smart peripheral.
  • the two parties can effectively transmit data to each other, and the two parties use Bluetooth, Wi-Fi technology, etc. to achieve handshake or command mutual transmission, which is specifically implemented by the Bluetooth/WIFI module in the device in Figure 3).
  • the smart peripheral can also be connected to other terminals (such as the peripheral terminal shown in Figure 3) through wired cables or wireless WIFI, and the smart peripheral can send audio data to the audio terminal and video data to the projector. , the lighting control data is sent to the lighting control terminal, etc.
  • the first device and the second device may be two devices within a certain distance range, and the distance and positional relationship between the two needs to be able to satisfy the requirements that the second device can collect on the first device through the camera.
  • the video stream is set as the criterion, which is not limited in this embodiment of the present invention.
  • an embodiment of the present invention provides a data transmission method, and the method may include:
  • the second device acquires the first data to be transmitted, and encodes the first data to generate a video stream.
  • the data type of the first data includes at least one of an image data type, an audio data type, a video data type, and a text data type.
  • the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data, so that the first device can capture the screen of the second device
  • the picture of each frame of the image in the video stream played on the above is obtained, and M original images are obtained, and the M original images are decoded to obtain the first data, wherein M and N are integers greater than or equal to 2.
  • each image display area above indicates a data unit in the first data through a displayed color.
  • the two-dimensional code is a binary code, which can use black and white to indicate data.
  • the two-dimensional code is filled with black and white colors in different display areas to carry data.
  • a more Multiple colors are used to fill each frame of image, and each color indicates different data information carried, so that a large amount of information can be carried through the combination of multiple colors, so that hundreds of frames of data can be transmitted per second, and even thousands of data can be transmitted. frame data.
  • all color classification divisions can be encoded into quaternary, octal or other base codes. Assuming that the quaternary system is used as an example, the quaternary code has 00, 01, 10 and 11, then it can be specified that black represents 00, red represents 01, green represents 10, and yellow represents 11. If you need to encode into other systems, you can Divide the colors according to your needs.
  • each image display area described above may also indicate a data unit in the first data through a shape, or indicate a data unit in the first data according to other features of each image display area.
  • a shape may also indicate a data unit in the first data through a shape, or indicate a data unit in the first data according to other features of each image display area.
  • the second device can be a mobile phone.
  • the screen can be divided into a plurality of small squares, and each small square is a display area.
  • a color is displayed in each small square to carry data, wherein each small square can display different colors according to different requirements of the transmitted data.
  • the screen of the mobile phone may also have other ways of dividing the display area, and FIG. 5 is only an exemplary illustration .
  • the screen of the mobile phone can also be divided into display areas with multiple rows and one column, and the screen of the mobile phone can be divided into display areas with multiple columns and one row.
  • the first device collects images of each frame of images in the video stream played on the screen of the second device, and obtains M original images.
  • the first device may collect images of each frame of images in the video stream played on the screen of the second device through a camera to obtain M original images.
  • the first device may use a camera of a high-speed camera to capture images of each frame of the video stream played on the screen of the second device, so that a faster data transmission speed can be achieved.
  • the first device decodes the M original images to obtain first data.
  • the first device collects images of each frame of images in the video stream played on the screen of the second device to obtain M original images
  • the video stream is generated by encoding the first data
  • the video stream includes M frames of images
  • each frame of image in the video stream includes N image display areas
  • each image display area indicates a data unit in the first data, wherein M and N are integers greater than or equal to 2; the first device pair
  • the M original images are decoded to obtain the first data.
  • the video stream in this embodiment of the present invention may be encrypted.
  • the foregoing encryption process may refer to setting some or all of the data units in the first data into other data units through a pre-agreed encryption rule.
  • the data unit "00" is an encrypted data unit
  • the data unit may be "01" or other data units before encryption.
  • a data transmission method including:
  • the second device acquires the first data to be transmitted, and encodes the first data to generate a video stream.
  • the data type of the first data includes: at least one of an image data type, an audio data type, a video data type, and a text data type.
  • the first device collects pictures of each frame of images in the video stream played on the screen of the second device, and obtains M original images.
  • the first device acquires a key associated with the video stream from the second device.
  • the second device transmits the key associated with the video stream, and correspondingly, the first device obtains the key associated with the video stream from the second device.
  • the target frame image in the video stream includes a key, and the target frame image includes one or more frames of images; the first device obtains the key associated with the video stream from the second device. It may be: the first device decodes the first target image in the M original images to obtain the key, wherein the first target image is an image obtained by collecting a picture of the target frame image in the video stream.
  • the actually carried data information may be obtained after calculation for the data information indicated in the pictures of the multi-frame images.
  • the first device can calculate the data information actually carried by the video stream through the frame difference method (data information in the previous frame or multiple frames minus the data information in the next frame or subsequent multiple frames), or other algorithms, In this way, it is necessary to continuously extract multiple frames of pictures for decryption to obtain the actually transmitted data.
  • This method has better encryption effect and higher security.
  • the key can be carried in the video stream, so that the key and the actually transmitted data are transmitted through the video stream, so that the transmission device only needs to use a device for playing the video stream and a device for collecting the video stream.
  • the device that is, the transmitting end device needs to have a display function module, and the receiving end device needs to have an image acquisition module) can complete the transmission, without the cooperation of other devices, the transmission method is more concise, and the requirements for the device hardware are lower.
  • the second possible implementation manner is: the first device collects the audio signal played by the second device through the audio playback device, analyzes the audio signal, and obtains the key.
  • the key may be an audio signal whose frequency is modulated, and the frequency data of the audio signal is used to indicate the content of the key.
  • parsing the audio signal to obtain the key includes: obtaining the frequency data of the audio signal, determining the content of the key indicated by the frequency data of the audio signal, and decrypting the original data according to the content of the key to obtain the first data.
  • the key can be carried in the audio signal, so that the sender of the key can output the key through the speaker, and the receiver of the key can receive the key through the microphone, so that the data is transmitted through the video stream.
  • Transmission key transmission is carried out by means of audio signals, so that different data are transmitted in two transmission channels, which can improve the reliability of transmission.
  • the third possible implementation manner is: the second device can establish wireless communication through Bluetooth technology or WIFI technology, and then the second device sends the key to the terminal device.
  • the first device decodes the M original images according to the color displayed in each of the M original images, and obtains the original data corresponding to the M original images.
  • the first device can decrypt the second target image according to the key to obtain the first data, and the second target image is the M original images except the first target image. image.
  • the first device decrypts the original data according to the encryption key to obtain the first data.
  • the video stream is encrypted, so that the process of data transmission is more secure and reliable, thereby ensuring the security of data transmission on the basis of transmitting a large amount of data.
  • the first data includes first target data obtained after decoding each of the M original images, the first target data includes an image sequence number, and the image sequence number is used to indicate that the image corresponds to the first target data.
  • it may further include: if the image sequence numbers included in the first data are not consecutive, the first device sends the missing target sequence number to the second device, so that the second device re-outputs the playback sequence in the video stream according to the target sequence number.
  • the image corresponding to the target serial number correspondingly, the second device receives the target sequence number sent by the first device, and the second device resends images in the video stream whose playback order corresponds to the target sequence number according to the target sequence number.
  • the first data received by the first device can include the first target data obtained by decoding each original image, and the first target data includes the image serial number, there is a leakage of collection in practical applications.
  • the second device can replay the image corresponding to the image serial number by feeding back these missing image serial numbers to the second device, so that the first device can capture again, There is no need to retransmit the entire video stream, thereby improving the efficiency of data retransmission when data is missing.
  • the first device detects a target terminal device that is communicatively connected to the first device.
  • the first device may detect all devices that are communicatively connected to the first device, and the above-mentioned target terminal device may be one or more terminal devices that are communicatively connected to the first device.
  • the target terminal device can support image data, audio and text data, and video data; if the target terminal device is a speaker device, it can support audio data.
  • the first data includes target data of the same type as the data supported by the target terminal device, send the target data to the target terminal device.
  • the image data can be sent to the display device, and the audio data can be sent to the speaker device.
  • the first device may distribute data to the terminal device associated with the first device according to the data type, and only after determining the data type that the terminal device can support, send data of the data type supported by the terminal device to the terminal device, In order to avoid wasting data transmission resources when the type of data to be sent is not supported by the terminal device.
  • the above 609 may specifically include the following steps:
  • the first device determines whether the device identifier associated with the target data is the same as the device identifier of the target terminal device.
  • the certain type of data there may be multiple terminal devices that support a certain type of data. At this time, it can be detected whether the certain type of data is associated with a device ID. If there is no associated device ID, send the data to the multiple terminal devices. Send the data of the data type it supports; if the device ID is associated, then further determine whether the associated device ID is the same as the device ID of the target terminal device, and in the same case, the data of a certain type (ie the target data ) to the target terminal device.
  • the first device sends the target data to the target terminal device.
  • the receiving end device during data distribution can be further specified according to the device identifier associated with the target data, and the device identifier associated with the target data can be further specified. Only when the device identification of the target terminal device is the same, the target data is sent to the target terminal device, which can improve the accuracy of data distribution.
  • the following describes a process of transmitting data between a sender and a receiver using the data transmission method provided by the embodiment of the present invention with reference to FIG. 7 .
  • the handshake command can be transmitted through Bluetooth or WIFI technology to establish a communication connection.
  • the communication connection is successfully established, it means that the sender and the receiver have successfully shaken hands.
  • the user may be guided to establish a connection with the peer device using WIFI or Bluetooth, and continue to perform the above 702 after a period of time.
  • the transmission instruction agrees on the sender and the receiver.
  • the instructions involved in this implementation manner may be instructions transmitted through Bluetooth or WIFI technology.
  • the receiver turns on the camera and the microphone.
  • the receiver informs the sender that the preparation is completed through an instruction.
  • Notifying the sender that the data is ready through the instruction can facilitate the sender to provide data in a timely manner, so as to prevent the data provided too early and cannot be received, or the data provided too late, which affects the efficiency of data transmission.
  • the sender turns on the screen to present the first frame of the video stream.
  • the sender informs the receiver that the preparation is completed through an instruction.
  • the sender informs the receiver that the preparation is complete through an instruction, which can let the receiver know that the sender knows that the sender is about to provide data and is ready to receive the data.
  • the sender's screen plays the video stream, and the speaker plays the audio key.
  • the receiver's camera collects the picture of the image in the video stream, and the microphone collects audio.
  • the sender informs the receiver that the sending is completed through an instruction.
  • the receiver can confirm whether the video data is complete based on the data it receives.
  • the receiver decrypts and parses the video stream by using the audio key, and confirms the video data.
  • the receiver judges whether the data is complete.
  • the receiver informs the sender to resend the missing part of the data through a Bluetooth command.
  • the receiver informs the sender that complete data has been received through an instruction.
  • the above data transmission method can carry a large amount of data for transmission through video stream transmission, and can ensure the security of the transmitted data through the audio key, and when the data received by the receiver is incomplete, it can also notify the sender through an instruction, So that the sender can retransmit the missing data, thereby also ensuring the integrity of the data transmission.
  • the above data transmission method provided in the embodiment of the present invention can also be applied to data transmission between two or more smart phones, wherein one mobile phone can play the video stream obtained by encoding the first data on the screen, and the other
  • the mobile phone or multiple mobile phones turn on the cameras at the same time to collect the picture of each frame of image in the video stream, and then sequentially decode the original image obtained after collecting the picture of each frame of image to obtain the first data.
  • the data transmission method in the embodiment of the present invention can be applied to various scenarios involving data transmission in real life. For example, smart home scenarios, stage control scenarios, etc.
  • Scenario 1 When the data transmission method provided by the embodiment of the present invention is applied in a smart home scenario, the above-mentioned first device may be a smart door lock, and the above-mentioned second device may be a mobile phone.
  • the mobile phone can play a video stream that has been specially encoded and encrypted for the unlocking data on the screen, and play the audio signal associated with the video stream through the speaker of the mobile phone (the audio signal The frequency data can be used to indicate the content of the key), at this time, the smart door lock with a camera can collect each frame of the image in the video stream played on the mobile phone through the camera to obtain the original data, and then analyze the original image.
  • the smart door lock can collect the audio signal through the microphone, then obtain the key content by analyzing the frequency data of the audio signal, and decrypt according to the key content to obtain the unlocking data, and finally obtain the The unlocking data of the device is compared with the pre-stored unlocking data. When it matches, the smart door lock is opened, and when it does not match, it is forbidden to open the smart door lock.
  • the data transmission method provided by the embodiment of the present invention is applied to unlock, which is different from the traditional unlocking method (for example, fingerprint, password, etc.) performance in human-computer interaction.
  • traditional unlocking method for example, fingerprint, password, etc.
  • smart door locks can also achieve more functions. Exemplary, can include:
  • the smart door lock When the smart door lock detects a visitor outside the smart door lock, it can obtain the visitor's personal characteristic information;
  • the smart door lock detects the presence of a visitor outside the smart door lock by detecting Whether there is an operation of the user touching the smart door lock, it can also be checked whether there is a user staying outside the door for a time longer than a preset time; the protected user can be a woman, the elderly or a child;
  • the user inside the smart door lock belongs to the preset protected user, obtain the external confusion voice of the designated user pre-configured for the protected user, and the external confusion voice is used to confuse the identity of the visitor, so that the visitor thinks that the designated user is located in the smart door Inside the lock; the designated user can be a parent, guardian or a male in the family.
  • the smart door lock can detect whether the person at home is a protected user such as a woman, the elderly or a child when it is determined that there is a visitor coming and is an unfamiliar visitor. Play the external confusing sound of the designated user to make visitors think that there are parents, guardians or men in the home to ensure the safety of the people in the home.
  • the visitor's personal feature information includes: the visitor's face image information and the visitor's voice information;
  • the method After obtaining the visitor's personal characteristic information, the method also includes:
  • the display device inside the smart door lock displays the user's face image information, and the speaker device inside the smart door lock plays the visitor's voice information.
  • the method further includes:
  • the monitoring screen outside the smart door lock is acquired, and the monitoring screen is sent to the display device inside the smart door lock.
  • the smart door lock can send the relevant information of the visitor to other terminal devices in the home (such as display devices, speaker devices, etc.), so that people at home can know the visitor's situation,
  • the smart home equipment can provide users with information flexibly and improve the performance of human-computer interaction.
  • the method further includes:
  • the smart door lock can also send the relevant information of the visitor to the terminal device of the emergency contact associated with the smart door lock, so that the emergency contact can know the situation of the visitor, so that the Smart home devices can provide users with information flexibly and improve human-computer interaction performance.
  • the above-mentioned first device may be a stage control device, and the stage control device may be connected to a terminal device (for example, a large screen, an audio device) on the stage. , lighting device), and the second device may be a mobile terminal device (for example, a mobile phone).
  • the mobile phone can encode and encrypt the local stage control data to generate a video stream, and play the video stream within the range that can be captured by the stage control device.
  • the stage control device can collect the audio signal associated with the video stream through the microphone (the frequency data of the audio signal can be used to indicate the key content), Then, the key content is obtained by analyzing the frequency data of the audio signal, and the first control data is decrypted according to the key content to obtain the stage control data, and then the stage control device distributes the stage control data to the connected terminal devices. .
  • the stage control device distributing the stage control data to its connected terminal equipment may include: the stage control device sending the image data to the large screen, In order to make the image corresponding to the image data displayed on the large screen; the stage control equipment sends the audio data to the audio equipment, so that the audio equipment plays the audio signal corresponding to the audio data; the stage control equipment sends the lighting control instructions to the lighting equipment to control Changes in the color and intensity of lighting equipment.
  • the data in the mobile terminal device that can be moved flexibly is transmitted to the stage control device, and the large screen, audio equipment and Lighting equipment distributes data, which can not only achieve relatively safe large-scale data transmission, but also store some common stage control data in mobile terminal devices that can move flexibly, which can easily carry stage control data to different stage systems. data reuse.
  • an embodiment of the present invention provides a first device, where the first device includes:
  • the receiving module 801 is used to collect the picture of each frame of image in the video stream played on the screen of the second device, and obtain M original images, the video stream is generated by encoding the first data, and the video stream includes M frames of images , each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data;
  • the processing module 802 is configured to decode the M original images to obtain first data.
  • each image display area indicates a data unit in the first data through a displayed color.
  • the video stream is encrypted
  • the receiving module 801 is further configured to obtain the key associated with the video stream from the second device before the processing module 802 decodes the M original images to obtain the first data;
  • the processing module 802 is specifically used for the first device to decode the M original images according to the color displayed in each of the M original images, and obtain the original data corresponding to the M original images;
  • the target frame image in the video stream includes a key, and the target frame image includes one or more frames of images;
  • the receiving module 801 is specifically configured to decode the first target image in the M original images to obtain a key, wherein the first target image is an image obtained by collecting a picture of the target frame image in the video stream;
  • the processing module 802 is specifically configured to decrypt the second target image according to the key to obtain the first data, where the second target image is an image other than the first target image among the M original images.
  • the receiving module 801 is specifically configured to collect the audio signal played by the second device through the audio playback device;
  • the key is an audio signal whose frequency is modulated, and the frequency data of the audio signal is used to indicate the content of the key;
  • the receiving module 801 is specifically configured to obtain frequency data of the audio signal
  • the first data includes first target data obtained after decoding each of the M original images, the first target data includes an image sequence number, and the image sequence number is used to indicate that the image corresponding to the first target data is in the video. the playback order in the stream;
  • the first device also includes:
  • the sending module 803, configured to decode the M original images in the processing module 802 to obtain the first data, further includes:
  • the missing target sequence numbers are sent to the second device, so that the second device re-outputs images in the video stream whose playback order corresponds to the target sequence numbers according to the target sequence numbers.
  • the data type of the first data includes: at least one of an image data type, an audio data type, a video data type and a text data type;
  • the sending module 803 is also used for the first device to detect the target terminal device that is communicatively connected to the first device; to detect the data type supported by the target terminal device; if the first data includes a target with the same data type supported by the target terminal device data, then send the target data to the target terminal device.
  • the sending module 803 is further configured to determine whether the device identifier associated with the target data is the same as the device identifier of the target terminal device if the first data includes the same target data as the data type supported by the target terminal device;
  • the target data is sent to the target terminal device.
  • an embodiment of the present invention provides a second device, including:
  • an acquisition module 901 configured to acquire the first data to be transmitted, and encode the first data to generate a video stream;
  • Playing module 902 for playing a video stream on the screen, the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data, In order to facilitate the first device to collect the picture of each frame of image in the video stream played on the screen of the second device, to obtain M original images, and to decode the M original images to obtain the first data, wherein M and N is an integer greater than or equal to 2.
  • each image display area indicates a data unit in the first data through a displayed color.
  • the video stream is encrypted, and the playback module 902 transmits the key associated with the video stream, so that the first device obtains the key associated with the video stream from the second device, and the first device According to the color displayed in each of the M original images, the M original images are decoded to obtain the original data corresponding to the M original images; the original data is decrypted according to the key to obtain the first data.
  • the second device further includes: a receiving module 903 for receiving the target sequence number sent by the first device after the playback module 902 plays the video stream on the screen, where the target sequence number is the number of images of each frame of the video stream captured by the first device. picture, the image sequence number that is missing in the image sequence numbers included in the obtained M original images; resend the image corresponding to the playback sequence and the target sequence number in the video stream according to the target sequence number.
  • both the first device and the second device provided in this embodiment of the present invention may be mobile phones.
  • the mobile phone may include: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity ( Wireless fidelity, WiFi) module 1070, processor 1080, and power supply 1090 and other components.
  • the radio frequency circuit 1010 includes a receiver 1011 and a transmitter 1012 .
  • the structure of the mobile phone shown in FIG. 10 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.
  • the RF circuit 1010 can be used to receive and transmit signals during information transmission and reception or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 1080; in addition, the designed uplink data is sent to the base station.
  • the RF circuit 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like.
  • the RF circuit 1010 can also communicate with networks and other devices via wireless communication.
  • the above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the global system of mobile communication (global system of mobile communication, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access) multiple access, CDMA), wideband code division multiple access (WCDMA), long term evolution (long term evolution, LTE), email, short message service (short messaging service, SMS) and so on.
  • GSM global system of mobile communication
  • general packet radio service general packet radio service
  • GPRS code division multiple access
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • long term evolution long term evolution
  • email short message service
  • the memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020 .
  • the memory 1020 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 1020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 1030 can be used for receiving inputted number or character information, and generating key signal input related to user setting and function control of the mobile phone.
  • the input unit 1030 may include a touch panel 1031 and other input devices 1032 .
  • the touch panel 1031 also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 1031). operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 1031 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller.
  • the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1030 may also include other input devices 1032 .
  • other input devices 1032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 1040 may include a display panel 1041.
  • the display panel 1041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 1031 may cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near it, it transmits it to the processor 1080 to determine the type of the touch event, and then the processor 1080 determines the type of the touch event according to the touch event Type provides corresponding visual output on display panel 1041 .
  • the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to form Realize the input and output functions of the mobile phone.
  • the cell phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and/or when the mobile phone is moved to the ear. or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary.
  • the terminal device may include an acceleration sensor, a depth sensor, or a distance sensor, or the like.
  • the audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the mobile phone.
  • the audio circuit 1060 can convert the received audio data into an electrical signal, and transmit it to the speaker 1061, and the speaker 1061 converts it into a sound signal and outputs it; After receiving, it is converted into audio data, and then the audio data is output to the processor 1080 for processing, and then sent to, for example, another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for further processing.
  • WiFi is a short-distance wireless transmission technology.
  • the mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1070, which provides users with wireless broadband Internet access.
  • FIG. 10 shows the WiFi module 1070, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.
  • the processor 1080 is the control center of the mobile phone, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 1020, and calling the data stored in the memory 1020. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole.
  • the processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1080.
  • the mobile phone also includes a power supply 1090 (such as a battery) for supplying power to various components.
  • a power supply 1090 (such as a battery) for supplying power to various components.
  • the power supply can be logically connected to the processor 1080 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system.
  • the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.
  • the above-mentioned mobile phone may further include a camera, and the camera may be used to capture a video stream by using the camera.
  • Each frame of image in the video stream includes a plurality of image display areas, and each image display area can be carried by the displayed color indication. data information;
  • Each process involved in the above-mentioned first device can be implemented through the above-mentioned devices such as the processor 1080, the audio circuit 1060, the RF circuit 1010, the input unit 1030, the WiFi module 1070, and the display unit 1040, or the above-mentioned second device can be implemented. each process.
  • Embodiments of the present invention further provide a first device, which may include: a processor, a memory, and a computer program stored in the memory and running on the processor, where the computer program can implement the above when executed by the processor
  • a first device which may include: a processor, a memory, and a computer program stored in the memory and running on the processor, where the computer program can implement the above when executed by the processor
  • An embodiment of the present invention further provides a second device, the second device may include: a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor can implement the above-mentioned
  • the second device may include: a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor can implement the above-mentioned
  • Embodiments of the present invention provide a computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process performed by the first device in the foregoing method embodiments is implemented.
  • Embodiments of the present invention provide a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process performed by the second device in the foregoing method embodiments is implemented.
  • the first device, the second device, and the storage medium provided in the embodiment of the present invention can achieve the same technical effect as the data transmission method protected in the Shanghai Defense embodiment. To avoid repetition, the technical effect will not be repeated here.
  • the computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or the like.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Disclosed are a data transmission method and device, and a storage medium, which are applied to the technical field of data transmission and can solve the problem of being unable to realize the transmission of mass data. The method comprises: a first device collecting a picture of each frame of an image in a video stream played on a screen of a second device to obtain M original images, wherein the video stream is generated by encoding first data, the video stream comprises M frames of an image, each frame of the image in the video stream comprises N image display regions, each image display region indicates one data unit in the first data, and M and N are integers greater than or equal to 2; and the first device decoding the M original images to obtain the first data.

Description

数据传输方法、设备及存储介质Data transmission method, device and storage medium 技术领域technical field
本发明实施例涉及数据传输技术领域,尤其涉及数据传输方法、设备及存储介质。Embodiments of the present invention relate to the technical field of data transmission, and in particular, to a data transmission method, device, and storage medium.
背景技术Background technique
目前数据传输方式多种多样,生活中比较常见的数据传输方式中有利用图像来传输数据的方式,比如以二维码为载体来传输数据,但是其携带的信息量相对较小,因此无法实现大量数据的传输。At present, there are various data transmission methods. Among the more common data transmission methods in life, there is the method of using images to transmit data, such as using two-dimensional code as a carrier to transmit data, but the amount of information carried is relatively small, so it cannot be realized. Transmission of large amounts of data.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种数据传输方法、设备及存储介质,用以解决现有技术中存在的无法实现大量数据的传输的问题。Embodiments of the present invention provide a data transmission method, device, and storage medium, so as to solve the problem in the prior art that the transmission of a large amount of data cannot be realized.
为了解决上述技术问题,本发明实施例是这样实现的:In order to solve the above technical problems, the embodiments of the present invention are implemented as follows:
第一方面,提供一种数据传输方法,包括:In a first aspect, a data transmission method is provided, including:
第一设备采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,视频流为对第一数据进行编码生成的,视频流中包括M帧图像,视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示第一数据中的一个数据单元,其中,M和N为大于或等于2的整数;The first device collects the picture of each frame of image in the video stream played on the screen of the second device, and obtains M original images, the video stream is generated by encoding the first data, and the video stream includes M frames of images, and the video stream Each frame of image in includes N image display areas, and each image display area indicates a data unit in the first data, wherein M and N are integers greater than or equal to 2;
第一设备对M个原始图像进行解码,以得到第一数据。The first device decodes the M original images to obtain first data.
第二方面,提供一种数据传输方法,包括:In a second aspect, a data transmission method is provided, including:
第二设备获取待传输的第一数据,并对所述第一数据进行编码生成视频流;The second device obtains the first data to be transmitted, and encodes the first data to generate a video stream;
第二设备在屏幕上播放所述视频流,所述视频流中包括M帧图像,所述视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示所述第一数据中的一个数据单元,以便于第一设备采集所述第二设备的屏幕上播放的所述视频流中的每帧图像的画面,得到M个原始图像,并对所述M个原始图像进行解码,以得到所述第一数据,其中,M和N为大于或等于2的整数。The second device plays the video stream on the screen, the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates that the first data a data unit, so that the first device collects the picture of each frame of the image in the video stream played on the screen of the second device, obtains M original images, and decodes the M original images, to obtain the first data, wherein M and N are integers greater than or equal to 2.
第三方面,提供一种第一设备,包括:In a third aspect, a first device is provided, including:
接收模块,用于采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,所述视频流为对第一数据进行编码生成的,所述视频流中包括M帧图像,所述视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示所述第一数据中的一个数据单元;The receiving module is used to collect the picture of each frame of image in the video stream played on the screen of the second device, and obtain M original images, the video stream is generated by encoding the first data, and the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data;
处理模块,用于对所述M个原始图像进行解码,以得到所述第一数据。a processing module, configured to decode the M original images to obtain the first data.
第四方面,提供一种第二设备,包括:In a fourth aspect, a second device is provided, comprising:
处理模块,用于获取待传输的第一数据,并对所述第一数据进行编码生成视频流;a processing module, configured to obtain the first data to be transmitted, and encode the first data to generate a video stream;
播放模块,用于在屏幕上播放所述视频流,所述视频流中包括M帧图像,所述视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示所述第一数据中的一个数据单元,以便于第一设备采集所述第二设备的屏幕上播放的所述视频流中的每帧图像的画面,得到M个原始图像,并对所述M个原始图像进行解码,以得到所述第一数据。A playback module, configured to play the video stream on the screen, the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates the first A data unit in the data, so that the first device collects the picture of each frame of the image in the video stream played on the screen of the second device, obtains M original images, and performs the processing on the M original images. decoding to obtain the first data.
第五方面,提供一种第一设备,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第一方面所述的数据传输方法的步骤。In a fifth aspect, a first device is provided, comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the following: The steps of the data transmission method described in the first aspect.
第六方面,提供一种第二设备,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如第二方面所述的数据传输方法的步骤。In a sixth aspect, a second device is provided, comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program being executed by the processor to achieve the following: The steps of the data transmission method described in the second aspect.
第七方面,提供一种计算机可读存储介质,包括:所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如第一方面所述的数据传输方法的步骤,或者,实现如第二方面所述的数据传输方法的步骤。In a seventh aspect, a computer-readable storage medium is provided, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the data transmission method described in the first aspect are implemented, Alternatively, the steps of the data transmission method described in the second aspect are implemented.
在本发明实施例中,第一设备采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,视频流为对第一数据进行编码生成的,视频流中包括M帧图像,视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示第一数据中的一个数据单元,其中,M和N为大于或等于2的整数;第一设备对M个原始图像进行解码,以得到第一数据。通过该方案,由于第二设备上的视频流中的每帧图像中可以通过图像显示区域指示一个数据单元,这样第一设备可以通过摄像头采集第二设备上视频流中的每帧图像的画面,来获取该视频流所携带的大量的信息,从而可以在第一设备和第二设备之间实现大量数据的传输。In the embodiment of the present invention, the first device collects images of each frame of images in the video stream played on the screen of the second device, and obtains M original images, the video stream is generated by encoding the first data, and the video stream is Including M frames of images, each frame of image in the video stream includes N image display areas, each image display area indicates a data unit in the first data, wherein, M and N are integers greater than or equal to 2; the first device Decode the M original images to obtain the first data. With this solution, since each frame of image in the video stream on the second device can indicate a data unit through the image display area, the first device can capture the picture of each frame of image in the video stream on the second device through the camera, to obtain a large amount of information carried by the video stream, so that a large amount of data can be transmitted between the first device and the second device.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例和现有技术描述中所需要使用的附图作 简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,还可以根据这些附图获得其它的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments and the prior art. Obviously, the drawings in the following description are only some implementations of the present application. For example, other drawings may also be obtained from these drawings.
图1为本发明实施例提供的一种用于实现数据传输的架构示意图一;FIG. 1 is a schematic diagram 1 of an architecture for implementing data transmission according to an embodiment of the present invention;
图2为本发明实施例提供的一种有损编码和无损编码的示意图;2 is a schematic diagram of a lossy encoding and lossless encoding provided by an embodiment of the present invention;
图3为本发明实施例提供的一种用于实现数据传输的架构示意图二FIG. 3 is a schematic diagram 2 of an architecture for implementing data transmission according to an embodiment of the present invention
图4为本发明实施例提供的一种数据传输方法示意图一;4 is a schematic diagram 1 of a data transmission method provided by an embodiment of the present invention;
图5为本发明实施例提供的一种手机屏幕划分多个显示区域的示意图;5 is a schematic diagram of dividing a mobile phone screen into multiple display areas according to an embodiment of the present invention;
图6为本发明实施例提供的一种数据传输方法示意图二;6 is a schematic diagram 2 of a data transmission method provided by an embodiment of the present invention;
图7为本发明实施例提供的一种数据传输方法示意图三;FIG. 7 is a schematic diagram 3 of a data transmission method provided by an embodiment of the present invention;
图8为本发明实施例提供的一种第一设备的结构示意图;8 is a schematic structural diagram of a first device according to an embodiment of the present invention;
图9为本发明实施例提供的一种第二设备的结构示意图;9 is a schematic structural diagram of a second device according to an embodiment of the present invention;
图10为本发明实施例提供的一种手机的硬件示意图。FIG. 10 is a schematic diagram of hardware of a mobile phone according to an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书中的术语“第一”和“第二”等是用于区别不同的对象,而不是用于描述对象的特定顺序。例如,第一设备和第二设备等是用于区别不同的设备,而不是用于描述设备的特定顺序。The terms "first" and "second" and the like in the description and claims of the present invention are used to distinguish different objects, rather than to describe a specific order of the objects. For example, the first device and the second device, etc. are used to distinguish different devices, not to describe a specific order of the devices.
需要说明的是,本发明实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本发明实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations, or descriptions. Any embodiments or designs described as "exemplary" or "such as" in the embodiments of the present invention should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present the related concepts in a specific manner.
据统计,当前数据算数至少有80%是以图像为载体进行,图像具有携带信息量大、直观易理解等特点,而图像处理即是图像信息传输的可实现性、安全性的必要保证。相关技术中,如图1所示为一种数据传输的方式实现的架构示意图,数据发送设备在图像经过图像采集、编码压缩和加密之后,可以通过互联网等方式进行传输,数据接收设备经过解压解码、解密处理之后即可提取图像中所包含的有效信息。According to statistics, at least 80% of the current data arithmetic is carried out with images as carriers. Images have the characteristics of carrying a large amount of information, being intuitive and easy to understand, and image processing is a necessary guarantee for the achievability and security of image information transmission. In the related art, as shown in Figure 1 is a schematic diagram of the architecture implemented by a data transmission method. After the image is captured, encoded, compressed and encrypted, the data transmission device can transmit it through the Internet, etc., and the data receiving device is decompressed and decoded. , After the decryption process, the effective information contained in the image can be extracted.
进一步的,由于图像包含的信息量大,其占据的内存空间也很大,一张1024*768的24位色图片未经编码压缩的话其将有2.25MB大小,但是经过编码压缩之后其最多只有几十KB大小,编码压缩可以大大降低图像的大小。常用的编码方式有无损编号(其解压后可以完全还原原图像且不会存在任何信息的丢失)和有损编码(其是不可逆的,解码后的图像无法完全还原原图像,会存在一定信息的丢失)。Further, due to the large amount of information contained in the image, the memory space it occupies is also very large. A 1024*768 24-bit color image without encoding and compression will have a size of 2.25MB, but after encoding and compression, it will only have Dozens of KB in size, encoding compression can greatly reduce the size of the image. Commonly used encoding methods include lossless numbering (which can completely restore the original image after decompression without any loss of information) and lossy encoding (which is irreversible, the decoded image cannot completely restore the original image, and there will be some information. lost).
可选的,图像编码的格式有PNG格式和JPEG格式等。其中,PNG格式是一种无损编码方式,而JPEG格式是一种有损编码格式。图像的编码过程即是对图像的一个压缩过程,编码时算法会去除图像上具有的大量冗余信息而只保留那些不可或缺的有效信息。示例性的,如图2所示,对于有损编码,算法会将像素值相差不大的多个像素点整合为同一个像素值来存储,这样一来本来需要存储多个像素值的空间,而编码压缩后只需要存储一个像素值,大大节省了存储空间,如2中示出的21指示的四个像素值相同的像素点和22指示的四个像素值相同的像素点最终整合为23这一个像素点;而无损编码算法则只会将多个像素值相同的像素点整合为一个值来存储以达到压缩的目的,无损编码的图像会比有损编码的图像占据空间大一些,即图2中示出的21指示的四个像素点最终整合为24这一个像素点,22指示的四个像素点最终整合为25这一个像素点。Optionally, the image encoding formats include PNG format and JPEG format. Among them, the PNG format is a lossless encoding method, and the JPEG format is a lossy encoding format. The encoding process of the image is a compression process of the image. During encoding, the algorithm will remove a large amount of redundant information on the image and only retain the indispensable and effective information. Exemplarily, as shown in Figure 2, for lossy encoding, the algorithm will integrate multiple pixel points with similar pixel values into the same pixel value for storage, which would have required space for storing multiple pixel values. After encoding and compression, only one pixel value needs to be stored, which greatly saves storage space. As shown in 2, the four pixel points with the same pixel value indicated by 21 and the four pixel points with the same pixel value indicated by 22 are finally integrated into 23 This is a pixel; while the lossless encoding algorithm will only integrate multiple pixels with the same pixel value into one value for storage to achieve the purpose of compression. The lossless encoded image will occupy a larger space than the lossy encoded image, that is, The four pixel points indicated by 21 shown in FIG. 2 are finally integrated into one pixel point 24 , and the four pixel points indicated by 22 are finally integrated into one pixel point 25 .
虽然基于上述的图像压缩技术,可以提高传输数据的量,但是其对传输数据的量的提高是十分有限的,并且可能会损失一些图像信息。Although the amount of transmitted data can be increased based on the above-mentioned image compression technology, the increase in the amount of transmitted data is very limited, and some image information may be lost.
本发明实施例为了进一步提高数据传输的数据量,可以通过传输视频流来实现,该视频流中可以包括M帧图像,其中每帧图像都可以通过图像显示区域指示待传输的第一数据中的一个数据单元,并显示在屏幕上,这样第一设备可以通过摄像头采集第二设备上视频流中的每帧图像,来获取该视频流所携带的大量的数据,从而可以在第一设备和第二设备之间实现大量数据的传输。In this embodiment of the present invention, in order to further increase the data volume of data transmission, it may be implemented by transmitting a video stream, and the video stream may include M frames of images, wherein each frame of image may indicate the first data to be transmitted through the image display area. A data unit is displayed on the screen, so that the first device can capture each frame of image in the video stream on the second device through the camera to obtain a large amount of data carried by the video stream, so that the first device and the second device can be used. A large amount of data is transmitted between the two devices.
本发明实施例提供的数据传输方法,可以通过两个设备(本发明实施例中的第一设备和第二设备)之间的数据传输实现,其中,第一设备可以作为数据发送端,第二设备可以作为数据接收端,或者,第一设备可以作为数据接收端,第二设备可以作为数据发送端。The data transmission method provided in the embodiment of the present invention may be implemented through data transmission between two devices (the first device and the second device in the embodiment of the present invention), wherein the first device may serve as a data sending end, and the second device The device may serve as a data receiving end, or the first device may serve as a data receiving end, and the second device may serve as a data sending end.
本发明实施例中的设备可以是智能外设、移动终端设备,也可以为非移动终端设备。移动终端设备 可以为手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等;非移动终端设备可以为个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本发明实施例不作具体限定。The device in this embodiment of the present invention may be an intelligent peripheral device, a mobile terminal device, or a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA) etc.; the non-mobile terminal device may be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in this embodiment of the present invention.
示例性的,如图3所示为本发明实施例提供的一种用于实现数据传输的架构示意图。其中,涉及两个独立设备,一个设备是可以采集图像、播放视频流以及接收和播放音频的智能外设、另一个设备是智能手机,智能手机可以安装到智能外设上。其中,智能手机上可以安装一个应用程序,该应用程序可以将音频、图片、视频、文本文件等数据经过特殊编码加密后以视频流的方式在手机屏幕上持续呈现,加密秘钥则通过音频模块(即音频播放装置或扬声器)播放发送,智能外设利用本身携带的摄像头采集智能手机屏幕上呈现的视频流中每帧图像的画面,以得到原始图像,同时利用音频模块(即,音频接收器或麦克风)接收音频秘钥,然后结合音频秘钥依次处理并解码和解密采集到的原始图像,得到智能手机所传输的数据。Exemplarily, FIG. 3 is a schematic diagram of an architecture for implementing data transmission provided by an embodiment of the present invention. Among them, two independent devices are involved, one device is a smart peripheral that can capture images, play video streams, and receive and play audio, and the other device is a smart phone, and the smart phone can be installed on the smart peripheral. Among them, an application can be installed on the smartphone. The application can encrypt the audio, picture, video, text file and other data through special encoding and then continuously display it on the screen of the mobile phone in the form of a video stream. The encryption key is passed through the audio module. (that is, an audio playback device or a speaker) to play and send, and the smart peripheral uses the camera it carries to capture the picture of each frame of the video stream presented on the smartphone screen to obtain the original image, and uses the audio module (that is, the audio receiver). or microphone) to receive the audio key, and then process and decode and decrypt the collected original image in turn in combination with the audio key to obtain the data transmitted by the smartphone.
进一步的,如若智能外设需要传递信息给智能手机的话,智能外设可以在其屏幕上播放经过特殊加密编码的视频流,同时利用扬声器播放音频秘钥,智能手机利用本身携带的摄像头采集智能外设屏幕上播放的视频流中的每帧图像的画面,以得到原始图像,同时利用音频接收器接收音频秘钥,并通过解码和解密原始图像,以得到智能外设所传输的数据,由此双方可以有效的互传数据,并且双方利用蓝牙、无线保真WIFI技术等方式实现握手或指令互传,图3中具体由设备中的蓝牙/WIFI模块实现),同时在数据传输的过程中可以将经过特殊调制的音频作为秘钥。Further, if the smart peripheral needs to transmit information to the smart phone, the smart peripheral can play the specially encrypted video stream on its screen, and at the same time use the speaker to play the audio key, and the smart phone uses the camera it carries to collect the smart peripheral. Set the picture of each frame of image in the video stream played on the screen to obtain the original image, and use the audio receiver to receive the audio key, and decode and decrypt the original image to obtain the data transmitted by the intelligent peripheral, thus The two parties can effectively transmit data to each other, and the two parties use Bluetooth, Wi-Fi technology, etc. to achieve handshake or command mutual transmission, which is specifically implemented by the Bluetooth/WIFI module in the device in Figure 3). Use specially modulated audio as a key.
进一步的,智能外设还可通过有线电缆或无线WIFI等方式连接其他终端(如图3中所示的外设终端),智能外设可以将音频数据发送给音响终端,视频数据发送给投影仪,灯光控制数据发送给灯光控制终端等。Further, the smart peripheral can also be connected to other terminals (such as the peripheral terminal shown in Figure 3) through wired cables or wireless WIFI, and the smart peripheral can send audio data to the audio terminal and video data to the projector. , the lighting control data is sent to the lighting control terminal, etc.
下面以第一设备为数据接收端,第二设备为数据发送端为例进行示例性的说明。本发明实施例中,第一设备和第二设备可以为在一定距离范围内的两个设备,两者之间的距离和位置关系需要能够满足第二设备可以通过摄像头采集到第一设备上的视频流为准进行设置,本发明实施例不作限定。The following takes the first device as the data receiving end and the second device as the data sending end as an example for exemplary description. In this embodiment of the present invention, the first device and the second device may be two devices within a certain distance range, and the distance and positional relationship between the two needs to be able to satisfy the requirements that the second device can collect on the first device through the camera. The video stream is set as the criterion, which is not limited in this embodiment of the present invention.
实施例一Example 1
如图4所示,本发明实施例提供一种数据传输方法,该方法可以包括:As shown in FIG. 4, an embodiment of the present invention provides a data transmission method, and the method may include:
401、第二设备获取待传输的第一数据,并对第一数据进行编码生成视频流。401. The second device acquires the first data to be transmitted, and encodes the first data to generate a video stream.
本发明实施例中,第一数据的数据类型包括:图像数据类型、音频数据类型、视频数据类型和文本数据类型中的至少一种。In this embodiment of the present invention, the data type of the first data includes at least one of an image data type, an audio data type, a video data type, and a text data type.
402、第二设备的屏幕上播放视频流。402. Play the video stream on the screen of the second device.
其中,视频流中包括M帧图像,视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示第一数据中的一个数据单元,以便于第一设备采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,并对M个原始图像进行解码,以得到第一数据,其中,M和N为大于或等于2的整数。The video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data, so that the first device can capture the screen of the second device The picture of each frame of the image in the video stream played on the above is obtained, and M original images are obtained, and the M original images are decoded to obtain the first data, wherein M and N are integers greater than or equal to 2.
可选的,上述每个图像显示区域通过显示的颜色指示第一数据中的一个数据单元。Optionally, each image display area above indicates a data unit in the first data through a displayed color.
二维码是二进制的编码,可以利用黑色和白色来指示数据,二维码是通过不同显示区域分别用黑和白两种颜色进行填充,来携带数据的,本发明实施例中,可以采用更多的彩色进行填充每帧图像,每种颜色指示携带的数据信息不同,这样通过多种颜色的组合可以携带大量的信息,这样每秒钟可以传输上百帧的数据,甚至可以达到传输上千帧数据。The two-dimensional code is a binary code, which can use black and white to indicate data. The two-dimensional code is filled with black and white colors in different display areas to carry data. In the embodiment of the present invention, a more Multiple colors are used to fill each frame of image, and each color indicates different data information carried, so that a large amount of information can be carried through the combination of multiple colors, so that hundreds of frames of data can be transmitted per second, and even thousands of data can be transmitted. frame data.
示例性的,可以将所有颜色归类划分编码成四进制、八进制或者其他进制的码。假设以四进制为例,四进制的编码有00、01、10和11,那么可以规定黑色代表00、红色代表01、绿色代表10、黄色代表11,如果需要编码成其他进制则可以将颜色根据需求进行划分。Exemplarily, all color classification divisions can be encoded into quaternary, octal or other base codes. Assuming that the quaternary system is used as an example, the quaternary code has 00, 01, 10 and 11, then it can be specified that black represents 00, red represents 01, green represents 10, and yellow represents 11. If you need to encode into other systems, you can Divide the colors according to your needs.
可选的,上述每个图像显示区域还可以通过形状指示第一数据中的一个数据单元,或者,根据每个图像显示区域的其他特征指示第一数据中的一个数据单元,本发明实施例中不作具体限定。Optionally, each image display area described above may also indicate a data unit in the first data through a shape, or indicate a data unit in the first data according to other features of each image display area. There is no specific limitation.
示例性的,第二设备可以为手机,如图5所示,该手机的屏幕的示意图中可以看出,可以将屏幕划分为多个小方块,每个小方块为一个显示区域,可以通过在每个小方块中显示颜色来携带数据,其中,每个小方块可以根据传输的数据的不同需求显示不同颜色。Exemplarily, the second device can be a mobile phone. As shown in FIG. 5 , it can be seen from the schematic diagram of the screen of the mobile phone that the screen can be divided into a plurality of small squares, and each small square is a display area. A color is displayed in each small square to carry data, wherein each small square can display different colors according to different requirements of the transmitted data.
需要说明的是,本发明实施例中,除图5中对手机的屏幕中显示区域的划分方式以外,手机的屏幕还可以有其他划分显示区域的方式,图5仅为一种示例性的说明。例如,可以划分为比图5更多或更少的显示区域,还可以将手机的屏幕划分为多行一列的显示区域,还可以将手机的屏幕可以划分为多列一 行的显示区域。It should be noted that, in this embodiment of the present invention, in addition to the way of dividing the display area on the screen of the mobile phone in FIG. 5 , the screen of the mobile phone may also have other ways of dividing the display area, and FIG. 5 is only an exemplary illustration . For example, it can be divided into more or less display areas than in FIG. 5 , the screen of the mobile phone can also be divided into display areas with multiple rows and one column, and the screen of the mobile phone can be divided into display areas with multiple columns and one row.
403、第一设备采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像。403. The first device collects images of each frame of images in the video stream played on the screen of the second device, and obtains M original images.
其中,第一设备可以通过摄像头采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像。Wherein, the first device may collect images of each frame of images in the video stream played on the screen of the second device through a camera to obtain M original images.
可选的,第一设备可以利用高速摄像机的摄像头采集第二设备的屏幕上播放的视频流中的每帧图像的画面,这样可以实现较快的数据传输速度。Optionally, the first device may use a camera of a high-speed camera to capture images of each frame of the video stream played on the screen of the second device, so that a faster data transmission speed can be achieved.
404、第一设备对M个原始图像进行解码,以得到第一数据。404. The first device decodes the M original images to obtain first data.
本发明实施例中,第一设备采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,视频流为对第一数据进行编码生成的,视频流中包括M帧图像,视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示第一数据中的一个数据单元,其中,M和N为大于或等于2的整数;第一设备对M个原始图像进行解码,以得到第一数据。通过该方案,由于第二设备上的视频流中的每帧图像都可以通过图像显示区域指示一个数据单元并将其显示在屏幕上,这样第一设备可以通过摄像头采集第二设备上视频流中的每帧图像的画面,来获取该视频流所携带的大量的信息,从而可以在第一设备和第二设备之间实现大量数据的传输。In the embodiment of the present invention, the first device collects images of each frame of images in the video stream played on the screen of the second device to obtain M original images, the video stream is generated by encoding the first data, and the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, each image display area indicates a data unit in the first data, wherein M and N are integers greater than or equal to 2; the first device pair The M original images are decoded to obtain the first data. With this solution, since each frame of image in the video stream on the second device can indicate a data unit through the image display area and display it on the screen, the first device can capture the video stream on the second device through the camera. The picture of each frame of image is obtained to obtain a large amount of information carried by the video stream, so that a large amount of data can be transmitted between the first device and the second device.
实施例二Embodiment 2
为了在传输数据的过程中保证数据的安全性,本发明实施例中的视频流可以是经过加密处理的。To ensure data security during data transmission, the video stream in this embodiment of the present invention may be encrypted.
可选的,上述加密处理,可以是指将第一数据中的部分或全部数据单元通过预先约定的加密规则设置成另外的数据单元。例如,数据单元“00”是一个加密后的数据单元,加密前该数据单元可能是“01”或者其他数据单元。Optionally, the foregoing encryption process may refer to setting some or all of the data units in the first data into other data units through a pre-agreed encryption rule. For example, the data unit "00" is an encrypted data unit, and the data unit may be "01" or other data units before encryption.
如图6所示,提供一种数据传输方法,包括:As shown in Figure 6, a data transmission method is provided, including:
601、第二设备获取待传输的第一数据,并对第一数据进行编码生成视频流。601. The second device acquires the first data to be transmitted, and encodes the first data to generate a video stream.
可选的,第一数据的数据类型包括:图像数据类型、音频数据类型、视频数据类型和文本数据类型中的至少一种。Optionally, the data type of the first data includes: at least one of an image data type, an audio data type, a video data type, and a text data type.
602、第二设备的屏幕上播放视频流。602. Play the video stream on the screen of the second device.
603、第一设备采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像。603. The first device collects pictures of each frame of images in the video stream played on the screen of the second device, and obtains M original images.
针对上述601至和603的描述,可以参照对上述401至403的描述,此处不再赘述。For the descriptions of the above 601 to 603, reference may be made to the descriptions of the above 401 to 403, which will not be repeated here.
604、第一设备从第二设备处获取与视频流相关联的密钥。604. The first device acquires a key associated with the video stream from the second device.
本发明实施例中,第二设备传输与视频流相关联的密钥,相应的,第一设备从第二设备处获取与视频流相关联的密钥。In this embodiment of the present invention, the second device transmits the key associated with the video stream, and correspondingly, the first device obtains the key associated with the video stream from the second device.
其中,第一设备与第二设备之间传输密钥的方式可以有多种。Wherein, there may be many ways to transmit the key between the first device and the second device.
第一种可能的实现方式为:视频流中的目标帧图像中包括密钥,目标帧图像包括一帧或多帧图像;第一设备从第二设备处获取与视频流相关联的密钥具体可以为:第一设备对M个原始图像中的第一目标图像进行解码,以得到密钥,其中,第一目标图像为采集视频流中的目标帧图像的画面得到的图像。The first possible implementation is as follows: the target frame image in the video stream includes a key, and the target frame image includes one or more frames of images; the first device obtains the key associated with the video stream from the second device. It may be: the first device decodes the first target image in the M original images to obtain the key, wherein the first target image is an image obtained by collecting a picture of the target frame image in the video stream.
示例性的,可以针对多帧图像的画面中所指示的数据信息进行计算后得到实际携带的数据信息。例如,第一设备可以通过帧差法(前一帧或多帧画面中的数据信息减去后一帧或后多帧画面中的数据信息),或者其他算法计算视频流实际携带的数据信息,这样解密时需要连续提取到多帧画面后进行解密,得到实际传输的数据,这种方法加密效果更好,安全性更高。Exemplarily, the actually carried data information may be obtained after calculation for the data information indicated in the pictures of the multi-frame images. For example, the first device can calculate the data information actually carried by the video stream through the frame difference method (data information in the previous frame or multiple frames minus the data information in the next frame or subsequent multiple frames), or other algorithms, In this way, it is necessary to continuously extract multiple frames of pictures for decryption to obtain the actually transmitted data. This method has better encryption effect and higher security.
这种实现方式中,可以将密钥携带在视频流中,这样密钥和实际传输的数据均通过视频流的方式进行传输,这样传输设备仅需要采用播放视频流的器件,和采集视频流的器件(即,发送端设备需要有显示功能模块,接收端设备需要有图像采集模块)就可以完成传输,无需其他器件配合实现,传输方式更加简洁,对设备硬件的要求更低。In this implementation, the key can be carried in the video stream, so that the key and the actually transmitted data are transmitted through the video stream, so that the transmission device only needs to use a device for playing the video stream and a device for collecting the video stream. The device (that is, the transmitting end device needs to have a display function module, and the receiving end device needs to have an image acquisition module) can complete the transmission, without the cooperation of other devices, the transmission method is more concise, and the requirements for the device hardware are lower.
第二种可能的实现方式为:第一设备采集第二设备通过音频播放装置播放的音频信号,对音频信号进行解析,获取密钥。The second possible implementation manner is: the first device collects the audio signal played by the second device through the audio playback device, analyzes the audio signal, and obtains the key.
可选的,该密钥可以为频率经过调制的音频信号,该音频信号的频率数据用于指示密钥内容。这种情况下对音频信号进行解析,获取密钥,包括:获取音频信号的频率数据,确定音频信号的频率数据所指示的密钥内容,根据密钥内容解密原始数据,以得到第一数据。Optionally, the key may be an audio signal whose frequency is modulated, and the frequency data of the audio signal is used to indicate the content of the key. In this case, parsing the audio signal to obtain the key includes: obtaining the frequency data of the audio signal, determining the content of the key indicated by the frequency data of the audio signal, and decrypting the original data according to the content of the key to obtain the first data.
这种实现方式中,可以将密钥携带在音频信号中,这样密钥的发送端可以通过扬声器输出密钥,而密钥的接收端可以通过麦克风接收密钥,这样通过视频流的方式进行数据传输,通过音频信号的方式进行密钥传输,这样把不同数据分两个传输渠道进行传输,可以提高传输的可靠性。In this implementation, the key can be carried in the audio signal, so that the sender of the key can output the key through the speaker, and the receiver of the key can receive the key through the microphone, so that the data is transmitted through the video stream. Transmission, key transmission is carried out by means of audio signals, so that different data are transmitted in two transmission channels, which can improve the reliability of transmission.
第三种可能的实现方式为:第二设备可以通过蓝牙技术或WIFI技术建立无线通信,然后第二设备 将密钥发送给终端设备。The third possible implementation manner is: the second device can establish wireless communication through Bluetooth technology or WIFI technology, and then the second device sends the key to the terminal device.
605、第一设备根据M个原始图像中每个原始图像中显示的颜色,解码M个原始图像,获取M个原始图像所对应的原始数据。605. The first device decodes the M original images according to the color displayed in each of the M original images, and obtains the original data corresponding to the M original images.
可选的,针对上述第一种可能的实现方式,第一设备可以根据密钥解密第二目标图像,以得到第一数据,第二目标图像为M个原始图像中除第一目标图像以外的图像。Optionally, for the above-mentioned first possible implementation manner, the first device can decrypt the second target image according to the key to obtain the first data, and the second target image is the M original images except the first target image. image.
606、第一设备根据密匙解密原始数据,以得到第一数据。606. The first device decrypts the original data according to the encryption key to obtain the first data.
本发明实施例中,视频流经过了加密,使得数据传输的过程更加的安全可靠,从而在传输大量数据的基础上保证了数据传输的安全性。In the embodiment of the present invention, the video stream is encrypted, so that the process of data transmission is more secure and reliable, thereby ensuring the security of data transmission on the basis of transmitting a large amount of data.
一种可能的实现方式中,第一数据包括M个原始图像中每个原始图像解码后得到的第一目标数据,第一目标数据中包括图像序号,图像序号用于指示与第一目标数据对应的图像在视频流中的播放顺序。在上述606之后还可以包括:若第一数据中包括的图像序号不连续,则第一设备向第二设备发送缺失的目标序号,以使得第二设备根据目标序号重新输出视频流中播放顺序与目标序号所对应的图像。相应的,第二设备接收第一设备发送的目标序号,第二设备根据目标序号重新发送视频流中播放顺序与目标序号所对应的图像。In a possible implementation, the first data includes first target data obtained after decoding each of the M original images, the first target data includes an image sequence number, and the image sequence number is used to indicate that the image corresponds to the first target data. The order in which the images are played in the video stream. After the above 606, it may further include: if the image sequence numbers included in the first data are not consecutive, the first device sends the missing target sequence number to the second device, so that the second device re-outputs the playback sequence in the video stream according to the target sequence number. The image corresponding to the target serial number. Correspondingly, the second device receives the target sequence number sent by the first device, and the second device resends images in the video stream whose playback order corresponds to the target sequence number according to the target sequence number.
上述实现方式中,由于可以在第一设备接收到的第一数据中包括每个原始图像解码得到的第一目标数据,且该第一目标数据中包括图像序号,这样在实际应用中存在漏采集视频流中某帧图像的画面的情况下,可以通过向第二设备反馈这些缺失图像序号来让第二设备根据这些图像序号重新播放一遍该图像序号对应的图像,以便第一设备可以再次采集,而无需将整个视频流重新传输,从而可以提高在数据缺失时,重传数据的效率。In the above implementation manner, since the first data received by the first device can include the first target data obtained by decoding each original image, and the first target data includes the image serial number, there is a leakage of collection in practical applications. In the case of a certain frame of image in the video stream, the second device can replay the image corresponding to the image serial number by feeding back these missing image serial numbers to the second device, so that the first device can capture again, There is no need to retransmit the entire video stream, thereby improving the efficiency of data retransmission when data is missing.
另一种可能的实现方式中,可选的,在上述606之后还可以包括下述步骤:In another possible implementation manner, optionally, after the above 606, the following steps may be further included:
607、第一设备检测与第一设备通信连接的目标终端设备。607. The first device detects a target terminal device that is communicatively connected to the first device.
可选的,第一设备可以检测与第一设备通信连接的所有设备,上述目标终端设备可以为与第一设备通信连接的一个或多个终端设备。Optionally, the first device may detect all devices that are communicatively connected to the first device, and the above-mentioned target terminal device may be one or more terminal devices that are communicatively connected to the first device.
608、检测目标终端设备所支持的数据类型。608. Detect the data type supported by the target terminal device.
示例性的,该目标终端设备如果为显示设备,那么可以支持图像数据、音文本数据、视频数据;该目标终端设备如果为音箱设备,那么可以支持音频数据。Exemplarily, if the target terminal device is a display device, it can support image data, audio and text data, and video data; if the target terminal device is a speaker device, it can support audio data.
609、若第一数据中包括与目标终端设备所支持的数据类型相同的目标数据,则将目标数据发送至目标终端设备。609. If the first data includes target data of the same type as the data supported by the target terminal device, send the target data to the target terminal device.
示例性的,假设第一数据中包括图像数据和音频数据,那么可以将图像数据发送给显示设备,将音频数据发送给音箱设备。Exemplarily, assuming that the first data includes image data and audio data, the image data can be sent to the display device, and the audio data can be sent to the speaker device.
本发明实施例中,第一设备可以根据数据类型去分发数据给第一设备关联的终端设备,并且在确定终端设备可以支持的数据类型之后,才向终端设备发送其支持的数据类型的数据,以免发送的数据类型终端设备并不支持的情况下,浪费数据传输资源。In this embodiment of the present invention, the first device may distribute data to the terminal device associated with the first device according to the data type, and only after determining the data type that the terminal device can support, send data of the data type supported by the terminal device to the terminal device, In order to avoid wasting data transmission resources when the type of data to be sent is not supported by the terminal device.
上述609具体可以包括以下步骤:The above 609 may specifically include the following steps:
6091、若第一数据中包括与目标终端设备所支持的数据类型相同的目标数据,则第一设备判断目标数据所关联的设备标识是否与目标终端设备的设备标识相同。6091. If the first data includes target data of the same data type as that supported by the target terminal device, the first device determines whether the device identifier associated with the target data is the same as the device identifier of the target terminal device.
在实际应用中,可能存在有多个终端设备均支持某一类型的数据,此时可以检测该某一类型的数据是否关联有设备标识,如果没有关联设备标识,则向该多个终端设备均发送其支持的数据类型的数据;如果关联了设备标识,则进一步判断所关联的设备标识是否与目标终端设备的设备标识相同,在相同的情况下,将该某一类型的数据(即目标数据)发送至目标终端设备。In practical applications, there may be multiple terminal devices that support a certain type of data. At this time, it can be detected whether the certain type of data is associated with a device ID. If there is no associated device ID, send the data to the multiple terminal devices. Send the data of the data type it supports; if the device ID is associated, then further determine whether the associated device ID is the same as the device ID of the target terminal device, and in the same case, the data of a certain type (ie the target data ) to the target terminal device.
6092、若目标数据所关联的设备标识与目标终端设备的设备标识相同,则第一设备将目标数据发送至目标终端设备。6092. If the device identification associated with the target data is the same as the device identification of the target terminal device, the first device sends the target data to the target terminal device.
本发明实施例中,在存在有多个终端设备均支持目标数据的情况下,可以根据目标数据所关联的设备标识,进一步明确数据分发时的接收端设备,并在目标数据所关联的设备标识与目标终端设备的设备标识相同时,才将目标数据发送至目标终端设备,这样可以提高数据分发的准确性。In the embodiment of the present invention, in the case where there are multiple terminal devices supporting the target data, the receiving end device during data distribution can be further specified according to the device identifier associated with the target data, and the device identifier associated with the target data can be further specified. Only when the device identification of the target terminal device is the same, the target data is sent to the target terminal device, which can improve the accuracy of data distribution.
实施例三Embodiment 3
下面结合图7,说明在发送方与接收方之间采用本发明实施例提供的数据传输方法传输数据的流程。The following describes a process of transmitting data between a sender and a receiver using the data transmission method provided by the embodiment of the present invention with reference to FIG. 7 .
701、开始。701. Start.
702、发送方与接收方是否握手成功。702. Whether the handshake between the sender and the receiver is successful.
其中,可以通过蓝牙或者WIFI技术进行握手指令的传输,以建立通信连接,在通信连接成功建立 时,说明发送方与接收方握手成功。Among them, the handshake command can be transmitted through Bluetooth or WIFI technology to establish a communication connection. When the communication connection is successfully established, it means that the sender and the receiver have successfully shaken hands.
若成功则继续执行下述步骤703至715,若失败,则可以引导用户使用WIFI或蓝牙与对端设备建立连接,并在一段时间后继续执行上述702。If successful, continue to perform the following steps 703 to 715; if it fails, the user may be guided to establish a connection with the peer device using WIFI or Bluetooth, and continue to perform the above 702 after a period of time.
703、传输指令约定发送方和接收方。703. The transmission instruction agrees on the sender and the receiver.
可选的,本实现方式中所涉及的指令可以为通过蓝牙或者WIFI技术传输的指令。Optionally, the instructions involved in this implementation manner may be instructions transmitted through Bluetooth or WIFI technology.
也就是说,发送方和接收方到底是哪个设备,可以通过两个设备进行指令的交互来进行约定。That is to say, which device the sender and receiver are, can be agreed upon by the interaction of instructions between the two devices.
704、接收方开启摄像头和麦克风。704. The receiver turns on the camera and the microphone.
705、接收方通过指令告知发送方准备完毕。705. The receiver informs the sender that the preparation is completed through an instruction.
通过指令告知发送方准备完毕可以方便发送方适时地提供数据,以免数据提供的过早无法接收到,或者,数据提供的过晚,影响数据传输的效率。Notifying the sender that the data is ready through the instruction can facilitate the sender to provide data in a timely manner, so as to prevent the data provided too early and cannot be received, or the data provided too late, which affects the efficiency of data transmission.
706、发送方开启屏幕呈现视频流的首帧图像。706. The sender turns on the screen to present the first frame of the video stream.
707、发送方通过指令告知接收方准备完毕。707. The sender informs the receiver that the preparation is completed through an instruction.
发送方通过指令告知接收方准备完毕,可以让接收方获知发送方获知发送方即将提供数据,做好接收数据的准备。The sender informs the receiver that the preparation is complete through an instruction, which can let the receiver know that the sender knows that the sender is about to provide data and is ready to receive the data.
708、发送方屏幕播放视频流,扬声器播放音频密钥。708. The sender's screen plays the video stream, and the speaker plays the audio key.
709、接收方摄像头采集视频流中图像的画面,麦克风采集音频。709. The receiver's camera collects the picture of the image in the video stream, and the microphone collects audio.
710、发送方通过指令告知接收方发送完毕。710. The sender informs the receiver that the sending is completed through an instruction.
发送方通过指令告知接收方发送完毕之后,接收方可以基于其接收的数据确认视频数据是否完整。After the sender informs the receiver that the transmission is completed through an instruction, the receiver can confirm whether the video data is complete based on the data it receives.
711、接收方利用音频密钥解密解析视频流,确认视频数据。711. The receiver decrypts and parses the video stream by using the audio key, and confirms the video data.
712、接收方判断数据是否完整。712. The receiver judges whether the data is complete.
若不完整,则执行下述713后继续从704执行,直到接收到完整的数据后执行下述714和715;若完整,则直接执行下述714和715。If it is not complete, execute the following 713 and continue to execute from 704 until the complete data is received and execute the following 714 and 715; if it is complete, execute the following 714 and 715 directly.
713、接收方通过蓝牙指令告知发送方重发缺失部分的数据。713. The receiver informs the sender to resend the missing part of the data through a Bluetooth command.
714、接收方通过指令告知发送方接收到完整数据。714. The receiver informs the sender that complete data has been received through an instruction.
715、结束。715. End.
上述数据传输方法,可以通过视频流传输携带大量的数据进行传输,并且可以通过音频密钥保证传输数据的安全性,并且在接收方收到的数据不完整时,还可以通过指令告知发送方,以使得发送方可以重传缺失数据,从而还保证了数据传输的完整性。The above data transmission method can carry a large amount of data for transmission through video stream transmission, and can ensure the security of the transmitted data through the audio key, and when the data received by the receiver is incomplete, it can also notify the sender through an instruction, So that the sender can retransmit the missing data, thereby also ensuring the integrity of the data transmission.
本发明实施例提供的上述数据传输方法,也可以应用在两个或多个智能手机之间进行数据传输,其中,一部手机可在屏幕上播放第一数据编码后得到的视频流,另一部手机或多部手机同时开启摄像头采集该视频流中每帧图像的画面,之后依次对采集每帧图像的画面后得到的原始图像进行解码,得到第一数据。The above data transmission method provided in the embodiment of the present invention can also be applied to data transmission between two or more smart phones, wherein one mobile phone can play the video stream obtained by encoding the first data on the screen, and the other The mobile phone or multiple mobile phones turn on the cameras at the same time to collect the picture of each frame of image in the video stream, and then sequentially decode the original image obtained after collecting the picture of each frame of image to obtain the first data.
本发明实施例中的数据传输方法可以应用在实际生活中涉及到数据传输的多种场景下。例如、智能家居场景、舞台控制场景等。The data transmission method in the embodiment of the present invention can be applied to various scenarios involving data transmission in real life. For example, smart home scenarios, stage control scenarios, etc.
场景一:在本发明实施例提供的数据传输方法应用在智能家居场景中时,上述第一设备可以为智能门锁,上述第二设备可以为手机。Scenario 1: When the data transmission method provided by the embodiment of the present invention is applied in a smart home scenario, the above-mentioned first device may be a smart door lock, and the above-mentioned second device may be a mobile phone.
在智能家居场景中用户需要开启智能门锁时,手机可以在屏幕上播放一段经过对开锁数据进行特殊编码加密的视频流,并且通过手机的扬声器播放与该视频流关联的音频信号(该音频信号的频率数据可以用于指示密钥内容),这时设有摄像头的智能门锁相应的可以通过摄像头采集手机上播放的视频流中的每帧图像的画面,以得到原始数据,然后对原始图像进行解码得到第一数据;智能门锁可以通过麦克风采集该音频信号,然后通过解析该音频信号的频率数据来获取密钥内容,并根据密钥内容进行解密以得到开锁数据,最后再将该得到的开锁数据与预先存储的开锁数据进行比对,在匹配的时候,智能门锁开启,在不匹配的时候禁止智能门锁开启。When the user needs to open the smart door lock in the smart home scenario, the mobile phone can play a video stream that has been specially encoded and encrypted for the unlocking data on the screen, and play the audio signal associated with the video stream through the speaker of the mobile phone (the audio signal The frequency data can be used to indicate the content of the key), at this time, the smart door lock with a camera can collect each frame of the image in the video stream played on the mobile phone through the camera to obtain the original data, and then analyze the original image. Decode to obtain the first data; the smart door lock can collect the audio signal through the microphone, then obtain the key content by analyzing the frequency data of the audio signal, and decrypt according to the key content to obtain the unlocking data, and finally obtain the The unlocking data of the device is compared with the pre-stored unlocking data. When it matches, the smart door lock is opened, and when it does not match, it is forbidden to open the smart door lock.
该智能家居场景中,应用了本发明实施例提供的数据传输方法进行开锁,不同于传统的开锁方式(例如,指纹、密码等),为开始方式提供更多可实现方式,提升了智能家居场景中人机交互的性能。In this smart home scenario, the data transmission method provided by the embodiment of the present invention is applied to unlock, which is different from the traditional unlocking method (for example, fingerprint, password, etc.) performance in human-computer interaction.
进一步的,在智能家居场景下,智能门锁还可以实现更多功能。示例性的,可以包括:Further, in the smart home scenario, smart door locks can also achieve more functions. Exemplary, can include:
智能门锁在检测到智能门锁外出现访客时,可以获取访客的个人特征信息;When the smart door lock detects a visitor outside the smart door lock, it can obtain the visitor's personal characteristic information;
若访客的个人特征信息与预存的可信任个人特征信息不匹配,则识别智能门锁内部的用户是否属于预设的受保护用户;其中,智能门锁检测智能门锁外出现访客可以是通过检测是否存在用户触及智能门锁的操作,也可以是通过检是否存在用户在门外停留时间大于预设时间;其中,受保护用户可以为女性、 老人或者小孩;If the personal feature information of the visitor does not match the pre-stored trusted personal feature information, it is determined whether the user inside the smart door lock belongs to the preset protected user; among them, the smart door lock detects the presence of a visitor outside the smart door lock by detecting Whether there is an operation of the user touching the smart door lock, it can also be checked whether there is a user staying outside the door for a time longer than a preset time; the protected user can be a woman, the elderly or a child;
若智能门锁内部的用户属于预设的受保护用户,获取预先为受保护用户配置的指定用户的对外迷惑声音,对外迷惑声音用于对访客进行身份迷惑,以使访客认为指定用户位于智能门锁内部;其中,指定用户可以为家长、监护人或者家庭中的某一男性。If the user inside the smart door lock belongs to the preset protected user, obtain the external confusion voice of the designated user pre-configured for the protected user, and the external confusion voice is used to confuse the identity of the visitor, so that the visitor thinks that the designated user is located in the smart door Inside the lock; the designated user can be a parent, guardian or a male in the family.
以及,控制智能门锁播放对外迷惑声音,并禁止智能门锁执行开门作业。And, control the smart door lock to play external confusing sounds, and prohibit the smart door lock from performing the door opening operation.
上述实现方式中,智能门锁可以在确定有访客到来,且为陌生访客时,检测家中人员是否是女性、老人或者小孩等受保护用户,在确定家中人员为受保护用户的情况下,可以通过播放指定用户的对外迷惑声音,来使得访客以为家中有家长、监护人或者男性,以保证家中人员的安全。In the above implementation manner, the smart door lock can detect whether the person at home is a protected user such as a woman, the elderly or a child when it is determined that there is a visitor coming and is an unfamiliar visitor. Play the external confusing sound of the designated user to make visitors think that there are parents, guardians or men in the home to ensure the safety of the people in the home.
可选的,访客的个人特征信息包括:访客的人脸图像信息和访客的声音信息;Optionally, the visitor's personal feature information includes: the visitor's face image information and the visitor's voice information;
获取访客的个人特征信息之后,方法还包括:After obtaining the visitor's personal characteristic information, the method also includes:
若访客的个人特征信息与预存的可信任个人特征信息不匹配,则发送访客的人脸图像信息至智能门锁内部的显示设备,以及发送访客的声音信息至智能门锁内部的音箱设备;If the visitor's personal feature information does not match the pre-stored trusted personal feature information, send the visitor's face image information to the display device inside the smart door lock, and send the visitor's voice information to the speaker device inside the smart door lock;
智能门锁内部的显示设备显示用户的人脸图像信息,智能门锁内部的音箱设备播放访客的声音信息。The display device inside the smart door lock displays the user's face image information, and the speaker device inside the smart door lock plays the visitor's voice information.
可选的,获取访客的个人特征信息之后,方法还包括:Optionally, after acquiring the personal characteristic information of the visitor, the method further includes:
若访客的个人特征信息与预存的可信任个人特征信息不匹配,则获取智能门锁外部的监控画面,并发送监控画面至智能门锁内部的显示设备。If the personal characteristic information of the visitor does not match the pre-stored trusted personal characteristic information, the monitoring screen outside the smart door lock is acquired, and the monitoring screen is sent to the display device inside the smart door lock.
上述实现方式中,可以在确定访客为陌生访客时,智能门锁将访客的相关信息发送至家中的其他终端设备(如,显示设备、音箱设备等)中,以使得家中人员可以获知访客情况,使得智能家居设备可以为用户灵活的提供信息,提高人机交互性能。In the above implementation manner, when it is determined that the visitor is an unfamiliar visitor, the smart door lock can send the relevant information of the visitor to other terminal devices in the home (such as display devices, speaker devices, etc.), so that people at home can know the visitor's situation, The smart home equipment can provide users with information flexibly and improve the performance of human-computer interaction.
可选的,智能门锁获取访客的个人特征信息之后,方法还包括:Optionally, after the smart door lock acquires the personal characteristic information of the visitor, the method further includes:
若访客的个人特征信息与预存的可信任个人特征信息不匹配,则判断是否存在与智能门锁关联的紧急联系人的终端设备;If the personal characteristic information of the visitor does not match the pre-stored trusted personal characteristic information, determine whether there is a terminal device of an emergency contact associated with the smart door lock;
若存在,则获取智能门锁外部的监控画面,并发送智能门锁外部的监控画面至紧急联系人的终端设备。If it exists, acquire the monitoring picture outside the smart door lock, and send the monitoring picture outside the smart door lock to the terminal device of the emergency contact.
上述实现方式中,可以在确定访客为陌生访客时,智能门锁还可以将访客的相关信息发送至与智能门锁关联的紧急联系人的终端设备,以使得紧急联系人可以获知访客情况,使得智能家居设备可以为用户灵活的提供信息,提高人机交互性能。In the above implementation manner, when it is determined that the visitor is an unfamiliar visitor, the smart door lock can also send the relevant information of the visitor to the terminal device of the emergency contact associated with the smart door lock, so that the emergency contact can know the situation of the visitor, so that the Smart home devices can provide users with information flexibly and improve human-computer interaction performance.
场景二:在本发明实施例提供的数据传输方法应用在舞台控制场景中时,上述第一设备可以为舞台控制设备,该舞台控制设备可以连接舞台中的终端设备(例如,大屏幕、音响设备、灯光设备),而第二设备则可以为一个移动终端设备(例如,手机)。手机可以将本地的舞台控制数据进行编码和加密之后生成视频流,并在舞台控制设备可以采集到的范围内播放该视频流,舞台控制设备可以通过摄像头采集该视频流中的每帧图像中的画面,然后得到原始数据,对原始数据进行解析得到第一控制数据,并且舞台控制设备可以通过麦克风采集与该视频流关联的音频信号(该音频信号的频率数据可以用于指示密钥内容),然后通过解析该音频信号的频率数据来获取密钥内容,并根据密钥内容对第一控制数据进行解密以得到舞台控制数据,然后再由舞台控制设备将舞台控制数据分发至其连接的终端设备。Scenario 2: When the data transmission method provided by the embodiment of the present invention is applied in a stage control scenario, the above-mentioned first device may be a stage control device, and the stage control device may be connected to a terminal device (for example, a large screen, an audio device) on the stage. , lighting device), and the second device may be a mobile terminal device (for example, a mobile phone). The mobile phone can encode and encrypt the local stage control data to generate a video stream, and play the video stream within the range that can be captured by the stage control device. screen, then obtain the original data, analyze the original data to obtain the first control data, and the stage control device can collect the audio signal associated with the video stream through the microphone (the frequency data of the audio signal can be used to indicate the key content), Then, the key content is obtained by analyzing the frequency data of the audio signal, and the first control data is decrypted according to the key content to obtain the stage control data, and then the stage control device distributes the stage control data to the connected terminal devices. .
假设舞台控制数据中包括:图像数据、音频数据和灯光控制数据(即灯光控制指令)舞台控制设备将舞台控制数据分发至其连接的终端设备可以包括:舞台控制设备将图像数据发送至大屏幕,以使得大屏幕显示该图像数据对应的图像;舞台控制设备将音频数据发送至音响设备,以使得音响设备播放该音频数据对应的音频信号;舞台控制设备将灯光控制指令发送至灯光设备,以控制灯光设备的色彩和光强的变化。Assuming that the stage control data includes: image data, audio data and lighting control data (ie lighting control instructions) the stage control device distributing the stage control data to its connected terminal equipment may include: the stage control device sending the image data to the large screen, In order to make the image corresponding to the image data displayed on the large screen; the stage control equipment sends the audio data to the audio equipment, so that the audio equipment plays the audio signal corresponding to the audio data; the stage control equipment sends the lighting control instructions to the lighting equipment to control Changes in the color and intensity of lighting equipment.
在本发明实施例提供的数据传输方法应用在舞台控制场景中时,将能够灵活移动的移动终端设备中的数据传输给舞台控制设备,并通过舞台控制设备为舞台中的大屏幕、音响设备和灯光设备分发数据,这样不仅可以实现较为安全的大量数据传输,并且将通用的一些舞台控制数据存储在能够灵活移动的移动终端设备中,可以方便将舞台控制数据携带至不同舞台系统所在场地,实现数据的复用。When the data transmission method provided by the embodiment of the present invention is applied in a stage control scene, the data in the mobile terminal device that can be moved flexibly is transmitted to the stage control device, and the large screen, audio equipment and Lighting equipment distributes data, which can not only achieve relatively safe large-scale data transmission, but also store some common stage control data in mobile terminal devices that can move flexibly, which can easily carry stage control data to different stage systems. data reuse.
如图8所示,本发明实施例提供一种第一设备,该第一设备包括:As shown in FIG. 8 , an embodiment of the present invention provides a first device, where the first device includes:
接收模块801,用于采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,视频流为对第一数据进行编码生成的,视频流中包括M帧图像,视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示第一数据中的一个数据单元;The receiving module 801 is used to collect the picture of each frame of image in the video stream played on the screen of the second device, and obtain M original images, the video stream is generated by encoding the first data, and the video stream includes M frames of images , each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data;
处理模块802,用于对M个原始图像进行解码,以得到第一数据。The processing module 802 is configured to decode the M original images to obtain first data.
可选的,每个图像显示区域通过显示的颜色指示第一数据中的一个数据单元。Optionally, each image display area indicates a data unit in the first data through a displayed color.
可选的,视频流为经过加密处理的;Optionally, the video stream is encrypted;
接收模块801还用于在处理模块802对M个原始图像进行解码,以得到第一数据之前,从第二设备处获取与视频流相关联的密钥;The receiving module 801 is further configured to obtain the key associated with the video stream from the second device before the processing module 802 decodes the M original images to obtain the first data;
处理模块802,具体用于第一设备根据M个原始图像中每个原始图像中显示的颜色,解码M个原始图像,获取M个原始图像所对应的原始数据;The processing module 802 is specifically used for the first device to decode the M original images according to the color displayed in each of the M original images, and obtain the original data corresponding to the M original images;
根据密匙解密原始数据,以得到第一数据。Decrypt the original data according to the key to obtain the first data.
可选的,视频流中的目标帧图像中包括密钥,目标帧图像包括一帧或多帧图像;Optionally, the target frame image in the video stream includes a key, and the target frame image includes one or more frames of images;
接收模块801,具体用于对M个原始图像中的第一目标图像进行解码,以得到密钥,其中,第一目标图像为采集视频流中的目标帧图像的画面得到的图像;The receiving module 801 is specifically configured to decode the first target image in the M original images to obtain a key, wherein the first target image is an image obtained by collecting a picture of the target frame image in the video stream;
处理模块802,具体用于根据密钥解密第二目标图像,以得到第一数据,第二目标图像为M个原始图像中除第一目标图像以外的图像。The processing module 802 is specifically configured to decrypt the second target image according to the key to obtain the first data, where the second target image is an image other than the first target image among the M original images.
可选的,接收模块801,具体用于采集第二设备通过音频播放装置播放的音频信号;Optionally, the receiving module 801 is specifically configured to collect the audio signal played by the second device through the audio playback device;
对音频信号进行解析,获取密钥。Parse the audio signal to obtain the key.
可选的,密钥为频率经过调制的音频信号,音频信号的频率数据用于指示密钥内容;Optionally, the key is an audio signal whose frequency is modulated, and the frequency data of the audio signal is used to indicate the content of the key;
接收模块801,具体用于获取音频信号的频率数据;The receiving module 801 is specifically configured to obtain frequency data of the audio signal;
确定音频信号的频率数据所指示的密钥内容;determine the key content indicated by the frequency data of the audio signal;
根据密钥内容解密原始数据,以得到第一数据。Decrypt the original data according to the key content to obtain the first data.
可选的,第一数据包括M个原始图像中每个原始图像解码后得到的第一目标数据,第一目标数据中包括图像序号,图像序号用于指示与第一目标数据对应的图像在视频流中的播放顺序;Optionally, the first data includes first target data obtained after decoding each of the M original images, the first target data includes an image sequence number, and the image sequence number is used to indicate that the image corresponding to the first target data is in the video. the playback order in the stream;
第一设备还包括:The first device also includes:
发送模块803,用于在处理模块802对M个原始图像进行解码,以得到第一数据之后,还包括:The sending module 803, configured to decode the M original images in the processing module 802 to obtain the first data, further includes:
若第一数据中包括的图像序号不连续,则向第二设备发送缺失的目标序号,以使得第二设备根据目标序号重新输出视频流中播放顺序与目标序号所对应的图像。If the image sequence numbers included in the first data are discontinuous, the missing target sequence numbers are sent to the second device, so that the second device re-outputs images in the video stream whose playback order corresponds to the target sequence numbers according to the target sequence numbers.
可选的,第一数据的数据类型包括:图像数据类型、音频数据类型、视频数据类型和文本数据类型中的至少一种;Optionally, the data type of the first data includes: at least one of an image data type, an audio data type, a video data type and a text data type;
发送模块803,还用于第一设备检测与第一设备通信连接的目标终端设备;检测目标终端设备所支持的数据类型;若第一数据中包括与目标终端设备所支持的数据类型相同的目标数据,则将目标数据发送至目标终端设备。The sending module 803 is also used for the first device to detect the target terminal device that is communicatively connected to the first device; to detect the data type supported by the target terminal device; if the first data includes a target with the same data type supported by the target terminal device data, then send the target data to the target terminal device.
可选的,发送模块803,还用于若第一数据中包括与目标终端设备所支持的数据类型相同的目标数据,则判断目标数据所关联的设备标识是否与目标终端设备的设备标识相同;Optionally, the sending module 803 is further configured to determine whether the device identifier associated with the target data is the same as the device identifier of the target terminal device if the first data includes the same target data as the data type supported by the target terminal device;
若目标数据所关联的设备标识与目标终端设备的设备标识相同,则将目标数据发送至目标终端设备。If the device identification associated with the target data is the same as the device identification of the target terminal device, the target data is sent to the target terminal device.
如图9所示,本发明实施例提供一种第二设备,包括:As shown in FIG. 9, an embodiment of the present invention provides a second device, including:
获取模块901,用于获取待传输的第一数据,并对第一数据进行编码生成视频流;an acquisition module 901, configured to acquire the first data to be transmitted, and encode the first data to generate a video stream;
播放模块902、用于在屏幕上播放视频流,视频流中包括M帧图像,视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示第一数据中的一个数据单元,以便于第一设备采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,并对M个原始图像进行解码,以得到第一数据,其中,M和N为大于或等于2的整数。Playing module 902, for playing a video stream on the screen, the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data, In order to facilitate the first device to collect the picture of each frame of image in the video stream played on the screen of the second device, to obtain M original images, and to decode the M original images to obtain the first data, wherein M and N is an integer greater than or equal to 2.
可选的,每个图像显示区域通过显示的颜色指示第一数据中的一个数据单元。Optionally, each image display area indicates a data unit in the first data through a displayed color.
可选的,视频流为经过加密处理的,播放模块902,传输与视频流相关联的密钥,以便于第一设备从第二设备处获取与视频流相关联的密钥,以及第一设备根据M个原始图像中每个原始图像中显示的颜色,解码M个原始图像,获取M个原始图像所对应的原始数据;根据密匙解密原始数据,以得到第一数据。Optionally, the video stream is encrypted, and the playback module 902 transmits the key associated with the video stream, so that the first device obtains the key associated with the video stream from the second device, and the first device According to the color displayed in each of the M original images, the M original images are decoded to obtain the original data corresponding to the M original images; the original data is decrypted according to the key to obtain the first data.
可选的,第二设备还包括:接收模块903,用于播放模块902在屏幕上播放视频流之后,接收第一设备发送的目标序号,目标序号为第一设备采集视频流的每帧图像的画面,得到的M个原始图像中包括的图像序号中缺失的图像序号;根据目标序号重新发送视频流中播放顺序与目标序号所对应的图像。Optionally, the second device further includes: a receiving module 903 for receiving the target sequence number sent by the first device after the playback module 902 plays the video stream on the screen, where the target sequence number is the number of images of each frame of the video stream captured by the first device. picture, the image sequence number that is missing in the image sequence numbers included in the obtained M original images; resend the image corresponding to the playback sequence and the target sequence number in the video stream according to the target sequence number.
可选的,本发明实施例提供的第一设备和第二设备均可以为手机。示例性的,示例性的,如图10所示,手机可以包括:射频(radio frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,WiFi)模块1070、处理器1080、以 及电源1090等部件。其中,射频电路1010包括接收器1011和发送器1012。本领域技术人员可以理解,图10中示出的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Optionally, both the first device and the second device provided in this embodiment of the present invention may be mobile phones. Exemplarily, as shown in FIG. 10, the mobile phone may include: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity ( Wireless fidelity, WiFi) module 1070, processor 1080, and power supply 1090 and other components. The radio frequency circuit 1010 includes a receiver 1011 and a transmitter 1012 . Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 10 does not constitute a limitation on the mobile phone, and may include more or less components than the one shown, or combine some components, or arrange different components.
RF电路1010可用于收发信息或通话过程中,信号的接收和发送,特别地,将基站的下行信息接收后,给处理器1080处理;另外,将设计上行的数据发送给基站。通常,RF电路1010包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。The RF circuit 1010 can be used to receive and transmit signals during information transmission and reception or during a call. In particular, after receiving the downlink information of the base station, it is processed by the processor 1080; in addition, the designed uplink data is sent to the base station. Generally, the RF circuit 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 1010 can also communicate with networks and other devices via wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to the global system of mobile communication (global system of mobile communication, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access) multiple access, CDMA), wideband code division multiple access (WCDMA), long term evolution (long term evolution, LTE), email, short message service (short messaging service, SMS) and so on.
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020 . The memory 1020 may mainly include a stored program area and a stored data area, wherein the stored program area may store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of the mobile phone (such as audio data, phone book, etc.), etc. Additionally, memory 1020 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031以及其他输入设备1032。触控面板1031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。The input unit 1030 can be used for receiving inputted number or character information, and generating key signal input related to user setting and function control of the mobile phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032 . The touch panel 1031, also referred to as a touch screen, can collect the user's touch operations on or near it (such as the user's finger, stylus, etc., any suitable object or accessory on or near the touch panel 1031). operation), and drive the corresponding connection device according to the preset program. Optionally, the touch panel 1031 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it to the touch controller. To the processor 1080, and can receive the command sent by the processor 1080 and execute it. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. Besides the touch panel 1031 , the input unit 1030 may also include other input devices 1032 . Specifically, other input devices 1032 may include, but are not limited to, one or more of physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, joysticks, and the like.
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示面板1041,可选的,可以采用液晶显示器(liquid crystal display,LCD)、有机发光二极管(organic light-Emitting diode,OLED)等形式来配置显示面板1041。进一步的,触控面板1031可覆盖显示面板1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图10中,触控面板1031与显示面板1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示面板1041集成而实现手机的输入和输出功能。The display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041. Optionally, the display panel 1041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch panel 1031 may cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near it, it transmits it to the processor 1080 to determine the type of the touch event, and then the processor 1080 determines the type of the touch event according to the touch event Type provides corresponding visual output on display panel 1041 . Although in FIG. 10, the touch panel 1031 and the display panel 1041 are used as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 can be integrated to form Realize the input and output functions of the mobile phone.
手机还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1041和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于手机还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。本发明实施例中,该终端设备可以包括加速度传感器、深度传感器或者距离传感器等。The cell phone may also include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 1041 and/or when the mobile phone is moved to the ear. or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary. games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, etc. Repeat. In this embodiment of the present invention, the terminal device may include an acceleration sensor, a depth sensor, or a distance sensor, or the like.
音频电路1060、扬声器1061,传声器1062可提供用户与手机之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010以发送给比如另一手机,或者将音频数据输出至存储器1020以便进一步处理。The audio circuit 1060, the speaker 1061, and the microphone 1062 can provide an audio interface between the user and the mobile phone. The audio circuit 1060 can convert the received audio data into an electrical signal, and transmit it to the speaker 1061, and the speaker 1061 converts it into a sound signal and outputs it; After receiving, it is converted into audio data, and then the audio data is output to the processor 1080 for processing, and then sent to, for example, another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for further processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图10示出了WiFi模块1070,但是可以理解的是,其并不属于手机的必须构成,完全可以根据需要在不改变发明的本质的范围内而省略。WiFi is a short-distance wireless transmission technology. The mobile phone can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1070, which provides users with wireless broadband Internet access. Although FIG. 10 shows the WiFi module 1070, it can be understood that it is not a necessary component of the mobile phone, and can be completely omitted as required within the scope of not changing the essence of the invention.
处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对手机进行整体监控。可选的,处理器1080可包括一个或多个处理单元;优选的,处理器1080可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1080中。The processor 1080 is the control center of the mobile phone, and uses various interfaces and lines to connect various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 1020, and calling the data stored in the memory 1020. Various functions of the mobile phone and processing data, so as to monitor the mobile phone as a whole. Optionally, the processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc. , the modem processor mainly deals with wireless communication. It can be understood that, the above-mentioned modulation and demodulation processor may not be integrated into the processor 1080.
手机还包括给各个部件供电的电源1090(比如电池),优选的,电源可以通过电源管理系统与处理器1080逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。尽管未示出,手机还可以包括摄像头、蓝牙模块等,在此不再赘述。The mobile phone also includes a power supply 1090 (such as a battery) for supplying power to various components. Preferably, the power supply can be logically connected to the processor 1080 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. Although not shown, the mobile phone may also include a camera, a Bluetooth module, and the like, which will not be repeated here.
本发明实施例中,上述手机还可以包括摄像头,摄像头可以用于利用摄像头采集视频流,视频流中的每帧图像包括多个图像显示区域,每个图像显示区域中可以通过显示的颜色指示携带的数据信息;In this embodiment of the present invention, the above-mentioned mobile phone may further include a camera, and the camera may be used to capture a video stream by using the camera. Each frame of image in the video stream includes a plurality of image display areas, and each image display area can be carried by the displayed color indication. data information;
可以通过上述处理器1080、音频电路1060和RF电路1010、输入单元1030、WiFi模块1070和显示单元1040等器件,实现上述第一设备所涉及的各个过程,或者,实现上述第二设备所涉及的各个过程。Each process involved in the above-mentioned first device can be implemented through the above-mentioned devices such as the processor 1080, the audio circuit 1060, the RF circuit 1010, the input unit 1030, the WiFi module 1070, and the display unit 1040, or the above-mentioned second device can be implemented. each process.
本发明实施例还提供一种第一设备,该第一设备可以包括:处理器,存储器以及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时可以实现上述方法实施例中第一设备执行的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Embodiments of the present invention further provide a first device, which may include: a processor, a memory, and a computer program stored in the memory and running on the processor, where the computer program can implement the above when executed by the processor Each process performed by the first device in the method embodiment can achieve the same technical effect. To avoid repetition, details are not repeated here.
本发明实施例还提供一种第二设备,该第二设备可以包括:处理器,存储器以及存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时可以实现上述方法实施例中第二设备执行的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention further provides a second device, the second device may include: a processor, a memory, and a computer program stored in the memory and running on the processor, the computer program being executed by the processor can implement the above-mentioned Each process performed by the second device in the method embodiment can achieve the same technical effect. To avoid repetition, details are not described here.
本发明实施例提供一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述方法实施例中第一设备执行的各个过程。Embodiments of the present invention provide a computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process performed by the first device in the foregoing method embodiments is implemented.
本发明实施例提供一种计算机可读存储介质,其特征在于,该计算机可读存储介质上存储计算机程序,该计算机程序被处理器执行时实现上述方法实施例中第二设备执行的各个过程。Embodiments of the present invention provide a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, each process performed by the second device in the foregoing method embodiments is implemented.
本发明实施例中提供的第一设备,第二设备,以及存储介质与上海苏防范实施例中保护的数据传输方法可以达到相同的技术效果,为避免重复,这里不再赘述其技术效果。The first device, the second device, and the storage medium provided in the embodiment of the present invention can achieve the same technical effect as the data transmission method protected in the Shanghai Defense embodiment. To avoid repetition, the technical effect will not be repeated here.
其中,该计算机可读存储介质可以为只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the computer-readable storage medium may be a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or the like.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or device comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course hardware can also be used, but in many cases the former is better implementation. Based on this understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM, magnetic disk, CD), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of the various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离The embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments, which are merely illustrative rather than restrictive. Under the inspiration of the present invention, without departing from
本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Within the scope of protection of the spirit of the present invention and the claims, many forms can also be made, which all fall within the protection of the present invention.

Claims (30)

  1. 一种数据传输方法,其特征在于,包括:A data transmission method, comprising:
    第一设备采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,所述视频流为对第一数据进行编码生成的,所述视频流中包括M帧图像,所述视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示所述第一数据中的一个数据单元,其中,M和N为大于或等于2的整数;The first device collects the picture of each frame of image in the video stream played on the screen of the second device, and obtains M original images, the video stream is generated by encoding the first data, and the video stream includes M frames an image, each frame of image in the video stream includes N image display areas, each image display area indicates a data unit in the first data, wherein M and N are integers greater than or equal to 2;
    所述第一设备对所述M个原始图像进行解码,以得到所述第一数据。The first device decodes the M original images to obtain the first data.
  2. 根据权利要求1所述的方法,其特征在于,所述每个图像显示区域通过显示的颜色指示所述第一数据中的一个数据单元。The method according to claim 1, wherein each image display area indicates a data unit in the first data through a displayed color.
  3. 根据权利要求2所述的方法,其特征在于,所述视频流为经过加密处理的;The method according to claim 2, wherein the video stream is encrypted;
    所述第一设备对所述M个原始图像进行解码,以得到所述第一数据之前,还包括:Before the first device decodes the M original images to obtain the first data, the method further includes:
    所述第一设备从所述第二设备处获取与所述视频流相关联的密钥;the first device obtains a key associated with the video stream from the second device;
    所述第一设备对所述M个原始图像进行解码,以得到所述第一数据,包括:The first device decodes the M original images to obtain the first data, including:
    所述第一设备根据所述M个原始图像中每个原始图像中显示的颜色,解码所述M个原始图像,获取所述M个原始图像所对应的原始数据;The first device decodes the M original images according to the color displayed in each of the M original images, and obtains the original data corresponding to the M original images;
    根据所述密匙解密所述原始数据,以得到所述第一数据。Decrypt the original data according to the key to obtain the first data.
  4. 根据权利要求3所述的方法,其特征在于,所述视频流中的目标帧图像中包括所述密钥,所述目标帧图像包括一帧或多帧图像;The method according to claim 3, wherein the key is included in the target frame image in the video stream, and the target frame image includes one or more frames of images;
    所述第一设备从所述第二设备处获取与所述视频流相关联的密钥,包括:所述第一设备对所述M个原始图像中的第一目标图像进行解码,以得到所述密钥,其中,所述第一目标图像为采集所述视频流中的所述目标帧图像的画面得到的图像;Obtaining, by the first device, a key associated with the video stream from the second device includes: the first device decoding a first target image in the M original images to obtain the the key, wherein the first target image is an image obtained by collecting a picture of the target frame image in the video stream;
    所述第一设备对所述M个原始图像进行解码,以得到所述第一数据,包括:The first device decodes the M original images to obtain the first data, including:
    根据所述密钥解密第二目标图像,以得到所述第一数据,所述第二目标图像为所述M个原始图像中除所述第一目标图像以外的图像。Decrypt a second target image according to the key to obtain the first data, where the second target image is an image other than the first target image among the M original images.
  5. 根据权利要求3所述的方法,其特征在于,所述第一设备从所述第二设备处获取与所述视频流相关联的密钥,包括:The method according to claim 3, wherein the obtaining, by the first device, a key associated with the video stream from the second device comprises:
    所述第一设备采集所述第二设备通过音频播放装置播放的音频信号;The first device collects the audio signal played by the second device through the audio playback device;
    对所述音频信号进行解析,获取所述密钥。The audio signal is parsed to obtain the key.
  6. 根据权利要求5所述的方法,其特征在于,所述密钥为频率经过调制的音频信号,所述音频信号的频率数据用于指示密钥内容;The method according to claim 5, wherein the key is an audio signal whose frequency is modulated, and the frequency data of the audio signal is used to indicate the content of the key;
    所述对所述音频信号进行解析,获取所述密钥,包括:The parsing of the audio signal to obtain the key includes:
    获取所述音频信号的频率数据;obtain frequency data of the audio signal;
    确定所述音频信号的频率数据所指示的密钥内容;determining the key content indicated by the frequency data of the audio signal;
    根据所述密钥内容解密所述原始数据,以得到所述第一数据。Decrypt the original data according to the key content to obtain the first data.
  7. 根据权利要求1所述的方法,其特征在于,所述第一数据包括所述M个原始图像中每个原始图像解码后得到的第一目标数据,所述第一目标数据中包括图像序号,所述图像序号用于指示与所述第一目标数据对应的图像在所述视频流中的播放顺序;The method according to claim 1, wherein the first data includes first target data obtained after decoding each of the M original images, and the first target data includes an image sequence number, The image sequence number is used to indicate the playback sequence of the image corresponding to the first target data in the video stream;
    所述第一设备对所述M个原始图像进行解码,以得到所述第一数据之后,还包括:After the first device decodes the M original images to obtain the first data, the method further includes:
    若所述第一数据中包括的所述图像序号不连续,则所述第一设备向所述第二设备发送缺失的目标序号,以使得所述第二设备根据所述目标序号重新输出所述视频流中播放顺序与所述目标序号所对应的图像。If the image sequence numbers included in the first data are not consecutive, the first device sends the missing target sequence numbers to the second device, so that the second device re-outputs the target sequence numbers according to the target sequence numbers. The images in the video stream whose playback order corresponds to the target sequence number.
  8. 根据权利要求1至7任一项所述的方法,其特征在于,所述第一数据的数据类型包括:图像数据类型、音频数据类型、视频数据类型和文本数据类型中的至少一种;The method according to any one of claims 1 to 7, wherein the data type of the first data comprises: at least one of an image data type, an audio data type, a video data type and a text data type;
    所述第一设备对所述M个原始图像进行解码,以得到所述第一数据之后,所述方法还包括:After the first device decodes the M original images to obtain the first data, the method further includes:
    所述第一设备检测与所述第一设备通信连接的目标终端设备;The first device detects a target terminal device that is communicatively connected to the first device;
    检测所述目标终端设备所支持的数据类型;Detecting the data type supported by the target terminal device;
    若所述第一数据中包括与所述目标终端设备所支持的数据类型相同的目标数据,则将所述目标数据发送至所述目标终端设备。If the first data includes target data of the same data type as that supported by the target terminal device, the target data is sent to the target terminal device.
  9. 根据权利要求8所述的方法,其特征在于,若所述第一数据中包括与所述目标终端设备所支持的数据类型相同的目标数据,则将所述目标数据发送至所述目标终端设备,包括:The method according to claim 8, wherein if the first data includes target data of the same data type as that supported by the target terminal device, sending the target data to the target terminal device ,include:
    若所述第一数据中包括与所述目标终端设备所支持的数据类型相同的目标数据,则判断所述目标数据所关联的设备标识是否与所述目标终端设备的设备标识相同;If the first data includes the same target data as the data type supported by the target terminal device, then determine whether the device identifier associated with the target data is the same as the device identifier of the target terminal device;
    若所述目标数据所关联的设备标识与所述目标终端设备的设备标识相同,则将所述目标数据发送至所述目标终端设备。If the device identification associated with the target data is the same as the device identification of the target terminal device, the target data is sent to the target terminal device.
  10. 一种数据传输方法,其特征在于,包括:A data transmission method, comprising:
    第二设备获取待传输的第一数据,并对所述第一数据进行编码生成视频流;The second device obtains the first data to be transmitted, and encodes the first data to generate a video stream;
    第二设备的屏幕上播放所述视频流,所述视频流中包括M帧图像,所述视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示所述第一数据中的一个数据单元,以便于第一设备采集所述第二设备的屏幕上播放的所述视频流中的每帧图像的画面,得到M个原始图像,并对所述M个原始图像进行解码,以得到所述第一数据,其中,M和N为大于或等于2的整数。The video stream is played on the screen of the second device, the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates that in the first data a data unit, so that the first device collects the picture of each frame of the image in the video stream played on the screen of the second device, obtains M original images, and decodes the M original images, to obtain the first data, wherein M and N are integers greater than or equal to 2.
  11. 根据权利要求10所述的方法,其特征在于,所述每个图像显示区域通过显示的颜色指示所述第一数据中的一个数据单元。The method according to claim 10, wherein each image display area indicates a data unit in the first data through a displayed color.
  12. 根据权利要求11所述的方法,其特征在于,所述视频流为经过加密处理的,所述方法还包括:The method according to claim 11, wherein the video stream is encrypted, and the method further comprises:
    所述第二设备传输与所述视频流相关联的密钥,以便于所述第一设备从所述第二设备处获取与所述视频流相关联的密钥,以及所述第一设备根据所述M个原始图像中每个原始图像中显示的颜色,解码所述M个原始图像,获取所述M个原始图像所对应的原始数据;根据所述密匙解密所述原始数据,以得到所述第一数据。The second device transmits the key associated with the video stream, so that the first device obtains the key associated with the video stream from the second device, and the first device according to The color displayed in each of the M original images, decode the M original images, and obtain the original data corresponding to the M original images; decrypt the original data according to the key to obtain the first data.
  13. 根据权利要求11或12所述的方法,其特征在于,所述第二设备的屏幕上播放视频流之后,所述方法还包括:The method according to claim 11 or 12, wherein after the video stream is played on the screen of the second device, the method further comprises:
    所述第二设备接收所述第一设备发送的目标序号,所述目标序号为所述第一设备采集所述视频流的每帧图像的画面,得到的M个原始图像中包括的图像序号中缺失的图像序号;The second device receives the target sequence number sent by the first device, and the target sequence number is the image of each frame of the video stream captured by the first device, and the image sequence numbers included in the obtained M original images are included. The missing image sequence number;
    所述第二设备根据所述目标序号重新发送所述视频流中播放顺序与所述目标序号所对应的图像。The second device resends, according to the target sequence number, images in the video stream whose playback order corresponds to the target sequence number.
  14. 一种第一设备,其特征在于,包括:A first device, characterized in that it includes:
    接收模块,用于采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,所述视频流为对第一数据进行编码生成的,所述视频流中包括M帧图像,所述视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示所述第一数据中的一个数据单元;The receiving module is used to collect the picture of each frame of image in the video stream played on the screen of the second device, and obtain M original images, the video stream is generated by encoding the first data, and the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data;
    处理模块,用于对所述M个原始图像进行解码,以得到所述第一数据。a processing module, configured to decode the M original images to obtain the first data.
  15. 一种第二设备,其特征在于,包括:A second device, comprising:
    处理模块,用于获取待传输的第一数据,并对所述第一数据进行编码生成视频流;a processing module, configured to obtain the first data to be transmitted, and encode the first data to generate a video stream;
    播放模块,用于在屏幕上播放所述视频流,所述视频流中包括M帧图像,所述视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示所述第一数据中的一个数据单元,以便于第一设备采集所述第二设备的屏幕上播放的所述视频流中的每帧图像的画面,得到M个原始图像,并对所述M个原始图像进行解码,以得到所述第一数据。A playback module, configured to play the video stream on the screen, the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates the first A data unit in the data, so that the first device collects the picture of each frame of the image in the video stream played on the screen of the second device, obtains M original images, and performs the processing on the M original images. decoding to obtain the first data.
  16. 一种第一设备,其特征在于,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时,所述处理器用于执行以下步骤:A first device, characterized by comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, when the computer program is executed by the processor, the The processor is used to perform the following steps:
    采集第二设备的屏幕上播放的视频流中的每帧图像的画面,得到M个原始图像,所述视频流为对第一数据进行编码生成的,所述视频流中包括M帧图像,所述视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示所述第一数据中的一个数据单元;Collect the picture of each frame of image in the video stream played on the screen of the second device, and obtain M original images, the video stream is generated by encoding the first data, and the video stream includes M frames of images, so Each frame of image in the video stream includes N image display areas, and each image display area indicates a data unit in the first data;
    对所述M个原始图像进行解码,以得到所述第一数据。The M original images are decoded to obtain the first data.
  17. 根据权利要求16所述的第一设备,其特征在于,所述每个图像显示区域通过显示的颜色指示所述第一数据中的一个数据单元。The first device according to claim 16, wherein each image display area indicates a data unit in the first data through a displayed color.
  18. 根据权利要求17所述的第一设备,其特征在于,所述视频流为经过加密处理的;The first device according to claim 17, wherein the video stream is encrypted;
    所述处理器,还用于对所述M个原始图像进行解码,以得到所述第一数据之前,从所述第二设备处获取与所述视频流相关联的密钥;The processor is further configured to obtain a key associated with the video stream from the second device before decoding the M original images to obtain the first data;
    所述处理器,具体用于根据所述M个原始图像中每个原始图像中显示的颜色,解码所述M个原始图像,获取所述M个原始图像所对应的原始数据;The processor is specifically configured to decode the M original images according to the color displayed in each of the M original images, and obtain the original data corresponding to the M original images;
    根据所述密匙解密所述原始数据,以得到所述第一数据。Decrypt the original data according to the key to obtain the first data.
  19. 根据权利要求18所述的第一设备,其特征在于,所述视频流中的目标帧图像中包括所述密钥,所述目标帧图像包括一帧或多帧图像;The first device according to claim 18, wherein the key is included in the target frame image in the video stream, and the target frame image includes one or more frames of images;
    所述处理器,具体用于从所述第二设备处获取与所述视频流相关联的密钥,包括:所述第一设备对 所述M个原始图像中的第一目标图像进行解码,以得到所述密钥,其中,所述第一目标图像为采集所述视频流中的所述目标帧图像的画面得到的图像;根据所述密钥解密第二目标图像,以得到所述第一数据,所述第二目标图像为所述M个原始图像中除所述第一目标图像以外的图像。The processor is specifically configured to obtain the key associated with the video stream from the second device, including: the first device decoding the first target image in the M original images, to obtain the key, wherein the first target image is an image obtained by collecting the image of the target frame image in the video stream; decrypt the second target image according to the key to obtain the first target image. A piece of data, wherein the second target image is an image other than the first target image among the M original images.
  20. 根据权利要求18所述的第一设备,其特征在于,所述处理器,具体用于所述第一设备采集所述第二设备通过音频播放装置播放的音频信号;对所述音频信号进行解析,获取所述密钥。The first device according to claim 18, wherein the processor is specifically configured for the first device to collect an audio signal played by the second device through an audio playback device; and to analyze the audio signal , to obtain the key.
  21. 根据权利要求20所述的第一设备,其特征在于,所述密钥为频率经过调制的音频信号,所述音频信号的频率数据用于指示密钥内容;所述处理器,具体用于获取所述音频信号的频率数据;确定所述音频信号的频率数据所指示的密钥内容;根据所述密钥内容解密所述原始数据,以得到所述第一数据。The first device according to claim 20, wherein the key is an audio signal whose frequency is modulated, and the frequency data of the audio signal is used to indicate the content of the key; the processor is specifically configured to obtain frequency data of the audio signal; determine the key content indicated by the frequency data of the audio signal; decrypt the original data according to the key content to obtain the first data.
  22. 根据权利要求16所述的第一设备,其特征在于,所述第一数据包括所述M个原始图像中每个原始图像解码后得到的第一目标数据,所述第一目标数据中包括图像序号,所述图像序号用于指示与所述第一目标数据对应的图像在所述视频流中的播放顺序;所述处理器,还用于对所述M个原始图像进行解码,以得到所述第一数据之后,若所述第一数据中包括的所述图像序号不连续,则所述第一设备向所述第二设备发送缺失的目标序号,以使得所述第二设备根据所述目标序号重新输出所述视频流中播放顺序与所述目标序号所对应的图像。The first device according to claim 16, wherein the first data includes first target data obtained after decoding each of the M original images, and the first target data includes an image serial number, the image serial number is used to indicate the playback order of the images corresponding to the first target data in the video stream; the processor is also used to decode the M original images to obtain the After the first data, if the image sequence numbers included in the first data are discontinuous, the first device sends the missing target sequence numbers to the second device, so that the second device can The target sequence number re-outputs the images in the video stream whose playback order corresponds to the target sequence number.
  23. 根据权利要求16至22任一项所述的第一设备,其特征在于,所述第一数据的数据类型包括:图像数据类型、音频数据类型、视频数据类型和文本数据类型中的至少一种;The first device according to any one of claims 16 to 22, wherein the data type of the first data comprises: at least one of an image data type, an audio data type, a video data type, and a text data type ;
    所述处理器,还用于对所述M个原始图像进行解码,以得到所述第一数据之后,所述第一设备检测与所述第一设备通信连接的目标终端设备;检测所述目标终端设备所支持的数据类型;若所述第一数据中包括与所述目标终端设备所支持的数据类型相同的目标数据,则将所述目标数据发送至所述目标终端设备。The processor is further configured to decode the M original images to obtain the first data, and then the first device detects a target terminal device that is communicatively connected to the first device; detects the target The data type supported by the terminal device; if the first data includes target data of the same data type as the data type supported by the target terminal device, the target data is sent to the target terminal device.
  24. 根据权利要求23所述的第一设备,其特征在于,所述处理器,具体用于若所述第一数据中包括与所述目标终端设备所支持的数据类型相同的目标数据,则判断所述目标数据所关联的设备标识是否与所述目标终端设备的设备标识相同;若所述目标数据所关联的设备标识与所述目标终端设备的设备标识相同,则将所述目标数据发送至所述目标终端设备。The first device according to claim 23, wherein the processor is specifically configured to, if the first data includes target data of the same data type as the data type supported by the target terminal device, determine the Whether the device identification associated with the target data is the same as the device identification of the target terminal device; if the device identification associated with the target data is the same as the device identification of the target terminal device, send the target data to the target terminal device. the target terminal device.
  25. 一种第二设备,其特征在于,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时,所述处理器用于执行以下步骤:A second device, comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, when the computer program is executed by the processor, the The processor is used to perform the following steps:
    获取待传输的第一数据,并对所述第一数据进行编码生成视频流;Obtain the first data to be transmitted, and encode the first data to generate a video stream;
    控制在屏幕上播放所述视频流,所述视频流中包括M帧图像,所述视频流中的每帧图像包括N个图像显示区域,每个图像显示区域指示所述第一数据中的一个数据单元,以便于第一设备采集所述第二设备的屏幕上播放的所述视频流中的每帧图像的画面,得到M个原始图像,并对所述M个原始图像进行解码,以得到所述第一数据,其中,M和N为大于或等于2的整数。Controlling to play the video stream on the screen, the video stream includes M frames of images, each frame of image in the video stream includes N image display areas, and each image display area indicates one of the first data A data unit, so that the first device collects the picture of each frame of the image in the video stream played on the screen of the second device, obtains M original images, and decodes the M original images to obtain In the first data, M and N are integers greater than or equal to 2.
  26. 根据权利要求25所述的第二设备,其特征在于,所述每个图像显示区域通过显示的颜色指示所述第一数据中的一个数据单元。26. The second device according to claim 25, wherein each image display area indicates a data unit in the first data by a displayed color.
  27. 根据权利要求26所述的第二设备,其特征在于,所述视频流为经过加密处理的;The second device according to claim 26, wherein the video stream is encrypted;
    所述处理器,还用于传输与所述视频流相关联的密钥,以便于所述第一设备从所述第二设备处获取与所述视频流相关联的密钥,以及所述第一设备根据所述M个原始图像中每个原始图像中显示的颜色,解码所述M个原始图像,获取所述M个原始图像所对应的原始数据;根据所述密匙解密所述原始数据,以得到所述第一数据。The processor is further configured to transmit a key associated with the video stream, so that the first device obtains the key associated with the video stream from the second device, and the first device A device decodes the M original images according to the color displayed in each of the M original images, and obtains the original data corresponding to the M original images; decrypts the original data according to the key , to obtain the first data.
  28. 根据权利要求27所述第二设备,其特征在于,所述处理器,还用于控制在屏幕上播放视频流之后,接收所述第一设备发送的目标序号,所述目标序号为所述第一设备采集所述视频流的每帧图像的画面,得到的M个原始图像中包括的图像序号中缺失的图像序号;根据所述目标序号重新发送所述视频流中播放顺序与所述目标序号所对应的图像。The second device according to claim 27, wherein the processor is further configured to control, after the video stream is played on the screen, to receive a target sequence number sent by the first device, where the target sequence number is the first A device collects the picture of each frame of the video stream, and obtains the missing image sequence number in the image sequence numbers included in the M original images; resends the playback sequence and the target sequence number in the video stream according to the target sequence number. the corresponding image.
  29. 一种数据传输系统,其特征在于,包括:如权利要求16至24中任一项或权利要求14所述的第一设备,以及如权利要求25至28任一项或权利要求15所述的第二设备。A data transmission system, characterized by comprising: the first device as claimed in any one of claims 16 to 24 or claim 14, and the first device as claimed in any one of claims 25 to 28 or claim 15 second device.
  30. 一种计算机可读存储介质,其特征在于,包括:所述计算机可读存储介质上存储计算机程序,所述计算机程序被处理器执行时实现如权利要求1至9任一项所述的数据传输方法的步骤,或者,实现如权利要求10至13任一项所述的数据传输方法的步骤。A computer-readable storage medium, comprising: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the data transmission according to any one of claims 1 to 9 is implemented The steps of the method, or, the steps of implementing the data transmission method as claimed in any one of claims 10 to 13.
PCT/CN2021/094684 2020-07-16 2021-05-19 Data transmission method and device, and storage medium WO2022012153A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010688686.3 2020-07-16
CN202010688686.3A CN111885404A (en) 2020-07-16 2020-07-16 Data transmission method, device and storage medium

Publications (1)

Publication Number Publication Date
WO2022012153A1 true WO2022012153A1 (en) 2022-01-20

Family

ID=73155603

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/094684 WO2022012153A1 (en) 2020-07-16 2021-05-19 Data transmission method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN111885404A (en)
WO (1) WO2022012153A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277161A (en) * 2022-07-22 2022-11-01 国科华盾(北京)科技有限公司 Network encryption system based on big data

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885404A (en) * 2020-07-16 2020-11-03 RealMe重庆移动通信有限公司 Data transmission method, device and storage medium
CN113795015B (en) * 2021-08-17 2023-10-20 咪咕文化科技有限公司 Data transmission method, device, equipment and computer readable storage medium
WO2024026889A1 (en) * 2022-08-05 2024-02-08 北京小米移动软件有限公司 Data type determination methods, apparatuses, device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120325A (en) * 2015-09-15 2015-12-02 中国人民解放军信息工程大学 Information transmission method and information transmission system
US20180191437A1 (en) * 2016-01-08 2018-07-05 Foundation For Research And Business, Seoul National University Of Science And Technology A method for visible light communication using display colors and pattern types of display
CN109104243A (en) * 2018-08-01 2018-12-28 北京邮电大学 A kind of pixel communication means, information send terminal and information receiving terminal
CN109983793A (en) * 2016-09-29 2019-07-05 加利福尼亚大学董事会 Visible light communication lock
CN111885404A (en) * 2020-07-16 2020-11-03 RealMe重庆移动通信有限公司 Data transmission method, device and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155311B (en) * 2006-09-27 2012-09-05 中兴通讯股份有限公司 Video code stream error detecting and processing method in video communication
CN101409609A (en) * 2007-10-09 2009-04-15 北京信威通信技术股份有限公司 Method and apparatus for high-efficiency reliable voice transmission in wireless system
CN103812558B (en) * 2013-07-31 2015-09-30 深圳光启智能光子技术有限公司 The method of reseptance of visible light signal and device thereof
CN104244109B (en) * 2014-09-19 2017-12-08 浙江宇视科技有限公司 A kind of Media Stream transmitting and the method and apparatus received
CN107911170A (en) * 2017-12-22 2018-04-13 中国人民解放军战略支援部队信息工程大学 A kind of visible light communication recognition methods and system based on flexible screen
CN108322836A (en) * 2018-01-24 2018-07-24 北京奇艺世纪科技有限公司 A kind of method and device of data transmission
CN108616334B (en) * 2018-05-10 2020-09-29 南京中兴软件有限责任公司 Message transmission method, device, system, storage medium and electronic device
CN110855362B (en) * 2019-11-18 2021-08-03 南京工程学院 Secret communication method and system based on visible light LED matrix

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120325A (en) * 2015-09-15 2015-12-02 中国人民解放军信息工程大学 Information transmission method and information transmission system
US20180191437A1 (en) * 2016-01-08 2018-07-05 Foundation For Research And Business, Seoul National University Of Science And Technology A method for visible light communication using display colors and pattern types of display
CN109983793A (en) * 2016-09-29 2019-07-05 加利福尼亚大学董事会 Visible light communication lock
CN109104243A (en) * 2018-08-01 2018-12-28 北京邮电大学 A kind of pixel communication means, information send terminal and information receiving terminal
CN111885404A (en) * 2020-07-16 2020-11-03 RealMe重庆移动通信有限公司 Data transmission method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277161A (en) * 2022-07-22 2022-11-01 国科华盾(北京)科技有限公司 Network encryption system based on big data

Also Published As

Publication number Publication date
CN111885404A (en) 2020-11-03

Similar Documents

Publication Publication Date Title
WO2022012153A1 (en) Data transmission method and device, and storage medium
CN111459433B (en) Screen transmission method, device and storage medium
KR102389576B1 (en) Apparatus and method for detecting counterfeit advertiser in wireless communication system
WO2018184266A1 (en) Communication method, device and system in live broadcasting channel
CN108243481B (en) File transmission method and device
WO2018121086A1 (en) Method for connecting to hidden ap, and terminal device
WO2017063283A1 (en) System and method for triggering smart vehicle-mounted terminal
US11871478B2 (en) Bluetooth low energy-based communication method and related apparatus
US20120173744A1 (en) Wireless connection method and apparatus using image recognition in mobile communication terminal
WO2023011376A1 (en) Key updating method in beidou communication system, and system and related apparatus
WO2021184264A1 (en) Data saving method, data access method, and related apparatus and device
JP2014082717A (en) Wireless communication system, portable terminal, digital camera, communication method, and program
US20180007019A1 (en) Method and apparatus for encrypting and decrypting picture, and device
CN110121084A (en) The methods, devices and systems of port switching
WO2015117352A1 (en) Data processing method, data sending and receiving terminal, and data transmission system
WO2021078215A1 (en) Method for cross-terminal switching of cloud game and related device
US8787577B2 (en) Method and system for wireless transmission of content
CN113676879A (en) Method, electronic device and system for sharing information
CN108012270B (en) Information processing method, equipment and computer readable storage medium
CN108270764B (en) Application login method, server and mobile terminal
KR20150116220A (en) Media streaming method and electronic device thereof
CN107835297B (en) Information updating method, mobile terminal and computer readable storage medium
CN112888024B (en) Data processing method, data processing device, storage medium and electronic equipment
CN110190947B (en) Information encryption and decryption method, terminal and computer readable storage medium
US20220022198A1 (en) Method for radio link monitoring, terminal, base station, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21841819

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21841819

Country of ref document: EP

Kind code of ref document: A1