-
Notifications
You must be signed in to change notification settings - Fork 28
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
MHO-C122: No info on LCD #109
Comments
I don't have MHO-C122 and have no way to check its functionality. You are the only owner of MHO-C122. :)
On cold start, pin PB6 = PULL_UP https://github.com/pvvx/ZigbeeTLc/blob/master/src/board_mho_c122.h#L39 As a result, the command The display controller is similar to LYWSD03MMC (B1.4, B1.7, B2.0). The only difference is the LCD panel segments. Another difference is that LYWSD03MMC I2C bus frequency set higher. To optimize consumption. Zigbee firmware has a function to turn off the display. It is advisable to check whether the display is on or not. |
Thanks for your response.
It was confirmed as successful
But no change unfortunately.
On the PCB I can not identify any diode or resistor. Only capacitors and a few inductors: https://pvvx.github.io/MHO_C122/ But apart from that, the I2C speed is still configured at 100 Khz as far as I can see. So that should not be a problem. Unfortunately I am quite limited in my debug options here. (I don´t have a debugger) or any connection points to connect a logic analyzer to the I2C bus.
When porting the MHO-C122 I just flashed the LYWSD03MMC and by trial and error I was able to map the LCD. If I may make a suggestion/request: If you have some spare time, could you maybe load the MHO-C122 build into your LYWSD03MMC and see if any LCD segments come up? |
Error found. When copying from BLE, the variable name "lcd_i2c_addr" was not changed to "i2c_address_lcd". In https://github.com/pvvx/BZdevice the files are similarly corrected. |
Great work @pvvx ! After flashing the latest binary it didn't work for me. I think the erase all flash in combination with the new SW did the trick. (Maybe the display was disabled after my tinkering to change the settings) |
After a week it is still working fine 👍🏻 I have one feature/functionality suggestion. Maybe it is an idea to use: " For (also for BZdevice) you would be able to see which one is connected. LCD's that don't have the symbol can just use the |
I've updated one of my MHO-C122 to the ZigBee firmware as a test.
After the upgrade there is nothing on the LCD.
I think the MCU is running OK, as I can pair it with ZHA and I get regular updates.
I did a quick diff between the ZigBee LCD driver:
https://raw.githubusercontent.com/pvvx/ZigbeeTLc/master/src/lcd_mho_c122.c
and the BT LCD driver: https://raw.githubusercontent.com/pvvx/ATC_MiThermometer/master/src/lcd_mho_c122.c
I noticed some differences.
The big question is: Should this be working (theoretically) or is the LCD not implemented yet in this beta firmware?
Upgrade log:
(Maybe to refresh your memory, I added the LCD driver for the MHO-C122
The BLE firmware is still working very well!))
The text was updated successfully, but these errors were encountered: