CN110557197A - Signal identification method, charging module, mobile power supply, equipment and storage medium - Google Patents

Signal identification method, charging module, mobile power supply, equipment and storage medium Download PDF

Info

Publication number
CN110557197A
CN110557197A CN201910790106.9A CN201910790106A CN110557197A CN 110557197 A CN110557197 A CN 110557197A CN 201910790106 A CN201910790106 A CN 201910790106A CN 110557197 A CN110557197 A CN 110557197A
Authority
CN
China
Prior art keywords
optical signal
request
response
power supply
mobile power
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
CN201910790106.9A
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.)
Shenzhen Laidian Technology Co
Original Assignee
Shenzhen Laidian Technology Co
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 Shenzhen Laidian Technology Co filed Critical Shenzhen Laidian Technology Co
Priority to CN201910790106.9A priority Critical patent/CN110557197A/en
Publication of CN110557197A publication Critical patent/CN110557197A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/0042Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/1143Bidirectional transmission

Abstract

the embodiment of the invention discloses a signal identification method, a charging module, a mobile power supply, mobile power supply leasing equipment and a storage medium, which are used for solving the problem that optical signal communication cannot be carried out between low-cost small-sized equipment caused by higher cost of an infrared receiving head in the prior art. The method provided by the embodiment of the invention comprises the following steps: the charging module firstly acquires a current request message; then, according to a preset request optical signal generation strategy, determining a request optical signal corresponding to the current request message; and finally, the request optical signal is sent to a mobile power supply, so that the mobile power supply can generate a strategy according to the pre-stored request optical signal and identify the current request message corresponding to the request optical signal.

Description

