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

[Feature request] Support for CGG1 possible? #41

Closed
MacSass opened this issue Feb 3, 2021 · 61 comments
Closed

[Feature request] Support for CGG1 possible? #41

MacSass opened this issue Feb 3, 2021 · 61 comments
Labels
wontfix This will not be worked on

Comments

@MacSass
Copy link

MacSass commented Feb 3, 2021

Hello, great firmware / solution you have build. Works perfectly - love it on my LYWSD03MMC.
Incredible what is possible and how a commercial product can be made so much better! Thank you!

I´m wondering if it was possible to add the CGG1 model. It seems to use the same type of encrypted advertisement in recent FW, but has a very nice e-paper display with low energy consumption.
Link to respective model here: www.aliexpress.com/item/1000008051178.html

Would love to see that supported. Thanks again for making and documenting all this for us.

Regards - MacSass

@pvvx
Copy link
Owner

pvvx commented Feb 3, 2021

Hi
There were like 2 models in round cases? And there is already enough trash ... :)

@atc1441
Copy link

atc1441 commented Feb 3, 2021

@MacSass as you kind of see in these FCC pictures https://fccid.io/2AQ3F-CGG1/Internal-Photos/Internal-Photos-3990168 the CGG1 uses an nRF52832 as SOC, that would mean a custom rom is a complete new project.
This also counts for other versions of the Xiaomi devices.

One other device i know that has an tlsr is the mosquito repellend

@pvvx
Copy link
Owner

pvvx commented Feb 3, 2021

.. that would mean a custom rom is a complete new project.

Everything has an SDK, datasheet, ...
If 2 people take on each type, then in a month everything from Xiaomi will be with non-standard firmware :)

@atc1441
Copy link

atc1441 commented Feb 3, 2021

@pvvx Thats true.

Only some ota update method could be harder to crack, but hardware update should work on all of them

@atc1441
Copy link

atc1441 commented Feb 3, 2021

"All have the same OTA connection coding."

The tlsr uses the Telink ota connection coding so i doubt it?!

@pvvx
Copy link
Owner

pvvx commented Feb 3, 2021

They all use their standard options. But binding and bindkey are similar.
So there is also OTA from mi.

@pvvx
Copy link
Owner

pvvx commented Feb 3, 2021

The advertising format is also described in detail:
https://iot.mi.com/new/doc/embedded-development/ble/ble-mibeacon
BLE MiBeacon protocol:
The broadcast message with the following information in the broadcast identifier is a broadcast conforming to the MiBeacon protocol:

"Service Data" (0x16) in advertising contains Mi Service (UUID: 0xFE95)
The "Manufacturer Specific Data" (0xFF) in the scan response contains the Xiaomi company identification code (ID: 0x038F)
Note: "advertising" or "scan response" are defined in a unified format.

Field Name Types of Length (byte) Mandatory (M) / Optional (O) Description
1 Frame Control Bitmap 2 M Control bit, see the specific definition in the table below
2 Product ID U16 2 M Product ID, unique for each type of product, pid need millet IoT Developer Platform applications
3 Frame Counter U8 1 M Serial number, used for de-duplication, different event or attribute reporting requires different Frame Counter
4 MAC Address U8 6 C.1 Device Mac address
5 Capability U8 1 C.1 Equipment capacity, see the following table definition for details
6 I/O capability U8 2 C.2 I/O capability. This field is currently only used for high-security BLE access, and only MiBeacon v5 is supported. It is only used before binding; when the binding is completed and an event is reported (such as door opening, door closing), this field is no longer needed. See the definition in the table below for details
7 Object U8 n (according to actual needs) C.1 Trigger events or broadcast properties, see Mijia BLE Object protocol for details
8 Random Number U8 3 C.1 If encrypted, it is a required field, combined with Frame Counter to become a 4-byte Counter for anti-replay
9 Message Integrity Check U8 4 C.1 If encrypted, it is a required field, MIC four bytes

and etc...

@MacSass
Copy link
Author

MacSass commented Feb 3, 2021

Ok guys,
I understand it is not so easy to integrate as I was hoping ... thanks for your feedback.
Xiaomi really has a huge portfolio of "smarthome" devices build up ...
Anyhow - I´ll order some more LYWSD03MMC if needed - they are cheap enough ..

Thanks - I´ll watch this to see if you cracsk come up with anything new, unfortunately I don´t consider my coding know-how advanced enough to attack those other devices ...

MacSass

@pvvx
Copy link
Owner

pvvx commented Feb 3, 2021

