PSoC™ 4 Forum Discussions
Hello,
I can connect to a peripheral running the Day 052 example firmware (of 100 days projects) using the dongle board on the computer.
However the CySmart android app can not establish a first connection to the peripheral.
Why wouldn't connect with the phone app and write to the characteristics in the GATT DB screen similarly to what is done with Cysmart dongle?
I hope there is a workaround...
Fausto
Show Less1. I have created a peripheral server using a PSoC4 BLE with Bluetooth v. 4.2.
2. I want the device to bond with an iPad so that if the device is power cycled it will reconnect with the iPad without user action.
3. The device has no display or keyboard and has only a single push button which is used to terminate the bond and prepare it to pair and bond with the same or a different iPad.
4. Everything seems to be working well except if, after bonding, everything is left alone for a while it will then be unable to connect with the iPad unless I go through the process of re-pairing and re-bonding. I presume that this is because it is not handling the Resolvable Private Address correctly when the iPad decides to change it.
5. Does my code have to do anything to cause it to resolve the address or is it handled automatically by the Link Layer?
6. When un-bonding, my code clears the whitelist and Bonded devices list. Does it also have to clear the RPA list?
7. In the BLE component configuration screens (Profiles, Custom, Server, Generic Access, Central Address Resolution should it's value be set to "Supported"?
Please note: I have already checked out the BLE_4.2_DataLength_Security_Privacy04.cywrk example and, frankly I can't tell what I need and what I don't since the example combines Data Length Extension, LE Secure connection and Link Layer Privacy all together instead of making three separate examples, which would be a lot more useful. In addition, it provides a number of options which can apparently be changed by use of a keyboard, etc. and, finally, it appears to me that the designer didn't use the BLE component configurator in PSoC Creator but, instead made all the settings (and changed them) in code. Clever, but really confusing.
I'd be really grateful for some elementary guidance on using RPA with whitelisting and bonding.
Thanks for for your help,
Dennis
Show LessI have a project (attached, and slightly modified from one provided by GyanC_36), based on the BLE_OTA_FixedStack projects which uses dual-applications. That is, it has a bootloader, and two user applications. I can load the .hex onto the target device, and the device always boots into application 1.
My objective is to have the bootloader load whichever of the two applications in memory was compiled most recently. Perhaps something based on "__DATE__" and "__TIME__"? Perhaps more simply, I can have the bootloader read some external memory to determine the preferred boot application. Either way, how can I change the preferred boot application from within the bootloader? This, of course, assumes both applications are valid. I still need the bootloader to select only valid applications.
A related question: how can I switch between active applications? How can I make an application inactive? The problem I'm running into is that I can OTA update using the application2 .cyacd file, but when I attempt using the application1 .cyacd file I get ""The bootloader reported error 'The application is currently marked as active and cannot be modified.'."
Show LessHow can I configure a dual-application bootloader when using OTA? I'm using the BLE_OTA_FixedStack_Bootloadable/Bootloader example projects on the CY8CKIT-042-BLE using a 256k module (600-20088-01). OTA updates work fine, but since it doesn't use external memory, updates overwrite the existing application, rendering the application invalid if the OTA is interrupted. There is ample room on the flash for the bootloader (92 kB) and two duplicate applications (40 kB each) I want either a "golden image" (application that is loaded once, and then never overwritten), or two applications, the most recent of which is loaded at startup.
I know I can achieve the mission-critical behavior which I'm looking for by using external memory, but I'd like to utilize the available internal flash.
Show LessHello @ll,
If you want to configurate, debug and test your implementation interactive, you can do this with mecrisp-stellaris, an FORTH implementation for several Cypress PSOCs.
Example:
To initiate a PWM there are several API's to do this. One API write the compare value:
To using this API you can call the API in a C-function. To modifies it on the fly you can use the configure menu from PSOC-Creator and translate and flash the whole application.
Alternative you can do following, if you have install mecrisp-stellaris:
100 PWM_1_WriteCompare1() <enter> \ 100 is put on the data stack and the API 'PWM_1_WriteCompare1()' will be calling. /!\ translating and flashing are not necessary
You can also define a word like this:
: MaxDuty1
100
PWM_1_WriteCompare1()
;
or that
: MinDuty1
0
PWM_1_WriteCompare1()
;
... MaxDuty wait MinDuty .... \ for more examples download one of following mecrisp-stellaris implementations:
As already published here, the FORTH development environment 'mecrisp-stellaris' is available for download for the following 7 Cypress PSoC's:
Board: / PSoC:
CY8CKIT-043 -> cy8c4247azi
CY8CKIT-044 -> cy8c4247azi
CY8CKIT-046 -> cy8c4248bzi
CY8CKIT-049 -> cy8c4245axi
CY8CKIT-050 -> cy8c5868axi
CY8CKIT-059 -> cy8c5888lti
FreeSoC2 -> cy8c5888axi
See: https://sourceforge.net/projects/mecrisp/files/Cypress/
If you would like to know more about FORTH, you will find the classic Starting-FORTH and Thinking-FORTH by Leo Brodie:
http://thinking-forth.sourceforge.net/
The Definition of ANS FORTH you can find here: http://lars.nocrew.org/dpans/dpans.htm
If you want to know more about Mecrisp-Stellaris you are right here:
https://www.forth-ev.de/filemgmt_data/files/4d2015-arm.pdf
When PSoC evaboard is not listed and you interest on a Forth for your board, please contact me via the e-mail address provided in README of one of the downloads to clarify the possibility of porting
Klaus
I have added an example to use API's interactively
Show LessI need to interface a 4 digit 7 segment with a PSOC 4 device. I'm using Segment LCD component present in PSOC 4.2
I've successfully interfaced single digit 7 segment display with device. However, interfacing with 4 digits segment isn't working.
Can someone guide me through steps to program for 4 digit 7 segment display ?
For single digit segment, I've selected 7 segment lines and 1 common line. On the other hand, for 4 digits display, I'm choosing 7 segment lines and 4 common lines. Is this correct?
Show LessHi, I'm making a BLE system with PSoC 4 BLE pioneer kit.
I want to upload a program to CYBLE-222014-01 with CYBLE-022001-PROG.
When I use EVAL-Board, I can make it but when I use the prog, the port acquire fail error message pops up.
Is it a problem with prog or a chip? It cannot recognize the inserted chip.
I think my pioneer kit baseboard does not have any problem.
Show LessHi Community, I'm Eugenio Mercol from Argentina.
I'm designing an RF detector, using LTC5505 device, manufactured by Analogic Device Company.
Short project description and trouble.
It´s a device that can detect RF signal present in the air, once the signal is detected, and the RSSI value exceed a defined value, the device generate a vibratoring advising, sonoric advising an luminic advising.
This device will be carried by the people like a wereable device, and will be carried all the time.
I´m stucked in the antenna design.
I already download the AN91445 Antenna Design and RF Layout Guidelines.pdf document, (that is a really very good document, Thanks to Tapan Pattnayak!!) but I can't see how calculate the MIFA or IFA length for the frecuencies beetwen 300 to 450 Mhz.
Project Details.
PCB type and Size: two sides, 30mm x 35mm (keychain type)
Device Size: 30mm, x 45mm
Kind of components used: SMD
Power Source: Alkaline 12V A23S cell
Operation Voltage: 3V
Space defined for the antenna in the PCB: 13mm x 22mm.
Range of detection needed: up to 20 meters
Frecuencies detected: beetwen 300 to 450 Mhz
Only for RF reception
Never will be an RF transmisor.
It will be carried by the people, inside the pants pocket.
Questions
1* - Based in the description about, antenna space available, place where the device will be carried by the persons, frequency range, and sensibility needed for up to 20 meters detection. What kind of antenna do you recommend to me, MIFA or IFA?
2* - Depending the kind of the anntena selected. How Can I calculate the length of the antenna?
Thank you very much!
Show LessWe are trying to read the value of RSSI, by calling the function CyBle_GetRssi() every 250ms or every second, on the module CYBLE224110-00 which is connected to another same module via bluetooth; however, the RSSI values returned from this function are something like this: 86,-127,107,47,33,-31,-38,48,-39,113,49,-118,-34,-112,-112,-105,66,-98,73,80,-90,81,-89,-89,-3,83,-2,84,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
The two modules are 50cm far from each other. The expected RSSI, due to having PA/LNA, I guess, is around -20, while as you can see, most of the returned values from the function do not make sense.
What is the proper way of reading RSSI value?
Hi,
We would like to understand how it is possible to identify a source that woke up our PSOC from sleep.
We have CYBLE-224110-00.
Thanks,
David
Show Less