Commissioning a new Duet3 H6C board
-
@jens55 said in Commissioning a new Duet3 H6C board:
Please explain what you mean by this :
You can edit the "SD" mode SD card and enter just the few commands needed to get the network connection working.
I remove the SD card and connect it to my computer using a USB to SD card adapter. This device makes the SD card appear as a drive letter.
You can open it, change to the SYS folder and create/edit the config.g file to hold just the basic commands needed to allow a network connection.
Then you "eject" the SD card, remove it from the adapter, insert into the Duet (with power off), power it up and hopefully you have a network connection.
Now I use Duet WiFi boards so I don't know exactly how you configure the config.g file for a Ethernet connected Duet.
This is the way I have always started with a new Duet board and I have never had an issue or felt a need to do it any other way.
Frederick
-
I located this "bare bones" config.g file for a Duet with Ethernet connection:
; ---------------------------------------------------------------------------------------------------- ; start of file for Duet 3 6HC board ; ---------------------------------------------------------------------------------------------------- ; prolog M111 S0 ; debug off M550 P"Duet_6HC" ; set host name M555 P2 ; firmware compatibility (P2 = Marlin) M552 P0.0.0.0 S1 ; config network (P0.0.0.0 = use DHCP, S1 = enable) M586 S1 P1 T0 ; enable (S1) FTP (P1) Disable TLS (T0) M586 S1 P2 T0 ; enable (S1) Telnet (P2) Disable TLS (T0) G21 ; dimensions in mm G90 ; absolute coordinate values for X,Y,Z,etc M83 ; relateive coordinate values for E0,E1,etc M669 K0 ; set kinematic to Cartesian ; ---------------------------------------------------------------------------------------------------- ; end of file for Duet 3 6HC board ; ----------------------------------------------------------------------------------------------------
-
@fcwilt, I am getting nowhere either fast or slow
I took the SD card from my other Duet, A Duet2 wifi and tacked this on the front of the config.g file in a rare instance where it let me write to the card - normally it shows up as a read-only file system.
M111 S0 ; Debug off
G21 ; work in mm
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves; Network
M550 P"Printer 2" ; Set machine name
M552 S1 ; Enable network
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable TelnetLooks like the only thing I have different is M552 P0.0.0.0 S1
but now I can only open config.g in read-only mode. I even tried to run sudo to edit it with lo luck
How the heck can I convince the SD card to accept my changed config.g ???
Oh, I have the sd card in a microsd adapter which plugs directly into my Ubuntu laptop -
@jens55 said in Commissioning a new Duet3 H6C board:
@fcwilt, I am getting nowhere either fast or slow
I took the SD card from my other Duet, A Duet2 wifi and tacked this on the front of the config.g file in a rare instance where it let me write to the card - normally it shows up as a read-only file system.
M111 S0 ; Debug off
G21 ; work in mm
G90 ; Send absolute coordinates...
M83 ; ...but relative extruder moves; Network
M550 P"Printer 2" ; Set machine name
M552 S1 ; Enable network
M586 P0 S1 ; Enable HTTP
M586 P1 S0 ; Disable FTP
M586 P2 S0 ; Disable TelnetLooks like the only thing I have different is M552 P0.0.0.0 S1
but now I can only open config.g in read-only mode. I even tried to run sudo to edit it with lo luck
How the heck can I convince the SD card to accept my changed config.g ???
Oh, I have the sd card in a microsd adapter which plugs directly into my Ubuntu laptopWell you have to have a P parameter in M552 - either P0.0.0.0 for getting the IP address from your router or a valid address for your network. For example on the common 192.168.0.0 subnet you could try 192.168.0.254 - that that is the subnet of your network.
I've never had a problem writing to an SD card so I don't know what is going on - but I use only Windows.
Frederick
-
@fcwilt , ok, thanks, I will try different editors until I find one that will let me write (btw, the write protect on the micro sd card adapter is turned off)
-
@jens55 said in Commissioning a new Duet3 H6C board:
@fcwilt , ok, thanks, I will try different editors until I find one that will let me write (btw, the write protect on the micro sd card adapter is turned off)
You could also try creating the basic config.g on your computer and just copy it to the SYS folder on the SD card.
Frederick
-
About 8 card in/out cycles and I caught one instance when the card was writeable and I managed to get the M552 command changed ... alas, no difference - while I see a grayed out proper web page, I get a failure to connect to ..... message.
This sd card must be defective. Not only does it not mount as a read/write card in the majority of cases, but sometimes it doesn't even see both partitions on the card.
I will try and make a new SD card. About the only thing that I can see is happening is that the failure to write compromises the startup process somehow. -
Did you try re-formatting the SD card when plugged into you computer?
Frederick
-
I am officially out of patience - I can't copy all the files from the rootfs volume as I do not have enough priveledges.
@dc42, is there a complete image file someplace that I can download onto a new SD card and get this thing doing something ?
-
@fcwilt said in Commissioning a new Duet3 H6C board:
Did you try re-formatting the SD card when plugged into you computer?
Kinda doesn't help without a complete image to replace it with
-
@jens55 said in Commissioning a new Duet3 H6C board:
@fcwilt said in Commissioning a new Duet3 H6C board:
Did you try re-formatting the SD card when plugged into you computer?
Kinda doesn't help without a complete image to replace it with
What do you mean by a complete image?
When running without a SBC there is very little on the SD card - four folders with a handful of files.
I can give you what I have for a Duet3 MB6HC.
Frederick
-
@fcwilt, at the moment I am trying to set up in the standalone mode.
I am looking for an image of the SD card that is shipped with the board so I can make a new SD card.
Thanks for the offer of the files but I am looking for the complete image - there are two partitions on the card with way more than a handful of files in each partition. -
@jens55 said in Commissioning a new Duet3 H6C board:
@fcwilt, at the moment I am trying to set up in the standalone mode.
I am looking for an image of the SD card that is shipped with the board so I can make a new SD card.This is what I have for the MBH6C but I don't know if it is exactly what came with the board.
Config Files D3HC via LAN.zip.txt
It shows the folder stucture that is needed but a couple of the files seem a bit odd.
The config.g file should work for testing.
I may have the original SD card that came - I will need to look for it.
Frederick
-
@fcwilt, thank you but a straight copy of the files is highly unlikely to do the trick - remember there are two partitions on the card.
As I said before, I have officially given up on trying to somehow getting this going. The next step must be a replacement SD card, either from Filistruder, my supplier, or a disk image that I can burn to a new sd card. Hence the tagging of DC42 in a previous post so he can help me out with that.
Copying files might work or it might not. It would not be conclusive and even if it does work I can't expect all functions to work as I could with a full copy of the original sd card. -
@jens55 said in Commissioning a new Duet3 H6C board:
@fcwilt, thank you but a straight copy of the files is highly unlikely to do the trick - remember there are two partitions on the card.
As I said before, I have officially given up on trying to somehow getting this going. The next step must be a replacement SD card, either from Filistruder, my supplier, or a disk image that I can burn to a new sd card. Hence the tagging of DC42 in a previous post so he can help me out with that.
Copying files might work or it might not. It would not be conclusive and even if it does work I can't expect all functions to work as I could with a full copy of the original sd card.I should also add that a windows computer is likely to show you only one of the partitions on the card.
-
@jens55 said in Commissioning a new Duet3 H6C board:
@fcwilt, at the moment I am trying to set up in the standalone mode.
I am looking for an image of the SD card that is shipped with the board so I can make a new SD card.
Thanks for the offer of the files but I am looking for the complete image - there are two partitions on the card with way more than a handful of files in each partition.True but if you are only trying to test in SD mode you don't need most of those files.
I've setup several Duets starting with a blank SD and never needed to create multiple partitions BUT while I have an SBC I ended up not using it. I've got an SD card labeled "RASPBIAN" which I believe was for the SBC.
Frederick
-
-
Additional input: I connected via terminal. The sd card is found however a speed test doing an
M122 P104 S 50 showed a write speed of 0.51 Mbytes/sec which of course is not anywhere near the expected speedA plain M122 shows "SD card 0 detected, interface speed: 25.0 Mbytes/sec.
It also says SD card longest read time 3.2 ms, write time 208.9 msI also see a line that says "Slowest loop: 1924.12 ms; fastest: 0.05ms" .... which seems rather odd
Those are the only lines that seem kinda odd but if there is anything else I can supply I am happy to oblige.
-
Well folks, it is official, I should not be let loose on a Duet printer.
I tried another SD card, a known good card, which gave me the exact same results. This card had good test results with M122. I could ping the machine without any issues but no dice on the web page.
After a lot of head scratching, it finally dawned on me - by default I restrict what can and can not happen on my web browser. It is fairly restricted and a lot of sites do not load without me specifically telling NoScript to allow the web site. All my in-use ip addresses are white listed. Well I have never used that particular IP address so it was still being locked down
Once white listed, it loaded absolutely fine ..... GRRRRRRR ...... That's probably 6 hrs I will never get back again!So, it boils down to operator problems although I still consider the SD card defective.
As mentioned, the card contains two partitions, one that is used if the printer is direct connected and one partition that is used if the printer is connected via a pi.I would like to repeat my request for a link to an image file that I can use to recreate the original SD card as it is shipped. I would be using Balena Etcher to burn the card.
For completeness, here is the output of M122:
M122
=== Diagnostics ===
RepRapFirmware for Duet 3 MB6HC version 3.2.2 running on Duet 3 MB6HC v1.01 or later (standalone mode)
Board ID: 08DJM-9P63L-DJ3T0-6J9F0-3SN6L-TU37A
Used output buffers: 1 of 40 (16 max)
=== RTOS ===
Static ram: 149788
Dynamic ram: 92060 of which 624 recycled
Never used RAM 116360, free system stack 184 words
Tasks: NETWORK(ready,193) ETHERNET(blocked,110) HEAT(blocked,356) CanReceiv(blocked,927) CanSender(blocked,371) CanClock(blocked,352) TMC(blocked,51) MAIN(running,1105) IDLE(ready,19)
Owned mutexes:
=== Platform ===
Last reset 00:23:15 ago, cause: power up
Last software reset details not available
Error status: 0x00
Aux0 errors 0,0,0
Aux1 errors 0,0,0
MCU temperature: min 18.1, current 32.6, max 32.7
Supply voltage: min 23.8, current 23.8, max 23.9, under voltage events: 0, over voltage events: 0, power good: yes
12V rail voltage: min 12.1, current 12.1, max 12.2, under voltage events: 0
Driver 0: position 0, standstill, reads 39964, writes 14 timeouts 0, SG min/max 0/0
Driver 1: position 0, standstill, reads 39965, writes 14 timeouts 0, SG min/max 0/0
Driver 2: position 0, standstill, reads 39965, writes 14 timeouts 0, SG min/max 0/0
Driver 3: position 0, standstill, reads 39968, writes 11 timeouts 0, SG min/max 0/0
Driver 4: position 0, standstill, reads 39968, writes 11 timeouts 0, SG min/max 0/0
Driver 5: position 0, standstill, reads 39969, writes 11 timeouts 0, SG min/max 0/0
Date/time: 2021-06-28 08:02:17
Slowest loop: 20.36ms; fastest: 0.05ms
=== Storage ===
Free file entries: 10
SD card 0 detected, interface speed: 25.0MBytes/sec
SD card longest read time 3.3ms, write time 0.0ms, max retries 0
=== Move ===
DMs created 125, maxWait 0ms, bed compensation in use: none, comp offset 0.000
=== MainDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== AuxDDARing ===
Scheduled moves 0, completed moves 0, hiccups 0, stepErrors 0, LaErrors 0, Underruns [0, 0, 0], CDDA state -1
=== Heat ===
Bed heaters = -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1, chamberHeaters = -1 -1 -1 -1
=== GCodes ===
Segments left: 0
Movement lock held by null
HTTP is idle in state(s) 0
Telnet is idle in state(s) 0
File is idle in state(s) 0
USB is idle in state(s) 0
Aux is idle in state(s) 0
Trigger is idle in state(s) 0
Queue is idle in state(s) 0
LCD is idle in state(s) 0
SBC is idle in state(s) 0
Daemon is idle in state(s) 0
Aux2 is idle in state(s) 0
Autopause is idle in state(s) 0
Code queue is empty.
=== Network ===
Slowest loop: 20.53ms; fastest: 0.02ms
Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0), 0 sessions Telnet(0), 0 sessions
HTTP sessions: 1 of 8- Ethernet -
State: active
Error counts: 0 0 1 0 0
Socket states: 5 2 2 2 2 0 0 0
=== CAN ===
Messages queued 0, send timeouts 6975, received 0, lost 0, longest wait 0ms for reply type 0, free buffers 48
The output from M122 P104 is
SD read speed for 10.0Mbyte file was 0.70Mbytes/sec
SD write speed for 10.0Mbyte file was 0.56Mbytes/secPlease note that the printer is NOT configured correctly so some of the M122 results may be odd.
- Ethernet -
-
So you need to use an SBC right now?
Did you see this:
https://duet3d.dozuki.com/Wiki/SBC_Setup_for_Duet_3
Frederick