Forums - Android/IOS App for CSR OTAU

13 posts / 0 new
Last post
Android/IOS App for CSR OTAU
Tritek
Join Date: 15 Jun 16
Location: Mumbai
Posts: 24
Posted: Tue, 2017-04-11 23:19

Hello,

I am trying to add OTAU to my CSR1010 based project. I am using SDK2.6.

I have added firmare support to my existing code using : file:///C:/CSR_uEnergy_SDK-2.6.0.10/apps/otau_demo/CS-304564-AN_ModifyinganApplicationtoSupportOTAUpdate.pdf 

 

I tried OTAU using sample android applicaion : https://www.csrsupport.com/download/54695/OTAU_Android_Application_1.2.zip

But I get following errors: 

<--> Gatt server connected and service discovery is completed.
<--> Remote device is pairing, please wait…
<--> Remote device is paired, start service discovery…
<--> Read CS Block data…
<--> Loading cskey XML file: provided by default
<--> Read CS Block data…
<--> Read CS Block data…
<--> Read CS Block data…
<--> Read CS Block data…
<--> OTAU is enabled
<--> Enter OTAU boot loader mode
<--> Disconnect
<--> Gatt server connected and service discovery is completed.
<--> Read Bluetooth address error!
<--> Read cyrstal trim value error!
 
After going through forum it looks like this android app is not compatible with SDK 2.6.
 
Does anyone have a link to the source code of android application which is compatible with SDK2.6 and Bootloader version 7.
 
Thanks,
Sanika
 
  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Mon, 2017-04-24 06:39

SDK 2.6 has a demo of OTA source code. 

  • Up0
  • Down0
thomasfogh
Join Date: 19 May 17
Posts: 1
Posted: Wed, 2017-06-21 04:59

Hi Sanika,

I have the same problem. Did you find a solution (and/or the reason for the error)?

I've tried the hr_sensor sample from the SDK 2.6 which also supports OTA and that works fine. For my own application I get the same error as you.

Thanks,

Thomas

  • Up0
  • Down0
abarak Moderator
Join Date: 7 Jun 16
Posts: 13
Posted: Thu, 2017-08-10 05:32
This is a known issue that Google didn't fix for more than 2 years:
There is a suggested workaround - To use Android hidden API to refresh GATT cache:
Please refer to below modification for our OTAU 1.2 application:
OtaUpdateManager.java:
private final static int CONNECTION_DELAY_TIME_MS      = 2000;
 
BtSmartService.java:
    public void refreshCache() {
        if(mGattClient != null){
        try {
Method m = mGattClient.getClass().getMethod("refresh", (Class[]) null);
m.invoke(mGattClient, (Object[]) null);
} catch (NoSuchMethodException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
        }
    }
 
.....
 
        public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
            if (status == BluetoothGatt.GATT_SUCCESS && newState == BluetoothProfile.STATE_CONNECTED && mGattClient != null) {
                // Get all the available services. This allows us to query them later. The result of this being
                // successful will be a call to onServicesDiscovered().
                // Don't tell the handler that we are connected until the services have been discovered.
                final Handler handler = new Handler(Looper.getMainLooper());
                refreshCache();
                if (mDelayTime > 0) {
 
 
 
 
However, please note:
1. There is risk in using a hidden API. It is not officially supported by Google and may be removed in the future
2. This is not a our formal solution. The correct solution needs to come from Google, seeing as this is their bug. We only suggest the above as a temporary workaround.
3. The above is not under any kind of guarantee
  • Up0
  • Down0
Dr. Nissim Zur
Profile picture
Join Date: 6 Jun 16
Location: Skype: nissim.test CSR1010 External design house
Posts: 235
Posted: Thu, 2017-08-10 07:48

Hi abarak,

From your reply, it seems that Android/Google is not supporting any OTA for any Bluetooth low energy (BLE) chip set worldwide. 

Since this is not the case, and since this "Android bug" is not effecting any other companies' Android app and other chip set, I offer that CSR will put a team to fix it from your side without using hidden API. 
And apps on CSR web site had to have your offered source code, and not present as all OK, when CSR knows for 2 years it will not work. 

 


 

  • Up0
  • Down0
Tritek
Join Date: 15 Jun 16
Location: Mumbai
Posts: 24
Posted: Sat, 2017-08-19 05:56

Hi Abarak,

Issue in my case was due to an error in app_gatt_db.db.

I had accidently interchanged include order. Correct order is : 

#include "gatt_service_db.db" (This has to be the first include)

#include "gap_service_db.db"

 

Thanks,

Sanika

  • Up0
  • Down0
teleworm
Join Date: 25 Sep 18
Posts: 1
Posted: Tue, 2018-09-25 23:54

Thanks for the information I am looking for the same, I have followed this link: https://www.csrsupport.com/download/54695/OTAU_Android_Application_1.2.zip   to get the information about ios and android application its very helpful for me when I going for add OTAU to my CSR1010 based projects. Here I have also shared one thing I have to use an iPhone and I have a problem with apple id getting a solution through apple id support number and I have still the problem can anyone assist me.

  • Up0
  • Down0
messaysmith
Join Date: 1 Nov 18
Posts: 1
Posted: Thu, 2018-11-01 23:38

The link for firmware support is really very useful for all. I tried  https://www.csrsupport.com/download/54695/OTAU_Android_Application_1.2.zip  for solving the OTA  Android applications. but i am unable to run this android application on my android phone. when i try to run it on iPhone it shows iTunes error 5105 issue.

  • Up0
  • Down0
taherkawantwala
Join Date: 13 Feb 19
Posts: 3
Posted: Mon, 2019-02-18 23:15

I need android application to test OTAU demo. kindly help. https://www.csrsupport.com/download/54695/OTAU_Android_Application_1.2.zip is not working. urgent help needed.

  • Up0
  • Down0
jonesm
Join Date: 13 Jun 16
Posts: 79
Posted: Tue, 2019-02-26 09:15

For access to the application please contact Qualcomm sales at, https://www.qualcomm.com/contact/sales, or Qualcomm distributors at, https://www.qualcomm.com/contact/distributors.

  • Up0
  • Down0
seoking
Join Date: 20 May 19
Posts: 1
Posted: Mon, 2019-05-20 19:36

We have the same exact problem.

We can only succeed OTAU with ios 8.

When shall CSR finally release a new version? We are at iOS 10 and it's time for a new verision. 

Regards, 9Apps

Cartoon HD Vidmate APK

  • Up0
  • Down0
vctrkarthik
Join Date: 24 Oct 16
Posts: 4
Posted: Wed, 2019-05-29 07:48

Hello Sanika,

 

Have you figured out any solution for this? We are also working with CSR1010 chip. We would like to get the OTA working in our device. It did work fewtimes with the OTA app CSR provided. However, mostly I get "read chrystal trim value error". Let me know if you have a solution for this.

 

Thanks

Victor 

  • Up0
  • Down0
rm863595
Join Date: 30 Oct 20
Posts: 1
Posted: Fri, 2020-10-30 16:41
My device update android version 10.csr 1.2.1 is not suported
  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.