Comments on: Serial Communication with the Bluno using Bluetooth LE http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/ Games, Robots... and Stuff. Thu, 31 Jan 2019 09:15:11 +0000 hourly 1 https://wordpress.org/?v=5.0.3 By: cevinius http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1153 Mon, 14 Nov 2016 08:24:31 +0000 http://www.cevinius.com/?p=290#comment-1153 Hi Mat,

I haven’t tried using Windows… so unfortunately, I don’t have any suggestions to help. 🙁

My guess would be that if you have a Windows library that can do BTLE… The UUIDs I found for the Characteristics and Services should be the same?? However that is purely a guess. Maybe have the Windows machines scan for devices/services and print out what it finds… If it can see the Bluno, I think it should be able to connect?

If you get some information, I’d love to find out the answer too!

Kevin

]]>
By: Mat http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1145 Thu, 10 Nov 2016 20:53:48 +0000 http://www.cevinius.com/?p=290#comment-1145 Hi Cevinius.. I don’t suppose any of your work with the Bluno could guide me into getting a Bluetooth connection with… (wait for it)….. WINDOWS !

DfRobot say not possible but there’s an add to the Windows IoT Git. No mention of Characteristics or Services though. Any help greatly appreciated.

]]>
By: 98stik http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1135 Sun, 06 Nov 2016 19:58:52 +0000 http://www.cevinius.com/?p=290#comment-1135 Hola amigos, soy estudiante de 10 grado. El proyecto Mobbob me gusto mucho asi que compre una placa arduino nano, un módulo bluetooth, los servos e imprimí las partes del mobbob. pero al cargar el programa me sale este error (si alguien me puede ayudar se lo agradeceria mucho):

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino: In function ‘void loop_Parser()’:

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1174:102: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

SetServos(tweenTime, currParam2Val, currParam3Val, currParam4Val, currParam5Val, “SV”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1180:30: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

StopAnim(“ST”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1186:39: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

StopAnimImmediate(“SI”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1198:78: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(walkForwardAnim, walkEndAnim, numTimes, “FW”);

^
E:\UsersobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1210:79: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(walkBackwardAnim, walkEndAnim, numTimes, “BW”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1222:68: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(turnLeftAnim, NULL, numTimes, “LT”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1234:69: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(turnRightAnim, NULL, numTimes, “RT”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1246:69: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(shakeHeadAnim, NULL, numTimes, “SX”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1258:66: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(bounceAnim, NULL, numTimes, “BX”);

^
E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1270:66: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(wobbleAnim, NULL, numTimes, “WX”);
^
E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1282:70: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(wobbleLeftAnim, NULL, numTimes, “WY”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1294:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(wobbleRightAnim, NULL, numTimes, “WZ”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1306:67: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(tapFeetAnim, NULL, numTimes, “TX”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1318:71: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(tapLeftFootAnim, NULL, numTimes, “TY”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1330:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(tapRightFootAnim, NULL, numTimes, “TZ”);

^

E:\Users(…)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1342:69: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(shakeLegsAnim, NULL, numTimes, “LX”);

^

E:\Users(….)MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1354:72: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(shakeLeftLegAnim, NULL, numTimes, “LY”);

^

E:\Users(….)\MobBob-Control-Bluetooth\MobBob-Control-Bluetooth.ino:1366:73: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]

PlayAnimNumTimes(shakeRightLegAnim, NULL, numTimes, “LZ”);

el bluetooth se sincroniza con mi smartphone pero no envia nada

]]>
By: cevinius http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1096 Sun, 16 Oct 2016 05:23:36 +0000 http://www.cevinius.com/?p=290#comment-1096 If you are using Android, can you double check you’re using the correct UUIDs?

Your post mentioned using “DFB0” and “DFB1”. These are the iOS ones.

For Android, you need to use the longer UUIDs. See my post here:
http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/

All the best.

Kevin

]]>
By: Cola Thrower http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1092 Thu, 13 Oct 2016 15:27:30 +0000 http://www.cevinius.com/?p=290#comment-1092 I am using android

]]>
By: cevinius http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1082 Fri, 07 Oct 2016 09:23:09 +0000 http://www.cevinius.com/?p=290#comment-1082 Sorry about the slow reply! I think this was posted while I was visiting Japan, and I missed it when I returned.

To confirm, you are using iOS?

I used the example scenes as a reference to see how the plug in was used, but I think I didn’t keep much of that code in the end.

I suggest writing an interactive app first to try out all the commands and get the connection working. E.g. Make an app with buttons and
UI to go through all the steps of connecting, so that you can see what values you get returned, how long each step takes, etc.
Roughly, you need to:
Initialize()
ScanForPeripheralsWithServices()…
In the callback for ScanForPeripheralsWithServices… you need to check for when the Bluno is found.
Then call ConnectToPeripheral()when the Bluno is found.
Then in the callback for that, you need to use SubscribeCharacteristic()

After the connection is set up… you send data using WriteCharacteristic()
And you will receive data back in the callback you passed into SubscribeCharacteristic()

The Arduino code just writes data to the serial port. My Arduino code is shared on Github.

Hope that helps. When I have time, I will try to write a more detailed post on this.

Kevin

]]>
By: Cola Thrower http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1066 Thu, 22 Sep 2016 14:55:58 +0000 http://www.cevinius.com/?p=290#comment-1066 Appreciate your reply, I have stuck in bluetooth for a few weeks. I purchased the plugin and i am using bluno nano. which scene do you used from the plugin, I used Simpletest scene and have change the UUID of the service, read and write characteristic to DFB0, DFB1 and DFB1 respectively and also the device name to bluno .
And I would like to know more about the arduino code which is used to send to unity as the code is originally wrote for rfduino. And Because i am using the arduino code provided by the dfrobot. Currently nothing is happening.

]]>
By: cevinius http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1065 Thu, 22 Sep 2016 08:30:23 +0000 http://www.cevinius.com/?p=290#comment-1065 Hi there,

I have used that plugin. I find it’s reliable on iOS, but not so reliable on Android anymore. (It used to work fine on Android 5, but doesn’t seem as reliable since Android 6.)

I don’t have a detailed tutorial on this (and don’t have time at the moment to write one). However, this blog post I wrote a while back has the key information you need: http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/

If you look at the example code that the plugin comes with, and then use the Service and Characteristic that I mentioned, you should be able to get it to work.

Basically, that Service and Characteristic are the Bluno’s way of providing a “pass through” serial service. I.e. It is designed to work like a plain serial connection that you can send/receive any data over.

Hope that helps!

Kevin

]]>
By: Cola Thrower http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1064 Wed, 21 Sep 2016 16:11:57 +0000 http://www.cevinius.com/?p=290#comment-1064 If it is this, https://www.assetstore.unity3d.com/en/#!/content/26661

Do you have any tutorial on how to connect and send data to and from bluno using this plugin similar to MobBob

]]>
By: Cola Thrower http://www.cevinius.com/2016/08/17/serial-communication-with-the-bluno-using-bluetooth-le/#comment-1063 Wed, 21 Sep 2016 14:24:55 +0000 http://www.cevinius.com/?p=290#comment-1063 Hi which assets did you bought

]]>