PSoC™ 4 Forum Discussions
Hello,
For a new project, i need to develop a Bluetooth HID Keyboard, so i searched for the good controller.
I found BCM20735 and BCM20733 are good for making HID keyboard, to connect directly a keyboard matrix.
The problem is that i can't find much help for these products like a developement kit, hardware and routing preconisation and, more important, code example to scan a matrix and get a HID Bluetooth keyboard recognized by the host.
Many thanks in advance for your help,
Best Regards,
Benjamin Recoules
Show LessHi,
Have been working with the 41-40xx kit, i would like to read the voltage on the onboard potentiometer and printing the result via UART on the PC.
I'm following a code example that does this, so i created a new project and added the components on the schematic, assigned the pins, incremented heap size and placing the -u_printf_float flag on the linker, also enabling the nano lib.
Then started to write the C code but when i call the CapSense_ADC_Start() function, the project doesn't run (the red LED doesn't blink), when i comment that CapSense_ADC_Start() function the project works as expected (a blinky red LED).
I had changed the stack size to 0x200 (previously it had 0x400, the example code have 0x200).
Attached is the project if someone like to take a look and maybe spot my error.
Carlos
Show LessHello,
Using CYBLE-022001-00, EZ-BLE™ PROC™ Module. I am able to use the code provided with AN86233 (PSoC® 4 Low-Power Modes and Power Reduction Techniques) and get good results. However, the app note design contains almost no components. When I add a UART component (PSoC 4 SCB component, configured for UART). The Hibernate current goes from next-to-nothing to 200uA. I have tried the following APIs before entering Hibernate but nothing seems to make much difference.
UART_Stop();
CySysClkEcoStop();
CySysPmFreezeIo();
UART_rx_wake_SetDriveMode(UART_rx_wake_DM_DIG_HIZ);
UART_tx_SetDriveMode(UART_tx_DM_DIG_HIZ);
I also switched the debug interface from SWD to GPIO.
My question is, what do I need to do before calling CySysPmHibernate() to get something more in the 200nA range and not 200uA with a SBC in the design?
Thanks in advance!
Mark
Show LessHi, this is Gaurav.
Please guide me for the SMBus protocol. MXL90614 infrared temp sensor. I want to communicate the sensor with the PSoC and then send the data to the BLE.
Please do guide me.
I'm attaching the TempSensor's Data sheet.
Thank you
Show LessHello, This is Gaurav. I'm trying to collect the reading of LDR on PSOC4-042. Now I'm able to collect the data in a variable. But don't know how will i send it over.
1.Please guide me how can i send a data stored in a variable to a smartphone via BLE.?
Thank You,
Show LessHello,
I have iOS and Android apps for monitoring many, many ble sensors in an industrial environment. The iOS/Android app automatically connects, reads and logs the characteristic values of each ble sensor that is within range and continues to automatically log ble sensors as the iOS or Android device moves through out the facility and new ble sensors come into range. Is there any way I can encrypt the data coming from each ble sensor without having to manually enter a pairing password for each ble sensor that comes within range? Can pairing be done automatically with one, or a few passwords which are stored on the iOS or Android device? Is there another data encryption method not requiring pairing?
Thanks.
Show LessDear All,
- The time multiplexed central example code is not working on CYBLE-222014 module as described in pdf document. It compiles and code runs on modules but has following issues. I have attached the project in zip file. Could any buddy have a look and tell me what is wrong with the example code?
- The peripheral does not reconnect itself on hardware reset.
- Central application keeps looking for peripheral even though it is powered on.
Device missing: 00 A0 50 00 00 01
Device missing: 00 A0 50 00 00 02
Device missing: 00 A0 50 00 00 01
Device missing: 00 A0 50 00 00 02
Device missing: 00 A0 50 00 00 01
Device missing: 00 A0 50 00 00 02
Device missing: 00 A0 50 00 00 01
2. Is there any other such working example where central connects to multiple peripheral in time multiplexed manner.
In attached project, I have already selected device type CYBLE-222014 for both peripheral and Central. Also updated components from project menu.
Regards,
Mayank
Show LessAfter much debugging, I've finally stumbled upon what was causing parts of my code to not operate correctly all of the time. It seems that when I write to flash on my 4100 BLE chip, it was causing two issues:
1. For a brief period after the write to flash, my UART TX/RX was getting screwed up and I was seeing a buch of gibberish on my terminal screen. I believe this was because the clock driving the UART, which is derived from the HFCLK, was being impacted, which meant my baud rate was out of whack briefly
2. Also, for a brief period after the write to flash, my PWM signal, which was also driven off a clock signal derived from the HFCLK, was in turbo mode and seemed to be operating at about 10 times the frequency I was wanting it to.
In both cases, my HFCLK was derived from the IMO.
Is this sort of behaviour to be expected when writing to flahs? I'm not sure how stable the IMO is supposed to be and what's the best way to get around it. In the short term I'm just shifting my write to flash code to a point in time where the UART and PWM aren't being used, or aren't critical to operation of the hardware, but I'd like to understand what the root cause is and how I can get around it.
Can anyone provide any comments/advice?
Cheers,
Mike
Show LessI understand a few stipulations for simultaneously scanning and advertising, and also broadcasting while in a connected state, such as while connected, broadcasts must be non-connectable, undirected advertisements, however, while scanning, advertisements can be of any type. Also, as far as API calls, starting advertisements must happen before starting up scanning. I do have some related questions involving the connected/broadcasting function that isn't mention in the docs though, if anyone can help:
1. I noticed that there is no "NON_CONNECTABLE_DIRECTED_ADV". The non-connectable portion is understandable, but what if, for example, I wanted a connected device's broadcast to only reach a specific non-connected device? How would that be accomplished?
2. If directed broadcasting isn't possible, do these broadcast advertisements have a scan response packet?
If so, does filtering apply? I figured that if I can't direct the advertisement, I could filter the scan response packet from everything but the defined devices.
3. This one relates to both Scanning/Advertising and Connected/Broadcasting: Can you dynamically update these advertisements using CyBle_GapUpdateAdvData while scanning or connected, or would you need to be in a disconnected, or non-broadcasting, state, update, then restart?
Show LessHi,
Hopefully this is a simple question :-
The PSOC4 TCPWM block can be edge triggered or level triggered. I want to use level triggering but am struggling to find in the PSOC4 technical reference or GPIO app notes any indication as to which level(s) trigger the inputs to the block. Is it a high level, low level or both ?
Any help gratefully received
Paul.
Show Less