Giter Site home page Giter Site logo

chsmartbulb-led-bulb-speaker's Introduction

There's a Bluetooth RGB LED bulb + combined Bluetooth speaker which identifies itself in BT scan as "Chsmartbulb". Where bought, it was described as "BL08A".

picture

There're many BT speaker bulbs on market, even cheaper than this, but:

  • Majority are advertized as BT 2.x or 3.x.
  • On a closer look, many such bulbs are actually just Bluetooth speakers, the bulb color is not controlled via BT (and thus smartphone), instead there's a standalone remote (usually an IR one).

"Chsmartbulb" was bought specifically on a promise to be BT 4, and having a smartphone app.

On arrival, the inspection showed:

  1. The bulb is indeed BT 4, specifically controller inside supports dual mode BT EDR/BLE.
  2. Despite that, the bulb color is controlled (by the app) using BT EDR, not BLE, specifically using the SPP service. (Speaker works over AVDTP (maybe A2DP) BT EDR only service, as expected).
  3. There are some BLE services are exposed, but as mentioned, the official app doesn't access them. The also look dummy: service UUIDs like 0x6666, 0x7777. The first has characteristic 0x8888, reading as array of bunch of 0x88 values, being written, it retains written value. The second has characteristic 0x8877, consisting of 0x77 with the similar behavior.
  4. Manufacturer is "CUBE TECHNOLOGIES" (0x03EE).

The repo contains BT communication capture on an Android phone, from enabling BT to connecting to bulb, changing colors among the main ones (red, green, blue), turning bulb on and off.

There's a script which sends sequences from the capture to bulb. Thanks to @acolytec3, color changing codes were found.

chsmartbulb-led-bulb-speaker's People

Contributors

pfalcon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

chsmartbulb-led-bulb-speaker's Issues

Color codes

I used your code and found the hex values that control the light. Try using these values in place of the ones you have in your script and you should get the colors you're looking for. I've bolded the values in the string that control the brightness of each color channel.

sock.send(h("01fe0000538310000000000050ff0000")) #white
sock.send(h('01fe0000538310000000ff0050000000')) #red
sock.send(h('01fe00005383100000ff000050000000')) #blue
sock.send(h('01fe000053831000ff00000050000000')) #green

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.