Nexturn – Bluetooth V4.0 RGB LED Light

http://www.newegg.com/Product/Product.aspx?Item=N82E16803270001

EFUN (Nexturn) SH201 IPHONE Android Controlled E26 7W 500LM Bluetooth V4.0 RGB LED Light (90~240V)

# hcitool lescan
Set scan parameters failed: Connection timed out
# hciconfig hci0 down
# hciconfig hci0 up
# hcitool lescan
LE Scan ...
90:59:AF:2A:BB:7B (unknown)
90:59:AF:2A:BB:7B (unknown)
90:59:AF:2A:BB:7B Nexturn
90:59:AF:2A:BD:32 (unknown)
90:59:AF:2A:BD:32 Nexturn

# gatttool -b 90:59:AF:2A:BB:7B -I
[   ][90:59:AF:2A:BB:7B][LE]> connect
[CON][90:59:AF:2A:BB:7B][LE]> primary
[CON][90:59:AF:2A:BB:7B][LE]>
attr handle: 0x0001, end grp handle: 0x000b 
     uuid: 00001800-0000-1000-8000-00805f9b34fb
attr handle: 0x000c, end grp handle: 0x000f
     uuid: 00001801-0000-1000-8000-00805f9b34fb
attr handle: 0x0010, end grp handle: 0x0022 
     uuid: 0000180a-0000-1000-8000-00805f9b34fb
attr handle: 0x0023, end grp handle: 0xffff 
     uuid: 0000ffe0-0000-1000-8000-00805f9b34fb

BLE function accesses a service defined by the number of UUID. primary command, as they display a list of services, I can be seen that there is a service called, 0xffe0 0x1800, 0x1801, 0x180a here.

UUID of the default has been decided (like or get the vendor name and device name, for example) standard services commonly used. Of the above, in the standard service the first three, but services like the last guy not a standard. It was expected that this device is a wonder that defines a service of its own, perhaps, to examine in more detail the last service.

[CON][90:59:AF:2A:BB:7B][LE]> char-desc 0x0023
[CON][90:59:AF:2A:BB:7B][LE]>
handle: 0x0023, uuid: 2800
handle: 0x0024, uuid: 2803
handle: 0x0025, uuid: ffe1
handle: 0x0026, uuid: 2901
handle: 0x0027, uuid: 2803

It seems to specify the number of a place called handle in char-desc. UUID because multiple came out and try out or not any data has been entered by accessing one by one to each service, which is to change the color of the light.

[CON][90:59:AF:2A:BB:7B][LE]> char-write-cmd 0x0025 ff
[CON][90:59:AF:2A:BB:7B][LE]>

Intensity of the red LED: 0x0025 (handle), ffe1 (uuid)
The strength of the green LED: 0x0028 (handle), ffe2 (uuid)
Intensity of the blue LED: 0x002b (handle), ffe3 (uuid)
The intensity of the white LED: 0x002e (handle), ffe4 (uuid)

# python btle.py 90:59:AF:2A:BB:7B
Connecting to: 90:59:AF:2A:BB:7B
Service  :
    Characteristic <2a05>
    -> Error from Bluetooth stack (comerr)
Service  :
    Characteristic 
    -> 'Nexturn'
    Characteristic <2a01>
    -> '\x00\x00'
    Characteristic <2a02>
    -> '\x00'
    Characteristic <2a03>
    -> Error from Bluetooth stack (comerr)
    Characteristic <2a04>
    -> 'P\x00\xa0\x00\x00\x00\xe8\x03'
Service  :
    Characteristic 
    -> '\xff'
    Characteristic 
    -> '\x00'
    Characteristic 
    -> '\x00'
    Characteristic 
    -> '\x00'
    Characteristic 
    -> '\x00\x00\x00\xff'
    Characteristic 
    -> '\n'
    Characteristic 
    -> '\x01\x01\x00\x009\x00 {\xbb*\xafY\x90'
Service  :
    Characteristic <2a23>
    -> '{\xbb*\x00\x00\xafY\x90'
    Characteristic 
    -> 'Model Number\x00'
    Characteristic 
    -> 'Serial Number\x00'
    Characteristic 
    -> 'Firmware Revision\x00'
    Characteristic 
    -> 'Hardware Revision\x00'
    Characteristic 
    -> 'Software Revision\x00'
    Characteristic 
    -> 'Manufacturer Name\x00'
    Characteristic <2a2a>
    -> '\xfe\x00experimental'
    Characteristic <2a50>
    -> '\x01\r\x00\x00\x00\x10\x01'

No comments yet.

Write a comment: