Reading data from Duet Wi-Fi



  • 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!


  • administrators

    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.



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



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



  • @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… 😐



  • 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.


  • administrators

    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.


Log in to reply