PSoC™ 4 Forum Discussions
Hi, i have two nodes, one of them, as a SERVER (Pripheral) an other as CLIENT (CENTRAL), in the SERVER, i update some sensor datas with:
CyBle_GattsWriteAttributeValue();
And i want to read this values in the CLIENT, the connect is succesfully, but i have some problems when i read the data. The connection it is OK, later discover the GATT client in the server, and when is Discovered:
CYBLE_EVT_GATTC_DISCOVERY_COMPLETE:
I read the value with:
range.endHandle = 0x0030;
uuid.uuid16 = address;
readByTypeReqParam.range = range;
readByTypeReqParam.uuid = uuid;
readByTypeReqParam.uuidFormat = 0x01;
apiResult = CyBle_GattcReadUsingCharacteristicUuid(connHandle, &readByTypeReqParam);
Later i read the value with:
case CYBLE_EVT_GATTC_READ_RSP:
readResponse = *(CYBLE_GATTC_READ_RSP_PARAM_T *) eventParam;
All OK, but if i want to extract this code in a function, it doesn´t work it return to me: apiResult = CyBle_GattcReadUsingCharacteristicUuid(connHandle, &readByTypeReqParam);
Anyone know where it is the problem?
Thanks for all
Show LessIn my system, there are two i2c slave, and I've looked into the example of the CY5672 source code, the i2c source code seems does not simple enough for newbie like me. How to add another i2c slave into the exsiting source code?
I think it is a very normal use case that i2c master operate several i2c slave.
Show LessHi,
In one of my project while programing Psoc4 device , I am facing issue with the UART Rx interrupt.
In UART component I have set the size of the UART Rx and Tx buffer to 64. hence i will have to access only the internal Rx interupt (I have selected the Rx FIFO level =7 in the check box selection).
A sample code snippet which wasnt even working is mentioned below . Please let me know where am i wrong
void UartIntHandler(void);
int main()
{
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
SER_Init(); // Intialize Seial port// Start the SCB UART
SER_Start(); // Enabling the UART //
SER_SetCustomInterruptHandler(&UartIntHandler);
}
void UartIntHandler(void)
{
char UART_DATA;
SER_UartPutChar('S');
if ((SER_GetRxInterruptSourceMasked() & SER_INTR_RX_FIFO_LEVEL) != 0)
{
UART_DATA =SER_UartGetChar();
SER_UartPutChar(UART_DATA);
SER_ClearRxInterruptSource(SER_INTR_RX_FIFO_LEVEL);
}
Also I would like to have an code example of one wire component
Show LessWhat is the page size / sector size of the flash memory of PSOC 4200 family?
Hi everyone,
I would like to ask you a question about various test modes for your BLE device.
Indeed, I'm working on a PRoC based project (CYBL10161) and in a way to prepare EMC tests, I would like to know if there are some commands to switch ProC device in Loopback and/or Transmitter mode?
My goal is to make ProC device transmitting packets on each of advertising channels with a given power level.
Looking forward to your response,
Best Regards
Arnaud
Show LessI want my PRoC 4 BLE in the Central role to connect to another PRoC 4 BLE module, which is in the Peripheral role.
Then, I want the Central node to get a list of all the custom services and characteristics on the Peripheral, and get the handle of a specific (known UUID) characteristic, so that the Central node can write to the Peripheral's characteristics. If there is a way to access the characteristic by UUID, that is fine too.
What API calls should I use to get that information?
Show LessUsing a PSOC4 Pioneer Kit (CY8CKIT-042) I see uart activity on J4.2 (P0_5) only when initialized via:
UART_Start(); UART_UartPutString("Hello\r\n");
but not when initialized via:
UART_BCP_Start(); UART_BCP_SpiUartPutArray("Hello\r\n", strnlen("Hello\r\n", 6))
The hardware SCB design is the same in both cases (.cysch file and .cydwr), so the only difference is the software uart initialization files used (UART_BCP_UART.c vs UART_UART.c).
Why does only the non-BCP work?
Show LessHi,
I am using the Cypress PSoC BLE pioneer kit. I am trying to emulate the throughput example on project 24. I did not change the code downloaded from Github
I programmed the GATT Notifications Outgoing onto the PSoC board and programmed the GATT Notifications Incoming onto the USB Dongle.
I connected to both ports using Putty as per the settings mentioned in the accompanying pdf
Baud rate – 115200 bps, Data bits – 8, Stop bits – 1, Parity – None.
however I do not see any data on the terminal.
Am I missing anything ?
Thanks
Vijay
Hello,
I'm using the CYBLE-022001 module and I would like to use the LFCLK as clock of a counter block. But I have always the same error: M0139: Invalid connection for clock input ... The component requires a clock from the clock block.
What is the clock block? Is there a way to use the LFCLK in counter component?
Thanks in advance,
Gemotech