====== Octopi ====== ===== Picam ===== ==== Configuration MJPEG ==== Modification de la résolution via le fichier : ''/boot/octopi.txt'' camera_raspi_options="-x 320 -y 240 -fps 10 -quality 80" # Pas mieux pour passer par le wifi :(( -> compression MJPEG de merde! Quelques exemples de conf : [[https://github.com/PrusaMK2Users/MK2_Tips_and_Tricks/wiki/OctoPrint-Webcam-Setup|https://github.com/PrusaMK2Users/MK2_Tips_and_Tricks/wiki/OctoPrint-Webcam-Setup]] Puis redémarrer webcamd : ''sudo service webcamd restart'' Toutes les résolutions possibles : {{:electronique:impression_3d:fabrication_prusa:hardware_upgrade_octoprint:selection_628.png?nolink&}} //Source : [[http://picamera.readthedocs.io/en/release-1.12/fov.html|Lien]]// \\ \\ Compression h264 possible ?? : [[http://lektiondestages.blogspot.com/2016/12/stream-hardware-encoded-h264-video-from.html|http://lektiondestages.blogspot.com/2016/12/stream-hardware-encoded-h264-video-from.html]] ==== Installation ==== Support à imprimer : [[https://www.thingiverse.com/thing:2875976/files|https://www.thingiverse.com/thing:2875976/files]] ===== Plugins ===== Preheat button\\ Eeprom marlin editor\\ Print History\\ Psu Control → [[https://youtu.be/dQNBeAZpRmk|https://youtu.be/dQNBeAZpRmk]] ===== Picam ===== ==== Configuration MJPEG ==== Modification de la résolution via le fichier : ''/boot/octopi.txt'' camera_raspi_options="-x 320 -y 240 -fps 10 -quality 80" # Pas mieux pour passer par le wifi :(( -> compression MJPEG de merde! Quelques exemples de conf : [[https://github.com/PrusaMK2Users/MK2_Tips_and_Tricks/wiki/OctoPrint-Webcam-Setup|https://github.com/PrusaMK2Users/MK2_Tips_and_Tricks/wiki/OctoPrint-Webcam-Setup]] Puis redémarrer webcamd : ''sudo service webcamd restart'' Toutes les résolutions possibles : {{:electronique:impression_3d:fabrication_prusa:hardware_upgrade_octoprint:selection_628.png?nolink&}} //Source : [[http://picamera.readthedocs.io/en/release-1.12/fov.html|Lien]]// \\ \\ Compression h264 possible ?? : [[http://lektiondestages.blogspot.com/2016/12/stream-hardware-encoded-h264-video-from.html|http://lektiondestages.blogspot.com/2016/12/stream-hardware-encoded-h264-video-from.html]] ==== Installation ==== Support à imprimer : [[https://www.thingiverse.com/thing:2875976/files|https://www.thingiverse.com/thing:2875976/files]] ===== Plugins ===== Preheat button\\ Eeprom marlin editor\\ Print History\\ Psu Control → [[https://youtu.be/dQNBeAZpRmk|https://youtu.be/dQNBeAZpRmk]] ===== Bug Report ===== ==== Déconnection uart usb controller ==== [Fri Aug 24 02:46:43 2018] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32 [Fri Aug 24 02:46:43 2018] ch341-uart ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32 [Fri Aug 24 02:46:44 2018] usb 1-1.3: USB disconnect, device number 4 [Fri Aug 24 02:46:44 2018] usb 1-1.3: failed to send control message: -19 [Fri Aug 24 02:46:44 2018] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0 [Fri Aug 24 02:46:44 2018] ch341 1-1.3:1.0: device disconnected [Fri Aug 24 02:46:44 2018] usb 1-1.3: new full-speed USB device number 5 using dwc_otg [Fri Aug 24 02:46:44 2018] usb 1-1.3: New USB device found, idVendor=1a86, idProduct=7523 [Fri Aug 24 02:46:44 2018] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [Fri Aug 24 02:46:44 2018] usb 1-1.3: Product: USB2.0-Serial [Fri Aug 24 02:46:44 2018] ch341 1-1.3:1.0: ch341-uart converter detected [Fri Aug 24 02:46:44 2018] usb 1-1.3: ch341-uart converter now attached to ttyUSB0 Voir [[https://github.com/raspberrypi/linux/issues/1187|https://github.com/raspberrypi/linux/issues/1187]]\\ La diminution du baud rate : **KO**\\ Limit USB speed to full speed 12Mbps (USB 1.1) : dans ''/boot/cmdline.txt'' valeur ''dwc_otg.speed=''''1'' → Passage en usb1.1 : **KO** [Wed Aug 29 19:19:11 2018] usb 1-1.5: USB disconnect, device number 4 [Wed Aug 29 19:19:11 2018] usb 1-1.5: failed to send control message: -19 [Wed Aug 29 19:19:11 2018] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0 [Wed Aug 29 19:19:11 2018] ch341 1-1.5:1.0: device disconnected [Wed Aug 29 19:19:11 2018] usb 1-1.5: new full-speed USB device number 5 using dwc_otg [Wed Aug 29 19:19:11 2018] usb 1-1.5: New USB device found, idVendor=1a86, idProduct=7523 [Wed Aug 29 19:19:11 2018] usb 1-1.5: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [Wed Aug 29 19:19:11 2018] usb 1-1.5: Product: USB2.0-Serial [Wed Aug 29 19:19:11 2018] ch341 1-1.5:1.0: ch341-uart converter detected [Wed Aug 29 19:19:11 2018] usb 1-1.5: ch341-uart converter now attached to ttyUS0 D'autres pistes à creuser : * Pas certain que le Rpi soit en cause pour ce cas. A voir pour tester une autre carte arduino → Chip CH340G foireux? * Voir si mon relais de plateau ne balance pas trop de cochonneries (à mesurer donc et mettre un Snubber pour corriger si nécessaire) : [[https://youtu.be/fVuKh_1dVkU|Cyrob - Snubber ]] \\ Suite au remplacement par un arduino officiel : plus de soucis. Fort probable que le CH340G soit une merguez. \\ ~~socialite~~