Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login
    1. Home
    2. CarlosR
    • Profile
    • Following 0
    • Followers 0
    • Topics 15
    • Posts 49
    • Best 3
    • Controversial 0
    • Groups 0

    CarlosR

    @CarlosR

    3
    Reputation
    18
    Profile views
    49
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Location Spain

    CarlosR Unfollow Follow

    Best posts made by CarlosR

    • Trigger http request from gcode?

      I need to trigger a http request to call a service from an application backend I'm developing. This request is suposed to be triggered multiple times during the printing process to control external devices and processes.

      I know this topic had been treated previously in this forum, but almost a year ago.

      Just wondering if any advances in that.

      I don't think Telnet would be a solution regarding the security, as I would need to integrate a telnet client inside the application and I'm not familiar with this technology.

      Thanks in advance.

      posted in General Discussion
      CarlosRundefined
      CarlosR
    • RE: M584 doesn't work with axis drives

      @jay_s_uk Yes, it seems to be correctly connected

      0e05279b-46da-4d56-92a1-effca9018081-image.png

      posted in Beta Firmware
      CarlosRundefined
      CarlosR
    • RE: First printing movements very slow

      @Phaedrux sorry fot the late answer, I just solved the problem.

      The printheads boards weren't updated to 3.4.3 but the main board was.

      posted in General Discussion
      CarlosRundefined
      CarlosR

    Latest posts made by CarlosR

    • RE: ObjectModel update frequency

      @dc42 Any alternatives? Thanks!

      posted in General Discussion
      CarlosRundefined
      CarlosR
    • RE: ObjectModel update frequency

      @dc42 Currently it is connected to an expansion board (Duet 3 Expansion TOOL1LC). Would it make a difference if I connect it to the main board (Duet 3 MB6XD)?

      It is an analog sensor that works at 5V. Currently I have it working at 3.3V but planning to incorporate an ADC Daughter Board.

      M308 S12 P'70.temp0' Y"linear-analog" A"Sensor1"

      posted in General Discussion
      CarlosRundefined
      CarlosR
    • RE: ObjectModel update frequency

      @dc42

      I would like to get a value from a sensor that is connected to the board as often as possible.

      I just reduced the ModelUpdateInterval variable in the /opt/dsf/conf/config.json file. I know this is not a good approach in terms of performance, but it's the best option I've found so far.

      I also tried playing with the dsf-python project and the SubscribeConnection class, but I think the frequency is the same.

      I also tried to dump the sensor values to a file using daemon.g, but writing a file is not efficient either.

      Any other ideas I could try?

      Ideally I would like to update this specific variable as much as possible (10ms, 20ms, 50ms... , whatever value that is the fastest) and the rest of the ObjectModel update it as default.

      Thanks.

      posted in General Discussion
      CarlosRundefined
      CarlosR
    • ObjectModel update frequency

      Hi everyone,

      Is it possible to increase the ObjectModel update frequency? If so, how?

      I realized the updates occur every 400ms, would be possible to reduce it to 100-200ms?

      Thanks.

      posted in General Discussion
      CarlosRundefined
      CarlosR
    • Help with MQTT setup

      Hi,

      I need some help with setting up the MQTT server from the configuration.
      I would like to subscribe to a topic from a third party app and generate messages from the gcode files using the M118 commands.

      Could you please help me with setting up the network config and MQTT server?

      Kind regards.

      posted in General Discussion
      CarlosRundefined
      CarlosR
    • RE: Websocket not sending patch

      @chrishamm Thank you so much!

      It didn't work indeed in standalone nodejs. However, that was easy to fix (in case anyone is interested).

      1. Install @duet3d/connectors, @duet3d/objectmoddel and xhr2 package:
      npm install @duet3d/connectors 
      npm install @duet3d/objectmodel
      npm install xhr2
      
      1. Import XMLHttpRequest from xhr2 package in BaseConnector.js file
      const XMLHttpRequest = require("xhr2");
      
      1. Import WebSocket from ws package in RestConnector.js:
      const WebSocket = require('ws');
      

      Then everything work as normal.

      posted in Third-party software
      CarlosRundefined
      CarlosR
    • Websocket not sending patch

      Hi,

      I'm trying to subscribe via websocket to the object model using a node.js client.

      let objectModel = null;
        wsClientDuet.on("connectFailed", function (error) {
          console.log("Connect Error");
        });
        wsClientDuet.on("connect", (conn) => {
          connectionDuet = conn;
          console.log("Connected to Duet WebSocket Server");
          connectionDuet.on("error", function (error) {
            console.log("Connection Error");
          });
          connectionDuet.on("close", function () {
            console.log("Connection to Duet is closed");
          });
          connectionDuet.on("message", function (message) {
            console.log(message.utf8Data);
            if (message.utf8Data === "PONG\n") {
              return;
            }
            if (objectModel === null) {
              objectModel = message.utf8Data;
              console.log("Object model received");
              return;
            }
            let ack = "OK\n";
            connectionDuet.sendUTF(ack);
          });
        });
        setInterval(async () => {
          if (connectionDuet.connected) {
            let message = "PING\n";
            connectionDuet.sendUTF(message);
          }
        }, 5000);
      
        await wsClientDuet.connect(`url`, "");
      
      

      The server is replying with PONG after the PINGS.
      Also, the first object model is sent. But it seems the OK is not working since the server is not sending any patch.

      Is there anything wrong in the code?

      Thank you.

      posted in Third-party software
      CarlosRundefined
      CarlosR
    • RE: First printing movements very slow

      @Phaedrux sorry fot the late answer, I just solved the problem.

      The printheads boards weren't updated to 3.4.3 but the main board was.

      posted in General Discussion
      CarlosRundefined
      CarlosR
    • First printing movements very slow

      Hi all,

      I'm trying to print an object with 2 tools. This is not relevant since it is the same if I remove the T1 part...

      The problem is that the first few movements are very slow and also the tool makes weird movements, like stepping instead of doing "fluid movements".

      Looking at the gcode, everything looks correct, I don't know why the speed is reduced...

      After the starting movements, everything goes ok. But the printing is completly ruined due to the first movements.

      wrong.gcode

      posted in General Discussion
      CarlosRundefined
      CarlosR
    • RE: Can 2 versions of DWC coexist?

      @pcr Thank you! I will

      posted in Duet Web Control
      CarlosRundefined
      CarlosR