cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4

AsRa_264661
Contributor

 Hi, everyone

   

 

   

Where I can get the source code of CY8CKIT-042-BLE android app

   

 

   

Thanks,

   

Ashok

0 Likes
32 Replies
ETRO_SSN583
Esteemed Contributor

You might file a CASE to see if its available (post back here results) -

   

 

   

    

   

          

   

To create a technical or issue case at Cypress -

   

 

   

www.cypress.com

   

“Support”

   

“Technical Support”

   

“Create a Case”

   

 

   

You have to be registered on Cypress web site first.

   

 

   

Regards, Dana.

0 Likes
AsRa_264661
Contributor

Thank you Dan!

0 Likes
ETRO_SSN583
Esteemed Contributor

Here -

   

 

   

    

   

          

   

http://www.cypress.com/?rid=105179&source=psoc4ble     BLE Android

   

 

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 I wrote to Cypress and they gave me the whole source code! 

0 Likes
AsRa_264661
Contributor

Even i got the code , but strucking with Errors 😞

0 Likes
Anonymous
Not applicable

 It' s about a missing library, "import com.jjoe64.graphview.GraphView",  isn't it? Me too! I found that library on the internet and I compiled it with the project, but it's not working as well. Maybe I found the wrong library, but  I think not... Here is where I found it

   

https://github.com/jjoe64/GraphView

   

However, I didn't need to debug it, just checked and used some code lines, so I gave up trying to solve the problem and I didn't write to Cypress. Let me know if you have the same problem and if you solve it. Thanks 

0 Likes
AsRa_264661
Contributor

Hi EsseAsso,

   

Your are right, Iam also missing same lib. Which IDE you are using?

   

Ecllipse  or Android Studio?

   

 

   

Thanks,

   

Ashok r

0 Likes
Anonymous
Not applicable

 Android Studio! I thought Eclipse ADT was expired, is it right? However, did you try to download and compile that library I posted?

0 Likes
JohnW_86
Employee

Just wanted to drop a quick note on this thread.  We are making lots of changes quickly on our BLE solution.  Adoption has been intense and we welcome the feedback.. I'll take anything the forum can share and make sure to get it figured out.  We have some updates coming soon (I hope in the next week) that should fix some issues with iOS and Android app development.  But if you could open a ticket on Cypress.com and tell us what you are seeing, I would really appreciate it. Then we'll post the solutions back to the forum.

   

Cheers

   

-John

   

Cypress

0 Likes
AsRa_264661
Contributor

Hi,

   

I was trying with eclipse IDE, also i got latest source code from cypress team. today i am gona work on this and come back.

   

 

   

John,

   

we are expecting source code for both IDEs's (Android studio & eclipse). Also need information on mobiles which can support. still i did not have any BLE enabled mobile so iam afride to take low cost mobile with BLE support. It might not have work with cypress App. so its important to know which are all the mobiles can use for BLE.

   

 

   

can i buy this mobile?www.flipkart.com/moto-e/p/itmdvuwsybgnbtha

   

 

   

Thanks,

   

Ashok r

0 Likes
Anonymous
Not applicable

 Every phone with Bluetooth 4.0 can be connected to BLE kits.

   

 

   

I' ve heard that, on Android mobiles with kernel 3.4.0 and lower, CySmart app has some compatibility problems, but they are trying to solve.  

0 Likes
AsRa_264661
Contributor

Yes, so i am thinking to buy Moto E

   

Thanks,

   

Ashok r

0 Likes
AsRa_264661
Contributor

anyone know , what would be the behavior of this android App when BLE Kit is in off state?

   

 

   

thanks,

   

Ashok r

0 Likes
Anonymous
Not applicable

 Off state meaning diconnected or powered off?

   

In either of the case, the CySmart App will be disconnected and it will enter the Device page, the GUI page where the App searches for BLE devices advertising and lists them. If it finds any device, then it will list it on the page so that you can connect to it. This listed device could be your own BLE kit or any other BLE device in the vicinity.

   

 

   

-Rohit

0 Likes
AsRa_264661
Contributor

Hi Roit,

   

Thanks for the information. I asked power off state only

   

 

   

Thanks,

   

Ashok r

0 Likes
NamanJ_66
Employee

Hello All,

   

 

   

We apologzie for the delay from our side in responding.

   

Kindly follow these steps to resolve the error with the Android source code-

   

1- Close the project and Eclipse

   

2- Download the GraphView library (jar) file from the link - https://github.com/jjoe64/GraphView/blob/master/public/GraphView-3.1.3.jar?raw=true and copy it in the lib folder of your project.

   

3- Open the Eclipse and open project

   

4- Compile it and it will work now..

   

 

   

Specification to check in the phone to check if the app is supported or not -

   

1) Phone should have Smart Bluetooth (BLE)/ Bluetooth 4.0.

   

2) Min version of Android required is - Android 4.3 (SDK version 18). It is supported on all higher version of Android.

   

