QCA7000 Foccci+Clara User thread
- uhi22
- Posts: 1062
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 182 times
- Been thanked: 597 times
Re: QCA7000 Foccci+Clara User thread
The actuator test only works if the charge cable is not plugged in. Detection is done based on the PP resistance and the highlevel communication state.
https://github.com/uhi22/ccs32clara/blo ... e.cpp#L618
https://github.com/uhi22/ccs32clara/blo ... e.cpp#L618
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: QCA7000 Foccci+Clara User thread
Ah, that would do it, thank you. For some reason it's reporting a PP resistance of ~1860 ohm with nothing plugged in. I checked with my multimeter right at the connector and I'm reading the correct 2.7k. 5V supply is reading 5V. I checked current from PP to ground and got 15mA so I think that means the 330R is good.
Just as a test, I changed the pullup resistor setting to Foccci4.2_5V_330up_3000down and then it was reading 10k and all of the tests worked. Actual hardware version is 5.1 and I had it on the Foccci4.5_5V_330up_no_down option prior to this test.
So, how might I go about fixing the issue of the low reading? I recall seeing discussion of this before but not sure if it's actually the same issue,or if there was a solution.
Edit: For what it's worth, spot value reading is ~130 ohm with cable connected (j1772 type 1). I think that's also slightly low, should be around 140 with the parallel resistance of the port's 2k7 resistor and the plug's 150R resistor?
Just as a test, I changed the pullup resistor setting to Foccci4.2_5V_330up_3000down and then it was reading 10k and all of the tests worked. Actual hardware version is 5.1 and I had it on the Foccci4.5_5V_330up_no_down option prior to this test.
So, how might I go about fixing the issue of the low reading? I recall seeing discussion of this before but not sure if it's actually the same issue,or if there was a solution.
Edit: For what it's worth, spot value reading is ~130 ohm with cable connected (j1772 type 1). I think that's also slightly low, should be around 140 with the parallel resistance of the port's 2k7 resistor and the plug's 150R resistor?
- uhi22
- Posts: 1062
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 182 times
- Been thanked: 597 times
Re: QCA7000 Foccci+Clara User thread
Seems we need to check the resistence calculation. Your physical measurements make sense, the rest is software work. The best setting at the moment is the 330up 3000down, if you have the 2k7 connected.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: QCA7000 Foccci+Clara User thread
Okay sounds good, thanks. I've also checked all my grounds and cables as well as verified input impedance, all looks good. Happy to check/test anything else if needed!
Edit: Aha, could it be the resistors in my voltage divider? R28 is reading 33k and R57 is 36k. The numbers printed on them are correct for 47k, so maybe measuring them in-circuit is throwing things off. But, redoing the math seems to almost perfectly match the values I am seeing. Might compile a new bin to see what it does.
Edit: Aha, could it be the resistors in my voltage divider? R28 is reading 33k and R57 is 36k. The numbers printed on them are correct for 47k, so maybe measuring them in-circuit is throwing things off. But, redoing the math seems to almost perfectly match the values I am seeing. Might compile a new bin to see what it does.
- uhi22
- Posts: 1062
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 182 times
- Been thanked: 597 times
Re: QCA7000 Foccci+Clara User thread
Is this 2.7k integrated in the charge port, and measurable while Foccci is completely disconnected from the charge port? Or is it coming due to R60 (the integrated 3k3 pulldown in Foccci, which can be enabled with a solder jumper)?
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: QCA7000 Foccci+Clara User thread
It's integrated in the charge port. I also verified it by unplugging Foccci and probing the connector directly.
- uhi22
- Posts: 1062
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 182 times
- Been thanked: 597 times
Re: QCA7000 Foccci+Clara User thread
So we will add a configuration option 330up 2700down for PPvariant.
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: QCA7000 Foccci+Clara User thread
Okay, that makes sense. I suppose that should apply to most type 1 ports. Does that explain the low reading of the 2k7 when set to 330 up no down? I'm still a but suspicious of these voltage divider resistors.
- uhi22
- Posts: 1062
- Joined: Mon Mar 14, 2022 3:20 pm
- Location: Ingolstadt/Germany
- Has thanked: 182 times
- Been thanked: 597 times
Re: QCA7000 Foccci+Clara User thread
Yes, if Foccci is configured to have 330up no down, and it sees the 2k7, then this 2k7 is treated as "external" and that's why shown as resistance (but not very accurate).
I just added new PP variants to consider the following cases:
- Foccci 5 with no pull down at all
- Foccci 5 with 2k7 pull down (in the inlet)
- Foccci 5 with 3k3 pull down (on the PCB if the solder jumper to R60 is closed)
Tested okay so far, but with some tolerances, due to:
- the voltage drop over D20 depends on the current. This is not modeled in the software.
- The regulators for 5V and 3.3V have tolerances, which are not compensated by the software.
- Finally also the involved resistors have tolerances.
The overall accuracy of the measured PP resistance is better than 10%, this should be fine.
Review appreciated: https://github.com/uhi22/ccs32clara/blo ... C.cpp#L105
I just added new PP variants to consider the following cases:
- Foccci 5 with no pull down at all
- Foccci 5 with 2k7 pull down (in the inlet)
- Foccci 5 with 3k3 pull down (on the PCB if the solder jumper to R60 is closed)
Tested okay so far, but with some tolerances, due to:
- the voltage drop over D20 depends on the current. This is not modeled in the software.
- The regulators for 5V and 3.3V have tolerances, which are not compensated by the software.
- Finally also the involved resistors have tolerances.
The overall accuracy of the measured PP resistance is better than 10%, this should be fine.
Review appreciated: https://github.com/uhi22/ccs32clara/blo ... C.cpp#L105
Github: http://github.com/uhi22 --- Patreon: https://www.patreon.com/uhi22
Re: QCA7000 Foccci+Clara User thread
Okay, looks good! I was getting about 160Ω with the cable plugged in, 500Ω with the handle's button pressed, and 10k with the cable unplugged. This is great because now it doesn't think there's always a plug inserted. Thank you! Now just a bit more work on the CAN side and I'll be ready to try a CCS session!
- muehlpower
- Posts: 664
- Joined: Fri Oct 11, 2019 10:51 am
- Location: Germany Fürstenfeldbruck
- Has thanked: 12 times
- Been thanked: 130 times
Re: QCA7000 Foccci+Clara User thread
I have saved an early board from uhi22, version 2023-08-17. The web interface shows a firmware 0.21B. I think this is not the current version
What is the latest version, does it run on this board, where do I get it from, and how do I get it onto the board?

