CN110138042B - Method, device, equipment and storage medium for displaying electric quantity in charging box - Google Patents

Method, device, equipment and storage medium for displaying electric quantity in charging box Download PDF

Info

Publication number
CN110138042B
CN110138042B CN201910476379.6A CN201910476379A CN110138042B CN 110138042 B CN110138042 B CN 110138042B CN 201910476379 A CN201910476379 A CN 201910476379A CN 110138042 B CN110138042 B CN 110138042B
Authority
CN
China
Prior art keywords
port
bluetooth headset
electric quantity
charging
power supply
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
CN201910476379.6A
Other languages
Chinese (zh)
Other versions
CN110138042A (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.)
Guangzhou U&i Technology Co ltd
Original Assignee
Guangzhou U&i 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 Guangzhou U&i Technology Co ltd filed Critical Guangzhou U&i Technology Co ltd
Priority to CN201910476379.6A priority Critical patent/CN110138042B/en
Publication of CN110138042A publication Critical patent/CN110138042A/en
Application granted granted Critical
Publication of CN110138042B publication Critical patent/CN110138042B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • H02J7/0021
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1025Accumulators or arrangements for charging
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for displaying electric quantity in a charging box. The method comprises the following steps: receiving an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin through the data receiving port; responding to the access instruction, and controlling the status indicator lamp to execute a first display operation; a first inquiry command for inquiring the residual capacity is sent to the Bluetooth headset through the data sending port; receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port; and controlling the electric quantity indicating lamp to execute a second display operation according to the residual electric quantity. According to the method, the charging state and the charging electric quantity of the Bluetooth headset can be displayed in the charging cabin in the charging process of the Bluetooth headset, so that a user can know the charging information of the Bluetooth headset in time, and convenience is brought to the user.

Description

Method, device, equipment and storage medium for displaying electric quantity in charging box
Technical Field
The embodiment of the invention relates to a headset charging technology, in particular to a method, a device, equipment and a storage medium for displaying electric quantity in a charging box.
Background
With the rapid development of communication technology, bluetooth headset is becoming more popular, bringing great convenience to people's life, work and study.
Currently, most bluetooth headsets generally use a built-in rechargeable battery as a power source. In order to ensure normal use of the Bluetooth headset, a rechargeable battery in the Bluetooth headset needs to be charged, for example, when a user does not use the Bluetooth headset, the Bluetooth headset is placed into a charging cabin of the Bluetooth headset to be charged.
However, in the prior art, when the charging cabin is charging the bluetooth headset, the bluetooth headset has the pilot lamp of charge state, and the user can look over the charge state of bluetooth headset through the pilot lamp, but after the charging cabin lid, the user can't confirm that the charging cabin can only confirm the charge state of bluetooth headset in the charge state of charging cabin needs to be opened to the bluetooth headset is in the charging process, and the user also can't confirm the electric quantity of bluetooth headset.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for displaying electric quantity in a charging box, wherein in the charging process of a Bluetooth headset, the charging state and the charging electric quantity of the Bluetooth headset can be displayed in a charging cabin, so that a user can know the charging information of the Bluetooth headset in time, and the user is convenient.
In a first aspect, an embodiment of the present invention provides a method for displaying electric quantity in a charging box, where the charging box includes a cover and at least two charging cabins, a first charging port and a first information communication port are provided in each charging cabin, the first charging port is used to connect with a second charging port of a bluetooth headset, the first information communication port is used to connect with a second information communication port of the bluetooth headset, the charging box is configured with a status indicator light and an electric quantity indicator light, and the first information communication port is connected with a data receiving port and a data transmitting port at the same time, and the method includes:
receiving an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin through the data receiving port;
responding to the access instruction, and controlling the status indicator lamp to execute a first display operation;
a first inquiry command for inquiring the residual electric quantity is sent to the Bluetooth headset through the data sending port;
receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port;
controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity;
the first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port;
the first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port.
On the basis, the charging box is also provided with a key, and the method further comprises the following steps:
when the cover is in a closed state, receiving a display signal triggered by the key;
controlling the status indicator lamp to execute a first display operation in response to the display signal;
a first inquiry command for inquiring the residual electric quantity is sent to the Bluetooth headset through the data sending port;
receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port;
and controlling the electric quantity indicating lamp to execute a second display operation according to the residual electric quantity.
On the basis, the control of the status indicator lamp to execute a first display operation comprises the following steps:
determining a status indicator lamp configured for a charging cabin to which the Bluetooth headset is connected;
and controlling the status indicator lamp to be lightened in a first color, wherein the first color indicates that the Bluetooth headset is in a normal state.
On the basis, the controlling the electricity quantity indicating lamp to execute the second display operation according to the residual electricity quantity comprises the following steps:
determining an electric quantity indicator lamp configured for a charging cabin to which the Bluetooth headset is connected;
determining an electric quantity stage in which the residual electric quantity is located;
determining a second color set for the charge phase;
and controlling the electric quantity indicating lamp to be lightened according to the second display.
On the basis, the device also comprises:
when the data transmitting port transmits data, the data receiving port is forbidden to receive the data;
and when the data receiving port receives data, the data transmitting port is forbidden to transmit data.
On the basis, the device also comprises:
if an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin is not received in a preset period, controlling the status indicator lamp to execute a third display operation;
and controlling the electric quantity indicating lamp to be extinguished.
On the basis, the status indicator lamp is controlled to execute a third display operation, which comprises the following steps:
determining a status indicator lamp configured for a charging cabin to which the Bluetooth headset is connected;
and controlling the status indicator lamp to be on or off in a third color, wherein the third color indicates that the Bluetooth headset is in an abnormal state.
In a second aspect, an embodiment of the present invention further provides an apparatus for displaying electric quantity in a charging box, where the charging box includes a cover and at least two charging cabins, a first charging port and a first information communication port are provided in each charging cabin, the first charging port is used to connect with a second charging port of a bluetooth headset, the first information communication port is used to connect with a second information communication port of the bluetooth headset, the charging box is configured with a status indicator light and an electric quantity indicator light, and the first information communication port is simultaneously connected with a data receiving port and a data transmitting port, and the apparatus includes:
the first access instruction receiving module is used for receiving an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin through the data receiving port;
the access instruction response module is used for responding to the access instruction and controlling the status indicator lamp to execute a first display operation execution module for a first display operation;
the first inquiry command sending module is used for sending a first inquiry command for inquiring the residual electric quantity to the Bluetooth headset through the data sending port;
the first residual electric quantity sending back module is used for receiving the residual electric quantity sent back by the Bluetooth headset in response to the first inquiry command through the data receiving port;
the display operation execution first module is used for controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity;
the first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port;
the first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method of displaying charge in a charging cartridge as described in the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, wherein the program when executed by a processor implements a method for displaying an amount of power at a charging cartridge as described in the first aspect.
According to the technical scheme provided by the embodiment of the invention, the access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin is received through the data receiving port; responding to the access instruction, and controlling the status indicator lamp to execute a first display operation; a first inquiry command for inquiring the residual capacity is sent to the Bluetooth headset through the data sending port; receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port; controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity; the first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port; the first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port. The Bluetooth headset charging system has the advantages that the Bluetooth headset charging process is realized, the charging state and the charging electric quantity of the Bluetooth headset can be displayed in the charging cabin, so that a user can timely know the charging information of the Bluetooth headset, and convenience is brought to the user.
Drawings
Fig. 1 is a flowchart of a method for displaying electric quantity in a charging box according to a first embodiment of the present invention;
fig. 2 is a flowchart of a method for displaying electric quantity in a charging box according to a second embodiment of the present invention;
fig. 3 is a block diagram of a device for displaying electric quantity in a charging box according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a method for displaying electric quantity in a charging box according to an embodiment of the present invention. The embodiment is suitable for a scene of whether the Bluetooth headset is in the charging cabin or not and displaying the electric quantity of the Bluetooth headset when the Bluetooth headset is inserted into the charging cabin or receives the display signal. The method is applied to the charging box.
The charging box comprises a cover and at least two charging cabins. Each charging cabin can be correspondingly provided with a Bluetooth headset, the cover comprises an opening state and a closing state, and when the cover is opened, a user can directly observe the quantity of the Bluetooth headset placed in the charging box. The cover is provided with a groove which is correspondingly arranged with the shape of the Bluetooth headset, so that the Bluetooth headset can be accommodated when the cover is closed. A first charging port, a first information communication port, is provided in each charging bay. The first charging port is used for being connected with a second charging port of the Bluetooth headset. The first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port and charges the Bluetooth headset. The first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port. Through such structure, can make when first port that charges is connected with the second port that charges, the box that charges for bluetooth headset. The first information communication port is used for being connected with a second information communication port of the Bluetooth headset, and the first information communication port is simultaneously connected with the data receiving port and the data sending port. Through such structure, can make charging box and bluetooth headset realize information intercommunication. The charging box is provided with two types of indicator lamps, namely a status indicator lamp and an electric quantity indicator lamp, and the number of the indicator lamps is not particularly limited. If there are only two indicator lamps, one indicator lamp is used as a status indicator lamp, and the other indicator lamp is used as an electric quantity indicator lamp. The information of the left Bluetooth headset or the right Bluetooth headset which is currently indicated can be determined through the flashing times of the indication lamp.
Referring to fig. 1, the method specifically includes:
s101, receiving an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin through the data receiving port.
The access instruction is an instruction sent by the Bluetooth headset and indicating that the Bluetooth headset is accessed into the charging cabin.
The charging box comprises a Micro Control Unit (MCU) for processing simple signals. A first information communication port is included in the micro control unit, which connects the data receiving port (uart_rx PIN) and the data transmitting port (uart_tx PIN) at the same time. Under the control of the micro control unit, the charging cabin always provides 5V charging voltage for the Bluetooth headset. The Bluetooth headset transmits the detected 5V signal output by the charging cabin to a detection pin of a micro control unit of the Bluetooth headset, and when the micro control unit detects the 5V signal, an access instruction is sent to the charging cabin.
S102, responding to the access instruction, and controlling the status indicator lamp to execute a first display operation.
The status indicator light is a light emitting diode for indicating the access status of the Bluetooth headset. For indicating whether the bluetooth headset is in the cabin.
The first display operation is used for indicating the state that the Bluetooth headset enters the cabin, and can flash or be always on.
The control status indicator lamp executes a first display operation, specifically including: determining a status indicator lamp configured for a charging cabin to which the Bluetooth headset is connected; the control status indicator lights up in a first color, the first color indicating that the Bluetooth headset is in a normal state.
When the status indicator lights are only one, the status indicator lights can be set to flash rapidly to indicate that the left Bluetooth headset is in the cabin, flash slowly to indicate that the right Bluetooth headset is in the cabin, and light normally to indicate that the left Bluetooth headset and the right Bluetooth headset are in the cabin. Of course, for better experience of the user, two status indicator lamps are generally arranged, which are respectively arranged outside the charging box and correspond to the position of the charging cabin. When the left Bluetooth headset is put into the cabin, a status indicator lamp corresponding to the left charging cabin is lightened; when the right Bluetooth headset is already put into the cabin, a status indicator lamp corresponding to the right charging cabin is lightened.
S103, a first inquiry instruction for inquiring the residual electric quantity is sent to the Bluetooth headset through the data sending port.
The first inquiry command is sent by the charging cabin and is used for inquiring the residual electric quantity of the Bluetooth headset in the charging cabin.
The Micro Control Unit (MCU) sends a first inquiry instruction to the Bluetooth headset through a data sending port (UART_TX PIN) so as to inquire the residual electric quantity of the Bluetooth headset.
S104, receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port.
The Micro Control Unit (MCU) receives information indicating the residual power sent back by the Bluetooth headset through a data receiving port (UART_RX PIN).
S105, controlling the electric quantity indicating lamp to execute a second display operation according to the residual electric quantity.
The electric quantity indicator lamp is a light-emitting diode for indicating the electric quantity state of the Bluetooth headset. And the device is used for indicating the residual capacity of the Bluetooth headset.
The second display operation is used for indicating the residual power of the Bluetooth headset, and can be flashing or normally bright.
When the electric quantity indicator lamp is monochromatic, can set to normally light and indicate bluetooth headset to be high electric quantity, slowly glisten and indicate bluetooth headset to be well electric quantity, and quick glisten indicates bluetooth headset to be low electric quantity. Of course, for better experience of the user, the electric quantity indicator lamps are generally set to be two three-color electric quantity indicator lamps, which are respectively arranged outside the charging box and correspond to the positions of the charging cabins. The three colors can be green, orange and red, the green represents that the Bluetooth headset is high in electric quantity, the orange represents that the Bluetooth headset is medium in electric quantity, and the red represents that the Bluetooth headset is low in electric quantity.
The Micro Control Unit (MCU) receives information indicating the residual power sent back by the Bluetooth headset through a data receiving port (UART_RX PIN). After the information is analyzed, the electric quantity stage corresponding to the residual electric quantity of the Bluetooth headset is determined, and the color of the electric quantity indicator lamp is determined according to the electric quantity stage.
On the basis of the above embodiment, when the data transmission port (uart_tx PIN) transmits data, the data reception port (uart_rx PIN) is prohibited from receiving data; when the data receiving port (uart_rx PIN) receives data, the data transmitting port (uart_tx PIN) is prohibited from transmitting data.
According to the technical scheme provided by the embodiment of the invention, the access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin is received through the data receiving port; responding to the access instruction, and controlling the status indicator lamp to execute a first display operation; a first inquiry command for inquiring the residual capacity is sent to the Bluetooth headset through the data sending port; receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port; controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity; the first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port; the first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port. The Bluetooth headset charging system has the advantages that the Bluetooth headset charging process is realized, the charging state and the charging electric quantity of the Bluetooth headset can be displayed in the charging cabin, so that a user can timely know the charging information of the Bluetooth headset, and convenience is brought to the user.
Example two
Fig. 2 is a flowchart of a method for displaying electric quantity in a charging box according to a second embodiment of the present invention. The present embodiment is refined on the basis of the first embodiment, and a specific procedure of controlling the status indicator lamp to perform the first display operation and controlling the power indicator lamp to perform the second display operation according to the remaining power is described in detail. Referring to fig. 2, comprising:
s201, receiving an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin through the data receiving port.
S202, responding to the access instruction, and controlling the status indicator lamp to execute a first display operation.
The explanation of step S201 to step S202 may refer to the explanation of step S101 to step S102 in the first embodiment, and will not be described herein. The scenes of step S201-step S202 are the scenes that the user inserts the bluetooth headset into the charging bay when the cover is in the open state, and the indicator light indicates whether the bluetooth headset is in the bay and the electric quantity of the bluetooth headset. At this time, the triggering mode of the first display operation and the second display operation is that the bluetooth headset is inserted into the charging cabin.
The scenario of step S203-step S204 is a scenario in which when the cover is in a closed state, the user presses a key on the exterior of the charging box, and the indicator light responds to an instruction of the key to indicate whether the bluetooth headset is in the cabin, and the amount of electricity of the bluetooth headset. At this time, the triggering modes of the first display operation and the second display operation are to press a key on the outside of the charging box.
And S203, when the cover is in a closed state, receiving a display signal triggered by the key.
The display signal is a signal triggered by a key. When the micro control unit detects that the key is pressed, the display signal is generated.
By adopting the triggering mode, the situation that a user only wants to know the electric quantity of the Bluetooth headset but does not want to use the Bluetooth headset can be avoided, whether the Bluetooth headset is in the charging cabin or not can be known under the condition that the charging box is not opened, and the residual electric quantity of the Bluetooth headset can be known.
S204, responding to the display signal, and controlling the status indicator lamp to execute a first display operation.
The status indicator light is a light emitting diode for indicating the access status of the Bluetooth headset. For indicating whether the bluetooth headset is in the cabin.
The first display operation is used for indicating the state that the Bluetooth headset enters the cabin, and can flash or be always on.
The control status indicator lamp executes a first display operation, specifically including: determining a status indicator lamp configured for a charging cabin to which the Bluetooth headset is connected; the control status indicator lights up in a first color, the first color indicating that the Bluetooth headset is in a normal state.
When the status indicator lights are only one, the status indicator lights can be set to flash rapidly to indicate that the left Bluetooth headset is in the cabin, flash slowly to indicate that the right Bluetooth headset is in the cabin, and light normally to indicate that the left Bluetooth headset and the right Bluetooth headset are in the cabin. Of course, for better experience of the user, two status indicator lamps are generally arranged, which are respectively arranged outside the charging box and correspond to the position of the charging cabin. When the left Bluetooth headset is put into the cabin, a status indicator lamp corresponding to the left charging cabin is lightened; when the right Bluetooth headset is already put into the cabin, a status indicator lamp corresponding to the right charging cabin is lightened.
S205, a first inquiry instruction for inquiring the residual electric quantity is sent to the Bluetooth headset through the data sending port.
S206, receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port.
The explanation of step S205 to step S206 may refer to the explanation of step S103 to step S104 in the first embodiment, and will not be described herein.
S207, determining an electric quantity indicator lamp configured for a charging cabin to which the Bluetooth headset is connected.
S208, determining the electric quantity stage where the residual electric quantity is located.
S209, determining a second color set for the electric quantity stage.
And S210, controlling the electric quantity indicator lamp to be lightened according to a second display.
The electric quantity indicator lamp is a light-emitting diode for indicating the electric quantity state of the Bluetooth headset. And the device is used for indicating the residual capacity of the Bluetooth headset.
The second display operation is used for indicating the residual power of the Bluetooth headset, and can be flashing or normally bright.
When the electric quantity indicator lamp is monochromatic, can set to normally light and indicate bluetooth headset to be high electric quantity, slowly glisten and indicate bluetooth headset to be well electric quantity, and quick glisten indicates bluetooth headset to be low electric quantity. Of course, for better experience of the user, the electric quantity indicator lamps are generally set to be two three-color electric quantity indicator lamps, which are respectively arranged outside the charging box and correspond to the positions of the charging cabins. The three colors can be green, orange and red, the green represents that the Bluetooth headset is high in electric quantity, the orange represents that the Bluetooth headset is medium in electric quantity, and the red represents that the Bluetooth headset is low in electric quantity.
The Micro Control Unit (MCU) receives information indicating the residual power sent back by the Bluetooth headset through a data receiving port (UART_RX PIN). After the information is analyzed, the electric quantity stage corresponding to the residual electric quantity of the Bluetooth headset is determined, and the color of the electric quantity indicator lamp is determined according to the electric quantity stage.
S211, if an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin is not received in a preset period, controlling the status indicator lamp to execute a third display operation.
In a possible implementation manner, when the cover is opened, but the micro control unit does not receive an access instruction sent by the bluetooth headset when the bluetooth headset is accessed to the charging cabin within a preset period of time, the status indicator lamp is controlled to execute the third display operation. The third operation should be different from the first operation setting to avoid confusion for the user.
In a possible implementation, controlling the status indicator light to perform a third display operation includes: determining a status indicator lamp configured for a charging cabin to which the Bluetooth headset is connected; the control state indicator lights are turned on or off in a third color, and the third color indicates that the Bluetooth headset is in an abnormal state.
Specifically, two status indicator lamps are arranged outside the charging box and correspond to the positions of the charging cabins respectively. When the left Bluetooth headset is put into the cabin, a status indicator lamp corresponding to the left charging cabin is lightened; when the right Bluetooth headset is already put into the cabin, a status indicator lamp corresponding to the right charging cabin is lightened. The third operation may be set to flash quickly at this time, etc.
S212, controlling the electric quantity indicating lamp to be turned off.
And when the first operation, the second operation or the third operation is carried out by the indicator lamp, the indicator lamp is controlled to be turned off after the preset time is reached.
According to the technical scheme provided by the embodiment of the invention, the access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin is received through the data receiving port; responding to the access instruction, and controlling the status indicator lamp to execute a first display operation; a first inquiry command for inquiring the residual capacity is sent to the Bluetooth headset through the data sending port; receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port; controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity; the first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port; the first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port. The Bluetooth headset charging system has the advantages that the Bluetooth headset charging process is realized, the charging state and the charging electric quantity of the Bluetooth headset can be displayed in the charging cabin, so that a user can timely know the charging information of the Bluetooth headset, and convenience is brought to the user.
Example III
Fig. 3 is a block diagram of a device for displaying electric quantity in a charging box according to a third embodiment of the present invention, where the device is adapted to: the charging box is including closing with two at least charging cabins, is provided with first charging port, first information communication port in every charging cabin, first charging port is used for being connected with bluetooth headset's second charging port, first information communication port is used for being connected with bluetooth headset's second information communication port, charging box is furnished with status indicator lamp, electric quantity pilot lamp, data receiving port and data transmitting port are connected simultaneously to first information communication port, and the device includes: the first access instruction receiving module 31, the access instruction responding module 32, the first query instruction transmitting module 33, the first remaining power transmitting module 34, and the display operation execution first module 35. Wherein:
the first access instruction receiving module 31 is configured to receive an access instruction sent by the bluetooth headset when the bluetooth headset is connected to the charging cabin through the data receiving port;
an access instruction response module 32, configured to control the status indicator lamp to execute a first display operation execution module for a first display operation in response to the access instruction;
a first inquiry command sending module 33, configured to send a first inquiry command for inquiring the remaining capacity to the bluetooth headset through the data sending port;
a first remaining power sending module 34, configured to receive, through the data receiving port, a remaining power sent back by the bluetooth headset in response to the first query instruction;
a display operation execution first module 35 for controlling the power indicator to execute a second display operation according to the remaining power;
the first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port;
the first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port.
On the basis of the above embodiment, the charging box is further provided with a key, and the device further includes:
the second access instruction receiving module is used for receiving a display signal triggered by the key when the cover is in a closed state;
the display signal response module is used for responding to the display signal and controlling the status indicator lamp to execute a first display operation;
the second inquiry command sending module is used for sending a first inquiry command for inquiring the residual electric quantity to the Bluetooth headset through the data sending port;
the second residual electric quantity sending back module; the data receiving port is used for receiving the residual electric quantity sent back by the Bluetooth headset in response to the first inquiry command;
and the display operation execution second module is used for controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity.
On the basis of the above embodiment, the controlling the status indicator lamp to perform the first display operation includes:
determining a status indicator lamp configured for a charging cabin to which the Bluetooth headset is connected;
and controlling the status indicator lamp to be lightened in a first color, wherein the first color indicates that the Bluetooth headset is in a normal state.
On the basis of the above embodiment, the display operation execution first module and the display operation execution second module are further configured to:
determining an electric quantity indicator lamp configured for a charging cabin to which the Bluetooth headset is connected;
determining an electric quantity stage in which the residual electric quantity is located;
determining a second color set for the charge phase;
and controlling the electric quantity indicating lamp to be lightened according to the second display.
On the basis of the above embodiment, the method further comprises a data single-line module for:
when the data transmitting port transmits data, the data receiving port is forbidden to receive the data;
and when the data receiving port receives data, the data transmitting port is forbidden to transmit data.
On the basis of the above embodiment, the method further comprises:
if an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin is not received in a preset period, controlling the status indicator lamp to execute a third display operation;
and controlling the electric quantity indicating lamp to be extinguished.
On the basis of the above embodiment, the method further comprises:
and controlling the status indicator lamp to execute a third display operation, including:
determining a status indicator lamp configured for a charging cabin to which the Bluetooth headset is connected;
and controlling the status indicator lamp to be on or off in a third color, wherein the third color indicates that the Bluetooth headset is in an abnormal state.
The device for displaying the electric quantity in the charging box provided by the embodiment can be used for executing the method for displaying the electric quantity in the charging box provided by any embodiment, and has corresponding functions and beneficial effects.
Example IV
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. As shown in fig. 4, the electronic device includes a processor 40, a memory 41, a communication module 42, an input device 43, and an output device 44; the number of processors 40 in the electronic device may be one or more, one processor 40 being taken as an example in fig. 4; the processor 40, the memory 41, the communication module 42, the input means 43 and the output means 44 in the electronic device may be connected by a bus or other means, in fig. 4 by way of example.
The memory 41 is a computer-readable storage medium that can be used to store a software program, a computer-executable program, and modules, such as a module corresponding to a method for displaying an electric quantity at a charging box in the present embodiment (for example, a first access instruction receiving module 31, an access instruction responding module 32, a first query instruction transmitting module 33, a first remaining electric quantity transmitting module 34, and a display operation executing first module 35 for displaying an electric quantity at a charging box). The processor 40 performs various functional applications of the electronic device and data processing by running software programs, instructions and modules stored in the memory 41, i.e. implements one of the above-described methods of displaying power in the charging cartridge.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for functions; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 41 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 non-volatile solid-state storage device. In some examples, memory 41 may further include memory located remotely from processor 40, which may be connected to the electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
And the communication module 42 is used for establishing connection with the display screen and realizing data interaction with the display screen. The input means 43 may be used for receiving entered numeric or character information and for generating key signal inputs related to user settings and function control of the electronic device.
The electronic device provided in this embodiment may execute the method for displaying electric quantity in the charging box provided in any one of the embodiments of the present invention, and the specific corresponding functions and beneficial effects are provided.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a method of displaying an amount of power at a charging cartridge, the method comprising:
receiving an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin through the data receiving port;
responding to the access instruction, and controlling the status indicator lamp to execute a first display operation;
a first inquiry command for inquiring the residual electric quantity is sent to the Bluetooth headset through the data sending port;
receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port;
controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity;
the first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port;
the first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port. .
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the above-described method operations, and may also perform the related operations in the method for displaying electric quantity of the charging box provided in any of the embodiments of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer electronic device (which may be a personal computer, a server, or a network electronic device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the device for displaying electric quantity of the charging box, each unit and module included in the device are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (9)

1. A method for displaying electric quantity in a charging box, which is characterized in that the charging box comprises a cover and at least two charging cabins, a first charging port and a first information communication port are arranged in each charging cabin, the first charging port is used for being connected with a second charging port of a bluetooth headset, the first information communication port is used for being connected with the second information communication port of the bluetooth headset, the charging box is provided with a status indicator lamp and an electric quantity indicator lamp, and the first information communication port is simultaneously connected with a data receiving port and a data transmitting port, the method comprises the following steps:
receiving an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin through the data receiving port;
responding to the access instruction, and controlling the status indicator lamp to execute a first display operation;
a first inquiry command for inquiring the residual electric quantity is sent to the Bluetooth headset through the data sending port;
receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port;
controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity;
the first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port;
the first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port;
the charging box is also provided with a key, and the method further comprises:
when the cover is in a closed state, receiving a display signal triggered by the key;
controlling the status indicator lamp to execute a first display operation in response to the display signal;
a first inquiry command for inquiring the residual electric quantity is sent to the Bluetooth headset through the data sending port;
receiving the residual electric quantity returned by the Bluetooth headset in response to the first inquiry command through the data receiving port;
and controlling the electric quantity indicating lamp to execute a second display operation according to the residual electric quantity.
2. The method of claim 1, wherein the controlling the status indicator light to perform a first display operation comprises:
determining a status indicator lamp configured for a charging cabin to which the Bluetooth headset is connected;
and controlling the status indicator lamp to be lightened in a first color, wherein the first color indicates that the Bluetooth headset is in a normal state.
3. The method of claim 1, wherein controlling the charge indicator to perform a second display operation based on the remaining charge comprises:
determining an electric quantity indicator lamp configured for a charging cabin to which the Bluetooth headset is connected;
determining an electric quantity stage in which the residual electric quantity is located;
determining a second color set for the charge phase;
and controlling the electric quantity indicating lamp to be lightened according to the second display.
4. The method as recited in claim 1, further comprising:
when the data transmitting port transmits data, the data receiving port is forbidden to receive the data;
and when the data receiving port receives data, the data transmitting port is forbidden to transmit data.
5. The method as recited in claim 1, further comprising:
if an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin is not received in a preset period, controlling the status indicator lamp to execute a third display operation;
and controlling the electric quantity indicating lamp to be extinguished.
6. The method of claim 1, wherein controlling the status indicator light to perform a third display operation comprises:
determining a status indicator lamp configured for a charging cabin to which the Bluetooth headset is connected;
and controlling the status indicator lamp to be on or off in a third color, wherein the third color indicates that the Bluetooth headset is in an abnormal state.
7. The utility model provides a device at charging box demonstration electric quantity, its characterized in that charges the box and closes with two at least charging cabins including the lid, is provided with first charging port, first information communication port in every charging cabin, first charging port is used for being connected with bluetooth headset's second charging port, first information communication port is used for being connected with bluetooth headset's second information communication port, charging box is furnished with status indicator lamp, electric quantity pilot lamp, data receiving port and data transmission port are connected simultaneously to first information communication port, the device includes:
the first access instruction receiving module is used for receiving an access instruction sent by the Bluetooth headset when the Bluetooth headset is accessed to the charging cabin through the data receiving port;
the access instruction response module is used for responding to the access instruction and controlling the status indicator lamp to execute a first display operation execution module for a first display operation;
the first inquiry command sending module is used for sending a first inquiry command for inquiring the residual electric quantity to the Bluetooth headset through the data sending port;
the first residual electric quantity sending back module is used for receiving the residual electric quantity sent back by the Bluetooth headset in response to the first inquiry command through the data receiving port;
the display operation execution first module is used for controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity;
the first charging port comprises a first power supply positive electrode port and a first power supply ground port, and the second charging port comprises a second power supply positive electrode port and a second power supply ground port;
the first power supply positive electrode port is used for being connected with the second power supply positive electrode port, and the first power supply ground port is used for being connected with the second power supply ground port;
the charging box is also provided with a key, and the device further comprises:
the second access instruction receiving module is used for receiving a display signal triggered by the key when the cover is in a closed state;
the display signal response module is used for responding to the display signal and controlling the status indicator lamp to execute a first display operation;
the second inquiry command sending module is used for sending a first inquiry command for inquiring the residual electric quantity to the Bluetooth headset through the data sending port;
the second residual electric quantity sending back module; the data receiving port is used for receiving the residual electric quantity sent back by the Bluetooth headset in response to the first inquiry command;
and the display operation execution second module is used for controlling the electric quantity indicator lamp to execute a second display operation according to the residual electric quantity.
8. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement a method of displaying charge in a charging cartridge as claimed in any one of claims 1 to 6.
9. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of displaying electrical power at a charging cartridge according to any of claims 1-6.
CN201910476379.6A 2019-06-03 2019-06-03 Method, device, equipment and storage medium for displaying electric quantity in charging box Active CN110138042B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910476379.6A CN110138042B (en) 2019-06-03 2019-06-03 Method, device, equipment and storage medium for displaying electric quantity in charging box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910476379.6A CN110138042B (en) 2019-06-03 2019-06-03 Method, device, equipment and storage medium for displaying electric quantity in charging box

Publications (2)

Publication Number Publication Date
CN110138042A CN110138042A (en) 2019-08-16
CN110138042B true CN110138042B (en) 2023-05-23

Family

ID=67579887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910476379.6A Active CN110138042B (en) 2019-06-03 2019-06-03 Method, device, equipment and storage medium for displaying electric quantity in charging box

Country Status (1)

Country Link
CN (1) CN110138042B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225308B (en) * 2019-10-30 2022-02-15 维沃移动通信有限公司 Electric quantity prompting method, storage box and earphone
CN113141559A (en) * 2021-04-26 2021-07-20 东莞市漫步者科技有限公司 Animation light effect control method of earphone charging box and charging box
CN114189014B (en) * 2021-12-03 2024-02-13 北京蜂巢世纪科技有限公司 Charging device and system
CN115325668B (en) * 2022-08-22 2024-10-25 珠海格力电器股份有限公司 Remote controller of air conditioner
CN115762434A (en) * 2022-11-22 2023-03-07 苏州精控能源科技有限公司 Display system, color display control method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228043A (en) * 2015-09-29 2016-01-06 深圳罗马仕科技有限公司 On-vehicle Bluetooth Headphone device and control method thereof
CN109660905A (en) * 2019-03-01 2019-04-19 晨诚兴科技深圳有限公司 A kind of bluetooth headset storehouse automatically charged

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017121060A (en) * 2016-01-02 2017-07-06 音來多有限公司 earphone

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105228043A (en) * 2015-09-29 2016-01-06 深圳罗马仕科技有限公司 On-vehicle Bluetooth Headphone device and control method thereof
CN109660905A (en) * 2019-03-01 2019-04-19 晨诚兴科技深圳有限公司 A kind of bluetooth headset storehouse automatically charged

Also Published As

Publication number Publication date
CN110138042A (en) 2019-08-16

Similar Documents

Publication Publication Date Title
CN110138042B (en) Method, device, equipment and storage medium for displaying electric quantity in charging box
WO2016065822A1 (en) Multifunctional data mobile power supply and charging method
CN111775704A (en) Charging indication method and device, new energy vehicle and storage medium
CN207676284U (en) A kind of Multifunctional portable power source docking station
CN106060381B (en) A kind of control method and system of camera and its docking station
WO2023020062A1 (en) Terminal charging method and apparatus, electronic device and storage medium
US11243457B2 (en) Multi-voltage output camera kit handle
TW201626855A (en) Lamp switch device having electric meter function, and smart-type lamp control system
CN106706998B (en) Terminal test system and terminal test method
CN110267012B (en) Video real object display system
CN209803780U (en) Power service control terminal
CN105914845B (en) Multifunctional HUB with mobile power supply
CN204667171U (en) A kind of Smart Home watch-dog
CN208172539U (en) Intelligent control switch, mobile power source and wire rod based on speech recognition
CN109063099B (en) Method and device for updating data of airborne intelligent equipment and airborne intelligent equipment
WO2016104939A1 (en) Battery charging control device for electric vehicle
CN109672251A (en) A kind of charge protection device and charging data line
CN114734878A (en) Control method and control device of charge and discharge indication system and electronic device
CN104898451A (en) Intelligent home monitoring equipment
CN109950957B (en) Charging cabin, bluetooth headset and Bluetooth headset charging system
CN202102516U (en) GPS patrol recording instrument
CA3168982A1 (en) Illumination system
CN210296778U (en) Intelligent socket based on Internet of things
CN211097467U (en) Game controller
CN211048502U (en) Intelligent safety helmet

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