logo elektroda
logo elektroda
X
logo elektroda

Which UART tapping programmer for the Wi-Fi gas detector in TuyaMCUAnalyzer?

Samezrp1 294 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21320456
    Samezrp1
    Level 13  
    I bought a Wi-Fi gas detector on Ali and would love to add it to the free device base.
    It's built on a CB3S and uses: N32G031.
    I have experience in uploading software. I already have a backup of the device.
    I have used TuyaMCUAnalyzer and have the first, correct readings:

    calibration on: dpId=104 Bool Val=1, 6801000101
    calibration off: dpId=104 Bool Val=0, 6801000100
    heat alarm value: 101, Val, Val=67 for temp = 67, 6502000400000043

    Itd, I can look into this in more detail, unfortunately I have a problem. I'm using CH341 to wire up the UART, when disconnected it forces the device to go into gas detection alarm and after a while puts the device into off line mode, you can't see it in the app. Probably something wrong with the load on the UART pins.
    Can you suggest what programmers you use to wire up the UART?
    Do I understand correctly that TuyaMCUAnalyzer uses two, independent programmers and you can't wiretap Tx and Rx independently on one?
  • ADVERTISEMENT
  • Helpful post
    #2 21321425
    p.kaczmarek2
    Moderator Smart Home
    I see this is a related topic:
    TX-E gas detector with shut-off valve control function - device interior .
    I will answer the title question here, but as for the device itself, it is better to write already in the thread which is dedicated to it .


    Samezrp1 wrote:
    I use CH341 for UART tapping, when disconnected it forces the device to go into gas detection alarm and after a while puts the device into off line mode, you can't see it in the app. Probably something wrong with the load on the UART pins.
    .
    I have not encountered such a problem. Unless there is very complex data there, e.g. in RAW mode, you can also retrieve the dpID from the Tuya API: DpID extraction for TUYA MCU devices .
    You can try for principle with this converter what I recommend, possibly also describe how you connect it?

    A side thing to check, by the way, is whether this is a normal TuyaMCU device or battery-powered , i.e. is the MCU able to switch off power to the Wi-Fi module and only switch it on to report data to the cloud? Is 3.3V still on the VDD of the Wi-Fi module? Is the Wi-Fi module's VDD connected to the power supply via the MOSFET that the MCU controls?

    Samezrp1 wrote:
    Can you suggest what programmers you are using to wire up the UART?.
    .
    I use the ones shown on YT, such as:



    .

    Which UART tapping programmer for the Wi-Fi gas detector in TuyaMCUAnalyzer?

    CH340 with jumper to select voltage level.



    Samezrp1 wrote:
    .
    Do I understand correctly that the TuyaMCUAnalyzer uses two, independent programmers and you can't listen to Tx and Rx independently on one?
    .
    Generally yes, but if, for example, you know you want to listen to what the app is sending to the MCU when you set the relay state to ON, for example, then just listen to the Wi-Fi TX to MCU RX line.
    Similarly, if you want to see how the thermostat reports its temperature, then just listen to the MCU TX -> Wi-Fi RX.
    You don't necessarily have to have two pieces at once.
    And if you want to do a "whole capture" (not just one operation) then just do separately on the RX and then on the TX, the TuyaMCU is documented on the web, if necessary you can analyse it later so you know what's going on....
    Helpful post? Buy me a coffee.
ADVERTISEMENT