CN113766288B - Electric quantity prompting method, device and computer readable storage medium - Google Patents

Electric quantity prompting method, device and computer readable storage medium Download PDF

Info

Publication number
CN113766288B
CN113766288B CN202110892778.8A CN202110892778A CN113766288B CN 113766288 B CN113766288 B CN 113766288B CN 202110892778 A CN202110892778 A CN 202110892778A CN 113766288 B CN113766288 B CN 113766288B
Authority
CN
China
Prior art keywords
target
control signal
low
signal
error rate
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110892778.8A
Other languages
Chinese (zh)
Other versions
CN113766288A (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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202110892778.8A priority Critical patent/CN113766288B/en
Publication of CN113766288A publication Critical patent/CN113766288A/en
Application granted granted Critical
Publication of CN113766288B publication Critical patent/CN113766288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4436Power management, e.g. shutting down unused components of the receiver
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4516Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available
    • 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
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the application discloses an electric quantity prompting method, an electric quantity prompting device and a computer readable storage medium; the embodiment of the application can receive a target control signal; acquiring the number of target low-level signals in a target control signal; decoding a target control signal to obtain the quantity of effective decoding information corresponding to the target control signal; determining the error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals; when the error rate is detected to be larger than the preset error rate threshold value, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information. Therefore, the controlled terminal can determine the electric quantity state of the main control terminal according to the error rate of the target control signal, and prompt the main control terminal when the electric quantity is low.

Description

Electric quantity prompting method, device and computer readable storage medium
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for prompting electric quantity, and a computer readable storage medium.
Background
Television is electronic equipment which is common for people to touch, and living pleasure of people is improved. With the development of the television industry, the remote control technology is applied to television equipment, so that the user experience is improved. In the related art, an infrared remote control technology is generally applied to television equipment, such as an infrared remote controller and a television, and the infrared remote controller transmits modulated infrared light to an infrared receiving head of the television to realize transmission of a remote control code so as to control the television and improve user experience.
However, the intensity of the infrared light emitted by the infrared remote controller is related to the battery power of the infrared remote controller, when the power of the infrared remote controller is low, the intensity of the transmitted infrared light is weakened, so that the television receives a wrong remote control code, the remote control at the moment is out of order, and the television equipment cannot prompt the user of the condition that the power of the remote controller is low, thereby influencing the user experience.
Disclosure of Invention
The embodiment of the application provides an electric quantity prompting method, an electric quantity prompting device and a computer readable storage medium. The problem that the television equipment cannot prompt the user that the remote controller is low in electric quantity can be solved.
The embodiment of the application provides an electric quantity prompting method, which comprises the following steps:
receiving a target control signal;
acquiring the number of target low-level signals in the target control signal;
decoding the target control signal to obtain the quantity of effective decoding information corresponding to the target control signal;
determining the bit error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals;
and when the error rate is detected to be larger than a preset error rate threshold, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information.
Accordingly, an embodiment of the present application provides an electric quantity prompting device, including:
a receiving unit configured to receive a target control signal;
an acquisition unit configured to acquire the number of target low-level signals in the target control signal;
the decoding unit is used for decoding the target control signal to acquire the quantity of effective decoding information corresponding to the target control signal;
a determining unit, configured to determine an error rate of the target control signal according to the number of the effective decoding information and the number of the target low-level signals;
and the prompting unit is used for generating electric quantity prompting information when the error rate is detected to be larger than a preset error rate threshold value, and prompting the electric quantity according to the electric quantity prompting information.
In some embodiments, the acquiring unit is further configured to:
converting the target control signal into a waveform signal;
and acquiring the number of target low-level signals in the target control signal in a target period, wherein the starting time of the target period is the starting trigger time of the first low-level signal in the waveform signal, and the ending time of the target period is the ending trigger time of the last low-level signal in the waveform signal.
In some embodiments, the acquiring unit is further configured to:
identifying the starting trigger time and the ending trigger time of the target period in the waveform signal;
and acquiring the number of target low-level signals from the starting trigger time to the ending trigger time in the waveform signal.
In some embodiments, the decoding unit is further configured to:
converting the target control signal into a waveform signal;
identifying a start low-level signal in the waveform signal, wherein the start low-level signal is a start signal of a low-level control signal segment;
determining a corresponding low-level control signal segment in the waveform signal according to each initial low-level signal;
acquiring the trigger time of each low-level signal in the low-level control signal section, and acquiring the target interval time between two adjacent trigger times;
converting each target interval time into a corresponding signal value to obtain target decoding information corresponding to each low-level control signal segment;
and checking the target decoding information to obtain the quantity of effective decoding information corresponding to the target decoding information.
In some embodiments, the decoding unit is further configured to:
Extracting an information code and a check code in each piece of target decoding information according to a preset encoding rule;
checking the information code according to the check code;
when the information code and the check code in the target decoding information are symmetrical, determining the target decoding information with the symmetrical information code and the symmetrical check code as effective decoding information;
and acquiring the quantity of the effective decoding information.
In some embodiments, the determining unit is further configured to:
determining the number of effective low-level signals corresponding to the effective decoding information according to the number of the effective decoding information and a preset coding rule;
and determining the error rate of the target control signal according to the number of the effective low-level signals and the number of the target low-level signals.
In some embodiments, the power prompting device further comprises: circulation determining unit
Determining the bit error rate as a first bit error rate of a preset period when receiving a target control signal in unit time, and returning to the step of obtaining the number of target low-level signals in the target control signal to obtain a second bit error rate corresponding to current target control information;
obtaining a target error rate according to the average value of the first error rate and the second error rate;
The prompting unit is further configured to generate an electric quantity prompting message when the target error rate is detected to be greater than a preset error rate threshold.
In some embodiments, the power prompting device further comprises: a signal determining unit for:
receiving a control signal within a preset duration;
detecting the interval time between any two adjacent control signals when detecting that the number of the control signals in the preset duration is a plurality of;
obtaining a control signal corresponding to the interval time smaller than a preset time threshold value, and obtaining a control signal segment connected in series;
and determining the control signal segment as a target control signal.
In addition, the embodiment of the application also provides a computer device, which comprises a processor and a memory, wherein the memory stores an application program, and the processor is used for running the application program in the memory to realize the steps in the electric quantity prompting method provided by the embodiment of the application.
In addition, the embodiment of the application further provides a computer readable storage medium, wherein the computer readable storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the steps in any electric quantity prompting method provided by the embodiment of the application.
Furthermore, embodiments of the present application provide a computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in any of the power prompting methods provided in the embodiments of the present application.
The embodiment of the application can receive a target control signal; acquiring the number of target low-level signals in a target control signal; decoding a target control signal to obtain the quantity of effective decoding information corresponding to the target control signal; determining the error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals; when the error rate is detected to be larger than the preset error rate threshold value, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information. According to the embodiment of the application, the controlled terminal can determine the corresponding error rate according to the target control signal sent by the main control terminal, so that the electric quantity state of the main control terminal is determined according to the error rate, and the electric quantity prompt aiming at the main control terminal is sent out, so that when the main control terminal is in a low electric quantity state, the prompt that the electric quantity of the controlled terminal is low aiming at the main control terminal is realized, and the user experience is enhanced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a scenario of an electric quantity prompting method provided in an embodiment of the present application;
fig. 2 is a schematic architecture diagram of a controlled terminal according to an embodiment of the present application;
fig. 3 is a schematic flow chart of steps of an electric quantity prompting method according to an embodiment of the present application;
fig. 4 is a flow chart of an electric quantity prompting method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electric quantity prompting device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides an electric quantity prompting method, an electric quantity prompting device and a computer readable storage medium. The embodiment of the application will be described from the perspective of an electric quantity prompting device, which can be specifically integrated in a computer device, and the computer device can be a terminal or other device. The terminal may be a television, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited thereto. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
For example, referring to fig. 1, a schematic view of a scenario of an electric quantity prompting method provided in an embodiment of the present application is shown. The scene comprises a control terminal 10 and a controlled terminal 20, wherein the main control terminal 10 and the controlled terminal 20 are connected through wireless communication to realize data interaction.
The master terminal 10 transmits a control signal to the controlled terminal 20.
The controlled terminal 20 may receive a target control signal; acquiring the number of target low-level signals in a target control signal; decoding the target control signal to obtain the quantity of effective decoding information corresponding to the target control signal; determining the error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals; when the error rate is detected to be larger than the preset error rate threshold value, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information.
Referring to fig. 2, fig. 2 is a schematic architecture diagram of a controlled terminal according to an embodiment of the present application. The controlled terminal 20 includes a signal receiving unit 21, a waveform signal counting unit 22, a signal decoding unit 23, a signal quality monitoring unit 24, and a signal processing and prompting unit 25. For ease of understanding, the practice of the present application will be described in conjunction with fig. 1 and 2. Specifically, the target control signal is received by the signal receiving unit 21; then, the number of target low level signals in the target control signal is acquired by the waveform signal counting unit 22, and the target control signal is decoded by the signal decoding unit 23 to obtain target decoding information; determining, by the signal quality monitoring unit 24, an error rate of the target control signal according to the number of effective decoding information and the number of target low-level signals; the signal processing and prompting unit 25 is configured to generate electric quantity prompting information when the error rate is detected to be greater than a preset error rate threshold, and perform electric quantity prompting according to the electric quantity prompting information.
The electric quantity prompt can include the processing modes of receiving the target control signal, obtaining the number of target low-level signals of the target control signal, decoding, calculating the error rate, prompting the electric quantity and the like.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
In the embodiment of the present application, description will be made from the perspective of a power prompting device, and the power prompting device may be specifically integrated in a computer device such as a terminal. Referring to fig. 3, fig. 3 is a schematic step flow diagram of an electric quantity prompting method provided in the embodiment of the present application, and when a processor on a terminal executes a program corresponding to the electric quantity prompting method, the specific flow of the electric quantity prompting method is as follows:
101. a target control signal is received.
The target control signal may be a control signal sent by the control terminal, and is used for controlling the controlled terminal, so that the controlled terminal executes a corresponding policy according to the target control signal. The target control signal may be an infrared control signal, a bluetooth wireless signal, or other control signals, which is not limited herein. The target control signal may be an analog signal, or may be a signal transmitted in the form of a waveform signal, or may be a signal transmitted in the form of a control code including a low-level signal and a high-level signal converted into a digital signal. For example, taking an infrared remote controller as a control terminal, the television apparatus is a controlled terminal, and the infrared remote controller controls the television apparatus by sending an infrared light control signal (target control signal), wherein the infrared control signal can be transmitted in a waveform signal form or a digital signal control code form.
102. The number of target low level signals in the target control signal is acquired.
In order to learn the amount of control signals actually contained by the target control signal, the error rate is calculated later. The present embodiment obtains the number of target signals of the target control signal, which may be a high level signal, a low level signal, a falling edge signal of a high level jump to a low level, a rising edge signal of a low level jump to a high level, or the like. It should be noted that, the controlled terminal generally only responds to a certain type of signal, that is, when the controlled terminal detects that the master terminal sends a certain type of signal, the controlled terminal responds to the signal and makes a corresponding policy. For example, the low-level signal is used as a response signal of the controlled terminal, and the number of the target low-level signals in the target control signal is obtained to determine the control signal quantity actually contained in the target control signal.
In some embodiments, the step of "obtaining the number of target low level signals in the target control signal" may include:
(1) The target control signal is converted into a waveform signal.
Wherein the low level signal belongs to a part of the waveform signal. In order to accurately acquire the number of low-level signals in the target control signal later, the present embodiment converts the received target control signal into a waveform signal. The conversion process of the waveform signal is as follows: extracting samples of the target control signal according to a preset interval time so that the continuous target control signal becomes a discrete signal; converting the samples of the target control signal into corresponding signal digital values representing the magnitudes of the decimated samples; the digital value of the signal is converted into a binary number and a waveform signal is determined from the binary number.
(2) The number of target low-level signals in the target control signal in the target period is acquired.
After the target period of the low-level signal in the target control signal is determined, the target period is taken as a time dimension, the number of the target low-level signals in the time dimension is acquired, and the accuracy of learning the number of the target low-level signals in the target control signal is improved.
The starting time of the target period is the starting trigger time of the first low-level signal in the waveform signal, and the ending time of the target period is the ending trigger time of the last low-level signal in the waveform signal.
In some embodiments, the step of "obtaining the number of the target low level signals in the target control signal in the target period" may include:
(2.1) identifying the starting trigger time and the ending trigger time of the target period in the waveform signal;
(2.2) obtaining the number of target low-level signals between the starting trigger time and the ending trigger time in the waveform signals.
When the number of low-level signals of the waveform signals corresponding to the target control signals is obtained, the target time period and the waveform signals can be combined, for example, the starting trigger time and the ending trigger time of the target time period are marked in the waveform signals, and the number of the target low-level signals between the starting trigger time and the ending trigger time in the waveform signals is counted. To improve the accuracy of the number of target signals from which the target control signal is derived.
In some embodiments, the determining of the target time period may include:
A. the start trigger time of the first low level signal in the read waveform signal and the end trigger time of the last low level signal in the read waveform signal.
The waveform signal comprises a plurality of low-level signals, the triggering sequence of the low-level signals in the waveform signal is progressive in sequence according to time and the sequence of the low-level signals in the waveform signal, and the triggering sequence of the low-level signals in the waveform signal is started to trigger by the first low-level signal until the last low-level signal. Wherein the trigger time of each low level signal in the waveform signal is different.
In order for the controlled terminal to distinguish the current target control signal from other control signals, it is necessary to predict a control period when the target control signal controls the controlled device. In this embodiment, the start trigger time of the first low level signal in the waveform signal and the end trigger time of the last low level signal in the waveform signal need to be read first, so that a control time period when the target control signal controls the controlled device is determined according to the start trigger time and the end trigger time of the low level signal in the waveform signal.
B. And determining a target period for triggering all the low-level signals according to the starting trigger time and the ending trigger time.
In order to predict a control time period when the target control signal controls the controlled device, the embodiment may determine a target time period for triggering all low level signals according to the start trigger time and the end trigger time of the low level signals in the waveform signal after acquiring the start trigger time and the end trigger time of the low level signals of the waveform signal corresponding to the target control signal. In this way, the control period when the target control signal controls the controlled device, that is, the target period when the target control signal actually contains the low-level signal, is determined.
Furthermore, in some embodiments, before the step of "obtaining the number of target low level signals in the target control signal", the method further includes:
receiving a control signal within a preset duration;
detecting the interval time between any two adjacent control signals when detecting that the number of the control signals in the preset duration is a plurality of;
obtaining a control signal corresponding to the interval time smaller than a preset time threshold value, and obtaining a control signal segment connected in series;
the control signal segment is determined as the target control signal.
The preset time length can be unit time set by user definition or unit time set by a controlled terminal in a factory, the preset time length is scalar data, and the controlled terminal starts timing when receiving a control signal for the first time until the preset time period is finished; the preset duration may be 3 seconds, 10 seconds, 1 minute, etc., and is not limited herein. For example, the preset duration is set to be 3 seconds, the controlled terminal is taken as television equipment, the infrared remote controller is taken as a main control terminal, when the television equipment receives an infrared light control signal sent by the infrared remote controller, timing is started until the preset duration is over, and control signals within 3 seconds are counted. It should be noted that, one key operation performed by the user on the infrared remote controller is regarded as a control signal, and it can be understood that when the user performs the key operation for multiple times within the preset duration, the television device receives the control signals for corresponding times, and the multiple control signals are regarded as one control flow of the user on the television device through the remote controller.
When a plurality of control signals are received within a preset time, in order to determine whether the plurality of control signals within the preset time belong to the same control flow, the embodiment forms a control signal pair from any two adjacent control signals based on the receiving sequence of the plurality of control signals, calculates the interval time between the two control signals in the control signal pair, and regards the control signal pair with the interval time smaller than the preset time threshold as the control signal in the same control flow, and forms a coherent control signal segment from a plurality of coherent control signal pairs with the interval time smaller than the preset time threshold, wherein the control signal segment is regarded as the target control signal of the same control flow.
By the method, after the target control signal is received, the number of target low-level signals in the target control signal is acquired, so that the control signal quantity actually contained in the target control signal is learned, and the error rate of the target control signal is calculated conveniently.
103. And decoding the target control signal to obtain the quantity of effective decoding information corresponding to the target control signal.
The effective decoding information is an information code which can be responded by the controlled terminal in the target control signal.
In order to determine the amount of effective decoding information contained in the target control signal, the embodiment of the present application decodes the target control signal to obtain target decoding information, and verifies the target decoding information to determine the amount of effective decoding information.
In some embodiments, the step of decoding the target control signal to obtain the amount of valid decoding information corresponding to the target control signal includes:
(1) Converting the target control signal into a waveform signal;
(2) Identifying a start low-level signal in the waveform signal, wherein the start low-level signal is a start signal of a low-level control signal section;
(3) Determining a corresponding low-level control signal segment in the waveform signal according to each initial low-level signal;
(4) Acquiring the trigger time of each low-level signal in the low-level control signal section, and acquiring the target interval time between two adjacent trigger times;
(5) Converting each target interval time into a corresponding signal value to obtain target decoding information corresponding to each low-level control signal segment;
(6) And checking the target decoding information to obtain the quantity of effective decoding information corresponding to the target decoding information.
The target decoding information is a control code obtained by decoding the received target control signal by the controlled terminal, and can be regarded as a control instruction, and the controlled terminal can identify the target decoding information so as to execute a corresponding strategy according to the identified target decoding information. For example, taking a television device as a controlled terminal, after receiving a target control signal sent by a remote control device, the television device decodes the target control signal to obtain corresponding target decoding information, and if the target decoding information is identified as a control code for switching channels, executes a strategy for switching to a target channel.
Because the target control signal can be composed of a control signal string, the target control signal can not directly control the controlled terminal, and the target control signal needs to be converted into a control code which can be responded by the controlled terminal. In this embodiment, after receiving the target control signal, in order to obtain target decoding information that the controlled terminal can respond to, the target decoding information may be decoded to obtain target decoding information corresponding to the target control signal.
It should be noted that each low level control signal segment is composed of an initial low level signal and a target level signal segment; the initial low-level signal can be an initial signal of a low-level control signal section and is used for distinguishing each low-level control signal section in the waveform signal; wherein the target level signal segment is composed of a plurality of low level signals, and the target level signal segment may be a main signal for controlling the controlled terminal.
Further, the corresponding target decoding information is obtained by decoding each low-level control signal segment in the waveform signal, wherein each low-level control signal segment corresponds to one target decoding information. For example, in this embodiment, taking RCA coding rule as an example, each control code may sequentially consist of 1 pilot code, 4 user codes, 8 data codes, 4 user code counter codes, and 8 data code counter codes, that is, each control code includes 25 digits; each code corresponds to a low level signal, or may be a trigger signal or a falling edge of 1 low level signal, for example, the 1 pilot code corresponds to a start low level signal in the low level control signal segment, and the user code, the data code, the user code counter code and the data code counter code collectively correspond to a target level signal segment in the level control signal segment, which is understood to include 24 low level signals, that is, the control code corresponding to one low level control signal segment is 25 digits. It should be noted that, 1 is a pilot code composed of a 4ms high level signal and a 4ms low level signal, and the composition forms of the user code, the data code, the user code inverse code and the data code inverse code may include: 500 mus high level signal +2.0ms low level signal composition, 500 mus high level signal +1.0ms low level signal composition.
In order to obtain the target decoding information in the target control signal, the present embodiment needs to decode the target control signal; the process of decoding the target control signal may be: converting the target control signal into a waveform signal; the method specifically includes identifying a start low-level signal in a waveform signal, wherein the start low-level signal can be a signal period of each high-low level signal in the waveform signal, identifying a continuous signal section consisting of a 4ms high-level signal with a signal period of 4ms low-level signal, and determining a low-level signal in the continuous signal section consisting of the 4ms high-level signal and the 4ms low-level signal as the start low-level signal; determining a level signal section formed by a high level signal and a low level signal with signal periods smaller than 4ms after the low level signal is started as a target level signal section; acquiring the trigger time of each low-level signal in the target level signal section, and according to the target interval time between two adjacent trigger times; and sequentially converting each target interval time into a corresponding signal value to obtain target decoding information corresponding to each low-level control signal segment.
Illustratively, the signal period of the pilot code is a 4ms high level signal and a 4ms low level signal composition, and the target level signal segment includes a plurality of different signal periods (500 μs high level signal+2.0 ms low level signal composition, 500 μs high level signal+1.0 ms low level signal composition). After the target control signal is converted into the waveform signal, a signal segment with a signal period of 4ms high level signal and 4ms low level signal in the waveform signal is used for determining the position of the initial low level. After the initial low-level signal is acquired, a signal segment with a signal period of 500 mu s high-level signal+2.0 ms low-level signal and a signal segment of 500 mu s high-level signal+1.0 ms low-level signal are determined as target level control signal segments, one low-level control signal segment is determined according to the initial low-level signal and the target level control signal segment, and then all low-level control signal segments in the waveform signal can be determined in the mode. Further, the triggering time of each low-level signal in the low-level control signal section is obtained, and the target interval time between two adjacent triggering times is obtained; converting each target interval time into a corresponding signal value, for example, when the pilot code is set, setting the signal value of which the target interval time is 8ms to be 1, and specifically setting the signal value according to actual conditions; when the signal values of the user code and the data code in the target level control signal section are set, the corresponding signal value with the target interval time of 2.5ms is set to be 1, and the corresponding signal value with the target interval time of 1.5ms is set to be 0; when the signal values of the user code inversion code and the data code inversion code in the target level control signal section are set, the corresponding signal value with the target interval time of 2.5ms is set to be 0, and the corresponding signal value with the target interval time of 1.5ms is set to be 1; the target decoding information obtained in this way is 1101001101000010110010111, wherein the first bit pilot code of the target decoding information is 1, the user codes 2 to 5 are 1010, the data codes 6 to 13 are 01101000, the user code inverse codes 14 to 17 are 0101, and the data code inverse codes 18 to 25 are 10010111. In this way, target decoding information corresponding to each low-level control signal segment is obtained.
When a user executes a key on the remote controller once, the control signal sent by the remote controller is decoded to obtain 2-4 key codes, namely 2-4 target decoding information; when the user continuously presses the key 3 times, the control signal segment corresponding to the target control signal consists of 3 control signals, and the target control signal can be decoded to obtain 6-12 target decoding information.
After the target control signal is obtained through decoding, because the control signal sent by the main control terminal is influenced by the electric quantity, the target decoding information obtained through decoding is wrong, and the controlled terminal cannot respond, so that the target decoding information obtained through decoding needs to be checked to determine effective decoding information which can be responded by the controlled terminal.
In some embodiments, the step of "checking the target decoding information to obtain the amount of valid decoding information corresponding to the target decoding information" may include:
(6.1) extracting the information code and the check code in each target decoding information according to a preset encoding rule;
(6.2) checking the information code according to the check code;
(6.3) when the information code and the check code in the target decoding information are symmetrical, determining the target decoding information with the symmetrical information code and the symmetrical check code as effective decoding information;
(6.4) acquiring the amount of effective decoding information.
The information codes are user codes and data codes in the target decoding information, and the check codes are user code reverse codes and data code reverse codes in the target decoding information.
In order to obtain effective decoding information in the target decoding information obtained by decoding, each target decoding information obtained by decoding needs to be checked. For example, taking an RCA encoding rule as a preset encoding rule as an example, identifying the target decoding information according to the RCA encoding rule, extracting an information code and a check code in the target decoding information, namely extracting a user code and a data code in the target decoding information, and extracting a user code inverse code and a data code inverse code in the target decoding information; the information code is checked according to the check code, for example, the user code is 1010, the data code is 01101000, the user code is 0101, the data code is 10010111, the user code 1010 is checked by the user code is 0101, the data code 01101000 is checked by the data code is 10010111 to determine whether the user code corresponds to the user code and whether the data code corresponds to the data code, when the user code corresponds to the user code and the data code corresponds to the data code, the information code and the check code are symmetrical in the target decoding information, and the target decoding information symmetrical to the information code and the check code is determined as effective decoding information.
Further, after the valid decoding information is determined in the above manner, the number of all valid decoding information is counted to determine the number of valid decoding information that the controlled terminal can respond to, and to determine the number of invalid control subcodes that the controlled terminal cannot respond to.
104. And determining the error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals.
After decoding the target control signal, an error signal is generated due to the influence of low electric quantity on the main control terminal, so that the transmitted control signal has errors, and the target decoding information received by the controlled terminal has partial errors, for example, the number of low-level signals contained in a waveform signal corresponding to the target decoding information is increased or decreased, so that the controlled terminal is caused to be in error in decoding, that is, the target decoding information obtained by decoding the target control signal may contain effective decoding information and ineffective control subcode.
To determine whether the controlled terminal is fully responsive to the target control signal, the present embodiment may calculate whether the target control signal has an error rate. And determining the number of the effective low-level signals according to the number of codes of the effective decoding information and the preset signal quantity contained in each sub-code, and calculating the error rate according to the number of the effective low-level signals and the number of the target low-level signals, so as to determine whether the controlled terminal completely responds to the target control signal.
In some embodiments, the step of determining the bit error rate of the target control signal according to the amount of effective decoding information and the amount of the target low level signal may include:
determining the number of effective low-level signals corresponding to the effective decoding information according to the effective decoding information and a preset encoding rule;
and determining the error rate of the target control signal according to the number of the effective low-level signals and the number of the target low-level signals.
For example, taking the RCA coding rule as an example of a preset coding rule, since the RCA coding rule includes a 1-bit pilot code, a 4-bit user code, an 8-bit data code, a 4-bit user code inverse code, and an 8-bit data code inverse code for each control code, the effective decoding information in this embodiment includes 25 digits, and the low-level control signal segment corresponding to the effective decoding information includes 25 low-level signals. Further, the number of effective low-level signals corresponding to the coding number of the effective decoding information is determined based on the 25 low-level signals contained in each effective decoding information, and it is understood that the effective low-level signals are signals responded by the successfully controlled terminal.
Further, the bit error rate of the target control signal is determined according to the number of the effective low-level signals and the number of the target low-level signals. For example, the user operates the key for 5 times within the preset duration, each key corresponds to 3 pieces of target decoding information, the controlled terminal decodes to obtain 10 pieces of effective decoding information, and the waveform signal corresponding to the target control signal actually includes 388 pieces of target low-level signals (the sum of the falling edges is 388 times). When calculating the error rate of the target control signal, acquiring the number of the effective low levels corresponding to all the effective decoding information, determining an effective signal ratio according to the number of the effective low levels and the number of the target low levels, and determining the error rate according to the effective signal ratio; the bit error rate E of the target control signal is calculated as: e=1-25 x 10/388=35.57%, where E denotes the bit error rate, which is 35.57% for this example.
By the method, the error rate of the target control signal can be obtained, so that whether the target control signal has an error or not is determined, and whether the main control terminal is in a low-power state or not can be conveniently determined later.
105. When the error rate is detected to be larger than the preset error rate threshold value, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information.
Because the main control terminal is affected by low electric quantity, an error signal can be generated, and thus, the sent control signal has errors, so that partial errors exist in target decoding information received by the controlled terminal, for example, the number of low-level signals contained in waveform signals corresponding to the target decoding information is increased or decreased, and then, the controlled terminal is caused to have errors in decoding. When the controlled terminal decodes the error, the error rate of the target control signal is calculated, and whether the target control signal has an error signal or not is determined according to the error rate of the target control signal. When the target control signal has a signal which cannot be responded by the controlled terminal, a corresponding preset strategy is made, such as electric quantity prompt of the main control terminal is carried out on a display interface of the controlled terminal, and prompt voice of the main control terminal in a low electric quantity state is sent out by the controlled terminal.
When determining whether the target control signal has an error signal according to the error rate of the target control signal, the calculated error rate may be compared with a preset error rate threshold, where the preset error rate threshold may be 0, 5%, 10%, and the like, and the method is not limited herein, and may be specifically determined according to practical situations. For example, in this embodiment, the preset bit error rate threshold is 0, when the bit error rate of the target control signal is calculated to be 35.57%, and when the calculated bit error rate is greater than the preset bit error rate threshold, it is indicated that the target control signal has an error signal; and then, judging that the electric quantity of the main control terminal is in a low-electric-quantity state, generating low-electric-quantity prompt information at the moment, and carrying out electric quantity prompt according to the electric quantity prompt information.
In some embodiments, after the step of determining the bit error rate of the target control signal according to the amount of effective decoding information and the amount of the target low level signal, the method further includes:
determining the bit error rate as a first bit error rate of a preset period when receiving a target control signal at intervals of unit time, and returning to the step of obtaining the number of target low-level signals in the target control signal to obtain a second bit error rate corresponding to current target control information;
Obtaining a target error rate according to the average value of the first error rate and the second error rate;
generating electric quantity prompt information when the error rate is detected to be larger than a preset error rate threshold value, wherein the electric quantity prompt information comprises the following steps:
and when the target bit error rate is detected to be larger than the preset bit error rate threshold value, generating electric quantity prompt information.
In order to improve accuracy in determining the state of charge of the master control terminal, in this embodiment, a target control signal is received and the bit error rate thereof is calculated; the target control signal is received again in the interval unit time, and in order to facilitate understanding, the target control signal received in the interval unit time is called a second target control signal, the first calculated error rate is determined as a first error rate, a second error rate corresponding to the second target control signal is calculated, and the target error rate is determined according to the average value of the first error rate and the second error rate; when the target error rate is larger than a preset error rate threshold value, determining that the electric quantity of the main control terminal is in a low electric quantity state; at this time, the power-down prompt message is generated, and the power prompt is performed according to the power prompt message.
In addition, in order to improve the accuracy of determining the state of charge of the master terminal, the state of charge of the master terminal can be determined by combining the error rates obtained by multiple calculations. For example, receiving a target control signal and calculating a first error rate; calculating a second error rate when receiving the target control signal at intervals of unit time; calculating a third error rate when the target control signal is received again at intervals of unit time; comparing the first error rate, the second error rate and the third error rate with preset error rate thresholds respectively, and when a plurality of error rates are larger than the preset error rate thresholds, determining that the electric quantity of the main control terminal is in a low electric quantity state; at this time, the power-down prompt message is generated, and the power prompt is performed according to the power prompt message.
From the above, the embodiments of the present application may receive a target control signal; acquiring the number of target low-level signals in a target control signal; decoding the target control signal to obtain the quantity of effective decoding information corresponding to the target control signal; determining the error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals; when the error rate is detected to be larger than the preset error rate threshold value, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information. According to the embodiment of the application, the controlled terminal can determine the corresponding error rate according to the target control signal sent by the main control terminal, so that the electric quantity state of the main control terminal is determined according to the error rate, and the electric quantity prompt aiming at the main control terminal is sent out, so that when the main control terminal is in a low electric quantity state, the prompt that the electric quantity of the controlled terminal is low aiming at the main control terminal is realized, and the user experience is enhanced.
Referring to fig. 4, a flow chart of an electric quantity prompting method provided in an embodiment of the present application is shown. For ease of understanding, this embodiment will be described with reference to fig. 3 and 4. For example, taking an infrared remote controller as an example of a control terminal, a television apparatus is a controlled terminal, and the infrared remote controller controls the television apparatus by transmitting an infrared light control signal (target control signal). When a user executes key operation on the infrared remote controller, the infrared remote controller sends out a control signal corresponding to each key. When detecting a control signal sent by an infrared remote controller, the television equipment starts to receive a target control signal (a plurality of continuous control signals which can be contained), continuously decodes the received target control signal to obtain target decoding information, counts the number of effective decoding information in the target decoding information and reports a key instruction corresponding to the effective decoding information to a corresponding data processing center; after decoding is finished, judging whether the receiving of the target control signal is finished, and calculating the error rate of the received target control signal when the receiving of the target control signal is confirmed to be finished; comparing the calculated error rate with a preset error rate threshold, and when the error rate is larger than the preset error rate threshold, determining that the electric quantity of the main control terminal is in a low electric quantity state, and generating low electric quantity prompt information to prompt the user for low electric quantity. Through the embodiment of the application, the television equipment can determine the corresponding error rate according to the target control signal sent by the infrared remote controller, so that the electric quantity state of the infrared remote controller is determined according to the error rate, and the electric quantity prompt aiming at the infrared remote controller is sent out, so that when the infrared remote controller is in a low electric quantity state, the prompt that the television equipment makes a low electric quantity to the main control terminal is realized, and the user experience is enhanced.
The specific implementation of each operation may be referred to the previous embodiments, and will not be described herein.
In order to better implement the above method, the embodiment of the application also provides a power prompting device, which can be integrated in a computer device, such as a terminal.
For example, as shown in fig. 5, the power prompting device may include a receiving unit 201, an acquiring unit 202, a decoding unit 203, a determining unit 204, and a prompting unit 205.
A receiving unit 201 for receiving a target control signal;
an acquisition unit 202 for acquiring the number of target low-level signals in the target control signal;
a decoding unit 203, configured to decode the target control signal to obtain the amount of valid decoding information corresponding to the target control signal;
a determining unit 204, configured to determine an error rate of the target control signal according to the number of effective decoding information and the number of target low-level signals;
and the prompting unit 205 is configured to generate electric quantity prompting information when the error rate is detected to be greater than the preset error rate threshold, and perform electric quantity prompting according to the electric quantity prompting information.
In some embodiments, the power prompting device further comprises: a signal determining unit for:
Receiving a control signal within a preset duration;
detecting the interval time between any two adjacent control signals when detecting that the number of the control signals in the preset duration is a plurality of;
obtaining a control signal corresponding to the interval time smaller than a preset time threshold value, and obtaining a control signal segment connected in series;
the control signal segment is determined as the target control signal.
In some embodiments, the obtaining unit 202 is further configured to:
converting the target control signal into a waveform signal;
the method comprises the steps of obtaining the number of target low-level signals in a target control signal in a target period, wherein the starting time of the target period is the starting trigger time of a first low-level signal in a waveform signal, and the ending time of the target period is the ending trigger time of a last low-level signal in the waveform signal.
In some embodiments, the obtaining unit 202 is further configured to:
identifying the starting trigger time and the ending trigger time of the target period in the waveform signal;
the number of target low-level signals between the starting trigger time and the ending trigger time in the waveform signals is obtained.
In some embodiments, the decoding unit 203 is further configured to:
converting the target control signal into a waveform signal;
Identifying a start low-level signal in the waveform signal, wherein the start low-level signal is a start signal of a low-level control signal section;
determining a corresponding low-level control signal segment in the waveform signal according to each initial low-level signal;
acquiring the trigger time of each low-level signal in the low-level control signal section, and acquiring the target interval time between two adjacent trigger times;
converting each target interval time into a corresponding signal value to obtain target decoding information corresponding to each low-level control signal segment;
and checking the target decoding information to obtain the quantity of effective decoding information corresponding to the target decoding information.
In some embodiments, the decoding unit 203 is further configured to:
extracting an information code and a check code in each target decoding information according to a preset encoding rule;
checking the information code according to the check code;
when the information code and the check code in the target decoding information are symmetrical, determining the target decoding information with the symmetrical information code and the symmetrical check code as effective decoding information;
the amount of valid decoding information is acquired.
In some embodiments, the determining unit 204 is further configured to:
determining the number of effective low-level signals corresponding to the effective decoding information according to the number of the effective decoding information and a preset coding rule;
And determining the error rate of the target control signal according to the number of the effective low-level signals and the number of the target low-level signals.
In some embodiments, the power prompting device further comprises: circulation determining unit
Determining the bit error rate as a first bit error rate of a preset period when receiving a target control signal at intervals of unit time, and returning to the step of obtaining the number of target low-level signals in the target control signal to obtain a second bit error rate corresponding to current target control information;
obtaining a target error rate according to the average value of the first error rate and the second error rate;
the prompting unit 205 is further configured to generate an electric quantity prompting message when the target error rate is detected to be greater than the preset error rate threshold.
As can be seen from the above, the embodiments of the present application may receive the target control signal through the receiving unit 201; acquiring the number of target low-level signals in the target control signal by the acquisition unit 202; decoding the target control signal by the decoding unit 203 to obtain the amount of effective decoding information corresponding to the target control signal; determining, by the determining unit 204, a bit error rate of the target control signal according to the number of effective decoding information and the number of target low-level signals; the prompting unit 204 is configured to generate electric quantity prompting information when detecting that the error rate is greater than a preset error rate threshold, and perform electric quantity prompting according to the electric quantity prompting information. According to the embodiment of the application, the controlled terminal can determine the corresponding error rate according to the target control signal sent by the main control terminal, so that the electric quantity state of the main control terminal is determined according to the error rate, and the electric quantity prompt aiming at the main control terminal is sent out, so that when the main control terminal is in a low electric quantity state, the prompt that the electric quantity of the controlled terminal is low aiming at the main control terminal is realized, and the user experience is enhanced.
The embodiment of the application further provides a computer device, as shown in fig. 6, which shows a schematic structural diagram of the computer device according to the embodiment of the application, specifically:
the computer device may include one or more processing cores 'processors 301, one or more computer-readable storage media's memory 302, power supply 303, and input unit 304, among other components. Those skilled in the art will appreciate that the computer device structure shown in FIG. 6 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components. Wherein:
processor 301 is the control center of the computer device and uses various interfaces and lines to connect the various parts of the overall computer device, and to perform various functions and process data of the computer device by running or executing software programs and/or modules stored in memory 302, and invoking data stored in memory 302. Optionally, processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 301.
The memory 302 may be used to store software programs and modules, and the processor 301 executes the software programs and modules stored in the memory 302 to perform various functional applications and power prompts. The memory 302 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
The computer device further includes a power supply 303 for powering the various components, preferably, the power supply 303 is logically connected to the processor 301 by a power management system, such that functions such as managing charging, discharging, and power consumption are performed by the power management system. The power supply 303 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The computer device may also include an input unit 304, which input unit 304 may be used to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the computer device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 301 in the computer device loads executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 executes the application programs stored in the memory 302, so as to implement various functions as follows:
receiving a target control signal; acquiring the number of target low-level signals in a target control signal; decoding the target control signal to obtain the quantity of effective decoding information corresponding to the target control signal; determining the error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals; when the error rate is detected to be larger than the preset error rate threshold value, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information.
The specific implementation of each operation may be referred to the previous embodiments, and will not be described herein.
From the above, the embodiments of the present application may receive a target control signal; acquiring the number of target low-level signals in a target control signal; decoding the target control signal to obtain the quantity of effective decoding information corresponding to the target control signal; determining the error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals; when the error rate is detected to be larger than the preset error rate threshold value, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information. According to the embodiment of the application, the controlled terminal can determine the corresponding error rate according to the target control signal sent by the main control terminal, so that the electric quantity state of the main control terminal is determined according to the error rate, and the electric quantity prompt aiming at the main control terminal is sent out, so that when the main control terminal is in a low electric quantity state, the prompt that the electric quantity of the controlled terminal is low aiming at the main control terminal is realized, and the user experience is enhanced.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, embodiments of the present application provide a computer readable storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform steps in any of the power prompting methods provided by embodiments of the present application. For example, the instructions may perform the steps of:
receiving a target control signal; acquiring the number of target low-level signals in a target control signal; decoding the target control signal to obtain the quantity of effective decoding information corresponding to the target control signal; determining the error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals; when the error rate is detected to be larger than the preset error rate threshold value, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the computer-readable storage medium may comprise: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The present application also provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the power prompting method provided in the various alternative implementations of the above embodiments.
Because the instructions stored in the computer readable storage medium may execute the steps in any electric quantity prompting method provided in the embodiments of the present application, the beneficial effects that any electric quantity prompting method provided in the embodiments of the present application can be achieved are detailed in the previous embodiments, and are not described herein.
The foregoing has described in detail the method, apparatus and computer readable storage medium for electric quantity prompting provided by the embodiments of the present application, and specific examples have been applied herein to illustrate the principles and embodiments of the present application, the above description of the embodiments is only for aiding in understanding the method and core idea of the present application; meanwhile, as those skilled in the art will vary in the specific embodiments and application scope according to the ideas of the present application, the contents of the present specification should not be construed as limiting the present application in summary.

Claims (10)

1. An electric quantity prompting method is characterized by comprising the following steps:
receiving a target control signal;
acquiring the number of target low-level signals in the target control signal;
decoding the target control signal to obtain the quantity of effective decoding information corresponding to the target control signal;
Determining the bit error rate of the target control signal according to the quantity of the effective decoding information and the quantity of the target low-level signals;
when the error rate is detected to be larger than a preset error rate threshold value, generating electric quantity prompt information, and carrying out electric quantity prompt according to the electric quantity prompt information;
wherein the determining the bit error rate of the target control signal according to the number of the effective decoding information and the number of the target low-level signals includes:
determining the number of effective low-level signals corresponding to the effective decoding information according to the number of the effective decoding information and a preset coding rule;
and determining an effective signal ratio according to the number of the effective low-level signals and the number of the target low-level signals, and determining the error rate of the target control signal according to the effective signal ratio.
2. The method of claim 1, wherein the obtaining the number of target low level signals in the target control signal comprises:
converting the target control signal into a waveform signal;
and acquiring the number of target low-level signals in the target control signal in a target period, wherein the starting time of the target period is the starting trigger time of the first low-level signal in the waveform signal, and the ending time of the target period is the ending trigger time of the last low-level signal in the waveform signal.
3. The method according to claim 2, wherein the obtaining the corresponding number of the target low level signals in the target control signal in the target period includes:
identifying the starting trigger time and the ending trigger time of the target period in the waveform signal;
and acquiring the number of target low-level signals from the starting trigger time to the ending trigger time in the waveform signal.
4. The method of claim 1, wherein decoding the target control signal to obtain the amount of valid decoded information corresponding to the target control signal comprises:
converting the target control signal into a waveform signal;
identifying a start low-level signal in the waveform signal, wherein the start low-level signal is a start signal of a low-level control signal segment;
determining a corresponding low-level control signal segment in the waveform signal according to each initial low-level signal;
acquiring the trigger time of each low-level signal in the low-level control signal section, and acquiring the target interval time between two adjacent trigger times;
converting each target interval time into a corresponding signal value to obtain target decoding information corresponding to each low-level control signal segment;
And checking the target decoding information to obtain the quantity of effective decoding information corresponding to the target decoding information.
5. The method of claim 4, wherein the verifying the target decoding information to obtain the number of valid decoding information corresponding to the target decoding information comprises:
extracting an information code and a check code in each piece of target decoding information according to a preset encoding rule;
checking the information code according to the check code;
when the information code and the check code in the target decoding information are symmetrical, determining the target decoding information with the symmetrical information code and the symmetrical check code as effective decoding information;
and acquiring the quantity of the effective decoding information.
6. The method of claim 1, wherein after determining the bit error rate of the target control signal according to the amount of the effective decoding information and the amount of the target low level signal, further comprising:
determining the bit error rate as a first bit error rate of a preset period when receiving a target control signal in unit time, and returning to the step of obtaining the number of target low-level signals in the target control signal to obtain a second bit error rate corresponding to current target control information;
Obtaining a target error rate according to the average value of the first error rate and the second error rate;
generating electric quantity prompt information when the error rate is detected to be larger than a preset error rate threshold value, wherein the electric quantity prompt information comprises the following steps:
and generating electric quantity prompt information when the target error rate is detected to be larger than a preset error rate threshold value.
7. The method according to any one of claims 1-6, wherein said obtaining the number of target low level signals in said target control signal, previously comprises:
receiving a control signal within a preset duration;
detecting the interval time between any two adjacent control signals when detecting that the number of the control signals in the preset duration is a plurality of;
obtaining a control signal corresponding to the interval time smaller than a preset time threshold value, and obtaining a control signal segment connected in series;
and determining the control signal segment as a target control signal.
8. An electrical quantity prompting device, comprising:
a receiving unit configured to receive a target control signal;
an acquisition unit configured to acquire the number of target low-level signals in the target control signal;
the decoding unit is used for decoding the target control signal to acquire the quantity of effective decoding information corresponding to the target control signal;
A determining unit, configured to determine an error rate of the target control signal according to the number of the effective decoding information and the number of the target low-level signals;
the prompting unit is used for generating electric quantity prompting information when the error rate is detected to be larger than a preset error rate threshold value, and prompting the electric quantity according to the electric quantity prompting information;
the determining unit is specifically configured to determine, according to the number of the effective decoding information and a preset encoding rule, the number of effective low-level signals corresponding to the effective decoding information; and determining an effective signal ratio according to the number of the effective low-level signals and the number of the target low-level signals, and determining the error rate of the target control signal according to the effective signal ratio.
9. A computer readable storage medium, characterized in that the computer readable storage medium is computer readable and stores a plurality of instructions adapted to be loaded by a processor for performing the steps in the power prompting method of any one of claims 1 to 7.
10. A computer device comprising a processor and a memory, the memory storing an application program, the processor being configured to execute the application program in the memory to implement the steps in the power prompting method of any one of claims 1 to 7.
CN202110892778.8A 2021-08-04 2021-08-04 Electric quantity prompting method, device and computer readable storage medium Active CN113766288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110892778.8A CN113766288B (en) 2021-08-04 2021-08-04 Electric quantity prompting method, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110892778.8A CN113766288B (en) 2021-08-04 2021-08-04 Electric quantity prompting method, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113766288A CN113766288A (en) 2021-12-07
CN113766288B true CN113766288B (en) 2023-05-23

Family

ID=78788539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110892778.8A Active CN113766288B (en) 2021-08-04 2021-08-04 Electric quantity prompting method, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113766288B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105116216A (en) * 2015-09-16 2015-12-02 成都众山科技有限公司 Multifunctional smart electric meter system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR950016433A (en) * 1993-11-30 1995-06-17 김광호 How to display the low battery on the remote control
TW201224487A (en) * 2010-12-13 2012-06-16 Hon Hai Prec Ind Co Ltd Electronic apparatus
CN103021051B (en) * 2012-11-19 2014-04-16 深圳光启创新技术有限公司 Photovoltaic triggering circuit, optical signal receive control equipment and decoding method thereof
CN107069853B (en) * 2014-01-28 2019-04-26 Oppo广东移动通信有限公司 Start the detection circuit and method of charging
CN104185050A (en) * 2014-07-30 2014-12-03 哈尔滨工业大学深圳研究生院 OTT television based intelligent remote control system and control method thereof
CN105185093B (en) * 2015-07-29 2019-02-05 Oppo广东移动通信有限公司 Remote controler implementation method and device
CN105227966A (en) * 2015-09-29 2016-01-06 深圳Tcl新技术有限公司 To televise control method, server and control system of televising
CN109270467A (en) * 2017-07-18 2019-01-25 美的智慧家居科技有限公司 The battery electricity detection method and device of equipment
CN110223499A (en) * 2019-06-18 2019-09-10 广州中安电工高新科技股份有限公司 A kind of infrared decoding method and device
CN112904216A (en) * 2021-01-20 2021-06-04 惠州Tcl移动通信有限公司 Battery electric quantity prompting method, system, storage medium and terminal equipment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105116216A (en) * 2015-09-16 2015-12-02 成都众山科技有限公司 Multifunctional smart electric meter system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
B.Nilam等.The solar wind density control on the prompt penetration electric field and equatorial electrojet.《JGR Space Physics》.2020,全文. *

Also Published As

Publication number Publication date
CN113766288A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
RU2604422C1 (en) Method and apparatus for transmitting infrared signal and remote control panel
CN108304324A (en) Method for generating test case, device, equipment and storage medium
CN109002387B (en) User reminding method and device of application program, terminal equipment and storage medium
CN108847216B (en) Voice processing method, electronic device and storage medium
CN107077181A (en) A kind of charging current limiter method, device and electronic equipment
CN111865952B (en) Data processing method, data processing device, storage medium and electronic equipment
CN111816178A (en) Voice equipment control method, device and equipment
CN110718212A (en) Voice wake-up method, device and system, terminal and computer readable storage medium
CN113766288B (en) Electric quantity prompting method, device and computer readable storage medium
CN108986444B (en) Infrared code learning method and transmitting equipment thereof
CN111416905A (en) Information processing method and device, terminal and computer readable storage medium
WO2004036542A3 (en) Complexity resource manager for multi-channel speech processing
CN114647550A (en) Process control method, device, storage medium and electronic equipment
CN112953680A (en) Encoding method, decoding method, encoding device, and decoding device
CN116679818A (en) Encoding method of battery management system, electronic device and storage medium
CN104808812B (en) A kind of information processing method and device
CN112915550B (en) Comment information generation method and device, electronic equipment and storage medium
CN107071150A (en) A kind of multi-medium data based reminding method and terminal
CN112489663A (en) Voice wake-up method, device, medium and equipment
CN111773716A (en) Detection method, device, server and storage medium
JP2012247975A (en) Signal generator, electronic apparatus controller, and program
CN113892943B (en) Method and device for processing sports bracelet data
CN105372986B (en) A kind of method and device for controlling intelligent watch volume
CN112486011B (en) Method for waking up user based on alarm clock trolley
CN116594476B (en) Power supply control method and system for notebook computer

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