- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, i am new here, i have PSOC4200 BLE, and i am developing a firm with i need to send some data and read other data. Send data over sensors, and receive data about diferent mode of operation.
I have an android APP, to manage this information. My board asume the role of GATT Server Peripheral. Send data over Custom Service, and the APP receive this information and show it.
The UUID of the services, on the APP are:
-------------------------------------------------------------------------------------------------------------------------------------------------
public class SampleGattAttributes {
private static HashMap<String, String> attributes = new HashMap();
public static String VALORES_REGISTRO = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String CLIENT_CHARACTERISTIC_CONFIG = "00002902-0000-1000-8000-00805f9b34fb";
public static String VALORES_SERVICIO_POSICION = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_FRONTAL = "0000fff1-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_TRASERO = "0000fff2-0000-1000-8000-00805f9b34fb";
public static String VALORES_SERVICIO_MOTOR = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_MOTOR = "0000fff3-0000-1000-8000-00805f9b34fb";
public static String VALORES_SERVICIO_ALARMA = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_ALARMA_FRONTAL = "0000fff6-0000-1000-8000-00805f9b34fb";
public static String VALORES_SERVICIO_MODO = "0000fff0-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_MODO = "0000fff7-0000-1000-8000-00805f9b34fb";
public static String VALORES_CARACTERISTICA_NOTIFICACION = "0000fff4-0000-1000-8000-00805f9b34fb";
static {
// Sample Characteristics.
attributes.put(VALORES_REGISTRO, "Device Data");
attributes.put("0000fff3-0000-1000-8000-00805f9b34fb", "Valor Guardado");
}
-------------------------------------------------------------------------------------------------------------------------------------------------
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please also have a look at AN91162- Creating BLE custom profiles: http://www.cypress.com/documentation/application-notes/an91162-creating-ble-custom-profile
This has codes for read and write requests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe this might help -
http://www.cypress.com/?rID=109900 AN91162 - Creating a BLE Custom Profile
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please also have a look at AN91162- Creating BLE custom profiles: http://www.cypress.com/documentation/application-notes/an91162-creating-ble-custom-profile
This has codes for read and write requests.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for All,
I have resolved the problem,