CN115173951A - Data transmission method, device, equipment and medium - Google Patents
Data transmission method, device, equipment and medium Download PDFInfo
- Publication number
- CN115173951A CN115173951A CN202210724041.XA CN202210724041A CN115173951A CN 115173951 A CN115173951 A CN 115173951A CN 202210724041 A CN202210724041 A CN 202210724041A CN 115173951 A CN115173951 A CN 115173951A
- Authority
- CN
- China
- Prior art keywords
- optical signal
- state
- optical
- data transmission
- light
- 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
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 74
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000003287 optical effect Effects 0.000 claims abstract description 207
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 description 13
- 238000010586 diagram Methods 0.000 description 12
- 238000012545 processing Methods 0.000 description 7
- 230000033764 rhythmic process Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 229910052802 copper Inorganic materials 0.000 description 1
- 239000010949 copper Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000011982 device technology Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
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/50—Transmitters
- H04B10/516—Details of coding or modulation
-
- 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/50—Transmitters
- H04B10/516—Details of coding or modulation
- H04B10/5161—Combination of different modulation schemes
Landscapes
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
The application discloses a data transmission method, a data transmission device, data transmission equipment and a data transmission medium, and relates to the technical field of wearable equipment. The method comprises the following steps: applied to a wearable device comprising a light emitter, comprising: acquiring data to be transmitted; coding data to be transmitted according to an optical coding rule to obtain a transmitting command; the light emitter is controlled to emit a first combined light signal in accordance with the emission command. The method can enable the wearable device to increase the data transmission function.
Description
Technical Field
The present disclosure relates to the field of wearable device technologies, and more particularly, to a data transmission method, a data transmission apparatus, a wearable device, and a computer-readable storage medium.
Background
With the development of science and technology and economy, smart wearable devices (such as smart watches) are increasingly widely used, and the functions that can be realized by the smart wearable devices are increasing.
At present, the intelligent wearable device can realize conversation and measure the heart rate, the pulse, the walking steps and the like of a wearer. How to enable the intelligent wearable device to realize more functions becomes a technical problem to be solved urgently.
Disclosure of Invention
It is an object of the present application to provide a new solution for data transmission.
According to a first aspect of the present application, there is provided a data transmission method applied to a wearable device including a light emitter, including:
acquiring data to be transmitted;
coding the data to be transmitted according to an optical coding rule to obtain an emission command;
and controlling the light emitter to emit a first combined light signal according to the emission command.
Optionally, the data to be transmitted is binary number, and the optical coding rule includes:
for each digit code in binary data to be transmitted, if the digit code is a first digit code, coding the digit code into an optical signal in a first state with a first duration; and if the first digital code is the second digital code, the digital code is coded into the optical signal in the second state for the second time length, wherein the brightness of the optical signal in the first state is different from that of the optical signal in the second state.
Optionally, before the controlling the light emitter to emit light according to the emission command, the method further includes:
controlling the light emitter to emit a light signal indicating a third state in which data transmission is started;
after the controlling the light emitter to emit light according to the emission command, the method further includes:
controlling the light emitter to emit a light signal indicating a fourth state in which data transmission is ended; the light signal in the third state and the light signal in the fourth state have different brightness.
Optionally, the light emitter is a light emitting diode.
Optionally, the wearable device further includes an optical receiver, and the method further includes:
receiving an optical signal by the optical receiver, wherein the optical signal comprises at least a second combined optical signal;
and decoding the second combined optical signal according to a decoding rule to obtain transmission data, wherein the decoding rule corresponds to the encoding rule.
Optionally, the decoding rule is:
sequentially decoding each continuous optical signal in the first state into a first number of first preset digits, wherein the first preset digits are the ratio of the time length of the optical signal in the first state to the first time length;
and decoding each continuous optical signal in the second state into a second code with a second preset digit, wherein the second preset digit is the ratio of the time length of the optical signal in the second state to the second time length.
Optionally, after receiving the optical signal by the optical receiver, the method further includes:
identifying an optical signal of a third state and an optical signal of a fourth state from among optical signals received through the optical receiver;
and identifying an optical signal between the optical signal in the third state and the optical signal in the fourth state in the optical signals as a second combined optical signal.
Optionally, the light receiver is a photodiode.
According to a second aspect of the present application, there is provided a data transmission apparatus for use in a wearable device including a light emitter, the apparatus comprising:
the acquisition module is used for acquiring data to be transmitted;
the encoding module is used for encoding the data to be transmitted according to an optical encoding rule to obtain an emission command;
and the transmitting module is used for controlling the light emitter to transmit the first combined optical signal according to the transmitting command.
According to a third aspect of the present application, there is provided a wearable device comprising a light emitter and a data transmission apparatus as described in the second aspect;
alternatively, the wearable device comprises a light emitter, a memory for storing computer instructions, and a processor for invoking the computer instructions from the memory to perform the data transmission method of any of the first aspects;
wherein the light emitter is configured to emit a light signal.
According to a fourth aspect of the present application, there is provided a computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, implements the data transmission method according to any one of the first aspects.
In an embodiment of the present application, there is provided a data transmission method applied to a wearable device including a light emitter, including: acquiring data to be transmitted; coding data to be transmitted according to an optical coding rule to obtain a transmitting command; the light emitter is controlled to emit a first combined light signal in accordance with the emission command. The method can realize data transmission by using the wearable equipment. That is to say, the data transmission method provided by the embodiment of the present application can enable the wearable device to add a function of data transmission. Further features of the present application and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which is to be read in connection with the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another data transmission method provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a data transmission apparatus according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a wearable device provided in an embodiment of the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to one of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as exemplary only and not as limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< method example >
The embodiment of the application provides a data transmission method which is applied to wearable equipment comprising a light emitter.
In one embodiment of the present application, the wearable device may be exemplified by a phone watch, a smart watch, smart glasses, and the like.
In one embodiment of the present application, the light emitter may be exemplified by a light emitting diode on a wearable device.
Under the condition that wearable equipment is the smart watch, emitting diode can be the emitting diode in the heart rate module that is used for detecting the rhythm of the heart on the wearable equipment. On this basis, the data transmission method provided by the embodiment of the application does not need to improve the wearable device in hardware.
As shown in fig. 1, the data transmission method provided in the embodiment of the present application includes the following steps S1100 to S1300:
s1100, data to be transmitted are obtained.
In one embodiment of the present application, the data to be transmitted may be text information stored on the wearable device. Taking the wearable device as a smart watch as an example, the text information may be contact information stored on the wearable device. Wherein the contact information comprises: name and phone number.
It will be appreciated that the text information stored on the wearable device is typically a machine code, such as a binary number, octal number, decimal number, or other binary number.
Based on the above, the specific embodiment form of the data to be transmitted may be binary number, octal number, decimal number, or other binary number. The present application is not limited thereto.
In one embodiment of the present application, the text information may be stored in the wearable device in the form of a structure. Taking text information as contact information as an example, the structural body corresponding to the text information specifically comprises:
Struct
{
Char name[50];
Char No[13]
Uint32_t flash_addr;
}
wherein name represents a name; the FLASH _ addr represents the position of the text information stored in the FLASH; no indicates a telephone number.
In one embodiment of the application, the text information on the smart wearable device may be stored by a mobile terminal, such as a smartphone. Or, other intelligent wearable devices store the data based on the data transmission method provided by the embodiment of the application.
S1200, coding data to be transmitted according to the optical coding rule to obtain a transmitting command.
In the embodiment of the present application, the optical encoding rule refers to a rule for encoding data to be transmitted into an optical signal.
In one embodiment of the present application, the data to be transmitted is a binary number. Based on this, the optical encoding rule in S1200 may be:
for each digit code in binary data to be transmitted, if the digit code is a first digit code, coding the digit code into an optical signal in a first state with a first time length t 1;
if the optical signal is a second digital code, the digital code is coded into an optical signal in a second state for a second time length t 2; wherein. The optical signal in the first state and the optical signal in the second state have different brightness.
In the embodiment of the present application, the brightness of the optical signal in the first state and the brightness of the optical signal in the second state may be different, so as to distinguish whether the optical signal is the optical signal in the first state corresponding to the first digital code or the optical signal in the second state corresponding to the second digital code.
In one embodiment of the present application, the first number may be a binary number "1" and the second number may be a binary number "0". Alternatively, the first number may be a binary number "0" and the second number a binary number "1".
And, the first time period t1 and the second time period t2 may be the same or different. The embodiments of the present application are not limited thereto.
And the light signal in the first state may be a light signal generated when the light emitter is turned on, and the light signal in the second state may be a light signal generated when the light emitter is turned off, that is, a signal of natural light.
In this embodiment, if the data to be transmitted is 1011001, and the first code is "1", and the second code is "0", based on the above encoding rule, the transmission command may be: and sequentially transmitting the optical signal in the first state with the first time length t1, the optical signal in the second state with the second time length t2, the optical signal in the first state with the first time length t1, the optical signal in the second state with the second time length t2 and the optical signal in the first state with the first time length t 1.
Of course, the encoding rule may also be other, for example, the first data is encoded into an optical signal with preset brightness at a first preset frequency, the second data is encoded into an optical signal with the same preset brightness at a second preset frequency, and optical signals corresponding to different numbers are separated by a preset time interval.
And S1300, controlling the light emitter to emit the first combined light signal according to the emission command.
Continuing with the example in which the data to be transmitted is 1011001 as shown in S1200, based on S1300, the first combined optical signal emitted by the light emitter is controlled to be: the optical signal of the first state of the first duration t1, the optical signal of the second state of the second duration t2, the optical signal of the first state of the first duration t1, the optical signal of the second state of the second duration t2, and the optical signal of the first state of the first duration t 1.
In embodiments of the present application, a wearable device acts as a transmitting device to send a first combined optical signal to an electronic device acting as a receiving device. An optical receiver is provided on an electronic device serving as a receiving device. An optical receiver provided on an electronic device serving as a receiving device receives the first combined optical signal.
It should be noted that, in order to ensure that the optical receiver disposed on the electronic device serving as the receiving device receives the complete first combined optical signal, when the data transmission method provided in the embodiment of the present application is used, the light emitter of the wearable device serving as the transmitting device may be controlled to be directly opposite to the optical receiver of the electronic device serving as the receiving device, and be located within the preset distance range. Wherein the preset distance range can be set empirically.
In one embodiment of the present application, the electronic device acting as a receiving device may be another wearable device of the same specification as the wearable device acting as a transmitting device. Of course, other electronic devices are also possible.
Based on the above S1100-S1300, the data to be transmitted may be converted into a first combined optical signal, and emitted through a light emitter on the wearable device. In this way, data transmission with the wearable device may be achieved.
In an embodiment of the present application, when the data to be transmitted is contact information, based on the above S1100-S1300, sharing the contact information with an electronic device serving as a receiving device by using a wearable device may be implemented.
In an embodiment of the present application, there is provided a data transmission method applied to a wearable device including a light emitter, including: acquiring data to be transmitted; coding data to be transmitted according to an optical coding rule to obtain a transmitting command; the light emitter is controlled to emit a first combined light signal in accordance with the emission command. The method can realize data transmission by using the wearable equipment. That is to say, the data transmission method provided by the embodiment of the application can enable the wearable device to increase the function of data transmission.
In an embodiment of the present application, before the foregoing S1300, the data transmission method provided in the embodiment of the present application further includes the following S1310:
s1310, controlling the light emitter to emit a light signal indicating a third state where data transmission is started.
In this embodiment of the present application, after the foregoing S1300, the data transmission method provided in this embodiment of the present application further includes the following S1320:
s1320, controlling the light emitter to emit a light signal indicating a fourth state where the data transmission is ended.
Wherein the light signal in the third state and the light signal in the fourth state have different brightness.
Further, the luminance of the optical signal in the first state, the luminance of the optical signal in the second state, the luminance of the optical signal in the third state, and the luminance of the optical signal in the fourth state are different from each other. On the basis, the light signal can be determined to be specifically the third state light signal indicating that the data transmission is started, the fourth state light signal indicating that the data transmission is finished, the first state light signal corresponding to the first digital code and the second state light signal corresponding to the second digital code based on the brightness of the light signal.
In the embodiment of the present application, the optical signal indicating the third state in which the data transmission is started is transmitted before the first combined optical signal is transmitted, and the optical signal indicating the fourth state in which the data transmission is ended is transmitted after the first combined optical signal is transmitted. Therefore, the electronic equipment serving as the receiving equipment can obtain the accurate first combined optical signal, and then the first combined optical signal is decoded to obtain the accurate transmission data.
It should be noted that the time duration corresponding to the optical signal in the third state and the time duration corresponding to the optical signal in the fourth state may be the same or different. The embodiments of the present application are not limited thereto.
In an embodiment of the application, in a case that it is determined that the wearable device needs to serve as the transmitting device, the user may trigger a preset first physical key or a first touch key on the wearable device to instruct the wearable device to serve as the transmitting device, so that the wearable device may timely and accurately transmit the light signal through the light emitter.
In one embodiment of the present application, the wearable device further comprises an optical receiver. The light receiver may illustratively be a photodiode on the wearable device.
Under the condition that wearable equipment is the smart watch, photodiode can be the photodiode in the rhythm of the heart module that is used for detecting the rhythm of the heart on the wearable equipment. On this basis, the data transmission method provided by the embodiment of the application does not need to improve the wearable device in hardware.
Based on the above-described embodiment in which the wearable device includes the optical receiver, the wearable device may also function as a receiving device. Based on this, as shown in fig. 2, the data transmission method provided in the embodiment of the present application further includes the following steps S1400 and S1500:
s1400, receiving the optical signal through the optical receiver, wherein the optical signal at least comprises a second combined optical signal.
In an embodiment of the application, the wearable device acts as a receiving device for receiving the optical signal emitted by the electronic device acting as a transmitting device. The optical signal includes a second combined optical signal. The second combined optical signal is an optical signal of data to be transmitted by the electronic device serving as the transmitting device.
In one embodiment of the present application, in a case where the electronic device serving as the transmitting device transmits only the second combined optical signal to the wearable device serving as the receiving device, the optical signal received by the optical receiver of the wearable device serving as the receiving device is the second combined optical signal.
In another embodiment of the present application, in a case where the electronic device serving as the transmitting device transmits an optical signal indicating a third state in which data transmission starts and an optical signal indicating a fourth state in which data transmission ends in addition to the second combined optical signal transmitted to the wearable device serving as the receiving device, the optical signal in the third state, the second combined optical signal, and the optical signal in the fourth state are sequentially included in the optical signal received by the optical receiver of the wearable device serving as the receiving device.
S1500, decoding the second combined optical signal according to the decoding rule to obtain transmission data.
Wherein the decoding rule corresponds to the encoding rule.
In one embodiment of the present application, when the encoding rule is "for each digit code in binary data to be transmitted, if the digit code is a first digit code, the digit code is encoded into an optical signal in a first state with a first time length t 1; if the optical signal is a second digital code, the digital code is coded into an optical signal in a second state for a second time length t 2; wherein. On the basis that the brightness of the optical signal in the first state is different from that of the optical signal in the second state, the decoding rule is as follows:
sequentially decoding each continuous optical signal in the first state into a first number of first preset digits, wherein the first preset digits are the ratio of the time length of the optical signal in the first state to the first time length; and decoding each continuous optical signal in the second state into a second code with a second preset digit, wherein the second preset digit is the ratio of the time length of the optical signal in the second state to the second time length.
Based on the above embodiment, taking the first code as "1", the second code as "0", and the second combined optical signal as "the optical signal in the first state for the first time length t1, the optical signal in the second state for the second time length t2, the optical signal in the first state for the first time length t1, the optical signal in the second state for the second time length t2, and the optical signal in the first state for the first time length t 1" in sequence, as an example, based on the above S1500, the decoding process is:
sequentially, regarding the optical signal in the first state with the first time length t1 as a continuous optical signal in the first state, and decoding the continuous optical signal in the first state into a first digital code "1" with a first preset bit number of 1 (t 1/t 1);
regarding the optical signal in the second state with the second duration t2 as a continuous optical signal in the second state, and decoding the continuous optical signal in the second state to obtain a second digital number "0" with a second preset number of bits being 1 (t 2/t 2);
the optical signal in the first state with the first time length t1 and the optical signal in the first state with the first time length t1 are regarded as continuous optical signals in the first state, and the continuous optical signals are decoded into a first digital code "1" with a first preset bit number of 2 ((t 1+ t 1)/t 1);
the optical signal in the second state for the second time period t2 and the optical signal in the second state for the second time period t2 are regarded as continuous optical signals in the second state, and are decoded into a second digital number "0" with a second preset number of bits being 2 ((t 2+ t 2)/t 2);
the optical signal in the first state with the first time length t1 is regarded as a continuous optical signal in the first state, and is decoded into a first code "1" with a first preset number of bits being 1 (t 1/t 1).
Based on the above, the second combined optical signal is decoded as: 1011001.
in this embodiment of the application, the wearable device may further add a data receiving function through the above S1400 and S1500.
In an embodiment of the present application, in a case that the electronic device serving as a transmitting device transmits an optical signal indicating a third state where data transmission starts and an optical signal indicating a fourth state where data transmission ends in addition to the second combined optical signal transmitted to the wearable device serving as a receiving device, the data transmission method provided by the embodiment of the present application further includes the following steps S1410 and S1420 after the above step S1400:
s1410, identifying an optical signal of a third state and an optical signal of a fourth state from the optical signals received by the optical receiver.
S1420 identifies an optical signal between the optical signal in the third state and the optical signal in the fourth state as a second combined optical signal.
In the embodiment of the application, the wearable device serving as the receiving device can obtain the accurate second combined optical signal, and then the accurate transmission data is obtained through analysis.
In an embodiment of the application, in a case that it is determined that the wearable device needs to serve as a receiving device, a preset second physical key or a second touch key may be triggered on the wearable device by a user to indicate that the wearable device serves as the receiving device, so that the wearable device may receive the light signal through the light receiver accurately in time.
< apparatus embodiment >
The embodiment of the present application provides a data transmission apparatus 200, which is applied to a wearable device including a light emitter, as shown in fig. 3, the apparatus 200 includes: an obtaining module 210, an encoding module 220, and a transmitting module 230, wherein:
an obtaining module 210, configured to obtain data to be transmitted;
the encoding module 220 is configured to encode the data to be transmitted according to an optical encoding rule to obtain an emission command;
and a transmitting module 230, configured to control the light emitter to emit the first combined optical signal according to the emission command.
In an embodiment of the present application, the data to be transmitted is a binary number, and the optical coding rule includes:
for each digit code in binary data to be transmitted, if the digit code is a first digit code, coding the digit code into an optical signal in a first state with a first duration; and if the first digital code is the second digital code, the digital code is coded into the optical signal in the second state for the second time length, wherein the brightness of the optical signal in the first state is different from that of the optical signal in the second state.
In one embodiment of the present application, the emitting module 230 is further configured to control the light emitter to emit a light signal indicating a third state for starting to transmit data;
and the emitting module 230 is further configured to control the light emitter to emit a light signal indicating a fourth state of ending the data transmission; the light signal in the third state and the light signal in the fourth state have different brightness.
In one embodiment of the present application, the light emitter is a light emitting diode.
In one embodiment of the present application, the wearable device further comprises an optical receiver. On this basis, the data transmission apparatus 200 provided in the embodiment of the present application further includes a receiving module and a decoding module, where:
a receiving module, configured to receive an optical signal through the optical receiver, where the optical signal at least includes a second combined optical signal;
and the decoding module is used for decoding the second combined optical signal according to a decoding rule to obtain transmission data, wherein the decoding rule corresponds to the encoding rule.
In one embodiment of the present application, the decoding rule is:
sequentially decoding each continuous optical signal in the first state into a first number of first preset digits, wherein the first preset digits are the ratio of the time length of the optical signal in the first state to the first time length;
and decoding each continuous optical signal in the second state into a second code with a second preset digit, wherein the second preset digit is the ratio of the time length of the optical signal in the second state to the second time length.
In an embodiment of the present application, the data transmission apparatus 200 provided in the embodiment of the present application further includes an identification module, where:
the identification module is used for identifying the optical signal in the third state and the optical signal in the fourth state from the optical signals received by the optical receiver;
and identifying an optical signal between the optical signal in the third state and the optical signal in the fourth state in the optical signals as a second combined optical signal.
In one embodiment of the present application, the light receiver is a photodiode.
< apparatus embodiment >
The embodiment of the present application provides a wearable device 300, where the wearable device 300 includes a light emitter 310 and the data transmission apparatus 200 according to the above apparatus embodiment.
Alternatively, as shown in fig. 4, the wearable device 300 comprises a light emitter 310, a memory 320, and a processor 330, wherein the memory 320 is used for storing computer instructions, and the processor 330 is used for calling the computer instructions from the memory 320 to execute the data transmission method according to any one of the above method embodiments;
wherein the light emitter 310 is configured to emit a light signal.
In one embodiment of the present application, the wearable device 300 further comprises a light receiver, wherein the light emitter is configured to emit a light signal.
< storage Medium embodiment >
The present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a data transmission method according to any one of the above method embodiments.
The present application may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present application.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be interpreted as a transitory signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present application may be assembler instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry can execute computer-readable program instructions to implement aspects of the present application by utilizing state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present application are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the application is defined by the appended claims.
Claims (12)
1. A data transmission method is applied to a wearable device comprising a light emitter, and comprises the following steps:
acquiring data to be transmitted;
coding the data to be transmitted according to an optical coding rule to obtain an emission command;
and controlling the light emitter to emit a first combined light signal according to the emission command.
2. The method of claim 1, wherein the data to be transmitted is a binary number, and the optical coding rule comprises:
for each digit code in binary data to be transmitted, if the digit code is a first digit code, coding the digit code into an optical signal in a first state with a first time length; and if the first digital code is the second digital code, the digital code is coded into the optical signal in the second state for the second time length, wherein the brightness of the optical signal in the first state is different from that of the optical signal in the second state.
3. The method of claim 1, wherein prior to said controlling said light emitter to emit light in accordance with said emission command, further comprising:
controlling the light emitter to emit a light signal indicating a third state in which data transmission is started;
after the controlling the light emitter to emit light according to the emission command, the method further includes:
controlling the light emitter to emit a light signal representing a fourth state in which data transmission is ended; the light signal in the third state and the light signal in the fourth state have different brightness.
4. The method of claim 1, wherein the light emitter is a light emitting diode.
5. The method of claim 1, wherein the wearable device further comprises an optical receiver, the method further comprising:
receiving an optical signal by the optical receiver, wherein the optical signal comprises at least a second combined optical signal;
and decoding the second combined optical signal according to a decoding rule to obtain transmission data, wherein the decoding rule corresponds to the encoding rule.
6. The method of claim 5, wherein the decoding rule is:
sequentially decoding each continuous optical signal in the first state into a first digital code with a first preset digit, wherein the first preset digit is the ratio of the duration of the optical signal in the first state to the first duration;
and decoding each continuous optical signal in the second state into a second code with a second preset digit, wherein the second preset digit is the ratio of the time length of the optical signal in the second state to the second time length.
7. The method of claim 5, further comprising, after said receiving an optical signal by said optical receiver:
identifying an optical signal of a third state and an optical signal of a fourth state from among optical signals received through the optical receiver;
and identifying an optical signal between the optical signal in the third state and the optical signal in the fourth state in the optical signals as a second combined optical signal.
8. The method of claim 5, wherein the light receiver is a photodiode.
9. A data transmission apparatus for use in a wearable device including a light emitter, the apparatus comprising:
the acquisition module is used for acquiring data to be transmitted;
the coding module is used for coding the data to be transmitted according to an optical coding rule to obtain a transmitting command;
and the transmitting module is used for controlling the light emitter to transmit the first combined optical signal according to the transmitting command.
10. A wearable device, characterized in that it comprises a light emitter and a data transmission apparatus according to claim 9;
or, the wearable device comprises a light emitter, a memory for storing computer instructions, and a processor for invoking the computer instructions from the memory to perform the data transmission method of any of claims 1-8;
wherein the light emitter is configured to emit a light signal.
11. The wearable device of claim 10, further comprising an optical receiver, wherein:
the optical receiver is used for receiving optical signals.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the data transmission method according to any one of claims 1-8.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210724041.XA CN115173951A (en) | 2022-06-23 | 2022-06-23 | Data transmission method, device, equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210724041.XA CN115173951A (en) | 2022-06-23 | 2022-06-23 | Data transmission method, device, equipment and medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115173951A true CN115173951A (en) | 2022-10-11 |
Family
ID=83488214
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210724041.XA Pending CN115173951A (en) | 2022-06-23 | 2022-06-23 | Data transmission method, device, equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115173951A (en) |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06216859A (en) * | 1993-01-18 | 1994-08-05 | Ricoh Co Ltd | Data transfer device |
| US6437893B1 (en) * | 1996-07-16 | 2002-08-20 | Robert Rivollet | System and method for transmitting messages, in particular for updating data recorded in electronic labels |
| CN107147444A (en) * | 2017-04-18 | 2017-09-08 | 东莞信大融合创新研究院 | A data transmission method, device and system based on visible light |
| CN107682092A (en) * | 2016-08-02 | 2018-02-09 | 杭州萤石网络有限公司 | Data sending, receiving method, device and data transmission system |
| CN110690922A (en) * | 2019-09-24 | 2020-01-14 | 歌尔科技有限公司 | Data transmission method based on color light, sending end equipment and receiving end equipment |
| CA3051219A1 (en) * | 2018-08-08 | 2020-02-08 | North Inc. | Delegated communication methods and systems for a wearable device |
| EP3693060A1 (en) * | 2019-02-05 | 2020-08-12 | Gensight Biologics | Method for controlling an optogenetic device using a command law for the radiant power of a light source and associated devices |
| CN112838876A (en) * | 2019-11-25 | 2021-05-25 | 香港理工大学深圳研究院 | Wearable communication device and wearable device communication method |
-
2022
- 2022-06-23 CN CN202210724041.XA patent/CN115173951A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH06216859A (en) * | 1993-01-18 | 1994-08-05 | Ricoh Co Ltd | Data transfer device |
| US6437893B1 (en) * | 1996-07-16 | 2002-08-20 | Robert Rivollet | System and method for transmitting messages, in particular for updating data recorded in electronic labels |
| CN107682092A (en) * | 2016-08-02 | 2018-02-09 | 杭州萤石网络有限公司 | Data sending, receiving method, device and data transmission system |
| CN107147444A (en) * | 2017-04-18 | 2017-09-08 | 东莞信大融合创新研究院 | A data transmission method, device and system based on visible light |
| CA3051219A1 (en) * | 2018-08-08 | 2020-02-08 | North Inc. | Delegated communication methods and systems for a wearable device |
| EP3693060A1 (en) * | 2019-02-05 | 2020-08-12 | Gensight Biologics | Method for controlling an optogenetic device using a command law for the radiant power of a light source and associated devices |
| CN110690922A (en) * | 2019-09-24 | 2020-01-14 | 歌尔科技有限公司 | Data transmission method based on color light, sending end equipment and receiving end equipment |
| CN112838876A (en) * | 2019-11-25 | 2021-05-25 | 香港理工大学深圳研究院 | Wearable communication device and wearable device communication method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP2924669B1 (en) | Method and apparatus for transmitting infrared signal and remote controller | |
| CN101867636B (en) | Method for executing user command and terminal equipment | |
| CN110972058B (en) | Method and device for determining position of wireless communication device | |
| WO2017054597A1 (en) | Processing method and device for emoji string | |
| US10142035B2 (en) | Information transmission method, apparatus and system | |
| KR102138892B1 (en) | Apparatus for compressing data losslessly and method thereof | |
| CN110177074A (en) | A kind of sending method and electronic equipment of conversation message | |
| CN112328398A (en) | Task processing method and device, electronic device and storage medium | |
| CN106790727A (en) | Information push method and device | |
| CN108605226A (en) | Method, terminal device and graphical user interface for reminding incoming calls | |
| WO2018227547A1 (en) | Method and device for determining time of transmitting synchronization block, , user equipment and base station | |
| CN111554382B (en) | Medical image processing method and device, electronic equipment and storage medium | |
| CN114510305A (en) | Model training method and device, storage medium and electronic equipment | |
| CN114185945A (en) | Heterogeneous data processing method, device, device and storage medium | |
| CN110365806B (en) | Website conversion method and device | |
| CN115173951A (en) | Data transmission method, device, equipment and medium | |
| CN115062012B (en) | Data processing method, device, storage medium and electronic equipment | |
| CN113988011B (en) | Document content identification method and device | |
| CN114168809B (en) | Document character string coding matching method and device based on similarity | |
| CN113780847A (en) | Intelligent community information processing method based on Internet of things and server | |
| CN114168808A (en) | Regular expression-based document character string coding identification method and device | |
| CN107272998A (en) | The control method and device of projection terminal | |
| EP3584693B1 (en) | Method, system, and device for displaying text | |
| CN114003542B (en) | Signal conditioner, signal conditioning method, electronic device, and storage medium | |
| CN112017640B (en) | Wake-up decision method, device, electronic equipment and storage medium |
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 |