Signal identification method, charging module, mobile power supply, equipment and storage medium
Technical Field
The invention relates to the field of communication, in particular to a signal identification method, a charging module, a mobile power supply, mobile power supply leasing equipment and a storage medium.
background
in the prior art, an infrared signal receiving circuit is manufactured and integrated in one element to form an integrated infrared receiving head, and the infrared signal receiving circuit can comprise an infrared monitoring diode, an amplifier, a limiter, a band-pass filter, an integrating circuit, a comparator and the like. The infrared monitoring diode transmits the infrared signals to the amplifier and the amplitude limiter after monitoring the infrared signals, the amplifier amplifies the infrared signals, the amplitude limiter controls the pulse amplitude to be at a certain amplitude level, therefore, under the condition that the infrared transmitter and the infrared receiver are at different distances, the infrared signals enter the band-pass filter, the band-pass filter can pass load waves from 30kHz to 60kHz and enter the comparator through the demodulation circuit and the integrating circuit, and the comparator outputs high and low levels to restore the signal waveforms transmitted by the infrared transmitter.
In the infrared communication process, the infrared receiving head is required to perform infrared decoding on the infrared signal, and the infrared decoding requires that the infrared receiving head must have accurate signal identification precision and the sensitivity requirement on the infrared receiving head is high, so that the cost is high, and the infrared receiving head is not suitable for low-cost small-sized equipment.
Disclosure of Invention
the embodiment of the invention provides a signal identification method, a charging module, a mobile power supply, mobile power supply leasing equipment and a storage medium, and optical signal communication among small-sized equipment with low cost is realized.
according to a first aspect of the embodiments of the present invention, there is provided a signal identification method, where the method is applied to a charging module, and the method includes:
acquiring a current request message;
determining a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy;
And sending the request optical signal to a mobile power supply so that the mobile power supply can identify the current request message corresponding to the request optical signal according to a pre-stored request optical signal generation strategy.
optionally, in a case that the request optical signal generation policy includes an emission manner correspondence, the emission manner correspondence includes a correspondence between a binary character and a signal emission manner; the determining a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy includes:
acquiring a binary character string corresponding to the current request message;
determining a signal transmission mode corresponding to each binary character included in the binary character string according to the transmission mode corresponding relation;
Determining the request light signal based on a signal transmission mode of each binary character included in the binary character string.
Optionally, the signal emission manner is that the optical signal is continuously emitted within a first preset time period and the emission is terminated within a second preset time period; the first preset time length and the second preset time length are both not zero, and the ending time of the first time length is the same as the starting time of the second time length;
the first preset time lengths corresponding to different binary characters are different, and/or the second preset time lengths corresponding to different binary characters are different.
Optionally, the corresponding relationship of the emission modes further includes: the corresponding relation between the optical signal leading-in mark and the signal emission mode and the corresponding relation between the optical signal termination mark and the signal emission mode.
optionally, in a case that the request optical signal generation policy includes a number correspondence, the number correspondence includes a correspondence between a request message and a high level pulse number; the determining a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy includes:
determining the number of target high-level pulses corresponding to the current request message according to the number corresponding relation;
Determining the requested optical signal based on the target number of high level pulses.
Optionally, the method further comprises:
receiving a response optical signal sent by the mobile power supply;
according to a pre-stored response optical signal generation strategy, identifying a response message corresponding to the response optical signal;
wherein the response optical signal generation policy is any one of:
a transmission mode corresponding relation, wherein the transmission mode corresponding relation comprises a corresponding relation between a binary character and a signal transmission mode; and the number of the first and second groups,
a number correspondence comprising a correspondence between the request message and the number of high level pulses.
optionally, the method further comprises:
filtering the request optical signal and/or the response optical signal;
In a case where the request optical signal is subjected to filtering processing, the sending the request optical signal to a mobile power supply includes:
Sending the filtered request light signal to the mobile power supply;
In a case where the response optical signal is subjected to filtering processing, the identifying, according to a response optical signal generation policy stored in advance, a response message corresponding to the response optical signal includes:
And identifying a response message corresponding to the response optical signal after filtering processing according to the response optical signal generation strategy.
According to a second aspect of the embodiments of the present invention, there is provided a signal identification method, which is applied to a mobile power supply, the method including:
receiving a request light signal sent by a charging module;
Identifying a current request message corresponding to a request optical signal according to a pre-stored request optical signal generation strategy;
Acquiring a response message corresponding to the current request message, and determining a response optical signal corresponding to the response message according to a preset response optical signal generation strategy;
And sending the response optical signal to the charging module so that the charging module can generate a strategy according to the response optical signal stored in advance and identify a response message corresponding to the response optical signal.
Optionally, the request optical signal generation strategy and the response optical signal generation strategy are respectively any one of the following:
A transmission mode corresponding relation, wherein the transmission mode corresponding relation comprises a corresponding relation between a binary character and a signal transmission mode; and the number of the first and second groups,
A number correspondence comprising a correspondence between the request message and the number of high level pulses.
Optionally, the method further comprises:
Filtering the request optical signal and/or the response optical signal;
In a case where the request optical signal is subjected to filtering processing, the identifying, according to a pre-stored request optical signal generation policy, a current request message corresponding to the request optical signal includes:
identifying a current request message corresponding to the filtered request optical signal according to the request optical signal generation strategy;
under the condition that the response optical signal is subjected to filtering processing, the sending of the response optical signal to the charging module includes:
And sending the response optical signal after the filtering treatment to the charging module.
Optionally, the sending the response optical signal to the charging module includes:
and sending the response optical signal and a preset verification code to the charging module, so that the charging module acquires the verification code to be verified according to the response message under the condition that the response message corresponding to the response optical signal is identified, and performs signal verification through the verification code to be verified and the preset verification code.
according to a third aspect of the embodiments of the present invention, there is provided a charging module, including:
a request message obtaining module for obtaining the current request message;
A request optical signal determining module, configured to determine a request optical signal corresponding to the current request message according to a preset request optical signal generation policy;
and the request optical signal sending module is used for sending the request optical signal to a mobile power supply so that the mobile power supply can identify the current request message corresponding to the request optical signal according to a prestored request optical signal generation strategy.
optionally, in a case that the request optical signal generation policy includes an emission manner correspondence, the emission manner correspondence includes a correspondence between a binary character and a signal emission manner; the request optical signal determining module is further configured to obtain a binary string corresponding to the current request message; determining a signal transmission mode corresponding to each binary character included in the binary character string according to the transmission mode corresponding relation; determining the request light signal based on a signal transmission mode of each binary character included in the binary character string.
optionally, the signal emission manner is that the optical signal is continuously emitted within a first preset time period and the emission is terminated within a second preset time period; the first preset time length and the second preset time length are both not zero, and the ending time of the first time length is the same as the starting time of the second time length;
the first preset time lengths corresponding to different binary characters are different, and/or the second preset time lengths corresponding to different binary characters are different.
Optionally, the corresponding relationship of the emission modes further includes: the corresponding relation between the optical signal leading-in mark and the signal emission mode and the corresponding relation between the optical signal termination mark and the signal emission mode.
Optionally, in a case that the request optical signal generation policy includes a number correspondence, the number correspondence includes a correspondence between a request message and a high level pulse number; the request optical signal determining module is further configured to determine, according to the quantity correspondence, a target high-level pulse quantity corresponding to the current request message; determining the requested optical signal based on the target number of high level pulses.
the module of charging still includes:
The response optical signal receiving module is used for receiving a response optical signal sent by the mobile power supply;
the response message identification module is used for generating a strategy according to a pre-stored response optical signal and identifying a response message corresponding to the response optical signal;
wherein the response optical signal generation policy is any one of:
a transmission mode corresponding relation, wherein the transmission mode corresponding relation comprises a corresponding relation between a binary character and a signal transmission mode; and the number of the first and second groups,
a number correspondence comprising a correspondence between the request message and the number of high level pulses.
Optionally, the charging module further includes:
The first filtering module is used for filtering the request optical signal and/or the response optical signal;
The request optical signal sending module is used for sending the filtered request optical signal to the mobile power supply under the condition that the request optical signal is subjected to filtering processing;
And the response message identification module is used for identifying the response message corresponding to the response optical signal after the filtering processing according to the response optical signal generation strategy under the condition that the response optical signal is subjected to the filtering processing.
According to a fourth aspect of the embodiments of the present invention, there is provided a mobile power supply, including:
The request optical signal receiving module is used for receiving a request optical signal sent by the charging module;
The request message identification module is used for generating a strategy according to a pre-stored request optical signal and identifying the current request message corresponding to the request optical signal;
The response optical signal processing module is used for acquiring a response message corresponding to the current request message, and determining a response optical signal corresponding to the response message according to a preset response optical signal generation strategy;
and the response optical signal sending module is used for sending the response optical signal to the charging module so that the charging module can generate a strategy according to the response optical signal which is stored in advance and identify a response message corresponding to the response optical signal.
Optionally, the request optical signal generation strategy and the response optical signal generation strategy are respectively any one of the following:
A transmission mode corresponding relation, wherein the transmission mode corresponding relation comprises a corresponding relation between a binary character and a signal transmission mode; and the number of the first and second groups,
a number correspondence comprising a correspondence between the request message and the number of high level pulses.
the mobile power supply further includes:
the second filtering module is used for filtering the request optical signal and/or the response optical signal;
the request message identification module is further configured to identify, according to the request optical signal generation policy, a current request message corresponding to the filtered request optical signal under the condition that the request optical signal is subjected to filtering processing;
the response message identification module is further configured to send the filtered response optical signal to the charging module under the condition that the response optical signal is filtered.
optionally, the response optical signal sending module is further configured to send the response optical signal and a preset verification code to the charging module, so that the charging module obtains the verification code to be verified according to the response message when recognizing the response message corresponding to the response optical signal, and performs signal verification through the verification code to be verified and the preset verification code.
according to a fifth aspect of the embodiments of the present invention, there is provided a charging module, including: a processor, a transmitter provided with a diode, and a receiver provided with a diode; the processor is respectively connected with the transmitter and the receiver;
The processor is configured to execute acquiring a current request message, and determine a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy;
The transmitter is used for sending the request optical signal to a mobile power supply so that the mobile power supply can generate a strategy according to the pre-stored request optical signal and identify a current request message corresponding to the request optical signal;
the receiver is used for receiving a response optical signal sent by the mobile power supply; the response optical signal is an optical signal of a response message corresponding to the current request message.
optionally, the method further comprises: a filter lens arranged at the front end of the receiver and/or a filter lens arranged at the front end of the transmitter;
the optical filter is arranged at the front end of the receiver and is used for filtering the response optical signal;
And the optical filter is arranged at the front end of the transmitter and is used for filtering the request optical signal.
according to a sixth aspect of the embodiments of the present invention, there is provided a mobile power supply, including: a processor, a transmitter provided with a diode, and a receiver provided with a diode; the processor is respectively connected with the transmitter and the receiver;
the receiver is used for receiving a request optical signal sent by the charging module;
The processor is used for generating a strategy according to a pre-stored request optical signal and identifying a current request message corresponding to the request optical signal; acquiring a response message corresponding to the current request message, and determining a response optical signal corresponding to the response message according to a preset response optical signal generation strategy;
the transmitter is configured to send the response optical signal to the charging module, so that the charging module generates a policy according to the response optical signal stored in advance, and identifies a response message corresponding to the response optical signal.
optionally, the method further comprises: a filter lens arranged at the front end of the receiver and/or a filter lens arranged at the front end of the transmitter;
The optical filter is arranged at the front end of the receiver and is used for filtering the request optical signal;
and the filter lens is arranged at the front end of the emitter and is used for filtering the response light signal.
According to a seventh aspect of the embodiments of the present invention, there is provided a mobile power supply rental apparatus, including: the charging module according to the third aspect, and the mobile power supply according to the fourth aspect; alternatively, the first and second electrodes may be,
the charging module according to the fifth aspect, and the portable power source according to the sixth aspect.
According to an eighth aspect of embodiments of the present invention, there is provided a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the steps of the signal identification method of the first aspect; alternatively, the signal identification method according to the second aspect is a step.
according to the technical scheme, the embodiment of the invention has the following advantages:
the charging module firstly acquires a current request message; then, according to a preset request optical signal generation strategy, determining a request optical signal corresponding to the current request message; and finally, the request optical signal is sent to a mobile power supply, so that the mobile power supply can generate a strategy according to the pre-stored request optical signal and identify the current request message corresponding to the request optical signal. Therefore, the charging module and the mobile power supply respectively pre-store the request optical signal generation strategy, so that the optical signals can be accurately identified based on the request optical signal generation strategy, optical signal communication between low-cost small-sized equipment is realized, and the problem that the optical signal communication between the low-cost small-sized equipment cannot be carried out due to the high cost of the infrared receiving head is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the embodiments and the drawings used in the description of the prior art, and obviously, the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained according to the drawings.
fig. 1 is a schematic flow chart illustrating a first signal identification method according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a second signal identification method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a third method for identifying signals according to an embodiment of the present invention;
Fig. 4 is a block diagram illustrating a first charging module according to an embodiment of the present invention;
Fig. 5 is a block diagram illustrating a second charging module according to an embodiment of the present invention;
fig. 6 is a block diagram illustrating a third charging module according to an embodiment of the present invention;
fig. 7 is a block diagram illustrating a first mobile power supply according to an embodiment of the present invention;
fig. 8 is a block diagram illustrating a second mobile power supply according to an embodiment of the present invention;
Fig. 9 is a block diagram illustrating a fourth charging module according to an embodiment of the present invention;
fig. 10 is a block diagram illustrating a third mobile power supply according to an embodiment of the present invention;
fig. 11 is a block diagram illustrating a structure of a mobile power supply rental apparatus according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood by those skilled in the art, the technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. The embodiments based on the present invention should fall into the protection scope of the present invention.
First, an application scenario of the present invention is described, and the present invention may be applied to a mobile power supply rental device, where the mobile power supply rental device includes a charging module and a mobile power supply, and the charging module is configured to charge the mobile power supply, so that a user may use the mobile power supply to charge the mobile device. The present invention will be described in detail with reference to specific examples.
Fig. 1 is a schematic flow chart of a signal identification method according to an embodiment of the present invention, as shown in fig. 1, the method is applied to a charging module, and the method includes the following steps:
S101, acquiring a current request message.
in the embodiment of the present invention, the charging module may set corresponding preset periods for different request messages, so that the charging module respectively obtains the corresponding request messages according to the preset periods, where the request messages include: the mobile power source may be configured to acquire the first request message according to the first period, acquire the second request message according to the second period, and acquire the third request message according to the third period, where the above example is merely illustrative. Of course, the present invention may also receive a current request message sent by the terminal device bound to the charging module, for example, a control page of the terminal device includes trigger identifiers of different request messages, so that the charging module may obtain the request message corresponding to the target trigger identifier when the terminal device receives a trigger operation of a user on the target trigger identifier.
s102, determining a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy.
In the embodiment of the present invention, the request light signal may be an infrared light signal or an ultraviolet light signal, and the request light signal may be determined in the following two ways:
The first method is as follows: when the request optical signal generation policy includes the transmission mode correspondence, the transmission mode correspondence includes a correspondence between a binary character and a signal transmission mode, and first, a binary character string corresponding to the current request message may be acquired. The corresponding relation of the character strings between the request message and the binary character string can be pre-established, so that the binary character string corresponding to the current request message can be obtained according to the corresponding relation of the character strings.
Illustratively, if the request message includes: a first request message requesting the mobile power supply to transmit identification information of the mobile power supply, a second request message requesting the mobile power supply to transmit remaining power of the mobile power supply, and a third request message requesting the mobile power supply to transmit a current temperature of the mobile power supply, etc., the binary string corresponding to the first request message may be set to "00", the binary string corresponding to the second request message may be set to "01", and the binary string corresponding to the third request message may be set to "10". It should be noted that the present invention can also use octal string, decimal string, hexadecimal string, etc. to represent the current request message.
And then, determining a signal transmission mode corresponding to each binary character included in the binary character string according to the transmission mode corresponding relation. Specifically, the signal emission mode is that the optical signal is continuously emitted within a first preset time period and is stopped to be emitted within a second preset time period, the first preset time period and the second preset time period are not zero, and the ending time of the first time period is the same as the starting time of the second time period; and the first preset time lengths corresponding to different binary characters are different, and/or the second preset time lengths corresponding to different binary characters are different.
illustratively, if the request message is represented by a binary character string according to the present invention, the binary character includes "0" and "1", and in order to distinguish between the binary character "0" and the binary character "1", a first preset duration corresponding to the binary character "1" is a duration, a second preset duration corresponding to the binary character "1" is a duration B, a first preset duration corresponding to the binary character "0" is a duration C, and a second preset duration corresponding to the binary character "0" is a duration D, where B ≠ D, and/or a ≠ C, such that the binary character "1" is transmitted in a manner that: the optical signal is continuously transmitted in the A time period and is stopped transmitting in the B time period, and the signal transmission mode of the binary character '0' is as follows: the optical signal is continuously emitted during the C duration and the emission is terminated during the D duration. Therefore, based on the signal transmission modes including various binary characters in the transmission mode corresponding relationship, the signal transmission mode corresponding to each binary character included in the binary character string can be quickly acquired from the transmission mode corresponding relationship.
Finally, the request light signal is determined based on the signal transmission mode of each binary character included in the binary character string. The request optical signal can be generated by transmitting each binary character included in the binary character string according to a corresponding signal transmission mode according to the character sequence of the binary character included in the binary character string.
For example, if the current request message is a first request message requesting the mobile power supply to send the identification information of the mobile power supply, and the binary string corresponding to the first request message is "00", the requested optical signal corresponding to the current request message includes: continuously emitting the optical signal in the C time length and stopping emitting in the D time length, and then continuously emitting the optical signal in the C time length and stopping emitting in the D time length; if the current request message is a second request message requesting the mobile power supply to send the remaining power of the mobile power supply, and the binary string corresponding to the second request message is "01", the light-requesting signal corresponding to the current request message includes: continuously emitting the optical signal in the time length C and stopping emitting in the time length D, and then continuously emitting the optical signal in the time length A and stopping emitting in the time length B; if the current request message is a third request message requesting the mobile power supply to send the current temperature of the mobile power supply, and the binary string corresponding to the third request message is "10", the light-requesting signal corresponding to the current request message includes: the optical signal is continuously emitted in the A duration and the emission is terminated in the B duration, followed by the optical signal being continuously emitted in the C duration and the emission being terminated in the D duration.
it should be noted that, in order to accurately identify the introduction and termination of the optical signal, the transmission method correspondence relationship in the present invention further includes: the corresponding relation between the optical signal leading-in mark and the signal emission mode and the corresponding relation between the optical signal termination mark and the signal emission mode. For example, the signal transmission mode corresponding to the optical signal import identifier may be set as follows: the optical signal is continuously transmitted within a third preset time, and the signal transmission mode corresponding to the optical signal termination identifier is set as follows: the optical signal is continuously transmitted within a fourth preset time period, and both the third preset time period and the fourth preset time period are not zero. For example, continuing with the above-mentioned "the current request message is the second request message requesting the mobile power supply to transmit the remaining power of the mobile power supply, and the binary string corresponding to the second request message is '01'," as an example, the optical signal corresponding to the current request message includes: the optical signal is continuously emitted in a third preset time period, then the optical signal is continuously emitted in a C time period and the emission is stopped in a D time period, then the optical signal is continuously emitted in an A time period and the emission is stopped in a B time period, and then the optical signal is continuously emitted in a fourth preset time period.
The second method comprises the following steps: in the case where the request optical signal generation strategy includes a number correspondence, the number correspondence includes a correspondence between the request message and the number of high-level pulses; firstly, the number of the target high-level pulses corresponding to the current request message is determined according to the number corresponding relation. Wherein, if the request message includes: requesting the mobile power supply to send a first request message of identification information of the mobile power supply, and setting the number of high-level pulses corresponding to the first request message as m; if the request message includes a second request message requesting the mobile power supply to send the remaining power of the mobile power supply, the number of high-level pulses corresponding to the second request message may be set to n; if the request message includes a third request message requesting the mobile power supply to transmit the current temperature of the mobile power supply, the number of high level pulses corresponding to the third request message may be set to p, and so on. Thus, in the case where it is determined that the current request message is the first request message, the target high level pulse number is m; the target high level pulse number is n if the current request message is determined to be the second request message, and p if the current request message is determined to be the third request message.
The requested optical signal is then determined based on the target number of high level pulses. Wherein, because the transmitted optical signal has the characteristic of high-low level pulse, the high level pulse with the target high level pulse number can be set in the transmitted optical signal to obtain the request optical signal.
S103, sending the request optical signal to a mobile power supply so that the mobile power supply can identify the current request message corresponding to the request optical signal according to a pre-stored request optical signal generation strategy.
in this step, the request optical signal may be sent by a transmitter in the charging module, and specifically, the sending step of the request optical signal may be performed by using a diode in the transmitter.
In addition, the invention can also carry out filtering processing on the request optical signal and send the filtered request optical signal to the mobile power supply.
In the embodiment of the present invention, the request light signal generation policy may be pre-stored in the charging module and the mobile power supply, respectively. Wherein, under the condition that the request optical signal generation strategy comprises the corresponding relation of the emission modes, the mobile power supply times the continuously emitted optical signals to obtain a first preset time length, and the time for terminating the emission of the optical signal after the first preset time length is timed to obtain a second preset time length, and so on, the first and second preset durations may be obtained for each binary character comprised in the binary string, such that, the binary character corresponding to the first preset time length and the second preset time length can be obtained through the corresponding relation of the transmitting modes, and character-combining the binary character to obtain a binary character string corresponding to the request light signal, therefore, the current request message corresponding to the binary character string is obtained based on the corresponding relation of the character string, wherein the corresponding relation of the character string is the corresponding relation between the request message and the binary character string which is established in advance; in the case that the request optical signal generation policy includes the number correspondence, the mobile power supply may acquire a target high-level pulse number of the high-level pulses included in the request optical signal, and thus may acquire the current request message corresponding to the target high-level pulse number according to the number correspondence.
since the invention uses the continuous emission and the continuous termination of the emission of the optical signal as the basic unit of the signal identification, so that the optical signal in the invention has the high-low level pulse characteristic and is distinguished from the external light, the mobile power supply in the invention detects whether the high-low level pulse characteristic exists in the optical signal under the condition of receiving the optical signal, and determines the optical signal as the request optical signal under the condition that the high-low level pulse characteristic exists in the optical signal, thus the external light can be accurately distinguished from the optical signal in the invention.
In addition, in an optional embodiment of the present invention, the charging module further needs to receive a response optical signal sent by the mobile power supply; the response optical signal is an optical signal of a response message corresponding to the current request message; then, according to a response optical signal generation strategy stored in advance, response messages corresponding to the response optical signals are identified, wherein the response optical signal generation strategy can be any one of the following strategies: a transmission mode corresponding relation, which comprises a corresponding relation between the binary character and the signal transmission mode; and a number correspondence relationship including a correspondence relationship between the request message and the number of high level pulses. In addition, because there is interference light in the environment that charging module and portable power source are located, in order to prevent the wrong receipt of interference light, can filter the response light signal to filter interference light, thereby obtain the response light signal who filters interference light, at this moment, according to response light signal generation strategy, discern the response message that the response light signal after the filtering process corresponds.
by adopting the method, the charging module can firstly acquire the current request message; then, according to a preset request optical signal generation strategy, determining a request optical signal corresponding to the current request message; and then sending the request optical signal to the mobile power supply so that the mobile power supply can generate a strategy according to the pre-stored request optical signal and identify the current request message corresponding to the request optical signal. Therefore, the charging module and the mobile power supply respectively pre-store the request optical signal generation strategy, so that the optical signals can be accurately identified based on the request optical signal generation strategy, optical signal communication between low-cost small-sized equipment is realized, and the problem that the optical signal communication between the low-cost small-sized equipment cannot be carried out due to the high cost of the infrared receiving head is solved.
fig. 2 shows a signal identification method according to an embodiment of the present invention, where the method is applied to a mobile power source, and as shown in fig. 2, the method includes the following steps:
S201, receiving a request light signal sent by the charging module.
In the embodiment of the present invention, the request optical signal may be received by a receiver in the mobile power supply, and in particular, the receiving step of the request optical signal may be performed by using a diode provided in the receiver.
s202, according to a pre-stored request optical signal generation strategy, identifying a current request message corresponding to the request optical signal.
in the embodiment of the present invention, the request light signal generation policy may be pre-stored in the charging module and the mobile power supply, respectively. Wherein, under the condition that the request optical signal generation strategy comprises the corresponding relation of the emission modes, the mobile power supply times the continuously emitted optical signals to obtain a first preset time length, and the time for terminating the emission of the optical signal after the first preset time length is timed to obtain a second preset time length, and so on, the first and second preset durations may be obtained for each binary character comprised in the binary string, such that, the binary character corresponding to the first preset time length and the second preset time length can be obtained through the corresponding relation of the transmitting modes, and character-combining the binary character to obtain a binary character string corresponding to the request light signal, therefore, the current request message corresponding to the binary character string is obtained based on the corresponding relation of the character string, wherein the corresponding relation of the character string is the corresponding relation between the request message and the binary character string which is established in advance.
It should be noted that, in order to accurately identify the introduction and termination of the optical signal, the transmission method correspondence relationship in the present invention further includes: the corresponding relation between the optical signal leading-in mark and the signal emission mode and the corresponding relation between the optical signal termination mark and the signal emission mode. For example, the signal transmission mode corresponding to the optical signal import identifier may be set as follows: the optical signal is continuously transmitted within a third preset time, and the signal transmission mode corresponding to the optical signal termination identifier is set as follows: the optical signal is continuously transmitted within a fourth preset time period, and both the third preset time period and the fourth preset time period are not zero. At this time, the mobile power supply may first identify an optical signal continuously transmitted within a third preset duration, then time the continuously transmitted optical signal after the third duration to obtain a first preset duration, and time the time that the optical signal is terminated to be transmitted after the first preset duration to obtain a second preset duration, thereby determining a first binary character according to the first preset duration and the second preset duration, and so on, identifying all the binary characters, and finally, after identifying the optical signal continuously transmitted within a fourth preset duration, determining that the reception of the request optical signal is completed. Therefore, the binary character string can be accurately identified through the optical signal lead-in identification and the signal termination identification, and the current request message corresponding to the binary character string is obtained based on the character string corresponding relation.
in the case that the request optical signal generation policy includes the number correspondence, the mobile power supply may acquire a target high-level pulse number of the high-level pulses included in the request optical signal, and thus may acquire the current request message corresponding to the target high-level pulse number according to the number correspondence.
since the invention uses the continuous emission and the continuous termination of the emission of the optical signal as the basic unit of the signal identification, so that the optical signal in the invention has the high-low level pulse characteristic and is distinguished from the external light, the mobile power supply in the invention detects whether the high-low level pulse characteristic exists in the optical signal under the condition of receiving the optical signal, and determines the optical signal as the request optical signal under the condition that the high-low level pulse characteristic exists in the optical signal, thus the external light can be accurately distinguished from the optical signal in the invention.
in addition, because there is interference light in the environment that charging module and portable power source are located, in order to prevent the wrong receipt of interference light, can carry out filtering processing to the request light signal that receives to filter interference light, thereby obtain the request light signal of filtering interference light.
in summary, the mobile power supply in the embodiment of the present invention may conveniently identify the optical signal based on the pre-stored request optical signal generation policy, and does not need to use a high-cost infrared signal receiving circuit in the mobile power supply, thereby reducing the generation cost of the device.
s203, acquiring a response message corresponding to the current request message, and determining a response optical signal corresponding to the response message according to a preset response optical signal generation strategy.
In this embodiment of the present invention, if the current request message includes a first request message requesting the mobile power supply to send identification information of the mobile power supply, the response message may include the identification information of the mobile power supply; if the current request message includes a second request message requesting the mobile power supply to send the remaining power amount of the mobile power supply, the response message may include the remaining power amount of the mobile power supply; if the current request message includes a third request message requesting the mobile power supply to transmit the current temperature of the mobile power supply, the response message may include the current temperature of the mobile power supply, and so on.
Wherein, the response optical signal generation strategy can be any one of the following: the corresponding relation of the transmission modes comprises the corresponding relation between binary characters and signal transmission modes; and a number correspondence, the number correspondence including a correspondence between the request message and the number of high level pulses. Since the information indicated by the number of high-level pulses is limited and the information included in the response signal is large, the response optical signal generation strategy is preferably: and transmitting mode corresponding relation. For example, if the response message includes the current temperature of the mobile power supply, the current temperature may not be represented due to a limited number of high level pulses, or the current temperature may be more accurately represented using a binary character because it takes a long time to represent the temperature in this manner and the processing efficiency is low.
S204, sending the response optical signal to the charging module so that the charging module generates a strategy according to the response optical signal stored in advance and identifies a response message corresponding to the response optical signal.
in the embodiment of the present invention, the response optical signal generation policy may be pre-stored in the charging module and the mobile power supply, respectively. Wherein, under the condition that the strategy for generating the response optical signal includes the corresponding relationship of the transmission mode, the charging module clocks the continuously transmitted optical signal to obtain a first preset time length, clocks the time for terminating the transmission of the optical signal after the first preset time length to obtain a second preset time length, and so on, the first preset time length and the second preset time length of each binary character included in the binary character string can be obtained, so that the binary characters corresponding to the first preset time length and the second preset time length can be obtained through the corresponding relationship of the transmission mode, and the binary character string corresponding to the response optical signal can be obtained by performing character combination on the binary characters, so as to obtain the response message based on the binary character string, for example, if the current request message is a request message for requesting the mobile power supply to send the remaining electric quantity of the mobile power supply, in case that it is detected that the binary string corresponding to the response light signal is "11011", it may be determined that the response message includes that the remaining power of the mobile power supply is 27%; in a case that the response optical signal generation policy includes a number correspondence relationship, the charging module may obtain a current high-level pulse number of high-level pulses included in the response optical signal, so as to obtain a response message according to the current high-level pulse number, for example, if the current request message is a request message requesting the mobile power supply to send a current temperature of the mobile power supply, when it is detected that 25 high-level pulses are included in the response optical signal, the current temperature of the mobile power supply may be determined to be 25 degrees celsius, which is merely an example, and the present invention is not limited thereto.
In addition, in order to avoid interference light, the mobile power supply can also filter the response light signal and send the response light signal after filtering to the charging module; and/or after receiving the response optical signal, the charging module can filter the response optical signal, and identify a response message corresponding to the response optical signal after filtering processing according to a pre-stored response optical signal generation strategy.
optionally, in order to further prevent the charging module from receiving the interference light by mistake, the step may send the response optical signal and the preset verification code to the charging module, so that the charging module acquires the verification code to be verified according to the response message when recognizing the response message corresponding to the response optical signal, and performs signal verification through the verification code to be verified and the preset verification code. And determining that no interference signal exists in the response optical signal under the condition that the verification code to be verified is the same as the preset verification code, and determining that the interference signal exists in the response optical signal under the condition that the verification code to be verified is different from the preset verification code. Therefore, whether interference light exists in the response optical signal or not can be judged in a data verification mode, and the charging module does not need to perform signal identification on the response optical signal under the condition that the interference light exists in the response optical signal.
by adopting the method, the mobile power supply firstly receives a request optical signal sent by the charging module, then generates a strategy according to the pre-stored request optical signal, identifies a current request message corresponding to the request optical signal, then acquires a response message corresponding to the current request message, and determines a response optical signal corresponding to the response message according to a preset response optical signal generation strategy; and finally, sending the response optical signal to the charging module so that the charging module generates a strategy according to the pre-stored response optical signal and identifies a response message corresponding to the response optical signal. Therefore, the charging module and the mobile power supply respectively pre-store the request optical signal generation strategy, so that the optical signals can be accurately identified based on the request optical signal generation strategy, optical signal communication between low-cost small-sized equipment is realized, and the problem that the optical signal communication between the low-cost small-sized equipment cannot be carried out due to the high cost of the infrared receiving head is solved.
Fig. 3 is a schematic flow chart of a signal identification method according to an embodiment of the present invention, as shown in fig. 3, the method includes the following steps:
s301, the charging module acquires the current request message.
for a specific process, refer to step S101, which is not described again.
and S302, the charging module determines a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy.
The specific process may refer to step S102, and is not described in detail.
And S303, the charging module sends the request light signal to the mobile power supply.
In this step, a transmitter provided with a diode may be included in the charging module, so as to implement the transmission of the request optical signal through the diode in the transmitter, and a receiver provided with a diode may be included in the mobile power supply, so as to implement the reception of the request optical signal through the diode in the receiver.
in addition, in order to avoid interference light, the charging module may filter the request light signal and send the filtered request light signal to the portable power source.
and S304, the mobile power supply performs filtering processing on the request light signal.
because there is interference light in the environment that charging module and portable power source are located, in order to prevent the wrong receipt of interference light, can filter the request light signal that receives to filter interference light, thereby obtain and filter the request light signal of interference light. In consideration of the fact that the mobile power supply includes a receiver, a transmitter and a processor, an optical filter for filtering the request light signal may be provided at the front end of the receiver of the mobile power supply.
S305, the mobile power supply identifies the current request message corresponding to the filtered request optical signal according to the request optical signal generation strategy.
in the embodiment of the present invention, the request light signal generation policy may be pre-stored in the charging module and the mobile power supply, respectively. The specific process may refer to step S202, and is not described in detail.
S306, the mobile power supply obtains a response message corresponding to the current request message, and determines a response optical signal corresponding to the response message according to a preset response optical signal generation strategy.
In this embodiment of the present invention, if the current request message includes a first request message requesting the mobile power supply to send identification information of the mobile power supply, the response message may include the identification information of the mobile power supply; if the current request message includes a second request message requesting the mobile power supply to send the remaining power amount of the mobile power supply, the response message may include the remaining power amount of the mobile power supply; if the current request message includes a third request message requesting the mobile power supply to transmit the current temperature of the mobile power supply, the response message may include the current temperature of the mobile power supply, and so on.
Wherein, the response optical signal generation strategy can be any one of the following: the corresponding relation of the transmission modes comprises the corresponding relation between binary characters and signal transmission modes; and a number correspondence, the number correspondence including a correspondence between the request message and the number of high level pulses. Since the information indicated by the number of high-level pulses is limited and the information included in the response signal is large, the response optical signal generation strategy is preferably: and transmitting mode corresponding relation. For example, if the response message includes the current temperature of the mobile power supply, the current temperature may not be represented due to the limited number of high level pulses, and thus, the current temperature may be more accurately represented using a binary character.
s307, the mobile power supply sends the response optical signal and a preset verification code to the charging module.
in this step, the mobile power supply may include a transmitter provided with a diode, so that the transmission of the response optical signal and the transmission of the preset verification code may be achieved through the diode in the transmitter, and the charging module may include a receiver provided with a diode, so that the reception of the response optical signal may be achieved through the diode in the receiver. In addition, in order to avoid interfering light, the portable power source can filter the response light signal and send the response light signal after the filtering process to the charging module.
in order to enable the charging module to distinguish the response optical signal from the preset verification code, in a possible implementation manner, the response optical signal may be first sent, and in a case that the sending of the response optical signal is completed, the optical signal termination identifier is then sent, the preset verification code is then continuously sent, and in a case that the sending of the preset verification code is completed, the signal completion identifier is finally sent, for example, the signal completion identifier is an optical signal that is continuously sent for a specified duration.
S308, the charging module carries out filtering processing on the response optical signal.
Similarly, because there is interference light in the environment that charging module and portable power source are located, in order to prevent the wrong receipt of interference light, can filter the response light signal that receives to filter interference light, thereby obtain the response light signal who filters interference light. In consideration of the fact that the charging module includes a receiver, a transmitter and a processor, an optical filter may be disposed at a front end of the receiver of the charging module, and the optical filter is used for filtering the response light signal.
s309, the charging module identifies response messages corresponding to the filtered response optical signals according to the response optical signal generation strategy, acquires verification codes to be verified according to the response messages, and performs signal verification through the verification codes to be verified and preset verification codes.
in the embodiment of the present invention, the response optical signal generation policy may be pre-stored in the charging module and the mobile power supply, respectively. In this way, the charging module identifies the response message corresponding to the response optical signal after the filtering processing according to the pre-stored response optical signal generation strategy. The specific process may refer to step S204.
And determining that no interference signal exists in the response optical signal under the condition that the verification code to be verified is the same as the preset verification code, and determining that the interference signal exists in the response optical signal under the condition that the verification code to be verified is different from the preset verification code. Therefore, whether interference light exists in the response optical signal or not can be judged in a data verification mode, and the charging module does not need to perform signal identification on the response optical signal under the condition that the interference light exists in the response optical signal.
By adopting the method, the charging module and the mobile power supply both store the request optical signal generation strategy and the response optical signal generation strategy in advance, so that the mobile power supply can accurately identify the request optical signal based on the request optical signal generation strategy, and the charging module can accurately identify the response optical signal based on the response optical signal generation strategy, thereby realizing optical signal communication between small-sized devices with low cost, and avoiding the problem that optical signal communication cannot be carried out between the small-sized devices with low cost caused by high cost of the infrared receiving head.
Fig. 4 is a block diagram of a charging module 40 according to an embodiment of the present invention, and as shown in fig. 4, the charging module 40 includes:
A request message obtaining module 401, configured to obtain a current request message;
A request optical signal determining module 402, configured to determine a request optical signal corresponding to the current request message according to a preset request optical signal generation policy;
a request optical signal sending module 403, configured to send the request optical signal to a mobile power supply, so that the mobile power supply generates a policy according to the pre-stored request optical signal, and identifies a current request message corresponding to the request optical signal.
optionally, in a case that the request optical signal generation policy includes an emission manner correspondence, the emission manner correspondence includes a correspondence between a binary character and a signal emission manner; the request optical signal determining module 402 is further configured to obtain a binary string corresponding to the current request message; determining a signal transmission mode corresponding to each binary character included in the binary character string according to the transmission mode corresponding relation; determining the request light signal based on a signal transmission mode of each binary character included in the binary character string.
optionally, the signal emission manner is that the optical signal is continuously emitted within a first preset time period and the emission is terminated within a second preset time period; the first preset time length and the second preset time length are both not zero, and the ending time of the first time length is the same as the starting time of the second time length;
The first preset time lengths corresponding to different binary characters are different, and/or the second preset time lengths corresponding to different binary characters are different.
Optionally, the corresponding relationship of the emission modes further includes: the corresponding relation between the optical signal leading-in mark and the signal emission mode and the corresponding relation between the optical signal termination mark and the signal emission mode.
optionally, in a case that the request optical signal generation policy includes a number correspondence, the number correspondence includes a correspondence between a request message and a high level pulse number; the request optical signal determining module 402 is further configured to determine, according to the number correspondence, a target high-level pulse number corresponding to the current request message; determining the requested optical signal based on the target number of high level pulses.
Fig. 5 is a block diagram of a structure of the charging module 40 shown in fig. 4, and as shown in fig. 5, the charging module 40 further includes:
a response optical signal receiving module 404, configured to receive a response optical signal sent by the mobile power supply;
a response message identification module 405, configured to identify a response message corresponding to a response optical signal according to a pre-stored response optical signal generation policy;
Wherein the response optical signal generation policy is any one of:
a transmission mode corresponding relation, wherein the transmission mode corresponding relation comprises a corresponding relation between a binary character and a signal transmission mode; and the number of the first and second groups,
a number correspondence comprising a correspondence between the request message and the number of high level pulses.
Fig. 6 is a block diagram of a structure of the charging module 40 shown in fig. 5, and as shown in fig. 6, the charging module 40 further includes:
a first filtering module 406, configured to filter the request optical signal and/or the response optical signal;
The request optical signal sending module 403 is configured to send the filtered request optical signal to the mobile power supply under the condition that the request optical signal is filtered;
the response message identifying module 405 is configured to identify, according to the response optical signal generation policy, a response message corresponding to the response optical signal after the filtering processing, when the response optical signal is subjected to the filtering processing.
to sum up, the charging module may first obtain the current request message; then, according to a preset request optical signal generation strategy, determining a request optical signal corresponding to the current request message; and then sending the request optical signal to the mobile power supply so that the mobile power supply can generate a strategy according to the pre-stored request optical signal and identify the current request message corresponding to the request optical signal. Therefore, the charging module and the mobile power supply respectively pre-store the request optical signal generation strategy, so that the optical signals can be accurately identified based on the request optical signal generation strategy, optical signal communication between low-cost small-sized equipment is realized, and the problem that the optical signal communication between the low-cost small-sized equipment cannot be carried out due to the high cost of the infrared receiving head is solved.
Fig. 7 is a block diagram illustrating a structure of a mobile power supply 70 according to an embodiment of the present invention, and as shown in fig. 7, the mobile power supply 70 includes:
A request optical signal receiving module 701, configured to receive a request optical signal sent by a charging module;
a request message identification module 702, configured to identify a current request message corresponding to a request optical signal according to a pre-stored request optical signal generation policy;
A response optical signal processing module 703, configured to obtain a response message corresponding to the current request message, and determine a response optical signal corresponding to the response message according to a preset response optical signal generation policy;
A response optical signal sending module 704, configured to send the response optical signal to the charging module, so that the charging module generates a policy according to the response optical signal stored in advance, and identifies a response message corresponding to the response optical signal.
Alternatively, the request optical signal generation strategy and the response optical signal generation strategy may be any one of the following:
a transmission mode corresponding relation, wherein the transmission mode corresponding relation comprises a corresponding relation between a binary character and a signal transmission mode; and the number of the first and second groups,
A number correspondence comprising a correspondence between the request message and the number of high level pulses.
Fig. 8 is a block diagram based on the structure of the mobile power supply 70 shown in fig. 7, and as shown in fig. 8, the mobile power supply 70 further includes:
a second filtering module 705, configured to filter the request optical signal and/or the response optical signal;
The request message identifying module 702 is further configured to identify, according to the request optical signal generation policy, a current request message corresponding to the filtered request optical signal under the condition that the request optical signal is subjected to filtering processing;
the response optical signal sending module 704 is further configured to send the response optical signal after the filtering processing to the charging module under the condition that the response optical signal is subjected to the filtering processing.
optionally, the response optical signal sending module 704 is further configured to send the response optical signal and a preset verification code to the charging module, so that the charging module obtains a verification code to be verified according to the response message when recognizing a response message corresponding to the response optical signal, and performs signal verification through the verification code to be verified and the preset verification code.
to sum up, the mobile power supply firstly receives a request optical signal sent by the charging module, then generates a strategy according to the pre-stored request optical signal, identifies a current request message corresponding to the request optical signal, then acquires a response message corresponding to the current request message, and determines a response optical signal corresponding to the response message according to a preset response optical signal generation strategy; and finally, sending the response optical signal to the charging module so that the charging module generates a strategy according to the pre-stored response optical signal and identifies a response message corresponding to the response optical signal. Therefore, the charging module and the mobile power supply respectively pre-store the request optical signal generation strategy, so that the optical signals can be accurately identified based on the request optical signal generation strategy, optical signal communication between low-cost small-sized equipment is realized, and the problem that the optical signal communication between the low-cost small-sized equipment cannot be carried out due to the high cost of the infrared receiving head is solved.
Fig. 9 is a block diagram of a charging module 90 according to an embodiment of the present invention, and as shown in fig. 9, the charging module 90 includes: a processor 901, a diode-equipped transmitter 902 and a diode-equipped receiver 903; the processor 901 is connected to the transmitter 902 and the receiver 903 respectively;
the processor 901 is configured to execute acquiring a current request message, and determine a request optical signal corresponding to the current request message according to a preset request optical signal generation policy;
The transmitter 902 is configured to send the request optical signal to a mobile power supply, so that the mobile power supply generates a policy according to the request optical signal stored in advance, and identifies a current request message corresponding to the request optical signal;
The receiver 903 is configured to receive a response optical signal sent by the mobile power supply; the response optical signal is an optical signal of a response message corresponding to the current request message.
optionally, the charging module 90 further includes: a filter lens arranged at the front end of the receiver and/or a filter lens arranged at the front end of the transmitter;
the optical filter is arranged at the front end of the receiver and is used for filtering the response optical signal;
and the optical filter is arranged at the front end of the transmitter and is used for filtering the request optical signal.
in combination with the above-mentioned structure of the charging module, the charging module may first obtain a current request message; then, according to a preset request optical signal generation strategy, determining a request optical signal corresponding to the current request message; and then sending the request optical signal to the mobile power supply so that the mobile power supply can generate a strategy according to the pre-stored request optical signal and identify the current request message corresponding to the request optical signal. Therefore, the charging module and the mobile power supply respectively pre-store the request optical signal generation strategy, so that the optical signals can be accurately identified based on the request optical signal generation strategy, optical signal communication between low-cost small-sized equipment is realized, and the problem that the optical signal communication between the low-cost small-sized equipment cannot be carried out due to the high cost of the infrared receiving head is solved. In addition, the receiver and the transmitter used in the embodiment of the invention are both provided with diodes, so that the signal transmission and the signal identification can be conveniently carried out through the diodes, a high-cost infrared signal receiving circuit is not required, and the generation cost of equipment is reduced.
Fig. 10 is a block diagram illustrating a structure of a mobile power supply 100 according to an embodiment of the present invention, and as shown in fig. 10, the mobile power supply 100 includes: a processor 101, a diode-equipped transmitter 102, and a diode-equipped receiver 103; the processor 101 is connected with the transmitter 102 and the receiver 103 respectively;
the receiver 103 is configured to receive a request optical signal sent by a charging module;
the processor 101 is configured to generate a policy according to a pre-stored request optical signal, and identify a current request message corresponding to the request optical signal; acquiring a response message corresponding to the current request message, and determining a response optical signal corresponding to the response message according to a preset response optical signal generation strategy;
the transmitter 102 is configured to send the response optical signal to the charging module, so that the charging module generates a policy according to the response optical signal stored in advance, and identifies a response message corresponding to the response optical signal.
optionally, the mobile power supply 100 further includes: a filter lens arranged at the front end of the receiver and/or a filter lens arranged at the front end of the transmitter;
The optical filter is arranged at the front end of the receiver and is used for filtering the request optical signal;
And the filter lens is arranged at the front end of the emitter and is used for filtering the response light signal.
By combining the structure of the mobile power supply, the mobile power supply firstly receives a request optical signal sent by the charging module, then generates a strategy according to the pre-stored request optical signal, identifies a current request message corresponding to the request optical signal, then acquires a response message corresponding to the current request message, and determines a response optical signal corresponding to the response message according to a preset response optical signal generation strategy; and finally, sending the response optical signal to the charging module so that the charging module generates a strategy according to the pre-stored response optical signal and identifies a response message corresponding to the response optical signal. Therefore, the charging module and the mobile power supply respectively pre-store the request optical signal generation strategy, so that the optical signals can be accurately identified based on the request optical signal generation strategy, optical signal communication between low-cost small-sized equipment is realized, and the problem that the optical signal communication between the low-cost small-sized equipment cannot be carried out due to the high cost of the infrared receiving head is solved. In addition, the receiver and the transmitter used in the embodiment of the invention are both provided with diodes, so that the signal transmission and the signal identification can be conveniently carried out through the diodes, a high-cost infrared signal receiving circuit is not required, and the generation cost of equipment is reduced.
fig. 11 is a block diagram illustrating a structure of a mobile power rental device 110 according to an embodiment of the present invention, where as shown in fig. 11, the mobile power rental device 110 includes: the charging module 111 and the mobile power source 112.
In summary, the portable power source leasing equipment realizes optical signal communication among small-sized equipment with low cost, and avoids the problem that the optical signal communication cannot be carried out among the small-sized equipment with low cost due to the high cost of the infrared receiving head.
for the above detailed description of the charging module, the portable power source, and the portable power source leasing device, reference may be made to the method embodiment, which is not repeated herein.
In an alternative embodiment of the present invention, there is also provided a computer-readable storage medium storing a computer program, wherein the computer program causes a computer to execute the steps of the signal identification method described in fig. 1 to 3.
it is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
in the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, 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 invention 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 unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
the above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (19)

1. A signal identification method is applied to a charging module, and comprises the following steps:
Acquiring a current request message;
determining a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy;
and sending the request optical signal to a mobile power supply so that the mobile power supply can identify the current request message corresponding to the request optical signal according to a pre-stored request optical signal generation strategy.
2. The method according to claim 1, wherein in a case where the request light signal generation policy includes a transmission manner correspondence relationship, the transmission manner correspondence relationship includes a correspondence relationship between a binary character and a signal transmission manner; the determining a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy includes:
Acquiring a binary character string corresponding to the current request message;
Determining a signal transmission mode corresponding to each binary character included in the binary character string according to the transmission mode corresponding relation;
determining the request light signal based on a signal transmission mode of each binary character included in the binary character string.
3. The method of claim 2, wherein the signal is emitted in a manner that the optical signal is continuously emitted for a first predetermined period of time and the emission is terminated for a second predetermined period of time; the first preset time length and the second preset time length are both not zero, and the ending time of the first time length is the same as the starting time of the second time length;
the first preset time lengths corresponding to different binary characters are different, and/or the second preset time lengths corresponding to different binary characters are different.
4. The method of claim 3, wherein the transmission mode correspondence further comprises: the corresponding relation between the optical signal leading-in mark and the signal emission mode and the corresponding relation between the optical signal termination mark and the signal emission mode.
5. The method according to claim 1, wherein in a case where the request optical signal generation strategy includes a number correspondence, the number correspondence includes a correspondence between a request message and a high level pulse number; the determining a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy includes:
Determining the number of target high-level pulses corresponding to the current request message according to the number corresponding relation;
determining the requested optical signal based on the target number of high level pulses.
6. The method of claim 1, further comprising:
Receiving a response optical signal sent by the mobile power supply;
according to a pre-stored response optical signal generation strategy, identifying a response message corresponding to the response optical signal;
wherein the response optical signal generation policy is any one of:
a transmission mode corresponding relation, wherein the transmission mode corresponding relation comprises a corresponding relation between a binary character and a signal transmission mode; and the number of the first and second groups,
A number correspondence comprising a correspondence between the request message and the number of high level pulses.
7. the method of claim 6, further comprising:
Filtering the request optical signal and/or the response optical signal;
In a case where the request optical signal is subjected to filtering processing, the sending the request optical signal to a mobile power supply includes:
sending the filtered request light signal to the mobile power supply;
in a case where the response optical signal is subjected to filtering processing, the identifying, according to a response optical signal generation policy stored in advance, a response message corresponding to the response optical signal includes:
and identifying a response message corresponding to the response optical signal after filtering processing according to the response optical signal generation strategy.
8. A signal identification method is applied to a mobile power supply, and comprises the following steps:
receiving a request light signal sent by a charging module;
identifying a current request message corresponding to a request optical signal according to a pre-stored request optical signal generation strategy;
Acquiring a response message corresponding to the current request message, and determining a response optical signal corresponding to the response message according to a preset response optical signal generation strategy;
and sending the response optical signal to the charging module so that the charging module can generate a strategy according to the response optical signal stored in advance and identify a response message corresponding to the response optical signal.
9. The method of claim 8, wherein the request optical signal generation strategy and the response optical signal generation strategy are each any one of:
A transmission mode corresponding relation, wherein the transmission mode corresponding relation comprises a corresponding relation between a binary character and a signal transmission mode; and the number of the first and second groups,
A number correspondence comprising a correspondence between the request message and the number of high level pulses.
10. the method of claim 8, further comprising:
Filtering the request optical signal and/or the response optical signal;
in a case where the request optical signal is subjected to filtering processing, the identifying, according to a pre-stored request optical signal generation policy, a current request message corresponding to the request optical signal includes:
identifying a current request message corresponding to the filtered request optical signal according to the request optical signal generation strategy;
Under the condition that the response optical signal is subjected to filtering processing, the sending of the response optical signal to the charging module includes:
And sending the response optical signal after the filtering treatment to the charging module.
11. the method of any one of claims 8 to 10, wherein said sending the response light signal to the charging module comprises:
And sending the response optical signal and a preset verification code to the charging module, so that the charging module acquires the verification code to be verified according to the response message under the condition that the response message corresponding to the response optical signal is identified, and performs signal verification through the verification code to be verified and the preset verification code.
12. the utility model provides a module of charging which characterized in that, the module of charging includes:
A request message obtaining module for obtaining the current request message;
a request optical signal determining module, configured to determine a request optical signal corresponding to the current request message according to a preset request optical signal generation policy;
and the request optical signal sending module is used for sending the request optical signal to a mobile power supply so that the mobile power supply can identify the current request message corresponding to the request optical signal according to a prestored request optical signal generation strategy.
13. A mobile power supply, characterized in that the mobile power supply comprises:
The request optical signal receiving module is used for receiving a request optical signal sent by the charging module;
The request message identification module is used for generating a strategy according to a pre-stored request optical signal and identifying the current request message corresponding to the request optical signal;
The response optical signal processing module is used for acquiring a response message corresponding to the current request message, and determining a response optical signal corresponding to the response message according to a preset response optical signal generation strategy;
And the response optical signal sending module is used for sending the response optical signal to the charging module so that the charging module can generate a strategy according to the response optical signal which is stored in advance and identify a response message corresponding to the response optical signal.
14. the utility model provides a module of charging which characterized in that, the module of charging includes: a processor, a transmitter provided with a diode, and a receiver provided with a diode; the processor is respectively connected with the transmitter and the receiver;
the processor is configured to execute acquiring a current request message, and determine a request optical signal corresponding to the current request message according to a preset request optical signal generation strategy;
The transmitter is used for sending the request optical signal to a mobile power supply so that the mobile power supply can generate a strategy according to the pre-stored request optical signal and identify a current request message corresponding to the request optical signal;
the receiver is used for receiving a response optical signal sent by the mobile power supply; the response optical signal is an optical signal of a response message corresponding to the current request message.
15. the charging module of claim 14, further comprising: a filter lens arranged at the front end of the receiver and/or a filter lens arranged at the front end of the transmitter;
the optical filter is arranged at the front end of the receiver and is used for filtering the response optical signal;
And the optical filter is arranged at the front end of the transmitter and is used for filtering the request optical signal.
16. a mobile power supply, characterized in that the mobile power supply comprises: a processor, a transmitter provided with a diode, and a receiver provided with a diode; the processor is respectively connected with the transmitter and the receiver;
The receiver is used for receiving a request optical signal sent by the charging module;
The processor is used for generating a strategy according to a pre-stored request optical signal and identifying a current request message corresponding to the request optical signal; acquiring a response message corresponding to the current request message, and determining a response optical signal corresponding to the response message according to a preset response optical signal generation strategy;
the transmitter is configured to send the response optical signal to the charging module, so that the charging module generates a policy according to the response optical signal stored in advance, and identifies a response message corresponding to the response optical signal.
17. The mobile power supply of claim 16, further comprising: a filter lens arranged at the front end of the receiver and/or a filter lens arranged at the front end of the transmitter;
The optical filter is arranged at the front end of the receiver and is used for filtering the request optical signal;
and the filter lens is arranged at the front end of the emitter and is used for filtering the response light signal.
18. a mobile power supply leasing device, characterized in that the mobile power supply leasing device comprises: the charging module of claim 12, and the mobile power supply of claim 13; alternatively, the first and second electrodes may be,
The charging module of claim 14 or 15, and the mobile power supply of claim 16 or 17.
19. a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, wherein the computer program causes a computer to execute the steps of the signal identification method according to any one of claims 1 to 7; or, the steps of the signal identification method of any of claims 8 to 11.
CN201910790106.9A 2019-08-26 2019-08-26 Signal identification method, charging module, mobile power supply, equipment and storage medium Pending CN110557197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910790106.9A CN110557197A (en) 2019-08-26 2019-08-26 Signal identification method, charging module, mobile power supply, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910790106.9A CN110557197A (en) 2019-08-26 2019-08-26 Signal identification method, charging module, mobile power supply, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110557197A true CN110557197A (en) 2019-12-10

