The Mixed Reality Forums here are no longer being used or maintained.
There are a few other places we would like to direct you to for support, both from Microsoft and from the community.
The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.
For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.
If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.
And always feel free to hit us up on Twitter @MxdRealityDev.
Hololens / Arduino / bluetooth
Hello,
I want to transfer serial data from my arduino to hololens.
I am currenlty using a Seeeduino (Arduino UNO clone) and a BLE Shield.
The arduino will transfer data to trigger some holograms.
I have tried to create a Bluetooth UWP app to discover my bluetooth shield (HM-11 module), I have succeded pairing the device with the API and now I am stuck ... how can I read my data on the device ?
My device doesn't seems to support Rfcomm and I am not able to list any GATT services from this device. So I don't know how to move on...
The arduino part is running, I am able to communicate with an iphone/android (HM-10/11) serial app and exhange data with arduino over bluetooth. But I wasn't successful trying to create such program in UWP.
Maybe my bluetooth module is not compatible ? Maybe I am doing something wrong with my code ?
If someone can share hardware working scenario, I will be glad to read anything working.
Cédric
Answers
ok, seems like my BLE shield was not supporting Rfcomm has I suspected, Windows IoT was not discovering when searching for a serialPort service.
Fortunately, I had an old BlueSmirf RN-41 bluetooth module which was detected properly on hololens and a raspberry pi3 with windows IoT.
Then this article helped solving the rest:
http://embedded101.com/Blogs/David-Jones/entryid/707/Win-10-Iot-Core-Bluetooth-Universal-Windows-Serial-App-
I didn't use his sketch, I prefered to reuse this one in order to type on my computer message to send to the UWP app on Hololens or Windows IoT:
https://learn.sparkfun.com/tutorials/using-the-bluesmirf/all
Now it needs a bit more work to integrate the code inside Unity but it seems promizing thanks to this ressource:
https://www.gamedev.net/resources/_/technical/game-programming/gps-on-the-microsoft-hololens-r4497
But I will probably create a DLL since it will be easier to maintain than coding under unity environnement without feedback for what I am writing with .NET Core.
Hi! Curious if you got this working. Have you got the code anywhere accessible? Looking to do a very similar thing.
I have used this code here to connect hololens to my bluetooth module:
https://github.com/cedtat/iotbluetoothserial
Hi...as per my knowledge possibly wrong voltage AND inadequate current. You are running the module off the 3.3v pin. If you move it to 5v, it may work OK. Also note that it is good practice to use a 1k/2k voltage divider on Bluetooth Rx. this does not necessarily mean you have fried anything - just good practice. Also there is already a LED provided on pin 13. If you move that to another pin, it would be a good idea to provide a limiting resistor.