Anyhow - I´ll order some more LYWSD03MMC if needed - they are cheap enough ..

MHO-C401 more beautiful.
The rest - as it becomes available and in mood...
I'm waiting for Xiaomi to have PHY62x2. The nRF, EFR, Dialog, STM, Silicon Labs are boring to me.

@kelchm
Copy link

kelchm commented Feb 10, 2021

If anyone is interested in taking a look, I have some very early stage efforts for the CGG1 I'm documenting here. It hasn't made it to the wiki yet, but I have managed to at least dump the stock firmware.

PS: Thanks @pvvx for your work on the LYWSD03MMC 💯

@MacSass
Copy link
Author

MacSass commented Feb 10, 2021

Hi @kelchm ,
thanks for the update - that is interesting progress.
From you pictures I´m really hoping it will be able to OTA those devices too - dismanteling seems to be a hard job.
Unfortunately you guys are way more advanced than me, so I´m of no real help, but for sure I will be watching your progress :-)
Thanks for the work and update ...
Regards - MacSass

@pvvx pvvx added the wontfix This will not be worked on label Feb 14, 2021
@pvvx
Copy link
Owner

pvvx commented Feb 23, 2021

TLSR использует кодировку соединения Telink ota, поэтому я в этом сомневаюсь ?!

https://github.com/scooterhacking/mijia_ble_libs/tree/master/gatt_dfu
https://github.com/TuyaInc/tuya_smesh_sdk_tlsr825x_common/tree/master/includes/board/chip/telink_sig_mesh_sdk/sdk/vendor/common/mi_api/libs/gatt_dfu
...
Telink tlrs825x + mijia_ble_libs:
https://yadi.sk/d/g5fV7WD1EaUdRQ

@pvvx
Copy link
Owner

pvvx commented Mar 12, 2021

CCG1 "Qingping Temp & RH Monitor"


BT Address: 58:2d:34:11:c3:b2
Number of Services: 10
BT 4.2 Secure Connection: False
Device Connected: True
Service Name: GenericAccess
Service UUID: 00001800-0000-1000-8000-00805f9b34fb
Characteristic Name: DeviceName - User Description: - Handle: 2 - Value: Qingping Temp & RH M
Characteristic Name: Appearance - User Description: - Handle: 4 - Value: 00-00
Characteristic Name: PeripheralPreferredConnectionParameters - User Description: - Handle: 6 - Value: 14-00-28-00-00-00-E8-03
Service Name: GenericAttribute
Service UUID: 00001801-0000-1000-8000-00805f9b34fb
Characteristic Name: ServiceChanged - User Description: - Handle: 9 - Value:
Service Name: Battery
Service UUID: 0000180f-0000-1000-8000-00805f9b34fb
Characteristic Name: BatteryLevel - User Description: - Handle: 13 - Value: 64
Service Name: 00010203-0405-0607-0809-0a0b0c0d1912
Service UUID: 00010203-0405-0607-0809-0a0b0c0d1912
Characteristic Name: 00010203-0405-0607-0809-0a0b0c0d2b12 - User Description: OTA - Handle: 17 - Value: 00
Service Name: 00010203-0405-0607-0809-0a0b0c0d2b20
Service UUID: 00010203-0405-0607-0809-0a0b0c0d2b20
Characteristic Name: 00010203-0405-0607-0809-0a0b0c0d2b21 - User Description: Vendor - Handle: 21 - Value: 00
Service Name: 65173
Service UUID: 0000fe95-0000-1000-8000-00805f9b34fb
Characteristic Name: 4 - User Description: Version - Handle: 26 - Value: 1.0.1_0093
Characteristic Name: 16 - User Description: Authentication - Handle: 29 - Value:
Characteristic Name: 23 - User Description: ota_ctrl - Handle: 33 - Value:
Characteristic Name: 24 - User Description: ota_data - Handle: 37 - Value:
Characteristic Name: 25 - User Description: standard - Handle: 41 - Value:
Service Name: 00000100-0065-6c62-2e74-6f696d2e696d
Service UUID: 00000100-0065-6c62-2e74-6f696d2e696d
Characteristic Name: 00000101-0065-6c62-2e74-6f696d2e696d - User Description: STDIO_RX - Handle: 46 - Value:
Characteristic Name: 00000102-0065-6c62-2e74-6f696d2e696d - User Description: STDIO_TX - Handle: 50 - Value:
Service Name: 22210000-554a-4546-5542-46534450464d
Service UUID: 22210000-554a-4546-5542-46534450464d
Characteristic Name: 1 - User Description: - Handle: 55 - Value:
Characteristic Name: 2 - User Description: - Handle: 57 - Value:
Characteristic Name: 3 - User Description: - Handle: 60 - Value:
Characteristic Name: 4 - User Description: - Handle: 62 - Value:
Characteristic Name: 256 - User Description: - Handle: 65 - Value:
Service Name: Devicelnformation
Service UUID: 0000180a-0000-1000-8000-00805f9b34fb
Characteristic Name: ManufacturerNameString - User Description: - Handle: 69 - Value: Qingping Technology (Beijing) Co., Ltd.
Characteristic Name: ModelNumberString - User Description: - Handle: 71 - Value: CGG1
Characteristic Name: SerialNumberString - User Description: - Handle: 73 - Value: 1234
Characteristic Name: HardwareRevisionString - User Description: - Handle: 75 - Value: 0001
Characteristic Name: FirmwareRevisionString - User Description: - Handle: 77 - Value: 1.0.1_0093
Service Name: 6e400001-b5a3-f393-e0a9-e50e24dcca9e
Service UUID: 6e400001-b5a3-f393-e0a9-e50e24dcca9e
Characteristic Name: 6e400002-b5a3-f393-e0a9-e50e24dcca9e - User Description: - Handle: 80 - Value:
Characteristic Name: 6e400003-b5a3-f393-e0a9-e50e24dcca9e - User Description: - Handle: 82 - Value:


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

@kelchm
Copy link

kelchm commented Mar 13, 2021

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

Very interesting! I never would have expected there to be a newer revision of the CGG1 hardware that is using the TLSR8253 instead of the nRF52832.

@pvvx
Copy link
Owner

pvvx commented Mar 13, 2021

Very interesting! I never would have expected there to be a newer revision of the CGG1 hardware that is using the TLSR8253 instead of the nRF52832.

Nordic is a Norwegian company listed on the Oslo stock exchange.
Telink - China.
Mijia - China.
Xiaomi - China.
https://www.qingping.co/temp-rh-monitor/overview - China

nRF chip price > TLSR


https://github.com/pvvx/ATC_MiThermometer/blob/master/src/ble.h#L27-L28

@pvvx
Copy link
Owner

pvvx commented Mar 13, 2021

https://www.qingping.co/temp-rh-monitor/overview

One Button Cell Lasts 8 ~ 12 Months
* This product uses CR2430 battery, it normally lasts 8 ~ 12 months in indoor environments (data provided by Qingping lab). The actual standby time may differ depending on the environment and battery.

All batteries in the kits came discharged (less than 0.2 V).
Russian Winter. :)

@MacSass
Copy link
Author

MacSass commented Mar 13, 2021

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

Very interesting! I never would have expected there to be a newer revision of the CGG1 hardware that is using the TLSR8253 instead of the nRF52832.

Hi, unfortunately I don´t feel like I´m able to understand everything you guys are talking about ... so I have two questions:

  • Is there an easy way to see if CGG1 is of the TLSR8253 type or the older type?
  • Does using TLSR8253 make it easier for you guys to develop a custom firmware?

Regards - MacSass

@pvvx
Copy link
Owner

pvvx commented Mar 13, 2021

  • Is there an easy way to see if CGG1 is of the TLSR8253 type or the older type?

Round thermometers from Qingping are of two types - "H" and "M".
https://www.qingping.co/temp-rh-monitor/overview

Marking on the box -> https://pvvx.github.io/CGG1

https://aliexpress.com/item/1005001914179317.html

  • Does using TLSR8253 make it easier for you guys to develop a custom firmware?

TLSR8253 = TLSR8251 = TLSR8258 In the chip, the crystals are identical. The difference is in the plastic case.

As soon as there is free time, so will the firmware immediately. It is necessary to correct the procedures for working with E-inc.

@MacSass
Copy link
Author

MacSass commented Mar 13, 2021

  • Is there an easy way to see if CGG1 is of the TLSR8253 type or the older type?

Round thermometers from Qingping are of two types - "H" and "M".
https://www.qingping.co/temp-rh-monitor/overview

Marking on the box -> https://pvvx.github.io/CGG1

https://aliexpress.com/item/1005001914179317.html

So, from your links, is my understanding right:

  • "H" is the Homekit version and uses nRF chip, needs completely new reverse engineering
  • "M" is the Mi-Home version and uses TLSR8253 chipset. A TLSR8253 custom firmware would be easier for you, but requires some modifications due to e-ink display.

