Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I don't see a HW: B1.5 of LYWSD03MMC mentioned, which I have. Do you know if it is also supported or not? #338

Closed
dzidza opened this issue May 10, 2023 · 13 comments

Comments

@dzidza
Copy link

dzidza commented May 10, 2023

These are relevant info from the logs:

Hardware Revision String: B1.5
Software Revision String: 0130
Firmware Revision String: 1.0.0_0130

Thanks

@pvvx
Copy link
Owner

pvvx commented May 11, 2023

Supported.
But they are rare and I did not make a complete test.

@dzidza
Copy link
Author

dzidza commented May 12, 2023

Thanks I'll give it a try then, and let you know if it all works.

@dzidza
Copy link
Author

dzidza commented May 12, 2023

It works great so far.
Using BTHome format, adjusting a different name, advertising interval, setting a bind key, and a few more tweaks, it all worked first try, and is logging as expected in HA.
The only strange thing I noticed is that after the flashing, it is now recognized as "Hardware Revision String: B1.6" instead of 1.5. not sure if that can cause a problem if I try to flash it again next time.

Anyway, thanks for the awesome job you did ;)

@jddonovan
Copy link

Photos of the 1.5 version since I couldn't find any. Manufactured December 2022. Bought few months ago.
B1 5

@pvvx
Copy link
Owner

pvvx commented May 18, 2023

Could you clarify what the "02" command will show on version B1.5?

Example (CGDK2):

image

image

This is necessary for the correct determination of B1.5. The firmware for all versions of LYWSD03MMC uses automatic detection of the sensor and the LCD controller. But I don't have 1.5 and I don't know what the components options are...


The version is determined by the addresses of the display and sensor on I2C

HW LCD I2C addr SHTxxx I2C addr Note
B1.4 0x3C 0x70 (SHTC3)  
B1.6 UART! 0x44 (SHT4x)  
B1.7 0x3C 0x44 (SHT4x) Test original string HW
B1.9 0x3E 0x44 (SHT4x)  
B2.0 0x3C 0x44 (SHT4x) Test original string HW

Version 1.7 or 2.0 is determined at first run by reading the HW line written in Flash.
Display matrices or controllers are different for all versions, except B1.7 = B2.0.


The command "05" shows the 'Sensor ID'...

@jddonovan
Copy link

jddonovan commented May 22, 2023

Old FW didn't show anything on "02", but after upgrading to 4.3 beta:

09:06:03: Settings 02 was send successful
09:06:04: Sensor: I2C addres 0x70, LCD driver: SPI or UART

09:06:53: Settings 05 was send successful
09:06:54: Sensor ID: 00000887

So if I read this right, it's basically the older sensor from B1.4 but using the LCD controller from B1.6. = new combination unique to B1.5

@dzidza
Copy link
Author

dzidza commented May 22, 2023

Yes, it's the same with my three devices.

8:52:18 AM: Settings 02 was send successful
8:52:19 AM: Sensor: I2C addres 0x70, LCD driver: SPI or UART

@Ircama
Copy link

Ircama commented May 22, 2023

Alternative query from the atc_mi_interface package:

python3 -m atc_mi_interface -c -icm A4:C1:38:AA:BB:CC

Check numbers:

...
19 Hardware Revision
...
21 Software Revision
...
2: Internal devices
...
3: I2C scan
...
85: Internal configuration
    firmware_version:
...

@pvvx
Copy link
Owner

pvvx commented May 23, 2023

Version 4.3 has built-in recognition of HW: B1.5.
There is no way to fully check - out of stock LYWSD03MMC with HW: B1.5

@jddonovan
Copy link

4.3 software now detects the version correctly:

14:38:24: Hardware Revision String: B1.5
14:38:24: Software Revision String: V4.3
14:38:24: Firmware Revision String: github.com/pvvx
14:38:24: Detected custom Firmware
14:38:29: Hardware Version: LYWSD03MMC B1.5, Software Version: 4.3, Sensor: SHTC3 (SHTV3)
14:38:29: Custom config HEX string: 55012000009004a97cb38a3c

Thank you!

@yousaf465
Copy link

How to check the revision from the packing or the thermometer itself?

@jddonovan
Copy link

How to check the revision from the packing or the thermometer itself?

You need to open the inside back panel with torx screws. Then you can see the revision number on the pcb board. The packaging will tell you the manufacturing time, but that's only loosely correlated with the revision version.

@yousaf465
Copy link

yousaf465 commented Jun 5, 2023

How to check the revision from the packing or the thermometer itself?

You need to open the inside back panel with torx screws. Then you can see the revision number on the pcb board. The packaging will tell you the manufacturing time, but that's only loosely correlated with the revision version.

image

My new ones are HW1.5 manufactured 2022

16:27:14: Hardware Revision String: B1.5
16:27:14: Software Revision String: 0130
16:27:14: Firmware Revision String: 1.0.0_0130

@pvvx pvvx closed this as completed Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants