- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't seen anyone using labview with a cypress chip yet, but there are multiple C# threads about implementing BLE connections and sending/receiving data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I haven't seen anyone using labview with a cypress chip yet, but there are multiple C# threads about implementing BLE connections and sending/receiving data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Deepu,
Please find Cysmart API example project from the following forum , post 5: http://www.cypress.com/forum/proc-ble/cysmart-api-c-example
Thanks,
Anjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Anjana,
I already had a look at it. I'm not an expert in C#, but i could still understand the code. If i'm not wrong new classes are created within C# code. Unfortunately LabVIEW won't allow creating classes directly in its environment from a .net API DLL. However LabVIEW allows creating instances of objects/classes defined in the .net dll and then operates on the properties or methods.
I believe the best workaround is to create a wrapper code in C# embedding the CySmart api dll and then create a .net library/assembly from it and then calling the wrapper dll/assembly in labview. But i don't know how to create work on C# to create wrapper code.
If you haven't understood well, please have a look at this post on NI forms which discusses the issue.
https://forums.ni.com/t5/LabVIEW/BLE-Bluetooth-NET-API/m-p/3307221
Thanks
Deepu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Any updates on this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you confused on creating a class in C#? Or on specifics of the implementation? I should imagine the all powerful internet has examples on creating C# classes, and thus you can wrap the functions into the class yourself. It writes similar to C++ and .net code if you are familiar with those languages.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Well, I'm more used to C. of course i did search the internet for C# examples. But i don't have any C# IDE like visual studio on my pc at the moment. Anyway i will install it and try to make the wrapper myself. I'm not that clear about implementation also. But would it be possible for someone to list out the sequence of operations/methods required to connect to dongle. An insight into what i'm trying to achieve is given below.
1. Connect to USB Dongle.
2. Connect to BLE Device/sensor
3. Enable Transmission of a certain data from BLE sensor.
4. Continuously read data from BLE sensor.
5. When the user decides to stop, close all connection and exit.
Note: I have the UUID for various steps that are specific to the BLE sensor
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I find time this weekend I'll try to give a shot at making a sequence of API calls for you. No promises though 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you. That would be a lot helpful. I'm also working in parallel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Here's a link to a post that contains CySmart examples that should help, at least with some basics 🙂
http://www.cypress.com/forum/proc-ble/cysmart-api-c-example
Since the two examples demonstrate: scanning, connecting, accessing the USB dongle, and writing to a characteristic I figure you should be able to get going from this 🙂