PSoC™ 4 Forum Discussions
Good evening,
I need help to configure the BLE to accept or connect to 4 different Android Devices, the task is easy I just send continouos a notification and this is read by the Android or anoher BLE, but I want to send this information as many devices connected as I can. But I don't know if this is possible.
Thank you
Show LessHello Seniors,
I am trying to talk to the PRoC Dongle in Qt through serial port, get Local Random/Public Bluetooth Device Address of my dongle, calling Cmd_Get_Bluetooth_Device_Address_API by sending a byteArray,
// 02_Public: Cmd_Get_Bluetooth_Device_Address_Api (Trigger Complete)
cmdPacket_GetBleDevicePublicAddress[0] = 0x0C
cmdPacket_GetBleDevicePublicAddress[1] = 0x00
cmdPacket_GetBleDevicePublicAddress[2] = 0x01; // sizeof(uint8)
cmdPacket_GetBleDevicePublicAddress[3] = 0x00;
cmdPacket_GetBleDevicePublicAddress[4] = 0x00;// Public Address Type
However, whenever I try this after the Cmd_Init_Ble_Stack_Api() was successfully done, I can only get a signal of CYBLE_ERROR_INVALID_PARAMETER
Since there is no problem to get those address in CySmt, I tried to also tried to set the same Random/Public Address with what I got in CySmt by myself, with a cmd packet to trigger Cmd_Set_Bluetooth_Device_Address_Api, however, still can only get CYBLE_ERROR_INVALID_PARAMETER.
all of those command packets were sent after the Cmd_Init_Ble_Stack_Api() was successfully done.
Could anyone tell me what did I miss to initial its address?
How could I get the Random and Public Address?
Thank you!
Show LessSo I have added another SPI component to my application and now how Exceeded blocks. I found that I can just use a Control Register to switch between CS pins, but the issue is that one component accepts a 16-bit and the other is an 8-bit. Question is, how to I send just the 8 bits when the SPI component is set to accept 16?
Show LessHello,
I started exploring the world of PSoC with PSOC 4 BLE kit and it was great until I ran into trouble making i2c bus work.
I am trying to hook up i2c character LCD, however it seems like I am unable to initialize i2c properly.
I tried different pins/speeds, using low level i2c api and high level - nothing helps.
I check the SCL pin with oscilloscope and don't see any signal.
I tried example projects - still no signal on SCL and SDA..
I attach my code and project:
<pre><code>
#include <project.h>
#include "LiquidCrystal_I2C.h"
__IO uint32_t TimingDelay = 0;
uint32_t DeviceAddr = 78;
uint16 shit=0;
int i=0;
int main(void)
{
CyGlobalIntEnable;
PWM_1_Start();
I2C_M_Start();
PWM_1_WriteCompare(0);
while(1){
I2C_M_I2CMasterWriteBuf(DeviceAddr, (uint8 *)DeviceAddr, 1, 0);
I2C_M_write_byte(DeviceAddr,67);
I2C_M_I2CMasterSendStart(DeviceAddr,0);
CyDelay(1000);
}
}
</code>
Problem statement:
"Set next instruction" feature is not available in dissembly mode.
Same feature is available in c code symbols debugging in PSoC Creator. PFA screen-shot.
Show LessI have a pulse sensor(ppg) and i am trying to connect it to an analog pin so that i can store the pulse values, but i am having trouble with this. So, my question would be how do i connect the pulse sensor to the the psoc board and what are the components to be included so that i can see some values when i read of the analog pin.
Show LessEdit: I was somewhat incomplete.
I'm using the: CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit. Using the CY8C4247LQI-BL483.
I'm making my first steps with the bluetooth BLE dev kit using the Day040_BLE_Game_Controller example.
I've got quite some experience with the RovingNetworks/MicroChip RN-42 series. I also have some experience HID descriptors and BT connectivity.
I want to make my own game controller and want to change the service name (not to be confused with the "Local name" or "Device Name" that can be discovered). The device name (discovery name) that I use is "MyJoystick".
In the Day040_BLE_Game_Controller example this service name is set to "2 axis 2 button Joystick". See attached file.
I want to change this, but I can't find it anywhere in the code or HID descriptors.
Anyone any idea how I can change this?
Thanks...
Show LessWe are developing a prototype a game controller with the PSoC 4 BLE, but we experience a lot of lag or improper input state.
Actually this started already at the first days of experimenting with the dev kit about 3/4 month's ago.
We are trying to make a simple game controller, but so far it has issues with communication. From 1 out of 15 states it has a delay in going from a state to no-state. Like user is making a several combinations and suddenly stops doing anything the last input sometimes 'hangs' for 3-5 seconds (lag).
The point here is 'sometimes', but it happens too often to make a product out of it.
We tried several BT stacks on MacOS, Windows using different manufactures of BT hardware, but it all has the same lag.
Our input analysis software shows this lag happening.
We have experienced this with all development PSoC creator versions since 4 month's ago. And also tried several devkits and modules.
Also the Day040_BLE_Game_Controller example provided by Cypress via Github has these issues.
We wonder what other people experience regarding lag? And how do we fix this?
Show Less