Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Change name of 1LC or Sammy board in Firmware

    Scheduled Pinned Locked Moved
    Firmware developers
    2
    3
    169
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hauschkaundefined
      hauschka
      last edited by

      Hey,

      I'm looking for a way for the 1LC (or sammy) to communicate a pre-defined code (name/number) to the main board when asked via gcode.

      I was thinking of slightly modifying the bootloader so that it has this info permanently stored in the chip.
      It would then inform me of its "code" by giving each 1LC/SAMMY a custom name and then querying that name via

      M122 B11

      This should return

      Diagnostics for board 11: Duet TOOL1LC firmware version 3.3beta2+1 (2021-03-20 14:03:00) Bootloader ID: SAMC21 bootloader version 2.3 (2021-01-26b1)

      Instead, my plan would be that it returns:
      ID: Custom_code_1 version 1.1 (_date_)

      My question is: Is that the best way to implement this?
      Is there an easier way than creating a custom firmware, similar to updating the canbus address via gcode?

      And in case that's the way to go, could someone please point me to where this info is encoded? I was looking through the Github repo for Sammy board to find where the info would be saved for this board, but couldn't find the location

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @hauschka
        last edited by

        @hauschka the bootloader source is in the Github project Duet3D/Duet3Bootloader. That is where you would need to change the name of the file that is installed when you command a firmware update or a CAN reset.

        Once firmware is running on the board, the board name used is the one defined in the corresponding src/Config/Pins_xxx.h file in project DuetExpansion.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        hauschkaundefined 1 Reply Last reply Reply Quote 0
        • hauschkaundefined
          hauschka @dc42
          last edited by

          @dc42 said in Change name of 1LC or Sammy board in Firmware:

          That is where you would need to change the name of the file that is installed when you command a firmware update or a CAN reset.

          Awesome, thanks, I will try it!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA