PSoC™ 4 Forum Discussions
iPhone X running Bluetooth 5 cannot pair with my Bluetooth low energy device with the chip CYBLE-214009-00 running Bluetooth 4.1. Other iPhone models works fine. I even upgraded to iOS 12 beta with no luck.
Here is the log:
CYBLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ: handle: 3
CYBLE_EVT_GAP_AUTH_FAILED, reason: AUTHENTICATION_TIMEOUT
CyBle_PulseCtrlSendNotification API Ok: 0
CyBle_PulseCtrlSendNotification API Ok: 0
CYBLE_EVT_GATT_DISCONNECT_IND
CYBLE_EVT_GAP_DEVICE_DISCONNECTED, reason: 13
Any clue will be much appreciated. Thanks in advance!
Show Less
Could I get a real clear example of how to do read only BLE call, I have read through 10 app notes and my code does not function.
My code is at the end of this tread.
Re: CYBLE_EVT_GATTS_READ_REQ - Identify which characteristic was read
Show LessDoes the BLE stack create or update a value when a non bonded device pairs?
In other words, when a device pairs, how do you know if you should store it, or if it already stored?
Show LessHi,
The problem is that when I use the Bootloader Host to program my prototype board, the Bootloader Host reports as such
05:56:14 PM - program Started
05:56:16 PM - program Finished Successfully
05:56:16 PM - program completed in 1430 ms.
Except the code that I am attempting to program into it does not seem to write to the prototype board.
The code I am using are the bootloader and blinking LED bootloadable projects that come with the kit. The blinking LED comes on to indicate that the prototype board is running the bootloader. However, upon "successful" programming, instead of the LED blinking at a slower rate, the LED simply shuts off.
I have double checked the HEX and ELF dependencies
I have tried this on two separate Prototype Boards, and on different computers and I still have the same issue. There are no errors to help give a direction to troubleshoot.
Has anyone heard of this problem before?
-Thanks for your time
Show LessHi, I'm starting to learn the PSoC hardware, I'm using the LED blinking + UART bootloader examples code for the CY8CKIT-049-41xx board kit Setup File package . I'm able to change the PWM parameters of the LED blinking application that runs when not pressing the button, build and use the bootloader host to download the firmware to the board, confirmed by the different times the led is on and off. However I've tried to change the PWM parameters of the faster LED blinking in the UART Bootloader side, rebuilding all the files and then downloading the firmware again but no matter the changes I do, it appears the bootloader host is only rewriting the LED blinking side, since the LED time of the Bootloader app remains always the same. It is my guess that the bootloader app is only writing the memory blocks of the LED Blinking app, but not it's own section. It was my understanding that the boot loader host sent the full memory contents to the bootloader app and reflash the full memory, is this suposition correct? How could I perform any other changes to the bootloader app in that case? What if I wanted to change it to communicate by I2C then? That's why so far I've only tried the led time change, in case something else fails. Also, when I used the example code for the first time, the compiling failed saying the bootloader components were a previous version (1.3). I used project->update components to repair it (version1.6) and it built successfully. Then I had the issue mentioned above. Not sure if it could be related but worth mentioning. I'm attaching the workspace files as suggested by user_242978793 in a similar post. Thanks a lot for cheking it!
Show LessMy issue is that the BLE device does not see a disconnect.
Using the USB HID Keyboard Demo, with some modifications. There is no BLE sleeping, and the main loop is using CySysPmSleep() which is woke by a 1mS hardware interrupt from a timer. Therefore, CyBle_ProcessEvents() is called at least every ms. BLE version is current: 3.52
Scenario:
- Connect
- Use Battery Service
- Backout of Android app until phone says "Device is disconnected"
Expectation: BLE Stack should indicate CYBLE_EVT_GAP_DEVICE_DISCONNECTED or CYBLE_EVT_TIMEOUT, depending on whether it heard the disconnect message. The connection state should change and it should go back to advertising.
Auto come: Neither event happens and stack continues to say CyBle_GetState() == CYBLE_STATE_CONNECTED is true forever.
What am I doing wrong? Thanks.
Log Output
> BLE Upgradable Stack HID Keyboard
> Version: 1.20
> Compile Date and Time: Jul 6 2018 10:15:29
Bluetooth On, StartAdvertisement with addr: 00a050000615
CYBLE_EVT_ADVERTISING, state: 3
CYBLE_EVT_GATT_CONNECT_IND: 0, 4
CYBLE_EVT_GAP_DEVICE_CONNECTED
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
CYBLE_EVT_AUTH_FAILED: 6
CYBLE_EVT_GATTS_XCNHG_MTU_REQ, final mtu= 23
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
CYBLE_EVT_GATT_DISCONNECT_IND
CYBLE_EVT_GAP_DEVICE_DISCONNECTED
CYBLE_EVT_ADVERTISING, state: 3
CYBLE_EVT_GATT_CONNECT_IND: 0, 4
CYBLE_EVT_GAP_DEVICE_CONNECTED
SimulBatteryLevelUpdate: 2
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
CYBLE_EVT_GATTS_XCNHG_MTU_REQ, final mtu= 23
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
SimulBatteryLevelUpdate: 2
OTHER event: 57
OTHER event: 33
CYBLE_EVT_AUTH_REQ: security=3, bonding=1, ekeySize=10, err=0
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
CYBLE_EVT_GAP_ENCRYPT_CHANGE: 1
CYBLE_EVT_GAP_KEYINFO_EXCHNGE_CMPLT
AUTH_COMPLETE: security:1, bonding:1, ekeySize:10, authErr 0
OTHER event: fa
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
OTHER event: 104
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
OTHER event: 57 //Manual Read
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
SimulBatteryLevelUpdate: 2
SimulBatteryLevelUpdate: 2
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0 // Only indication of phone disconnecting
CYBLE_EVT_CONNECTION_UPDATE_COMPLETE: 0
SimulBatteryLevelUpdate: 2 // Should never happen - no longer connected.
SimulBatteryLevelUpdate: 2
SimulBatteryLevelUpdate: 2
SimulBatteryLevelUpdate: 2
Show LessHi!
I'm developing a battery powered project with the CY8C4126AXI-M443 that uses the CapSense and is working very fine.
Now I have to measure the battery voltage and to do that, I'm using the ADC_SAR_Seq component.
I configured the adc module and added into the project. The problem that I'm dealing is that the processing of main function freezes on the calling of the first capsense function.
Bellow I provides a piece of code with the implementation of Capsense and ADC setup.
The processing freeze on CapSense_ScanSensor function.
- main.c --------------------------------------------------------------------------------
void main( void )
{
/* Start CapSense component */
CapSense_Start();
CapSense_SetDebounce( CapSense_SENSOR_PROX_0__PROX, 2 );
/* Set resolution of proximity sensor to 16 bit for maximum possible
* proximity sensing distance
*/
CapSense_SetScanResolution( CapSense_PROX__PROX, CapSense_RESOLUTION_16_BITS);
/* Scan sensors and initialize baselines */
CapSense_InitializeSensorBaseline(CapSense_SENSOR_PROX_0__PROX);
/* Initialize Advanced Low Pass (ALP) filter with current raw count
* value, and set the k value for ALP filter.
* Note: Refer AN92239 for details on how to select appropriate k value
* for the filter.
*/
CapSenseFilters_InitializeAdvancedLowPass( CapSense_SENSOR_PROX_0__PROX, CapSense_ReadSensorRaw(CapSense_SENSOR_PROX_0__PROX) );
CapSenseFilters_SetAdvancedLowPassK(CAPSENSEFILTERS_IIR_K_32);
CySysPmUnfreezeIo();
(void)BatMonInit();
BatMonStart();for(;;)
{
WdtReset();
CapSense_ScanSensor(CapSense_SENSOR_PROX_0__PROX);
while(CapSense_IsBusy())
{
/* Wait until scan is complete */
}
/* Apply ALP filter on proximity sensors */
CapSenseFilters_RunAdvancedLowPass(CapSense_SENSOR_PROX_0__PROX);
}
}
- batmon.c ------------------------------------------------------------------------------
void BatMonInit( void )
{
ADC_SAR_Seq_Init();
ADC_SAR_Seq_IRQ_StartEx( ADC_SAR_Seq_ISR );
}void BatMonStart( void )
{
ADC_SAR_Seq_Start();
ADC_SAR_Seq_StartConvert();
return;
}void ADC_SAR_Seq_ISR( void )
{
uint32 intr_status;
uint32 range_status;/* Read interrupt status registers */
intr_status = ADC_SAR_Seq_SAR_INTR_MASKED_REG;
/* Check for End of Scan interrupt */
if((intr_status & ADC_SAR_Seq_EOS_MASK) != 0u)
{
/* Read range detect status */
range_status = ADC_SAR_Seq_SAR_RANGE_INTR_MASKED_REG;
/* Verify that the conversion result met the condition Low_Limit <= Result < High_Limit */
//if((range_status & (uint32)(1ul << CH0_N)) != 0u)
{
/* Read conversion result */
result[CH0_N] = ADC_SAR_Seq_GetResult16(CH0_N);
}/* Clear range detect status */
ADC_SAR_Seq_SAR_RANGE_INTR_REG = range_status;
dataReady |= ADC_SAR_Seq_EOS_MASK;
}
}
-----------------------------------------------------------------------------------------
Show LessHello!
Do you have "Parameter sheet" for PSoC4 firmware, that is a list of the technical data which is
not related to any restriction subject to Export Regulation or Military End-Use Control.
We already got the parameter sheet about hardware part PSoC4, but have not got the sheet about software part yet.
Do you have it? Actually I want to export our device with PSoC4 from Japan to the US.
That would be great if you could send it to me.
Best regards,
Masa
Show LessMiniProg3 (CY8CKIT-002)の電源仕様について教えてください。
PSoC Creator > tools > component tuner , Debug > configuration で起動したときに設定する、”Tuner Communication Setup”画面中で、、
#1.Power を5Vに設定した場合、ターゲット基板に供給できる消費電流はいくつでしょうか?
#2.Power を3.3Vに設定した場合、ターゲット基板に供給できる消費電流はいくつでしょうか?
#3.PowerをExternalに設定して外部からminiprog3に電源供給する場合、miniprog3の消費電力(もしくは5V動作時の消費電流)はいくつでしょうか?
(もし、提供不可の場合、内部回路図の提供をお願いします。)
以上、よろしくお願い致します。
Show Less
Hello everyone,
For a project, we developped a keypad using CY8CMBR3116.
These keypads are installed on bikes, used outside.
Since some times, the keypads "lost" their configuration and go back in factory configuration.
We actually are using 12 keys, guard sensor, proximity sensor and shield electrode.
Our customer made a soft to test CRC at each power on, and if not the same, reconfigure the chip.
Even with that, we still have problems of loosing configuration.
The keypad is power off after 1 minute of inactivity, and the user must press a pushbutton to power on.
In office, we didn't succeed to get this problem (only when the keypad is on the bike)
Do you know where the problem can come from and how to solve it ?
Many thanks for your help ,
Best Regards,
Show Less