Bluno General Arduino

Connecting two Blunos

userHead nikolsidirop 2020-05-28 02:09:26 6952 Views9 Replies

Hello,

I want to tranfer data from a Bluno Nano to a Bluno MEGA.

I have updated the firmware to 1.97 in both through the BlunoFWDownloader. 
SBL_BleMega2560V1.97.bin for the Mega and SBL_BlunoV1.97 for the nano.

I have followed following link
https://wiki.dfrobot.com/Bluno_SKU_DFR0 ... n.EF.BC.89

The Bluno Nano works fine, but in the Bluno Mega after configuration I cannot upload the code. The uploading bar goes to 100% and sticks there, after a long time (more than 5 min) I get following error:

//
Arduino: 1.8.12 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 2030 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 198 bytes (2%) of dynamic memory, leaving 7994 bytes for local variables. Maximum is 8192 bytes.
An error occurred while uploading the sketch
//

My code is

Code: Select all//Bluno_Receiver_AT+SETTING=DEFCENTRAL void setup() {  Serial.begin(115200); } void loop() {    while (Serial.available() > 0) {    Serial.println("available");    int inCommand = Serial.read();    Serial.println(inCommand);  } }

I tried to do what is suggested in this link but the .zip file does not exist.
https://www.dfrobot.com/forum/topic/1733
Is there any solution? Why is this happening only to the one of the Blunos?

 

2020-06-30 20:40:22 I did everything you suggested and managed to upload the script. Thank you very much!

The mistake was the power supply. I had to power the MEGA board through a usb port without serial connection, so not through a PC.

However, I noticed that it is possible to upload a sketch to the nano board, only if the MEGA is not powered (no connection).

In the interative project I build, the Nano will be placed in a moving part, thus it will be super inconvenient to programm everything through the Nano. I was wondering if it is possible to have it the other way around. To program the nano through the MEGA.
userHeadPic nikolsidirop
2020-06-14 19:31:46 I did the AT Commands as described and binded the MEGA MAC address in the nano bluno. I got an 'OK' as feedback in all the AT commands I inserted. The link LED in both blunos is on, but now I cannot upload nothing in both bluno nano and MEGA. The serial ports are proper selected.

Nano error:
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0xe3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0xe3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0xe3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0xe3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0xe3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0xe3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0xe3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0xe3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0xe3
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0xe3
Problem uploading to board. See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Bluno Mega error:
An error occurred while uploading the sketch
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer
userHeadPic nikolsidirop
2020-06-08 04:33:20 I used UNO as a burner and followed the link. However the error led blinked two times in the beginning for a short time while running the burn bootloader. And if I try to upload a sketch to the Bluno ATMega 2560 the same error occurs.

Arduino: 1.8.12 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 656 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
avrdude: ser_open(): can't open device "\\.\COM3": The system cannot find the file specified.


avrdude: ser_drain(): read error: The handle is invalid.


avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
the selected serial port
does not exist or your board is not connected
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: ser_send(): write error: sorry no info avail
avrdude: stk500_send(): failed to send command to serial port
avrdude: ser_recv(): read error: The handle is invalid.


avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_getsync(): timeout communicating with programmer

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
userHeadPic nikolsidirop
2020-05-29 04:58:13 If I upload the blink example (if you mean that), I get

Arduino: 1.8.12 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

Sketch uses 1448 bytes (0%) of program storage space. Maximum is 253952 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 8183 bytes for local variables. Maximum is 8192 bytes.
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: stk500v2_ReceiveMessage(): timeout
An error occurred while uploading the sketch
avrdude: stk500v2_ReceiveMessage(): timeout
avrdude: verification error, first mismatch at byte 0x0400
0x5c != 0x58
avrdude: verification error; content mismatch

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
userHeadPic nikolsidirop