General

Programming Bluno as Central Device

userHead pnob32 2015-03-28 17:07:02 2315 Views1 Replies
Hey there!

I am trying to get my Bluno to talk to another BLE peripheral device. I found out how to set the AT settings accordingly, but I think I need some help with programming. From other projects, it looks like data is transferred through serial via some AT format like:

Code: Select all
Serial.print("AT+KEY=");
Serial.print(key_value,DEC);
Serial.println();


Unfortunately, all the examples I have found involve using the Bluno as a peripheral.

First question is probably pretty newby, but do I flash the code the same way as with any arduino through the ide?

Second question is how would I go about broadcasting the Bluno as a central device, and establishing a connection? I assume I send data the same way as above once a connection is established.

Third... does DFrobot have any resources for the bluno on this sort of thing? All I've been able to find is the wiki page which only gives you the stupidly simple basic sketch code, and not very much info on how to interface with the device and write your own programs for it.

Hopefully someone has some insight into this stuff :?:
Thank you very much! ;)
2015-04-05 07:15:30 hi

sorry be late

1 yes, upload the sketch through the arduino IDE, note for Bluno, if the bt is connected, upload will failed.in this case, power off the bluno, then upload once you power it on again.

2 Once you set your Ble as master and slave, they will realise automatic connection, then you could send or receive data with any of them.

3 in the forun, many people have tried our Ble to try different cool idea. I think it may help.
userHeadPic Leff