donovan6000 / M33-Fio

The ultimate OctoPrint plugin
GNU General Public License v3.0
125 stars 38 forks source link

M3D will stop on Raspberry Pi #61

Closed mdikov closed 8 years ago

mdikov commented 8 years ago

I tried several models that print without a problem on M3D default software. When I print via Octoprint on Raspberry Pi , the raft or the brim print fine than the printer will start the first layer and stop before it's done. The GCode viewer and terminal continue to send commands.

I also tried gcode generated on another Cura and the same happens.

tobiasbischoff commented 8 years ago

Yes i have that too. But it seems model independent. I can try to send the exact same gcode to the printer - first time the m3d stopps at 60%, second time it justs prints thru fine.

mdikov commented 8 years ago

Is it possible that the serial connection drops? The interesting part is that the printer seems to be responding to the commands in terminal. Maybe a firmware or gcode incompatibility?

Sent from a mobile phone

On Jan 31, 2016, at 6:15 AM, Tobias Bischoff notifications@github.com wrote:

Yes i have that too. But it seems model independent. I can try to send the exact same gcode to the printer - first time the m3d stopps at 60%, second time it justs prints thru fine.

— Reply to this email directly or view it on GitHub.

totterfree commented 8 years ago

I can confirm this same issue. I'm using the raspberry pi zero. Both the Pi and the M3D are connected to a reliable power source. The M3D is connected to the Pi via a usb hub which also has a wifi adapter connected. I have had the printer freeze on all of my prints so far. I will check for any terminal output on my next attempt

donovan6000 commented 8 years ago

I don't own or have access to a Raspberry Pi, and it's difficult for me to fix issues that I can't recreate. Can any of you provide an OctoPrint log of when this happens? It's located at ~/.octoprint/logs/octoprint.log.

tobiasbischoff commented 8 years ago

Actually it has been quite some time that this happend to me. Since i upgraded to 25 it happened once, then never again. Although i have tons of other problems with the m3d now, like skipping, not sticking to bed etc, overall bad print quality. Its that much that i'm pretty much fed up with it.

mdikov commented 8 years ago

I can provide my latest logs later in the week.

Sent from a mobile phone

On Feb 8, 2016, at 12:45 PM, Tobias Bischoff notifications@github.com wrote:

Actually it has been quite some time that this happend to me. Since i upgraded to 25 it happened once, then never again. Although i have tons of other problems with the m3d now, like skipping, not sticking to bed etc, overall bad print quality. Its that much that i'm pretty much fed up with it.

— Reply to this email directly or view it on GitHub.

donovan6000 commented 8 years ago

Make sure your using M3D Fio's latest devel build when testing this issue so I can see if it hasn't been fixed yet. You can install using OctoPrint's plugin manager by installing a plugin from the following URL: https://github.com/donovan6000/M3D-Fio/archive/devel.zip

mdikov commented 8 years ago

Here you go. I started the model and got one or two layers then just stopped. 2016-02-14 02:49:21,272 - octoprint.server - INFO - Starting OctoPrint 1.2.9 (master branch) 2016-02-14 02:49:21,335 - octoprint.plugin.core - INFO - Loading plugins from /home/pi/.octoprint/plugins, /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.9-py2.7.egg/octoprint/plugins and installed plugin packages... 2016-02-14 02:49:24,938 - octoprint.plugins.discovery - INFO - pybonjour is not installed, Zeroconf Discovery won't be available 2016-02-14 02:49:24,940 - octoprint.plugin.core - INFO - Found 17 plugin(s) providing 17 mixin implementations, 12 hook handlers 2016-02-14 02:49:25,239 - octoprint.filemanager.storage - INFO - Initializing the file metadata for /home/pi/.octoprint/uploads... 2016-02-14 02:49:25,434 - octoprint.filemanager.storage - INFO - ... file metadata for /home/pi/.octoprint/uploads initialized successfully. 2016-02-14 02:49:25,651 - octoprint.plugins.softwareupdate - INFO - Loaded version cache from disk 2016-02-14 02:49:29,419 - octoprint.util.pip - INFO - Found pip at /usr/bin/pip, version is 1.5.6 2016-02-14 02:49:29,424 - octoprint.plugin.core - INFO - Initialized 17 plugin implementation(s) 2016-02-14 02:49:29,668 - octoprint.plugin.core - INFO - 17 plugin(s) registered with the system: | Automatic Shutdown (0.1.0) = /usr/local/lib/python2.7/dist-packages/octoprint_automaticshutdown | Autoselect Plugin (0.1.0) = /usr/local/lib/python2.7/dist-packages/octoprint_autoselect | Backlash autocalibration (0.1) = /usr/local/lib/python2.7/dist-packages/octoprint_autocalibration | CuraEngine (<= 15.04) (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.9-py2.7.egg/octoprint/plugins/cura | Discovery (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.9-py2.7.egg/octoprint/plugins/discovery | DisplayProgress (0.1.0) = /usr/local/lib/python2.7/dist-packages/octoprint_displayprogress | DisplayZ (0.1.0) = /usr/local/lib/python2.7/dist-packages/octoprint_displayz | Email Notifier (0.1) = /usr/local/lib/python2.7/dist-packages/octoprint_emailnotifier | M3D Fio (0.26) = /usr/local/lib/python2.7/dist-packages/octoprint_m3dfio | Plugin Manager (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.9-py2.7.egg/octoprint/plugins/pluginmanager | Print History Plugin (0.9) = /home/pi/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint_printhistory | Printer Stats (1.0.0) = /usr/local/lib/python2.7/dist-packages/octoprint_stats | Slack (0.2.1) = /usr/local/lib/python2.7/dist-packages/octoprint_slack | Software Update (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.9-py2.7.egg/octoprint/plugins/softwareupdate | STL Viewer (0.3.1) = /usr/local/lib/python2.7/dist-packages/octoprint_stlviewer | TouchUI (0.3.1) = /usr/local/lib/python2.7/dist-packages/octoprint_touchui | Virtual Printer (bundled) = /home/pi/OctoPrint/venv/lib/python2.7/site-packages/OctoPrint-1.2.9-py2.7.egg/octoprint/plugins/virtual_printer 2016-02-14 02:49:29,672 - octoprint.filemanager - INFO - Adding backlog items from all storage types to analysis queue... 2016-02-14 02:49:29,779 - octoprint.filemanager - INFO - Added 2 items from storage type "local" to analysis queue 2016-02-14 02:49:29,780 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/webassets... 2016-02-14 02:49:29,810 - octoprint.server - INFO - Reset webasset folder /home/pi/.octoprint/generated/.webassets-cache... 2016-02-14 02:49:38,042 - octoprint.plugins.pluginmanager - INFO - Loaded plugin repository data from disk, was still valid 2016-02-14 02:49:38,071 - octoprint.server - INFO - Listening on http://0.0.0.0:5000 2016-02-14 02:49:38,072 - octoprint.plugins.discovery - INFO - Registered OctoPrint instance "Misho's OctoPi" for SSDP 2016-02-14 02:49:38,321 - octoprint.plugins.stats - INFO - Printer Stats 2016-02-14 02:49:38,427 - octoprint.plugins.stlviewer - INFO - STL Viewer loaded! 2016-02-14 02:49:38,462 - octoprint.server - INFO - Preemptively caching / for {'query_string': 'l10n=en', 'path': '/', 'base_url': 'http://octopi/'} 2016-02-14 02:49:42,802 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.239 2016-02-14 02:55:23,812 - octoprint.server.util.sockjs - INFO - Client connection closed: 192.168.1.239 2016-02-14 02:55:29,415 - octoprint.server.util.sockjs - INFO - New connection from client: 192.168.1.239 2016-02-14 02:55:50,466 - octoprint.plugin - ERROR - Error while calling plugin stats Traceback (most recent call last): File "/home/pi/OctoPrint/venv/local/lib/python2.7/site-packages/OctoPrint-1.2.9-py2.7.egg/octoprint/plugin/init.py", line 204, in call_plugin result = getattr(plugin, method)(_args, _kwargs) File "/usr/local/lib/python2.7/dist-packages/octoprint_stats/init.py", line 450, in on_event sql = "INSERT INTO print_started (event_time, file, origin, bed_target, tool0_target, tool1_target) VALUES ('%s', '%s', '%s', %f, %f, %f)" % (datetime.datetime.today(), file, origin, bed_target, tool0_target, tool1_target) TypeError: a float is required 2016-02-14 02:55:50,489 - octoprint.plugins.slack - ERROR - Slack Webhook URL not set! Traceback (most recent call last): File "/home/pi/OctoPrint/venv/local/lib/python2.7/site-packages/OctoPrint-1.2.9-py2.7.egg/octoprint/plugin/init.py", line 204, in call_plugin result = getattr(plugin, method)(_args, _kwargs) File "/usr/local/lib/python2.7/dist-packages/octoprint_stats/init.py", line 450, in on_event sql = "INSERT INTO print_started (event_time, file, origin, bed_target, tool0_target, tool1_target) VALUES ('%s', '%s', '%s', %f, %f, %f)" % (datetime.datetime.today(), file, origin, bed_target, tool0_target, tool1_target) TypeError: a float is required

mdikov commented 8 years ago

Also to confirm I upgraded to 0.26 from the develop branch.

Here is what comes out of the terminal:

Recv: ok 1274 Send: N1275 G1 X60.799934 Y55.368109 Z0.366256 E60.24752120 Recv: ok 1275 Send: N1276 G1 X61.582902 Y57.208478 Z0.372373 E60.27662426 Recv: ok 1276 Send: N1277 G1 X62.431028 Y59.202000 Z0.378975 E60.3081537 Recv: ok 1277 Send: N1278 G1 X62.365 Y58.195 E60.31230111 Recv: ok 1278 Send: N1279 G1 X62.711028 Y58.195000 Z0.375589 E60.31230 F780113 Recv: ok 1279 Send: N1280 G1 X62.365 Y43.770 E60.52221_106 Recv: ok 1280 Send: N1281 G1 X62.711028 Y54.195000 Z0.344275 E60.37050716 Recv: ok 1281 Send: N1282 G1 X62.711028 Y52.195000 Z0.328618 E60.39961119 Recv: ok 1282 Send: N1283 G1 X62.711028 Y50.195000 Z0.312962 E60.42871519 Recv: ok 1283 Send: N1284 G1 X62.711028 Y48.195000 Z0.297305 E60.45781816 Recv: ok 1284 Send: N1285 G1 X62.711028 Y46.195000 Z0.281648 E60.48692216 Recv: ok 1285 Send: N1286 G1 X62.711028 Y43.770000 Z0.262664 E60.5222145 Recv: T:208.9900 Recv: ok 1286 Send: N1287 G1 X67.465 Y43.770 E60.59642_101 Recv: ok 1287 Send: N1288 G1 X67.811028 Y43.770000 Z0.208668 E60.5964235 Recv: ok 1288 Send: N1289 G0 F3000 X66.528 Y44.592126 Recv: ok 1289 Send: N1290 G0 X66.528000 Y45.542000 Z0.225023 F300048 Recv: ok 1290 Send: N1291 G1 F780 X63.187 Y47.934 E60.66518_60 Recv: ok 1291 Send: N1292 G1 X63.187000 Y48.884000 Z0.286559 E60.66518 F780113 Recv: ok 1292 Send: N1293 G0 F3000 X63.187 Y48.429_124 Recv: ok 1293 Send: N1294 G1 F780 X66.641 Y44.975 E60.73626_61 Recv: T:215.0885 Recv: ok 1294 Send: N1295 G1 X64.947242 Y47.014786 Z0.264390 E60.694283 F78071 Recv: ok 1295 Send: N1296 G1 X66.987028 Y44.975000 Z0.226825 E60.73626 F780119 Recv: ok 1296 Send: N1297 G0 F3000 X66.641 Y45.470_113 Recv: ok 1297 Send: N1298 G0 X66.987028 Y46.420000 Z0.230700 F300063 Recv: ok 1298 Send: N1299 G1 F780 X63.187 Y48.924 E60.8073462 Recv: ok 1299 Send: N1300 G1 X65.226786 Y47.834214 Z0.256744 E60.765363 F78066 Recv: T:208.9900 Recv: ok 1300 Send: N1301 G1 X63.187000 Y49.874000 Z0.294309 E60.80734 F780112 Recv: ok 1301 Send: N1302 G0 F3000 X63.187 Y49.419_119 Recv: ok 1302 Send: N1303 M105_22 Recv: ok 1303 Send: N1304 G1 F780 X66.641 Y45.965 E60.8784250 Recv: ok 1304 Send: N1305 G1 X64.947242 Y48.004786 Z0.272140 E60.836443 F78069 Recv: ok 1305 Send: N1306 G1 X66.987028 Y45.965000 Z0.234575 E60.87842 F780*115 Recv: ok 1306 Send: N1307 G0 F3000 X66.641 Y46.460123 Recv: ok 1307 Send: N1308 G0 X66.987028 Y47.410000 Z0.238450 F3000**59 Recv: ok 1308 Send: N1309 G1 F780 X63.187 Y49.914 E60.94950_61 Recv: ok 1309 Send: N1310 G1 X65.226786 Y48.824214 Z0.264494 E60.907523 F78074 Recv: ok 1310 Send: N1311 G1 X63.187000 Y50.864000 Z0.302059 E60.94950 F780121 Recv: ok 1311 Send: N1312 G0 F3000 X63.187 Y50.409_127 Recv: ok 1312 Send: N1313 G1 F780 X66.641 Y46.955 E61.02057_52 Recv: ok 1313 Send: N1314 G1 X64.947242 Y48.994786 Z0.279890 E60.978599 F78071 Recv: ok 1314 Send: N1315 G1 X66.987028 Y46.955000 Z0.242325 E61.02057 F780115 Recv: ok 1315 Send: N1316 G0 F3000 X66.641 Y47.450_121 Recv: ok 1316 Send: N1317 G0 X66.987028 Y48.400000 Z0.246200 F300049 Recv: ok 1317 Send: N1318 G1 F780 X63.187 Y50.904 E61.0916563 Recv: T:208.9900 Recv: ok 1318 Send: N1319 G1 X65.226786 Y49.814214 Z0.272244 E61.049673 F78073 Recv: ok 1319 Send: N1320 G1 X63.187000 Y51.854000 Z0.309809 E61.09165 F780116 Recv: ok 1320 Send: N1321 G0 F3000 X63.187 Y51.399_112 Recv: ok 1321 Send: N1322 G1 F780 X66.641 Y47.945 E61.16273_55 Recv: ok 1322 Send: N1323 G1 X64.947242 Y49.984786 Z0.287640 E61.120753 F78065 Recv: ok 1323 Send: N1324 G1 X66.987028 Y47.945000 Z0.250075 E61.16273 F780117 Recv: ok 1324 Send: N1325 G0 F3000 X66.641 Y48.440119 Recv: ok 1325 Send: N1326 G0 X66.987028 Y49.390000 Z0.253950 F300054 Recv: ok 1326 Send: N1327 G1 F780 X63.187 Y51.894 E61.23381_58 Recv: T:215.0885 Recv: ok 1327 Send: N1328 G1 X65.226786 Y50.804214 Z0.279994 E61.191833 F78065 Recv: ok 1328 Send: N1329 G1 X63.187000 Y52.844000 Z0.317559 E61.23381 F780120 Recv: ok 1329 Send: N1330 G0 F3000 X63.187 Y52.389_114 Recv: ok 1330 Send: N1331 G1 F780 X66.641 Y48.935 E61.30489_58 Recv: ok 1331 Send: N1332 G1 X64.947242 Y50.974786 Z0.295390 E61.262913 F78066 Recv: ok 1332 Send: N1333 G1 X66.987028 Y48.935000 Z0.257825 E61.30489 F780118 Recv: ok 1333 Send: N1334 G0 F3000 X66.641 Y49.430_113 Recv: ok 1334 Send: N1335 G0 X66.987028 Y50.380000 Z0.261700 F300055 Recv: ok 1335 Send: N1336 G1 F780 X63.187 Y52.884 E61.3759760 Recv: ok 1336 Send: N1337 G1 X65.226786 Y51.794214 Z0.287744 E61.333993 F78075 Recv: T:208.9900 Recv: ok 1337 Send: N1338 G1 X63.187000 Y53.834000 Z0.325309 E61.37597 F780120 Recv: ok 1338 Send: N1339 G0 F3000 X63.187 Y53.379_117 Recv: ok 1339 Send: N1340 G1 F780 X66.641 Y49.925 E61.44705_56 Recv: ok 1340 Send: N1341 G1 X64.947242 Y51.964786 Z0.303140 E61.405073 F78079 Recv: ok 1341 Send: N1342 G1 X66.987028 Y49.925000 Z0.265575 E61.44705 F780125 Recv: ok 1342 Send: N1343 G0 F3000 X66.641 Y50.420120 Recv: ok 1343 Send: N1344 G0 X66.987028 Y51.370000 Z0.269450 F300049 Recv: ok 1344 Send: N1345 G1 F780 X63.187 Y53.874 E61.51813_55 Recv: ok 1345 Send: N1346 G1 X65.226786 Y52.784214 Z0.295495 E61.476153 F78065 Recv: T:215.0885 Recv: ok 1346 Send: N1347 G1 X63.187000 Y54.824000 Z0.333059 E61.51813 F780118 Recv: ok 1347 Send: N1348 M105_25 Recv: T:208.9900 Recv: ok 1348 Send: N1349 G0 F3000 X63.187 Y54.369_116 Recv: ok 1349 Send: N1350 G1 F780 X66.641 Y50.915 E61.58920_54 Recv: ok 1350 Send: N1351 G1 X64.947242 Y52.954786 Z0.310890 E61.547229 F78066 Recv: ok 1351 Send: N1352 G1 X66.987028 Y50.915000 Z0.273326 E61.58920 F780116 Recv: ok 1352 Send: N1353 G0 F3000 X66.641 Y51.410_123 Recv: ok 1353 Send: N1354 G0 X66.987028 Y52.360000 Z0.277201 F300063 Recv: ok 1354 Send: N1355 G1 F780 X63.187 Y54.864 E61.66028_52 Recv: ok 1355 Send: N1356 G1 X65.226786 Y53.774214 Z0.303245 E61.618303 F78070 Recv: ok 1356 Send: N1357 G1 X63.187000 Y55.814000 Z0.340809 E61.66028 F780120 Recv: ok 1357 Send: N1358 G0 F3000 X63.187 Y55.359_118 Recv: ok 1358 Send: N1359 G1 F780 X66.641 Y51.905 E61.73136_57 Recv: ok 1359 Send: N1360 G1 X64.947242 Y53.944786 Z0.318640 E61.689383 F78075 Recv: ok 1360 Send: N1361 G1 X66.987028 Y51.905000 Z0.281076 E61.73136 F780121 Recv: ok 1361 Send: N1362 G0 F3000 X66.641 Y52.400_123 Recv: ok 1362 Send: N1363 G0 X66.987028 Y53.350000 Z0.284951 F3000__59 Recv: ok 1363 Send: N1364 G1 F780 X63.187 Y55.854 E61.80244_52 Recv: T:215.0885 Recv: ok 1364 Send: N1365 G1 X65.226786 Y54.764214 Z0.310995 E61.760463 F78075 Recv: ok 1365 Send: N1366 G1 X63.187000 Y56.804000 Z0.348559 E61.80244 F780120 Recv: ok 1366 Send: N1367 M117 [ ] 1%%*32 Recv: e1 Recv: T:208.9900 Recv: wait

