

for instance if the script is named 'myscript'. It uses wpa_supplicant priority to depict which of the two wifi's to connect to according to whether the script was passed a parameter of 'android' or not When you connect using wpa_supplicant the record of that connection is dropped into /etc/wpa_nf, going through connecting to both the main router and the phone I grabbed copies of those wpa_nf files, and dropped them into the following script (ssid and ssid passwords have been changed before posting here). do the ftp'ing, and then reset the laptop network back to the main router again. Phones wifi doesn't even have to be connected, nor data.īut that means having to disconnect my laptops network from the main home router, to set up a connection to the android. I get around 50Mb transfer speeds that way. Using FTP to transfer files to/from a shared/common folder (/mnt/sda2/ftp)įastest wifi based transfer (better for large files) is when we set the phone to be a hotspot, connect to that from Fatdog, run a ftp server on Fatdog and connect to that from the phone. Home network is a ISP media box/router that I attach to via wifi using wlan0Īndroid phone, with a FTP client installed, that has hotspot set/created/enabled. Here's a test script I've just run/tested that works for me.
