Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by The_Disposer · Feb 20, 2017 at 09:39 AM · windowsapplicationstorebluetootharduino

How to Read Data from a Bluetooth Device with a Windows Store App

Hello and thank you for looking at this question.

I have an Arduino Uno R3 device that has an Bluetooth HC-06 module on it. I'm trying to send a string from my Arduino to the game.

I have been able to get this to work when my Build Platform is PC Standalone, because I am able to use the System.IO.Ports namespace and it is easy to just read the data that is sent to the SerialPort.

Unfortunately, the WSA platform does not allow the use of the System.IO.Ports namespace (among many other limitations).

How do I get this string of data to be sent to the game when the target platform is WSA?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by The_Disposer · Mar 26, 2017 at 05:55 PM

I ended up using a BLE solution based on the example here:

https://www.simplicity.be/article/eddy-and-his-stones-diy-arduino-beacon-mobile-apps/

You can use the Universal Beacon Library if you make a plugin for it.

Here is the documentation on plugins https://docs.unity3d.com/Manual/Plugins.html

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by davidgodard3d · Feb 21, 2017 at 10:33 AM

Hello,

Look at this article : https://issuetracker.unity3d.com/issues/wsa-bluetooth-devices-are-not-supported

A trick : . in "player settings" enable "Bluetooth" and "HumanInterfaceDevice" capabilities.

Regards.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image The_Disposer · Feb 22, 2017 at 04:52 AM 0
Share

Well, I'm pretty sure it is possible to get working, i'm just not sure how.

Someone was able to have Bluetooth data from an Android phone sent to their Hololens (WSA platform):

https://www.gamedev.net/resources/_/technical/virtual-and-augmented-reality/gps-on-the-microsoft-hololens-r4497

But unfortunately i'm not sure how to translate that example into using the Arduino ins$$anonymous$$d of the android phone.

avatar image
0

Answer by Marshall_Hu · Oct 30, 2017 at 12:03 PM

Did you do it with HC-06? I dont know how to get message from it. What is the key Code to connect The HC-06? Thx

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Marshall_Hu · Oct 30, 2017 at 12:10 PM 0
Share

I have paired HC-06 with Hololens. But I dont know how to connect it in the unity. Can you just tell me what APIs can I use.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

submitting to windows app store 1 Answer

Bluetooth on windows 32feet dll 0 Answers

Windows. What is best way to avoid launch of multiple instances of the same application? 1 Answer

About launching Unity application of UnityMain function in C ++ application using DirectX11 0 Answers

Android Bluetooth 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges