ATC_MiThermometer icon indicating copy to clipboard operation
ATC_MiThermometer copied to clipboard

Values on CGG1 doesn't updates

Open rosiste opened this issue 2 years ago • 33 comments

Hi, after flashed 3.7 firmware to the new device, I'm able to read values in TelinkMiFlasher web page and ESPHome & Home Assistant. Unfortunately, the display always shows the same values (25.4 C and 34.3%), which do not change. Even the settings changes in TelinkMiFlasher (such as changing C / F units, the battery status) has no change on display. Before uploading the firmware, the thermometer ran fine with the default firmware for several days and displayed the values correctly. Returning the original firmware also did not help. The button also seems to work normally. Any clue?

rosiste avatar Mar 28 '22 17:03 rosiste

I have the Same Problem.

sangandi avatar Apr 11 '22 19:04 sangandi

Identical issue here as well.

ewysong avatar Apr 19 '22 20:04 ewysong

Even worse, I flashed the original firmware "Original_OTA_CGG1_v1.0.1_0093.bin" back on to it and it appears bricked now. Still no change on screen, and not showing up as a Bluetooth device to connect to...

ewysong avatar Apr 20 '22 02:04 ewysong

Same issue... @pvvx

marciogranzotto avatar May 09 '22 15:05 marciogranzotto

I have a theory... Looks like my unit has a "Threat" icon between the BLE and Battery icons: image

Maybe this version has a different way to communicate with the e-ink display?

Here are some more pictures of my unit: image image image

marciogranzotto avatar May 09 '22 17:05 marciogranzotto

Maybe this version has a different way to communicate with the e-ink display?

This will be the 5th version of CGG1 (4th under one FCC certificate! i.e. without radio control checks :) )

CGG1 variants produced by Qingping.co (ClearGrass)

CGG1-old ver1, Confirmed FCC ID: 2AQ3F-CGG1 https://pvvx.github.io/CGG1_old nRF52810 Chipset. It has a small Flash in the nRF52810 chip, an additional SPI-Flash is used for OTA - Limited in functionality. The minimum SDK code (BLE SoftDevice) from Nordic is 80% Flash. Terrible economy on details. Lack of any recommended elements for stable operation of nRF52 chips from battery. Underestimated RF transmission power. Cheaper temperature and humidity sensor SHT30 (due to the high cost of NRF52). Production 2018 Increased cost because a chip from Nordic is used. Alternative firmware is in development. Will not be in this repository.

CGG1-? ver2, Unknown FCC ID. https://github.com/kelchm/cgg1-thermometer-firmware nRF52832 Chipset. Terrible economy on details. Lack of any recommended elements for stable operation of nRF52 chips from battery. Underestimated RF transmission power. Production 2018..2019 ? Increased cost because a chip from Nordic is used and Mijia. Has no alternative firmware capabilities.

CGG1-M ver3, has an official fake FCC ID: 2AQ3F-CGG1 https://pvvx.github.io/CGG1 TLSR8253 Chipset. The workmanship is better than previous models. SDK (BLE) code takes up less than 1/10 of the internal Flash. Additional circuitry of additional elements for better and long-term stability from battery. It is possible to increase the RF transmission power. Improved temperature and humidity sensor SHTV3. Production 2020+ The cost is much lower (¥ 99.00), because the chip used is not Nordic, but the Chinese Telink. Alternative firmware option, including ZigBee options (in development). There is also an SDK for Apple HomeKit (I don't support it).

CGG1-H ver4, Confirmed FCC ID: 2AQ3F-CGG1H nRF52xxx Chipset. Terrible economy on details. Lack of any recommended elements for stable operation of nRF52 chips from battery. Underestimated RF transmission power. Production 2020+ Increased cost because a chip from Nordic is used and Apple HomeKit (¥ 169.00).


pvvx avatar May 09 '22 20:05 pvvx

More picture from internals: image

image

image

image

image

marciogranzotto avatar May 10 '22 03:05 marciogranzotto

Identical issue here. Haven't disassembled the device but according to all external annotations (box and device) it is the same as the one in the pictures.

