This invention relates to a
smart lighting device and control method based on
Bluetooth communication. The device establishes a GATT service based on BLE, sets write features to receive
client commands, and sets notification features to actively report responses and status. Command data adopts a unified and universal frame structure, including a frame header, length, command category, sub-function,
payload, and
verification field; the device verifies the data before
parsing. The device side sets up a
business logic arbitration engine to arbitrate command requests along with charging status,
battery voltage, and sensor events, outputting the final execution command and driving the lights according to charging
mutual exclusion, low battery protection, and multi-working-mode coordination rules. For stepless dimming, a non-reply write throttling process is used, and a confirmation packet is sent at the end of the process, triggering synchronous status reporting to achieve smooth interaction and
eventual consistency. After disconnection and light shutdown, the device enters deep sleep and is awakened by vibration to trigger simultaneous lighting and reporting, reducing
power consumption and improving availability.