CapSense Buttons not displaying on CySmart

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

This is probably more to do with my code than anything, but I wanted to reach out for help.  https://dl.dropboxusercontent.com/u/27347663/DPDTand%204TSP.cydsn.zip

   

I wanted to write a simple program, with pins connected to a couple of switch ICs, using CapSense Buttons to toggle a switch position.  One IC is DPDT, to switch between 2 LEDs, and one is a 4PST, connected to 4 LEDs.  I can't (or don't really know how) to test everything without any buttons to click on.  I'm using the Android app, and the PSoC is connecting, but when I go to the CapSense Buttons section, its blank (see image).  Thank you.

0 Likes
1 Solution
Anonymous
Not applicable

Welcome to the forum!!

   

 

   

I want to be clarified of your requirement.

   

Do you want to use the Buttons on the App to control the ICs? Or is there a trigger on the kit that you want to show on the CapSense Button GUI page on App?

   

 

   

I would suggest you to go through the CapSense Custom profile specification at following location to understand what is done using the CapSense services. In short, CapSense Button is a custom service supporting 3 bytes of data from kit to App (not the other way around).

   

http://www.cypress.com/documentation/software-and-drivers/cypresss-custom-ble-profiles-and-services?...

   

 

   

You can also refer the application note AN91162 (http://www.cypress.com/documentation/application-notes/an91162-creating-ble-custom-profile ) to know how to handle custom services.

View solution in original post

0 Likes
5 Replies
Anonymous
Not applicable

Welcome to the forum!!

   

 

   

I want to be clarified of your requirement.

   

Do you want to use the Buttons on the App to control the ICs? Or is there a trigger on the kit that you want to show on the CapSense Button GUI page on App?

   

 

   

I would suggest you to go through the CapSense Custom profile specification at following location to understand what is done using the CapSense services. In short, CapSense Button is a custom service supporting 3 bytes of data from kit to App (not the other way around).

   

http://www.cypress.com/documentation/software-and-drivers/cypresss-custom-ble-profiles-and-services?...

   

 

   

You can also refer the application note AN91162 (http://www.cypress.com/documentation/application-notes/an91162-creating-ble-custom-profile ) to know how to handle custom services.

0 Likes
Anonymous
Not applicable

Thank you.  I will have a look.  I basically wanted the Buttons seen in the app to control the IC.  The coding in mind was that there would be 6 buttons.  If one was pressed, it would toggle a pin high or low (1 or 0), which would be connected to the IC's logic pin(s).  I'm using Maxim Integrated 4524 and a 4525, http://www.mouser.com/ds/2/256/MAX4524-MAX4525-52283.pdf.  

0 Likes
Anonymous
Not applicable

Thanks for clarifying. As you would understand from the spec, the CapSense Button characteristic is for sending button press status from Peripheral to the App, not the other way around.

   

You can create a new custom profile which can allow to "write" a button state information from App to the peripheral, and use it to control you ICs.

Anonymous
Not applicable

Are there any examples I can refer to?  I have only found the AN91162, which does the Server to Client writing.

0 Likes
Anonymous
Not applicable

Actually AN91162 example project does Client to Server writing, writes 4 byte RGB data from Phone to BLE Pioneer Kit. 🙂

   

You can use the same project, with a slight change on characteristics side, to make it work with your project.

   

 

   

You can also refer the multiple projects at following location for similar and other type of application examples:

   

https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Projects_in_100_Days