BlueUnity V2 - Plugin for using Bluetooth Low Energy (BLE) with Unity3D on Android

  Переглядів 3,829

Ahmed BENTALEB

Ahmed BENTALEB

9 місяців тому

Plugin for using Bluetooth Low Energy (BLE) like HC-05 and HC-06 with Unity3d Android
plugin link: github.com/bentalebahmed/Blue...

КОМЕНТАРІ: 50
@mounirouadi5863
@mounirouadi5863 7 місяців тому
well done Ahmed!
@ianborges1732
@ianborges1732 8 місяців тому
Cara bem bacana que vc esteja fazendo este conteudo pois procurei e achei somente este videio que gratis
@ahmedbentaleb6865
@ahmedbentaleb6865 8 місяців тому
Happy it helped you
@thomaslefebvre5848
@thomaslefebvre5848 5 місяців тому
Great Job
@nicholasshiroma2373
@nicholasshiroma2373 8 місяців тому
Great plugin! I'm having a problem when I send a text from serial monitor, it doesn't show up on my phone log, and vice-versa. Is there any Arduino script I should have uploaded? Or maybe pin assignment for HC-05. I have paired my phone to the HC-05 and it showed the "True" status after I pressed start.
@ahmedbentaleb6865
@ahmedbentaleb6865 8 місяців тому
you can use an FTDI with the BLE to check the functionality, no arduino script needed, check the baud rate as 9600, and follow the video carefully.
@sreynitkhatt9614
@sreynitkhatt9614 17 днів тому
Hi Ahmed, I am trying to connect a GoDirect respiration belt to an Occulus quest via Bluetooth and collect data from the respiration belt. Do you think this plugin works for that purpose? Thank you.
@ahmedbentaleb6865
@ahmedbentaleb6865 17 днів тому
If the GoDirect has a classic BT module, yes, but you have to work a bit on the oculus quest side to make it work ( i didn't teet the plug-in for the quest). If GoDirect has low energy BT, check this plug-in github.com/Velorexe/Unity-Android-Bluetooth-Low-Energy
@sreynitkhatt9614
@sreynitkhatt9614 17 днів тому
​@@ahmedbentaleb6865 The GoDirect has low-energy BT, I will check out the link you sent. Thank you so much!
@user-og4kt5ej2k
@user-og4kt5ej2k 8 місяців тому
I see cube in reporterscane and cylinder in test 1, where am I biased?
@ahmedbentaleb6865
@ahmedbentaleb6865 8 місяців тому
Go to Assets/Scenes and you will find the Sample scene, use it to build the app and receive data in scripts
@kam12shah
@kam12shah 6 місяців тому
can u suggest how send text from mobile apk to oculus build vice versa via bluetooth
@ahmedbentaleb6865
@ahmedbentaleb6865 6 місяців тому
I always wanted to test that, as i don't have access to an oculus for now. If you have time and oculus, feel free to try, and i ll try my best to help you.
@AmadoMagbanuaIV
@AmadoMagbanuaIV 5 місяців тому
Hello, I just want to ask if this plugin will make Bluetooth communication between an Arduino Nano 33 BLE and a Unity mobile app work?
@ahmedbentaleb6865
@ahmedbentaleb6865 5 місяців тому
Yes, It should work, please keep me updated if you face any difficulties
@AmadoMagbanuaIV
@AmadoMagbanuaIV 5 місяців тому
After manually connecting the Arduino Nano 33 BLE to the app through Bluetooth, I entered the device name into the input field. The report indicates the following: "Start connection status: Error" "MyNano33BLE status: False" By the way, the Arduino Nano 33 BLE requires just a few lines of code to enable Bluetooth advertising using the Arduino IDE. I've successfully accomplished that and can now pair it with my phone. However, these errors still persist.
@furkanuzumcu4047
@furkanuzumcu4047 8 місяців тому
ım getting "Scene 'reporterScane' couldn't be loaded because it has not been added to the build settings or the assetBundle has not been loaded" error pls help me :)
@ahmedbentaleb6865
@ahmedbentaleb6865 8 місяців тому
Did you add your scene to the building settings?
@furkanuzumcu4047
@furkanuzumcu4047 8 місяців тому
@@ahmedbentaleb6865 yes i added it but i am downloading assetbundle right now
@Robolearning
@Robolearning Місяць тому
Great video , could I know how to access the phone's gps location and send it over to the bluetooth device ?
@ahmedbentaleb6865
@ahmedbentaleb6865 Місяць тому
check this: docs.unity3d.com/ScriptReference/LocationService.Start.html
@user-xg6xh3mm7d
@user-xg6xh3mm7d 5 місяців тому
Hi, I want to connect unity with beacons for indoor navigation. Will it work with it? Thanks
@ahmedbentaleb6865
@ahmedbentaleb6865 4 місяці тому
yes, it should work, give it a try and let me know
@user-vh3mj8eb8z
@user-vh3mj8eb8z 6 місяців тому
hello, maybe I want to use it to communicate HJ-180, I am not sure whether it can do or not?
@ahmedbentaleb6865
@ahmedbentaleb6865 6 місяців тому
Probably it will work, as it is similar to hc-05 and 06
@user-vh3mj8eb8z
@user-vh3mj8eb8z 6 місяців тому
okok thank you very much!!!I'll try it@@ahmedbentaleb6865
@yogijain1106
@yogijain1106 11 днів тому
not able to build the apk showing gradle error
@ahmedbentaleb6865
@ahmedbentaleb6865 11 днів тому
Could you email me error log, and what version of the plugin you are using, Android API too, also check your SDK installation
@lauregirard3639
@lauregirard3639 6 місяців тому
Hello, to begin with, thank you for making this plugin. Do you know if it works with Hololens 2? I tried to connect it to my Hololens paired to my Android phone, but when I enter the name of my Hololens device on your app, I have the error "Start connection status: False". Thank you very much!
@ahmedbentaleb6865
@ahmedbentaleb6865 6 місяців тому
the plugin is made for Bluetooth like HC-05 and Android mobile, I guess it won't work directly with Hololens, probably because of the baud rate and other parameters related to Hololnes, feel free to check the source code and modify it to your needs, I ll be happy to help on that.
@ahmedbentaleb6865
@ahmedbentaleb6865 6 місяців тому
Also, check this link (stackoverflow.com/questions/46607707/how-to-detect-ble-beacons-on-unity3d-hololens-app ) and ( mtaulty.com/2017/02/21/windows-10-uwp-hololens-a-simple-two-way-socket-library/ ), it might be a permission problem.
@lauregirard3639
@lauregirard3639 6 місяців тому
@@ahmedbentaleb6865 Ok, thank you very much for answering me! I will keep you updated!
@phantomBlurrrrr
@phantomBlurrrrr 19 днів тому
how do u do this but for a PC unity game? NOT android..
@ahmedbentaleb6865
@ahmedbentaleb6865 18 днів тому
Try to use .Net bluetooth library
@user-jj7xg5ug5i
@user-jj7xg5ug5i 5 місяців тому
What device do you use to send messages to a mobile phone?
@ahmedbentaleb6865
@ahmedbentaleb6865 4 місяці тому
HC-06 or HC-05 BLE module with an arduino uno
@kizilordusubayi
@kizilordusubayi Місяць тому
Hello I am making a toy car with esp32. Also a car game from unity. Can I combine unity game and esp32 with this plugin?
@ahmedbentaleb6865
@ahmedbentaleb6865 Місяць тому
Yes, you can do that. Contact me if you face difficulties
@kizilordusubayi
@kizilordusubayi Місяць тому
@@ahmedbentaleb6865 thank you, i'm doing this for a school project.
@briangodd_unityGD
@briangodd_unityGD Місяць тому
Hello~ Can this plugin work with Adafruit Bluetooth LE 8B5C ? I just try the V2 app on my phone but it went to : "Start connection status: Error" " Adafruit Bluetooth LE 8B5C status: False"
@ahmedbentaleb6865
@ahmedbentaleb6865 Місяць тому
Try V3, and it should work
@briangodd_unityGD
@briangodd_unityGD Місяць тому
@@ahmedbentaleb6865 Thanks, but I just tried and failed🥲. ( Input the mac something like FA:78:62:07:8B:5C at the inputfield , then press "start". It turned out : StartConnection Error:java.io.IOException: read failed, socket might closed or timeout, read ret:-1 )
@briangodd_unityGD
@briangodd_unityGD Місяць тому
but I'm sure that Bluefruit Connect App can work on my phone with that Adafruit BLE.
@ahmedbentaleb6865
@ahmedbentaleb6865 Місяць тому
So the Adafruit LE 8B5C is a low energy bluetooth module, and i did not implement this connectivity in my plug-in, check this plug-in for LE modules: github.com/Velorexe/Unity-Android-Bluetooth-Low-Energy
@briangodd_unityGD
@briangodd_unityGD Місяць тому
@@ahmedbentaleb6865 ok! Thanks very much!
@mohammadmohammadi9350
@mohammadmohammadi9350 6 місяців тому
Hello please add IOS support to these plugin thank you.
@ahmedbentaleb6865
@ahmedbentaleb6865 5 місяців тому
I have never worked with IOS, so if you have some experience i ll be happy to help you creating this plug-in in IOS
@anashossam4715
@anashossam4715 Місяць тому
Hello ! i need your help , how can i contact you ?
@ahmedbentaleb6865
@ahmedbentaleb6865 Місяць тому
By email in my github repo
BLE with ESP32 tutorial part 1: the Server
25:23
MoThunderz
Переглядів 67 тис.
Creating Android Plugin (AAR) for Unity with Android Toast
11:26
Voitanium
Переглядів 23 тис.
1 класс vs 11 класс (рисунок)
00:37
БЕРТ
Переглядів 1,2 млн
You’ve Never Seen A Race Like This 🚀
00:21
Red Bull
Переглядів 35 млн
skibidi toilet 73 (part 1)
04:46
DaFuq!?Boom!
Переглядів 27 млн
Simmerstats: The genius old tech that controls your stovetop
36:31
Technology Connections
Переглядів 622 тис.
Master BLE Basics in Just 10 Minutes: The Ultimate Guide!
9:15
Novel Bits
Переглядів 85 тис.
How to structure your Go projects
12:01
eldr-io
Переглядів 6 тис.
BlueUnity - Plugin for using Bluetooth (HC-05) with Unity3D on Android
11:40
Why Some Designs Are Impossible to Improve: Quintessence
33:03
Design Theory
Переглядів 14 тис.
Most overpowered way to build mobile apps?
8:33
Beyond Fireship
Переглядів 666 тис.
2D СТРЕЛЬБА В UNITY | by Brackeys
20:02
maxvell-game developer
Переглядів 19 тис.
Back when the internet was fun. (1999 Apple iBook)
22:46
DankPods
Переглядів 354 тис.
These 2 UI Libraries Are The Perfect Combo
5:03
Josh tried coding
Переглядів 108 тис.
Result of the portable iPhone electrical machine #hacks
1:01
KevKevKiwi
Переглядів 2,7 млн
Сомнительно... Ну Окэй... Распаковал Nothing Phone (2a)
16:19
РасПаковка ДваПаковка
Переглядів 53 тис.