Go to advanced search

by raspz1
Mon Jan 22, 2018 2:00 pm
Forum: Advanced users
Topic: Turning on/off USB Power
Replies: 9
Views: 6296

Re: Turning on/off USB Power

Hey topguy, Thanks for your message! Out of curiosity, have you seen this thread? https://www.raspberrypi.org/forums/viewtopic.php?t=93463 Although it’s for another Pi model, there seems to be some conflicting/interesting discussion about what’s happening to cause this functionality. Also, if it’s s...
by raspz1
Mon Jan 22, 2018 10:44 am
Forum: Advanced users
Topic: Turning on/off USB Power
Replies: 9
Views: 6296

Re: Turning on/off USB Power

Hi Matt,

Yeah I wasn't sure if I should copy it all or not?

I figured this question was much more specific and as someone else was likely to search this topic at some point too using this title, it might be better in the long run?

Thanks for your input though :)
by raspz1
Mon Jan 22, 2018 10:07 am
Forum: Advanced users
Topic: Turning on/off USB Power
Replies: 9
Views: 6296

Re: Turning on/off USB Power

Here ya go.

Excuse the video, I’m currently overseas and friend was holding the dongle for me and filming the results (to see if it would turn off).

It does and can no longer be found by lsusb, and when it reloads has a new IP address and everything:

http://sendvid.com/fukj9xmq
by raspz1
Mon Jan 22, 2018 9:59 am
Forum: Advanced users
Topic: Turning on/off USB Power
Replies: 9
Views: 6296

Re: Turning on/off USB Power

Heya drgeoff, Haha yeah that’s what I read when I first started looking into the issue, but it actually does work. I was as surprised as everyone else haha I read an explanation somewhere that said it uses a work around, telling the Pi there was a power surge or something so it cuts power - but don’...
by raspz1
Mon Jan 22, 2018 7:43 am
Forum: Advanced users
Topic: Turning on/off USB Power
Replies: 9
Views: 6296

Turning on/off USB Power

Hi All! I have a quick question. Using the following code I found in another topic on this forum, I am able to successfully cut power to a USB device on my Raspberry Pi Zero W: echo 0 > /sys/devices/platform/soc/20980000.usb/buspower sleep 5 echo 1 > /sys/devices/platform/soc/20980000.usb/buspower H...
by raspz1
Sun Jan 21, 2018 2:43 pm
Forum: Troubleshooting
Topic: Pi Randomly Disconnects from OpenVPN and can no longer reconnect or ping
Replies: 3
Views: 1248

Re: Pi Randomly Disconnects from OpenVPN and can no longer reconnect or ping

Does anyone know how to make this last longer?

It cuts power but only for about 1 second, no matter how long sleep time is.

How could I make it stay off for say, 5 seconds?

Code: Select all

echo 0 > /sys/devices/platform/soc/20980000.usb/buspower
sleep 5
echo 1 > /sys/devices/platform/soc/20980000.usb/buspower
by raspz1
Sun Jan 21, 2018 1:34 pm
Forum: Troubleshooting
Topic: Pi Randomly Disconnects from OpenVPN and can no longer reconnect or ping
Replies: 3
Views: 1248

Re: Pi Randomly Disconnects from OpenVPN and can no longer reconnect or ping

Hi Epoch! I don't believe I have set any custom DNS or DHCP settings at all! I do know that 192.168.9.1 is the address of the 3g dongle EDIT: Hmm you're right! When I ping Google with it while it's not disconnected, i get: PING www.google.com (216.58.220.132) 56(84) bytes of data and that ip accordi...
by raspz1
Sun Jan 21, 2018 1:07 am
Forum: Troubleshooting
Topic: Pi Randomly Disconnects from OpenVPN and can no longer reconnect or ping
Replies: 3
Views: 1248

Pi Randomly Disconnects from OpenVPN and can no longer reconnect or ping

Hi All! I have a Raspberry Pi Zero W connected with a 3G dongle to the internet. It is connected to OpenVPN and works fine 90% of the time. However, every now and again it just disconnects and I have to reboot it, or unplug/replug the dongle to get it to reconnect. I wrote a bash script to detect a ...
by raspz1
Sat Jan 20, 2018 3:00 am
Forum: Troubleshooting
Topic: USB 3G Dongle Disconnecting
Replies: 13
Views: 4890

Re: USB 3G Dongle Disconnecting

Ok! So I managed to get the Pi to reconnect with the script I was scared to use (in case anyone else has this problem). However now I have a new problem...once reconnected, the OpenVPN won't reconnect. I get: PING www.google.com (192.168.9.1) 56(84) bytes of data. 64 bytes from vodafonemobile.vmb (1...
by raspz1
Fri Jan 19, 2018 12:48 pm
Forum: Troubleshooting
Topic: USB 3G Dongle Disconnecting
Replies: 13
Views: 4890

Re: USB 3G Dongle Disconnecting

Maybe someone knows how to manually trigger the modem back to storage mode, and then back again?
by raspz1
Fri Jan 19, 2018 11:26 am
Forum: Troubleshooting
Topic: USB 3G Dongle Disconnecting
Replies: 13
Views: 4890

Re: USB 3G Dongle Disconnecting

Unfortunately, it doesnt seem to work. I received this output Look for default devices ... product ID matched Found devices in default mode (1) Access device 021 on bus 001 Get the current device configuration ... Current configuration number is 1 Use interface number 0 with class 2 USB description ...
by raspz1
Fri Jan 19, 2018 6:44 am
Forum: Troubleshooting
Topic: USB 3G Dongle Disconnecting
Replies: 13
Views: 4890

Re: USB 3G Dongle Disconnecting

Heya!

Hmm that's interesting! I had googled for some sort of reset for modeswitch but hadn't found anything.
I will script that in to try it next time it happens.

Thanks for your help bud!
Fingers crossed!!
by raspz1
Fri Jan 19, 2018 2:47 am
Forum: Troubleshooting
Topic: USB 3G Dongle Disconnecting
Replies: 13
Views: 4890

Re: USB 3G Dongle Disconnecting

Hi mate,

Update - init 6 does not work.

Hmm could be the pi zero - I believe the usb port is directly connected to the power
by raspz1
Thu Jan 18, 2018 11:13 am
Forum: Troubleshooting
Topic: USB 3G Dongle Disconnecting
Replies: 13
Views: 4890

Re: USB 3G Dongle Disconnecting

Hey Sparkie!

I had to give it a quick google between init 6 and normal shutdown cause I’d only done /shutdown -r now and sudo reboot.

If it cuts power on yours, I will give it a try with init 6 this evening!!

Will keep you updated!
by raspz1
Thu Jan 18, 2018 12:30 am
Forum: Troubleshooting
Topic: USB 3G Dongle Disconnecting
Replies: 13
Views: 4890

Re: USB 3G Dongle Disconnecting

Have also tried to make the power cut script run longer with both continuous echo 0 commands, and larger sleep times etc - to no avail
by raspz1
Wed Jan 17, 2018 8:45 am
Forum: Troubleshooting
Topic: USB 3G Dongle Disconnecting
Replies: 13
Views: 4890

USB 3G Dongle Disconnecting

Hi all, I come to you humbly at the end of my tether, teetering on the brink of insanity :lol: Here is the situation: A small service my business provides runs off a Raspberry Pi Zero W. It is set up with usb_modeswitch using a Huawei k4203 and the following configuration: /etc/udev/rules.d/40-usb_m...

Go to advanced search