I'm thinking of getting the original firmware from a new device. Is there a way to dump the firmware OTA?

masdeseiscaracteres avatar May 27 '22 08:05 masdeseiscaracteres

Make a Flash backup

  1. Using TelinkMiFlasher.html download 'BLE-Hacker.bin'
  2. Using TLSR825xOTA_Hacker.html, connect to the appeared device "BLE_xxxxxx"
  3. Restore original firmware boot: "Change Start Boot" key. (Do it once!)
  4. Read All Flash to File: "Read Full Flash" and "Save to File".
  5. Close 'TLSR825xOTA_Hacker.html'.

Share FullFlash.bin in the public domain. I will cut OTA_xxx.bin out of it.

PS: The details: https://github.com/pvvx/TLSR825x_OTA_Flash_Hacker

And look at issues

pvvx avatar May 28 '22 17:05 pvvx

The e-ink display is updating again (with the original firmware)!

Finally I followed a different path, but thanks for the info anyway!

This is what I did:

  1. Download the latest official firmware. I got it by looking at the URL that the Qingping+ app is using. I provide more details in #222.
  2. Updated the firmware using TelinkMiFlasher.html.
  3. Take the battery off for a couple of minutes.
  4. Insert the battery back and voilà!

masdeseiscaracteres avatar May 29 '22 14:05 masdeseiscaracteres

Thank you @masdeseiscaracteres !! I managed to revive my unit with that file

marciogranzotto avatar May 30 '22 04:05 marciogranzotto

Finally got the new CGG1-M variant (2022/01). When free time, I need to break the case and get a dump from the new E-Ink controller...

CGG1-M 2020, 2021

CGG1-M 2020, 2021

CGG1-M 2022

CGG1-M 2022

pvvx avatar Jun 23 '22 19:06 pvvx

Added beta version for CGG1-M 2022...

pvvx avatar Jul 02 '22 01:07 pvvx

@pvvx https://github.com/pvvx/ATC_MiThermometer/commit/2a92f1ac511a304bcd2d7b9657e2c3479e4aca43#r78018682

marciogranzotto avatar Jul 08 '22 13:07 marciogranzotto

Interestingly my units match the pictures posted by @marciogranzotto exactly, but I have never seen the Thread icon active between the bluetooth and battery icons.

I was able to restore the original firmware finally and then flashed the beta version. It now displays in Celsius only, and clicking the button on the back does not switch to displaying in Fahrenheit.

Trying to reconnect to it after that initial flash doesn't seem to work:

12:47:34 PM: Disconnected.
12:47:34 PM: Searching for devices
12:47:36 PM: Connecting to: CGG_142D82
12:47:36 PM: NotFoundError: No Services matching UUID 0000fe95-0000-1000-8000-00805f9b34fb found in Device.
12:47:36 PM: Reconnect 1 from 5
12:47:36 PM: NotFoundError: No Services matching UUID 0000fe95-0000-1000-8000-00805f9b34fb found in Device.
12:47:36 PM: Reconnect 2 from 5
12:47:36 PM: NotFoundError: No Services matching UUID 0000fe95-0000-1000-8000-00805f9b34fb found in Device.
12:47:36 PM: Reconnect 3 from 5
12:47:36 PM: NotFoundError: No Services matching UUID 0000fe95-0000-1000-8000-00805f9b34fb found in Device.
12:47:36 PM: Reconnect 4 from 5
12:47:36 PM: NotFoundError: No Services matching UUID 0000fe95-0000-1000-8000-00805f9b34fb found in Device.
12:47:36 PM: Reconnect 5 from 5
12:47:36 PM: NotFoundError: No Services matching UUID 0000fe95-0000-1000-8000-00805f9b34fb found in Device.
12:47:36 PM: Something went wrong, too many reconnects

ewysong avatar Jul 11 '22 16:07 ewysong

12:47:36 PM: NotFoundError: No Services matching UUID 0000fe95-0000-1000-8000-00805f9b34fb found in Device.

Have you flashed the firmware: 'CGG1M_v37c.bin'? If yes, then your BT adapter is the problem. Your adapter does not update the attributes of the device, but uses some past MAC-bound ones. You should reboot the adapter or the entire system.