- johu
- Site Admin
- Posts: 6585
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 328 times
- Been thanked: 1464 times
- Contact:
Re: QCA7000 Foccci+Clara User thread
The latest binary is here: https://github.com/uhi22/ccs32clara/actions (you need to log in). You need an esp32 web interface to flash the firmware and yes all versions run on all boards
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- muehlpower
- Posts: 664
- Joined: Fri Oct 11, 2019 10:51 am
- Location: Germany Fürstenfeldbruck
- Has thanked: 12 times
- Been thanked: 130 times
Re: QCA7000 Foccci+Clara User thread
Is there a reliable way to transfer parameters to the foccci board without a “web” interface? Maybe with ST-Link?
Re: QCA7000 Foccci+Clara User thread
Not sure about the st-link. According to the wiki, this command line tool should work : viewtopic.php?t=2907
- muehlpower
- Posts: 664
- Joined: Fri Oct 11, 2019 10:51 am
- Location: Germany Fürstenfeldbruck
- Has thanked: 12 times
- Been thanked: 130 times
Re: QCA7000 Foccci+Clara User thread
I read that too, but I seem to be too stupid to install it. I have python, at least I think so. when I enter 'python' in the comandline I get a version number. After typing 'pip install openinverter_can_tool' it seems to install something. And now?Zieg wrote: ↑Sun Apr 20, 2025 3:43 pm Not sure about the st-link. According to the wiki, this command line tool should work : viewtopic.php?t=2907