prerequisites before installing the plugin
Important information
- you need to have octoprint version 1.3.11
- you must print one of the proposed box, it is intended to solidify the whole and avoid USB disconnection of the module
1) Login in ssh to your PI
2) Install the python gpio library
enter the following command:
~/oprint/bin/pip install RPi.GPIO
3) install the parted binary
enter the following command (the password will be asked, if you are asked a question press y then enter):
sudo apt-get install parted
4) add permissions
enter the following command:
sudo visudo
add the following line at the end of the file:
pi ALL=NOPASSWD:/bin/mount,/bin/umount,/sbin/mkfs.fat,/sbin/parted
Now save the change, for that do:
CTRL + X and press the enter key
5) restart your PI
enter the following command:
sudo shutdown -r now
6) You can now install the plugin on octoprint
7) after installing and restarting your PI, test the module:
Marlin minimal configuration
the module works with SD to micro SD card extensions, the automatic detection of the SD card must be deactivated in marlin, for this change the value of the detection pin
define SD_DETECT_PIN -1
Problems and solutions
Module not found
1) Check the connection between the PI (usb) and the module
2) UnPlug/plug the SD card from the module
3) UnPlug/plug the microsd adapter to usb, UnPlug/plugt the micro extension sd to the adapter, and then reconnect the adapter to the usb of the pi
4) Try to change the usb port for the adapter
Note: the micro extension sd must always be connected to the adapter before it is connected to the usb of the pi
If you disconnect the extension from the adapter, please unplug/plug it
If all the above points do not work:
5) Login in ssh to your PI:
enter the following command:
python2.7 /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_sdswitchfastcopy/getSD.py
then run the following command:
ls /dev/sd*
if you only see /dev/sda (this can be sda, sdb, sdc ...)
restart the ls command several times, check your cabling, if you still do not see /dev/sda1 (sda1, sdb1 ...), run the following command:
sudo parted -s /dev/sda print
then the ls command again:
ls /dev/sd*
if there is still no /dev/sda1 (sda1, sdb1 ...) contact hotends.fr, but your micro sd adapter to usb (if you have changed) or your sd card may not be compatible .
if you see /dev/sda1 (sda1, sdb1 ...) execute the following commands (if the mkdir command returns an error it is not a problem).
Warning you must adapt the command according to the return of ls, if you get a sdb1, sdc1... replace it in the command:
mkdir /home/pi/sdswitch sudo mount -o uid=pi,gid=pi /dev/sda1 /home/pi/sdswitch
if the mount command works, run the following command:
Warning you must adapt the command according to the return of ls, if you get a sdb1, sdc1 .. replace it in the command:
sudo umount /dev/sda1
then run the following command:
python2.7 /home/pi/oprint/local/lib/python2.7/site-packages/octoprint_sdswitchfastcopy/freeSD.py
Now retry the test button on octoprint.
if you encounter a problem contact hotends.fr
File creation failure
- SD card corrupted, or incompatible sd card, or incompatible micro SD to USB adapter
- You can try to format the card via the module, if it does not work use the program sd formatter (download software)
File deletion failure
- SD card corrupted, or incompatible sd card, or incompatible micro SD to USB adapter
- You can try to format the card via the module, if it does not work use the program sd formatter (download software)
Failed to return the sd to the printer
- incompatible sd card, or incompatible micro sd to usb adapter
Failed to copy the file to the sd card
- incompatible sd card, or incompatible micro sd to usb adapter
- You can try to format the card via the module, if it does not work use the program sd formatter (download software)
Format SD: failed release SD card
- incompatible sd card, or incompatible micro sd to usb adapter
Test: failed release SD card
- incompatible sd card, or incompatible micro sd to usb adapter
SD card compatible (mainboard 32B)
SD card compatible
- different SD cards can be compatible