Skip to content

[Bug] slow charging after firmware 4.1 update #2857

Open

Description

@Jxfoo25

Describe the bug
What is the problem? charging speed went down to 3.1w after the update

To reproduce
Steps to reproduce the behavior:

  1. update to new firmware
Image Image
  1. plug it in
  2. check wattage on chager

Expected behavior
What did you expect to happen instead? the spike should be charging at 7.2w. it was charging at 7.2w before this firmware update

Screenshots
There is a saying that a picture is worth a 1000 words. Screenshots really help to identify and solve problems.

Activity

  1. added
    triage
    on Oct 15, 2026
  2. dlech commented on Oct 15, 2026

    @dlech
    Member

    Can you please run this on the hub while it is charging? And share the output.

    from pybricks import version
    from pybricks.hubs import PrimeHub
    
    hub = PrimeHub()
    print("Firmware:", version)                       # (hub name, release, git tag + build date)
    print("Battery:", hub.battery.voltage(), "mV")
    print("Charger type:", hub.charger.connected())   # 0-4, see table below
    print("Charger status:", hub.charger.status())    # 0=discharging, 1=charging, 2=complete, 3=fault
    print("Charge current:", hub.charger.current(), "mA")

    connected() should return 4.

    Also, if the battery is getting close to full, the rate will taper off.

    It returns one of these values.

        /// The USB cable is not connected (no VBUS).
        PBDRV_USB_BCD_NONE = 0,
        // The USB cable is connected to a non-standard charger or PS/2 port.
        PBDRV_USB_BCD_NONSTANDARD = 1
        // The USB cable is connected to standard downstream port.
        PBDRV_USB_BCD_STANDARD_DOWNSTREAM = 2
        // The USB cable is connected to charging downstream port.
        PBDRV_USB_BCD_CHARGING_DOWNSTREAM = 3
        // The USB cable is connected to dedicated charging port.
        PBDRV_USB_BCD_DEDICATED_CHARGING = 4
    
  3. added
    topic: battery
    topic: USB
    software: pybricks-micropython
    and removed
    triage
    on Oct 15, 2026
  4. laurensvalk commented on Oct 20, 2026

    @laurensvalk
    Member

    Thanks for reporting! Can you please test this on the old firmware to confirm this? This will help rule out whether it might have been a different hub or charger. Or maybe later on in the charging stage. You can follow these steps:

    • Download this firmware file.
    • Start the firmware update as usual. Instead of choosing a hub picture, choose "Advanced", and then choose the file you just downloaded.
    • Proceed as usual. When you connect with Bluetooth later, you should now see version v4.0.1 again if you click on the hub information in the bottom right.

    Then please repeat your charging tests. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    software: pybricks-micropythontopic: USBtopic: battery

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions