- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have some parameters(Adc Voltage, temperature value, time & date stamping). I'm able to see them on my laptop screen through Uart using tera term. I want to transfer the data through BLE, But i'm unable to transfer the data not getting data in CySmart tool. I created custom profile. I created a project in two ways i'm attaching here both the project, tell me which near to solve & ineed to follow & also how can i get the data through BLE.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see the function UpdatemixBufferdata() which writes attributes values. But this function is most likely never called (I could not find a reference).
Please get your function logic correct first. Maybe just start with a working example (e.g. from the 100 BLE projects list) and modify the the places that actually send data. That way its easier to get the logic right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TeraTerm/UART is not Bluetooth. So do you set your values to the attributes you have defined in your custom profile? Are you sure the code doing so is called at all? Did you refresh the CySmart view of the attributes (there is no automatic push of updated values).
Which of the two projects is the one we should look at?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
project is same i created this project by two ways. can you please review once. i wrote attribute values. i'm unable to transfer them through BLE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just by looking at the code:
I do not see any line where you actually set any attributes in a custom profile. You seem to use the UART-over-BLE bridge. This works only with a terminal but not with CySmart.
Please look at AN91162 which explains how to create and use a customer profile with your own services.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see the function UpdatemixBufferdata() which writes attributes values. But this function is most likely never called (I could not find a reference).
Please get your function logic correct first. Maybe just start with a working example (e.g. from the 100 BLE projects list) and modify the the places that actually send data. That way its easier to get the logic right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok,
I'll check with the project list. Can you please suggest me if something is missing. I'll call the function as you told me, If you can give some suggestions to correct it then please tell me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You just need to call your function when you have updated ADC values. Please, look at the examples and the AN (and probably the BLE intro AN too), they explain this in much more detail.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK Hli,
Thank you so much for you information.