-
Notifications
You must be signed in to change notification settings - Fork 209
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
Meawow MHO-C122 (2AWMOMHOC122) support #339
Comments
I have purged also 5 of these. Would be nice to flash firmware or to advertise ble so HA could pick these up. I will follow this topic with interest. |
I have also a couple of these and it would be nice if we can flash them to use with HA |
same here! hope someone can figure this out.. |
I'm interested in this too, can't get them connected to HA |
I've made some progress. I have made a little programmer jig with a CH340 I'm able to readout the flash contents of the MCU. Original_Firmware_MHO_C122.zip Using this schematic/instruction:
Things I have learned
|
Good job! |
I will use your findings and will try out to replicate it, have all tools
needed.
Do you think we can flash the same firmware without any modifications?
Op za 20 mei 2023 15:04 schreef 'Fabje' via Info Fwd ***@***.***>:
… I've made some progress. I have made a little programmer jig with a CHD340
I'm able to readout the flash contents of the MCU.
I should be able to program the unit with new firmware, But I haven't
tried (yet).
You only need the three connection pads on the right of the PCB.
Original_Firmware_MHO_C122.zip
<https://github.com/pvvx/ATC_MiThermometer/files/11522404/Original_Firmware_MHO_C122.zip>
Using this schematic/instruction:
https://github.com/pvvx/TlsrComSwireWriter#telink-swire-simulation-on-a-com-port
- VCC is connected to the RTS to be able reset the MCU
- The PCB is clamped between a dual-row header (and some cardboard
stuff) This provides exact spacing and does not require soldering to the
PCB.
[image: programmer setup]
<https://user-images.githubusercontent.com/5355001/239688451-11ec291e-c1a9-4074-9a03-e5854d525268.jpg>
Things I have learned
- The silkscreen labels on the PCB can be deceiving. Reset is not the
MCU reset, but just an IO pin.
- You cant use the programmer scripts from a Virtual machine, WSL or a
docker container. The timing becomes too unstable.
- A full readout on the flash takes about 15 minutes. (for 512KB) But
hey, I'm glad it works without buying an expensive programmer.
- This command worked best for me: \python.exe TLSR825xComFlasher.py
-p COM23 -t 70 rf 0 0x80000 firmware_download.bin
—
Reply to this email directly, view it on GitHub
<#339 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGCTINEOKOWBNB7TTWOZHUDXHC6MTANCNFSM6AAAAAAYAOVNRI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Some progress was made. I managed to flash the ATC_v42.bin. and the good news is that bluetooth works. I tried some other firmwares and these are the results:
Things I Learned
@pvvx Is there a way to easily identify the LCD segment layout? Like flash each segment one by one? |
Control function ID when connected
6001020304... Creates a bit-map similar to the one shown here - epd_mho_c401n.c |
Cut OTA file (CRC ok) -> https://github.com/pvvx/ATC_MiThermometer/blob/master/Original_OTA_MHO_C122_tuya.bin This OTA file has a size of more than 128 kilobytes. |
The latest versions of Tuya BLE transmission of advertising packages with sensor data. "LocalTuya integration" in the "HA" misleads users by not indicating that BLE is not supported. |
What is the address of the LCD controller? And how are things with Tuya OTA? |
I recorded the firmware MHO-C122 in Xiaomi LYWSD03MMC (HW: B1.4). Registered in "Smart Life": Average Power: nRFConnect (advertising): https://iot.tuya.com/ (Registration in the cloud is free for all your devices registered in "Smart Life". All encryption keys are available.)
OTA is present. I haven't figured out how to program and where the keys are in the cloud yet... |
|
Added a test version of MHO-C122. |
Whoops. I guess i was really still sleeping...
Thanks so much! I just can't find the time... |
To complete work with MHO-C122(C121), an OTA is required. |
The description of the OTA protocol is in the cloud. But you need to register. https://developer.tuya.com/en/docs/iot-device-dev/OTA_BLEIt seems to give out all the keys. It remains to understand the encryption method. |
https://developer.tuya.com/en/docs/iot-device-dev/OTA_BLE?id=Kawer1ehuv8si seems freely available to me. |
Full sample of Telink SDK Tuya. But this is an old version of Tuya. Was available on Telink official website earlier. |
There is still a lot to figure out.
I didn't find anyone doing this. Disassembled the old version and with Wi-Fi. I haven't seen anyone who could handle the new version of Tuya. PS: And for the whole summer I usually take a break from working at computers... |
I found the source package tuya_ble_sdk_Demo_Project_tlsr8253 in the archive.
|
I think the most beneficial one is to "update" from stock tuya firmware to "atc firmware"
You should definitely do that too :) |
I've been running this firmware: https://github.com/pvvx/ATC_MiThermometer/raw/20a087dcc2c234f48790ee618d7273444288a2b9/MHO_C122_v43.bin on three units now for two weeks. For the initial firmware update a programmer is needed. |
Thanks mate, will try with a battery and let you know the results |
USBCOMFlashTx is the easiest option when there is nothing more....
|
Tried on breadboard yesterday with ch340 of wittyboard gnd sws and rst connected, but cant seem to flash new firmware.. do i need to set it in flash mode somehow? Every try i did it still had original firmware afterwards |
What I did:
Still nothing seems to happen - please let me know if there are any further ideas. Thanks a lot for your support! |
I was struggling a bit to get this to work since I think python on my Mac is giving some troubles. Also, I see a different way of connecting the devices, I havn't been using resistors and not sure how to do this. Let me know if this is absolutely a necessity and I will check this direction... |
Yes, programming mode is achieved by sending a "magic sequence" on the SWS line.
Well it is not an absolute necessity, but the "TX only" method, is a bit risky. With the resistor (and the RX line connected) the Python script from this repository is able to receive the reply from the micro-controller and check if it has accepted the data or not. To all of you, I had a lot of struggles getting this to work either. It is simulating a (expensive) programmer on cheap hardware. So it is all a bit "tongue at the right angle" and hoping it works stuff. |
Thanks mate, seems a bit more complex than I initially thought. I will give it another shot next weekend, but for now I'll leave it. I also hope the OTA will appear in a few months, seems to be my best bet ;-) |
Hi all, Just for my understanding. Can I already use the BLE updater for the C122 ? Thanks all for you efforts on this project. |
I will start considering the OTA option (firmware update via Bluetooth) only after the end of summer, when we run out of warm weather. |
Hi! It's been pretty chilly lately, any chance of a Ota update for these? :) |
You forgot about the second point of the conditions. |
Nice work so far. I got two of c122 flashed. They work and can connect with smart life from tuya! After a minute or two they go offline and don't report their status anymore untill i remove the battery and readd them in the app. Just wondering if we can expect zigbee because that is something thats not dependend on the smart life app and online access. Next to that it would be easy to integrate into home assistant. Was looking at https://github.com/pvvx/ZigbeeTLc but don't seem to get it to work Anyway thanks so far! |
What didn't work? |
@pvvx I was able to flash with https://pvvx.github.io/ATC_MiThermometer/USBCOMFlashTx.html and the tuya binary. I couldnt flash the zigbee binary using the same url. How should I flash with the zigbee version ? |
This is for TH05? |
MHO-С122 TH05 - > SoC: PHY6222QC-W04I - Doesn't have an SDK for GCC. Only commercial version of the compiler. |
@pvvx это не оно? https://github.com/SoCXin/PHY6222 |
No. This is the SDK from the PHY website shown earlier in the link. https://github.com/SoCXin/PHY6222 использует Keil_v5\UV4\UV4.exe |
Hi @pvvx I am a bit lost of the flasher pages give me a What am I doing wrong (am I doing something wrong?) |
@pvvx same issue. Give a Not found Telink OTA service! |
TelinkMiFlasher does not work with the original Meawow MHO-C122 firmware. Firmware is carried out using wires... |
Ok
I did the flash using wires. After flashing tuya app sees the device but
TelinkMiFlasher still don't work after and gives the same message like
before.
…On Sun, Dec 24, 2023, 13:04 Victor ***@***.***> wrote:
TelinkMiFlasher does not work with the original Meawow MHO-C122
<https://pvvx.github.io/MHO_C122/> firmware. Firmware is carried out
using wires...
Further OTA will work in TelinkMiFlasher.
—
Reply to this email directly, view it on GitHub
<#339 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKZTDY5V3SV2CFW7Q7CN733YLAK37AVCNFSM6AAAAAAYAOVNRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRYGUYDANJRGQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Introduction
Recently I acquired a few of the Meawow MHO-C122 (2AWMOMHOC122) sensors for a bargain price.
Hoping I was able to scrape the sensor data from the advertisement or basic readout of some characteristics.
Long story short, with the default firmware: Data is not advertised, Readout is only on a proprietary protocol, you can only connect over Bluetooth when you just inserted the battery.
I tried if the OTA update page of this project had any luck but unfortunately not. The published characteristics are nowhere near what the default Xiaomi units publish.
Opening up the unit I saw the PCB with almost identical setup/components as the Xiaomi units.
No wonder as these are produced by the same company (I believe)
Giving me the Idea if with maybe some minor tweaks the software of this project can be run on those units as well.
This issue will be my little blog/progress report. Feel free to help out if you have anything to add.
Meawow MHO-C122 (2AWMOMHOC122)
https://meawow.com/product/thermo-hygrometer/mho-c122/
Exteriour
The unit LCD/casing is identical to the MHO-C101
Interiour
I took the following pictures of the PCB
Front:
Back:
On that we can see the (familiar)
MCU: TLSR8251F512ET24
LCD: IST3055NA0
Sensor: (Probably) SHTV3
Software
The default software gives the following log when connecting with the nRF Connect app.
meawow connection log.txt
ToDo List
The text was updated successfully, but these errors were encountered: