bluetooth-pc connection
Answer
11/9/18 12:05 PM

Hi,

 

thanks for your support.

i wanna read data from XDK over bluetooth on my laptop.

but i don't find special software for pc in previous Threat.

can you help me that which software should i download ??

 

Best regards

Sepehr

0 (0 Votes)
RE: bluetooth-pc connection
Answer
11/9/18 3:50 PM as a reply to Sepehr Habibollahzadeh.
Hello Sepehr,

The first thing you need to do is to check if your laptop supports the Bluetooth standard 4.0 including Bluetooth Low Energy.
If you have a Windows PC, open the device manager and click on Bluetooth. If your PC has an Microsoft Bluetooth LE-Enumerator listed, you are good to go.

Furthermore, then you need an app from the Microsoft which supports BLE custom services since these are used by the XDKs sensor and bidirectional send and receive service.

For more information on the available services on the XDK, I recommend to taking a look at Bluetooth Low Energy Article at the XDK knowledgebase . Please note, that you have to register for free to get access to the content.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
+1 (1 Vote)
RE: bluetooth-pc connection
Answer
11/11/18 11:23 PM as a reply to Franjo Stjepandic.

Hi,

 

thanks for your answer!

i use one of the example in workbench "SendAccelometerDataOverBle"  and my Laptop, which has BLE 4.0, paired with XDK , as i saw in setting. 

main Question is that, how i see the results??

(for example when i transfer data over USB, i can easily see the results in Consol-Tab)

 

Best regards

Sepehr

0 (0 Votes)
RE: bluetooth-pc connection
Answer
11/12/18 5:04 PM as a reply to Sepehr Habibollahzadeh.
Hello Sepehr,

I am always glad to help. Furthermore, thank you for providing more information.

The SendAccelerometerDataOverBle example uses two BLE characteristics, one for sending out the acceleration data and one for receiving commands.

To receive data over BLE from your XDK on your notebook, you would need to use an app on your notebook, which is capable to display the BLE characteristics of the XDK and also to send the start command to the XDK.
This start command will then start the data transfer of the acceleration data sides the XDK.
On the opposite, the command end will stop the data transfer sides the XDK.

Please note that the app you are using would need to be capable to display custom services, to get access to the XDKs characteristics.

Please let me know if this was helpful and feel free to ask if you have further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: bluetooth-pc connection
Answer
11/13/18 10:48 AM as a reply to Franjo Stjepandic.

Hi,

 

thanks for your answer.

i actually find that software (BLE Explorer) for windows and tried to connect to XDK for seeing data. unfortunately, as you see in the screenshot , i think that XDK don't let me to transfer or see data , because connect / disconnect repeatedly.

do you have any suggestion about this problem??

 

Best regards

Sepehr

0 (0 Votes)
RE: bluetooth-pc connection
Answer
11/13/18 3:21 PM as a reply to Sepehr Habibollahzadeh.
Hello Sepehr,

the issue with the Microsoft LE Explorer lies in the supported services. The connection with the XDK is breaking because the Microsoft LE Explorer is unable to discover the custom services of the XDK.

Furthermore, there is, unfortunately, no way of adding custom services to the software. In addition, there is no API available for BLE device discovery and pairing on the PC.

For a mobile device, there is an App called BLE scanner, which works fine. Such an app you would need to use on your notebook. In that regard, I might found a possible solution on GitHub here .

In that regard, you need to download the entire Windows-universal-sample and follow the instructions provided in the readme file.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
0 (0 Votes)
RE: bluetooth-pc connection
Answer
11/15/18 10:13 AM as a reply to Franjo Stjepandic.

Hi,

Thanks for your answer.

 

yes, it has good connection with mobile. But i wanna simulate Vibration with matlab, therefore need to have data on my notebook.

is that possible to have data on my Laptop by WiFi connection??

 

Best

Sepehr

0 (0 Votes)
RE: bluetooth-pc connection
Answer
11/15/18 10:16 AM as a reply to Franjo Stjepandic.

Hi,

Thanks for your answer.

yes, it has good connection with mobile. But i wanna simulate Vibration with MATLAB, therefore i need to have data on my notebook.

 

Is that possible to have data on my Laptop by WiFi connection?? or do you have another suggestion.

 

Best

Sepehr

0 (0 Votes)
RE: bluetooth-pc connection
Answer
11/15/18 10:59 PM as a reply to Sepehr Habibollahzadeh.
Hello Sepehr,

would you be so kind and provide more detail regarding your use case?
Do you already know how you are going to simulate or visualize the vibration with MATLAB?

If I understand you correctly, you want the sensor data, for example as CSV, transmitted from the XDK to your notebook, which then imports the data into MATLAB for further processing.
Now, depending on the need to receive live data or the possibility to post process all of the recoded data by importing a file, there are different approaches to choose from.
If you do not require live data and for example post process the data from a file import, you could use the DataLogger demo by Bosch, which logs the data to a SD card. For a wired streaming solution, you could use a StreamSendDataOverUsb example to get it to your notebook.

A wireless streaming solution could be the use of MQTT, but this requires a MQTT broker, which is to set up.

As you can see, there are different options available, therefore I would ask you to give me some more information on your use case.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
+1 (1 Vote)
RE: bluetooth-pc connection
Answer
11/16/18 8:41 AM as a reply to Franjo Stjepandic.

Hi,

thanks for your support/answer.

yes, you found it out correctly. i wanna transfer live data (Vibration included) to my notebook ,if it's possible, and simulate it with MATLAB. 

but when there is no solution for this way, i should use SD card or sth like that, as you said.

so, is there any possible solution for transfering live data to Laptop for processing with MATLAB?

 

Best regards

Sepehr

0 (0 Votes)
RE: bluetooth-pc connection
Answer
11/19/18 2:16 PM as a reply to Sepehr Habibollahzadeh.
Hello Sepehr,

the mayor issue with this setup regards MATLAB itself. I am not an expert with MATLAB, but I know that you could use the csvread function in MATLAB, which reads data from a .csv file and stores it within an array.
The DataLogger example will provide you with such a .csv file.
All MATLAB scan functions I am confirm with, require a saved file which is to import, but maybe you find a way sides MATLAB to import and process real-time data, which has not to be saved for a file import first.

To receive life data with your notebook, you could use the StreamSensorDataOverUsb example, which prints the data with serial communication over a COM port to a over USB connected device, in your case the notebook.

If there is no a real-time support sides MATLAB, you could choose the DataLogger example, which would be probably the easiest way, since it outputs a .csv file, which can be directly imported to MATLAB.

To summarize it, the next step you need to take is to find a way on how MATLAB reads/scans real-life data. After this, we can try to find a solution or go the easy way with the DataLogger example.

Please tell me if this was helpful, and do not hesitate to ask further questions.

Kind regards,
Franjo
+1 (1 Vote)