So your Tuya config contains:
but your device is using pins 7 and 8 in reality?
Helpful post? Buy me a coffee.
Code: JSON
but your device is using pins 7 and 8 in reality?
Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam
$> pacman -Qi bk7231tools
Name : bk7231tools
Version : 2.0.2-1
$> bktools dissect_dump -O output -e --rbl --storage lcs-led-rgbw-lb2.img
RBL containers:
0x10f9a: bootloader - [encoding_algorithm=NONE, size=0xea20]
extracted to output
0x129f0a: app - [encoding_algorithm=NONE, size=0xec1a0]
extracted to output
Storage partition:
0x1ee000: 28 KiB - 3 keys
- 'gw_bi'
- 'tuya_seed'
- 'gw_di'
WARNING:root:Block by ID 2 does not exist, returning empty
extracted all keys to output/lcs-led-rgbw-lb2_storage.json
WARNING:root:Block by ID 2 does not exist, returning empty
extracted 'gw_bi' to output/lcs-led-rgbw-lb2_storage_gw_bi.bin
extracted 'tuya_seed' to output/lcs-led-rgbw-lb2_storage_tuya_seed.bin
extracted 'gw_di' to output/lcs-led-rgbw-lb2_storage_gw_di.bin
App code `user_param_key`:
- found! Extracted to output/lcs-led-rgbw-lb2_user_param_key.json
$> cat output/lcs-led-rgbw-lb2_user_param_key.json
{
"2235ccur": 14,
"2235wcur": 6,
"Jsonver": "1.1.9",
"brightmax": 100,
"brightmin": 5,
"cagt": 20,
"category": "0505",
"cmod": "rgbcw",
"colormax": 100,
"colormin": 10,
"colorpfun": 1,
"crc": 72,
"cwmaxp": 100,
"cwtype": 0,
"defbright": 100,
"defcolor": "c",
"deftemp": 100,
"dmod": 8,
"gmkb": 60,
"gmkg": 60,
"gmkr": 80,
"gmwb": 75,
"gmwg": 70,
"gmwr": 100,
"iicb": 0,
"iicc": 4,
"iicg": 1,
"iicr": 2,
"iicscl": 24,
"iicsda": 9,
"iicw": 3,
"module": "CBU",
"notdisturb": 0,
"onoffmode": 1,
"pairt": 600,
"pmemory": 1,
"prodagain": 0,
"remdmode": 1,
"rgbt": 15,
"rstbr": 50,
"rstcor": "c",
"rstnum": 5,
"rsttemp": 100,
"title20": 1,
"wfcfg": "spcl",
"wfct": 10,
"wt": 20
}
=> Pin 24 (scl) and 9 (sda) was extracted in combination with the SM2235 driver.
Sorry, exception occured: System.ArgumentNullException: Buffer cannot be null.
Parameter name: buffer
at System.IO.MemoryStream..ctor (System.Byte[] buffer, System.Boolean writable) [0x00009] in <296872a6734f443990477e3abd954b57>:0
at System.IO.MemoryStream..ctor (System.Byte[] buffer) [0x00000] in <296872a6734f443990477e3abd954b57>:0
at (wrapper remoting-invoke-with-check) System.IO.MemoryStream..ctor(byte[])
at BK7231Flasher.TuyaConfig.fromBytes (System.Byte[] data) [0x0013f] in <0c14a74d79404cf69fc2e40bca5b14d7>:0
at BK7231Flasher.TuyaConfig.fromFile (System.String fname) [0x00024] in <0c14a74d79404cf69fc2e40bca5b14d7>:0
at BK7231Flasher.FormMain.importTuyaConfig (System.String file) [0x00008] in <0c14a74d79404cf69fc2e40bca5b14d7>:0
"pins": {
"7": "BP5758D_DAT;0",
"8": "BP5758D_CLK;0"
},