You are here

How to send data from the PSOC BLE module to the Cysmart App | Cypress Semiconductor

How to send data from the PSOC BLE module to the Cysmart App

Summary: 13 Replies, Latest post by carlsmith.sms_1616011 on 02 Oct 2016 07:48 PM PDT
Verified Answers: 1
Last post
Log in to post new comments.
gkris123's picture
User
31 posts

 I am trying to send the ADC data that i have obatined from the SAR ADC. This value is to be sent to the cysmat app. What do i need to do to get the following procedure done.

user_1377889's picture
User
9829 posts

There is probably no "best" way to do that, but there are several different ways with different behaveour.

I would suggest you to go through all the project examples in this blog and see how and what is sent/received between the BLE devices. There is always a .pdf documentation that you can read first to see if the projec fits to your interests.

Does "LP" in your previous post stand for "Low Power"?

if so, there is an application note concerning low power only.

 

Bob

VAVC's picture
Cypress Employee
506 posts

 Please find the attached project. It acts as a server/peripheral.Program your PSOC4 BLE pioneer kit with this project.Use UART terminal to see the firmware flow.

After programming RED LED turns on and the device starts to advertise.In Cysmart PC tool /mobile app start scanning and you can see the device with name "ADC_BLE_Example". Connect to the device.After connection GREEN LED turns ON.

After enabling the notifications by writing "0x01" to the Client characteristic configuration descriptor of custom characteristic from CySmart PC tool or by enabling notifications from Cysmart mobile app you can get the ADC O/P in your client for every 1 second. Connect some voltage<3.3V to the pin P3[0](Don't leave it floating).

If you have any other queries please let me know.

 

Regards,

Vikas

Attachments: 
sunil.bellure_1697601's picture
User
11 posts

Hello VAVC,

According to your example, it just shows the connection status. Is there anything where i can send the data received in UART and be displayed on Client side (CYSMART APP).

Am presently working on the sensor which measures the distance and sends the data to the putty terminal via serial communication(UART). The received data should also be displayed on the smart phones using CySmart app. Kindly help on the same!

I have attached a image, so you will have an idea what type of data am receiving on the putty terminal.

 

Thank you,

Sunil

Attachments: 
gkris123's picture
User
31 posts

 You said enable notifications, so in PSoc creator what if i enable the notifications using the descriptor part in the profiles section will it work. And could you elaborate on how we can enable notifications in the App?

gkris123's picture
User
31 posts

 Is it necessary to use watchdog timer here. Can we use the normal timer service .If yes , ca you elaborate on how that can be done .

sadikothuzi3_1531451's picture
User
1 post

i have an application in which i want to send the data from psoc 4 ble to the cysmart app i have written the code in which the data is printed on the tera term(day 20 ble -uart example-100 projects in 100 days) i am not able to establish a ble connection between the client and server

i have enclosed the code also

please do help me on it i am stuck

 

Giulio Robin's picture
User
1 post

@VAVC thanks for your example but the version for the BLE is an old one and I can't programm the Psoc, could you please send me a new one ?

I'm currently working on a project and I completly stuck with the send of data, thank's for your answers 

 

user_1377889's picture
User
9829 posts

Welcome in the forum, Giulio!

Open the project in Creator (latest v3.3 CP3) select Project -> Update Components and follow the program.

When finished, build the project.

 

Happy coding

Bob

jeremyduboc78_1581896's picture
User
7 posts

Hello,

I would like to send an analog signal with the BLE component, I looked the exemples but I don't know how to do it.

Can you help me please?

user_1377889's picture
User
9829 posts

Welcome in the forum, Jeremy.

The world is digital now, so "sending an analog signal" will not work as such. You will need to

  • Digitize the signal (with a resolution of 8 bits) using an ADC
  • Send the result via BLE
  • Convert the sent item back to analog using a VDAC or an IDAC

All the required components you will find within a PSoC 4 BLE chip (and some more)

 

Happy coding

Bob

Log in to post new comments.