PSoC™ 4 Forum Discussions
When a name is typed into the Device Name in the BLE configurator does this define both the GATT NAME and the ADVERTISING Name?
If not, how does one set both to the Device Name?
Thanks,
Dennis
Show LessHi CY Friend,
我客戶想做個1wire的通訊,要求低電平0.4us,高電平0.8us。基本就是要求頻率2M以上。
我用了AN里提到的set和clr來快速toggle GPIO,也把GPIO輸出设置成强驱动了。但是目前还是不太够。希望频率能更高。
请问有没有办法呢?
谢谢
sohie
Show LessHello,
This is Basavaraj M, i need a help from you, can cyble-012011-00 can be interfaced to arduino uno. I am making the propject to make the cypress ble act as the normal bluetooth (Ex:- HC-05) the ble should act as the transmitter and the receiver and i am going to bond the ble with the mobile bluetooth and i am going to send the string, character or any other information to the ble via the bluetooth app (any app used by the HC-05) and it should send the data to the arduino uno/mega and it should show the data into the monitor and vice versa. is it possible?
Show LessImported Cypress official example BLE_FindMe project to this device.
I can see the device name from CySmart 1.3. Connect to the device success but after following log.
Cy samrt say "Exchange GATT MTU Size timed out". If comment out Line 215 to 243 then works without these problem.
These lines are BLE sleep related.
Attached both project file.
How Can I make BLE work with sleep functions?
[12:10:34:761] : 'Establish Connection' request sent
[12:10:34:761] : BD Address Type: PUBLIC_ADDRESS
[12:10:34:761] : BD Address: 03:00:00:50:A0:00:00:00
[12:10:34:764] : 'Command Status' event received
[12:10:34:764] : Status: BLE_STATUS_OK
[12:10:34:811] : 'Establish Connection Response' event received
[12:10:35:794] : 'Current Connection Parameters' event received
[12:10:35:794] : HCI Status: 0x00
[12:10:35:794] : Connection Interval: 8.75 ms
[12:10:35:794] : Slave Latency: 0
[12:10:35:794] : Supervision Timeout: 100 ms
[12:10:35:794] : 'Command Complete' event received
[12:10:35:794] : Status: BLE_STATUS_OK
[12:10:35:795] : 'Get local device security keys' request sent
[12:10:35:796] : 'Command Status' event received
[12:10:35:796] : Status: BLE_STATUS_OK
[12:10:35:803] : 'Get local device security keys response' event received
[12:10:35:803] : Key flags: INITIATOR_ENCRYPTION_INFORMATION, INITIATOR_IDENTITY_INFORMATION, INITIATOR_SIGNATURE_KEY, RESPONDER_ENCRYPTION_INFORMATION, RESPONDER_IDENTITY_INFORMATION, RESPONDER_SIGNATURE_KEY
[12:10:35:803] : Long Term Key (LTK): [D6:93:E8:A4:23:55:48:99:1D:77:61:E6:63:2B:10:8E]
[12:10:35:803] : Encrypted Diversifier (EDIV) and Random Number: [99:1F:26:1E:F6:09:97:2E:AD:7E]
[12:10:35:803] : Identity Resolving Key (IRK): [0A:2D:F4:65:E3:BD:7B:49:1E:B4:C0:95:95:13:46:73]
[12:10:35:803] : Identification Address: [0x00A0500C1313, PUBLIC_ADDRESS]
[12:10:35:803] : Connection Signature Resolving Key (CSRK): [90:D5:06:95:92:ED:91:D7:A8:9E:2C:DC:4A:93:5B:F9]
[12:10:35:804] : 'Command Complete' event received
[12:10:35:804] : Status: BLE_STATUS_OK
[12:10:35:804] : 'Set OOB data' request sent
[12:10:35:804] : OOB flag: Disable
[12:10:35:804] : OOB Key: [00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00]
[12:10:35:804] : OOB Data: [00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00]
[12:10:35:809] : 'Command Status' event received
[12:10:35:809] : Status: BLE_STATUS_OK
[12:10:35:810] : 'Command Complete' event received
[12:10:35:810] : Status: BLE_STATUS_OK
[12:10:35:810] : 'Exchange GATT MTU Size' request sent
[12:10:35:810] : MTU: 0x0200
[12:10:35:813] : 'Command Status' event received
[12:10:35:813] : Status: BLE_STATUS_OK
Show LessMy design have 1 tact switch which control the devices Power On/OFF.
So I need turn on and off BLE function too. But only first time works.
I imported Cypress official project BLE_FineMe to this device.
Then add following code just after original BLE start code.
apiResult = CyBle_Start(StackEventHandler); /* original BLE_Start */
CyBle_Stop(); /* added */
apiResult = CyBle_Start(StackEventHandler); /* added */
Using debugger I observed first CyBLE_Start executed and reached to next line.
But second time never come back from the function, never reach to next line.
I attached project file. Please help how can I solve this.
Show LessHi guys,
I'm working on storing config data in user supervisory flash on a 4100S.
I've already implemented user flash config storage in a CYBLE Module based on the sflash_example but I don't get it running on the 4100S MCU.
I copied the WriteUserSFlash.c & .h from my working CYBLE project and changed settings like this:
Block Size: 128
Adress: 0x0FFFF200
Number of Blocks: 4
Write function (from sflash example) returns success, reading sflash addresses returns zeros.
Any ideas what's going wrong here?
Thanks for your help,
Florian
Show LessFirmware field updates via USB flash drive?
Hi,
Is it possible to upgrade the Psoc 4,5 or 6 firmware in the field via the USB link? I need the user to be able to download upgrades without having access to any special programmer hardware or software. Could anyone please give me some pointers?
Thank you!
Michael Madsen
Show LessI can see on your reccomendation of "General layout guideline of CY8CMBR3xxx_Design_Toolbox.xlsx" .
Our Proximity Spec
- Proximity Loop diameter 19mm
- Required Proximity Distance 19mm
Guideline
Proximity sensor Parasitic Capacitance (Cp)
Min 8 pF -- Max 45 pF
I input our parameter to "Table B: Cp Calclator of CY8CMBR3xxx_Design_Toolbox.xlsx".
This resuilt 6pFis out of your recommendation. 6pF < min 8pF
If you have any concern about this result. Please advice to avoid issue.
Show LessEDIT: I am now noticing that, if I turn the shield off, disable all my buttons, and leave my proximity sensor enabled, the Cp of my Proximity sensor jumps up to 65 pF. I found that my buttons also shift to mid 30s pF when the shield is disabled as well. If I wanted to remove the shield, would I have to cut the trace?
EDIT #2: Removing the shield by opening the trace did not help. That being said, I don't think allowing the user to enable/disable shield is an option--instead it would have to be two different designs, therefore two different products (I think?).
I have a CY8CMBR3116 on my custom board, and I have it configured with 12 button sensors and 1 proximity sensor. Below are screenshots of my configuration:
With this configuration, after the State timeout period expires, I can see every 120ms that I'm consuming approximately 2.4 mA for about 6.6 ms. That is not what I was expecting.
If I disable the shield and disable all of my buttons, and only leave the proximity sensor enabled, I see something more along the lines of what I'm expecting. ~2.4 mA over 400 us:
If I enable the shield, and keep all of my buttons disabled, and only leave the proximity sensor enabled, I see ~2.4 mA over 6.3 ms:
Lastly, if I disable the shield, and start enabling buttons, the time consuming power increases as the number of buttons enabled increases. This is a screenshot if I enable 6 buttons, enable proximity sensor, and disable shield (~2.4 mA across 5.5 ms):
So what I'm understanding is, there is no way around reducing the amount of time it takes the CY8CMBR3116 to scan for events if the Shield is enabled. Is this correct?
My second question is, let's assume I can make it a user setting to turn on/off the shield to extend battery life, what can I do to reduce the amount of time the CY8CMBR3116 need to scan for an event (I don't mean the scan period)? My proximity sensor is designed in a way that a proximity event would always occur before a button touch occurred. I would think that if we are in the "Look-for-Proximity" state, that only the Proximity sensor would be scanned, and I would see the 400 us scan period, however, the scan period changes for every button that is enabled/disabled and I'm not sure why this is. Why would each individual button be getting scanned for a touch if I don't care about button touches/look-for-touch until a proximity event occurred?
Are there settings I can adjust to achieve said power consumption?
Thank you in advance!
Show LessEncounter this behavior in PSOC 4 with BLE.
After testing i saw that:
Writing less than 7 bytes in the beginning of Sflash Row0 changes the MAC address of the device,
But when more than 7 bytes are written, MAC address does not change. (or reverts to default)
Can you please explain?
Thanks.
Show Less