桂花蒸

#The7thLiChuangElectricityContest#Charging protocol power tester

 
Overview

 
1. Introduction to project functions
After paying attention to the charging head network, I found that they used a series of Power-Z products to evaluate charging equipment. It happened that the case of this training camp was a USB ammeter, so I had the idea of ​​imitating a charging protocol detector.

 
Protocol detection

Currently, most community solutions for fast charging are power supply equipment, such as power banks and desktop power supplies. There are not many types of powered equipment and they support a single protocol. Therefore, if you want to implement fast charging protocol detection, you cannot rely on only one protocol chip, and some protocols need to be implemented by software. The full protocol requires the use of USB-C's DP, DM, and CC pins for handshake communication, so the 6P USB-C interface cannot be used, and a USB-C 16P interface is required.
The charging protocol monitoring pins are DP and DN. According to the Power-Z document, there is a table as follows:
D+(DP)
D-(DM)
protocol
D+(DP)
D-(DM)
protocol
2.7V
2.7V
APPLE 2.4A
0.6V
0.6V
QC2.0 12V
1.2V
1.2V
SAMSUNG 2.0A
0.6V
3.3V
QC3.0
0.6V
0.0V
QC2.0 5V FCP AFC 9V
3.3V
0.6V
QC2.0 9V
0.0V
0.0V

DCP1.5A SDP 0.5A
USB2.0 HS

3.3V
0.0V
USB2.0 FS
The current goal is to achieve QC/PD dual protocol detection. The current two protocol standards are up to QC4 and PD3.1.
The PD protocol is divided into "fixed gear" and "programmable gear". The negotiation handshake is more complicated and is implemented using a USB-PD control chip. The difference between USB-C and USB-A is that USB-A outputs 5V by default, while USB-C outputs 0V without device recognition. Therefore, USB-C needs to provide a trigger signal to make it have voltage output when connected.
 
 
*2.
Please enter the content of the project attributes...
 
Note: Please indicate whether the project is publicly disclosed for the first time; whether the project is original; whether the project has won awards in other competitions, and if so, describe the details of the award; whether the project has participated in the defense at school.
 
* 3. Please enter the content of the open source agreement
...
 
Note: Altruism is self-interest, please read the following content carefully.
Embrace open source and give unlimited value to the project. It is recommended that more than 80% of the core functions of the project be open source;
if a part of the function is irreplaceable and the project cannot solve the corresponding problem after deleting it, then the function implemented by this part is the core function of the project; for example, if an electronic load is designed and a host computer software is designed to monitor power changes, the electronic load is the core function and the host computer software is an auxiliary function; for example, an isolated 485 module is used in the electronic load to communicate with the host computer, then the communication function implemented by this 485 module is an auxiliary function;
the project should choose an open source protocol that suits it. If the project references other open source projects, the source should be indicated and the original author's open source protocol should be followed; original projects are recommended to use the GPL3.0 open source protocol;
functions implemented by directly referencing the original circuit or original code of the open source project cannot be used as the core function of your own project, and functions directly implemented by using general modules on the market cannot be used as the core function of your own project.
 
Please fill in the following information during the competition stage↓
 
*4.
An independent USB-C port is set up for the hardware part, and a multi-level voltage source is provided next to it. It is not connected to the main device and is used to test voltage triggers such as QC under DP and DN configurations.
 
The PD protocol trigger uses the FUSB302B chip, which has two packages, WLCSP9 and WQFN14. The WLCSP9 package can be replaced with the RT1715WSC (C2976586) Pin-to-Pin.
FUSB302B supports up to PD2.0 protocol, while RT1715WSC can handshake PD3.0 protocol (without Fast Role Swap (FRS)). The functional
protocol chip address is 0x44, 0x45. The current progress can read the chip model, version number, and step.
 
The voltage and current detection is completed by the INA219 chip, which communicates with the MCU through I2C. In the circuit design, INA219 configures the I2C address to 0x40, the write address to 0x80, and the read address to 0x81.
Initialize the configuration register address 0x00, initialize and configure in the main function; the project uses BUS voltage reading and sampling voltage reading, and the USB voltage and current are obtained after calculation.
 
 
*5. Software Some
software is developed using Keil5, involving I2C and other related codes
 
*6.
Please enter the content of the BOM list...
 
Note: The BOM list involved in the project. Please upload a screenshot of the BOM in this location. Please upload the list details in the PDF format to the attachment. It is recommended to include model, brand, name, package, procurement channel, purpose, etc. The specific content and form should be based on the clear expression of the project composition.
 
*7. For competition LOGO verification,
 
please upload a project picture containing the competition logo, and the logo is printed on the PCB in the form of silk screen.
Click zip to download the competition logo! (Competition logo).zip
 
* 8. Demonstrate your project and record it into a video. Upload
 
video requirements: Please shoot horizontally, with a resolution of not less than 1280×720, in Mp4/Mov format, and a single video size limited to 100M;
video title: Lichuang Electric Competition: {Project Name}-{Video Module Name}; such as Lichuang Electric Competition: "Autonomous Driving"-Team Introduction.
 
More details: https://diy.szlcsc.com/posts/d76d9cb41705430e9a54e7a5feed07a5
 
参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-04 04:55:05

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号