DSF Rockpi 4B Se on armbian
-
@Falcounet thx for your answer but when i try to make the same min on chip0 i have a transfert ready pin pinout
-
@Amagatth Looking at the schematics available there : https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi4_v13_sch_20181112.pdf
It seems the pin 22 of the GPIO connector is mapped to GPIO4_D5
If you refer to https://teamgloomy.github.io/dsf_on_armbian.html#identifying-the-gpio-number
You have to useGPIO4_D5 => 4 * 8 + 5 = 37GPIO4_D5 => 3 * 8 + 5 = 29
So try using these values in/opt/dsf/conf/config.json
"GpioChipDevice": "/dev/gpiochip4", "TransferReadyPin": 29,
If that doesn't work, please post the content of your
/opt/dsf/conf/config.json
file. -
hum ok error is here , on the rockpi documentation they say gpio 4 d5 is pin 157
-
@Amagatth with pin 37 i have an error " operation failed ( reason : failed to initialize settings. object reference not set to an instance of an object "
My config.json
"AutoUpdateFirmware": true,
"PluginSupport": true,
"RootPluginSupport": false,
"PluginsFilename": "/opt/dsf/conf/plugins.txt",
"LogLevel": "info",
"SocketDirectory": "/run/dsf",
"SocketFile": "dcs.sock",
"StartErrorFile": "/run/dsf/dcs.err",
"Backlog": 4,
"SocketPollInterval": 2000,
"BaseDirectory": "/opt/dsf/sd",
"PluginDirectory": "/opt/dsf/plugins",
"NoTerminateOnReset": false,
"HostUpdateInterval": 4000,
"MaxMessageAge": 60,
"SpiDevice": "/dev/spidev1.0",
"SpiBufferSize": 8192,
"SpiTransferMode": 0,
"SpiFrequency": 8000000,
"SpiConnectTimeout": 500,
"SpiTransferTimeout": 500,
"SpiConnectionTimeout": 4000,
"MaxSpiRetries": 3,
"GpioChipDevice": "/dev/gpiochip4",
"TransferReadyPin": 37,
"BufferedPrintCodes": 32,
"BufferedMacroCodes": 16,
"MaxBufferSpacePerChannel": 1536,
"MaxCodeBufferSize": 256,
"MaxMessageLength": 4096,
"FirmwareComments": [
"printing object",
"MESH",
"process",
"stop printing object",
"layer",
"LAYER",
"BEGIN_LAYER_OBJECT z=",
"HEIGHT",
"PRINTING",
"REMAINING_TIME"
],
"ModelUpdateInterval": 250,
"MaxMachineModelLockTime": -1,
"FileBufferSize": 8192,
"FileInfoReadLimitHeader": 12288,
"FileInfoReadLimitFooter": 262144,
"MaxLayerHeight": 0.9,
"LayerHeightFilters": [
{
"Pattern": "^\slayer_height\D+(?<mm>(\d+\.?\d))",
"Options": 17
},
{
"Pattern": "Layer height\D+(?<mm>(\d+\.?\d*))",
"Options": 17
},
{
"Pattern": "layerHeight\D+(?<mm>(\d+\.?\d*))",
"Options": 17
},
{
"Pattern": "layer_thickness_mm\D+(?<mm>(\d+\.?\d*))",
"Options": 17
},
{
"Pattern": "layerThickness\D+(?<mm>(\d+\.?\d*))",
"Options": 17
},
{
"Pattern": "sliceHeight\D+(?<mm>(\d+\.?\d*))",
"Options": 17
}
],
"NumLayersFilters": [
{
"Pattern": "NUM_LAYERS\D+(\d+)",
"Options": 17
}
],
"FilamentFilters": [
{
"Pattern": "filament used\D+(((?<mm>\d+\.?\d*)\smm)(\D+)?)+",
"Options": 17
},
{
"Pattern": "filament used\D+(((?<m>\d+\.?\d)m([^m]|$))(\D+)?)+",
"Options": 17
},
{
"Pattern": "filament length\D+(((?<mm>\d+\.?\d*)\smm)(\D+)?)+",
"Options": 17
},
{
"Pattern": "filament used \[mm\]\D+((?<mm>\d+\.?\d)(\D+)?)+",
"Options": 17
},
{
"Pattern": "material\#(?<index>\d+)\D+(?<mm>\d+\.?\d*)",
"Options": 17
},
{
"Pattern": "Ext\s*\#\d+\D+(?<mm>\d+\.?\d*)",
"Options": 17
},
{
"Pattern": "Filament used per extruder:\r\n;\s*(?<name>.+)\s+=\s*(?<mm>[0-9.]+)",
"Options": 17
},
{
"Pattern": "filament used extruder (?<index>\d+) \(mm\) = (?<mm>\d+\.?\d*)",
"Options": 17
}
],
"GeneratedByFilters": [
{
"Pattern": "generated by\s+(.+)",
"Options": 17
},
{
"Pattern": "Sliced by\s+(.+)",
"Options": 17
},
{
"Pattern": "(KISSlicer.)",
"Options": 17
},
{
"Pattern": "Sliced at:\s(.+)",
"Options": 17
},
{
"Pattern": "Generated with\s*(.+)",
"Options": 17
}
],
"PrintTimeFilters": [
{
"Pattern": "estimated printing time .= ((?<h>(\d+))h\s)?((?<m>(\d+))m\s*)?((?<s>(\d+))s)?",
"Options": 17
},
{
"Pattern": "TIME:(?<s>(\d+\.?\d*))",
"Options": 17
},
{
"Pattern": "Build Time:\s+((?<h>(\d+\.?\d*)) hour(s)?\s*)?((?<m>(\d+\.?\d*)) minute(s)?\s*)?((?<s>(\d+\.?\d*)) second(s)?)?",
"Options": 17
},
{
"Pattern": "print time:\s+(?<s>(\d+\.?\d*))(s)?",
"Options": 17
},
{
"Pattern": "Total estimated \(pre-cool\) minutes: ((?<m>\d+\.?\d*))",
"Options": 17
},
{
"Pattern": "total print time \(s\) = (?<s>(\d+\.?\d*))",
"Options": 17
},
{
"Pattern": "Build time:\s+(?<h>(\d+\.?\d*)):(?<m>(\d+\.?\d*)):(?<s>(\d+\.?\d*))",
"Options": 17
}
],
"SimulatedTimeFilters": [
{
"Pattern": "Simulated print time\D+(?<s>(\d+\.?\d*))",
"Options": 17
}
]
} -
@Amagatth Can you install
gpiod
and issuesudo gpioinfo
?
Hopefully the device tree has the detailed info and you can just read it there. -
gpiochip4 - 32 lines:
line 0: unnamed unused input active-high
line 1: unnamed unused input active-high
line 2: unnamed unused input active-high
line 3: unnamed unused input active-high
line 4: unnamed unused input active-high
line 5: unnamed unused input active-high
line 6: unnamed unused input active-high
line 7: unnamed unused input active-high
line 8: unnamed unused input active-high
line 9: unnamed unused input active-high
line 10: unnamed unused input active-high
line 11: unnamed unused input active-high
line 12: unnamed unused input active-high
line 13: unnamed unused input active-high
line 14: unnamed unused input active-high
line 15: unnamed unused input active-high
line 16: unnamed unused input active-high
line 17: unnamed unused input active-high
line 18: unnamed unused input active-high
line 19: unnamed unused input active-high
line 20: unnamed unused input active-high
line 21: unnamed unused input active-high
line 22: unnamed unused input active-high
line 23: unnamed unused input active-high
line 24: unnamed unused input active-high
line 25: unnamed "vcc5v0-host-regulator" output active-high [used]
line 26: unnamed unused input active-high
line 27: unnamed unused output active-high
line 28: unnamed unused input active-high
line 29: unnamed unused input active-high
line 30: unnamed unused input active-high
line 31: unnamed unused input active-high
cdfi@CDFI:~$you want the other gpiochip ?
-
@Amagatth
GPIO4 has 32 lines so 37 is not valid.I made a mistake in the GPIO line calculation above. It should be 3 * 8 + 5 = 29
Can you try :
"GpioChipDevice": "/dev/gpiochip4", "TransferReadyPin": 29,
-
@Falcounet Thx i try it monday
-
@Falcounet Hi falcounet,
The error change now i have error like on the image !
when i try tout boot duet control server i have an error and it dont want to start
i have it on the journaltcl
mars 25 12:52:28 CDFI systemd[1]: Starting Duet Web Server...
mars 25 12:52:31 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository[50] Using an in-memory repository. Keys will not be persisted to storage.
mars 25 12:52:31 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[59] Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data >
mars 25 12:52:32 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[58] Creating key {e2589570-6e22-48e4-bc7f-a96ff057bc2b} with creation date 2023-03-25 11:52:32Z, activat>
mars 25 12:52:32 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] No XML encryptor configured. Key {e2589570-6e22-48e4-bc7f-a96ff057bc2b} may be persisted to storage >
mars 25 12:52:33 CDFI DuetWebServer[1548]: Microsoft.Hosting.Lifetime[14] Now listening on: http://[::]:80
mars 25 12:52:33 CDFI DuetWebServer[1548]: Microsoft.Hosting.Lifetime[0] Application started. Hosting environment: Production; Content root path: /opt/dsf/dwc
mars 25 12:52:33 CDFI systemd[1]: Started Duet Web Server.
mars 25 12:52:33 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:18:50 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:18:55 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:00 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:05 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:10 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:15 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:20 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:25 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:30 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:35 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:40 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:42 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://127.0.0.1/precache-manifest.f4a5c16fc7874f9aeeb60a854f6db5f3.js - -
mars 30 14:19:42 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://127.0.0.1/service-worker.js - -
mars 30 14:19:43 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2] Sending file. Request path: '/service-worker.js'. Physical path: '/opt/dsf/sd/www/service-worker.js'
mars 30 14:19:43 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2] Sending file. Request path: '/precache-manifest.f4a5c16fc7874f9aeeb60a854f6db5f3.js'. Physical path: '/opt/dsf/>
mars 30 14:19:43 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET http://127.0.0.1/precache-manifest.f4a5c16fc7874f9aeeb60a854f6db5f3.js - - - 200 1921 applicat>
mars 30 14:19:43 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET http://127.0.0.1/service-worker.js - - - 200 1069 application/javascript 370.1715ms
mars 30 14:19:45 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:45 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://127.0.0.1/img/icons/apple-touch-icon-152x152.png - -
mars 30 14:19:45 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[2] Sending file. Request path: '/img/icons/apple-touch-icon-152x152.png'. Physical path: '/opt/dsf/sd/www/img/icon>
mars 30 14:19:45 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET http://127.0.0.1/img/icons/apple-touch-icon-152x152.png - - - 200 3608 image/png 50.3444ms
mars 30 14:19:50 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:54 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://127.0.0.1/rr_connect?password=reprap&time=2023-03-30T14%3A19%3A53 - -
mars 30 14:19:54 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET http://127.0.0.1/rr_connect?password=reprap&time=2023-03-30T14%3A19%3A53 - - - 404 0 - 9.7355ms
mars 30 14:19:54 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://127.0.0.1/service-worker.js - -
mars 30 14:19:54 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware[6] The file /service-worker.js was not modified
mars 30 14:19:54 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET http://127.0.0.1/service-worker.js - - - 304 - application/javascript 80.8443ms
mars 30 14:19:55 CDFI DuetWebServer[1548]: DuetWebServer.Services.ModelObserver[0] Failed to synchronize machine model System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (99): Cannot assign requ>
mars 30 14:19:56 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://127.0.0.1/rr_connect?password=reprap&time=2023-03-30T14%3A19%3A56 - -
mars 30 14:19:56 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET http://127.0.0.1/rr_connect?password=reprap&time=2023-03-30T14%3A19%3A56 - - - 404 0 - 4.8931ms
mars 30 14:19:57 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://127.0.0.1/machine/connect?password=reprap - -
mars 30 14:19:57 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'DuetWebServer.Controllers.MachineController.Connect (DuetWebServer)'
mars 30 14:19:57 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3] Route matched with {action = "Connect", controller = "Machine"}. Executing controller action with sig>
mars 30 14:19:57 CDFI DuetWebServer[1548]: DuetWebServer.Controllers.MachineController[0] [Connect] Failed to initialize settings: Object reference not set to an instance of an object.
mars 30 14:19:57 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] Executing ObjectResult, writing value of type 'System.String'.
mars 30 14:19:58 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[2] Executed action DuetWebServer.Controllers.MachineController.Connect (DuetWebServer) in 214.1531ms
mars 30 14:19:58 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Routing.EndpointMiddleware[1] Executed endpoint 'DuetWebServer.Controllers.MachineController.Connect (DuetWebServer)'
mars 30 14:19:58 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET http://127.0.0.1/machine/connect?password=reprap - - - 503 - text/plain;+charset=utf-8 567.867>
mars 30 14:19:59 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://127.0.0.1/rr_connect?password=reprap&time=2023-03-30T14%3A19%3A59 - -
mars 30 14:19:59 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[2] Request finished HTTP/1.1 GET http://127.0.0.1/rr_connect?password=reprap&time=2023-03-30T14%3A19%3A59 - - - 404 0 - 13.3461>
mars 30 14:19:59 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Hosting.Diagnostics[1] Request starting HTTP/1.1 GET http://127.0.0.1/machine/connect?password=reprap - -
mars 30 14:19:59 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Routing.EndpointMiddleware[0] Executing endpoint 'DuetWebServer.Controllers.MachineController.Connect (DuetWebServer)'
mars 30 14:19:59 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker[3] Route matched with {action = "Connect", controller = "Machine"}. Executing controller action with sig>
mars 30 14:19:59 CDFI DuetWebServer[1548]: DuetWebServer.Controllers.MachineController[0] [Connect] Failed to initialize settings: Object reference not set to an instance of an object.
mars 30 14:19:59 CDFI DuetWebServer[1548]: Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor[1] Executing ObjectResult, writing value of type 'System.String'. -
@Amagatth No idea if that error can be related to a SPI communication issue. Probably @chrishamm can comment
-
@Amagatth Sounds like you messed up something in the DCS settings. Try to delete the
config.json
file once (sudo rm /opt/dsf/conf/config.json
), restart DCS (it should recreate it automatically), make the chip/pin/SPI adjustments again, and check if it works then. -
@chrishamm It work !! thx !!!
-
@chrishamm hi , i have a new error spi reset always each second
Warning: SPI connection has been reset its the error message
-
@Amagatth said in DSF Rockpi 4B Se on armbian:
@chrishamm hi , i have a new error spi reset always each second
Warning: SPI connection has been reset its the error message
Take a look here: https://github.com/Duet3D/DuetSoftwareFramework/wiki/SBC-Setup-Guide#spi-connection-reset