CN111784997A - Data transmission method and system based on lamplight - Google Patents

Data transmission method and system based on lamplight Download PDF

Info

Publication number
CN111784997A
CN111784997A CN202010664998.0A CN202010664998A CN111784997A CN 111784997 A CN111784997 A CN 111784997A CN 202010664998 A CN202010664998 A CN 202010664998A CN 111784997 A CN111784997 A CN 111784997A
Authority
CN
China
Prior art keywords
data
transmitted
equipment
light
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010664998.0A
Other languages
Chinese (zh)
Inventor
史敬威
胡爱民
陈国斌
周波
刘晓炜
李如强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Branch Of Weihai Beiyang Electric Group Co ltd
Original Assignee
Beijing Branch Of Weihai Beiyang Electric Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Branch Of Weihai Beiyang Electric Group Co ltd filed Critical Beijing Branch Of Weihai Beiyang Electric Group Co ltd
Priority to CN202010664998.0A priority Critical patent/CN111784997A/en
Publication of CN111784997A publication Critical patent/CN111784997A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Optical Communication System (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a data transmission method based on lamplight, which comprises the following steps: the method comprises the steps that first equipment obtains data to be transmitted; processing data to be transmitted to obtain a color identification sequence; displaying colors corresponding to the color identification sequence through light; the second equipment acquires video data when the light displays the color corresponding to the color identification sequence; analyzing the video data to obtain a color identification sequence corresponding to the video data; and determining data to be transmitted according to the color identification sequence. Therefore, the lighting color of the existing light in the first equipment can be utilized to transmit data, so that the second equipment can obtain the data to be transmitted of the first equipment on the basis of not changing the existing hardware structure of the first equipment, and the purpose of transmitting the data by utilizing the lighting of the light is achieved.

Description

Data transmission method and system based on lamplight
Technical Field
The invention relates to the technical field of data processing, in particular to a data transmission method and system based on lamplight.
Background
With the development of scientific technology, data transmission can be performed in various manners, such as a wired transmission manner and a Wireless transmission manner, where the Wireless transmission manner further includes bluetooth transmission, Wireless-Fidelity (WIFI) transmission, and the like.
In general data transmission, data is generally encoded first and then transmitted through data transmission channels, and the data transmission channels have good anti-interference performance, but generally require communication devices such as WIFI, bluetooth and Zigbee, and if no communication device exists, data transmission cannot be performed.
Therefore, how to transmit or communicate data without increasing communication equipment is a problem that needs to be solved urgently.
Disclosure of Invention
The embodiment of the invention aims to provide a data transmission method and a data transmission system based on lamplight, and aims to solve the problem that data transmission cannot be carried out on the premise of not increasing communication equipment in the practical technology.
In a first aspect, the present invention provides a data transmission method based on light emitting diode light, where the data transmission method based on light comprises:
the method comprises the steps that first equipment obtains data to be transmitted;
the first equipment processes the data to be transmitted to obtain a color identification sequence;
the first equipment displays the color and/or the display duration corresponding to the color identification sequence through light;
the second equipment acquires video data when the light displays the color corresponding to the color identification sequence;
the second equipment analyzes the video data to obtain a color identification sequence corresponding to the video data;
and the second equipment determines the data to be transmitted according to the color identification sequence.
In a possible implementation manner, the data to be transmitted includes a media access control MAC address of the first device and/or failure data of the first device.
In one possible implementation, the method further includes, before the step of:
the first device and the second device are preset with a data coding protocol; the data coding protocol comprises a color identification and/or a display duration corresponding to each data.
In a possible implementation manner, the processing, by the first device, the data to be transmitted to obtain the color identifier sequence specifically includes:
and after the first equipment adds the frame header to the data to be transmitted, processing the data to be transmitted after the frame header is added into a color identification sequence.
In a possible implementation manner, the determining, by the second device, the to-be-transmitted data according to the color identification sequence specifically includes:
the second equipment acquires a color image displayed by lamplight in the video data;
and the second equipment determines data to be transmitted according to the color image and the data coding protocol.
In one possible implementation, the first device includes an intelligent hardware device such as an eye patch with light, a bracelet, or a human monitoring device.
In a second aspect, the present invention provides a light-based data transmission system comprising a first device and a second device as described in any one of the first aspect.
By applying the data transmission method and system based on the lamplight, provided by the embodiment of the invention, the data can be transmitted by utilizing different lighting colors and/or lighting durations of the existing lamplight in the first equipment, so that the second equipment can obtain the data to be transmitted of the first equipment on the basis of not changing the existing hardware structure of the first equipment, and the purpose of transmitting the data by utilizing the lighting of the lamplight is realized.
Drawings
Fig. 1 is a schematic flow chart of a data transmission method based on light according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data transmission system based on light according to a second embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be further noted that, for the convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 is a schematic flow chart of a data transmission method based on light according to an embodiment of the present invention. This first equipment can be the eye-shade, intelligent bracelet, human monitoring facilities, for example, the equipment that has the light such as intelligent sphygmomanometer, clinical thermometer, the second equipment can be intelligent mobile terminal, for example, the cell-phone that has the camera, IPAD, the computer etc., the second equipment also can be the server, this server is the server that first equipment corresponds, for example, first equipment is the eye-shade, then the second equipment can be the rear end server of eye-shade, the second equipment can also be monitored control system, this monitored control system has the camera that is used for carrying out the control and is used for carrying out the backstage server of handling. The second device may be used to determine which first device is specific, such as which eye shield, or to specify the type of failure of the first device, such as the type of failure of the eye shield. Wherein, by way of example and not limitation, the light may be a Light Emitting Diode (LED) light. As shown in fig. 1, the present application includes the steps of:
step 110, the first device obtains data to be transmitted.
Specifically, the data to be transmitted may be data that identifies the first device, for example and without limitation, the data to be transmitted may be one or any combination of a MAC address of the first device, a CPU identifier of the first device, and fault data, the fault data may be a fault of a component in the first device, for example, multiple elements in the first device may be encoded, for example, the first device has a processor, a memory, and the like, the processor may be encoded as 01, the memory may be encoded as 02, and when the memory in the first device fails, the data to be transmitted is a MAC address +02 of the first device. Or the data to be transmitted may be the MAC address of the first device, for example, if the target first device needs to be determined in multiple same first devices, each first device may obtain its own MAC address, and subsequently, it is convenient for the second setting to determine the required target first device.
Before acquiring data to be transmitted, a data encoding protocol may be set in the first device, where the data encoding protocol may be preset in the first device in advance, for example, numbers 0 to 7 are data to be transmitted, respectively, each data corresponds to a color, 0-dark blue, 1-blue, 2-dark green, 3-green, 4-dark yellow, 5-yellow, 6-dark purple, 7-purple, and other formats, and of course, only for convenience of description, 0 directly corresponds to dark blue, and it is understood that, in an actual data encoding protocol, 0 may correspond to an RGB value of dark blue, and other data, such as 1, 2, also correspond to RGB values of various colors, respectively.
Further, a data acquisition module, a data coding module, a data sending module and the like can be arranged in the first device, a plurality of modules are matched to complete the work of the first device, at the moment, each action executed by the first device can be decomposed, the action is decomposed into a specific module, and the specific decomposition step is not repeated in the application.
And step 120, the first device processes the data to be transmitted to obtain a color identification sequence.
Specifically, the first device may process the data to be transmitted into the color identifier sequence according to the data to be transmitted and a preset data encoding protocol. For example, if the data to be transmitted is 13576, the corresponding color identification sequence is 13576 corresponding to RGB values.
In an example, after the first device adds the frame header to the data to be transmitted, the color identifier sequence after the frame header is added is obtained, the frame header may also be an RGB value, for example, the RGB value of the frame header may be defaulted to be an RGB value corresponding to red, and then, the obtained color identifier sequence includes the frame header, so that the first device transmits the color identifier sequence, for example, the color identifier sequence may be sent to the third device, and the third device may light the color identifier sequence after reading the color identifier sequence. The third device may be the same device as the first device having the lamp light, or may be a different device, which is not limited in this application, so that the lighting of the third device may be controlled when the lamp light of the first device is in a fault, and the third device may be used as an intermediate device to transmit data to the second device.
And step 130, the first device displays the color corresponding to the color identification sequence through light.
Specifically, after the first equipment is to treat transmission data as the RGB value, the driving module in the first equipment can drive light to light, and when light flickered, the light can light according to the color identification sequence, and light blue, green, yellow, purple and dark purple in sequence, and simultaneously, the light mode can be set to light for the circulation, and the number of times of lighting for the circulation can be 3, also can be other, and this application is not restricted to this.
And 140, the second device acquires the video data when the light displays the color corresponding to the color identification sequence.
Specifically, a data coding protocol is also preset in the second device, and when the second device is an intelligent mobile terminal with a camera, the camera can shoot video data when light is turned on.
In one example, when the second device is a monitoring system, video data of the first device during light flicker may be collected through a camera of the monitoring system, so that the monitoring system may determine the data to be transmitted by the first device. For example, when a plurality of first devices are working, the light of a certain first device is continuously lighted, the camera of the monitoring system collects the video data continuously lighted by the light of the first device, and after the video data are processed, the data to be transmitted of the first device can be obtained through analysis, so that the data transmitted by the first device and the specific content of the data to be transmitted are determined.
In another example, when the second device is a background server, the background server may communicate with the intelligent mobile terminal, so as to obtain the video data sent by the intelligent mobile terminal.
For example, a user holds an intelligent mobile terminal and needs to report the problem of the first device to a maintenance mechanism, and at this time, the video data during light flashing can be sent to a background server or a terminal of the maintenance mechanism through the mobile terminal, so that the background server or the terminal can determine the data to be transmitted, which is transmitted by the first device.
And 150, the second device analyzes the video data to obtain a color identification sequence corresponding to the video data.
Specifically, after the second device processes the video data, the color image information included in the video data when the light is lit is extracted according to the timestamp, the image information is processed to obtain the color of the light, and a color identification sequence is obtained according to the color of the light, for example, the color of the light is blue, green, yellow, purple and dark purple in sequence, so that an RGB value sequence corresponding to each color can be obtained, and the sequence is the color identification sequence.
And step 160, the second device determines data to be transmitted according to the color identification sequence.
Specifically, the second device determines data to be transmitted according to the color identification sequence and a preset data encoding protocol, for example, the data to be transmitted may be 13576 according to RGB values of blue, green, yellow, purple, and dark purple.
Subsequently, it may be determined which data of the first device is based on the data to be transmitted, and it may be determined which element of the first device is malfunctioning.
For example, the first device is an eye patch, the eye patch emits a group of color combinations, such as red, green, and yellow, and the transmission mode is a cyclic transmission mode, at this time, the intelligent mobile device collects the video data and transmits the video data to an after-sale or customer service server, and the after-sale or customer service server can determine a specific fault.
Or various fault schemes are prestored in the intelligent mobile equipment, and the intelligent mobile equipment compares the acquired video data with the prestored fault schemes to determine specific fault elements.
Or after the monitoring system acquires the video data, which specific fault occurs to which specific first device can be analyzed according to the video data, so that the fault location and the fault element can be conveniently located.
By applying the data transmission method based on the lamplight, provided by the embodiment of the invention, the data transmission can be carried out by utilizing the lighting color of the existing lamplight in the first equipment, so that the second equipment can obtain the data to be transmitted of the first equipment on the basis of not changing the existing hardware structure of the first equipment, and the purpose of transmitting the data by utilizing the lighting of the lamplight is realized.
Fig. 2 is a schematic structural diagram of a light-based data transmission system according to a second embodiment of the present invention, where the light-based data transmission system includes a first device and a second device, and the first device and the second device execute the light-based data transmission method according to the first embodiment, and specific execution steps are the same as those described in the first embodiment, and are not described again here.
Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. 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 invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied in hardware, a software module executed by a processor, or a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above embodiments are provided to further explain the objects, technical solutions and advantages of the present invention in detail, it should be understood that the above embodiments are merely exemplary embodiments of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (7)

1. A light-based data transmission method is characterized by comprising the following steps:
the method comprises the steps that first equipment obtains data to be transmitted;
the first equipment processes the data to be transmitted to obtain a color identification sequence;
the first equipment displays the color corresponding to the color identification sequence through light;
the second equipment acquires video data when the light displays the color corresponding to the color identification sequence;
the second equipment analyzes the video data to obtain a color identification sequence corresponding to the video data;
and the second equipment determines the data to be transmitted according to the color identification sequence.
2. The method of claim 1, wherein the data to be transmitted comprises one or more of a MAC address, a CPU identification of the first device, and failure data of the first device.
3. The method of claim 1, further comprising, prior to the method:
the first device and the second device are preset with a data coding protocol; the data coding protocol comprises a color identification and/or a display duration corresponding to each data.
4. The method according to claim 1, wherein the processing, by the first device, the data to be transmitted to obtain the color identification sequence specifically includes:
and after the first equipment adds the frame header to the data to be transmitted, processing the data to be transmitted after the frame header is added into a color identification sequence.
5. The method according to claim 3, wherein the determining, by the second device, the data to be transmitted according to the color identification sequence specifically includes:
the second equipment acquires a color image displayed by lamplight in the video data;
and the second equipment determines data to be transmitted according to the color image and the data coding protocol.
6. The method of claim 1, wherein the first device comprises a smart hardware device such as an eye patch with light, a bracelet, or a human monitoring device.
7. A light-based data transmission system, characterized in that the light-based data transmission system comprises a first device and a second device according to any of claims 1-5.
CN202010664998.0A 2020-07-10 2020-07-10 Data transmission method and system based on lamplight Pending CN111784997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010664998.0A CN111784997A (en) 2020-07-10 2020-07-10 Data transmission method and system based on lamplight

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010664998.0A CN111784997A (en) 2020-07-10 2020-07-10 Data transmission method and system based on lamplight

Publications (1)

Publication Number Publication Date
CN111784997A true CN111784997A (en) 2020-10-16

Family

ID=72767437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010664998.0A Pending CN111784997A (en) 2020-07-10 2020-07-10 Data transmission method and system based on lamplight

Country Status (1)

Country Link
CN (1) CN111784997A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107104729A (en) * 2016-02-19 2017-08-29 中兴通讯股份有限公司 Data transmission method for uplink and device, method of reseptance and device, transmission method and system
CN107195168A (en) * 2017-05-12 2017-09-22 东莞理工学院 The RGB color collecting device and method of a kind of Bluetooth transmission
CN110690922A (en) * 2019-09-24 2020-01-14 歌尔科技有限公司 Data transmission method based on color light, sending end equipment and receiving end equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107104729A (en) * 2016-02-19 2017-08-29 中兴通讯股份有限公司 Data transmission method for uplink and device, method of reseptance and device, transmission method and system
CN107195168A (en) * 2017-05-12 2017-09-22 东莞理工学院 The RGB color collecting device and method of a kind of Bluetooth transmission
CN110690922A (en) * 2019-09-24 2020-01-14 歌尔科技有限公司 Data transmission method based on color light, sending end equipment and receiving end equipment

Similar Documents

Publication Publication Date Title
CN114828352B (en) Thing networking lighting control system
CN108770134B (en) Color space management device and method for LED multi-primary color lamp
CN106502154A (en) For the electric control method of electrical apparatus control system, device and terminal
WO2017140220A1 (en) Data sending method and device, receiving method and device, and transmission method and system
US20130308133A1 (en) Method and system for monitoring led display using optical fiber as light transmission medium
CN105115973A (en) Equipment monitoring system and method based on visible light communication
CN111784997A (en) Data transmission method and system based on lamplight
CN105744261A (en) System and method for testing set top box front panels
CN113507422A (en) Multi-terminal data transmission control method and system based on Internet of things platform
US9686516B2 (en) Method and device for improving configuration of communication devices in a video projection system comprising multiple wireless video projectors
CN206235394U (en) Equipment state lamp intelligent monitoring device
US20170373755A1 (en) Header and payload signals with different optical properties
CN110138447A (en) Signal optical source detection method, device and equipment applied to wireless light communication
US9305200B2 (en) Information acquisition apparatus, information acquisition method, and non-transitory recording medium
CN109410085B (en) Binding system and method for farm equipment
US20180247498A1 (en) Determining what the indicators represent on a security device
EP3582410B1 (en) Transmission device, transmission control device, communication system, transmission method and computer program for transmission
CN107995753A (en) A kind of method, apparatus and system that position plane figure is generated for lighting apparatus
EP3618580A1 (en) Transmission coding scheme for a lighting system
CN217238646U (en) Monitoring system for state of network gate equipment
CN116236211B (en) Electroencephalogram feedback training system and method based on multipoint data distribution
CN210246757U (en) MIMO imaging visible light communication transmitting end, receiving end and system
CN118018399A (en) Lighting method, device, equipment and storage medium for switch LED
KR20130085527A (en) Visible light communication system, control method for visible light communication, optical transmitter
CN215815123U (en) Detection device and projector apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20201016