Mifi GPIO USB 2.0


#1

Hi

Can it power off USB 2.0 with a command or an SMS?

I dont mean /sys/devices/platform/leds-gpio/leds/gl_mifi:usbpow

That cut’s the power to the modem, not the USB 2.0 port


#2

Yes it is possible. What is your MiFi version? 2.4 or 2.5?

Does it comes with a battery or no battery?

If you are using firmware v2.261, check the led folder and you will find another two led name, called gl_mifi:usb_a_pow_batt or gl_mifi:usb_a_pow_nobatt

If you are using mifi 2.5, the LED should be usb_a_pow_batt

If you are using mifi 2.4, the LED should be usb_a_pow_batt for battery version and usb_a_pow_nobatt for non-battery version


#3

Hi alzhao

I’m running v2.261 with no battery

In /sys/devices/platform/leds-gpio/leds/gl_mifi:usb_a_pow_nobatt/brightness it says 255

and in /sys/devices/platform/leds-gpio/leds/gl_mifi:usb_a_pow_batt/brightness is says 0

I have tried to change both of them to 1 or 0 but nothing happens?


#4

I mean the hardware version. On the pcb under the PCIe module there is 2.4 or 2.5.

The nobatt one should works for you. I am not sure the problem of you board though.


#5

Hi…

How to shot off usb power on the side usb 2.0?

There are only:
gl-mifi:green:net
gl-mifi:green:wlan
gl-mifi:green:wan
gl-mifi:green:lan
gl-mifi:green:3gcontrol

Using firmware 3


#6

Use this one. I cannot remember you should set it 0 or 1. Just try.


#7

Thanks

But that disables the modem. I want the external usb 2.0 type A to disconnect


#8

There should be another called usbpow

Now sure why you don’t have.


#9

Weird… I have bought 30 pcs… I have tested 8 now and none of them have usbpow


#10

To control USB2.0 power, you should use those commands.

echo 1 > /sys/class/gpio/gpio6/value
echo 0 > /sys/class/gpio/gpio6/value

#11

Hi Kyson-lok

Does this apply to mifi? because its not working


#12

Yup, if you upgrade to v3.x firmware, it works in MIFI. I had tested it.