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

    Question around config.json and config.g and the configurator

    Scheduled Pinned Locked Moved
    Config Tool
    2
    4
    132
    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.
    • magnets99undefined
      magnets99
      last edited by

      Hi All,
      I'm new to this but i did do some reading on the forums. as i understand it:

      config.json is generated by the config-tool along with config.g and other files.
      the duet2 wifi board (and the others i assume) ignore the config.json and only read the config.g
      The config-tool ignores the config.g file and only reads the config.json when editing.

      if the above is correct my issue is:

      I have a seocnd hand printer, with a very old firmware (2.03).
      The SD card it came with has both a config.json and a config.g file.
      I upgraded the firmware to 3.5.4 (eventually) and used the config-tool to upgrade the config.g file by reading in the existing config.json from the sd card.
      all hell broke loose, homing was borked, the motors drove the wrong way, the temperature probes read -2500 all sorts of issues.
      When i looked, it appears the config.g created by config-tool is very different from the original config.g
      I expected some differences as a lot of the codes have been changed or deprecated from 2.03 to 3.4 but some stuff like motor direction or endstop location was wrong.

      Is it likely that the previous owner tweaked the config.g file manually after generation by config-tool?

      If so, is this expected? given that the confi.g tool is human readable and easy to edit but the json file isn't?

      Is their a utility to convert or analyse and existing config.g file for use by the config-tool I does one have to go through it manually?

      I'm currently manually going through the original config.g and trying to ge tthe configurator to output very similar gcode but this is time consuming and very prone to errors as i don't know what i'm doing and i'm having to read an awful lot of changelog to capture why some code looks different.

      Newbie, but tries hard. Has a duet 2 Wifi with a Zesty nimble extruder driver on a watercooled block built into some sort ultimaker 3 chassis.

      jay_s_ukundefined 1 Reply Last reply Reply Quote 0
      • jay_s_ukundefined
        jay_s_uk @magnets99
        last edited by jay_s_uk

        @magnets99 whatever is generated by the config tool is a guide and it is definitely expected that config.g is changed once the printer has gone through commissioning.
        You're much better generating a config with the tool and then comparing it against the config from the old firmware version
        There's no tool available to convert a current config.g to a config.json

        Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

        magnets99undefined 1 Reply Last reply Reply Quote 1
        • magnets99undefined
          magnets99 @jay_s_uk
          last edited by

          @jay_s_uk

          OK thanks, so the config tool is primarily aimed at the initial generation rather than tweaking?

          Newbie, but tries hard. Has a duet 2 Wifi with a Zesty nimble extruder driver on a watercooled block built into some sort ultimaker 3 chassis.

          jay_s_ukundefined 1 Reply Last reply Reply Quote 0
          • jay_s_ukundefined
            jay_s_uk @magnets99
            last edited by

            @magnets99 correct. Think of it as enough to get you going with most commands in place, but you have no idea whether motors are turning the correct way etc until you start to commission. The rest of the changes are then made at the machine in config.g

            Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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