Forum >Bluno example does not work on Mega 2560?
Bluno General Arduino

Bluno example does not work on Mega 2560?

userHead walkabout 2014-12-29 22:58:45 13938 Views19 Replies
I recently purchased the DHRobot Bluno Mega 2560 and Bluno test board, and have been chasing through the demo instructions located here: [url=http://www.dfrobot.com/wiki/index.php/Bluno_SKU:DFR0267]http://www.dfrobot.com/wiki/index.php/Bluno_SKU:DFR0267[/url]

Unfortunately things do not appear to be happening for me. Here's what I have done...

1. First tested the Bluno Mega by loading "blink" program as a sanity check. This worked fine...
2. Next downloaded the simple given Ardunio sketch (from demo) onto the Mega. All it does is perform a serial write cmd of what it received. It compiled and uploaded with no errors.
3. Downloaded the xcode project. Compiled and installed onto my iphone. No problems. I can run the app. However when I select "Search" it never finds the Bluno Mega. Bluetooth is turned on in my phone (and i do not see it there either under Settings->Bluetooth (devices within range list).
4. So in the demo instructions it gives some troubleshooting instructions => Update the BLE firmware. I jumped to step #2. I do my development on the Mac so used the MAc version of the BlunoFWDownloader. When I launched the GUI and selected the FW file, I would immediately get a error Message "Download timeout" (I tried both given FW files).
5. I next attempted to configure the BLE through AT command. Not sure what version I have, but executed the given instructions for version 1.8 in the demo instructions. This appeared to work normally as I received the responses expected (according the the Bluno demo instructions).

That said... It still does not work.

One thing though... Recall I tested the MEga standalone first with the blink program. Then I plugged in the Bluno shield. When the USB was attached, it was blinking (the bright LED) and beeping strangely, so I unplugged the USB then took off the Bluno shield from the Mega and inspected it. Did not see anything wrong, so reattached to Mega, and re-applied the USB. I did not get the flashing LED (or sound) anymore, but in truth do not see anything happening on the board (to indicate that it has power, but perhaps that's normal).

But Bluno shield aside the bluetooth of the Mega should be doing something, yes?

My conclusions (though prelim) is that I got a bad board from DHRobot... :(

Suggestions? Any help or pointers sincerely appreciated!!!! :)


Insert: I just cloned from the github [url=https://github.com/itelmatrix/BLE_firmware_V1.9.git]https://github.com/itelmatrix/BLE_firmware_V1.9.git[/url] and unpacked the mega2560 FW files. Again when I try the FW install GUI tool provided by DHRobot, to install the FW onto the Mega, I get an almost immediate "Download timeout" message. However this time I happened to peer at the Mega board (covered by the Bluno shield) and observed the MEga's onboard LED does flash "twice" (before timeout msg appears). So things appear were trying to work... Alas do not. Thanks again for any assistance or suggestions, but I'm stuck now with no other things to try...

2015-01-08 22:26:28 Well... My new Bluno shield arrive. After plugging everything carefully together and turning things on... I observed the new shield is dead-as-a-doorknob also.

1. I can upload the Sketch and find the Bluno via the Play Bluno app.
2. The TX/RX start double flashing sequence when in LED (default) mode in app. Start to go a little crazy when select joystick mode in app. However the shield remains dark and completely non-responsive.
3. This dead-as-a-doorknob behavior finally raised the flag for me to check the power on the board. The 3.3V is spot on, but the 5V line measures at 4.48V (with or without Bluno shield in place). That seems too low IMHO. However the Arduino Mega board appears to be running fine.

Comments? Suggestions?

Oh... Before I was using USB power. I just tried via power adapter. Now the measured voltages are 3.3V and 4.9V respectively, but the old/new Bluno shield is still dark and unresponsive.

userHeadPic walkabout
2015-01-08 22:26:28 Well... My new Bluno shield arrive. After plugging everything carefully together and turning things on... I observed the new shield is dead-as-a-doorknob also.

1. I can upload the Sketch and find the Bluno via the Play Bluno app.
2. The TX/RX start double flashing sequence when in LED (default) mode in app. Start to go a little crazy when select joystick mode in app. However the shield remains dark and completely non-responsive.
3. This dead-as-a-doorknob behavior finally raised the flag for me to check the power on the board. The 3.3V is spot on, but the 5V line measures at 4.48V (with or without Bluno shield in place). That seems too low IMHO. However the Arduino Mega board appears to be running fine.

Comments? Suggestions?

Oh... Before I was using USB power. I just tried via power adapter. Now the measured voltages are 3.3V and 4.9V respectively, but the old/new Bluno shield is still dark and unresponsive.

userHeadPic walkabout
2015-01-05 23:20:52 Thanks Grey... Yeah lots of stuff out there on this, hence what intrigued me on this specific module. userHeadPic walkabout
2015-01-05 23:20:52 Thanks Grey... Yeah lots of stuff out there on this, hence what intrigued me on this specific module. userHeadPic walkabout
2015-01-05 20:26:01 Sorry for the late, there is a vacation,
;)
Happy New Year~

Yeah, it should be OK with HC06, It is Bluetooth protocol V2.0  It should compatible with Ip4~IP6.
(Actually only ip4 doesn't support BLE4.0)

And I think it should be much resource about this module. including wireless communication, and programming
userHeadPic Grey.CC
2015-01-05 20:26:01 Sorry for the late, there is a vacation,
;)
Happy New Year~

Yeah, it should be OK with HC06, It is Bluetooth protocol V2.0  It should compatible with Ip4~IP6.
(Actually only ip4 doesn't support BLE4.0)

And I think it should be much resource about this module. including wireless communication, and programming
userHeadPic Grey.CC
2015-01-01 03:21:52 Hey Grey... A quick question for you.

Since ultimately I'm interested in developing a product that leverages bluetooth, I'm not entirely comfortable with this Bluno Mega with bluetooth 4.0 as older iphone 4 appear cannot pick it up. I want to span users from iphone 4 to 6, and similar range for Android owners.

So here's the question... Can I simply use a standard Mega and tack on a dirt cheap HC-06 (JY-MCU) Bluetooth Serial Module?

The Bluno expansion board could/should still work?

Thanks!!!!

userHeadPic walkabout
2015-01-01 03:21:52 Hey Grey... A quick question for you.

Since ultimately I'm interested in developing a product that leverages bluetooth, I'm not entirely comfortable with this Bluno Mega with bluetooth 4.0 as older iphone 4 appear cannot pick it up. I want to span users from iphone 4 to 6, and similar range for Android owners.

So here's the question... Can I simply use a standard Mega and tack on a dirt cheap HC-06 (JY-MCU) Bluetooth Serial Module?

The Bluno expansion board could/should still work?

Thanks!!!!

userHeadPic walkabout
2015-01-01 02:46:48 Hi Grey... That was it! And when I went back to review the Bluno instructions, what you said (here), is clearly specified in step #1. Not sure how I missed that. Jeesh...

---------------------
Step 1:
1.Press and hold the Boot button on Bluno and connect computer through USB. After power on, release the button.
2.Computer will recognize the Bluno as an USB flash drive.
---------------------

Needless to say, I successfully downloaded the latest FW 1.93. And used my son's (newer) phone to launch the Play Bluno app. It could locate the Bluno just fine. The Bluno shield however is not responsive. I mean... dead-as-a-doornail.

It is plugged in correctly. Due to pin orientation, as a sanity check, I verified that it is basically impossible to plug-in any other way (except the correct way). But maybe I accidentally slipped a pin on first test, not sure (who knows). Looks like I have to choice but to order another one.

I do not see any sensitive ICs on the Bluno expansion board however. Just sensors, resistors, capacitors, one transistor and a diode. Oh well...

Thanks again for your help ! ;)
userHeadPic walkabout
2015-01-01 02:46:48 Hi Grey... That was it! And when I went back to review the Bluno instructions, what you said (here), is clearly specified in step #1. Not sure how I missed that. Jeesh...

---------------------
Step 1:
1.Press and hold the Boot button on Bluno and connect computer through USB. After power on, release the button.
2.Computer will recognize the Bluno as an USB flash drive.
---------------------

Needless to say, I successfully downloaded the latest FW 1.93. And used my son's (newer) phone to launch the Play Bluno app. It could locate the Bluno just fine. The Bluno shield however is not responsive. I mean... dead-as-a-doornail.

It is plugged in correctly. Due to pin orientation, as a sanity check, I verified that it is basically impossible to plug-in any other way (except the correct way). But maybe I accidentally slipped a pin on first test, not sure (who knows). Looks like I have to choice but to order another one.

I do not see any sensitive ICs on the Bluno expansion board however. Just sensors, resistors, capacitors, one transistor and a diode. Oh well...

Thanks again for your help ! ;)
userHeadPic walkabout
2014-12-31 05:20:15 Aha~ the second point
Yeah, it is Boot button, as the AT command has been recognized, the Bluetooth chip should be OK.
It is not "click", it should be pressed and hold before you plug your USB cable. After you plug the usb cable, the "Pair and Link" LEDs should be flashing alternately. (Not Tx and RX one)

The newest firmware is V1.93, you could take a look and have a try.
userHeadPic Grey.CC
2014-12-31 05:20:15 Aha~ the second point
Yeah, it is Boot button, as the AT command has been recognized, the Bluetooth chip should be OK.
It is not "click", it should be pressed and hold before you plug your USB cable. After you plug the usb cable, the "Pair and Link" LEDs should be flashing alternately. (Not Tx and RX one)

The newest firmware is V1.93, you could take a look and have a try.
userHeadPic Grey.CC
2014-12-31 01:54:29 Hey Grey... Thanks for your feedback/suggestions. Here are my findings/results:

1. Plug your Bluno mega 2560 and open your Arduino IDE serial monitor. Select "no line ending"&"115200" in the pull-down menu, try to input "+++" to the serial port. Whether it has been in AT mode?

ANS: When +++ (send) => Display said => Enter AT Mode
Next changed to "Both NL & CR" and typed: AT+SETTING=DEFAULT => Display said => OK

2. Did you press and hold the boot button before you update the new firmware? Do two LED flash alternately?

ANS: If you mean the Arduino Mega reset button... when I click this, the board LED flashes twice.
If you mean the boot button nestled in the bluetooth circuit on the board, when I click this "no LED flash" at all. Meaning the RX and TX LEDs do not flash.

However when I use the BlunoFWDownloader GUI and attempt to update the FW to ver 1.9.1 (i.e. file named SBL_BLEMEGA2560V1.9.1.bin), the TX LED flashes once, then the board LED flashes twice. Then I see the message "DOWNLOAD TIMEOUT".

However when I connect using CoolTerm and send any string (e.g. TD+SETTING=DEFAULT), the TX and RX LEDS both flash once (Not sure what this means). Nothing else happens...

3. Do you have another IOS or android device? Could you try to search it again?

ANS: I do my development on the Mac, and have a relatively new one. Ah... I saw the following: [color=red]BlunoMegaV1.8.[/color] My iphone is an older version though (4S but has 7.1.2 OS installed). iPhone aside however, this does not explain the other grief (or does it?)

4. For the Bluno shield, I remember that it need a library. Have you downloaded? Please take off the buzzer tag before use.

ANS: Yep... The "PlainProtocol" librry is installed. Is this the one, or did I dfrobot something here?

Thanks again for your help... Other ides/suggestions? :)
userHeadPic walkabout
2014-12-31 01:54:29 Hey Grey... Thanks for your feedback/suggestions. Here are my findings/results:

1. Plug your Bluno mega 2560 and open your Arduino IDE serial monitor. Select "no line ending"&"115200" in the pull-down menu, try to input "+++" to the serial port. Whether it has been in AT mode?

ANS: When +++ (send) => Display said => Enter AT Mode
Next changed to "Both NL & CR" and typed: AT+SETTING=DEFAULT => Display said => OK

2. Did you press and hold the boot button before you update the new firmware? Do two LED flash alternately?

ANS: If you mean the Arduino Mega reset button... when I click this, the board LED flashes twice.
If you mean the boot button nestled in the bluetooth circuit on the board, when I click this "no LED flash" at all. Meaning the RX and TX LEDs do not flash.

However when I use the BlunoFWDownloader GUI and attempt to update the FW to ver 1.9.1 (i.e. file named SBL_BLEMEGA2560V1.9.1.bin), the TX LED flashes once, then the board LED flashes twice. Then I see the message "DOWNLOAD TIMEOUT".

However when I connect using CoolTerm and send any string (e.g. TD+SETTING=DEFAULT), the TX and RX LEDS both flash once (Not sure what this means). Nothing else happens...

3. Do you have another IOS or android device? Could you try to search it again?

ANS: I do my development on the Mac, and have a relatively new one. Ah... I saw the following: [color=red]BlunoMegaV1.8.[/color] My iphone is an older version though (4S but has 7.1.2 OS installed). iPhone aside however, this does not explain the other grief (or does it?)

4. For the Bluno shield, I remember that it need a library. Have you downloaded? Please take off the buzzer tag before use.

ANS: Yep... The "PlainProtocol" librry is installed. Is this the one, or did I dfrobot something here?

Thanks again for your help... Other ides/suggestions? :)
userHeadPic walkabout
2014-12-30 05:55:32 Hey man,

Everything will be OK. Take it easy.
Let us check it one by one.
1 Plug your Bluno mega 2560 and open your Arduino IDE serial monitor. Select "[b]no line ending[/b]"&"115200" in the pull-down menu, try to input "+++" to the serial port. Whether it has been in AT mode?
2 Did you [b]press and hold the boot button[/b] before you update the new firmware? Do two LED flash alternately?
3 Do you have another IOS or android device? Could you try to search it again?
4 For the Bluno shield, I remember that it need a library. Have you downloaded? Please take off the buzzer tag before use.
userHeadPic Grey.CC
2014-12-30 05:55:32 Hey man,

Everything will be OK. Take it easy.
Let us check it one by one.
1 Plug your Bluno mega 2560 and open your Arduino IDE serial monitor. Select "[b]no line ending[/b]"&"115200" in the pull-down menu, try to input "+++" to the serial port. Whether it has been in AT mode?
2 Did you [b]press and hold the boot button[/b] before you update the new firmware? Do two LED flash alternately?
3 Do you have another IOS or android device? Could you try to search it again?
4 For the Bluno shield, I remember that it need a library. Have you downloaded? Please take off the buzzer tag before use.
userHeadPic Grey.CC
2014-12-30 02:03:07 INSERT (some new info)...

I observed in DFRobot documentation the reference to CoolTerm. So downloaded this. I can connect but when I type commands such as AT+ROLE=ROLE_PERIPHERAL, two things happen:
1. The RX and TX LEDS on Mega board flash
2. The sent cmd is merely echoed (displayed) in the CoolTerm window (no "Ok" is returned). This may or may not be an issue (This appears to be the way the updated version works?)

I then download the "Play Bluno" app from itunes.

It has the same issue as the DFRobot Xcode example. It cannot find the Bluno Mega......................

Not happy camper.

userHeadPic walkabout
2014-12-30 02:03:07 INSERT (some new info)...

I observed in DFRobot documentation the reference to CoolTerm. So downloaded this. I can connect but when I type commands such as AT+ROLE=ROLE_PERIPHERAL, two things happen:
1. The RX and TX LEDS on Mega board flash
2. The sent cmd is merely echoed (displayed) in the CoolTerm window (no "Ok" is returned). This may or may not be an issue (This appears to be the way the updated version works?)

I then download the "Play Bluno" app from itunes.

It has the same issue as the DFRobot Xcode example. It cannot find the Bluno Mega......................

Not happy camper.

userHeadPic walkabout
2014-12-29 22:58:45 I recently purchased the DHRobot Bluno Mega 2560 and Bluno test board, and have been chasing through the demo instructions located here: [url=https://www.dfrobot.com/wiki/index.php/Bluno_SKU:DFR0267]https://www.dfrobot.com/wiki/index.php/Bluno_SKU:DFR0267[/url]

Unfortunately things do not appear to be happening for me. Here's what I have done...

1. First tested the Bluno Mega by loading "blink" program as a sanity check. This worked fine...
2. Next downloaded the simple given Ardunio sketch (from demo) onto the Mega. All it does is perform a serial write cmd of what it received. It compiled and uploaded with no errors.
3. Downloaded the xcode project. Compiled and installed onto my iphone. No problems. I can run the app. However when I select "Search" it never finds the Bluno Mega. Bluetooth is turned on in my phone (and i do not see it there either under Settings->Bluetooth (devices within range list).
4. So in the demo instructions it gives some troubleshooting instructions => Update the BLE firmware. I jumped to step #2. I do my development on the Mac so used the MAc version of the BlunoFWDownloader. When I launched the GUI and selected the FW file, I would immediately get a error Message "Download timeout" (I tried both given FW files).
5. I next attempted to configure the BLE through AT command. Not sure what version I have, but executed the given instructions for version 1.8 in the demo instructions. This appeared to work normally as I received the responses expected (according the the Bluno demo instructions).

That said... It still does not work.

One thing though... Recall I tested the MEga standalone first with the blink program. Then I plugged in the Bluno shield. When the USB was attached, it was blinking (the bright LED) and beeping strangely, so I unplugged the USB then took off the Bluno shield from the Mega and inspected it. Did not see anything wrong, so reattached to Mega, and re-applied the USB. I did not get the flashing LED (or sound) anymore, but in truth do not see anything happening on the board (to indicate that it has power, but perhaps that's normal).

But Bluno shield aside the bluetooth of the Mega should be doing something, yes?

My conclusions (though prelim) is that I got a bad board from DHRobot... :(

Suggestions? Any help or pointers sincerely appreciated!!!! :)


Insert: I just cloned from the github [url=https://github.com/itelmatrix/BLE_firmware_V1.9.git]https://github.com/itelmatrix/BLE_firmware_V1.9.git[/url] and unpacked the mega2560 FW files. Again when I try the FW install GUI tool provided by DHRobot, to install the FW onto the Mega, I get an almost immediate "Download timeout" message. However this time I happened to peer at the Mega board (covered by the Bluno shield) and observed the MEga's onboard LED does flash "twice" (before timeout msg appears). So things appear were trying to work... Alas do not. Thanks again for any assistance or suggestions, but I'm stuck now with no other things to try...

userHeadPic walkabout