Duet3 CAN Communication
-
Hello everyone,
I'm currently trying to communicate with my Duet 3 via the CAN interface. I have a self-developed board that controls several heaters and sensors. To keep it simple I want to make it look like an expansion board for the Duet3. When I try to run M308, i get correct data on my board, but the Duet is not happy with the response. First I get "Warning: Discarded msg src=1 typ=6031 RID=0 exp 0" and then "Error: M308: Response timeout: CAN addr 1, req type 6031, RID=0". Therefore I assume that my reply arrives but something is wrong. I have already searched in the firmware but haven't really found what should be attached as "text", for example. Can someone tell me what exactly the Duet3 expects as a response?
Thank you!
-
Most requests sent by the main board expect a CanMessageStandardReply, which isn't type 6031.
-
That makes sense, I had a bug in the software that sent the wrong ID.
Another question, is there a way to send a message to the web interface via CAN, similar to M117? Or in the other direction via G-code a message to the "Expansion Board" similar to M118.
Thank you.
-
Currently there is no way to send a GCode command via CAN, although we may add this facility in the future.