I was able to restore the original firmware finally and then flashed the beta version. It now displays in Celsius only, and clicking the button on the back does not switch to displaying in Fahrenheit.

The display type is switched in TelinkMiFlasher.html.


In custom fw, the button is used to send a press/release event to Home Assistant and the like. In Home Assistant, an action is assigned to a button, for example: turn on / off the light ... Select in TelinkMiFlasher.html: image

pvvx avatar Jul 11 '22 18:07 pvvx

I was able to flash the firmware 'CGG1M_v37c.bin' to it. Even after I disabled/re-enabled the BT adapter, and restarted the entire system, it was unable to connect again. A completely different computer was able to however.

I did set the PinCode in TeLink Flasher on one of the three I have to try to keep them more secure. Now I'm unable to reconnect to that one. I do not get a prompt for a pin code when trying to pair. I've tried on a Ubuntu and Windows computers, and two Android devices. Two of which had never connected to it before. Is there a way to factory reset that one? Should I open a new issue for it?

Also noticed for the 3 options under "Management GPIO_RS (Reed Switch)" you posted above one is called "Couner". Not sure what that is, unless it's a typo for Counter (but not sure what Counter would do?).

ewysong avatar Aug 11 '22 22:08 ewysong

In "CGG1M_v37c.bin" there is a bug with WDT that affects the work with pincode. Fixed in "CGG1M_v37d.bin".

pvvx avatar Aug 16 '22 20:08 pvvx

@pvvx Thanks! Is there a way to reconnect to the one I set the PIN code on, or am I permanently locked out of it?

ewysong avatar Aug 17 '22 02:08 ewysong

Unfortunately, if a pin code was entered, then only through hardware programming. The USB-COM adapter writes the firmware in explorer. Web version. USBCOMFlashTx.html Connect only TX-SWS and GND wires. Pin SWS: sws

pvvx avatar Aug 17 '22 21:08 pvvx

New "CGG1T" out? FCCID:2AQ3F-CGG1T

pvvx avatar Feb 15 '23 05:02 pvvx

New "CGG1T" out? FCCID:2AQ3F-CGG1T

Can't quite see what's the IC being used in their internal photos, but looks like "??2840" image

marciogranzotto avatar Mar 01 '23 18:03 marciogranzotto

Do somebody still have the TLSR8 HomeKit SDK (825x_sdk_homekit) saved? It looks like that telink has removed it from its website :(

gazsiazasz avatar Sep 23 '23 03:09 gazsiazasz

https://disk.yandex.ru/d/3kBmFHgHLeve4g

pvvx avatar Sep 24 '23 03:09 pvvx

Hi guys, thanks for the amazing work so far. What are your expectations about supporting the new T revision: CGG1T? The above PCB posted by @marciogranzotto looks really similar to the previous revisions.

I am asking because I am about the order that version. The added Thread support is a valuable addition for me, since it seems to use less battery compared to Bluetooth.

Saeverix avatar Nov 06 '23 12:11 Saeverix

@pvvx Is CGG1-M 2022 now supported on master?

swiergot avatar Dec 06 '23 12:12 swiergot

https://github.com/pvvx/ATC_MiThermometer

https://pvvx.github.io/CGG1/

pvvx avatar Dec 06 '23 12:12 pvvx

Sorry, took a wrong binary...

swiergot avatar Dec 06 '23 12:12 swiergot

I have several CGG1s from different years. Now they all have firmware v2.2.1. If I flash the latest firmware v47 on the devices I just bought, then everything works. If I flash the version that I bought a couple of years ago, they stop updating the screen. At the same time, they continue to send data packets normally and connection with them via Chrome is possible. As well as flashing back to version v2.2.1

They have the same back cover.

This is working cover: image

This is not working cover: image

Nikolay-Ch avatar May 05 '24 09:05 Nikolay-Ch

Hi, @pvvx - are there any workarounds? Or will I not be able to run firmware 4.6 on my devices?

Nikolay-Ch avatar May 08 '24 09:05 Nikolay-Ch