PSoC™ 4 Forum Discussions
I'm currently trying to port freertos v9.0.0 to my CY8C4247LQI-BL483 (PSOC4 device). (Using with CY8CKIT-042-BLE Pioneer baseboard)
I've got succeeded in making a simple led blinking with a freertos task.
However, when I try to implement a button press ISR, I have failed.
I used the CY_ISR in order to implement a button press ISR.
I've attached my project.
I'm not sure why the ISR is not occuring when I press the button.
I've check some other sample freertos ported projects, and they have implemented the CY_ISR the same way as I did.
Could anyone nudge me in the right direction?
Show LessHello Cypress BLE World:
A Custom Profile Service UUID may be viewed in the Configure BLE, Profiles tab, Custom Service window as, for example, UUID: AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA
An associated Custom Service Characteristic UUID may be viewed in the associated Custom Characteristic window as, for example, UUID: 11111111-1111-1111-1111-111111111111
The Custom Profile Service UUID value resides in the BLE_gatt.c file in the const uint8 cyBle_attUuid128[][16u] variable as:
{ 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu, 0xAAu },
The Custom Characteristic UUID resides in that variable as:
{ 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u, 0x11u },
The Custom Profile Service UUID may be read using the Macro CYBLE_GATT_DB_ATTR_GET_GEN_VALUE.
However, using that Macro to read the Custom Characteristic UUID gives the Characteristic Value and not the UUID.
The defined constants in BLE_custom.h do not include the Characteristics UUID handles from which to read the Characteristics UUID from the database.
This is proven by working backwards from where the Custom Characteristic UUID resides in the database as described and shown in the attached graphic for the remainder of this post:
Show LessHi there,
I need to include in my advertisement packet my PRoC device Mac Address so I can identify different devices with it.
I have found this: http://www.cypress.com/forum/proc-ble/mac-address , but didn't helped me much. I don't understand how should I use these "CYBLE_SFLASH_DIE_..." to get the Mac Address... Actually I didn't get what these macros mean.
Can someone help me?
Thanks in advance 🙂
Show LessHi All
As part of my application I need to start and stop BLE Scanning.
To start scanning I use the function CyBle_GapcStartScan(CYBLE_SCANNING_FAST).
To stop scanning I use the function CyBle_GapcStopScan().
The start scanning always works and generates a CYBLE_EVT_GAPC_SCAN_START_STOP event.
The stop scanning only works intermittently.
When it works it generates a CYBLE_EVT_GAPC_SCAN_START_STOP event.
When it doesn't work, no event is generated and the BLE remains in scanning mode.
Are there other conditions I need to set to stop the BLE from scanning.
The device is a CYBL10563-56LQXI
Thanks
John
Show LessHi,
I was working for more than a year now with the Cypress BLE-Kit and startet with the old 128kB Module, then switched over to the 256kB modules and it went very smooth.
But now I ordered some of the new CY8CKIT-143A with the new BLE 4.2 support and after updating the device and the components BLE just won't work.
Because my project is very complex, I tried with the Bonding-Example of day 15 from the blog, but even this doesn't work.
After fixing the printf for the passkey-display, I can now pair with the device again. But the Cypress-App doesn't show any services. Only an empty page with "No services found".
I'm not sure if that is a problem with the module or the app. Does anybody else have this problem?
I added my modified example for testing.
Thanks
Andreas
Show LessHi everyone I'm using a Cypress BLE BL583 and I'm sending bunches of 20 chars through the BLE, I'm receiving the data each .15s , I read that the data rate of the BLE is 1 Mbit/s but I'm not sure if that's true.
I'm trying to speed up the sending data, I put the MTU in 23, I have the connection interval with a minimum of .75ms and a maximum of .75ms, I have a slave latency of 0 and i don't have a connection supervision timeout.
I read that we can reach 270Kbit/s for maximum data rate, but I don't know how to made that and if is possible!!
I really need your help I'm blocked with this trouble!!
I'm sending the data with the function CyBle_GattsWriteAttributeValue
Thanks a lot to everybody
Show LessI am using psoc4000s in our project developing, We need touch key,slider key,and also water level measurement function, I haved used capsense component to implement the touch key,and slider key function by refer some examples.But when i will refer to CE202479_PSoC_4_Capacitive_Liquid_Level_Sensing for water level measurement,I find i can't use it,errs "Error in component: CapSenseCsd. The CapSense_CSD_P4_v2_20 component (CapSenseCsd) is not compatible with the selected device. Please check the component datasheet for details on updating to a compatible component."
I can't find any example using CapSense for liquid measurement.so i am beated!
Any one can help me? I am appreciated all!
Show LessHello all,
I recently got a new CY8CKIT-049-42XX. I wat to make a project that blinks an led for 30 seconds, then turns it off. My problem is that every other 30 seconds, the led is on for 30 seconds. So, to make this work, I added an if statement with if (led_Read == 0), but that generates an error. How would I solve this?
Thanks,
Wilson
Show LessI need to read the input from the UART.
Set the UART working as interruption mode.
RxBuf =4; TxBuf=40;
Then once Rx Recieve char 'a' need to read another 16 bytes.
The problem is ,if read less than 8, it works fine, more than 8 it will report a strange value.
I try to change the RxBuf to 16 not helping.
CY_ISR(UART_RX){
ch = get_byte();
if (0xffffu != ch)
{
if(ch=='a'){
get_byte();
.....
get_byte();
}
}
}
uint16 get_byte(){
uint16 ch = 0;
uint16 _timeout=200;
do{
//if(UART_DEB_GetRxBufferSize()>0)
{
ch = UART_DEB_GetByte();
if((ch&0xff00)==0){
return ch&0xff;
}
}
_timeout--;
}while(_timeout>0);
return 0xFFFF;
}
We have a component on the I2C bus which requires about 60us delay from SCL and SDA line pull down until clock and data begin to send. How is this possible to configure?
Show Less