Solved How does one set up a Duet3D 6HC with RPi4 to wifi?
-
@Jim46 could be the wifi country option isn't set, preventing wpa_supplicant running, should be an option for that in raspi-config, but i think it only works to change the country, not add it, try it if you find it.
If not, I think the following may work, copy and paste the below into putty
cat << EOF | sudo tee /etc/wpa_supplicant/wpa_supplicant.conf > /dev/null ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US EOF sudo systemctl restart wpa_supplicant.service
and press enter after. Then run
sudo raspi-config
again, if it still fails you may have to reboot the pi after making the country change. runningsudo reboot
and reconnecting after 30 seconds or so should take care of it)edit: for future ref i think this worked after all - but i also think it may need some foolproofing. But should ask for SSID and Passphrase, then output the correct file (for the US) with the encrypted passphrase.
read -p "Enter SSID: " SSID && read -p "Enter passphrase: " PASS && cat << EOF | sudo tee /etc/wpa_supplicant/wpa_supplicant.conf > /dev/null && ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=US EOF wpa_passphrase "$SSID" "$PASS" | grep -v $PASS | sudo tee -a /etc/wpa_supplicant/wpa_supplicant.conf > /dev/null && sudo rfkill unblock wifi && sudo systemctl restart wpa_supplicant.service && wpa_cli -i wlan0 reconfigure
(but I still suspect a reboot after is needed)
edit2: seems there is something that causes raspi-config to fail with the DuetPi image, a clean vanilla Raspbian image will first ask for Wifi country then SSID/passphrase. might do some more poking.
-
Hi Bearer, I just ran your suggestions including the reboot and it worked! Thanks so much!
Jim -
Goodie! Wasn't quite sure how well the code would copy/paste, but a little luck is always a fine substitute for careful planning and testing:)
-
@chrishamm might want to consider rebuilding the DuetPi image without a default wpa_supplicant.conf on /boot, or at the very least rename it to wpa_supplicant.conf.sample or something as it currently breaks raspi-config's ability to setup wifi if the user boots the card without editing the file first. It would also potentially violate the wifi regulations as the country is set to GB.
Maybe its possible to keep the file as wpa_supplicant.conf with parts commented out but not sure that'll work or be any more helpfull.
-
Hello All,
I installed the motors on the frame and tried to run the same test as on the bench. The x axis work well. Both the Y and Z dual motor axes ran into trouble. It seems I had best drives slip. Have to check that and also make sure the motors are moving in the same direction.
Cheers
Jim -
@Jim46 said in How does one set up a Duet3D 6HC with RPi4 to wifi?:
Have to check that and also make sure the motors are moving in the same direction.
given the lack of standards with respect to colour coding motor wiring it could be they theoretically move opposite even if it looks like they're wired the same.
the easiest way to reverse the direction if needed is to
addfor the relevant axis. (ed: changeR1
to theM569
lineS0
toS1
and vice versa in the relevantM569
line) -
Hi Bearer,
Currently, it says, e.g.,
M569 P2 S1... (Y1 motor) physical drive 2 goes forward
M569 P3 S1... (Y2 motor) Physical drive 3 goes forwardthe motors now face away from each other on the Y axis
so is it right to set up the P3 as follows
M569 P2 R1 ????
Thanks,
Jim -
Changing S1 to S0 changes the motor direction.
-
Thanks you so much, I reset it as
M569 P2 S1... (Y1 motor) physical drive 2 goes forward
M569 P3 S0... (Y2 motor) Physical drive 3 goes reverse
M569 P4 S1... (Z1 motor) physical drive 4 goes forward
M569 P5 S0... (Z2 motor) Physical drive 5 goes reversealso used dual M584 lines x and Y and next line for Z and E
It is installed in the printer framce and it works! Thanks again!
Next is to design the extrustion head and design something to print out as a test. -
BTW, how does one mark a thread "SOLVED"?
-
There's an option to set ask a question bottom right. You can then mark it solved
-
@Jim46 said in How does one set up a Duet3D 6HC with RPi4 to wifi?:
M569 P2 R1 ????
My bad! Jay corrected it thankfully - too bad I didn't see it earlier, one of the issues I've found myself dealing with earlier (today)..
-
Hmmm, not sure what happened, it seemed to mark it "unsolved". How do you change it to solved?
-
@Jim46 said in How does one set up a Duet3D 6HC with RPi4 to wifi?:
How do you change it to solved?
FIrst it has to be asked as a question, then it changes to mark as solved.
-
How does one set up a Duet3D 6HC with RPi4 to wifi?