logo elektroda
logo elektroda
X
logo elektroda

CB2S with BK7231T? Failed to read device MID - wrong WiFi module label?

viandoxone 2205 5
ADVERTISEMENT
  • #1 20596683
    viandoxone
    Level 2  
    Hi,
    I've actually the same issue with an electrical plug. Got the same "Failed to read device MID!".

    CB2S with BK7231T? Failed to read device MID - wrong WiFi module label?

    CB2S with BK7231T? Failed to read device MID - wrong WiFi module label?
    CB2S with BK7231T? Failed to read device MID - wrong WiFi module label?
    I attach the first dump for this device with a few pictures.

    CB2S with BK7231T? Failed to read device MID - wrong WiFi module label?
    CB2S with BK7231T? Failed to read device MID - wrong WiFi module label?

    CB2S with BK7231T? Failed to read device MID - wrong WiFi module label?

    It seems I've been able to write the h118ffb first byte with hid_download correctly compared to your last firmware but no hotspot once this one started. I am also unable to use the "Unprotect" option.

    CB2S with BK7231T? Failed to read device MID - wrong WiFi module label?

    Cheers,

    CCX
  • ADVERTISEMENT
  • #2 20596729
    p.kaczmarek2
    Moderator Smart Home
    EDIT: Wait, I can see the problem! What a strange issue! You have BK7231T marked as CB2S, but CB2S should be BK7231N! Try using BK7231T mode. It's not the first time they have swapped chips/markings!

    Old reply below
    Hello, hid_download_py at least should work, if it's not working, then maybe you do not provide enough power for the device or maybe wires are too long. Or you need another USB to UART converter.
    Make sure that hid_download_py commands are correct, see our tutorial:



    What is the model name of your device?
    Here's extracted config from the binary:
    Quote:

    Device configuration, as extracted from Tuya:
    - Button (channel 1) on P7
    - LED (channel 1) on P6
    - WiFi LED on P26
    - Relay (channel 1) on P8
    Device seems to be using WB2S module, which is using BK7231T.
    And the Tuya section starts, as usual, at 2023424

    Code: JSON
    Log in, to see the code


    Added after 28 [seconds]:

    Your firmware dump also identifies as WB2S/BK7231T:
    CB2S with BK7231T? Failed to read device MID - wrong WiFi module label?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20598516
    viandoxone
    Level 2  
    Hi,

    You have lynx eyes mate !!

    It works fine with T firmware.

    Thank you very much.
  • ADVERTISEMENT
  • #4 20598521
    p.kaczmarek2
    Moderator Smart Home
    I've already seen similiar swap, with BK7231N on WB2S module, so I know what to watch for. Good job on getting OpenBK7231 working!
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 21438415
    andraskszabo
    Level 4  
    I have four similar plugs, bought as a bundle. Two had swapped pin markings, two had correct ones. Crazy.
  • #6 21438589
    p.kaczmarek2
    Moderator Smart Home
    Usually the quality control catches that kind of faulty boards even before the elements are soldered, but it seems that people at Tuya product factories may just don't care or don't want to waste any boards...

    Added after 1 [minutes]:

    I can quote my old message:
    p.kaczmarek2 wrote:
    You are connecting your wires incorrectly.
    I had this module.
    It has misleading silkscreen. The 3.3V and GND are not where you think they are.
    Please double check with your PCB.
    I think the real 3.3V and GND pads are as shown here:
    Module schematic with incorrectly labeled 3.3 V and GND pins.
    Your module has mixed pad markings and they are misleading. Again, please double check, but I already had module looking exactly like yours and I flashed it the way like I would flash old CB2S...

    Added after 1 [minutes]:

    PS: To be honest, when you look at the pin marked as "P24", you can see it's really a ground pour plane:
    Close-up of a board with pin labels, with two arrows pointing to pins P26 and P24.
    So I think my idea checks out.

    Please connect it correctly and flash with our tool: https://github.com/openshwprojects/BK7231GUIFlashTool
    Helpful post? Buy me a coffee.
ADVERTISEMENT