CN110492935B - Data processing system, method and device and terminal equipment - Google Patents
Data processing system, method and device and terminal equipment Download PDFInfo
- Publication number
- CN110492935B CN110492935B CN201910646057.1A CN201910646057A CN110492935B CN 110492935 B CN110492935 B CN 110492935B CN 201910646057 A CN201910646057 A CN 201910646057A CN 110492935 B CN110492935 B CN 110492935B
- Authority
- CN
- China
- Prior art keywords
- visible light
- communication key
- video
- gateway
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/116—Visible light communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/08—Key distribution or management, e.g. generation, sharing or updating, of cryptographic keys or passwords
- H04L9/0816—Key establishment, i.e. cryptographic processes or cryptographic protocols whereby a shared secret becomes available to two or more parties, for subsequent use
- H04L9/0819—Key transport or distribution, i.e. key establishment techniques where one party creates or otherwise obtains a secret value, and securely transfers it to the other(s)
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/03—Protecting confidentiality, e.g. by encryption
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application is applicable to the technical field of communication, and provides a data processing system, a method, a device, a terminal device and a computer readable storage medium, which comprise the following steps: the device to be networked sends a visible light signal according to the communication key; the server acquires a video corresponding to the visible light signal, determines a communication key corresponding to the video, and sends the communication key to a gateway; the gateway is used for acquiring the communication key. By the system, the communication safety can be improved.
Description
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a data processing system, a method, an apparatus, a terminal device, and a computer-readable storage medium.
Background
Nowadays, information technology is rapidly developing, and the internet of things is an important component of new-generation information technology.
However, in the practical application of the internet of things, some problems which are difficult to solve exist. For example, when a device only supporting the ZigBee (ZigBee) protocol enters the ZigBee network, the device can only send a communication key to the gateway in the form of a data packet by using the ZigBee protocol, and in the process, the communication key is easily captured by a malicious wireless network listener, which causes low security of communication.
Disclosure of Invention
In view of this, embodiments of the present application provide a data processing system, a method, a device, a terminal device, and a computer-readable storage medium, so as to solve the problem that, in the prior art, when a device that only supports a ZigBee (ZigBee) protocol enters a ZigBee network, the security of communication is low.
A first aspect of an embodiment of the present application provides a data processing system, including: the device to be networked sends a visible light signal according to the communication key;
the server acquires a video corresponding to the visible light signal, determines a communication key corresponding to the video, and sends the communication key to a gateway;
the gateway is used for acquiring the communication key.
A second aspect of an embodiment of the present application provides a data processing method, including:
acquiring a video corresponding to a visible light signal, wherein the visible light signal is sent by a device to be networked;
determining a communication key corresponding to the video;
and sending the communication key to a gateway.
A third aspect of an embodiment of the present application provides a data processing apparatus, including:
the video acquisition unit is used for acquiring a video corresponding to a visible light signal, and the visible light signal is sent by the equipment to be accessed to the network;
the determining unit is used for determining a communication key corresponding to the video;
and the sending unit is used for sending the communication key to a gateway.
A fourth aspect of the embodiments of the present application provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the data processing method as described when executing the computer program.
A fifth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program that, when executed by a processor, implements the steps of the data processing method as described.
Compared with the prior art, the embodiment of the application has the advantages that: whether a protocol supported by the equipment to be networked is only a ZigBee protocol or not, the equipment to be networked can send out visible light signals according to the communication key, the server obtains videos corresponding to the visible light signals, then the communication key corresponding to the videos is determined, and then the communication key is sent to the gateway.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a schematic diagram of a data processing system provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of a sub-parameter provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to explain the technical solution described in the present application, the following description will be given by way of specific examples. It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In particular implementations, the terminal devices described in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
In the discussion that follows, a terminal device that includes a display and a touch-sensitive surface is described. However, it should be understood that the terminal device may include one or more other physical user interface devices such as a physical keyboard, mouse, and/or joystick.
The terminal device supports various applications, such as one or more of the following: a drawing application, a presentation application, a word processing application, a website creation application, a disc burning application, a spreadsheet application, a gaming application, a telephone application, a video conferencing application, an email application, an instant messaging application, an exercise support application, a photo management application, a digital camera application, a web browsing application, a digital music player application, and/or a digital video player application.
Various applications that may be executed on the terminal device may use at least one common physical user interface device, such as a touch-sensitive surface. One or more functions of the touch-sensitive surface and corresponding information displayed on the terminal can be adjusted and/or changed between applications and/or within respective applications. In this way, a common physical architecture (e.g., touch-sensitive surface) of the terminal can support various applications with user interfaces that are intuitive and transparent to the user.
The first embodiment is as follows:
fig. 1 shows a schematic flow chart of a data processing system provided in an embodiment of the present application, which is detailed as follows:
the data processing system includes: a device to be networked 101, a server 102 and a gateway 103.
And the device to be networked 101 is configured to send a visible light signal according to the communication key. The device to be networked 101 is specifically configured to: converting a binary system corresponding to a pre-stored communication key into coded data according to a first preset binary system conversion rule, wherein the binary system of the communication key is different from that of the coded data, for example, when the binary system of the communication key is hexadecimal, the binary system of the coded data can be binary; the visible light source is controlled to emit a visible light signal according to the encoded data, the encoded data includes a plurality of sub-parameters, the sub-parameters may be 0 or 1, for example, the encoded data 11110111 includes 8 sub-parameters, the 8 sub-parameters are 1, 0, 1, and 1, respectively, and the device to be networked 101 may support a ZigBee protocol.
Optionally, in the prior art, one sub-parameter only corresponds to one visible light intensity, so that the error probability of the communication key determined by the subsequent server is increased, and the network access efficiency of the device to be accessed to the network is reduced, which is illustrated in the following example: assuming that a corresponding system of a pre-stored communication key is hexadecimal, the communication key is FF, the communication key FF is converted into encoded data 11111111, and the encoded data 11111111 only has one sub-parameter "1", so that the encoded data only corresponds to one visible light intensity, and when a subsequent server determines the encoded data according to the visible light intensity, an abnormal condition that the sub-parameter bit number in the encoded data is wrong easily occurs, so that the communication key determined by the server is wrong, and further the network access failure of the device to be networked is caused. In order to improve the accuracy of data and the network access efficiency of the device to be networked, therefore, when the device to be networked 101 performs the control of the visible light source to emit the visible light signal according to the encoded data, the method specifically includes:
a1, determining the duration of the first visible light intensity and the duration of the second visible light intensity according to the sub-parameters in the coded data and the preset sub-parameter time length, wherein the duration of the first visible light intensity and the duration of the second visible light intensity meet the following conditions: the sum of the duration of the first visible light brightness and the duration of the second visible light brightness is equal to a preset sub-parameter time length, and it needs to be ensured that a quotient obtained by dividing the duration of the first visible light brightness by the duration of the second visible light brightness is equal to a preset quotient, different sub-parameters correspond to different preset quotients, and the preset sub-parameter time length is a time length in which the device to be networked 101 controls the visible light source to emit a visible light signal so as to display one sub-parameter.
And A2, controlling the visible light source to emit the visible light signal according to the duration of the first visible light intensity and the duration of the second visible light intensity.
For example, as shown in fig. 2, assuming that the time length of the preset sub-parameter corresponding to the sub-parameter 1 is 0.96 ms, and the preset quotient corresponding to the sub-parameter 1 is 3, it can be determined that the duration of the first visible light intensity and the duration of the second visible light intensity are 0.72 ms and 0.24 ms, respectively, so as to satisfy the following conditions: the sum of the duration of the first visible light intensity and the duration of the second visible light intensity is equal to a preset sub-parameter time length of 0.96 ms, and it is required to ensure that a quotient of the duration of the first visible light intensity divided by the duration of the second visible light intensity is equal to a preset quotient 3, and then controlling the visible light source to emit the visible light signal according to the duration of the first visible light intensity and the duration of the second visible light intensity is specifically: after the duration of the visible light signal with the first visible light intensity emitted by the visible light source is controlled to be 0.72 milliseconds, the duration of the visible light signal with the second visible light intensity emitted by the visible light source is controlled to be 0.24 milliseconds.
Because one sub-parameter corresponds to two kinds of visible light brightness, for example, 8 sub-parameters 1 are provided in the coded data 11111111, each sub-parameter 1 corresponds to two kinds of visible light brightness, and one coded data 11111111111 needs to be displayed by a visible light source, the visible light source needs to be controlled to jump between two kinds of visible light brightness for many times, so that the server can determine the number of bits of the sub-parameters in the coded data more easily and more accurately, and therefore, the accuracy of the coded data determined by the server and the network access efficiency of the device to be networked are greatly improved.
Optionally, in order to facilitate a user to control a network access process of the device to be networked, the data processing system further includes: a user terminal.
The user terminal is configured to: before the device to be networked 101 executes the sending of the visible light signal according to the communication key, the device to be networked is configured to receive a networking function starting instruction operated by a user, and send the networking function starting instruction to the server 102, so as to instruct the server 102 to send the networking function starting instruction to the gateway 103.
Correspondingly, the server 102 may be configured to receive the networking function starting instruction, and send the networking function starting instruction to the gateway 103, so as to instruct the gateway 103 to start the networking function.
Correspondingly, the gateway 103 may be configured to receive the networking function starting instruction, and start the networking function.
The user terminal may be further configured to: after the device to be networked 101 executes the sending of the visible light signal according to the communication key, shooting the visible light signal to generate a video corresponding to the visible light signal, and sending the video corresponding to the visible light signal to the server 102.
The server 102 is configured to:
and B1, acquiring the video corresponding to the visible light signal.
And B2, determining a communication key corresponding to the video.
B3, sending the communication key to the gateway.
The server 102, when executing the step B1, is specifically configured to: the video corresponding to the visible light signal is acquired through a wired data transmission mode or a wireless data transmission mode, the video is composed of a plurality of video frames, and the server 102 can support a cloud computing platform.
The server 102, when executing the step B2, is specifically configured to: and determining a pixel value of a video frame in the video, and determining a communication key corresponding to the video according to the pixel value.
Optionally, in order to increase the speed of determining the communication key, the server 102 is specifically configured to, when executing step B2:
c1, determining the duration of the first visible light intensity and the duration of the second visible light intensity according to the video.
C2, determining the communication key according to the duration of the first visible light intensity and the duration of the second visible light intensity.
Optionally, when the server 102 executes the step C1, it is specifically configured to: dividing a plurality of video frame sets in a video according to the preset sub-parameter time length, determining the pixel value of each video frame, judging whether the visible light brightness of the video frame is the first visible light brightness or the second visible light brightness according to the pixel value, determining the time required by the server 102 to obtain the continuous video frames corresponding to the first visible light brightness in the video frame sets as the duration of the first visible light brightness, and determining the time required by the server 102 to obtain the continuous video frames corresponding to the second visible light brightness in the video frame sets as the duration of the second visible light brightness.
For example, assuming that a certain video is 0.96 seconds, the preset sub-parameter time length is 0.12 milliseconds, the server 102 divides eight video frame sets in the video, the eight video frame sets are a, b, c, D, e, he, g and oct, respectively, the time length corresponding to each video frame set is equal to 0.12 milliseconds, taking the video frame set a as an example, assuming that the video frames in the video frame set a are A, B, C and D, the server 102 determines the pixel values of the video frames A, B, C and D, determines whether the visible light brightness of the video frames is the first visible light brightness or the second visible light brightness according to the pixel values, assuming that the visible light brightness of the video frames A, B, C, D is the first visible light brightness, and the second visible light brightness, and the time required for the server 102 to obtain each video frame is 0.03 milliseconds, the continuous video frames corresponding to the first visible light intensity in the video frame set a include A, B and C, that is, the duration of the first visible light intensity is 0.09 ms, the duration of the first visible light intensity is subtracted from the 0.12 ms corresponding to each video frame set by 0.09 ms, the duration of the second visible light intensity is 0.03 ms, and so on, the duration of the first visible light intensity and the duration of the second visible light intensity in the video frame sets b, C, d, e, he, g and oct are obtained.
Optionally, when the server 102 executes the step C2, it is specifically configured to: determining a calculation result according to a preset calculation rule by using the duration of the first visible light brightness and the duration of the second visible light brightness, determining a sub-parameter corresponding to the calculation result according to a preset data corresponding relationship, determining encoded data according to the sub-parameter, and converting the encoded data into a communication key according to a second preset system conversion rule, wherein the preset calculation rule can be obtained by dividing the duration of the first visible light brightness by the duration of the second visible light brightness, correspondingly, the calculation result is a quotient obtained by dividing the duration of the first visible light brightness by the duration of the second visible light brightness, and the preset data corresponding relationship is a preset corresponding relationship between the calculation result and the sub-parameter.
Referring to the above example, assuming that the preset calculation rule is to divide the duration of the first visible light brightness by the duration of the second visible light brightness, calculating the duration of the first visible light brightness and the duration of the second visible light brightness according to the preset calculation rule, and obtaining a calculation result as a quotient obtained by dividing the duration of the first visible light brightness by the duration of the second visible light brightness, assuming that the calculation result corresponding to the video frame set a is 3, determining that the sub-parameter corresponding to the calculation result 3 is 1 according to the preset data corresponding relationship, that is, the sub-parameter corresponding to the video frame set a is 1, and so on, obtaining sub-parameters corresponding to the video frame sets b, c, d, e, he, g and g, assuming that the sub-parameters corresponding to the video frame sets b, c, d, e, g, and g are 1, 0, 1, and so on 1. 1, according to the second preset system conversion rule, 11101111 is converted into a communication key EF.
Optionally, in order to improve the security of the communication, therefore, when the server 102 performs the sending of the communication key to the gateway, the server is specifically configured to: and sending the communication key to a gateway through Wi-Fi technology.
Optionally, before performing the sending of the communication key to the gateway, the server 102 is further configured to: acquiring network access request information sent by a device to be accessed to the network; correspondingly, when the server 102 executes the sending of the communication key to the gateway, the server is specifically configured to: and sending the communication key and the network access request information to a gateway.
The server 102, when executing the step B3, is specifically configured to: and sending the communication key to the gateway according to the gateway identification information.
The gateway 103 is configured to obtain the communication key.
Optionally, in order to improve the security of communication, therefore, when the gateway 103 performs the acquiring of the communication key, it is specifically configured to: and acquiring the communication key by Wi-Fi technology, wherein the gateway 103 supports a ZigBee network and a Wi-Fi network.
Optionally, in order to improve the network access efficiency of the device to be networked, therefore, the gateway 103 is configured to: after the communication key is obtained, the network access permission information is encrypted according to the communication key, and the encrypted network access permission information is sent to the device to be networked 101.
Correspondingly, the device to be networked 101 is configured to: after the gateway 103 executes the sending of the encrypted network access permission information to the device to be networked 101, receiving the encrypted network access permission information, decrypting the encrypted network access permission information according to the communication key, judging whether decryption is successful or not, if decryption is failed, generating network access failure information, and sending the network access failure information to the user terminal; if the decryption is successful, network access success information is generated, the network access success information is encrypted according to the communication key, and the encrypted network access success information is sent to the gateway 103.
Correspondingly, the gateway 103 is configured to: after the to-be-networked device 101 executes the sending of the encrypted network access success information to the gateway 103, receiving the encrypted network access success information, decrypting the encrypted network access success information according to the communication key, and adding the device information of the to-be-networked device 101 to a white list in the gateway 103 after decrypting to obtain the network access success information, where the device information may be a media access control address.
In the embodiment of the application, no matter whether the protocol supported by the device to be networked is only a ZigBee protocol, the device to be networked can send out visible light signals according to the communication key, the server acquires the video corresponding to the visible light signals, then determines the communication key corresponding to the video, and then sends the communication key to the gateway.
Example two:
fig. 3 shows a schematic flow chart of a data processing method provided in an embodiment of the present application, which is detailed as follows:
step S301, a video corresponding to a visible light signal is obtained, wherein the visible light signal is sent by a device to be networked.
Specifically, a video corresponding to a visible light signal is obtained through a wired data transmission mode or a wireless data transmission mode, the video is composed of a plurality of video frames, the video is obtained by shooting the visible light signal through a user terminal, and the equipment to be networked can support a ZigBee protocol.
Optionally, before the step S301, the method includes: and sending a networking function starting instruction to the gateway to indicate the gateway to start the networking function.
Specifically, a networking function starting instruction sent by the user terminal is received, and then the networking function starting instruction is sent to a gateway.
Step S302, determining a communication key corresponding to the video.
Specifically, pixel values of video frames in the video are determined, and a communication key corresponding to the video is determined according to the pixel values.
Alternatively, in order to increase the speed of determining the communication key, therefore, the step S302 includes:
d1, determining the duration of the first visible light intensity and the duration of the second visible light intensity according to the video.
D2, determining a communication key according to the duration of the first visible light intensity and the duration of the second visible light intensity.
Specifically, the step D1 includes: dividing a plurality of video frame sets in a video according to the preset sub-parameter time length, determining the pixel value of each video frame, judging whether the visible light brightness of the video frame is the first visible light brightness or the second visible light brightness according to the pixel value, determining the time required for obtaining the continuous video frames corresponding to the first visible light brightness in the video frame sets as the duration of the first visible light brightness, and determining the time required for obtaining the continuous video frames corresponding to the second visible light brightness in the video frame sets as the duration of the second visible light brightness.
Specifically, the step D2 includes: calculating the duration of the first visible light brightness and the duration of the second visible light brightness according to a preset calculation rule, determining a sub-parameter corresponding to a calculation result according to a preset data corresponding relationship, determining encoded data according to the sub-parameter, and converting the encoded data into a communication key according to a second preset system conversion rule, wherein the preset calculation rule can be a quotient obtained by dividing the duration of the first visible light brightness by the duration of the second visible light brightness, correspondingly, the calculation result is a quotient obtained by dividing the duration of the first visible light brightness by the duration of the second visible light brightness, and the preset data corresponding relationship is a preset corresponding relationship between the calculation result and the sub-parameter.
Step S303, sending the communication key to a gateway.
Specifically, the step S303 includes: and sending the communication key to the gateway according to the gateway identification information.
Optionally, in order to improve the security of communication, therefore, the step S303 includes: and sending the communication key to a gateway through Wi-Fi technology.
Optionally, for accuracy of the sent communication key, therefore, said sending the communication key to the gateway by Wi-Fi technology comprises: and carrying out format correction on the communication key, and sending the communication key corresponding to the correct format correction result to the gateway through the Wi-Fi technology.
Optionally, before the step S303, the method includes: acquiring network access request information sent by a device to be accessed to the network; correspondingly, the step S303 includes: and sending the communication key and the network access request information to a gateway.
Specifically, the acquiring network access request information sent by the device to be networked includes: acquiring device information and network access request information sent by a device to be networked through the user terminal, wherein correspondingly, the sending of the communication key and the network access request information to the gateway comprises the following steps: and sending the communication key, the network access request information and the equipment information to a gateway, wherein the gateway 103 supports a ZigBee network and a Wi-Fi network.
In the embodiment of the application, because the malicious wireless network listener can not detect the visible light signal, the communication key corresponding to the video is determined by acquiring the video corresponding to the visible light signal, and then the communication key is sent to the gateway, so that the communication key can be prevented from being acquired by the malicious wireless network listener, and the communication safety is greatly improved.
Example three:
corresponding to the above embodiments, fig. 4 shows a schematic structural diagram of a data processing apparatus provided in the embodiments of the present application, and for convenience of description, only the parts related to the embodiments of the present application are shown.
The data processing apparatus includes: a video acquisition unit 401, a determination unit 402, and a transmission unit 403.
The video obtaining unit 401 is configured to obtain a video corresponding to a visible light signal, where the visible light signal is sent by a device to be networked.
The video obtaining unit 401 is specifically configured to: the method comprises the steps of obtaining a video corresponding to a visible light signal through a wired data transmission mode or a wireless data transmission mode, wherein the video is composed of a plurality of video frames, the video is obtained by shooting the visible light signal through a user terminal, and the equipment to be networked can support a ZigBee protocol.
Optionally, the data processing apparatus further comprises: an instruction transmitting unit.
The instruction sending unit is used for: before the video acquiring unit 401 executes the video corresponding to the acquired visible light signal, a networking function starting instruction is sent to the gateway to instruct the gateway to start the networking function.
The determining unit 402 is configured to determine a communication key corresponding to the video.
The determining unit 402 is specifically configured to: and determining a pixel value of a video frame in the video, and determining a communication key corresponding to the video according to the pixel value.
Alternatively, in order to increase the speed of determining the communication key, therefore, the determining unit 402 includes: a first determining subunit and a second determining subunit.
The first determining subunit is configured to determine, according to the video, a duration of the first visible light intensity and a duration of the second visible light intensity.
The second determining subunit is configured to determine the communication key according to the duration of the first visible light intensity and the duration of the second visible light intensity.
The first determining subunit is specifically configured to divide a plurality of video frame sets in a video according to the preset sub-parameter time length, determine a pixel value of the video frame, determine whether the visible light brightness of the video frame is the first visible light brightness or the second visible light brightness according to the pixel value, determine the time required for obtaining the continuous video frames corresponding to the first visible light brightness in the video frame sets as the duration of the first visible light brightness, and determine the time required for obtaining the continuous video frames corresponding to the second visible light brightness in the video frame sets as the duration of the second visible light brightness.
The second determining subunit is configured to calculate a duration of the first visible light brightness and a duration of the second visible light brightness according to a preset calculation rule, determine a sub-parameter corresponding to a calculation result according to a preset data correspondence relationship, determine encoded data according to the sub-parameter, and convert the encoded data into a communication key according to a second preset binary conversion rule, where the preset calculation rule may be that the duration of the first visible light brightness is divided by the duration of the second visible light brightness, and correspondingly, the calculation result is a quotient obtained by dividing the duration of the first visible light brightness by the duration of the second visible light brightness, and the preset data correspondence relationship is a preset correspondence relationship between the calculation result and the sub-parameter.
The sending unit 403 is configured to send the communication key to a gateway.
Optionally, to improve the security of communication, therefore, the sending unit 403 is specifically configured to: and sending the communication key to a gateway through Wi-Fi technology.
Optionally, for accuracy of the sent communication key, therefore, the sending unit 403, when performing the sending of the communication key to the gateway by the Wi-Fi technology, is specifically configured to: and carrying out format correction on the communication key, and sending the communication key corresponding to the correct format correction result to the gateway through the Wi-Fi technology.
Optionally, the data processing apparatus further comprises: an information acquisition unit.
The information acquisition unit is used for: before the sending unit 403 executes the sending of the communication key to the gateway, obtaining network access request information sent by a device to be networked; correspondingly, when the sending unit 403 executes the sending of the communication key to the gateway, specifically, the sending unit is configured to: and sending the communication key and the network access request information to a gateway.
In the embodiment of the application, because the malicious wireless network listener can not detect the visible light signal, the communication key corresponding to the video is determined by acquiring the video corresponding to the visible light signal, and then the communication key is sent to the gateway, so that the communication key can be prevented from being acquired by the malicious wireless network listener, and the communication safety is greatly improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Example four:
fig. 5 is a schematic diagram of a terminal device provided in an embodiment of the present application. As shown in fig. 5, the terminal device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50, when executing the computer program 52, implements the steps in the above-described embodiments of the data processing method, such as the steps S301 to S303 shown in fig. 3. Alternatively, the processor 50, when executing the computer program 52, implements the functions of the units in the device embodiments described above, such as the functions of the units 401 to 403 shown in fig. 4.
Illustratively, the computer program 52 may be partitioned into one or more modules/units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 52 in the terminal device 5. For example, the computer program 52 may be divided into a video acquisition unit, a determination unit and a transmission unit, each unit having the following specific functions:
the video acquisition unit is used for acquiring a video corresponding to a visible light signal, and the visible light signal is sent by the equipment to be networked.
And the determining unit is used for determining a communication key corresponding to the video.
And the sending unit is used for sending the communication key to a gateway.
The terminal device 5 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 50, a memory 51. Those skilled in the art will appreciate that fig. 5 is merely an example of a terminal device 5 and does not constitute a limitation of terminal device 5 and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device may also include input-output devices, network access devices, buses, etc.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing the computer program and other programs and data required by the terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.
Claims (10)
1. A data processing system is characterized by comprising a device to be accessed to a network, a server and a gateway, wherein the device to be accessed to the network sends a visible light signal according to a communication key;
the server acquires a video corresponding to the visible light signal, determines a pixel value of a video frame in the video, determines a communication key corresponding to the video according to the pixel value, and sends the communication key to a gateway;
the gateway is used for acquiring the communication key.
2. A data processing method, comprising:
acquiring a video corresponding to a visible light signal, wherein the visible light signal is sent by a device to be networked;
determining a communication key corresponding to the video, wherein the determining the communication key corresponding to the video comprises: determining a pixel value of a video frame in the video, and determining a communication key corresponding to the video according to the pixel value;
and sending the communication key to a gateway.
3. The data processing method of claim 2, wherein the determining the communication key corresponding to the video comprises:
determining a duration of the first visible light intensity and a duration of the second visible light intensity from the video;
and determining a communication key according to the duration of the first visible light intensity and the duration of the second visible light intensity.
4. The data processing method of claim 2, wherein said sending the communication key to a gateway comprises:
and sending the communication key to a gateway through a wireless broadband Wi-Fi technology.
5. The data processing method of claim 2, wherein before the acquiring the video corresponding to the visible light signal, the method comprises:
and sending a networking function starting instruction to the gateway to indicate the gateway to start the networking function.
6. The data processing method of claim 2, wherein prior to said sending the communication key to the gateway, comprising:
acquiring network access request information sent by a device to be accessed to the network;
correspondingly, the sending the communication key to a gateway comprises:
and sending the communication key and the network access request information to a gateway.
7. A data processing apparatus, comprising:
the video acquisition unit is used for acquiring a video corresponding to a visible light signal, and the visible light signal is sent by the equipment to be accessed to the network;
a determining unit, configured to determine a communication key corresponding to the video, where the determining unit, when performing the determination of the communication key corresponding to the video, is specifically configured to: determining a pixel value of a video frame in the video, and determining a communication key corresponding to the video according to the pixel value;
and the sending unit is used for sending the communication key to a gateway.
8. The data processing apparatus of claim 7, wherein the determining unit comprises:
a first determining subunit for determining, from the video, a duration of the first visible light intensity and a duration of the second visible light intensity;
and the second determining subunit is used for determining the communication key according to the duration of the first visible light intensity and the duration of the second visible light intensity.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 2 to 6 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 2 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910646057.1A CN110492935B (en) | 2019-07-17 | 2019-07-17 | Data processing system, method and device and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910646057.1A CN110492935B (en) | 2019-07-17 | 2019-07-17 | Data processing system, method and device and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110492935A CN110492935A (en) | 2019-11-22 |
CN110492935B true CN110492935B (en) | 2020-11-10 |
Family
ID=68547293
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910646057.1A Active CN110492935B (en) | 2019-07-17 | 2019-07-17 | Data processing system, method and device and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110492935B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111510214B (en) * | 2020-04-23 | 2021-11-12 | 京东方科技集团股份有限公司 | Optical communication device, optical communication system, and communication connection establishment method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102801473A (en) * | 2012-08-06 | 2012-11-28 | 南京邮电大学 | Visible light video communication system based on digital signal processing |
CN107360165A (en) * | 2017-07-13 | 2017-11-17 | 北京元心科技有限公司 | Terminal device, cloud server and method and device for managing and controlling operating system |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9591175B2 (en) * | 2014-11-02 | 2017-03-07 | Clover Network, Inc. | Connecting a printer and a mobile device using identification information printed by the printer |
-
2019
- 2019-07-17 CN CN201910646057.1A patent/CN110492935B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102801473A (en) * | 2012-08-06 | 2012-11-28 | 南京邮电大学 | Visible light video communication system based on digital signal processing |
CN107360165A (en) * | 2017-07-13 | 2017-11-17 | 北京元心科技有限公司 | Terminal device, cloud server and method and device for managing and controlling operating system |
Also Published As
Publication number | Publication date |
---|---|
CN110492935A (en) | 2019-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10977761B2 (en) | Digital watermark embedding method and extraction method, digital watermark embedding apparatus and extraction apparatus, and digital watermark system | |
CN108900770B (en) | Method and device for controlling rotation of camera, smart watch and mobile terminal | |
US20180329703A1 (en) | Method, apparatus and system for verifying code integrity on clients | |
CN109756568B (en) | File processing method and device and computer readable storage medium | |
EP3869346B1 (en) | Apparatus and method of recognizing external device in a communication system | |
CN107888553B (en) | Verification method, server and system | |
CN110244963B (en) | Data updating method and device and terminal equipment | |
US20220391229A1 (en) | Icon updating method and apparatus, and electronic device | |
TW201426593A (en) | Method and apparatus for information verification | |
CN113038192B (en) | Video processing method and device, electronic equipment and storage medium | |
CN111309617A (en) | Application program control method and device, storage medium and electronic equipment | |
CN103444152B (en) | A kind of information method of operating and system | |
EP2804123B1 (en) | Method for providing DRM service and electronic device thereof | |
CN111026408A (en) | Method and device for managing application and computer storage medium | |
CN109636460B (en) | Service processing method, device, equipment and storage medium | |
CN110492935B (en) | Data processing system, method and device and terminal equipment | |
CN110545542A (en) | Main control key downloading method and device based on asymmetric encryption algorithm and computer equipment | |
CN112711955B (en) | NFC information transmission method, NFC information transmission device and terminal | |
CN106775835B (en) | Method, server and terminal for acquiring upgrade file | |
CN110245016B (en) | Data processing method, system, device and terminal equipment | |
CN109104481B (en) | File integrity detection method, file integrity detection device and terminal equipment | |
CN108536512B (en) | Interface switching method and device and terminal equipment | |
CN107947935B (en) | Message signature method, system and terminal equipment | |
CN107862010B (en) | Method and device for acquiring information of application system of Internet of things and mobile terminal | |
CN105302617A (en) | Method and sever for downloading application program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |