web server dying
-
Happened again.
@dc42 any hint on how to fetch some debug info? I tried M122 from the console on the paneldue when web died but output was not scrolling to record it. Telnet is off attm.
-
M111 for debug
-
@bearer said in web server dying:
M111 for debug
cool, I did
Debugging enabled for modules: Network(1) Webserver(2)
now when the webserver becomes inaccessible, how to get the debug data?
-
hooked up my usb isolator, attached to usb serial, putty logging what's coming out of it .. let's hope this will catch some useful data
-
@arhi said in web server dying:
how to get the debug data?
not sure if its only usb or paneldue port as well, usb for sure. (it'll just print its debug stuff as it happens, so at best you get the last actions and M122 after restetting will give you some stack pointer stuff iirc)
-
@bearer I hooked up the isolator and attached usb of the duet to my main desktop, it's logging now, nothing interesting in the log so far but it never died during print, just after few consecutive short prints (I'm trying to tune in damn stringing for petg and 0.6mm nozzle and after 20 prints and some superbly hard settings it's still stringing, so i'm printing a whole bunch of 5min prints one after another and the web just dies between them fromt ime to time)
-
@arhi sorry, i read isolator and my mind jumped to ttl. anwyays, after the crash the following section from m122 would be relevant to dc42 or anyone else that would decode the mythical stack dump
=== Platform ===
Last reset 00:00:39 ago, cause: software
Last software reset at 2020-05-04 06:13, reason: User, spinning module GCodes, available RAM 8860 bytes (slot 0) Software reset code 0x0003 HFSR 0x00000000 CFSR 0x00000000 ICSR 0x0441f000 BFAR 0xe000ed38 SP 0xffffffff Task 0x4e49414d
-
@bearer said in web server dying:
i read isolator and my mind jumped to ttl.
I don't connect stuff to usb lightly
... normally I plug some orange pi or something in but this was the fastest way attm and risking 30V on my usb connector on 5keur computer motherboard ain't gonna happen so usb isolator is a go
.. these adum boards are great, you do have to manually set the usb speed but since most of the boards I use are full speed anyhow I don't remember last time I touched the jumpers
Back to the issue at hand, darn thing won't die now
.. 4 string tests done and it's still working ok ?!?!? I just hope it's not one of those bugs one cannot reproduce with debug build, I hate those with all my heart
-
Amen, amen and amen. (I think mine has a dip switch, but yeah, long since forgotten what it does:)
-
@bearer
switch between "low speed and full speed", mine is marked L and F (low is 1.5MHz, full is 12MHz and high is 480MHz). I don't have any high speed isolators but I don't have many 3rd party self powered boards using 480MHz so no worries there :D. Duet works on "full speed" (12MHz) settings. Ideally these isolators should detect and auto configure but those are rather expensive, so these with manual selection are more than enough for me :)... I'm waiting for my nest big order from digkey/mouser to add some adum's there as few months ago I decided I'll actually add isolation on all the usb devices I design myself
Back to the topic, darn thing still works !!! Died 3 times yesterday inside an hour, and 3 or 4 times today inside 2 hours and now, since I posted to forum and setup debug works like a clock ...