Author Topic: A power bank still detects a connected device if I disconnect USB's VBUS  (Read 1137 times)

0 Members and 1 Guest are viewing this topic.

Offline epigramxTopic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: 00
Do you know of a way to do it - in a standard way - without disconnecting the entire cable? Would disconnecting only GND do it (will try that next if no one answers)?

PS. In case anyone wonders why, it's because I can't change the power bank's model/brand and it doesn't fast-charge itself, if anything else is connected to it.
 

Offline malagas_on_fire

  • Frequent Contributor
  • **
  • Posts: 591
  • Country: pt
  • Kernel Panic
    • Malagas Lair
If one can make knowledge flow than it will go from negative to positve , for real
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8405
It senses the data lines too.
 

Offline epigramxTopic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: 00
Another forum suggested to just switch the GND because it will make the other pins float. I guess I'll try that next.

what about a cable with a built-in switch
I'd rather avoid that due to cost and space. Plus, it probably only does what I already do (since it's called "power cable").
It senses the data lines too.
 

Offline epigramxTopic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: 00
success, dangling GND made the power bank completely oblivious anything is connected to it.
 

Offline bson

  • Supporter
  • ****
  • Posts: 2447
  • Country: us
The host doesn't care if a device is attached to Vbus or not.  What it detects is pullups on the data lines.
 
The following users thanked this post: wraper

Offline epigramxTopic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: 00
The host doesn't care if a device is attached to Vbus or not.  What it detects is pullups on the data lines.
So I guess it detects a specific range of resistance between GND and D+ or/and D-.
« Last Edit: March 13, 2019, 06:45:18 am by epigramx »
 

Offline bson

  • Supporter
  • ****
  • Posts: 2447
  • Country: us
Depends; different pullups indicate different speed... so the pullups are used to both detect the presence of a device and its speed.

For USB 2, a 1.5k pullup on D+ to +3.3-5V indicates Full Speed.
A 1.5k pullup on D- indicates Low Speed.

A high speed device connects as FS and then goes through a special reset cycle (a chirp) to bump the speed to HS.
 

Offline epigramxTopic starter

  • Regular Contributor
  • *
  • Posts: 61
  • Country: 00
Depends; different pullups indicate different speed... so the pullups are used to both detect the presence of a device and its speed.

For USB 2, a 1.5k pullup on D+ to +3.3-5V indicates Full Speed.
A 1.5k pullup on D- indicates Low Speed.

A high speed device connects as FS and then goes through a special reset cycle (a chirp) to bump the speed to HS.
Since this is only a charger in effect (a power bank) I guess it only detects anything in that range.
If they are floating, I assume it considers it higher than that impedance. Correct me if I'm wrong.

update: It's Quick Charge 2.0 compliant so it does deal with D+/D- actively.
« Last Edit: March 13, 2019, 07:01:59 am by epigramx »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf