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

    Are you a mobile or desktop app developer?

    Scheduled Pinned Locked Moved
    General Discussion
    3
    15
    1.1k
    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.
    • JoergS5undefined
      JoergS5 @zapta
      last edited by JoergS5

      @zapta I unfortunately didn't have the time to build your stepper analyzer, but I appreciate your development with great respect. You motivated me to start with PCB solutions on my own.

      Building the DWC, I want to design it with adapters, so different solutions can be connected. I'll tell you when I have the time to start.

      1 Reply Last reply Reply Quote 0
      • JoergS5undefined
        JoergS5
        last edited by JoergS5

        @chrishamm do you have preferences which libraries to use for future DWC development? E. g. this plugin can be implemented with chartjs or babylonjs. BabylonJS is fast, which may be more important for this plugin than a nice coordinate labeling, but has a not so well manageable coordinate system.

        zaptaundefined chrishammundefined 2 Replies Last reply Reply Quote 0
        • zaptaundefined
          zapta @JoergS5
          last edited by

          @joergs5, @chrishamm, looking at the link below, it says that the web ble API, which is required to connect with the ble device, is "HTTPS only". What does it mean for potential integration with DWC?

          https://web.dev/bluetooth/

          JoergS5undefined 2 Replies Last reply Reply Quote 0
          • JoergS5undefined
            JoergS5 @zapta
            last edited by JoergS5

            @zapta looking into DWC, it consumes some https sources like configtool and REST connections, but let's see what chrishamm says.

            1 Reply Last reply Reply Quote 0
            • JoergS5undefined
              JoergS5
              last edited by JoergS5

              @zapta I searched the web a bit, there are multiple library projects to read NRF52 like https://github.com/NordicSemiconductor/pc-ble-driver-js https://www.nordicsemi.com/Products/Development-software/nrf-connect-sdk https://www.novelbits.io/smart-ble-lightbulb-application-nrf52/

              so I expect we find a library which doesn't have the https restriction, in case it's a problem. DWC itself is unprotected, so there is no additional security to protect the bluetooth data. Taking over the printer is a higher risk.

              About making DWC https capable if desirable, there was a thread here: https://forum.duet3d.com/topic/13851/dwc-https-and-password-protection

              The Web Bluetooth lib links to this page: https://w3c.github.io/webappsec-secure-contexts/#intro where there are examples mixing http with https (e.g. 1.1 example 4), this may be an option.

              1 Reply Last reply Reply Quote 0
              • chrishammundefined
                chrishamm administrators @JoergS5
                last edited by

                @joergs5 I'll upgrade ChartJS to v3 in DWC v3.5 and likewise the BabylonJS dependency because the heightmap + Gcode viewers depend on it (fortunately we're no longer using ThreeJS). So it's up to you which one you want to use.

                DWC can operate in HTTPS mode but only if an SBC is attached and if HTTPS is enabled via M586 P0 T1 S1.

                Duet software engineer

                JoergS5undefined 1 Reply Last reply Reply Quote 0
                • JoergS5undefined
                  JoergS5 @chrishamm
                  last edited by

                  @chrishamm thank you for clarifiying.

                  1 Reply Last reply Reply Quote 0
                  • JoergS5undefined
                    JoergS5 @zapta
                    last edited by

                    @zapta dear zapta, are you still interested in a DWC plugin for this motor analyzer? I can begin developing it next week (slowly). Whether I can manage to use bluetooth without https or how to find a workaround, I am unsure and have to check.

                    zaptaundefined 1 Reply Last reply Reply Quote 3
                    • zaptaundefined
                      zapta @JoergS5
                      last edited by

                      @JoergS5, yes, very much so. Either DWC or any other cross OS client.

                      BTW, did you try the python client?

                      https://github.com/zapta/ble_stepper_motor_analyzer/tree/main/python

                      JoergS5undefined 1 Reply Last reply Reply Quote 0
                      • JoergS5undefined
                        JoergS5 @zapta
                        last edited by

                        @zapta thanks for confirmation, then I'll start this week. I didn't look at the analyzer and Python yet, but I will use Python as a starting point. I want to use DWC, so it is integrated into the other Duet related tools.

                        Can you please give me a proposal where it should be placed in DWC. Please plan for displaying data of multiple analyzers. I need this proposal not now, but the next few weeks. I expect it would be valuable in some situations to show it together with other information in DWC, so showing it together with this information would be good. But I don't have an overview over the use cases.

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