03-31-2016 01:29 AM
Hello,
Can someone help me with bluetooth interfacing with myRIO? I am using NI myRIO 1900 along with Bluetooth module RN-42 PmodBT2 provided by Digilent, I would like to establish BT connection between the Shimmer -sensing device- and the myRIO for streaming signals to LabVIEW in real time, and I have not found any proper documentation to assist my application.
Thank you!
03-31-2016 03:33 AM - edited 03-31-2016 03:34 AM
The device is a UART connection, have you figured out how to connect it to the UART/serial pins on the myRIO? As for the interfacing, have you read the documentation for the device from the manufacturer about the protocol you need to use with NI-VISA on the myRIO?
Also, a quick google search throws up this: http://www.instructables.com/id/Controlling-Servos-via-Bluetooth-RN-42-and-LabVIEW/
04-01-2016 01:28 PM
I believe that with myRIO things are different. I read that I should install a bluetooth driver like Bluez, however, when I try to install it using putty, an endless loop of dependencies appear, such that bluez requires Glib, and Glib requires zlib and libffi. I successfully installed zlib but I failed installing libffi since makeinfo command is missing, which directed me to install Texinfo that misses aclocal and needs automake, also automake can't locate aclocal!!
Any sugestions?
04-04-2016 05:23 PM
Where did you read that you would need to install that driver? I haven't found anything about those dependency issues, but there have been other forum posts about trying to install Bluez. I would look into those to see if anybody else encountered that.
You may also have luck posting your question in the Linux RT User Group on the forums. Since you're using a bunch of third party devices, we don't really have the documentation on configuring this set up. Hopefully one of them has worked with third party bluetooth devices on myRIO and could let you know what worked for them!
NI Linux Real-Time Community
https://decibel.ni.com/content/groups/ni-linux-real-time
04-05-2016 03:17 AM - edited 04-05-2016 03:18 AM
Where did you read that you need to install something like Bluez to use the PmodBT2? The datasheet/reference manual says it has a 'simple UART interface' which implies you can communicate with it using one of the myRIO UART ports and then use NI-VISA. The difficulty will be with implementing the serial protocol the device uses - you should be able to find documentation on this from the manufacturer. I found some information here:
https://reference.digilentinc.com/pmod:pmod:BT2 https://reference.digilentinc.com/_media/pmod:pmod:pmodbt2_rm.pdf
04-16-2016 07:59 AM
I have successfully connected my RN-42 module to the myRIO and to the Shimmer sensing device. I also managed to start streaming data all using NI VISA and following Shimmer framework code. Now when I try to read data from the sensor I recieve awkward hexadecimal stack of data as attached files show.
I tried using Shimmer library example in LabVIEW "Shimmer Plot and Write" but instead of inserting the COM port, establishing the connection using NI VISA as attached but it did not work.
How can I extract acceptable data from it?
04-18-2016 10:30 AM
What commands are you sending to the device? Did you find a list of commands that the device accepts?
04-18-2016 10:33 AM
04-19-2016 05:00 PM
So is it that you want to read the data back in a non hexadecimal format? Or is it that the data you're getting back doesn't seem to be accurate or valid data?
04-19-2016 11:07 PM