Solved Struggling to connect to new board
I'm struggling to connect to my board (duet3HC) through the web interface. The board light blinks constantly to say everything is fine, but I can't get it to actually be given an ip by the network by the looks of it.
I've attached a copy of the whole sd card in case I've set something up wrong (https://easyupload.io/7lj3mw).
The section of the config.g that relates to the network is:
; Network M552 P0.0.0.0 S1 ; enable network and set IP address M553 P255.255.255.0 ; set netmask M554 P192.168.1.11 ; set gateway M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet
To the best of my knowledge, it's not being allocated an IP. I've scanned the network before and after booting up and no new devices have been allocated.
I've also tried setting the IP manually, and still get the same issue.
Note: the default gateway is 1.11, that's not a typo
If anyone could be so kind as to point me in the right direction to troubleshoot this it would be great as I'm at a loss currently
Many thanks in advance!
If you're trying to use dhcp (M552 P0.0.0.0) you shouldn't set the mask and gateay (M553 and M554) that will be set by the first M552 and dhcp.
see https://duet3d.dozuki.com/Guide/1.)+Getting+Connected+to+your+Duet/7#s9 for how to set up and verify the address using the usb/serial terminal.
Ah fair enough. I'll read that link, thanks
I would set a machine name using M550.
If network IS connecting but not assigning an IP address that you think it is, you can still find the machine by pinging it from Windows command prompt using "ping machine name" .... It will print the IP address and response time if it is on the network. If not then you have at least a clue that its not seen.
Will try that now thanks. I'm having no luck connecting via usb either at the moment
if the start of the getting connected guide doesn't help with USB please see https://duet3d.dozuki.com/Wiki/What_to_do_if_your_Duet_won't_respond
Tried pinging the machine name directly with no luck.
The pc recognises the usb device and even says "setting up duet", but it wont let me manually change the driver to the one specified in the first link, it just says "windows already has the best driver installed" when I try to manually select it.
I've tried connecting through pronterface which sees the new COM connection, but I get an "access is denied" when connecting, even though I'm running pronterface as administrator.
I'll check out that latest link now though
If you get a com port you don't need to change drivers. If you get access denied it could be another program is already accessing the port?
TKWARD last edited by TKWARD
I would follow @bearer advice ..... Use YAT as per the guide ..... Also, before following that guide run M588 S"*" to delete any saved networks ....... it will save confusion later on.
I cant run M558 until I can connect to the board though? or do you mean just put it in the config?
Will try YAT now though
Once you get YAT connected you can run the M588 S"*" first.
Then follow the getting connected guide.
Another thought .... your WiFI network ... Does it allocate DHCP addresses ? or expect static IP addresses ?
If DHCP... then use the M550 machine name command, and let it auto allocate the IP address ( don't try to specify one ).
You can then ping it in command prompt with : ping machine name.
@bearer Missed that bit ..... DOH!!
Using windows 10,
the router allocates DHCP that this is plugged into (ethernet, not wifi)
I've got YAT setup now, but it seems that something else immediately connects to the board and takes up the com slot since I get this as soon as its plugged in (in use by another application)
I'm going to restart the pc and see if that changes
EDIT: Restarting pc freed up the com port. M115 returns the firmware, so some progress at last!
EDIT2: M552 returns ethernet is disabled... I'm guessing I have something missing in my config then ?
Maybe confirm the Duet can read the SD card?
What do you get if you run
M20 P"/"in the terminal?
@Asdasd1234 Here's your config.g
; Configuration file for Duet 3 (firmware version 3) ; executed by the firmware on start-up ; ; generated by RepRapFirmware Configuration Tool v2.1.8 on Sun Mar 01 2020 11:41:32 GMT+0000 (Greenwich Mean Time) ; General preferences G90 ; send absolute coordinates... M83 ; ...but relative extruder moves M550 P"DuetCNC" ; set printer name ; Network M552 P0.0.0.0 S1 ; enable network and set IP address M553 P255.255.255.0 ; set netmask M554 P192.168.1.11 ; set gateway M586 P0 S1 ; enable HTTP M586 P1 S0 ; disable FTP M586 P2 S0 ; disable Telnet ; Drives M569 P0.0 S1 ; physical drive 0.0 goes forwards M569 P0.1 S1 ; physical drive 0.1 goes forwards M569 P0.2 S1 ; physical drive 0.2 goes forwards M584 X0.0 Y0.1 Z0.2 ; set drive mapping M350 X8 Y8 Z8 I1 ; configure microstepping with interpolation M92 X800.00 Y800.00 Z1600.00 ; set steps per mm M566 X900.00 Y900.00 Z12.00 ; set maximum instantaneous speed changes (mm/min) M203 X6000.00 Y6000.00 Z180.00 ; set maximum speeds (mm/min) M201 X500.00 Y500.00 Z20.00 ; set accelerations (mm/s^2) M906 X2500 Y2500 Z2500 ; set motor currents (mA) M84 S0 ; Disable motor idle current reduction ; Axis Limits M208 X0 Y0 Z0 S1 ; set axis minima M208 X430 Y360 Z100 S0 ; set axis maxima ; Endstops M574 X1 S0 P"!io1.in" ; configure active-low endstop for low end on X via pin !io1.in M574 Y1 S0 P"!io2.in" ; configure active-low endstop for low end on Y via pin !io2.in M574 Z2 S0 P"!io3.in" ; configure active-low endstop for high end on Z via pin !io3.in ; Z-Probe M558 P0 H5 F120 T1200 ; disable Z probe but set dive height, probe speed and travel speed M557 X15:215 Y15:195 S20 ; define mesh grid ; Heaters M308 S0 P"temp0" Y"pt1000" R2200 ; configure sensor 0 as PT1000 on pin temp0 M950 H0 C"out0" T0 ; create bed heater output on out0 and map it to sensor 0 M143 H0 S120 ; set temperature limit for heater 0 to 120C M307 H0 B1 S1.00 ; enable bang-bang mode for the bed heater and set PWM limit M140 H0 ; map heated bed to heater 0 ; Fans ; Tools M563 P0 D0 H1 F0 ; define tool 0 G10 P0 X0 Y0 Z0 ; set tool 0 axis offsets G10 P0 R0 S0 ; set initial tool 0 active and standby temperatures to 0C ; Custom settings are not defined ; Miscellaneous M501 ; load saved parameters from non-volatile memory
I can 't see anything obviously amiss.
@Asdasd1234 Send M122 and post the response.
I think @bearer might have hit the nail on the head.
runing m20 P"/" returns :
Begin file list NONE End file list ok
m122 returns the following
=== Diagnostics === RepRapFirmware for Duet 3 MB6HC v0.6 or 1.0 version 3.0beta12 running on Duet 3 MB6HC Board ID: 08DJM-956L2-G43S4-6J1F2-3SJ6N-1A62G Used output buffers: 1 of 32 (2 max) === RTOS === Static ram: 122240 Dynamic ram: 171368 of which 0 recycled Exception stack ram used: 344 Never used ram: 99264 Tasks: orm === Last reset 00:28:45 ago, cause: power up Last software reset details not available Error status: 0 Free file entries: 10 SD card 0 not detected, interface speed: 37.5MBytes/sec SD card longest block write time: 0.0ms, max retries 0 MCU temperature: min 32.6, current 37.7, max 38.2 Supply voltage: min 0.2, curre Driver 5: ok, reads 0, writes 0 timeouts 0, SG min/max 0/0 Date/time: 1970-01-01 00:00:00 Slowest loop: 0.43ms; fastest: 0.18ms === Move === Hiccups: 0, FreeDm: 375, MinFreeDm: 375, MaxWait: 0ms Bed compensation in use: none, comp offset 0.000 === MainDDARing === Scheduled moves: 0, completed moves: 0, StepErrors: 0, 1 === GCodes === Segments left: 0 Stack records: 1 allocated, 1 in use 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 serial is ready with "m122" in state(s) 0 aux is idle in state(s) 0 daemon is idle in state(s) 0 0, running macro queue is idle in state(s) 0 lcd is idle in state(s) 0 spi is idle in state(s) 0 autopause is idle in state(s) 0 Code queue is empty. === Network === Slowest loop: 0.42ms; fastest: 0.01ms Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0) Hansfer: 1725042ms ago RX/TX seq numbers: 0/1 SPI underruns 0, overruns 0 Number of disconnects: 0 Buffer RX/TX: 0/0-0 ok
SD card 0 not detected, interface speed: 37.5MBytes/sec
Can you try a different SD card? See here for specification and how to format it (a Windows 'Quick Format' doesn't work): https://duet3d.dozuki.com/Wiki/SD_Card
Also, now it's on YAT, you can send
M552 P0.0.0.0 S1and get it on your network.
I don't have another sd card at hand, but I'll try reformatting that one (its the one that came with the board)
EDIT: sorry I was an idiot, I took the sd card out as per one of the troubleshooting links earlier and didn't replace it.
New output from m122 below:
=== Diagnostics === RepRapFirmware for Duet 3 MB6HC v0.6 or 1.0 version 3.0beta12 running on Duet 3 MB6HC Board ID: 08DJM-956L2-G43S4-6J1F2-3SJ6N-1A62G Used output buffers: 1 of 32 (1 max) === RTOS === Static ram: 122240 Dynamic ram: 171368 of which 0 recycled Exception stack ram used: 280 Never used ram: 99328 Tasks: orm === Last reset 00:00:22 ago, cause: reset button Last software reset details not available Error status: 0 Free file entries: 10 SD card 0 detected, interface speed: 25.0MBytes/sec SD card longest block write time: 0.0ms, max retries 0 MCU temperature: min 36.1, current 37.1, max 37.1 Supply voltage: min 0.2, currets 0, SG min/max 0/0 Driver 1: ok, reads 0, writes 0 timeouts 0, SG min/max 0/0 Driver 2: ok, reads 0, writes 0 timeouts 0, SG min/max 0/0 Driver 3: ok, reads 0, writes 0 timeouts 0, SG min/max 0/0 Driver 4: ok, reads 0, writes 0 timeouts 0, SG min/max 0/0 Driver 5: ok, reads 0, writes 0 timeouts 0, SG min/max 0/0 Dateis idle in state(s) 0 0, running macro queue is idle in state(s) 0 lcd is idle in state(s) 0 spi is idle in state(s) 0 autopause is idle in state(s) 0 Code queue is empty. === Network === Slowest loop: 0.29ms; fastest: 0.01ms Responder states: HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) HTTP(0) FTP(0) Telnet(0) Telnet(0) HTTP sessions: 0 of 8 - Ethernet - State: 0 Socket states: 0 0 0 0 0 0 0 0 === CAN === Messages sent 0, longest wait 0ms for type 0 === Linux interface === State: 0, failed transfers: 0 Last transfer: 22301ms ago RX/TX seq numbers: 0/1 SPI underruns 0, over
Although m20 P"/" still returns the same (nothing found) so I'll still try reformatting
@Asdasd1234 If it's the SD card that came with the Duet 3, and you didn't reformat it, it's formatted for the Raspberry Pi. This should be FAT32 too, so should work in the Duet 3. However, if you reformatted it with Windows 'Quick Format', that might explain why it's not read. Best thing to do is to format it with the official SD formatting tool: https://www.sdcard.org/downloads/formatter/index.html
That was it! When i reformatted the rpi image , I must have selected NTFS.
Re-done to fat32 and its all working as expected.
Thank you so much everyone for the help!