That would be great news ...

PS: You Ali-Express link goes to a LCD version, which again is something totally different from my point of view. I have an e-ink one and the display is way better compared to LCD ...

@pvvx
Copy link
Owner

pvvx commented Mar 13, 2021

I ordered it there:
https://aliexpress.ru/item/1005001914179317.html
"Xiaomi Bluetooth Temperature and Humidity Sensor Lite Version Data Storage Ink LCD Screen Thermometer Support Mi Home APP"

@pvvx
Copy link
Owner

pvvx commented Mar 13, 2021

  • "H" is the Homekit version and uses nRF chip, needs completely new reverse engineering

Unknown - These are Apple and HomeKit, which I do not support.

It is very difficult to disassemble CGG1 and if the firmware is not the same, then the user is doomed.
There is no way to reflash CGG1 with nRF chip via OTA yet.

  • "M" is the Mi-Home version and uses TLSR8253 chipset. A TLSR8253 custom firmware would be easier for you, but requires

The firmware from Xiaomi LYWSD03MMC will work, but there will be no indication on the display.

@MacSass
Copy link
Author

MacSass commented Mar 13, 2021

I ordered it there:
https://aliexpress.ru/item/1005001914179317.html
"Xiaomi Bluetooth Temperature and Humidity Sensor Lite Version Data Storage Ink LCD Screen Thermometer Support Mi Home APP"

Did you already receive it? Because the pictures show the LCD version (visible by the small darker grey area at the bottom, which the e-ink version does not have).
Also the descriptions says "Ink LCD screen" and the chinese often don´t take wording so serious, so unless you received it with e-ink already, I would guess this version is the LCD one, because it is also unusual cheap for a real e-ink version.

I ordered this one - with "real" e-ink:
https://www.aliexpress.com/item/32990058321.html
as you can see the picture looks different, no grey area at the bottom of the display.

I´ll hope you guys will be able to support that in the future, including the nice e-ink display ...

@pvvx
Copy link
Owner

pvvx commented Mar 13, 2021

image
All photos of one of them are here: https://pvvx.github.io/CGG1

@pvvx
Copy link
Owner

pvvx commented Mar 13, 2021

because it is also unusual cheap for a real e-ink version.

https://cleargrass.world.tmall.com/
image
It costs more with a sticker from Apple :)
HomeKit uses more power 👎
image

@pvvx
Copy link
Owner

pvvx commented Mar 13, 2021

From you pictures I´m really hoping it will be able to OTA those devices too - dismanteling seems to be a hard job.

There are two OTA functions on the device. From Telink and from Mijia.
Original OTA: https://github.com/pvvx/ATC_MiThermometer/blob/master/Original_OTA_CGG1_v1.0.1_0093.bin
Will be in TelinkMiFlasher new version 2.7:

20:41:54: Searching for devices
20:41:58: Connecting to: Qingping Temp & RH M
20:42:03: Detected Telink OTA service
20:42:03: Connected
20:42:04: Activating now, please wait...
20:42:07: Activation successfull
20:42:07: Received device infos are correct
20:42:07: Login successfull
20:42:55: File size: 100644 bytes
20:42:55: Count: 6291
20:42:59: Start DFU
20:43:42: Update done after 42.312 seconds
20:43:46: Disconnected.

@pvvx
Copy link
Owner

pvvx commented Mar 14, 2021

EPD Segments:
https://pvvx.github.io/CGG1/img/EPD_segments.gif

  • Beta version available for CGG1.

Three evenings after receiving the CGG1-M sensors, the first beta is ready. Publishing takes 90% of the time because I don't want to learn English.
Basic code with minor fixes works with EPD in CGG1 - there are more segments per character on the screen ...

When building the firmware OTA for original CGG1, the correct size is required at offset 0x18 and the checksum from Telink at the end of the binary code. Otherwise, CGG1 ignores the downloaded OTA.

Custom firmware consumes at default settings from 16 μA, original from 23 μA. These minimums are provided that the readings on the indicator do not need to be changed - the temperature and humidity do not change ... In the "custom" connection mode, it consumes dozens of times less. The graphs are provided at https://pvvx.github.io/CGG1

@kelchm
Copy link

kelchm commented Mar 17, 2021

So, from your links, is my understanding right:

  • "H" is the Homekit version and uses nRF chip, needs completely new reverse engineering

  • "M" is the Mi-Home version and uses TLSR8253 chipset. A TLSR8253 custom firmware would be easier for you, but requires some modifications due to e-ink display.

