CN111093490A - Signal adjusting method and device and computer storage medium - Google Patents

Signal adjusting method and device and computer storage medium Download PDF

Info

Publication number
CN111093490A
CN111093490A CN201980004500.3A CN201980004500A CN111093490A CN 111093490 A CN111093490 A CN 111093490A CN 201980004500 A CN201980004500 A CN 201980004500A CN 111093490 A CN111093490 A CN 111093490A
Authority
CN
China
Prior art keywords
sampling data
signal
current
adjustment
sampling
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.)
Granted
Application number
CN201980004500.3A
Other languages
Chinese (zh)
Other versions
CN111093490B (en
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 Goodix Technology Co Ltd
Original Assignee
Shenzhen Goodix Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Goodix Technology Co Ltd filed Critical Shenzhen Goodix Technology Co Ltd
Publication of CN111093490A publication Critical patent/CN111093490A/en
Application granted granted Critical
Publication of CN111093490B publication Critical patent/CN111093490B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • A61B5/02416Detecting, measuring or recording pulse rate or heart rate using photoplethysmograph signals, e.g. generated by infrared radiation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The embodiment of the application provides a signal adjusting method, a signal adjusting device and a computer storage medium, wherein the signal adjusting method comprises the following steps: acquiring first sampling data and second sampling data of at least one channel; and when the channel corresponding to the first sampling data meets the starting light adjustment condition according to the first sampling data, adjusting the driving signal of the light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data, and sending dimming mark information to the main control end, or when the adjustment of the driving signal does not reach a preset light adjustment finishing condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal. The light intensity and the signal gain are within a proper range, the quality of the detected signal is improved, and the accuracy of the biological characteristic detection is improved.

Description

Signal adjusting method and device and computer storage medium
Technical Field
The embodiment of the application relates to the technical field of electronics, in particular to a signal adjusting method, a signal adjusting device and a computer storage medium.
Background
The optical signal is used for detecting biological characteristics, and is widely applied to various fields, for example, in the medical field and the intelligent wearable field, the optical signal can be used for detecting heart rate, taking PPG (photoplethysmography) as an example, PPG (photoplethysmography), the PPG transmits an optical signal to human tissues and receives a returned optical signal, because the blood volume changes along with the heartbeat, the intensity of the electric signal converted by the returned optical signal is different, and the heart rate of the human body can be determined through the change of the intensity of the electric signal. However, when the optical signal is used for detecting the biological characteristics, the defects of inaccurate biological characteristic detection or high detection cost often occur.
Disclosure of Invention
In view of the above, an objective of the present invention is to provide a signal adjusting method, a signal adjusting device and a computer storage medium, so as to solve at least the above problems.
In a first aspect, an embodiment of the present application provides a signal adjustment method, including:
acquiring first sampling data and second sampling data of at least one channel, wherein one channel is used for indicating a signal processing channel formed by a photoelectric sensor and a light source, the first sampling data is used for indicating a first electric signal corresponding to mixed light formed by light emitted by the light source and ambient light, and the second sampling data is used for indicating a second electric signal corresponding to the ambient light;
when the channel corresponding to the first sampling data reaches the starting light adjustment condition according to the first sampling data, adjusting the driving signal of the light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data;
generating dimming mark information according to the result of adjusting the driving signal of the channel corresponding to the first sampling data, and sending the dimming mark information to the main control end;
or when the adjustment of the driving signal does not reach the preset light adjustment end condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal so as to trigger the main control end to perform gain adjustment on the channel corresponding to the first sampling data.
Optionally, in an embodiment of the present application, adjusting a driving signal of a light source corresponding to a channel corresponding to first sampling data according to the first sampling data and second sampling data includes:
when the channel corresponding to the first sampling data meets the condition of starting light adjustment according to the first sampling data, acquiring a third electric signal corresponding to light emitted by the light source according to the first sampling data and the second sampling data; determining a current parameter of a channel corresponding to the first sampling data according to a current value of the third electric signal in the current sampling period and the target dimming interval; and adjusting the driving signal of the light source of the channel corresponding to the first sampling data according to the current parameter of the channel corresponding to the first sampling data.
Optionally, in an embodiment of the present application, the method further includes:
and when the adjustment result of the current sampling period does not meet the adjustment end condition of the driving signal, adjusting the intensity of the optical signal corresponding to the channel corresponding to the first sampling data according to the current value of the third electrical signal of the channel corresponding to the first sampling data in the next sampling period until the adjustment end condition of the driving signal is met.
Optionally, in an embodiment of the present application, determining a current parameter of a channel corresponding to the first sampling data according to a current value of the third electrical signal in a current sampling period and the target dimming interval includes:
when the current value of the third electric signal is larger than the upper limit value of the target dimming interval, determining the lower limit value of the target current interval and the average value of the current value of the channel corresponding to the first sampling data as the current parameter of the channel corresponding to the first sampling data;
and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the average value of the upper limit value of the target current interval and the current value of the channel corresponding to the first sampling data as the current parameter of the channel corresponding to the first sampling data.
Optionally, in an embodiment of the present application, the method further includes:
when the current value of the third electric signal is larger than the upper limit value of the target dimming interval, determining the lower limit value of the target current interval and the average value of the current values of the channels corresponding to the first sampling data as a new lower limit value of the target current interval;
and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the average value of the upper limit value of the target current interval and the current value of the channel corresponding to the first sampling data as the new upper limit value of the target current interval.
Optionally, in an embodiment of the present application, the method further includes:
and when the current value of the third electric signal is greater than or equal to the lower limit value of the target dimming interval and less than or equal to the upper limit value of the target dimming interval, determining that the driving signal adjustment end condition is satisfied.
Optionally, in an embodiment of the present application, acquiring the first sample data and the second sample data of at least one channel includes:
and in each sampling period of a preset time period, carrying out data acquisition on the signals of at least one channel to obtain first sampling data and second sampling data of each channel, wherein the preset time period comprises at least one sampling period.
Optionally, in an embodiment of the present application, the method further includes:
in each sampling period of a preset time period, the first sampling data is smaller than a first threshold value; or, in each sampling period of the preset time period, when the first sampling data is greater than the second threshold, determining that the channel corresponding to the first sampling data meets the condition of turning on the light adjustment, and the second threshold is greater than the first threshold.
Optionally, in an embodiment of the present application, the method further includes:
after the condition for finishing the adjustment of the driving signal is met, if the first sampling data in the current sampling period is greater than or equal to the first threshold and less than or equal to the second threshold, the adjustment of the driving signal is determined to reach the preset condition for finishing the light adjustment.
Optionally, in an embodiment of the present application, the method further includes:
after the condition for finishing the adjustment of the driving signal is met, if the first sampling data in the current sampling period is smaller than a first threshold value or larger than a second threshold value, it is determined that the adjustment of the driving signal does not reach the preset condition for finishing the light adjustment.
Optionally, in an embodiment of the present application, the dimming flag information is used to indicate at least one of whether the dimming signal intensity adjustment is successful, whether the first sampling data in the current sampling period is smaller than a first threshold, whether the first sampling data in the current sampling period is larger than a second threshold, whether the current value of the third electrical signal in the current sampling period is larger than an upper limit value of the target dimming interval, and whether the current value of the third electrical signal in the current sampling period is smaller than a lower limit value of the target dimming interval.
In a second aspect, an embodiment of the present application provides a signal conditioning apparatus, including: the device comprises an acquisition module, a dimming control module and a result processing module;
the system comprises an acquisition module, a signal processing module and a processing module, wherein the acquisition module is used for acquiring first sampling data and second sampling data of at least one channel, one channel is used for indicating a signal processing channel formed by a photoelectric sensor and a light source, the first sampling data is used for indicating a first electric signal corresponding to mixed light formed by light emitted by the light source and ambient light, and the second sampling data is used for indicating a second electric signal corresponding to the ambient light;
the light modulation control module is used for adjusting a driving signal of a light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data when the channel corresponding to the first sampling data is determined to reach a starting light adjustment condition according to the first sampling data;
the result processing module is used for generating dimming marking information according to the result of adjusting the driving signal of the channel corresponding to the first sampling data and sending the dimming marking information to the main control end; or when the adjustment of the driving signal does not reach the preset light adjustment end condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal so as to trigger the main control end to perform gain adjustment on the channel corresponding to the first sampling data.
Optionally, in an embodiment of the application, the dimming control module is further configured to, when it is determined that a channel corresponding to the first sampling data meets a turn-on light adjustment condition according to the first sampling data, obtain, according to the first sampling data and the second sampling data, a third electrical signal corresponding to light emitted by the light source; determining a current parameter of a channel corresponding to the first sampling data according to a current value of the third electric signal in the current sampling period and the target dimming interval; and adjusting the driving signal of the light source of the channel corresponding to the first sampling data according to the current parameter of the channel corresponding to the first sampling data.
Optionally, in an embodiment of the application, the dimming control module is further configured to, when an adjustment result of the current sampling period does not satisfy a driving signal adjustment end condition, adjust the optical signal intensity corresponding to the channel corresponding to the first sampling data according to a current value of a third electrical signal of the channel corresponding to the first sampling data in a next sampling period until the driving signal adjustment end condition is satisfied.
Optionally, in an embodiment of the application, the dimming control module is further configured to determine, when the current value of the third electrical signal is greater than the upper limit value of the target dimming interval, an average value of the lower limit value of the target current interval and the current value of the channel corresponding to the first sampling data as the current parameter of the channel corresponding to the first sampling data; and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the average value of the upper limit value of the target current interval and the current value of the channel corresponding to the first sampling data as the current parameter of the channel corresponding to the first sampling data.
Optionally, in an embodiment of the application, the dimming control module is further configured to determine, when the current value of the third electrical signal is greater than the upper limit value of the target dimming interval, an average value of the lower limit value of the target current interval and the current value of the channel corresponding to the first sampling data as a new lower limit value of the target current interval; and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the average value of the upper limit value of the target current interval and the current value of the channel corresponding to the first sampling data as the new upper limit value of the target current interval.
Optionally, in an embodiment of the present application, the dimming control module is further configured to determine that the driving signal adjustment end condition is satisfied when a current value of the third electrical signal is greater than or equal to a lower limit value of the target dimming interval and is less than or equal to an upper limit value of the target dimming interval.
Optionally, in an embodiment of the application, the obtaining module is further configured to perform data acquisition on a signal of at least one channel in each sampling period of a preset time period to obtain first sampling data and second sampling data of each channel, where the preset time period includes at least one sampling period.
Optionally, in an embodiment of the application, the dimming control module is further configured to, in each sampling period of the preset time period, determine that the first sampling data is smaller than a first threshold; or, in each sampling period of the preset time period, when the first sampling data is greater than the second threshold, determining that the channel corresponding to the first sampling data meets the condition of turning on the light adjustment, and the second threshold is greater than the first threshold.
Optionally, in an embodiment of the application, the dimming control module is further configured to determine that the adjustment of the driving signal reaches the preset dimming ending condition if the first sampling data in the current sampling period is greater than or equal to the first threshold and less than or equal to the second threshold after the dimming ending condition of the driving signal is met.
Optionally, in an embodiment of the application, the dimming control module is further configured to determine that the adjustment on the driving signal does not reach the preset light adjustment ending condition if the first sampling data in the current sampling period is smaller than the first threshold or larger than the second threshold after the driving signal adjustment ending condition is met.
In a third aspect, an embodiment of the present application provides a biometric detection apparatus, including: a signal conditioning arrangement as described in the second aspect or any one of the embodiments of the second aspect.
Optionally, in an embodiment of the present application, the biometric detection apparatus further includes a main control end;
the main control end is used for receiving the dimming mark information transmitted by the signal adjusting device, and when the dimming mark information indicates that the adjustment of the driving signal does not reach the preset dimming adjustment ending condition, if the first sampling data in the current sampling period is smaller than a first threshold value and the current value of the third electric signal of the channel corresponding to the first sampling data in the current sampling period is smaller than the lower limit value of the target dimming interval, the gain of the electric signal corresponding to the channel corresponding to the first sampling data is increased;
when the dimming mark information indicates that the adjustment of the driving signal does not reach the preset light adjustment end condition, if the first sampling data in the current sampling period is greater than the second threshold value, or the current value of the third electrical signal of the channel corresponding to the first sampling data in the current sampling period is greater than the upper limit value of the target dimming interval, the gain of the electrical signal corresponding to the channel corresponding to the first sampling data is reduced.
Optionally, in an embodiment of the present application, the biometric detection apparatus further includes: the device comprises a light source, a photodiode array, an analog front end and an analog-to-digital converter;
the light source is used for emitting light signals;
the photoelectric sensor array is used for receiving optical signals and converting the optical signals into electric signals;
an analog front end for converting an electrical signal from current to voltage;
and the analog-to-digital converter is used for performing analog-to-digital conversion processing on the electric signal.
Alternatively, in one embodiment of the present application,
the main control end is also used for sending a gain adjustment instruction to the analog front end of the channel corresponding to the first sampling data;
and the analog front end is also used for carrying out gain adjustment on the channel corresponding to the first sampling data according to the gain adjustment instruction.
In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the signal adjustment method described in the first aspect or any one of the embodiments of the first aspect is implemented.
The signal adjusting method, the signal adjusting device and the computer storage medium provided by the embodiment of the application acquire first sampling data and second sampling data of at least one channel; and when the channel corresponding to the first sampling data meets the starting light adjustment condition according to the first sampling data, adjusting the driving signal of the light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data, and sending dimming mark information to the main control end, or when the adjustment of the driving signal does not reach a preset light adjustment finishing condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal. The light intensity and the signal gain are within a proper range, the quality of the detected signal is improved, and the detection accuracy is improved.
Drawings
Some specific embodiments of the present application will be described in detail hereinafter by way of illustration and not limitation with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
fig. 1 is a flowchart of a signal adjustment method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram illustrating a data acquisition effect according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating a data acquisition effect according to an embodiment of the present application;
fig. 4 is a structural diagram of a signal adjusting apparatus according to an embodiment of the present disclosure;
fig. 5 is a structural diagram of a biometric detection apparatus according to an embodiment of the present application.
Detailed Description
It is not necessary for any particular embodiment of the invention to achieve all of the above advantages at the same time.
In order to make those skilled in the art better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application shall fall within the scope of the protection of the embodiments in the present application.
The following further describes specific implementations of embodiments of the present application with reference to the drawings of the embodiments of the present application.
The first embodiment,
When the optical signal is used for detection, the light source emits the optical signal, the optical signal reaches the surface of the detection object and is reflected, because the shape of the surface of the detection object and the motion state of the detection object can influence the reflected optical signal, the photoelectric sensor receives the reflected optical signal, converts the reflected optical signal into an electric signal, and the detection object can be analyzed through the electric signal. Fig. 1 is a flowchart of a signal adjustment method according to an embodiment of the present disclosure; as shown in fig. 1, the signal adjusting method includes the following steps:
step 101, obtaining first sampling data and second sampling data of at least one channel.
One channel is used for indicating a signal processing channel formed by a photoelectric sensor and a light source, the first sampling data is used for indicating a first electric signal corresponding to mixed light formed by light emitted by the light source and ambient light, and the second sampling data is used for indicating a second electric signal corresponding to the ambient light. Optionally, data acquisition may be performed on signals of at least two channels to obtain first sample data and second sample data of each channel.
The preset time period may include a plurality of sampling periods, and in each sampling period, data acquisition is performed on the signal of each channel to obtain first sampling data of each channel. It should be noted that, the data acquisition of the signal of one channel may be to acquire an electrical signal generated by mixed light of the light source corresponding to the channel and the ambient light, and may obtain a voltage value or a current value of the electrical signal generated by the mixed light. The first sampled data may include at least one of a voltage value and a current value of an electrical signal generated by the mixed light of the ambient light and the light source.
It should be noted that, in the process of detecting by using optical signals, there may be a plurality of light sources and a plurality of photosensors, each light source emits a different optical signal, and each photosensor may also generate a different electrical signal for the same optical signal, so that one sensor and one light source are used as one channel, and a plurality of channels may be determined by combining two light sources and two sensors. For example, there are three photosensors A, B, C, there are two light sources P, Q, the photosensor a and the light source P, Q form the 1 st channel and the 2 nd channel respectively, the photosensor B and the light source P, Q form the 3 rd channel and the 4 th channel respectively, the photosensor C and the light source P, Q form the 5 th channel and the 6 th channel respectively, data acquisition is performed once on an electrical signal of one channel to obtain 1 first sampling data of the channel, and data acquisition is sequentially performed on electrical signals of 6 channels in one sampling period to obtain 6 first sampling data, including one first sampling data of each channel. Of course, the light source P may also be turned on to perform data acquisition on the electrical signals of the 1 st channel, the 3 rd channel and the 5 th channel simultaneously, because different photosensors have no influence on each other when converting the optical signals of the same light source into electrical signals, and similarly, the light source Q is turned on to perform data acquisition on the electrical signals of the 2 nd channel, the 4 th channel and the 6 th channel simultaneously. Of course, this is merely an example and does not represent a limitation of the present application.
Optionally, in an embodiment of the present application, acquiring the first sample data and the second sample data of at least one channel includes: and in each sampling period of a preset time period, carrying out data acquisition on the signals of at least one channel to obtain first sampling data and second sampling data of each channel, wherein the preset time period comprises at least one sampling period.
Optionally, in an embodiment of the present application, data acquisition may be performed on the electrical signal generated by the light source corresponding to each sub-time period in one sampling period to obtain m first sampling data, where m is the number of the photosensors, and one sub-time period corresponds to one light source.
As shown in fig. 2, fig. 2 is a schematic diagram of a data acquisition effect provided by the embodiment of the present application. In fig. 2, the Light source is an LED (Light Emitting Diode), the total number of the four Light source LEDs 1-4, the photosensor is a Photodiode (PD), and the total number of the two photosensors PDA and PDB is two. The PDA and the PDB work at a high level and do not work at a low level, the LEDs 1-4 show that the LEDs are lighted to emit light at the high level and do not emit light at the low level, the PDA and the LED1 form a 1 st channel, and the PDB and the LED1 form a 2 nd channel; PDA forms channel 3 with LED2, PDB forms channel 4 with LED 2; PDA and LED3 form the 5 th channel, PDB and LED3 form the 6 th channel; PDA forms channel 7 with LED4, PDB forms channel 8 with LED 4; in FIG. 2, the PDA and PDB are continuously operated during a sample period, at sub-period t1The LED1 is turned on, the electrical signal output by the PDA is subjected to data acquisition to obtain the first sampling data of the 1 st channel, and the electrical signal output by the PDB is subjected to data acquisition to obtain the first sampling data of the 2 nd channel; in the same way, in the time period t2-t4And respectively carrying out data acquisition on the electric signals output by each photoelectric sensor to obtain first sampling data of the 3 rd channel to the 8 th channel. Of course, this is only an exemplary illustration, and in a sub-period, data acquisition is performed on the electrical signals output by the multiple photoelectric sensors, so that the first sampling data of multiple channels can be obtained simultaneously, and the efficiency of data acquisition is higher.
With reference to fig. 2, it should be noted that when the optical signal intensities of 4 light sources are adjusted, data of 8 channels may be collected for adjustment, and data of only one channel may also be collected for 1 light source, because one light source and one photoelectric sensor form one channel, there are two photoelectric sensors, and each light source corresponds to two channels, and for each light source, data collection may be performed on any one of the two corresponding channels.
It should be noted that, under the condition that the light source is turned on, the photosensor may detect a first electrical signal generated by the mixed light of the ambient light and the light source, and under the condition that the light source is turned off, the photosensor may detect a light signal of the ambient light and convert the light signal into a second electrical signal; and subtracting the second electric signal from the first electric signal to obtain a third electric signal generated by the light emitted by the light source.
Exemplarily, as shown in fig. 3, fig. 3 is a schematic diagram of a data acquisition effect provided by an embodiment of the present application. In fig. 3, LED _ ON high level indicates that the LED is turned ON to emit light, low level indicates that the LED does not emit light, PD high level indicates that the PD is operated, low level indicates that the PD is not operated, high level of signal acquisition indicates that signal acquisition is performed, and low level indicates that signal acquisition is not performed. Fig. 3 shows the effect of sampling data for a channel, only a fraction of the time in each sampling period being used for sampling data for that channel, T in fig. 30Period, one sampling period T0Data sampling of other channels at times outside the time period, T0Comprising T1Time period and T2Time period, light source is at T1Time period off at T2With the photosensor (i.e., PD) at T with a period of time on1Converting ambient light into a second electrical signal over a time period, the photosensor being at T2The time period converts the mixed light of the ambient light and the light source into a first electrical signal, which may be at T1Second sampling data RawBg is acquired in the time interval and is T2The first sampling data RawMix is acquired in a time period, and the current value RawData of the third electric signal can be obtained by subtracting the second sampling data RawBg from the first sampling data RawMix. Of course, this is merely an example and does not represent a limitation of the present application.
And 102, when the channel corresponding to the first sampling data is determined to reach the light adjustment starting condition according to the first sampling data, adjusting the driving signal of the light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data.
Each channel is adjusted for optical signal strength in accordance with the method of step 102. In this application, a channel corresponding to the first sampling data is described, and the channel may be an ith channel of the at least one channel, i is an integer within [1, n ], and n is the number of the at least one channel.
Here, for example, how to adjust the intensity of the optical signal is illustrated, optionally, in an embodiment of the present application, adjusting the driving signal of the light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data includes:
when the channel corresponding to the first sampling data meets the condition of starting light adjustment according to the first sampling data, acquiring a third electric signal corresponding to light emitted by the light source according to the first sampling data and the second sampling data; determining a current parameter of a channel corresponding to the first sampling data according to a current value of the third electric signal in the current sampling period and the target dimming interval; and adjusting the driving signal of the light source of the channel corresponding to the first sampling data according to the current parameter of the channel corresponding to the first sampling data.
Optionally, in an embodiment of the present application, the method further includes: and when the adjustment result of the current sampling period does not meet the adjustment end condition of the driving signal, adjusting the intensity of the optical signal corresponding to the channel corresponding to the first sampling data according to the current value of the third electrical signal of the channel corresponding to the first sampling data in the next sampling period until the adjustment end condition of the driving signal is met.
Further, a specific example is listed to illustrate how the current parameter is determined. Optionally, in an embodiment of the present application, determining a current parameter of a channel corresponding to the first sampling data according to a current value of the third electrical signal in a current sampling period and the target dimming interval includes:
when the current value of the third electric signal is larger than the upper limit value of the target dimming interval, determining the average value of the current value of the channel corresponding to the first sampling data and the lower limit value of the target current interval as the current parameter of the channel corresponding to the first sampling data; and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the average value of the current value of the channel corresponding to the first sampling data and the upper limit value of the target current interval as the current parameter of the channel corresponding to the first sampling data.
Optionally, in an embodiment of the present application, the method further includes:
when the current value of the third electric signal is larger than the upper limit value of the target dimming interval, determining the average value of the current value of the channel corresponding to the first sampling data and the lower limit value of the target current interval as a new lower limit value of the target current interval; and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the average value of the current value of the channel corresponding to the first sampling data and the upper limit value of the target current interval as the new upper limit value of the target current interval.
And in the next sampling period, the intensity of the optical signal corresponding to the channel corresponding to the first sampling data can be further adjusted according to the acquired current value of the third electrical signal of the channel corresponding to the new first sampling data and the new target current interval, and the process is circulated until the condition of finishing the adjustment of the driving signal is met.
Here, the drive signal adjustment end condition and the on light adjustment condition are described separately by taking two application scenarios.
Optionally, in an implementation manner of the first application scenario, the method further includes:
and when the current value of the third electric signal is greater than or equal to the lower limit value of the target dimming interval and less than or equal to the upper limit value of the target dimming interval, determining that the driving signal adjustment end condition is satisfied.
Further, after the driving signal adjustment end condition is satisfied, it may be determined whether the dimming is successful. For example, optionally, in an embodiment of the present application, the method further comprises: after the condition for finishing the adjustment of the driving signal is met, if the first sampling data in the current sampling period is greater than or equal to the first threshold and less than or equal to the second threshold, the adjustment of the driving signal is determined to reach the preset condition for finishing the light adjustment.
Optionally, in another embodiment of the present application, the method further includes: after the condition for finishing the adjustment of the driving signal is met, if the first sampling data in the current sampling period is smaller than a first threshold value or larger than a second threshold value, it is determined that the adjustment of the driving signal does not reach the preset condition for finishing the light adjustment.
Optionally, it should be noted that if the first sampling data in the current sampling period is smaller than the first threshold, and the current value of the third electrical signal of the channel corresponding to the first sampling data in the current sampling period is greater than the upper limit value of the target dimming interval, it is determined that the driving signal adjustment end condition is met, and dimming fails; or, if the first sampling data in the current sampling period is greater than the second threshold value, and the current value of the third electrical signal of the channel corresponding to the first sampling data in the current sampling period is less than the lower limit value of the target dimming interval, it is determined that the driving signal adjustment end condition is met, and dimming fails.
Of course, this is merely an example and does not represent a limitation of the present application.
Optionally, in a second application scenario, the method further includes:
in each sampling period of a preset time period, the first sampling data is smaller than a first threshold value; or, in each sampling period of the preset time period, when the first sampling data is greater than the second threshold, determining that the channel corresponding to the first sampling data meets the condition of turning on the light adjustment, and the second threshold is greater than the first threshold.
It should be noted that adjusting the intensity of the optical signal may be a cyclic process, for example, each light source corresponds to a plurality of channels, and for a light source, data of the same channel may be sampled at each period for optical signal adjustment, which is only exemplary and not meant to limit the present application1,i2]The upper limit value of the target dimming interval is H, the lower limit value of the target dimming interval is L, and the first threshold value is TH1Second thresholdValue TH2The current parameter (current value of the driving signal) of the current sampling period is dn. Here, the following will be described by taking step 1), step 2), and step 3) as examples:
step 1) if the value of RawMix in continuous N sampling periods is larger than a second threshold value TH2The intensity of the light signal of the LED needs to be reduced; at this time, if RawData<L, dimming fails, and dimming is finished; otherwise, determining the target current interval as [ i1,i2]=[D1,D2];
If the above condition is not satisfied, judging if the value of the continuous N sampling periods of the RawData is less than the first threshold TH1The intensity of the light signal of the LED needs to be increased; at this time, if RawData>H, dimming fails, and dimming is finished; otherwise, determining the target current interval as [ i1,i2]=[D1,D2];
Step 2) D1And D2Is the current threshold of the LED, will [ D1,D2]As an initial value of the target current interval. In the process of adjusting the intensity of the optical signal corresponding to the channel corresponding to the first sampling data, the following four conditions may be performed:
in the first case, if RawData>H, and dn==D1And ending dimming; or RawData<L,dn==D2And ending dimming; if L is less than or equal to RawData and less than or equal to H and RawMix is less than or equal to TH1Dimming is successful, otherwise dimming fails;
in the second case, if L is less than or equal to RawData and less than or equal to H, dimming is finished; if RawMix>TH2Dimming fails if RawMix is less than or equal to TH1The dimming is successful;
in the third case, if RawData>H, adjusting the dimming interval [ i1,i2]=[i1,dn]And calculating:
dn=(dn+i1)/2;
if RawData<L, adjusting the dimming interval [ i1,i2]=[dn,i2]And calculating:
dn=(dn+i2)/2;
and 3) acquiring the Rawdata and the RawMix of the channel corresponding to the first sampling data in the next sampling period, and returning to the step 2) to continue adjustment.
And (3) adjusting the current parameter by circularly executing the steps 2) and 3) until the dimming is finished, and obtaining the result of the success or failure of dimming.
It should be noted that, if there are multiple channels, the first sampling data and the second sampling data of each channel are obtained in each period, the multiple channels are judged whether to meet the condition of turning on the light adjustment, and the channels meeting the condition of turning on the light adjustment are adjusted according to a sampling data and a second sampling data; then, the dimming mark information of each channel is updated, and the next cycle sampling is carried out.
103, generating dimming mark information according to a result of adjusting the driving signal of the channel corresponding to the first sampling data, and sending the dimming mark information to the main control end; or when the adjustment of the driving signal does not reach the preset light adjustment end condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal.
And sending a gain adjustment request to the main control end according to the adjustment result of the driving signal so as to trigger the main control end to perform gain adjustment on the electric signal of the channel corresponding to the first sampling data. One channel refers to a channel formed by the light source and the photodiode, the optical signal refers to a signal of the light source, and the electrical signal refers to an electrical signal obtained by converting the optical signal.
It should be noted that, dimming mark information may be recorded for each channel, that is, one channel corresponds to one dimming mark information, or one light source corresponds to one dimming mark information, which is not limited in this application. Each channel is individually adjusted in light signal intensity, so that each channel can generate a dimming flag after dimming is finished. In a sampling period, whether each channel needs to be dimmed is judged, the intensity of the optical signal of the channel needing to be dimmed is adjusted, and when the sampling period is ended, part of the channels do not need to be dimmed, so that dimming mark information does not exist, dimming of part of the channels does not end, dimming information does not exist, and dimming mark information is generated after dimming of part of the channels ends. The generated dimming flag information may be stored and then a next sampling period may be performed. In a plurality of continuous sampling periods, each channel is independently dimmed without mutual influence, and in addition, the channels needing dimming are all adjusted in one sampling period, so that the dimming efficiency is higher.
Optionally, in an embodiment of the present application, the dimming flag information is used to indicate at least one of whether the intensity adjustment on the light signal is successful, whether the first sampling data of the current sampling period is smaller than a first threshold, whether the first sampling data of the current sampling period is larger than a second threshold, whether the current value of the third electrical signal is larger than an upper limit value of the target dimming interval, and whether the current value of the third electrical signal is smaller than a lower limit value of the target dimming interval.
In a sampling period, if the dimming mark information of at least one channel indicates that the adjustment of the corresponding channel driving signal does not reach the preset light adjustment end condition, adjusting the gain of the electric signal corresponding to the channel which does not reach the preset light adjustment end condition, and keeping the gains of the electric signals corresponding to other channels unchanged.
As described in step 103, after one sampling period is finished, dimming flag information may be generated only in a part of channels, and the dimming flag information is determined to perform gain adjustment on channels that do not reach the preset light adjustment end condition. Whether gain adjustment is performed on each channel is also independent, and here, a channel corresponding to the first sampling data is taken as an example for explanation, which, of course, does not represent that the present application is limited thereto.
For example, the channel corresponding to the first sampling data is formed by the photosensor a and the light source P, the photosensor a detects an optical signal emitted by the light source P and converts the optical signal into an electrical signal, and the gain adjustment request indicates adjustment of the gain of the electrical signal generated by conversion by the photosensor a.
Specifically, when the dimming flag information indicates that the adjustment of the light signal intensity of the channel corresponding to the first sampling data fails, if the first sampling data in the current sampling period is smaller than a first threshold value and the current value of the third electrical signal of the channel corresponding to the first sampling data in the current sampling period is smaller than the lower limit value of the target dimming interval, the gain of the electrical signal is increased;
when the dimming mark information indicates that the adjustment of the light signal intensity of the channel corresponding to the first sampling data fails, if the first sampling data of the channel corresponding to the first sampling data in the current sampling period is greater than the second threshold value, or the current value of the third electric signal of the channel corresponding to the first sampling data in the current sampling period is greater than the upper limit value of the target dimming interval, the gain of the electric signal is reduced.
Alternatively, several specific cases are described here, taking a channel corresponding to the first sampling data as an example, the first sampling data is RawMix, a current value of the third electrical signal of the channel corresponding to the first sampling data is RawData, an upper limit value of the target dimming interval is H, a lower limit value of the target dimming interval is L, and the first threshold value is TH1The second threshold is TH2
If RawMix>TH2And RawData>H, the RawData is too large, and the gain needs to be reduced;
if RawMix>TH2And RawData<L, indicating that the ambient light is too strong, the gain needs to be reduced, and the optical signal intensity needs to be increased;
if RawMix>TH2And L is<RawData<H, indicating that the ambient light is too strong and the gain needs to be reduced;
if RawMix<TH1And RawData>H, the RawData is too large, and the gain needs to be reduced;
if RawMix<TH1,RawData<L, indicating that RawData is too small, requires increased gain.
Through adjusting the optical signal intensity corresponding to the channel corresponding to the first sampling data and adjusting the gain of the electric signal corresponding to the channel corresponding to the first sampling data, the signal intensity of the signal acquired through the channel corresponding to the first sampling data can be better, and the detection is more facilitated.
The signal adjusting method provided by the embodiment of the application obtains first sampling data and second sampling data of at least one channel; and when the channel corresponding to the first sampling data meets the starting light adjustment condition according to the first sampling data, adjusting the driving signal of the light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data, and sending dimming mark information to the main control end, or when the adjustment of the driving signal does not reach a preset light adjustment finishing condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal. The light intensity and the signal gain are within a proper range, the quality of the detected signal is improved, and the detection accuracy is improved.
Example II,
Based on the signal adjusting method provided by the first embodiment, an embodiment of the present application provides a signal adjusting apparatus for performing the method described in the first embodiment, as shown in fig. 4, the signal adjusting apparatus 40 includes: an acquisition module 401, a dimming control module 402, and a result processing module 403;
an obtaining module 401, configured to obtain first sampling data and second sampling data of at least one channel, where one channel is used to indicate a signal processing channel formed by one photosensor and one light source, the first sampling data is used to indicate a first electrical signal corresponding to mixed light formed by light emitted by the light source and ambient light, and the second sampling data is used to indicate a second electrical signal corresponding to the ambient light;
the dimming control module 402 is configured to, when it is determined that a channel corresponding to the first sampling data reaches a start light adjustment condition according to the first sampling data, adjust a driving signal of a light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data;
the result processing module 403 is configured to generate dimming flag information according to a result of adjusting the driving signal by the channel corresponding to the first sampling data, and send the dimming flag information to the main control end; or when the adjustment of the driving signal does not reach the preset light adjustment end condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal so as to trigger the main control end to perform gain adjustment on the channel corresponding to the first sampling data.
Optionally, in an embodiment of the present application, the dimming control module 402 is further configured to, when it is determined that a channel corresponding to the first sampling data meets a turn-on light adjustment condition according to the first sampling data, obtain, according to the first sampling data and the second sampling data, a third electrical signal corresponding to light emitted by the light source; determining a current parameter of a channel corresponding to the first sampling data according to a current value of the third electric signal in the current sampling period and the target dimming interval; and adjusting the driving signal of the light source of the channel corresponding to the first sampling data according to the current parameter of the channel corresponding to the first sampling data.
Optionally, in an embodiment of the present application, the dimming control module 402 is further configured to, when the adjustment result of the current sampling period does not satisfy the driving signal adjustment end condition, adjust the intensity of the optical signal corresponding to the channel corresponding to the first sampling data according to the current value of the third electrical signal of the channel corresponding to the first sampling data in the next sampling period until the driving signal adjustment end condition is satisfied.
Optionally, in an embodiment of the present application, the dimming control module 402 is further configured to determine, when the current value of the third electrical signal is greater than the upper limit value of the target dimming interval, an average value of the lower limit value of the target current interval and the current value of the channel corresponding to the first sampling data as the current parameter of the channel corresponding to the first sampling data; and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the average value of the upper limit value of the target current interval and the current value of the channel corresponding to the first sampling data as the current parameter of the channel corresponding to the first sampling data.
Optionally, in an embodiment of the present application, the dimming control module 402 is further configured to determine, when the current value of the third electrical signal is greater than the upper limit value of the target dimming interval, an average value of the lower limit value of the target current interval and the current value of the channel corresponding to the first sampling data as a new lower limit value of the target current interval; and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the average value of the upper limit value of the target current interval and the current value of the channel corresponding to the first sampling data as the new upper limit value of the target current interval.
Optionally, in an embodiment of the present application, the dimming control module 402 is further configured to determine that the driving signal adjustment ending condition is satisfied when the current value of the third electrical signal is greater than or equal to the lower limit value of the target dimming interval and is less than or equal to the upper limit value of the target dimming interval.
Optionally, in an embodiment of the application, the obtaining module 401 is further configured to perform data acquisition on a signal of at least one channel in each sampling period of a preset time period to obtain first sampling data and second sampling data of each channel, where the preset time period includes at least one sampling period.
Optionally, in an embodiment of the present application, the dimming control module 402 is further configured to, in each sampling period of the preset time period, determine that the first sampling data is smaller than the first threshold; or, in each sampling period of the preset time period, when the first sampling data is greater than the second threshold, determining that the channel corresponding to the first sampling data meets the condition of turning on the light adjustment, and the second threshold is greater than the first threshold.
Optionally, in an embodiment of the present application, the dimming control module 402 is further configured to determine that the adjustment of the driving signal reaches the preset light adjustment ending condition if the first sampling data in the current sampling period is greater than or equal to the first threshold and less than or equal to the second threshold after the driving signal adjustment ending condition is met.
Optionally, in an embodiment of the present application, the dimming control module 402 is further configured to determine that the adjustment on the driving signal does not reach the preset light adjustment ending condition if the first sampling data in the current sampling period is smaller than the first threshold or larger than the second threshold after the driving signal adjustment ending condition is met.
The signal adjusting device provided by the embodiment of the application acquires first sampling data and second sampling data of at least one channel; and when the channel corresponding to the first sampling data meets the starting light adjustment condition according to the first sampling data, adjusting the driving signal of the light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data, and sending dimming mark information to the main control end, or when the adjustment of the driving signal does not reach a preset light adjustment finishing condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal. The light intensity and the signal gain are within a proper range, the quality of the detected signal is improved, and the detection accuracy is improved.
Example III,
Based on the signal adjustment method provided in the first embodiment and the signal adjustment apparatus provided in the second embodiment, an embodiment of the present application provides a biometric apparatus for performing the method described in the first embodiment, and as shown in fig. 5, the biometric apparatus 50 includes: such as the signal conditioning device 40 described in embodiment two.
Optionally, in an embodiment of the present application, the dimming flag information is used to indicate at least one of whether the dimming signal intensity adjustment is successful, whether the first sampling data in the current sampling period is smaller than a first threshold, whether the first sampling data in the current sampling period is larger than a second threshold, whether the current value of the third electrical signal in the current sampling period is larger than an upper limit value of the target dimming interval, and whether the current value of the third electrical signal in the current sampling period is smaller than a lower limit value of the target dimming interval.
Optionally, in an embodiment of the present application, the biometric detection apparatus 50 further includes a main control terminal 501;
the main control terminal 501 is configured to receive dimming flag information transmitted by the signal adjusting apparatus, and when the dimming flag information indicates that the adjustment of the driving signal does not reach a preset light adjustment end condition, if first sampling data in a current sampling period is smaller than a first threshold and a current value of a third electrical signal of a channel corresponding to the first sampling data in the current sampling period is smaller than a lower limit value of a target dimming interval, increase a gain of the electrical signal corresponding to the channel corresponding to the first sampling data;
when the dimming mark information indicates that the adjustment of the driving signal does not reach the preset light adjustment end condition, if the first sampling data in the current sampling period is greater than the second threshold value, or the current value of the third electrical signal of the channel corresponding to the first sampling data in the current sampling period is greater than the upper limit value of the target dimming interval, the gain of the electrical signal corresponding to the channel corresponding to the first sampling data is reduced.
One channel refers to a channel formed by the light source and the photodiode, the optical signal refers to a signal of the light source, and the electrical signal refers to an electrical signal obtained by converting the optical signal.
Optionally, in an embodiment of the present application, the biometric detection apparatus 50 further includes: a light source 502, a photodiode array 503, an analog front end 504, and an analog-to-digital converter 505;
the light source 502 is used for emitting light signals;
a photosensor array 503 for receiving the optical signal and converting it into an electrical signal;
an analog front end 504 for converting an electrical signal from current to voltage;
and an analog-to-digital converter 505 for performing analog-to-digital conversion processing on the electrical signal.
Alternatively, in one embodiment of the present application,
the main control terminal 501 is further configured to send a gain adjustment instruction to the analog front end 504 of the channel corresponding to the first sampling data;
the analog front end 504 is further configured to perform gain adjustment on a channel corresponding to the first sampling data according to the gain adjustment instruction.
In fig. 5, an Analog-to-Digital Converter (ADC) 505 is represented as an ADC, and an Analog Front End (AFE) 504 is represented as an AFE signal adjusting device 40, which may be a PPG dimming control module.
The biological characteristic detection device provided by the embodiment of the application acquires first sampling data and second sampling data of at least one channel; and when the channel corresponding to the first sampling data meets the starting light adjustment condition according to the first sampling data, adjusting the driving signal of the light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data, and sending dimming mark information to the main control end, or when the adjustment of the driving signal does not reach a preset light adjustment finishing condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal. The light intensity and the signal gain are within a proper range, the quality of the detected signal is improved, and the detection accuracy is improved.
Example four,
Based on the signal adjustment method described in the first embodiment, a fourth embodiment of the present application provides a computer storage medium, where a computer program is stored on the computer storage medium, and when the computer program is executed by a processor, the signal adjustment method described in the first embodiment is implemented.
Thus, particular embodiments of the present subject matter have been described. Other embodiments are within the scope of the following claims. In some cases, the actions recited in the claims can be performed in a different order and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may be advantageous.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Language Description Language), traffic, pl (core unified Programming Language), HDCal, JHDL (Java Hardware Description Language), langue, Lola, HDL, laspam, hardsradware (Hardware Description Language), vhjhd (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The apparatus illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular transactions or implement particular abstract data types. The application may also be practiced in distributed computing environments where transactions are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (25)

1. A method of signal conditioning, comprising:
acquiring first sampling data and second sampling data of at least one channel, wherein one channel is used for indicating a signal processing channel formed by a photoelectric sensor and a light source, the first sampling data is used for indicating a first electric signal corresponding to mixed light formed by light emitted by the light source and ambient light, and the second sampling data is used for indicating a second electric signal corresponding to the ambient light;
when the channel corresponding to the first sampling data reaches a starting light adjustment condition according to the first sampling data, adjusting a driving signal of a light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data;
generating dimming marking information according to the result of adjusting the driving signal according to the channel corresponding to the first sampling data, and sending the dimming marking information to a main control end;
or when the adjustment of the driving signal does not reach a preset light adjustment finishing condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal so as to trigger the main control end to perform gain adjustment on the channel corresponding to the first sampling data.
2. The signal adjustment method according to claim 1, wherein adjusting the driving signal of the light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data comprises:
when the channel corresponding to the first sampling data meets the condition of starting light adjustment according to the first sampling data, acquiring a third electric signal corresponding to light emitted by a light source according to the first sampling data and the second sampling data; determining a current parameter of a channel corresponding to the first sampling data according to a current value of the third electric signal in a current sampling period and a target dimming interval;
and adjusting the driving signal of the light source of the channel corresponding to the first sampling data according to the current parameter of the channel corresponding to the first sampling data.
3. The signal conditioning method of claim 2, the method further comprising:
and when the adjustment result of the current sampling period does not meet the adjustment end condition of the driving signal, adjusting the intensity of the optical signal corresponding to the channel corresponding to the first sampling data according to the current value of the third electrical signal of the channel corresponding to the first sampling data in the next sampling period until the adjustment end condition of the driving signal is met.
4. The signal adjustment method according to claim 2, wherein determining the current parameter of the channel corresponding to the first sampling data according to the current value of the third electrical signal in the current sampling period and the target dimming interval comprises:
when the current value of the third electric signal is greater than the upper limit value of the target dimming interval, determining the lower limit value of the target current interval and the average value of the current value of the channel corresponding to the first sampling data as the current parameter of the channel corresponding to the first sampling data;
and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the upper limit value of the target current interval and the average value of the current value of the channel corresponding to the first sampling data as the current parameter of the channel corresponding to the first sampling data.
5. The signal conditioning method in accordance with claim 4, the method further comprising:
when the current value of the third electric signal is greater than the upper limit value of the target dimming interval, determining the lower limit value of the target current interval and the average value of the current values of the channels corresponding to the first sampling data as a new lower limit value of the target current interval;
and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the upper limit value of the target current interval and the average value of the current values of the channels corresponding to the first sampling data as the new upper limit value of the target current interval.
6. The signal conditioning method in accordance with claim 4, the method further comprising:
and when the current value of the third electric signal is greater than or equal to the lower limit value of the target dimming interval and less than or equal to the upper limit value of the target dimming interval, determining that the driving signal adjustment end condition is met.
7. The signal conditioning method of claim 1, wherein obtaining the first sample data and the second sample data for at least one channel comprises:
in each sampling period of a preset time period, carrying out data acquisition on signals of at least one channel to obtain first sampling data and second sampling data of each channel, wherein the preset time period comprises at least one sampling period.
8. The signal conditioning method in accordance with claim 7, the method further comprising:
in each sampling period of the preset time period, when the first sampling data is smaller than a first threshold value; or, in each sampling period of the preset time period, when the first sampling data is greater than a second threshold, it is determined that a channel corresponding to the first sampling data meets an on-light adjustment condition, and the second threshold is greater than the first threshold.
9. The signal conditioning method in accordance with claim 8, the method further comprising:
after the condition that the adjustment of the driving signal is finished is satisfied, if in the current sampling period the first sampling data is greater than or equal to the first threshold value, and is less than or equal to the second threshold value, it is determined that the adjustment of the driving signal reaches the preset condition that the adjustment of the light is finished.
10. The signal conditioning method in accordance with claim 8, the method further comprising:
after the end condition of the drive signal adjustment is satisfied, if the first sampling data is smaller than the first threshold value or larger than the second threshold value in the current sampling period, the adjustment of the drive signal is determined not to reach the preset light adjustment end condition.
11. The signal conditioning method of claim 10,
the dimming mark information is used for indicating at least one of whether the adjustment of the driving signal reaches a preset dimming end condition, whether first sampling data in the current sampling period is smaller than a first threshold, whether first sampling data in the current sampling period is larger than a second threshold, whether the current value of a third electric signal in the current sampling period is larger than an upper limit value of a target dimming interval, and whether the current value of the third electric signal in the current sampling period is smaller than a lower limit value of the target dimming interval.
12. A signal conditioning device, comprising: the device comprises an acquisition module, a dimming control module and a result processing module;
the acquisition module is used for acquiring first sampling data and second sampling data of at least one channel, wherein one channel is used for indicating a signal processing channel formed by a photoelectric sensor and a light source, the first sampling data is used for indicating a first electric signal corresponding to mixed light formed by light emitted by the light source and ambient light, and the second sampling data is used for indicating a second electric signal corresponding to the ambient light;
the dimming control module is configured to, when it is determined that a channel corresponding to the first sampling data reaches a turn-on light adjustment condition according to the first sampling data, adjust a driving signal of a light source corresponding to the channel corresponding to the first sampling data according to the first sampling data and the second sampling data;
the result processing module is used for generating dimming marking information according to the result of the adjustment of the driving signal of the channel corresponding to the first sampling data and sending the dimming marking information to the main control end; or when the adjustment of the driving signal does not reach a preset light adjustment finishing condition, sending a gain adjustment request to the main control end according to the adjustment result of the driving signal so as to trigger the main control end to perform gain adjustment on the channel corresponding to the first sampling data.
13. The signal conditioning device of claim 12,
the dimming control module is further configured to, when it is determined that a channel corresponding to the first sampling data meets a starting light adjustment condition according to the first sampling data, obtain a third electrical signal corresponding to light emitted by a light source according to the first sampling data and the second sampling data; determining a current parameter of a channel corresponding to the first sampling data according to a current value of the third electric signal in a current sampling period and a target dimming interval;
and adjusting the driving signal of the light source of the channel corresponding to the first sampling data according to the current parameter of the channel corresponding to the first sampling data.
14. The signal conditioning device of claim 13,
the dimming control module is further configured to, when the adjustment result of the current sampling period does not satisfy a drive signal light adjustment end condition, adjust the light signal intensity corresponding to the channel corresponding to the first sampling data according to the current value of the third electrical signal of the channel corresponding to the first sampling data in a next sampling period until the drive signal light adjustment end condition is satisfied.
15. The signal conditioning device of claim 13,
the dimming control module is further configured to determine, when the current value of the third electrical signal is greater than the upper limit value of the target dimming interval, an average value of a lower limit value of the target current interval and a current value of a channel corresponding to the first sampling data as a current parameter of the channel corresponding to the first sampling data; and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the upper limit value of the target current interval and the average value of the current value of the channel corresponding to the first sampling data as the current parameter of the channel corresponding to the first sampling data.
16. The signal conditioning device of claim 15,
the dimming control module is further configured to determine, when the current value of the third electrical signal is greater than the upper limit value of the target dimming interval, an average value of the lower limit value of the target current interval and the current value of the channel corresponding to the first sampling data as a new lower limit value of the target current interval; and when the current value of the third electric signal is smaller than the lower limit value of the target dimming interval, determining the upper limit value of the target current interval and the average value of the current values of the channels corresponding to the first sampling data as the new upper limit value of the target current interval.
17. The signal conditioning device of claim 15,
the dimming control module is further configured to determine that the adjustment of the driving signal reaches the preset dimming adjustment end condition when the current value of the third electrical signal is greater than or equal to the lower limit value of the target dimming interval and is less than or equal to the upper limit value of the target dimming interval.
18. The signal conditioning device of claim 12,
the acquisition module is further configured to perform data acquisition on a signal of at least one channel in each sampling period of the preset time period to obtain first sampling data and second sampling data of each channel, where the preset time period includes at least one sampling period.
19. The signal conditioning device of claim 18,
the dimming control module is further configured to, in each sampling period of the preset time period, enable the first sampling data to be smaller than a first threshold; or, in each sampling period of the preset time period, when the first sampling data is greater than a second threshold, determining that a channel corresponding to the first sampling data meets the condition of adjusting the on light, where the second threshold is greater than the first threshold.
20. The signal conditioning device of claim 19,
the light modulation control module is further configured to meet the driving signal adjustment end condition, and if the first sampling data is greater than or equal to the first threshold and is less than or equal to the second threshold in the current sampling period, determine that the adjustment of the driving signal reaches the preset light adjustment end condition.
21. The signal conditioning device of claim 19,
the light modulation control module is further configured to determine that the adjustment of the driving signal does not reach a preset light modulation end condition if the first sampling data is smaller than the first threshold or larger than the second threshold in the current sampling period after the driving signal modulation end condition is met.
22. A biometric detection device, comprising: a signal conditioning device according to any one of claims 13 to 21.
23. The biometric detection device of claim 22, further comprising a master control terminal;
the main control terminal is configured to receive dimming flag information transmitted by the signal adjusting apparatus, and when the dimming flag information indicates that adjustment of the driving signal does not reach a preset light adjustment end condition, if the first sampling data in the current sampling period is smaller than the first threshold and a current value of a third electrical signal of a channel corresponding to the first sampling data in the current sampling period is smaller than a lower limit value of the target dimming interval, increase a gain of the electrical signal corresponding to the channel corresponding to the first sampling data;
when the dimming mark information indicates that the adjustment of the driving signal does not reach the preset light adjustment end condition, if in the current sampling period, the first sampling data is greater than the second threshold value, or in the current sampling period, the current value of the third electric signal of the channel corresponding to the first sampling data is greater than the upper limit value of the target dimming interval, the gain of the electric signal corresponding to the channel corresponding to the first sampling data is reduced.
24. The biometric detection device according to claim 23, further comprising: the device comprises a light source, a photodiode array, an analog front end and an analog-to-digital converter;
the light source is used for emitting light signals;
the photoelectric sensor array is used for receiving optical signals and converting the optical signals into electric signals;
the analog front end is used for converting the electric signal from current to voltage;
the analog-to-digital converter is used for performing analog-to-digital conversion processing on the electric signal.
25. The biometric detection device of claim 24,
the main control end is further configured to send a gain adjustment instruction to the analog front end of the channel corresponding to the first sampling data;
the analog front end is further configured to perform gain adjustment according to the gain adjustment instruction.
A computer storage medium, characterized in that the computer storage medium has stored thereon a computer program which, when executed by a processor, implements a signal conditioning method according to any one of claims 1-11.
CN201980004500.3A 2019-11-29 2019-11-29 Signal adjusting method and device and computer storage medium Active CN111093490B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/121961 WO2021102908A1 (en) 2019-11-29 2019-11-29 Signal adjustment method and apparatus, and computer storage medium

Publications (2)

Publication Number Publication Date
CN111093490A true CN111093490A (en) 2020-05-01
CN111093490B CN111093490B (en) 2022-10-21

Family

ID=70398791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201980004500.3A Active CN111093490B (en) 2019-11-29 2019-11-29 Signal adjusting method and device and computer storage medium

Country Status (2)

Country Link
CN (1) CN111093490B (en)
WO (1) WO2021102908A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022111686A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Method and apparatus for measuring biometric parameters
WO2024017112A1 (en) * 2022-07-22 2024-01-25 华为技术有限公司 Light source dimming method and electrical device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709771B (en) * 2021-08-20 2023-03-10 中国科学院数学与系统科学研究院 Method, device, equipment and readable medium for adjusting signal transmission power

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035460A (en) * 2004-10-06 2007-09-12 泰尔茂株式会社 Blood pressure measuring device and blood pressure measuring method
US20160235371A1 (en) * 2015-02-12 2016-08-18 Renesas Electronics Corporation Pulsimeter, frequency analysis device, and pulse measurement method
CN107773250A (en) * 2017-11-22 2018-03-09 江苏康尚生物医疗科技有限公司 A kind of photoelectric sphyg BOLD contrast quick dimming controlling method of automatic growth control
US20180333244A1 (en) * 2017-05-19 2018-11-22 Maxim Integrated Products, Inc. Physiological condition determination system
CN109863703A (en) * 2019-01-24 2019-06-07 深圳市汇顶科技股份有限公司 Signal Regulation method, apparatus, chip, equipment and storage medium
CN110365405A (en) * 2019-06-24 2019-10-22 深圳怡化电脑股份有限公司 Photoelectric sensor detection method, device, readable storage medium storing program for executing and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI646322B (en) * 2017-05-08 2019-01-01 國立交通大學 Adaptive controller used in photoplethysmography sensing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035460A (en) * 2004-10-06 2007-09-12 泰尔茂株式会社 Blood pressure measuring device and blood pressure measuring method
US20160235371A1 (en) * 2015-02-12 2016-08-18 Renesas Electronics Corporation Pulsimeter, frequency analysis device, and pulse measurement method
US20180333244A1 (en) * 2017-05-19 2018-11-22 Maxim Integrated Products, Inc. Physiological condition determination system
CN107773250A (en) * 2017-11-22 2018-03-09 江苏康尚生物医疗科技有限公司 A kind of photoelectric sphyg BOLD contrast quick dimming controlling method of automatic growth control
CN109863703A (en) * 2019-01-24 2019-06-07 深圳市汇顶科技股份有限公司 Signal Regulation method, apparatus, chip, equipment and storage medium
CN110365405A (en) * 2019-06-24 2019-10-22 深圳怡化电脑股份有限公司 Photoelectric sensor detection method, device, readable storage medium storing program for executing and terminal device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022111686A1 (en) * 2020-11-30 2022-06-02 华为技术有限公司 Method and apparatus for measuring biometric parameters
WO2024017112A1 (en) * 2022-07-22 2024-01-25 华为技术有限公司 Light source dimming method and electrical device

Also Published As

Publication number Publication date
CN111093490B (en) 2022-10-21
WO2021102908A1 (en) 2021-06-03

Similar Documents

Publication Publication Date Title
CN111093490B (en) Signal adjusting method and device and computer storage medium
CN106923809B (en) Circuit and method for photoplethysmography sensor
CN107635456B (en) Human body wearable device and operation method thereof
WO2017076105A1 (en) Fault identification system for use in direct current transmission line
CN111132610B (en) Biological feature detection method, biological feature detection device, biological feature detection system, and computer storage medium
TWI640293B (en) Photoelectric detection equipment and integrated circuit
KR102429879B1 (en) LiDAR apparatus and method of operating LiDAR apparatus
MXPA06009754A (en) Techniques for detecting heart pulses and reducing power consumption in sensors.
KR101978552B1 (en) Bio signal measurement device
US20230009376A1 (en) Method for operating a tof ranging array, corresponding circuit and device
US10568581B2 (en) Pulsimeter, frequency analysis device, and pulse measurement method
US9507433B1 (en) System and method for discerning complex gestures using an array of optical sensors
CN113180606B (en) Signal adjustment method of wearable device, wearable device and readable storage medium
JPWO2014208630A1 (en) Capsule medical system
CN205041403U (en) Digital oximetry
US20190038193A1 (en) Multi-purpose dynamically configurable biometric photonics sensor probe
CN114034384A (en) Photoelectric sampling assembly and wearable equipment
CN113131936B (en) Signal generation method and wearable device
CN111094941B (en) PPG circuit, biological feature detection device and biological feature detection method
US20120188416A1 (en) Image system and interference removing method thereof
CN109480815B (en) Heart rate measuring method and device
US20140319222A1 (en) Apparatus and method for reading identification information of biosensor
CN108392192B (en) Light sensing method, physiological parameter calculation method and light sensing system
US20220346657A1 (en) Apparatus and method for detecting light signal
CN111093486B (en) Biological feature detection method, biological feature detection device and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant