From 341ecf5781f9e8ba5b979d5b6c94a2683bdfb304 Mon Sep 17 00:00:00 2001 From: Aleksander Nowakowski Date: Mon, 17 Aug 2015 16:44:16 +0200 Subject: [PATCH] UART divides long text into 20B parts UART now checks the RX characteristic properties and: 1) it will use long write if WRITE REQUEST is set, 2) it will divide the text into up to 20-bytes packets Also the app background has been fixed. --- app/app.iml | 16 ++-- app/build.gradle | 6 +- .../nrftoolbox/profile/BleManager.java | 17 +++- .../android/nrftoolbox/uart/UARTManager.java | 80 +++++++++++++++---- app/src/main/res/drawable/background.xml | 34 -------- .../res/layout-land/activity_feature_bpm.xml | 8 ++ .../res/layout-land/activity_feature_csc.xml | 8 ++ .../res/layout-land/activity_feature_dfu.xml | 8 ++ .../res/layout-land/activity_feature_gls.xml | 8 ++ .../res/layout-land/activity_feature_hrs.xml | 8 ++ .../res/layout-land/activity_feature_hts.xml | 7 ++ .../activity_feature_proximity.xml | 8 ++ .../res/layout-land/activity_feature_rsc.xml | 8 ++ .../fragment_feature_uart_control.xml | 9 +++ .../activity_feature_bpm.xml | 8 ++ .../activity_feature_csc.xml | 8 ++ .../activity_feature_dfu.xml | 8 ++ .../activity_feature_hrs.xml | 8 ++ .../activity_feature_rsc.xml | 8 ++ .../main/res/layout/activity_feature_bpm.xml | 8 ++ .../main/res/layout/activity_feature_csc.xml | 8 ++ .../main/res/layout/activity_feature_dfu.xml | 8 ++ .../main/res/layout/activity_feature_gls.xml | 8 ++ .../main/res/layout/activity_feature_hrs.xml | 8 ++ .../main/res/layout/activity_feature_hts.xml | 7 ++ .../res/layout/activity_feature_proximity.xml | 8 ++ .../main/res/layout/activity_feature_rsc.xml | 8 ++ .../res/layout/activity_feature_template.xml | 8 ++ app/src/main/res/layout/activity_features.xml | 7 ++ app/src/main/res/layout/activity_settings.xml | 16 +++- .../main/res/layout/activity_splashscreen.xml | 7 ++ .../layout/fragment_feature_uart_control.xml | 17 ++-- app/src/main/res/values/styles.xml | 4 +- build.gradle | 2 +- nRFToolbox.iml | 2 +- 35 files changed, 316 insertions(+), 75 deletions(-) delete mode 100644 app/src/main/res/drawable/background.xml diff --git a/app/app.iml b/app/app.iml index 8b30910ab..87f544ece 100644 --- a/app/app.iml +++ b/app/app.iml @@ -12,10 +12,12 @@