Family

ID=68738137

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910790106.9A Pending CN110557197A (en) 2019-08-26 2019-08-26 Signal identification method, charging module, mobile power supply, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110557197A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5371453A (en) * 1993-01-28 1994-12-06 Motorola, Inc. Battery charger system with common charge and data exchange port
CN103793979A (en) * 2013-12-20 2014-05-14 深圳光启创新技术有限公司 Method for upgrading photon receiving end
CN104283284A (en) * 2014-10-27 2015-01-14 北京元隆雅图文化传播股份有限公司 Multifunctional data portable power source and charging method
CN107094048A (en) * 2017-03-23 2017-08-25 深圳市科迈爱康科技有限公司 Information Conduction method based on visible ray, conducting system
CN107682092A (en) * 2016-08-02 2018-02-09 杭州萤石网络有限公司 Data sending, receiving method, device and data transmission system
CN109410455A (en) * 2018-09-06 2019-03-01 广州市安屯尼电子科技有限公司 The charging module of mobile power source leased equipment and its data transmission method between mobile power source

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5371453A (en) * 1993-01-28 1994-12-06 Motorola, Inc. Battery charger system with common charge and data exchange port
CN103793979A (en) * 2013-12-20 2014-05-14 深圳光启创新技术有限公司 Method for upgrading photon receiving end
CN104283284A (en) * 2014-10-27 2015-01-14 北京元隆雅图文化传播股份有限公司 Multifunctional data portable power source and charging method
CN107682092A (en) * 2016-08-02 2018-02-09 杭州萤石网络有限公司 Data sending, receiving method, device and data transmission system
CN107094048A (en) * 2017-03-23 2017-08-25 深圳市科迈爱康科技有限公司 Information Conduction method based on visible ray, conducting system
CN109410455A (en) * 2018-09-06 2019-03-01 广州市安屯尼电子科技有限公司 The charging module of mobile power source leased equipment and its data transmission method between mobile power source

Similar Documents

Publication Publication Date Title
US11725911B2 (en) Methods and apparatus for a conducted electrical weapon
JP5721202B2 (en) Data transmission method, data reception method and apparatus
CN109017344B (en) Charging pile automatic authentication method
CN107241161B (en) Data transmission method and device
US20060136015A1 (en) Human body communication device, human body communication system and method using the same
CN106936476B (en) Wireless charging method, wireless charging equipment and terminal
CN104917749A (en) Account registration method and device
WO2017050234A1 (en) Data transmission method and data processing device
EP3637406A1 (en) Data transmission method, data transmission circuit, display apparatus and storage medium
TW201912457A (en) Unlocking method, device and system
CN104320390A (en) Method and device for processing data packets
CN103812535A (en) Bluetooth equipment connecting method and Bluetooth equipment
US10608778B2 (en) Data transmission method and terminal
CN107241162B (en) Data transmission method and device
CN112152887A (en) Network distribution method and device of household appliance, electronic device and storage medium
CN103546200A (en) Data transmission method and system based on near-field communication
CN110557197A (en) Signal identification method, charging module, mobile power supply, equipment and storage medium
CN103038972A (en) Inductive charging
CN103793979B (en) Method for upgrading photon receiving end
CN104378761A (en) Method, device and system for detecting illegal access devices
CN116366601A (en) Address coding method of energy storage system and electronic equipment
CN105812875A (en) Infrared self-adaptive remote control method and device
CN205647584U (en) Elevator safety verification system , elevator safety control system based on SMS platform
JP5537396B2 (en) Sensing device and system
CN112838876B (en) Wearable communication device and wearable device communication method

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

Application publication date: 20191210

RJ01 Rejection of invention patent application after publication