=============this is where it stops ============ Send: N1368 G0 F3000 X63.187 Y56.349*119 Recv: T:208.4817 Recv: wait Recv: T:215.8991 Recv: wait Recv: T:215.8991 Recv: wait Recv: T:215.8991 Recv: wait

On Sat, Feb 13, 2016 at 5:46 PM, Mikhail Dikov mdikov@gmail.com wrote:

Here you go. I started the model and got one or two layers then just stopped.

On Tue, Feb 9, 2016 at 2:04 AM, donovan6000 notifications@github.com wrote:

Make sure your using M3D Fio's latest devel build https://github.com/donovan6000/M3D-Fio/tree/devel when testing this issue so I can see if it hasn't been fixed yet. You can install using OctoPrint's plugin manager by installing a plugin from the following URL: https://github.com/donovan6000/M3D-Fio/archive/devel.zip

— Reply to this email directly or view it on GitHub https://github.com/donovan6000/M3D-Fio/issues/61#issuecomment-181793481 .

donovan6000 commented 8 years ago

@mdikov The problem is that the M117 command is used to display stuff on an LCD screen, and M3D's firmware doesn't recognize that command so it returns an error, e1. M3D Fio waits for an 'ok' response before sending the next command, so it's never able to send the next command which causes the print to stop.

The latest change to the devel branch adds M117 to list of commands that M3D Fio's validation pre-processor removes, so it should be able to print now.

mdikov commented 8 years ago

Great. I'll check it out.

Just curious why would cura add this command? Perhaps there's a way turn this off in the cura profile.

Sent from a mobile phone

On Feb 14, 2016, at 12:37 AM, donovan6000 notifications@github.com wrote:

@mdikov The problem is that the M117 command is used to display stuff on an LCD screen, and M3D's firmware doesn't recognize that command so it returns an error, e1. M3D Fio waits for an 'ok' response before sending the next command, so it's never able to send the next command which causes the print to stop.

The latest change to the devel branch adds M117 to list of commands that M3D Fio's validation pre-processor removes, so it should be able to print now.

— Reply to this email directly or view it on GitHub.

donovan6000 commented 8 years ago

@mdikov The M117 command is probably in the Cura profile's start or end G-code, which is why it gets added in.

mdikov commented 8 years ago

Thank you @donovan6000! Works great now.