PSoC™ 4 Forum Discussions
Hello Cypress World:
I have two (2) multiple choice questions give below:
1. Multiple Choice Question for Client UUIDs/Handles:
Which of the following is to be used to acquire the UUIDs/Handles of the Service Characteristics of a connected Client?
A. CyBle_GattcDiscoverAllPrimaryServices()
B. CyBle_GattcFindIncludedServices()
C. Scan Parameters Service (ScPS)
D. Scan Parameters Profile (ScPP)
E. Other
F. None of the above
2. Multiple Choice Question for Bond/Unbond:
Which of the following is/are to be used to Bond/Unbond to a connected Central or Peripheral?
A. CyBle_StoreBondingData()(Bond)/CyBle_GapRemoveOldestDeviceFromBondedList()(Unbond)
B. CyBle_GapGetBondedDevicesList() with CyBle_StoreBondingData()/CyBle_GapRemoveOldestDeviceFromBondedList()
C. Bond Management Service (BMS)
D. Other
E. None of the above
Thank you
Tim Ball
TDB Consulting
Show LessHello Cypress BLE World:
I would like to know which Cypress BLE API function(s) is (are) required to acquire the UUIDs of the Services and the UUIDs and Handles of the Service Characteristics of a connected Client.
For example, the services of a Peripheral Server (implementing the Device Information Service and a Custom Service) are as listed below and includes the UUIDs of the Services (i.e. 180A and AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA) and the UUIDs and Handles of the Service Characteristics (e.g. 2A25,000B and 11111111111111111111111111111111,0018):
180A
2A25,000B,V
2A27,000D,V
2A26,000F,V
2A28,0011,V
2A29,0013,V
2A24,0015,V
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
11111111111111111111111111111111,0018,02,14
11111111111111111111111111111111,0019,10,02
22222222222222222222222222222222,001B,08,14
33333333333333333333333333333333,001D,02,14
33333333333333333333333333333333,001E,10,02
44444444444444444444444444444444,0020,08,14
Note: The Service Characteristics with duplicated UUIDS (i.e. 1’s and 3’s above) are those of Read Characteristics employing a Read and Notification that require a separate Handle for each.
Initially, I thought the function CyBle_GattcDiscoverAllPrimaryServices() was to be called while collecting the results in the CYBLE_EVT_GATTC_READ_BY_GROUP_TYPE_RSP event till completed as indicated by the CYBLE_EVT_GATTC_ERROR_RSP event as described on Page 156 of 558 of 'PSoC Creator Component Datasheet, Bluetooth Low Energy (BLE) 2.0' (Document Number: 001-97122 Rev. **).
However, calling CyBle_GattcDiscoverAllPrimaryServices() and collecting data in the CYBLE_EVT_GATTC_READ_BY_GROUP_TYPE_RSP event results in the following:
010007000018080008000118090015000A18
1600FFFFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
And the CYBLE_EVT_GATTC_ERROR_RSP event is never activated.
Is it possible that the function CyBle_GattcFindIncludedServices(), as described on Page 158 of 558, is to be called instead?
Unfortunately, as described in the document, there is a lot more work to be done to get that information and I would like to know if that is the function that is to be implemented before I spend a great deal of time coding, confirming, and testing it.
Is it possible that there is a function other than GattcDiscoverAllPrimaryServices() and CyBle_GattcFindIncludedServices() that should be used to get the connected Client Services and Service Characteristics UUIDs and Handles?
Thank you,
Tim
Show LessI have the Pioneer 4 dev Kit (CY8CKIT-044)
And i am working on a project for work using similar setup and thought about how i could use it at home. I have a need to be able to turn off or kill the power to an outlet based on sound. Since we are using a 2 relay module for out project, i was trying to find out if i could do the same thing for myself.
This is the relay we are using and wanted to see if it would work for my project.
http://www.amazon.com/SainSmart-2-CH-2-Channel-Relay-Module/dp/B0057OC6D8
What im trying to accomplish is the following:
Turn off /kill power to a 240v outlet in my garage if sound is detected during certain hours of the day/night. I have an air compressor that is connected and requires the user to flip the switch to kick on the motor to fill the tank(automatic when left on and being used) being that the human factor comes into play, it has happened(not often) that i use it all day and forget to turn it off, since the motor only comes on when the tank is low, of course you dont know its on until its to late. So what happens is if left on, and the tank runs low, it will kick on to refill and in some cases will trigger the safety valve which then releases the air, so then the motor continues to run all night long..
So far i havent gotten any complaints, but rather not. So as a back up to me forgetting, i want to setup something to monitor the compressor and kill the power if the motor kicks on. I already have a sound detector board i picked up from sparkfun(https://www.sparkfun.com/products/12642) and have created a project in the past to detect sound.
So basically between the hours of say 10pm and 9am, if sound is detected (within a certain range) kill the power to the compressor, if not with the sound detector, maybe something to sense vibrations that i can adhere to the motor itself so i know its on and it wasnt just something else.
And the power would need to stay off during the time, maybe even go without a sensor and just kill power to it daily between those hours.
Im open to suggestions, and modules/devices i could use to accomplish this project.
Show LessHello,
I'm using PSOC4 BLE, I want to know that how can we debug multiple programs in our PSOC board, When i feed 1 program in it & want to program again then last program will not work, SO how can i debug it with multiple programs. How can we add a log file in PSOC creator .
Show LessHi all, hope this topic fits well here.
Just start trying to learn ASM, so there is a lot of stuff i don't know yet, but i tried a function on ASM and call that function from the main file of ths program. Most of the function is just NOP instructions, so i was expecting 1 or 2 clock cycles expended on each of those (i'm measuring the cycles watching the SysTick Value register on the Memory view while debug session), but i'm getting 4 clock cycles on each 😕 .
The function seems to take only 16 clock cycles, but i'm getting about 52.
Optimization is set to None, Debug mode.
Also i have found a register on the ARM site, DWT http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0337h/BIIFBHIF.html, it is a cycle counter, but i can't find it on the Register Documentation of the 4200 family, so anyone who can tell me if what i'm doing is well? any thought on another way to measure clock cycles?
Atached the project, it's based on the PSoC 4 Pioneer Kit
Thanks in advance, and excuse for the n00b questions 😄
Show LessHello.
I have cy5670 dongle and it works fine with Cysmart. Is it possible to use the same API as Cysmart and make C++ user application to control dongle without Cysmart GUI, in a programmatic way?
Show LessHello,
I am pretty new to bluetooth and I have gone through some of the SDK on how to create custom GATT profiles
and how to use certain modules. I just am not sure how to choose which modules I need for my application.
I am trying to send Serial Data (from a MCU using UART and sending the data over the air using RF antenna) over the
air to a bluetooth chip so that I can print it out to a terminal or even read using a bluetooth phone app.
To read in the serial data, which module should I use? And which module to send it to the bluetooth (USB dongle preferred)
to be able to print the data to a terminal using the bluetooth (possibly with UART).
Show LessHello Folks,
I need to add a good amount of code but the BLE stack is occupying almost 69% of flash and SRAM use is nearing 98%. For SRAM, I found http://www.cypress.com/blog/psoc-creator-news-and-information/controlling-sram-usage-psoc-applications. But I am still looking for BLE flash reduction. Does any way exists? Thanks in advance.
-gits
Show LessI just discovered that Cypress has a Thermistor Calculator Component that I would like to use.
How do I add this to my Component Catalog so I can add it to my project?
I'm assuming it's allowed with BLE PRoC, since it's a software component, but maybe not since I can't get it as a component in the catalog.
Thanks
Show Less