question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WB3L - Calex E27 A60 RGBCCT 429004.1 v2.0 Light Bulb

See original GitHub issue

Hi, This is the dump of the bulb that once used to have an esp chip and be “tasmotizable”. I’ve dumped it with bk7231tools in it’s ‘virgin’ form as I haven’t connected to any tuya app yet. dump_calex_rgbcct_bulb.bin.zip

I’ve tried a couple of already existing profiles (Calex, Generic-Tuya, LSC) but all of them ended up with an error like this:

Using PSK v1 - Received PSK ID version 02
[W 220516 16:53:21 iostream:1406] SSL Error on 12 ('10.42.42.23', 49154): [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1129)

Let me know if I should dump the bin after I connect it to a tuya server as well.

Thanks!!! 😃

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
troy-fcommented, May 16, 2022

@khalednassar dissection fails on this bin RBL containers: 0x10f9a: bootloader - [encoding_algorithm=NONE, size=0xe470] Traceback (most recent call last): File "bk7231tools.py", line 279, in <module> args.handler(args) File "bk7231tools.py", line 189, in dissect_dump_file output_directory=output_directory, extract=args.extract, with_rbl=args.rbl) File "bk7231tools.py", line 89, in __carve_and_write_rbl_containers fsout.write(__decrypt_code_partition(partition, container.payload)) File "bk7231tools.py", line 51, in __decrypt_code_partition return cipher.decrypt(payload, partition.mapped_address) File "/root/bk7231tools/bk7231tools/crypto/code.py", line 70, in decrypt return self.encrypt(data, stream_start_offset=stream_start_offset) File "/root/bk7231tools/bk7231tools/crypto/code.py", line 59, in encrypt raise ValueError(f"Given data length {len(data)} is not a multiple of block length {self.BLOCK_LENGTH_BYTES}") ValueError: Given data length 58480 is not a multiple of block length 32

0reactions
ihrapsacommented, Jun 18, 2022

Thanks a lot for the profile. It works! 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found