logo elektroda
logo elektroda
X
logo elektroda

[Solved] OpenBeken - new BL0942 device is not receiving any data from energy meter

thanos_kalos 3918 29
ADVERTISEMENT
  • ADVERTISEMENT
  • #2 20527425
    p.kaczmarek2
    Moderator Smart Home
    How do you know it's really BL0942? Have you opened the case?

    Added after 54 [seconds]:

    I have firmware 1.15.659 and I get a reading:
    OpenBeken - new BL0942 device is not receiving any data from energy meter
    Helpful post? Buy me a coffee.
  • #3 20527459
    thanos_kalos
    Level 6  
    Hello

    Yes, I have opened the case.

    Have a look at the photo also

    OpenBeken - new BL0942 device is not receiving any data from energy meter
  • ADVERTISEMENT
  • #4 20527508
    p.kaczmarek2
    Moderator Smart Home
    Do you have any BL0942 messages in the Web App log?

    BL0942 can also use SPI interface sometimes. BL0942 can also sometimes use different baud rate.
    Helpful post? Buy me a coffee.
  • #5 20527526
    thanos_kalos
    Level 6  
    Hello

    Have no logs from BL0492. Following are the msg when I toggle the switch and also try to a reference on the voltage and Watts from tools section.

    Info:CMD:[WebApp Cmd 'logfeature 7 1' Result] OK
    Info:CMD:[WebApp Cmd 'logfeature 7 0' Result] OK
    Info:MQTT:Channel has changed! Publishing 1 to channel 1
    Info:MQTT:Publishing val 1 to switch16A-1/1/get retain=0
    Info:CFG:####### Flash Save Channel 1 as 1 #######
    Info:MQTT:MQTT client in mqtt_incoming_publish_cb topic switch16A-1/1/get
    Info:MQTT:MQTT in topic switch16A-1/1/get
    Info:MQTT:MQTT topic not handled: switch16A-1/1/get
    Info:MQTT:channelSet NOT 'set'
    Info:NTP:Seconds since Jan 1 1900 = 3889764734
    Info:NTP:Unix time : 1680786734
    Info:NTP:Local Time : 2023/04/06 13:12:14
    Error:CMD:cmd LED_Map NOT found (args )
    Info:CMD:[WebApp Cmd 'LED_Map' Result] Unknown command
    Info:EnergyMeter:VoltageSet: you gave 230.000000, set ref to 0.000000
    Info:CMD:[WebApp Cmd 'VoltageSet 230' Result] OK
    Info:NTP:Seconds since Jan 1 1900 = 3889764795
    Info:NTP:Unix time : 1680786795
    Info:NTP:Local Time : 2023/04/06 13:13:15
    Error:CMD:cmd LED_Map NOT found (args )
    Info:CMD:[WebApp Cmd 'LED_Map' Result] Unknown command
    Info:EnergyMeter:PowerSet: you gave 8.000000, set ref to 0.000000
    Info:CMD:[WebApp Cmd 'PowerSet 8' Result] OK
  • #6 20527534
    p.kaczmarek2
    Moderator Smart Home
    Where are the TX, RX and BPS pins of BL0942 connected?
    OpenBeken - new BL0942 device is not receiving any data from energy meter

    BPS is used to select UART baud rate. Maybe your device is a non-standard one and has higher baud selected...
    Helpful post? Buy me a coffee.
  • #7 20527733
    thanos_kalos
    Level 6  
    Hello

    I found the following :

    BL0942 BK7231N
    tx -> GND
    RX -> TX
    BPS -> ??? No connection
  • ADVERTISEMENT
  • #8 20528393
    p.kaczmarek2
    Moderator Smart Home
    Are you sure? If BL0942 TX is shorted to ground, then it's not possible to get any result readings from BL0942....
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 20528943
    priorsoeren93
    Level 2  
    I have the same problem with the switch. I get 0 as well
    OpenBeken - new BL0942 device is not receiving any data from energy meter
  • #10 20528996
    p.kaczmarek2
    Moderator Smart Home
    Hello, do you get any BL0942 logs?
    OpenBeken - new BL0942 device is not receiving any data from energy meter
    Which software version?

    Here's how it looks like on my LSPA9:
    OpenBeken - new BL0942 device is not receiving any data from energy meter
    OpenBeken - new BL0942 device is not receiving any data from energy meter

    If you are not receiving data, then something must have changed in Tuya circuit. Please provide good quality photos and tell me how is BL0942 connected.
    Maybe someone can sketch a schematic?

    Maybe they changed default baud rate setting?
    Helpful post? Buy me a coffee.
  • #11 20529278
    thanos_kalos
    Level 6  
    Hello

    My switch is same as per https://www.elektroda.com/rtvforum/topic3965530.html (user piratee)
    I see he had also some issues to read the energy values (https://www.elektroda.com/rtvforum/topic3965530.html#20522075) .. Did he manage to get them displayed?
    I am still struggling to find a solution as I have still 0 on all energy values.
    Best Regards
  • #12 20529376
    p.kaczmarek2
    Moderator Smart Home
    Let's start with voltage, current and power. Do you get them read correctly?

    They are working for @piratee as far as I know. Are they?
    Helpful post? Buy me a coffee.
  • #13 20529813
    thanos_kalos
    Level 6  
    Hello

    I have 0 on all values.

    OpenBeken - new BL0942 device is not receiving any data from energy meter
  • #14 20529838
    p.kaczmarek2
    Moderator Smart Home
    The BL0942 driver works right now for my LSPA9 socket, so it must be a hardware issue.

    1. @thanos_kalos - do you get that sometimes in Web App log?
    
    Info:EnergyMeter:BL0942 received: 55 00 00 00 A2 8C 39 42 8F 00 00 00 00 07 00 00 4E 4E 00 02 01 00 74 
    


    2. @thanos_kalos
    thanos_kalos wrote:

    BL0942 BK7231N
    tx -> GND
    RX -> TX
    BPS - > ??? No connection

    it is not possible that TX is connected to GND. It would never work. If that's really on GND potential, then something is wrong.
    OpenBeken - new BL0942 device is not receiving any data from energy meter


    3. @thanos_kalos
    if you have time, you can also try some older release, idk, a release from about a two months ago or so, I don't know, but again, I don't think it's a firmware issue, but who knows...
    Helpful post? Buy me a coffee.
  • #15 20529923
    piratee
    Level 13  
    >>20529376
    Hi.
    My version with BK7231N with a chip on the board was damaged during testing. Now I have a Mini Smart DIY Switch I have with a chip on a board placed vertically.
    Without a probe, the power measurement on the Mini Smart DIY starts.
    OpenBeken - new BL0942 device is not receiving any data from energy meter
    Regards OpenBeken - new BL0942 device is not receiving any data from energy meter
  • #16 20530040
    p.kaczmarek2
    Moderator Smart Home
    @piratee which OBK version do you have? I am asking just to be sure.

    We need to figure out why BL0942 is not working for some users.
    Helpful post? Buy me a coffee.
  • #17 20530120
    piratee
    Level 13  
    @p.kaczmarek2
    I am currently using two versions:
    - Build on Apr 2 2023 09:24:14 version 1.15.643
    - Build on Apr 6 2023 10:49:30 version 1.15.660
    Power measurement was correct on both.
    Regards
  • #18 20530907
    thanos_kalos
    Level 6  
    Hello

    I have used 1.15.660 and 1.15.256 but still have zeroes.
    I start thinking that I might be facing a hardware issue. Unfortunately, I did not test the switch's energy values upon receiving with the Tuya app. I tested only the toggle functionality.

    Can I revert back to the original firmware so I can rule out any H/W related issues?

    Thanks for your support so far.
  • #19 20530911
    p.kaczmarek2
    Moderator Smart Home
    As I said, maybe they are using SPI or something else for that BL0942, who knows. A schematic would help a lot.

    Do you have original firmware backup?
    Helpful post? Buy me a coffee.
  • #20 20530987
    thanos_kalos
    Level 6  
    Hello

    I have no backup of the original. I was thinking of using the one from piratee.

    Can I upload directly from OTA ?

    Regards
  • #21 20531088
    p.kaczmarek2
    Moderator Smart Home
    I don't think that the following check will give us any meaningful results.
    We already know that current OBK works for @piratee but doesn't work for you. If you have different hardware configuration, then a flash backup from @piratee won't work for you anyway.
    You would need to have the original flash backup from your device. Then it would be helpful for us to see if original firmware works.

    In order to flash firmware backup, you would need to connect UART programmer. Then you can use BK7231 flash GUI tool, but only if you rename backup binary and put it into the firmware folder. Make sure to use proper chip type (T or N), or you might brick your chip. All other settings should be done automatically. Just select T or N.

    Another helpful thing may be a sketch of BL0942 connections. Is TX of BL0942 really shorted to ground?
    Helpful post? Buy me a coffee.
  • #22 20531161
    priorsoeren93
    Level 2  
    >>20530907
    OpenBeken - new BL0942 device is not receiving any data from energy meter

    I found the problem with me and it was a cold solder joint that arose when desoldering the cable for flashing. I just re-soldered the chip.
  • #23 20531171
    thanos_kalos
    Level 6  
    Hello

    Correction

    BL0942 BK7231N
    TX -> RX
    RX -> TX
    BPS -> ??? No connection

    Just noticed that the RX on BK7231N is on GND

    Regards
  • #24 20531192
    p.kaczmarek2
    Moderator Smart Home
    priorsoeren93 wrote:

    I found the problem with me and it was a cold solder joint that arose when desoldering the cable for flashing. I just re-soldered the chip.

    It certainly makes sense. Btw, for that kind of device, please put a PowerSave 1 in short startup command (use backlog if you need multiple commands), to reduce power consumption because cheapest devices have low quality power supplies that wear out quickly.

    thanos_kalos wrote:

    Just noticed that the RX on BK7231N is on GND

    If RX is really shorted to ground, then it's impossible for BL0942 to work. Please figure out where the short is. Something must be shorting RX line to ground.
    Did you program this device by wires?
    Helpful post? Buy me a coffee.
  • #25 20531222
    thanos_kalos
    Level 6  
    Hello

    Yes I did the flashing with wires since on using the CloudCutter I made the mistake and installed the T firmware instead of the N.
    I did re-solder the BK chip and managed to not have a short between RX and GND. Now for BL0942 TX -> RX and RX -> TX with no grounding.

    Now I have data.

    I suggest to close the topic.

    Thanks for your time and effort.

    Regards
  • Helpful post
    #26 20531251
    p.kaczmarek2
    Moderator Smart Home
    thanos_kalos wrote:
    Now for BL0942 TX -> RX and RX -> TX with no grounding.

    Do you get BL0942 logs in Web App now?

    If you get them now, maybe you just need to recalibrate.
    Helpful post? Buy me a coffee.
  • #27 20531261
    thanos_kalos
    Level 6  
    Works...

    OpenBeken - new BL0942 device is not receiving any data from energy meter

    Please close the issue.
    Sorry for the trouble. You are doing excellent work.

    Regards
  • Helpful post
    #28 20531265
    p.kaczmarek2
    Moderator Smart Home
    No problem, I am here to help, just remember to do a final calibration for Voltage, Current and Power.

    And don't forget about PowerSave 1 for devices with low quality power supplies.
    Helpful post? Buy me a coffee.
  • #29 20531280
    thanos_kalos
    Level 6  
    I did mess up with the soldering of the wires on the BK chip and shorted the RX with GND.

    A careful re-solder solved the issue.
  • #30 20531602
    p.kaczmarek2
    Moderator Smart Home
    It's important to check the soldering job with multimeter for shorts just after soldering, it's also worth to use some flux for soldering.
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around a user experiencing issues with a Power Monitor Switch 16A Wifi Smart Switch utilizing the BL0942 chip, which is not providing any data from the energy meter. The user confirmed the device's identification by opening the case and shared firmware versions tested. Various responses suggested checking the connections of the TX, RX, and BPS pins, as well as the baud rate settings. The user discovered that the RX pin was shorted to ground, which was resolved through careful re-soldering, allowing the device to function correctly and receive data. The importance of calibration and power-saving settings for devices with low-quality power supplies was also emphasized.
Summary generated by the language model.
ADVERTISEMENT