This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Script reboot failing
#12
You can power cycle USB port like this:
Code:
io.writefile('/dev/usbctrl', 'low')
os.sleep(1)
io.writefile('/dev/usbctrl', 'high')
os.sleep(1)

Make sure that serial port is not open in a script when doing the power cycle. Otherwise the port name might change and script won't work.
Reply


Messages In This Thread
Script reboot failing - by fbrun@domizy - 10.06.2024, 09:59
RE: Script reboot failing - by Daniel - 10.06.2024, 10:05
RE: Script reboot failing - by fbrun@domizy - 10.06.2024, 10:10
RE: Script reboot failing - by JMM - Yesterday, 14:21
RE: Script reboot failing - by Daniel - Yesterday, 14:42
RE: Script reboot failing - by JMM - Yesterday, 15:18
RE: Script reboot failing - by Daniel - Yesterday, 15:33
RE: Script reboot failing - by JMM - Yesterday, 15:48
RE: Script reboot failing - by Daniel - Yesterday, 15:53
RE: Script reboot failing - by JMM - Yesterday, 16:03
RE: Script reboot failing - by JMM - Yesterday, 17:28
RE: Script reboot failing - by admin - 7 hours ago

Forum Jump: