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

Reading data from Duet Wi-Fi

Scheduled Pinned Locked Moved
Third-party add-ons
6
7
1.9k
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.
  • undefined
    jaydevdave
    last edited by 13 Nov 2017, 06:34

    Hello,
    I want to read data like nozzle temperature, the percentage of the printing etc from the duet wifi serially and want to get it publish on small 128 by 64 OLED Display via Bluetooth. I have already made Bluetooth based circuit which displays the data on OLED Display. Please help me with reading data from the Duet Wi-Fi. Which pins to be used to read those data? I want Panel Due to be connected as well.
    Thank you!

    1 Reply Last reply Reply Quote 0
    • undefined
      dc42 administrators
      last edited by 13 Nov 2017, 07:36

      If a PanelDue is connected, then the easiest way would be to snoop on the data appearing on the UTXD0 pin of the PanelDue connector. That data is all in JSON format, and most of it is responses to M408 S0 commands.

      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

      1 Reply Last reply Reply Quote 0
      • undefined
        Chipsa82
        last edited by 14 Jan 2018, 22:12

        Jay, have you considered using I2C for the OLED instead of bluetooth?

        1 Reply Last reply Reply Quote 0
        • undefined
          Biggsis
          last edited by 15 Jan 2018, 11:17

          And if you don't have a PanelDue, is there a possibility to take that JSON data from pins on the DuetWifi itself?

          Hypercube Evolution User Group : https://www.facebook.com/groups/Hypercubeevolution/
          Kossel Delta XL / XXL User Group : [https://www.facebook.com/groups/KosselXXL/]

          1 Reply Last reply Reply Quote 0
          • undefined
            darookee
            last edited by 18 Jan 2018, 09:29

            @Biggsis:

            And if you don't have a PanelDue, is there a possibility to take that JSON data from pins on the DuetWifi itself?

            I was looking at the code of RRF and the PanelDue to find out about this and it looks like you just need to connect to the TX and RX pin and send 'M408' through that connection for the Duet to 'think' a PanelDue is connected. Of course I could be absolutely wrong about that… 😐

            1 Reply Last reply Reply Quote 0
            • undefined
              dasquiddi
              last edited by 28 Jan 2018, 14:33

              Recently i've tried a simple Serial Connection between the DuetWifi and a TTL-USB-Serial. Unfortunately i hadn't success until now. I set the Baud to 57600 and had the latest Firmware.

              1 Reply Last reply Reply Quote 0
              • undefined
                dc42 administrators
                last edited by 28 Jan 2018, 14:56

                By default you need to send line numbers and checksums when sending data to the PanelDue port. This is to guard against character loss. You can turn off this requirement using the M575 command.

                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

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