You are here

How to test observer project in 100 projects 100 days using android phone? | Cypress Semiconductor

How to test observer project in 100 projects 100 days using android phone?

Summary: 10 Replies, Latest post by Dheeraj Dake on 23 May 2017 01:51 PM PDT
Verified Answers: 0
Last post
Log in to post new comments.
Dheeraj Dake's picture
User
69 posts

Hello,
I am trying out the observer project from the Cypress git repo. I am using CYBLE-012011 as a standalone device and so I had to do the following to compile the project.
1. Create a new project with CYBLE-0102011 as the device.
2. Copy main.c, common.h and common.c from the observer project. 
3. Rename the uart component to match the API names.
4. Configure UART and BLE as in the project. 

Now I compiled and programmed the project. Now I want to use my android phone to send beacons and the BLE to scan and display those beacons. I am using the Beacon simulator app to send the beacons. But I can't see anything on the COM terminal. I have attached my project in the attachments. 

Thank you
Dheeraj

user_242978793's picture
User
1358 posts

The original program has the heap size set to 0x400 your program has it set to 0x80.  That could be the issue.

Dheeraj Dake's picture
User
69 posts

How do I change it?

user_242978793's picture
User
1358 posts

Well the example works but it uses the CY8C-4247LQI-BL483. Now I will try your example with that chip as don't have your module. Another issue maybe is that you are using a EZBle module and it is programmed with a Serial commands and is not the same type of chip.

user_242978793's picture
User
1358 posts

Your program didn't work at first when I increased the Heap size to 0x400 it  works but runs in a loop which is different than the example. To change the design wide resources click on System and then you will see this information.

I am still not sure that the module you have will work with this example as it is EZ Ble and not a regular Ble device. 

Dheeraj Dake's picture
User
69 posts

Thank you for this. Are there any code snippets for EZ-BLE modules? As of now the only resource I have is the PSo4-BLE git repo. I am looking at them and modifying them to make it work with my module. 

user_242978793's picture
User
1358 posts

Here is the firmware Guide.

Dheeraj Dake's picture
User
69 posts

Hello,
This is a guide to program using EZ-Serial firmware. I can't use the PSoC creator for this. Looks like this is just sending the commands via UART and getting back a response. Also I cannot use this because I can't use the DFU bootloader to update the firmware as my modules is a 128KB device. 

I am looking for examples like the PSoC4-BLE master git repo which allows me use the PSoC creator and the API's. 

Thanks
Dheeraj

user_242978793's picture
User
1358 posts

There are a couple of programs at the end of this page. http://www.cypress.com/documentation/development-kitsboards/cyble-012011...

Anjana Muralidharan's picture
Cypress Employee
116 posts

Hi Dheeraj,

You can use any Psoc Creator BLE example projects as well as GitHub projects (https://github.com/cypresssemiconductorco/PSoC-4-BLE/tree/master/100_Pro...) for Ez BLE module as well.

You just need to make sure to select correct part number and pins.

 

Thanks,

Anjana

Dheeraj Dake's picture
User
69 posts

I got it. I can change the part in Project --> Device selector. 

Thanks

Log in to post new comments.