This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How can i send command to ble to get data?

I'm a newby. I'm troubles understanding how to send command to ble. my band have own protocol like this :
if you send 'AB02FF7180' to ble means your band will shock 5 times. i saw the sample find

public static final String RX_SERVICE_UUID = "6e400001-b5a3-f393-e0a9-e50e24dcca9e";
public static final String RX_CHAR_UUID = "6e400002-b5a3-f393-e0a9-e50e24dcca9e";
public static final String TX_CHAR_UUID = "6e400003-b5a3-f393-e0a9-e50e24dcca9e";

what is TX_CHAR_UUID and RX_CHAR_UUID means?

  • The snipped you posted are the identifier (UUID) codes for something called RX_SERVICE, which is has a 128 bit service UUID code.

    This is a custom service.

    The RX_CHAR_UUID and TX_CHAR_UUID are the receive and transmit Characteristics within this service

    I think you are probably using the Nordic UART service.

    Anyway. If you don't know what a Service or a Characteristic is, I think you should Google these terms in relation to Bluetooth and read the articles you find

Related