PSoC™ 4 Forum Discussions
Hello! I want to include service data in advertisement packet. So far I have made it so i can actually see that field changing in CySmart App, but when I try to program Android app to read that field something something goes wrong.
So at the attachment you can see the setup for BLE. In the field data I have written in "00" because otherwise I don't have an index for that field. So in the code I use these three lines to update that field:
<code>
#define advPayload (cyBle_discoveryModeInfo.advData->advData)
advPayload[29u] = 0x01;
CyBle_GapUpdateAdvData(cyBle_discoveryModeInfo.advData, cyBle_discoveryModeInfo.scanRspData);
</code>
Through CySmart app i can see the changes (I have to stop scan and then start it again). But when I try to write code for android to read that data with these lines:
<code>
public static final ParcelUuid THERM_SERVICE = ParcelUuid.fromString("00000000-0000-1000-8000-00805F9B34FB");
public TemperatureBeacon(ScanRecord record, String deviceAddress, int rssi) {
mSignal = rssi;
mAddress = deviceAddress;
mName = record.getDeviceName();
byte[] data = record.getServiceData(THERM_SERVICE);
if (data != null) { mCurrentTemp = data[0]; }
else {
mCurrentTemp = 123; } }
</code>
The function just returns NULL, like when no data with such uuid is found. Everything else like address and name is acquired properly. I am using the same parcel uuid for the scan filter and that works fine. So I don't understand what is the problem. Have I set up BLE component wrong?
Show LessHi,
I'm trying to determine exactly when advertisement packets are transmitted. In the Register Technical Reference Manual I found the ADV_TX_INTR bit within BLE_BLELL_ADV_INTR, but it doesn't seem to be working. I've set the ADV_TX_EN bit within BLE_BLELL_ADV_CONFIG. Has anyone else gotten this to work?
Thanks,
Tom
Show LessHello,
I am trying to send the battery level in the advertisement packet. I am using the CY8CKIT-042-BLE. I used the constant broadcaster sample application provided by Cypress and tried to modify it. I used the Timer to decrement the value of the battery as showed in the video lectures. I am able to put custom data in the advertisement packet, but not real time data. Can any one help me?
Show LessHi I am brand new to PSOC and I have some questions
1) My understanding is that you design your hardware on a pioneer board (I have the 042 BLE) and if you create a solid device virtually, then you buy the hardware from cypress to make a prototype?
2) I am not great with programming C. I have watched several videos including the PSoC 101BLE series and it seems like a nightmare to me. Is it still possible to learn to code firmwares to create my device? or should I move on to a different project?
3)My project is on making capacitive buttons out of conductive materials of my choice. I am then going to use that information to control something on the computer or a MIDI instrument. Can this be done with PSoC 4?
Thank you for answering in advance. You'll be saving a newbie developer's life.
-Martin
Show LessGood afternoon
I'm trying to connect proc ble with miniprog3 by I2C to tune my proximity cap sensor but connection fails (read operation failed! Check i2c bus connection.). I follow the capsense CSD application note but without success.
Show LessHi,
Is it possible to interface to HDMI in PSOC 4 ??
I have a CY8CKIT-049-42XX kit, is it possible to connect this to a HDMI transmitter chip that can in turn connect to a TV ??
The project I am working on, needs a device that can be connected to a HDMI/VGA based projector, the projector would be used to display text and graphics. I know some PIC based projects that use VGA are there, but I am not sure how good the quality of the images would be like.
The other option I have (which I am trying to avoid) is a using a small computer like a beaglbone or raspberry..
I have seen some Android based HDMI dongles, but since the project is intended for use in a industrial environment I am not sure how the device would operate ....
thanks
a
Show LessHello,
I have made a prototype using CYBLE 022001 - 00 and currently using MiniProg3 to burn programs on it via SWD interface. I was wondering whether I can connect the same to the baseboard so I can also step into the code and debug it.
Is there a way to do this?
Thanks,
Shalin
Show LessHello,
I got the CySmart source code from customer support, but I want to know if I should use Android Studio or Eclipse to modify the app.
Thanks
Show LessHi All,
I managed to configure all the settings for a 4x20 character LCD I just cant figure out why some words or numbers are not completely written to the LCD,
for instance in the example the string text was "Cypress", I got Cyrss, if I send number 2015 I got 205, I cant figure out what is going on
Please help me out
I appreciate your help
Show Less