CN113660373B - Charging authentication method, device, equipment and storage medium - Google Patents

Charging authentication method, device, equipment and storage medium Download PDF

Info

Publication number
CN113660373B
CN113660373B CN202111213151.1A CN202111213151A CN113660373B CN 113660373 B CN113660373 B CN 113660373B CN 202111213151 A CN202111213151 A CN 202111213151A CN 113660373 B CN113660373 B CN 113660373B
Authority
CN
China
Prior art keywords
control instruction
target control
power supply
connection state
switching device
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
CN202111213151.1A
Other languages
Chinese (zh)
Other versions
CN113660373A (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.)
Zhejiang Geoforcechip Technology Co Ltd
Original Assignee
Zhejiang Geoforcechip 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 Zhejiang Geoforcechip Technology Co Ltd filed Critical Zhejiang Geoforcechip Technology Co Ltd
Priority to CN202111213151.1A priority Critical patent/CN113660373B/en
Publication of CN113660373A publication Critical patent/CN113660373A/en
Application granted granted Critical
Publication of CN113660373B publication Critical patent/CN113660373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • 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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00034Charger exchanging data with an electronic device, i.e. telephone, whose internal battery is under charge
    • 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/00032Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries characterised by data exchange
    • H02J7/00045Authentication, i.e. circuits for checking compatibility between one component, e.g. a battery or a battery charger, and another component, e.g. a power source
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/3827Portable transceivers
    • H04B1/3883Arrangements for mounting batteries or battery chargers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application provides a charging authentication method, a charging authentication device, charging authentication equipment and a storage medium, and belongs to the technical field of quick charging. The method comprises the following steps: receiving a target control instruction sent by the terminal equipment and returning a response result of the target control instruction to the terminal equipment, wherein the response result is used for indicating the terminal equipment to start a quick charging mode; determining whether to send the target control instruction to the power supply equipment or not according to the type of the target control instruction and the connection state of the switching device; and if so, sending a target control instruction to the power supply equipment, wherein the target control instruction is used for indicating whether the power supply equipment is allowed to charge the terminal equipment in a quick charging mode. The method and the device can solve the conflict between the control commands and improve the charging speed in the audio playing and charging synchronous process.

Description

Charging authentication method, device, equipment and storage medium
Technical Field
The present application relates to the field of fast charging technologies, and in particular, to a charging authentication method, apparatus, device, and storage medium.
Background
In the process of using the mobile phone by the user, the user usually needs to perform charging and audio playing simultaneously by means of the switching device. The mobile phone is charged quickly, a handshake protocol for charging quickly is needed, audio playing needs identification and processing of audio signals, and the two protocols are combined, so that the two protocols are ensured to interact smoothly, and message collision of the two protocols in an interaction process is prevented.
In the prior art, when the switching device is used for fast charge verification, the switching device needs to forward two control instructions to the power supply equipment, and the two control instructions may require different connection states of the switching device, so that collision conflict exists between the two control instructions, and the prior art does not generally deal with the conflict between the two control instructions or directly abandons the fast charge verification.
If the conflict between the mobile phone and the mobile phone is not processed, the charging of the mobile phone is possibly abnormal, and accidents are easily caused; if the quick charging is abandoned, only the ordinary charging can be carried out, the charging efficiency is low, and the charging speed and the safety of the mobile phone are low.
Disclosure of Invention
The application aims to provide a charging authentication method, a charging authentication device and a charging authentication storage medium, which can solve the conflict between control instructions and improve the charging speed in the processes of audio playing and charging synchronization.
The embodiment of the application is realized as follows:
in one aspect of the embodiments of the present application, a charging authentication method is provided, where the method is applied to a switching device, and the switching device is respectively connected to a terminal device, a power supply device, and an audio device, and the method includes:
receiving a target control instruction sent by the terminal equipment and returning a response result of the target control instruction to the terminal equipment, wherein the response result is used for indicating the terminal equipment to start a quick charging mode;
determining whether to send the target control instruction to the power supply equipment or not according to the type of the target control instruction and the connection state of the switching device;
and if so, sending a target control instruction to the power supply equipment, wherein the target control instruction is used for indicating whether the power supply equipment is allowed to charge the terminal equipment in a quick charging mode.
Optionally, determining whether to send the target control instruction to the power supply device according to the type of the target control instruction and the connection state of the switching device includes:
if the type of the target control instruction is a first instruction type, judging the connection state of the switching device, wherein the first instruction type is used for verifying the type of the power supply equipment;
and if the connection state of the switching device is the connection state, determining to send a target control instruction to the power supply equipment.
Optionally, determining whether to send the target control instruction to the power supply device according to the type of the target control instruction and the connection state of the switching device includes:
if the type of the target control instruction is a second instruction type, determining the connection state to be changed of the switching device corresponding to the second instruction type;
and if the connection state to be changed is the connected state, sending a state change control instruction to the power supply equipment, and determining to send a target control instruction to the power supply equipment, wherein the state change control instruction is used for changing the connection state of the switching device into the connected state.
Optionally, after determining the connection state to be changed of the adapter device corresponding to the second instruction type, the method further includes:
and if the connection state to be changed is a disconnection state, determining to send a target control instruction to the power supply equipment.
Optionally, before receiving the target control instruction sent by the terminal device and returning a response result of the target control instruction to the terminal device, the method further includes:
and sending an initialization control instruction to the power supply equipment, wherein the initialization control instruction is used for indicating that the connection state of the switching device is adjusted to be a connection state.
Optionally, the connection state of the switching device includes: a disconnected state and a connected state;
when the field effect tube in the switching device is disconnected, the connection state of the switching device is a disconnection state;
when the field effect transistors in the switching device are communicated, the connection state of the switching device is a communication state.
Optionally, the target control instruction is a digital signal instruction.
Optionally, the method further comprises: and sending a verification instruction to the power supply equipment based on a preset time interval, wherein the type of the verification instruction is a first instruction type.
In another aspect of the embodiments of the present application, a charging authentication apparatus is provided, where the apparatus is applied to a switching apparatus, the switching apparatus is respectively connected to a terminal device, a power supply device, and an audio device, and the apparatus includes: the device comprises a receiving module, a determining module and a sending module;
the receiving module is used for receiving a target control instruction sent by the terminal equipment and returning a response result of the target control instruction to the terminal equipment, and the response result is used for indicating the terminal equipment to start a quick charging mode;
the determining module is used for determining whether to send the target control instruction to the power supply equipment according to the type of the target control instruction and the connection state of the switching device;
and the sending module is used for sending a target control instruction to the power supply equipment, wherein the target control instruction is used for indicating whether the power supply equipment is allowed to charge the terminal equipment in a quick charging mode.
Optionally, the determining module is specifically configured to determine a connection state of the switching device if the type of the target control instruction is a first instruction type, where the first instruction type is used to verify the type of the power supply device; and if the connection state of the switching device is the connection state, determining to send a target control instruction to the power supply equipment.
Optionally, the determining module is specifically configured to determine, if the type of the target control instruction is a second instruction type, a connection state to be changed of the switching device corresponding to the second instruction type; and if the connection state to be changed is the connected state, sending a state change control instruction to the power supply equipment, and determining to send a target control instruction to the power supply equipment, wherein the state change control instruction is used for changing the connection state of the switching device into the connected state.
Optionally, the determining module is specifically configured to determine to send the target control instruction to the power supply device if the connection state to be changed is the disconnection state.
Optionally, the sending module is further configured to send an initialization control instruction to the power supply device, where the initialization control instruction is used to instruct to adjust the connection state of the switching device to a connected state.
In another aspect of the embodiments of the present application, there is provided a computer device, including: the charging authentication method comprises the steps of a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, and the steps of the charging authentication method are realized when the processor executes the computer program.
In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the computer program implements the steps of the charging authentication method.
The beneficial effects of the embodiment of the application include:
in the charging authentication method, the charging authentication device, the charging authentication equipment and the storage medium, a target control instruction sent by the terminal equipment is received, a response result of the target control instruction is returned to the terminal equipment, and the response result is used for indicating the terminal equipment to start a quick charging mode; determining whether to send the target control instruction to the power supply equipment or not according to the type of the target control instruction and the connection state of the switching device; and if so, sending a target control instruction to the power supply equipment, wherein the target control instruction is used for indicating whether the power supply equipment is allowed to charge the terminal equipment in a quick charging mode. The conflict problem existing among a plurality of control instructions can be avoided by sending and determining according to the type of the target control instruction and the connection state of the switching device, so that the audio playing can be carried out while the fast charging is realized, and the charging speed is correspondingly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view of an application scenario of a charging authentication method according to an embodiment of the present application;
fig. 2 is a first schematic flowchart of a charging authentication method according to an embodiment of the present disclosure;
fig. 3 is a second flowchart illustrating a charging authentication method according to an embodiment of the present application;
fig. 4 is a third schematic flowchart of a charging authentication method according to an embodiment of the present application;
fig. 5 is a fourth schematic flowchart of a charging authentication method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a charging authentication device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is noted that the terms "first", "second", "third", and the like are used merely for distinguishing between descriptions and are not intended to indicate or imply relative importance.
The following explains a specific implementation procedure of the charging authentication method provided in the embodiment of the present application with reference to a specific application scenario.
Fig. 1 is a schematic view of an application scenario of a charging authentication method according to an embodiment of the present application, please refer to fig. 1, where the scenario includes: terminal equipment 110, switching device 120, audio equipment 130 and power supply equipment 140.
The switching device 120 is connected to the terminal device 110, the audio device 130, and the power supply device 140.
Alternatively, the terminal device 110 may be a mobile phone, a tablet computer, or a dedicated electronic device, and the like, and is not particularly limited herein. The adapter 120 may specifically be a patch cord or an adapter, and is used to connect the terminal device 110 with the audio device 130 and the power supply device 140. The audio device 130 may be specifically an earphone, a sound box, or other devices with an audio playing function, and is configured to output an audio signal. The power supply device 140 may specifically be a charging line, a charger, or the like, and is configured to access an external voltage so as to charge the terminal device 110 through the adaptor device 120.
Optionally, in the process of the above-mentioned scene application, the terminal device 110 may send the analog audio signal to the audio device 130 through the switching device 120, so as to implement output of audio; the power supply device 140 can provide voltage for the terminal device through the adapter device 120.
The following specifically explains a specific implementation procedure of the charging authentication method provided in the embodiment of the present application.
Fig. 2 is a first schematic flowchart of a charging authentication method according to an embodiment of the present application, please refer to fig. 2, where the method includes:
s210: and receiving a target control instruction sent by the terminal equipment and returning a response result of the target control instruction to the terminal equipment.
And the response result is used for indicating the terminal equipment to start the quick charging mode.
Optionally, an execution main body of the method may be the foregoing switching device, and after the switching device is connected to the terminal device, the target control instruction sent by the terminal device may be received, and a corresponding response may be performed based on the target control instruction, and a corresponding result may be returned to the terminal device. The target control instruction can be various types of instructions, the control instructions of the types need to be authenticated and responded by the switching device, and then after authentication is finished, the authentication result is fed back to the terminal equipment, so that the terminal equipment can start a quick charging mode based on the response result generated after the authentication is finished.
S220: and determining whether to send the target control instruction to the power supply equipment or not according to the type of the target control instruction and the connection state of the switching device.
Optionally, after receiving the target control instruction, the type of the target control instruction may be determined, and the connection state of the transfer device may also be acquired, where the connection state of the transfer device may include: the power supply device comprises a connection state and a disconnection state, wherein the connection state refers to that the power supply device can be connected with the terminal device through the switching device; the disconnected state means that the power supply equipment cannot be connected with the terminal equipment through the switching device.
Optionally, it may be determined whether the target control instruction needs to be forwarded to the power supply device specifically according to different types of the target control instruction and in combination with the connection state of the switching device.
S230: and if so, sending a target control instruction to the power supply equipment.
The target control instruction is used for indicating whether the power supply equipment is allowed to charge the terminal equipment in the quick charging mode.
Alternatively, after the target control instruction is transmitted to the power supply apparatus, the power supply apparatus may perform verification based on the target control instruction, thereby determining whether charging in the fast charging mode is possible. If the verification is successful, the power supply device can be allowed to charge the terminal device in the quick charging mode.
In the charging authentication method provided by the embodiment of the application, a target control instruction sent by the terminal equipment is received, and a response result of the target control instruction is returned to the terminal equipment, wherein the response result is used for indicating the terminal equipment to start a quick charging mode; determining whether to send the target control instruction to the power supply equipment or not according to the type of the target control instruction and the connection state of the switching device; and if so, sending a target control instruction to the power supply equipment, wherein the target control instruction is used for indicating whether the power supply equipment is allowed to charge the terminal equipment in a quick charging mode. The conflict problem existing among a plurality of control instructions can be avoided by sending and determining according to the type of the target control instruction and the connection state of the switching device, so that the audio playing can be carried out while the fast charging is realized, and the charging speed is correspondingly improved.
Alternatively, the target control command may specifically be a digital signal command, and the following specifically explains the command content included in the target control command:
(1) switch control command
The instruction format is as follows: a 0B 0C 0 EC; wherein "A0" is a send data command word; "B0" is a command branch selection, and may further include one of the following (B1, B2, B3, B4, B5); "B1" is the data length requiring feedback; "EC" is a Check byte of CRC (Cyclic Redundancy Check).
The instruction format of the received feedback data, i.e. the return data, is: E1F 1; where "E1" is a feedback data command word; "F1" is the check byte of the CRC.
The effect of this instruction is as follows:
the method has the following effects: and the handshake between the terminal equipment and the switching device is realized.
The second action is as follows: when the second branch of the command format is B3, it can be used as a pull-up command and trigger a power reset action at the same time; when the second branch of the command format is B4, it can be used as a recovery command and trigger the power recovery action; when the second branch of the command format is B2, the starting command of the current and the voltage in the power supply loop can be controlled; when the second branch of the command format is B5, the turn-off command of the current voltage in the power supply loop can be controlled.
(2) Get chip type instruction
The instruction format is as follows: a4 b0 c 072; wherein "A4" is a send data command word; "b 0" is the command branch select; "c 0" is the data length requiring feedback-1; "72" is the check byte of the CRC.
The format of the received feedback data is: A5G 0H 0I 0J 0K 0L 0 d 1; wherein "a 5" is a feedback data command word; "G0H 0I 0J 0K 0L 0" is representative of a chip type; "d 1" is the check byte of the CRC.
The function of the instruction is: and acquiring the type of the chip, wherein the terminal with the same type is the same as the terminal with the same self-reading command corresponding to the type of the chip.
Optionally, the digital control instruction to which the target control instruction specifically relates may specifically include a plurality of types, two of the above-mentioned types are merely an example, and other related instructions may be involved in the actual process.
Another specific implementation procedure of the charging authentication method provided in the embodiment of the present application is specifically explained below.
Fig. 3 is a second flowchart of the charging authentication method according to the embodiment of the present application, and please refer to fig. 3, where determining whether to send the target control command to the power supply device according to the type of the target control command and the connection state of the adapter device includes:
s310: and if the type of the target control instruction is the first instruction type, judging the connection state of the switching device.
Wherein the first instruction type is used for verifying the type of the power supply equipment.
Optionally, the first instruction type may be the above instruction for acquiring a chip type, and the verification of the power supply device type is realized by acquiring the chip type. When the type of the target instruction sent by the switching device is the first instruction type, the connection state of the switching device is changed into a connection state after the sending is completed.
Optionally, after the target control command is determined to be of the first command type, the connection state of the current switching device may be determined first.
S320: and if the connection state of the switching device is the connection state, determining to send a target control instruction to the power supply equipment.
Alternatively, after the connection state of the current switching device is determined to be the connection state, it may be determined that the target control instruction may be sent to the power supply apparatus.
Next, a further specific implementation process of the charging authentication method provided in the embodiment of the present application is specifically explained.
Fig. 4 is a third schematic flowchart of a charging authentication method according to an embodiment of the present application, please refer to fig. 4, where determining whether to send a target control instruction to a power supply device according to a type of the target control instruction and a connection state of a switching device includes:
s410: and if the type of the target control instruction is the second instruction type, determining the connection state to be changed of the switching device corresponding to the second instruction type.
Optionally, the second instruction type may be the switch control instruction, and the connection state to be changed of the corresponding switching device is also different according to a difference of the second branch in the instruction format, for example: when the second branch is 40, the connection state to be changed is a connected state; when the second branch is C0, the connection state to be changed is a disconnected state.
When the type of the target control instruction is determined to be the second instruction type, the connection state to be changed of the transit apparatus may be determined according to the content of the second branch.
After the connection state of the switching device to be changed is sent to the power supply equipment, that is, the target control instruction of the second instruction type is sent to the power supply equipment, the connection state of the switching device is changed to the corresponding connection state.
S420: and if the connection state to be changed is a connected state, sending a state change control instruction to the power supply equipment, and determining to send a target control instruction to the power supply equipment.
The state change control instruction is used for changing the connection state of the switching device into a communication state.
Optionally, if it is determined that the connection state to be changed is a connected state, the state change control instruction may be sent before sending the target control instruction to the power supply device, where the state change control instruction may specifically be the instruction for acquiring the chip type, and after sending the instruction to the power supply device, the current connection state of the adapter may be changed to the connected state, and after the current connection state is changed to the connected state, the target control instruction may be sent to the power supply device.
Optionally, after determining the connection state to be changed of the adapter device corresponding to the second instruction type, the method further includes: and if the connection state to be changed is a disconnection state, determining to send a target control instruction to the power supply equipment.
Optionally, if the connection state to be changed is the disconnection state, the target control instruction may be directly sent to the power supply device without sending a corresponding state change instruction.
Optionally, the reason why the conflict occurs between the plurality of instructions is that the connection state of the forwarding device is changed to a connected state after the target control instruction of the first instruction type is sent; after the target control instruction of the second instruction type is sent, the connection state of the forwarding device can be changed into a connection state or a disconnection state according to the specific content of the target control instruction; the terminal equipment correspondingly acquires the connection state of the forwarding device when receiving the feedback result, and conflicts can occur if the connection state does not correspond to the connection state after the target control instruction is sent; when the connection state to be changed corresponding to the second instruction type is a disconnection state, a conflict occurs with the connection state after the target control instruction of the first instruction type is sent.
Optionally, the above manner of changing the state can solve the existing conflict problem, and further, the terminal device can maintain the state after entering the fast charging mode.
Optionally, before receiving the target control instruction sent by the terminal device and returning a response result of the target control instruction to the terminal device, the method further includes: and sending an initialization control instruction to the power supply equipment, wherein the initialization control instruction is used for indicating that the connection state of the switching device is adjusted to be a connection state.
Optionally, the initialization control instruction may specifically be the above-mentioned chip type acquisition instruction, and before receiving the target control instruction sent by the terminal device and returning the response result of the target control instruction to the terminal device, the forwarding device may send the instruction to the power supply device, so that the connection device of the switching device may be adjusted to a connected state.
Optionally, as mentioned above, after the switch control command is sent, the connection state of the forwarding device may be adjusted to be the connection state or the disconnection state; after the chip type acquisition instruction is sent, the connection state of the forwarding device can be adjusted to be a connection state.
When the corresponding connection state is the connection state after the switch control instruction is sent, the connection state corresponding to the switch control instruction and the connection state corresponding to the switch control instruction are the same, that is, the switch control instruction and the chip type acquisition instruction can be verified in the manners of S410 to S420; when the corresponding connection state is the disconnection state after the switch control instruction is sent, the connection state corresponding to the switch control instruction is different from the connection state corresponding to the disconnection state, the chip type instruction can be firstly verified in a mode of initializing the control instruction, and then the verification of the switch control instruction is realized in a mode of determining that the target control instruction is sent to the power supply equipment if the connection state to be changed is the disconnection state, so that the conflict between the two instructions is correspondingly avoided.
Optionally, when the field effect transistor in the switching device is disconnected, the connection state of the switching device is a disconnection state; when the field effect transistors in the switching device are communicated, the connection state of the switching device is a communication state.
Optionally, the adapter may specifically include a field effect transistor, and the adapter may specifically change the connection state of the adapter by controlling connection or disconnection of the field effect transistor.
Optionally, the method further comprises: and sending a verification instruction to the power supply equipment based on a preset time interval, wherein the type of the verification instruction is a first instruction type.
The preset time interval may be 1 second, or other time intervals satisfying the condition, and is not particularly limited herein.
Optionally, the verification instruction may also be of the first instruction type, that is, the above-mentioned get chip type instruction. Specifically, after the switching device is powered on, a verification instruction can be sent to the power supply equipment at an interval of one second, so that a charging loop of the power supply equipment is quickly opened after the power supply equipment is connected (the charging loop of the power supply equipment is in a closed state in a default state), and if the terminal equipment detects that the charging loop is opened but the charging verification is not performed, the terminal equipment can be determined that the power supply equipment is in a connected state, and new verification can be performed; otherwise, it can be determined that the power supply device is not connected, the corresponding verification is not performed, and the terminal device is not caused to enter the charging mode.
Optionally, if the switching device receives the instruction of the second instruction type, that is, the switch instruction, the verification instruction sent at the fixed time may be turned off, so as to avoid the conflict between the verification and the switch instruction, and improve the security of the switching device.
The following explains a specific procedure of the charging authentication method provided in the embodiment of the present application by an overall flow.
Fig. 5 is a fourth flowchart illustrating a charging authentication method according to an embodiment of the present application, referring to fig. 5, the method includes:
s510: and sending a chip type acquisition instruction to the power supply equipment.
S520: and receiving a target control instruction sent by the terminal equipment and returning a response result of the target control instruction to the terminal equipment.
When the type of the target control instruction is the get chip type instruction, S530 is executed: the connection state of the relay device is determined.
If not, executing S510; if yes, go to step S520.
When the type of the target control command is the switch control command, executing S540: and determining the connection state to be changed of the switching device corresponding to the switch control instruction.
If the state is the on state, S550 is executed, and if the state is the off state, S560 is executed.
S550: and sequentially sending a chip type acquisition instruction and a switch control instruction to the power supply equipment.
S560: and sending a switch control instruction to the power supply equipment.
And after the execution of the S550-S560 is finished, the S520 is executed to realize the reception of other control instructions.
Optionally, the specific implementation process of S510-S560 is specifically explained in the foregoing, and is not described herein again.
The following describes apparatuses, devices, and storage media for executing the charging authentication method provided by the present application, and specific implementation processes and technical effects thereof are referred to above, and will not be described again below.
Fig. 6 is a schematic structural diagram of a charging authentication device according to an embodiment of the present application, please refer to fig. 6, where the device includes: a receiving module 610, a determining module 620 and a sending module 630;
the receiving module 610 is configured to receive a target control instruction sent by the terminal device and return a response result of the target control instruction to the terminal device, where the response result is used to instruct the terminal device to start a fast charging mode;
a determining module 620, configured to determine whether to send the target control instruction to the power supply device according to the type of the target control instruction and the connection state of the switching device;
the sending module 630 is configured to send a target control instruction to the power supply device, where the target control instruction is used to indicate whether to allow the power supply device to charge the terminal device in the fast charging mode.
Optionally, the determining module 620 is specifically configured to determine a connection state of the switching device if the type of the target control instruction is a first instruction type, where the first instruction type is used to verify the type of the power supply device; and if the connection state of the switching device is the connection state, determining to send a target control instruction to the power supply equipment.
Optionally, the determining module 620 is specifically configured to determine, if the type of the target control instruction is the second instruction type, a connection state to be changed of the switching device corresponding to the second instruction type; and if the connection state to be changed is the connected state, sending a state change control instruction to the power supply equipment, and determining to send a target control instruction to the power supply equipment, wherein the state change control instruction is used for changing the connection state of the switching device into the connected state.
Optionally, the determining module 620 is specifically configured to determine to send the target control instruction to the power supply device if the connection state to be changed is the disconnection state.
Optionally, the sending module 630 is further configured to send an initialization control instruction to the power supply device, where the initialization control instruction is used to instruct to adjust the connection state of the adapter to the connection state.
The above-mentioned apparatus is used for executing the method provided by the foregoing embodiment, and the implementation principle and technical effect are similar, which are not described herein again.
These above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors, or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application, and referring to fig. 7, the computer device includes: the charging authentication method comprises a memory 710 and a processor 720, wherein a computer program capable of running on the processor 720 is stored in the memory 710, and the steps of the charging authentication method are realized when the processor 720 executes the computer program.
Alternatively, the computer device may be a device for performing control, such as a control chip or a controller in the aforementioned switching device, and is not limited in particular herein.
In another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the charging authentication method.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A charging authentication method is applied to a switching device, wherein the switching device is respectively connected with a terminal device, a power supply device and an audio device, and the method comprises the following steps:
receiving a target control instruction sent by the terminal equipment and returning a response result of the target control instruction to the terminal equipment, wherein the response result is used for indicating the terminal equipment to start a quick charging mode;
determining whether to send the target control instruction to the power supply equipment or not according to the type of the target control instruction and the connection state of the switching device;
if yes, sending the target control instruction to power supply equipment, wherein the target control instruction is used for indicating whether the power supply equipment is allowed to charge the terminal equipment in a quick charging mode;
before the receiving the target control instruction sent by the terminal device and returning the response result of the target control instruction to the terminal device, the method further includes:
and sending an initialization control instruction to the power supply equipment, wherein the initialization control instruction is used for indicating that the connection state of the switching device is adjusted to a connection state.
2. The method of claim 1, wherein the determining whether to send the target control command to the power supply equipment according to the type of the target control command and the connection state of the transfer device comprises:
if the type of the target control instruction is a first instruction type, judging the connection state of the switching device, wherein the first instruction type is used for verifying the type of the power supply equipment;
and if the connection state of the switching device is a connection state, determining to send the target control instruction to the power supply equipment.
3. The method of claim 2, wherein the determining whether to send the target control command to the power supply equipment according to the type of the target control command and the connection state of the transfer device comprises:
if the type of the target control instruction is a second instruction type, determining a connection state to be changed of the switching device corresponding to the second instruction type;
and if the connection state to be changed is a connected state, sending a state change control instruction to the power supply equipment, and determining to send the target control instruction to the power supply equipment, wherein the state change control instruction is used for changing the connection state of the switching device into the connected state.
4. The method of claim 3, wherein after determining the connection state to be changed of the transfer device corresponding to the second instruction type, the method further comprises:
and if the connection state to be changed is a disconnection state, determining to send the target control instruction to the power supply equipment.
5. The method of any of claims 1-4, wherein the connection state of the transition device comprises: a disconnected state and a connected state;
when a field effect tube in the switching device is disconnected, the switching device is in a disconnected state;
when the field effect tubes in the switching device are communicated, the connection state of the switching device is a communication state.
6. The method of any of claims 2-4, further comprising:
and sending a verification instruction to the power supply equipment based on a preset time interval, wherein the type of the verification instruction is a first instruction type.
7. The charging authentication device is applied to a switching device, wherein the switching device is respectively connected with a terminal device, a power supply device and an audio device, and the charging authentication device comprises: the device comprises a receiving module, a determining module and a sending module;
the receiving module is used for receiving a target control instruction sent by the terminal equipment and returning a response result of the target control instruction to the terminal equipment, wherein the response result is used for indicating the terminal equipment to start a fast charging mode;
the determining module is used for determining whether to send the target control instruction to the power supply equipment according to the type of the target control instruction and the connection state of the switching device;
the sending module is configured to send the target control instruction to a power supply device, where the target control instruction is used to indicate whether to allow the power supply device to charge the terminal device in a fast charging mode;
the sending module is further configured to send an initialization control instruction to the power supply device, where the initialization control instruction is used to instruct to adjust the connection state of the switching device to a connected state.
8. A computer device, comprising: memory in which a computer program is stored which is executable on the processor, and a processor which, when executing the computer program, carries out the steps of the method according to any one of the preceding claims 1 to 6.
9. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN202111213151.1A 2021-10-19 2021-10-19 Charging authentication method, device, equipment and storage medium Active CN113660373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111213151.1A CN113660373B (en) 2021-10-19 2021-10-19 Charging authentication method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111213151.1A CN113660373B (en) 2021-10-19 2021-10-19 Charging authentication method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113660373A CN113660373A (en) 2021-11-16
CN113660373B true CN113660373B (en) 2022-01-07

Family

ID=78484235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111213151.1A Active CN113660373B (en) 2021-10-19 2021-10-19 Charging authentication method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113660373B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108666826B (en) * 2017-03-31 2020-06-23 中兴通讯股份有限公司 Adapter, terminal equipment and adapter system
CN107291415B (en) * 2017-05-31 2020-03-03 维沃移动通信有限公司 Charging and audio data processing method and terminal
CN109862457A (en) * 2018-12-25 2019-06-07 维沃移动通信有限公司 Terminal device, adapter and charging method
CN113259809A (en) * 2021-06-17 2021-08-13 浙江地芯引力科技有限公司 Authentication device, adapter device and adapter

Also Published As

Publication number Publication date
CN113660373A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
WO2017024696A1 (en) Bluetooth connection control method and apparatus for multiple playback devices, and music playback system
US8082373B2 (en) Specialized universal serial bus controller
US20170117735A1 (en) Charging Control Method and Mobile Terminal
US11368777B2 (en) Method and system for upgrading program of TWS headset, and TWS headset
CN103473193B (en) Portable electric device and peripheral expanding device
CN110636485B (en) Bluetooth automatic connection method and method for initiating Bluetooth connection
CN108449746B (en) BT connection establishing method, wireless earphone and TWS earphone
JP6251886B2 (en) Relay device and control method of relay device
CN112260366B (en) Charging method, charging device and charger
CN106251609B (en) Intelligent robot, networking method thereof, network sharing method and device
US20140059257A1 (en) Keyboard-video-mouse system and method of providing and using the same
CN104869259A (en) Information relay transmission system based on mobile terminals and relay transmission method thereof
CN106877462B (en) A kind of method and charger detecting charged state
CN113660373B (en) Charging authentication method, device, equipment and storage medium
CN112817886A (en) Master-slave communication method and device based on SPI
CN216530587U (en) Power supply connector for supplying power to master equipment and slave equipment
CN109041006A (en) Method for acquiring vehicle data
CN109462841B (en) Bluetooth communication method and device based on shared channel
CN113452603A (en) Data transmission method and related device
CN113300423A (en) Connector and power supply control method applied to connector
EP3672202A1 (en) Internet-of-things-based computer on/off control expansion device and computer on/off control system
US8594166B2 (en) Method and system for the serial transmission of data
US7187740B2 (en) Communications system
US20200209934A1 (en) Internet-of-things-based computer on/off control expansion device and computer on/off control system
JP2020184701A (en) In-vehicle communication system, relay device, and communication method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20211116

Assignee: Shenzhen Anrui Microelectronics Technology Co.,Ltd.

Assignor: Zhejiang core Gravity Technology Co.,Ltd.

Contract record no.: X2023980033320

Denomination of invention: A charging authentication method, device, device, and storage medium

Granted publication date: 20220107

License type: Common License

Record date: 20230308