Thread Rating:
  • 0 Vote(s) - 0 Average
WiFi Usb flash drive (WIP)
#9
I know this is an old thread but I was able to get this working for my Saturn 2 after making the changes mentioned above by Martin to the original MagPi guide, and by commenting out the "otg_mode=1" line in /boot/config.txt.

Above that line in the config.txt reads the following:
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.

So it appears that this needs to be disabled for dwc2 to work with the latest Rasberry Pi OS version. (I'm using the lite version.)

For automatic changes, I also tweaked the timeout variables in the usbshare.py script. Making the timeout shorter, since I'm likely only moving one file at a time anyways, and by making the reset time between the dismounting and remounting commands a bit longer.

One other notable difference with my setup is that I am handling auto-starting of the script using the following line in the sudo users crontab.
@reboot sudo python3 /usr/local/share/usbshare.py &


I just got it working earlier today, but I have done a decent amount of testing and it appears to be working pretty consistently for transferring .ctb files directly to my printer over the wifi.

Just wanted to share my experience. Hopefully, someone finds it helpful.
Reply


Messages In This Thread
WiFi Usb flash drive (WIP) - by demer - 02-29-2020, 01:02 PM
RE: WiFi Usb flash drive (WIP) - by alizobil - 05-28-2020, 04:41 AM
RE: WiFi Usb flash drive (WIP) - by martinronz - 06-12-2020, 05:54 AM
RE: WiFi Usb flash drive (WIP) - by Martian - 06-28-2020, 09:34 PM
RE: WiFi Usb flash drive (WIP) - by Van Valen - 11-08-2020, 08:31 AM
RE: WiFi Usb flash drive (WIP) - by Van Valen - 11-20-2020, 09:21 AM
RE: WiFi Usb flash drive (WIP) - by satgod - 12-11-2020, 09:37 PM
RE: WiFi Usb flash drive (WIP) - by Van Valen - 01-09-2021, 10:45 PM
RE: WiFi Usb flash drive (WIP) - by tech_romancer - 09-22-2022, 05:07 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)