Skip to content

Instantly share code, notes, and snippets.

@marcelrv
marcelrv / controllights.md
Last active November 22, 2025 23:09
Surplife smartcurtain - lednetwf message format and known commands

Commands to control the light

Initiation & On

[BLE Write  =>] UUID: 0000ff01-0000-1000-8000-00805f9b34fb data: 0x 0a 10 14 19 0b 16 17 04 12 06 00 0f a0 - header : 00 01 80 00 00 0c 0d  - full: 00 01 80 00 00 0c 0d 0a 10 14 19 0b 16 17 04 12 06 00 0f a0
[BLE UpperTransportLayer.createUpper =>] isAct: false isProtect: false sequenceNr: 2 cmdId: 0a payload: ea 81 8a 8b 59 len:14
[BLE Write  =>] UUID: 0000ff01-0000-1000-8000-00805f9b34fb data: 0x 0a ea 81 8a 8b 59 - header : 00 02 80 00 00 05 06  - full: 00 02 80 00 00 05 06 0a ea 81 8a 8b 59
[BLE UpperTransportLayer.createUpper =>] isAct: false isProtect: false sequenceNr: 3 cmdId: 0a payload: 71 24 len:5
[BLE Write  =>] UUID: 0000ff01-0000-1000-8000-00805f9b34fb data: 0x 0a 71 24 - header : 00 03 80 00 00 02 03  - full: 00 03 80 00 00 02 03 0a 71 24
[BLE Notify <=] UUID: 0000ff02-0000-1000-8000-00805f9b34fb data: 0x  ea 81 01 00 c2 03 23 66 01 32 f0 00 00 00 00 00 01 01 90 00 00 01 02 03 00 - header : 04 32 80 00 00 19 1a 15 - full: 04 32 80 00 00 1
@marcelrv
marcelrv / gist:62adc1d1cfc67048d3f51ae4e003535b
Created September 6, 2025 11:38
dbus-serial battery log.md
Starting /service/dbus-serialbattery.ttyUSB0...
root@raspberrypi2:~# tail -f /var/log/dbus-serialbattery.ttyUSB0/current
@4000000068bc1c622746216c INFO:SerialBattery:> CCCM T MOS: True | DCCM T MOS: True
@4000000068bc1c62274bcaa4 INFO:SerialBattery:> CCCM SOC: False | DCCM SOC: False
@4000000068bc1c6227520c34 INFO:SerialBattery:> CHARGE FET: 1 | DISCHARGE FET: 1 | BALANCE FET: True
@4000000068bc1c62275d6674 INFO:SerialBattery:Serial Number/Unique Identifier: 41216494749
@4000000068bc1c9f0161f73c INFO:SerialBattery:Exit signal received, exiting gracefully...
@4000000068bc1c9f026e8924 INFO:SerialBattery:Stopped dbus-serialbattery with exit code 0
@marcelrv
marcelrv / kali.md
Created January 27, 2025 10:42
Raspberry PI Kali Linux

Kali Linux Raspberry Pi Image fixes

Wifi not available

wlan device is marked as unmanaged in the network

To enable this one time: sudo nmcli save dev set wlan0 managed yes

To let the fix survice reboot

@marcelrv
marcelrv / thermalCamera.md
Created November 14, 2024 16:33
Thermal imager for Android phones Opensource resources

Software

Alternatives to InfiRay P2 Pro thermal camera usiong same chipset

  • Mileseey TR256i TR160i
  • Victor 328B
  • InfiRay P2 Pro thermal camera
  • HTI HT-203U 256×192
  • Topdon TC001 Thermal Camera

Camera driver for win & linux

@marcelrv
marcelrv / fixing.md
Last active November 14, 2024 16:57
RPI Zero 2W Bluetooth and SSH

RPI Zero 2W Bluetooth and SSH issues

Fix Bluetooth not working

Add to the /boot/boot_config the following

[all]
dtoverlay=miniuart-bt
core_freq=250
@marcelrv
marcelrv / tinybee.md
Last active October 6, 2025 10:06
Setting up TMC 2209 drivers, connecting via UART toMKS tinybee