CN116192998B - Method, device and equipment for decoding power transmission protocol information packet - Google Patents

Method, device and equipment for decoding power transmission protocol information packet Download PDF

Info

Publication number
CN116192998B
CN116192998B CN202310172991.0A CN202310172991A CN116192998B CN 116192998 B CN116192998 B CN 116192998B CN 202310172991 A CN202310172991 A CN 202310172991A CN 116192998 B CN116192998 B CN 116192998B
Authority
CN
China
Prior art keywords
identification code
code
communication type
signal
decoding
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
CN202310172991.0A
Other languages
Chinese (zh)
Other versions
CN116192998A (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.)
Unicmicro Guangzhou Co ltd
Original Assignee
Unicmicro Guangzhou 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 Unicmicro Guangzhou Co ltd filed Critical Unicmicro Guangzhou Co ltd
Priority to CN202310172991.0A priority Critical patent/CN116192998B/en
Publication of CN116192998A publication Critical patent/CN116192998A/en
Application granted granted Critical
Publication of CN116192998B publication Critical patent/CN116192998B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Dc Digital Transmission (AREA)
  • Communication Control (AREA)

Abstract

The application belongs to the technical field of decoding, and discloses a method, a device and equipment for decoding a power transmission protocol information packet, wherein the method comprises the following steps: capturing PD signals according to a preset capturing rule to obtain a plurality of signal pulse widths; decoding the signal pulse width of the first time length into a first identification code, decoding the signal pulse width of the second time length into a second identification code, and decoding the signal pulse width of the third time length into a third identification code to obtain an identification code string; taking the first identification code in the identification code string as a standard code, and detecting whether the previous identification code of the standard code is a third identification code or not; if yes, processing the identification code string according to a first processing rule to obtain signal characteristic information; if not, the identification code string is processed according to the second processing rule, and signal characteristic information is obtained. The application can achieve the effect of effectively reducing the cost of decoding the power transmission protocol information packet.

Description

Method, device and equipment for decoding power transmission protocol information packet
Technical Field
The present application relates to the field of decoding technologies, and in particular, to a method, an apparatus, and a device for decoding a power transmission protocol packet.
Background
Generally, a PD (PD is an abbreviation of Power Delivery protocol, which refers to a PD protocol of a fast charging standard) information packet received from a Power supply terminal will include information about which party the Power supply terminal communicates with when the Power supply terminal communicates this time, and Power supply capability, address, etc. of the Power supply terminal. The opposite party needs to be replied within about 500 microseconds after receiving the power transmission protocol information packet sent by the power supply end, otherwise, the communication fails; because the code string of the encoded PD signal is relatively long, the decoding requires much time, and in order to avoid timeout, it is necessary to first identify the signal characteristic information in the PD signal to determine whether the counterpart needs to communicate with the counterpart, and if so, the counterpart replies to the counterpart with a communication session sequence number, etc. In order to obtain the signal characteristic information in the prior art, a hard decoding mode is generally adopted, namely, the decoding function is integrated in the chip, but the method can lead to long chip design process, high risk and high chip price. Therefore, the prior art has the problem of high cost for decoding the power transmission protocol information packet.
Disclosure of Invention
The application provides a method, a device and equipment for decoding a power transmission protocol information packet, which can effectively reduce the cost for decoding the power transmission protocol information packet.
In a first aspect, an embodiment of the present application provides a method for decoding a power transmission protocol packet, where the method is applied to a decoding device, and the method includes:
capturing PD signals according to a preset capturing rule to obtain a plurality of signal pulse widths;
decoding the signal pulse width of the first time length into a first identification code, decoding the signal pulse width of the second time length into a second identification code, and decoding the signal pulse width of the third time length into a third identification code to obtain an identification code string;
taking the first identification code in the identification code string as a standard code, and detecting whether the previous identification code of the standard code is a third identification code or not; if yes, processing the identification code string according to a first processing rule to obtain signal characteristic information; if not, the identification code string is processed according to the second processing rule, and signal characteristic information is obtained.
Further, capturing the PD signal according to the preset capturing rule to obtain a plurality of signal pulse widths, including:
the time interval between two consecutive identical edge transitions in the waveform of the PD signal is taken as a signal pulse width.
Further, the signal characteristic information includes communication type information;
the processing the identification code string according to the first processing rule to obtain signal characteristic information includes:
detecting whether the 4 th identification code after the standard code is a third identification code;
if yes, the communication type information is a third communication type;
if not, detecting whether the 7 th identification code after the standard code is the first identification code, if so, the communication type information is the first communication type, and if not, the communication type information is the second communication type.
Further, the signal characteristic information includes communication type information;
the processing the identification code string according to the second processing rule to obtain signal characteristic information includes:
detecting whether the 3 rd identification code after the standard code is a third identification code;
if yes, the communication type information is a third communication type;
if not, detecting whether the 7 th identification code after the standard code is the first identification code, if so, the communication type information is the first communication type, and if not, the communication type information is the second communication type.
Further, the first time period is 6.6 microseconds, the second time period is 5 microseconds, and the third time period is 3.3 microseconds.
Further, the signal characteristic information includes a communication session sequence number;
the processing the identification code string according to the first processing rule to obtain signal characteristic information includes:
taking the identification code which is separated from the standard code by 30 bits after the standard code as a start code and the identification code which is separated from the standard code by 35 bits as an end code; combining a plurality of identification codes from the start code to the end code to obtain a 5bit code string; and processing the 5-bit code string to obtain the communication session sequence number.
Further, the signal characteristic information includes a communication session sequence number;
the processing the identification code string according to the second processing rule to obtain signal characteristic information includes:
taking the identification code which is separated from the standard code by 29 bits after the standard code as a start code and the identification code which is separated from the standard code by 34 bits as an end code; combining a plurality of identification codes from the start code to the end code to obtain a 5bit code string; and processing the 5-bit code string to obtain the communication session sequence number.
Further, the processing the 5bit code string to obtain a communication session sequence number includes:
performing reverse sequence operation on the 5-bit code string to obtain a reverse sequence 5-bit code string;
and converting the reverse sequence 5bit code string into a 4bit code string, and taking the high order 3bit code in the 4bit code string as a communication session sequence number.
In a second aspect, an embodiment of the present application provides an apparatus for decoding a power transmission protocol packet, where the apparatus is applied to a decoding device, the apparatus includes:
the signal pulse width acquisition module is used for capturing the PD signal according to a preset capturing rule to obtain a plurality of signal pulse widths;
the decoding module is used for decoding the signal pulse width of the first time length into a first identification code, decoding the signal pulse width of the second time length into a second identification code, and decoding the signal pulse width of the third time length into a third identification code to obtain an identification code string;
the signal characteristic information acquisition module is used for taking a first identification code in the identification code string as a standard code and detecting whether the previous identification code of the standard code is a third identification code or not; if yes, processing the identification code string according to a first processing rule to obtain signal characteristic information; if not, the identification code string is processed according to the second processing rule, and signal characteristic information is obtained.
In a third aspect, an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor executing the steps of a method for decoding a power transfer protocol packet according to any of the embodiments described above.
In summary, compared with the prior art, the technical scheme provided by the embodiment of the application has the following beneficial effects:
the method for decoding the power transmission protocol information packet provided by the embodiment of the application decodes the received PD signal through the program code to obtain the signal characteristic information in the PD signal, thereby completing the decoding of the power transmission protocol information packet, realizing the decoding of the power transmission protocol information packet without designing or modifying hardware in a chip, changing the hard decoding into the soft decoding, and effectively reducing the cost for decoding the power transmission protocol information packet.
Drawings
Fig. 1 is a flowchart of a method for decoding a power transmission protocol packet according to an embodiment of the present application.
Fig. 2 is a flowchart of a first processing rule according to an embodiment of the present application.
Fig. 3 is a block diagram of an apparatus for decoding a power transmission protocol packet according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, an embodiment of the present application provides a method for decoding a power transmission protocol packet, where the method is applied to a decoding device to execute a description of the decoding device by a main body, and the method specifically may include:
step S1, capturing PD signals according to a preset capturing rule to obtain a plurality of signal pulse widths.
Step S2, the signal pulse width of the first time length is decoded into a first identification code, the signal pulse width of the second time length is decoded into a second identification code, and the signal pulse width of the third time length is decoded into a third identification code, so that an identification code string is obtained.
Step S3, taking the first identification code in the identification code string as a standard code, and detecting whether the previous identification code of the standard code is a third identification code or not; if yes, processing the identification code string according to a first processing rule to obtain signal characteristic information; if not, the identification code string is processed according to the second processing rule, and signal characteristic information is obtained.
Specifically, the identification code string is detected according to two processing rules according to whether the previous identification code of the standard code is the third identification code or not, so as to avoid erroneous judgment caused by dislocation when the guide code is identified.
According to the method for decoding the power transmission protocol information packet, the received PD signal is decoded through the program codes, and the signal characteristic information in the PD signal is obtained, so that the decoding of the power transmission protocol information packet is completed, the decoding of the power transmission protocol information packet is realized without designing or modifying hardware in a chip, the decoding is changed from hard decoding to soft decoding, and the cost for decoding the power transmission protocol information packet is effectively reduced.
In some embodiments, capturing the PD signal according to the preset capturing rule to obtain a plurality of signal pulse widths includes:
the time interval between two consecutive identical edge transitions in the waveform of the PD signal is taken as a signal pulse width.
The decoding device can be an MCU chip, and the signal pulse width can be obtained by capturing interruption of an MCU timer; specifically, the signal pulse width is expressed in the form of data of a counting register of a timer, the value of the counter is captured once every time the occurrence of an edge is detected, and the difference between the values of the counter captured by two identical edges is the signal pulse width.
Specifically, since the baud rate of PD communication is 330k, i.e., 3.3us/bit, and the manchester encoding scheme is used, the shortest pulse width in the PD signal is 3.3 us/2=1.6 us, the pulse width is extremely short, and most chips can only capture and identify such continuous ultrashort pulse widths by increasing the chip's dominant frequency, which is costly.
The embodiment adopts a single-edge capturing mode, which is equivalent to combining 2 adjacent basic units in the PD signal, thereby realizing capturing of the ultra-short pulse width of 1.6us, obtaining a plurality of signal pulse widths without lifting the main frequency of the chip, and avoiding the improvement of the recognition cost; and the MCU chip can close the operation of the timer according to the communication condition, so that the power consumption is reduced to a certain extent.
In one embodiment, the signal characteristic information includes communication type information.
Referring to fig. 2, the processing the identification code string according to the first processing rule to obtain signal feature information includes:
in step S31, it is detected whether the 4 th identification code after the standard code is the third identification code.
And step S32, if yes, the communication type information is a third communication type.
If not, step S33 detects whether the 7 th identification code after the standard code is the first identification code.
In step S331, if yes, the communication type information is the first communication type.
In step S332, if not, the communication type information is the second communication type.
The detection and judgment are performed based on the 4 th and 7 th identification codes because, among the plurality of signal pulse widths of the captured PD signal, signal pulse widths of different time periods occur due to different communication types, firstly, the 4 th signal pulse width after the signal pulse width of the first time period is possible, and secondly, the 7 th signal pulse width is possible.
Therefore, the above embodiment firstly judges according to the 4 th identification code, and if the same is judged according to the 7 th identification code, the communication type in the signal characteristic information can be accurately judged, and the identification codes do not need to be detected one by one, so that the calculation amount of soft decoding is reduced, the detection of the signal characteristic information is faster, and communication failure caused by exceeding the recovery time limit of 500 microseconds is avoided.
In one embodiment, the signal characteristic information includes communication type information.
The processing the identification code string according to the second processing rule to obtain signal characteristic information includes:
and detecting whether the 3 rd identification code after the standard code is the third identification code.
If yes, the communication type information is a third communication type.
If not, detecting whether the 7 th identification code after the standard code is the first identification code, if so, the communication type information is the first communication type, and if not, the communication type information is the second communication type.
Specifically, the communication type information refers to SOP type information in the PD signal, and SOP is start of packet, and the start of packet. The first communication type, namely SOP type, is that a power supply end communicates with a conventional communication party; the second communication type, namely SOP' type, is that the power supply end and the cable far end communicate; the third communication type, the SOP "type, is that the power end and the cable proximal end communicate.
According to the embodiment, the identification codes corresponding to the signal pulse widths with different time lengths caused by different communication types are directly detected instead of detecting the identification codes one by one, so that the speed of identifying the communication types is improved, and when the communication types are identified to be communicated with the user, the user can reply in time, and communication failure caused by the fact that the time for identifying the communication types exceeds the reply period is avoided.
In some embodiments, the first time length may be 6.6 microseconds, the second time length may be 5 microseconds, and the third time length may be 3.3 microseconds.
Specifically, the first identification code may be 00, the second identification code may be 1-0 or 01-, and the third identification code may be 1-1-.
Wherein 1-is a feature code, which represents half 1, namely, the complete 1 is split into two half 1.
When the time length is set according to the above embodiment, 1-corresponds to a signal pulse width of 0.5bit width, the time length is 1.6 microseconds; the identification code 1-1 corresponds to a signal pulse width with a width of 1bit and a time length of 3.3 microseconds, the identification code 1-0 or 01 corresponds to a pulse width of 5 microseconds, and the identification code 00 corresponds to a pulse width of 6.6 microseconds.
Since 3 consecutive 0's must appear after the boot code, each of the 3's is composed of two numbers, and the 3's may be the first two's 0's as an identification code, and may also be the last two's 0's as an identification code, which affects the order of identifying the subsequent identification codes, so detecting whether the previous identification code of the standard code is the third identification code, i.e. detecting whether the first 00's in the identification code string is preceded by 1-1-, if so, indicates that the 3 consecutive 0's after the boot code are the first two's 0's combined together as an identification code, if not, indicates that the 3 consecutive 0's are the last two's 0's as an identification code, thereby ensuring the accuracy of the subsequent identification.
In the embodiment, the ultra-short pulse width of 1.6 microseconds in the PD signal is represented by half 1, and when the pulse width captured at the single edge is 3.3 microseconds, two adjacent basic units in the captured signal pulse width are 1.6 microseconds, so that the capture of the ultra-short pulse width in the PD signal is realized. Considering that the existing chip can only recognize the ultra-short pulse width of 1.6 microseconds by increasing the main frequency, and the design cost of the chip is increased by increasing the main frequency of the chip, the method of representing the pulse width of 1.6 microseconds by adopting half 1 is adopted in the embodiment, and the capturing and recognition of the ultra-short pulse width can be realized without increasing the main frequency of the chip, so that the cost of decoding the PD signal is reduced.
In some embodiments, the signal characteristic information includes a communication session sequence number.
The processing the identification code string according to the first processing rule to obtain signal characteristic information includes:
taking the identification code which is separated from the standard code by 30 bits after the standard code as a start code and the identification code which is separated from the standard code by 35 bits as an end code; combining a plurality of identification codes from the start code to the end code to obtain a 5bit code string; and processing the 5-bit code string to obtain the communication session sequence number.
Specifically, the selection and calculation of the 30bit and 35bit intervals from the standard code includes the standard code itself.
In some embodiments, the signal characteristic information includes a communication session sequence number.
The processing the identification code string according to the second processing rule to obtain signal characteristic information includes:
taking the identification code which is separated from the standard code by 29 bits after the standard code as a start code and the identification code which is separated from the standard code by 34 bits as an end code; combining a plurality of identification codes from the start code to the end code to obtain a 5bit code string; and processing the 5-bit code string to obtain the communication session sequence number.
The communication session sequence number refers to an ID number of a GOODCRC in the power transmission protocol packet, where the GOODCRC is a data packet in the power transmission protocol packet, and is used to indicate that the CRC (Cyclic Redundancy Check, cyclic redundancy check code) is not a problem.
The ID number of the goose crc is the serial number of the communication session at the power supply end, and after judging that the counterpart communicates with the party according to the communication type information, the counterpart is replied according to the ID number to complete the communication.
The parallel code processing refers to merging every two adjacent half 1 between the start code and the end code into one whole 1, so that the obtained 5bit code string is a conventional 01 binary code string.
Specifically, the selection and calculation of the spacing 29bit and the spacing 34bit from the standard code includes the standard code itself.
Because whether the previous identification code of the standard code is the third identification code determines how the above 3 consecutive 0 s are combined, if the previous two 0 s are combined into one identification code, 30 bits are skipped, if the next two 0 s are combined into one identification code, only 29 bits are skipped, and one more 0 s than one of the skipped 29 bits identification codes are skipped.
The above embodiment directly skips the useless code string range, and directly performs parallel code processing on the decoding range corresponding to the ID number, thereby realizing the effect of quickly obtaining the ID number.
In some embodiments, the processing the 5bit code string to obtain the communication session sequence number includes:
performing reverse sequence operation on the 5-bit code string to obtain a reverse sequence 5-bit code string;
and converting the reverse sequence 5bit code string into a 4bit code string, and taking the high order 3bit code in the 4bit code string as a communication session sequence number.
Specifically, the ID number is generally located at the 5 th-8 th bit in the 16bit PD signal, and the values 5-8bit are only for the ID number of the GOODCRC packet, and when some numbers of other packets are to be decoded, only the bit value in the above calculation needs to be changed.
In the implementation process, after receiving the power transmission protocol information packet sent by the power supply end, the opposite party needs to be replied within about 500 microseconds, if all the received PD signals need to be decoded, the communication failure is very likely to be caused by exceeding 500 microseconds, so that the serial numbers of the communication session needing to be replied, namely ID numbers, need to be rapidly identified, the opposite party is replied according to the ID numbers, normal communication establishment is ensured, and all the PD signals are decoded to be replied.
The above embodiment realizes the technical effect of rapidly obtaining the ID number by directly jumping from the standard code to the range where the ID number is located and performing code combining processing, and avoids communication failure caused by too long total decoding time.
Referring to fig. 3, another embodiment of the present application provides an apparatus for decoding a power transmission protocol packet, which is applied to a decoding device, and includes:
the signal pulse width acquisition module 101 is configured to acquire a PD signal according to a preset acquisition rule, so as to obtain a plurality of signal pulse widths.
The decoding module 102 is configured to decode the signal pulse width of the first time length into a first identification code, decode the signal pulse width of the second time length into a second identification code, and decode the signal pulse width of the third time length into a third identification code, so as to obtain an identification code string.
A signal characteristic information obtaining module 103, configured to use a first identification code in the identification code string as a standard code, and detect whether a previous identification code of the standard code is a third identification code; if yes, processing the identification code string according to a first processing rule to obtain signal characteristic information; if not, the identification code string is processed according to the second processing rule, and signal characteristic information is obtained.
According to the device for decoding the power transmission protocol information packet, the received PD signal is decoded through the program codes stored in the module, so that the signal characteristic information in the PD signal is obtained, the decoding of the power transmission protocol information packet is completed, the decoding of the power transmission protocol information packet is realized without designing or modifying hardware in a chip, the decoding is changed from hard decoding to soft decoding, and the cost for decoding the power transmission protocol information packet is effectively reduced.
For specific limitations of an apparatus for decoding a power transmission protocol packet provided in this embodiment, reference may be made to the above embodiments of a method for decoding a power transmission protocol packet, which are not described herein. The above-described means for decoding a power transmission protocol packet may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
Embodiments of the present application provide a computer device that may include a processor, memory, network interface, and database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, causes the processor to perform the steps of a method of decoding a power transfer protocol packet as in any of the embodiments described above.
The working process, working details and technical effects of the computer device provided in this embodiment can be referred to the above embodiments of a method for decoding a power transmission protocol packet, which are not described herein.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (8)

1. A method of decoding a power transfer protocol packet, the method comprising:
capturing PD signals according to a preset capturing rule to obtain a plurality of signal pulse widths;
wherein the PD signal is a power transmission protocol signal;
decoding the signal pulse width of the first time length into a first identification code, decoding the signal pulse width of the second time length into a second identification code, and decoding the signal pulse width of the third time length into a third identification code to obtain an identification code string;
taking a first identification code in the identification code string as a standard code, and detecting whether the previous identification code of the standard code is the third identification code or not; if yes, processing the identification code string according to a first processing rule to obtain signal characteristic information; if not, processing the identification code string according to a second processing rule to obtain the signal characteristic information;
wherein the signal characteristic information includes communication type information;
the processing the identification code string according to the first processing rule to obtain signal characteristic information includes:
detecting whether the 4 th identification code after the standard code is the third identification code;
if yes, the communication type information is a third communication type;
if not, detecting whether the 7 th identification code after the standard code is the first identification code, if so, the communication type information is the first communication type, and if not, the communication type information is the second communication type;
the processing the identification code string according to the second processing rule to obtain the signal characteristic information includes:
detecting whether the 3 rd identification code after the standard code is the third identification code;
if yes, the communication type information is a third communication type;
if not, detecting whether the 7 th identification code after the standard code is the first identification code, if so, the communication type information is the first communication type, and if not, the communication type information is the second communication type.
2. The method of claim 1, wherein capturing the PD signal according to the preset capture rule results in a plurality of signal pulse widths, comprising:
taking the time interval between two continuous identical edge jumps in the waveform of the PD signal as one signal pulse width.
3. The method of claim 1, wherein the first time period is 6.6 microseconds, the second time period is 5 microseconds, and the third time period is 3.3 microseconds.
4. The method of claim 1, wherein the signal characteristic information further comprises a communication session sequence number; the processing the identification code string according to the first processing rule to obtain signal characteristic information, and the method further comprises the following steps:
taking the identification code which is separated from the standard code by 30 bits after the standard code as a start code and taking the identification code which is separated from the standard code by 35 bits as an end code;
combining the identification codes from the start code to the end code to obtain a 5-bit code string;
and processing the 5bit code string to obtain the communication session sequence number.
5. The method of claim 1, wherein the signal characteristic information further comprises a communication session sequence number; the processing the identification code string according to the second processing rule to obtain the signal characteristic information, and further includes:
taking the identification code which is separated from the standard code by 29 bits after the standard code as a start code and taking the identification code which is separated from the standard code by 34 bits as an end code;
combining the identification codes from the start code to the end code to obtain a 5-bit code string;
and processing the 5bit code string to obtain the communication session sequence number.
6. The method according to any one of claims 4-5, wherein said processing the 5bit code string to obtain the communication session sequence number comprises:
performing reverse sequence operation on the 5bit code string to obtain a reverse sequence 5bit code string;
and converting the reverse sequence 5bit code string into a 4bit code string, and taking the high-order 3bit code in the 4bit code string as the communication session sequence number.
7. An apparatus for decoding a power transmission protocol packet, the apparatus being adapted for use in a decoding device, the apparatus comprising:
the signal pulse width acquisition module is used for capturing the PD signal according to a preset capturing rule to obtain a plurality of signal pulse widths;
wherein the PD signal is a power transmission protocol signal;
the decoding module is used for decoding the signal pulse width of the first time length into a first identification code, decoding the signal pulse width of the second time length into a second identification code, and decoding the signal pulse width of the third time length into a third identification code to obtain an identification code string;
the signal characteristic information acquisition module is used for taking a first identification code in the identification code string as a standard code and detecting whether the previous identification code of the standard code is the third identification code or not; if yes, processing the identification code string according to a first processing rule to obtain signal characteristic information; if not, processing the identification code string according to a second processing rule to obtain the signal characteristic information;
wherein the signal characteristic information includes communication type information;
the signal characteristic information acquisition module is further used for: when the identification code string is processed according to a first processing rule, detecting whether the 4 th identification code after the standard code is the third identification code or not; if yes, the communication type information is a third communication type; if not, detecting whether the 7 th identification code after the standard code is the first identification code, if so, the communication type information is the first communication type, and if not, the communication type information is the second communication type;
the signal characteristic information acquisition module is further used for: when the identification code string is processed according to a second processing rule, detecting whether the 3 rd identification code after the standard code is the third identification code or not; if yes, the communication type information is a third communication type; if not, detecting whether the 7 th identification code after the standard code is the first identification code, if so, the communication type information is the first communication type, and if not, the communication type information is the second communication type.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 6 when the computer program is executed.
CN202310172991.0A 2023-02-24 2023-02-24 Method, device and equipment for decoding power transmission protocol information packet Active CN116192998B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310172991.0A CN116192998B (en) 2023-02-24 2023-02-24 Method, device and equipment for decoding power transmission protocol information packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310172991.0A CN116192998B (en) 2023-02-24 2023-02-24 Method, device and equipment for decoding power transmission protocol information packet

Publications (2)

Publication Number Publication Date
CN116192998A CN116192998A (en) 2023-05-30
CN116192998B true CN116192998B (en) 2023-10-31

Family

ID=86434301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310172991.0A Active CN116192998B (en) 2023-02-24 2023-02-24 Method, device and equipment for decoding power transmission protocol information packet

Country Status (1)

Country Link
CN (1) CN116192998B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740292A (en) * 2014-12-12 2016-07-06 深圳市中兴微电子技术有限公司 Decoding method and device
CN108886251A (en) * 2015-07-13 2018-11-23 马克西姆综合产品公司 System and method for the DC electric power line communication in photovoltaic system
CN112395895A (en) * 2019-08-16 2021-02-23 深圳市复恒自控技术有限公司 Magnetic stripe software decoding method and device and computer readable storage medium
CN112787755A (en) * 2020-12-30 2021-05-11 北京千方科技股份有限公司 Decoding method and device based on backward error correction mechanism and electronic equipment
CN114138055A (en) * 2021-12-08 2022-03-04 成都引众数字设备有限公司 Method and device for converting direct current B code into power system serial port time message
CN114201433A (en) * 2020-09-02 2022-03-18 赛普拉斯半导体公司 Real-time monitoring and control of USB C-type PD port in automobile or industrial ecosystem
CN114944890A (en) * 2022-07-21 2022-08-26 北京全路通信信号研究设计院集团有限公司 Transponder message transmission processing method and system
CN115002782A (en) * 2022-05-11 2022-09-02 平安国际智慧城市科技股份有限公司 Account login verification method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220060062A1 (en) * 2020-08-18 2022-02-24 Microchip Technology Incorporated Frequency shift keying demodulation for wireless power and related systems, methods, and devices

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105740292A (en) * 2014-12-12 2016-07-06 深圳市中兴微电子技术有限公司 Decoding method and device
CN108886251A (en) * 2015-07-13 2018-11-23 马克西姆综合产品公司 System and method for the DC electric power line communication in photovoltaic system
CN112395895A (en) * 2019-08-16 2021-02-23 深圳市复恒自控技术有限公司 Magnetic stripe software decoding method and device and computer readable storage medium
CN114201433A (en) * 2020-09-02 2022-03-18 赛普拉斯半导体公司 Real-time monitoring and control of USB C-type PD port in automobile or industrial ecosystem
CN112787755A (en) * 2020-12-30 2021-05-11 北京千方科技股份有限公司 Decoding method and device based on backward error correction mechanism and electronic equipment
CN114138055A (en) * 2021-12-08 2022-03-04 成都引众数字设备有限公司 Method and device for converting direct current B code into power system serial port time message
CN115002782A (en) * 2022-05-11 2022-09-02 平安国际智慧城市科技股份有限公司 Account login verification method, device, equipment and storage medium
CN114944890A (en) * 2022-07-21 2022-08-26 北京全路通信信号研究设计院集团有限公司 Transponder message transmission processing method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
光纤CDMA系统中FBG编―解码器的原理与应用;丁美玲, 章献民, 陈抗生;光电子.激光(06);全文 *

Also Published As

Publication number Publication date
CN116192998A (en) 2023-05-30

Similar Documents

Publication Publication Date Title
JP5694352B2 (en) Detection of frame start delimiters in wireless digital communication systems
US10396921B2 (en) Multi-lane synchronization method, synchronization apparatus and system, and computer storage medium
US8422596B2 (en) Communication device, communication method, and program
CN106788888B (en) Method and system for improving communication success rate of android mobile terminal in weak network environment
US20120257887A1 (en) Method and device for indicating an uncorrectable data block
CN113392060A (en) Universal serial port data receiving and processing method
TW200407021A (en) Modified start frame delimiter detection
CN109728879B (en) Synchronous error correction method for serial burst access application layer SLIP protocol message
CN116192998B (en) Method, device and equipment for decoding power transmission protocol information packet
CN115086454B (en) Method, system and storage medium for self-adaptive galvanometer control signal interface
US10623140B2 (en) Method for processing signaling sub-segment, processing apparatus, access point, and station
CN113810071B (en) Self-adaptive line sequence adjusting method, device, equipment, system and storage medium
CN113098809B (en) Software self-adaptive decoding method, device and wireless charging system
CN111800360B (en) FSK software decoding method based on frequency identification
EP3319249A1 (en) Transmission checking method, node, system and computer storage medium
CN114205054A (en) Signal processing method and device, electronic device and storage medium
CN107889089B (en) Mobile terminal and method for processing Bluetooth data
CN111130700B (en) Data transmission method and device, storage medium, and electronic device
EP4224805A1 (en) Transmission system and method for transition coding
CN112769173B (en) Double-decoding charge control system, control method and electronic equipment
CN115425997B (en) V-band multichannel receiver
CN115964320A (en) Baud rate identification method and device, chip for identifying Baud rate and storage medium
CN109802761B (en) Fault identification method and device
CN106549890B (en) Data receiving method and device
JPH09130368A (en) Data communication equipment

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