Ashok, Moto E is meeting both features. Yes, you can use the phone (http://www.flipkart.com/moto-e/p/itmdvuwsybgnbtha?pid=MOBDVHC6TH4PZGSM&srno=b_1&ref=cfcd05cf-e62d-45...) and use CySmart app.

   

 

   

Let us know if there is any other problem.

   

- Naman Jain

0 Likes
Anonymous
Not applicable
        I purchased the kit from mouser at sub $50 price, without any fuss. I got the kit running in minutes with the android app. Now when I want to make my own app, I have run into problems. App for windows not available. Very difficult to get the source code for android through local sales. Basic running code for windows and android if available readily, will make things easy for developers. PS: please make the text box for posting messages in this forum bigger. I am using IE on windows 8.   
0 Likes
HeLi_263931
Honored Contributor II

You can get the Android app source code easily via a support case (in the top right menu, 'MyCases'). I did this before, didn#t even need to sign a NDA 🙂

   

For the edit box: try to use Firefox or Chrome, they work much better. Or so you use some kind od ad / content blocker (I get the small box in FF only when I block Javascript)

0 Likes
Anonymous
Not applicable
        Does this code work in Android Studio?   
0 Likes
HeLi_263931
Honored Contributor II

I did not try the project itself, but I'm using part of its code in my own one. Works fine. If you follow the steps mentioned above it should also work directly.

0 Likes
ETRO_SSN583
Esteemed Contributor

@Ravi, set your browser for compatibility mode, then window

   

will be normal size for posting.

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

You-tube videos are available on how to program for BLE in android!

   

Tired and frustrated on requesting for the source code from cypress, I thought I should use one of the publicly available code.

   

    

          

http://possiblemobile.com/2013/12/bluetooth-smart-for-android/    

is a nice site which gives the entire code for Android. It works with a Texas Instrument kit called “SensorTab” The GATT tables are well documented (http://processors.wiki.ti.com/index.php/SensorTag_User_Guide)

   

So all we need to do is make our kit talk with that android application.

   

I went out to modify PSoC_4_BLE_CapSense_Proximity example and the project is attached for you to try it out.

   

List of changes:

   

1. Added Services in BLE component to match the GATT table given by Ti

   

2. Modified some code to send the proximity data to all services.

   

And viola we have a working project to get going on Android.

0 Likes
AsRa_264661
Contributor

Yes, fsoender

   

Its working with Android Studio

0 Likes
Anonymous
Not applicable

 hi

   

i need examples codes to communicate with psoc 4 BLE kit  (for windows and for android)

0 Likes
ETRO_SSN583
Esteemed Contributor

Might be of some help -

   

 

   

    

   

         

   

http://www.cypress.com/?id=5509 100 Projects in 100 Days with Bluetooth

   

    

   

          

   

http://www.cypress.com/?rID=102799&source=psoc4ble     FAQs

   

 

   

http://www.cypress.com/?rID=102512     AN91445 - Antenna Design Guide

   

http://www.cypress.com/?rID=102505     AN94020 - Getting Started with PRoC™ BLE

   

http://www.cypress.com/?rID=110007     AN92584 - Designing for Low Power and Estimating Battery Life for BLE Applications

   

http://www.cypress.com/?rID=109900     AN91162 - Creating a BLE Custom Profile

   

http://www.cypress.com/?rID=110107     AN91184 - PSoC 4 BLE - Designing BLE Applications

   

http://www.cypress.com/?rID=102504     AN91267 - Getting Started with PSoC® 4 BLE

   

 

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable
        Hi, Refer my previous post. The 'possiblemobile' site is a great place to start developing your android application for BLE. You should also refer Google's example code for BLE which seems to be the universal starting point for all BLE android apps. I finally got the Cysmart source code from cypress. Unfortunately it is a bloatware, several projects in one bundle and looks highly complicated. Not definetely the starting point. I hope Cypress comes up with simple staright-forward apps (like the example codes that run on hardware) Ravi   
0 Likes
Anonymous
Not applicable

Is it possible to give us a simple ble android app that reads port byte data (i.e. p0.0..8) and single port (i.e. p1.0) analog voltage data. controlled via display: ios source would be nice too.

0 Likes
ETRO_SSN583
Esteemed Contributor

PSOC Creator, Start Page, Find Example project quite a few that

   

would accomplish what you are looking for -

   

 

   

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

Can some please provide me the source code?

0 Likes
Anonymous
Not applicable

Hi Ankit,

   

Welcome to the forum!

   

You can get the source code for Android App by raising a technical support case. For creating a technical support case, please go to www.cypress.com -> "Design Support" -> under 'Support', click on 'Create a Support case' -> 'Contact Technical Support'. You should be registered before you can access the page.

0 Likes
Anonymous
Not applicable

Why Do You need ANdroid?  BLE is not supported by Android nor any of phone hardware?

   

I sent the message on this forum, but You won't find it. It was deleted by Cypress.

0 Likes
Bob_Marlowe
Expert II

You are telling nonsense, Robert. When a phone supports Bluetooth BLE which is the case for the newer Android .versions you can connect to that phone. A BLE hardware is needed as well. I saw messages like that here in the forum, but no one could give an example to prove that.

   

Usually messages are not deleted here in the forum, there is no moderator. As a matter of fact there has been  some spam-flooding here, so when your post has been suspected to be spam and got deleted during that clean up I would ask you to re-post in a reasonable manner and with verifiable facts.

   

 

   

Bob

0 Likes