Unfortunately I don't think it's that simple -- I purchased the Mijia / M CGG1 in the US and received the nRF variant.

I'm guessing that you're much more likely to get the TLSR variant ordering directly from China as the stock will likely be newer, but probably still a bit of a game of chance.

@pvvx
Copy link
Owner

pvvx commented Apr 3, 2021

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).


@MacSass
Copy link
Author

MacSass commented Apr 3, 2021

Hi, is there any way for me to identify which version I have, without opening it, if I do not have the packaging anymore?

Are there outer differences or can I identify it by BT connection?

@pvvx
Copy link
Owner

pvvx commented Apr 3, 2021

Are there outer differences or can I identify it by BT connection?

There are no external differences. Absolutely.
It is perfectly possible if you poke the camera through the 2 mm battery compartment and look at the details of the board. You can use an x-ray.
This is probably done in order not to re-certify - sell new ones under the old FCC ID. (IMHO)

It is possible to distinguish in "nRF connect".
CGG1-M has a UUID from Telink : 00010203-0405-0607-0809-0a0b0c0d2b12.
The rest have UUIDs from Nordic DFU - 0xFE59.

@MacSass
Copy link
Author

MacSass commented Apr 3, 2021

Great - thank you, my X-Ray is currently broken :-) ... but I´ll try the nRF connect option.

Regards - MacSass

@MacSass
Copy link
Author

MacSass commented Apr 3, 2021

Ok, if I´m not mistaken, I would take it this is a CGG1-M with Telink, right?

thermo-25%

Looks like I was lucky? That one would be supported by alternative firmware with OTA flash, and the e-paper display would continue to work, right?

@kelchm
Copy link

kelchm commented Apr 3, 2021

Looks like I was lucky? That one would be supported by alternative firmware with OTA flash, and the e-paper display would continue to work, right?

Yep -- you should be good to go to flash with the TelinkMiFlasher. 👍

It look like it's turning out to be quite easy to pick up these Telink based versions. The second one I ordered from China arrived today with a box dated 2021.01, and as expected is indeed the Telink variant. For this one, I ordered the For Mijia App option from this listing -- obviously YMMV for anyone that chooses to also order from here.

IMG_2472

@pvvx
Copy link
Owner

pvvx commented Apr 3, 2021

It look like it's turning out to be quite easy to pick up these Telink based versions. The second one I ordered from China arrived today with a box dated 2021.01, and as expected is indeed the Telink variant. For this one, I ordered the For Mijia App option from this listing -- obviously YMMV for anyone that chooses to also order from here.

It looks like "2020 new H version" is also on Telink.
image

Need firmware H versions for OTA tests...


When building a test for 825x_sdk_homekit from Telink, a binary file of more than 128 kilobytes is released. This means that OTA in the current version of the BLE SDK from the Ai-Thinker repository is not suitable.
Flashing from old custom BLE firmware to HomeKit version may require two OTA steps.


A similar situation with the SDK option with ZigBee. Minimum size Firmware for ZigBee:

Bin Size Flash  142796 bytes
Total Used SRAM : 24156 from 65536
Total Free SRAM : 8 + stack[41380] = 41388 

CGG1 has a button and it's easier to implement ZigBee ...


There is an option and 2 firmware switched by button: ORIGINAL / CUSTOM or BLE/ZigBee.
But in this variant, there is a limit in the size of the measurements in flash. It is possible to use the existing measurement record format from the original...

@kroon040
Copy link

I also tried TelinkOTA, but after clicking "Start Flashing"

TelinkOTA not work in CGG1-M. This is a program for OTA projects with Telink SDK, no third-party (mijia) protections.

The atc1441 TelinkFlasher will not work with the CGG1-M (and many others). The data is not signed correctly and when connecting it expects a UUID that CGG1-M does not have.
The correct signature for the binary OTA firmware file is put by the utility from the Telink SDK, and not from the Ai-Thinker-Open Telink_825X_SDK (!): https://github.com/pvvx/ATC_MiThermometer/tree/master/utils
All original OTA files (Xiaomi LYWSD03MMC, MHO-C401, CGG1-M, ...) are signed with this particular utility.
There is no such thing for Linux.
The size of the binary file must be correctly specified in the bootloader header (and have 0xXXXX4).

Use https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html and act consistently...

What is the correct way of flashing? I found the CGG1_v31.bin file but how , it doesn't work with activate.

@pvvx
Copy link
Owner

pvvx commented Apr 27, 2021

Use https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html and act consistently...

What is the correct way of flashing? I found the CGG1_v31.bin file but how , it doesn't work with activate.

All Ok.
To activate, press the button before connecting. Described in the standard instructions for CGG1-M.

00:42:05: Searching for devices
00:42:10: Connecting to: Qingping Temp & RH M
00:42:15: Detected Telink OTA service
00:42:15: Connected
00:42:18: Activating now, please wait...
00:42:20: Activation successfull
00:42:21: Received device infos are correct
00:42:21: Login successfull
GraphOriginal
00:42:24: Load firmware file 'CGG1_v31.bin'...
00:42:25: File size: 64148 bytes
00:42:25: Count: 4010
00:42:27: Start DFU
00:42:52: Update done after 24.112 seconds
00:42:56: Disconnected.

@kroon040
Copy link

Use https://pvvx.github.io/ATC_MiThermometer/TelinkMiFlasher.html and act consistently...

What is the correct way of flashing? I found the CGG1_v31.bin file but how , it doesn't work with activate.

All Ok.
To activate, press the button before connecting. Described in the standard instructions for CGG1-M.

00:42:05: Searching for devices
00:42:10: Connecting to: Qingping Temp & RH M
00:42:15: Detected Telink OTA service
00:42:15: Connected
00:42:18: Activating now, please wait...
00:42:20: Activation successfull
00:42:21: Received device infos are correct
00:42:21: Login successfull
GraphOriginal
00:42:24: Load firmware file 'CGG1_v31.bin'...
00:42:25: File size: 64148 bytes
00:42:25: Count: 4010
00:42:27: Start DFU
00:42:52: Update done after 24.112 seconds
00:42:56: Disconnected.

Tnnx, I got it working.

@sermayoral
Copy link

sermayoral commented Apr 29, 2021

Hi everybody.

I has the ClearGrass versión (UUID 00010203-0405-0607-0809-0a0b0c0d1912) that it doesn't work: #81

Waiting for a hope to find a solution to hack this model :-).

If I can help in some way. Default advertising interval for this model is more than horrible...

@yerkanian
Copy link

Just to clarify the activation/flashing procedure for the new CGG1-M (with GOOSEM20XXXXXXX 106308/00096720 or similar markings and production date 2020.03) once again:

Press and hold the button on the back of CGG1-M for 2 seconds until the Bluetooth icon starts blinking on the e-ink display, and then click the 'Connect' and 'Do Activation' buttons on the TeLink Flasher. Took me an hour to figure out why the activation was timing out...

Once again, great job on the firmware, @pvvx!

@kelchm
Copy link

kelchm commented May 13, 2021

FYI -- it looks like the new CGG1 'M' is now available from Amazon in the US. I ordered one the other day and while not as new as those I've ordered directly from China, its still new enough to be the telink variant.

@przemhb
Copy link

przemhb commented Nov 10, 2021

I've just received "ClearGrass Temp & RH Monitor M Version", production date 2020.01. It came with FW version 1.1.2_0020.
TelinkMiFlasher returns an error "NotFoundError: No Services matching UUID 00010203-0405-0607-0809-0a0b0c0d1912 found in Device." nRF Connect among UUIDs shows 0xFE59.

Correct me if I am wrong, but it seems it is yet another variant - marked as CGG1-M, but in fact an old CGG1.

@pvvx
Copy link
Owner

pvvx commented Nov 11, 2021

nRF Connect among UUIDs shows 0xFE59.

UUID from Nordic DFU - 0xFE59
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fgroup__nrf__dfu__ble.html

@Stephan3
Copy link

Hey i bought a few devices within the last two years from different Sources and got lywsdcgq/01zm everytime. I opened one to share pictures here. I like the idea this project broadcasts the data.

IMG-0779
IMG-0780
IMG-0781
IMG-0782
IMG-0783

I havent found the information here if its supported allready. the webflasher had not connected to it. I have about 10 here ready to brick.

@Bitman-GR
Copy link

From the chip details , it seems to be a Nordic chip inside ( nrf51822 ) , not Telink !
This could be perhaps detected also with UUID info from nRFconnect app as stated previously .

@V4n1X
Copy link

V4n1X commented Sep 10, 2022

Hey i bought a few devices within the last two years from different Sources and got lywsdcgq/01zm everytime. I opened one to share pictures here. I like the idea this project broadcasts the data.

I havent found the information here if its supported allready. the webflasher had not connected to it. I have about 10 here ready to brick.

I have also one here, the hoping for a support maybe in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests