PSoC™ 4 Forum Discussions
in psoc creator, if you use the schematic tool to create 4 input switches, and name them SW1, SW2, SW3, SW4, the tool autogenerates 4 instances of the exact same code, the only difference is the name of the function, it creates API SW1_Read SW1_Write, SW2_Read, SW2_Write, SW3_Read SW3_Write, SW4_Read, SW4_Write,
Is there a way to get the tool to generate one copy of the API then you pass it the port. for instance just having Read_Port, and Write_Port, then pass the port as variable. instead of having 4 coppies of the same code?
Show LessHi,
I just bought the CY5677 Cysmart BLE 4.2 SUB Dongle with cy8c4248lqi-bl583. When I plug into my computer and run the Cysmart 1.2, it shows unsupported device.
I have clicked reset button but it still shows unsupported device. I then followed the description shown in Cysmart and went to PSoC Programmer to program the firmware but it shows:
ERROR: The hex file does not match with the acquired device, please check the device.
I only have the BLE_4_2_Dongle_CySmart_256K.hex in Cysmart folder for CY5677. I am not sure if this is the correct hex file. If not correct, where can I get the correct hex file?
Show LessHi,
I am thinking of connecting an serial EEPROM with PSOC 4 to store configuration data, in this regards looking for a design sample to connect the interface and firmware to access it.
Thank you,
Show LessHi,
I am using PSoC 4 to develop a sensor. I need to timestamp the data I read, then I will only send the peaks and their timestamps to a mobile phone.
When I code:
#include<AFE4403_Sample.h>
#include<time.h>
#include <sys/time.h>
// afe4403 sample data
void AFE4403_Sample(int *num, uint32 (*data)[350])
{
uint32 temp1;
int n=0;
time_t stop,start;
double Timestamp[350];
start=time(NULL);
if (*num<50) // num = 340 when work; num = 34 when debug
{
while(n<350)
{
temp1=BLE_AFE4403_ReadData(0x2A,0x00); /
temp1=temp1& 0xffffff; //set the highest two bits to 0
CyDelay(10);
stop=time(NULL);
Timestamp
(*data)
n++;
}
}
}
My Timestamp[350] array will have 350 times the same value. Does anyone know how to get the time difference between the start of AFE4403_Sample and the reading of my data?
Regards,
Elias
Show LessHey All,
I am using the example projects supplied by cypress of OTA upgradeable stack bootloader for PSoC 4200 BLE devices. I am using CYBLE-214009-00 PSoC BLE Module and CySmart application on an android cellphone for the upgrades. The system works fine as expected, but I am having some trouble with authentication now and then.
During an expected procedure:
1. I use CySmart to scan, connect, and evoke services screen on the App
2. This results in an authentication request being received by the app:
S ble 72 CYBLE_EVT_AUTH_REQ: security=0x2
S ble 73 CYBLE_EVT_AUTH_REQ: bonding =0x1
S ble 74 CYBLE_EVT_AUTH_REQ: ekeySize=0x10
S ble 75 CYBLE_EVT_AUTH_REQ: err =0x0
and the systems responds with authentication success.
3. I am able to navigate to bootlader service, which initiates the bonding successfully
Now if I disconnect the connection by navigating back to scan menu instead of uploading the firmware, the following happens:
1. In scan menu, I select the bootloader again, CySmart attempts to connect, and evoke services screen again
2. The PSoC sees the connection attempts, but without evoking any authentication request, responds with authentication Failure:
CYBLE_GAP_AUTH_ERROR_INSUFFICIENT_ENCRYPTION_KEY_SIZE Insufficient key size for the security requirements of this device or LTK is lost
3. The PSoC disconnects and CySmart fails to do service discovery and is stuck with a non-services to show screen.
Has anyone else seen a similar problem or give me some pointers to Android - PSoC authentication which is potentially manifesting in this behavior?
For additional information, the device is setup for Security level of Unauthenticated pairing with Encryption.
Any help will be greatly appreciated.
Thank you
-Sohail
Show Lesshi,
i want to generate the systick timer interrupt for 1 sec delay.Which is used for RTC_update() ,
please help me to resolve the issue.
Thanks in advance
Show LessI am using PSOC 4100S and its mounted on my PCB with an LED driver connected to the controller. The DC to DC converter on board is powering the controller. is there anyway by which i can deactivate the micro controller on board without disconnecting the VCC line. I tried connecting the XRES pin to ground but the controller is still active and sending signals to LED driver.
Show LessHi,
Can I advertise the Bluetooth Device Address (BD_ADDR) with the local name??
For example: the constant local name is "nm1" and I want it advertise with the BD_ADDR of the device - "nm1 -00A050548266"
Is it possible to do this at all?
Thanks
Show LessSorry if this is an obvious question, but couldn't find it in the lit easily, it seems..
We have a 28pin SSOP device (CY8C4245PVI-482) in our design.. we are only using about half the GPIO pins, and wondering what standard practice is concerning the unused/unconnected pins.. should we connect them all to ground, or just let them float?
This is our first PSoC build and we have a very simple circuit.. but want to get the format right before we explore further.
Show LessHello. posc4 It is a student who became an introduction. Is it compatible with Addo En Lang posc 4 ble? I want to make RGB control with Bluetooth, using a simple LED, and create a mood that makes use of it. Do you have any material that is worthy of reference?
Show Less