Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
Stan  
#1 Posted : Wednesday, April 08, 2015 5:52:58 AM(UTC)
Stan

Rank: Newbie

Groups: Registered
Joined: 4/8/2015(UTC)
Posts: 1

I'm trying to use Embrio for the first time and am trying to work through the tutorials. I have an Arduino UNO and a bunch of other Arduino boards as well.
I connected my UNO and, using Arduino 1.6.2, I can find the port and board and upload sketches correctly. I also loaded the Blink Builtin LED project for Embrio. I set the port and board as I did for Arduino 1.6.2. After several failures, I clicked on the linking icon, and then it said "Connecting" "Good Connection". Then I tried to change the Refresh Rate. It said Uploading Connection Program and then I got the message "Arduio upload timed out". It seems that every time I do a change in Refresh Rate, I have to go through the failed cycle at least once and then on the second or third try, it seems to work. Is there anything I am doing wrong, or is this a bug with Embrio?
I just downloaded 1.1.5.0, and it doesn't work any better. It seems to fail several times before finally working. I looked at the output.txt file, but it doesn't give any information as to why it fails sometimes and sometimes works.
It seems to take one or two failures for each successful compile.

Edited by user Wednesday, April 08, 2015 6:12:20 AM(UTC)  | Reason: Updated the version.

microspace  
#2 Posted : Wednesday, April 08, 2015 11:23:05 AM(UTC)
microspace

Rank: Member

Groups: BetaUser, Registered
Joined: 2/7/2015(UTC)
Posts: 17

Thanks: 4 times
I approve this problem.
For the first time, I thought that it is because of bad USB power, but whem I plugged external 9V power, the problem remained. My second guess that this happens because I use non-original Arduino boards.
EmbrioAdmin  
#3 Posted : Wednesday, April 08, 2015 11:29:27 AM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 81 time(s) in 76 post(s)
There's a timeout setting in View -> Options. After this time if Embrio doesn't get a success message it assumes something went wrong. I set it to 20 seconds which worked fine on my computer, but might be too optimistic for others. Try setting it to something high like 60 and see if that takes care of the problem.

I recently changed the default to 60, but if you installed a while ago I think your settings file might not have updated.
caltabianoangelo@gmail.com  
#4 Posted : Friday, May 08, 2015 10:55:25 AM(UTC)
caltabianoangelo@gmail.com

Rank: Newbie

Groups: BetaUser, Registered
Joined: 4/3/2015(UTC)
Posts: 6
Italy
Location: LIMA

Good Day All,

Same problem for me. First Installation, Time Out Error. I tryed with 20, 40 and 60 seconds in the option, but no results. Glare

Edited by user Friday, May 08, 2015 10:56:04 AM(UTC)  | Reason: Not specified

EmbrioAdmin  
#5 Posted : Friday, May 08, 2015 10:59:43 AM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 81 time(s) in 76 post(s)
What board are you using? Are there any other errors in the log? You can see them all if you double click the message area in the bottom right of the screen.
caltabianoangelo@gmail.com  
#6 Posted : Friday, May 08, 2015 5:00:00 PM(UTC)
caltabianoangelo@gmail.com

Rank: Newbie

Groups: BetaUser, Registered
Joined: 4/3/2015(UTC)
Posts: 6
Italy
Location: LIMA

Hi, I am using Arduino UNO rev.3, and these are the errors coming from the log:

19:55:42 Error compiling timing program.
Arduino upload timed out.
19:55:42 Arduino upload process finished.
19:55:42 Arduino upload timed out.
19:53:42 /C ""C:\Program Files (x86)\Arduino\arduino" --upload --verbose --port COM10 --board arduino:avr:uno "C:\Users\Angelo\AppData\Roaming\Embrio\ArduinoCompile\ArduinoCompile.ino\" > output.txt 2>&1\"
19:53:19 Arduino upload timed out.
19:53:19 Arduino upload process finished.
19:53:19 Arduino upload timed out.
19:51:19 /C ""C:\Program Files (x86)\Arduino\arduino" --upload --verbose --port COM10 --board arduino:avr:uno "C:\Users\Angelo\AppData\Roaming\Embrio\ArduinoCompile\ArduinoCompile.ino\" > output.txt 2>&1\"
19:51:18 Compiling connection program...
19:50:33 Custom Arduino Node list updated from server.
19:50:28 Project 'New Project' loaded.
19:50:27 You have the newest version installed.

i will try with my Arduino MEGA and NANO. I hope good connection.
EmbrioAdmin  
#7 Posted : Friday, May 08, 2015 5:34:19 PM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 81 time(s) in 76 post(s)
Whatever the problem is I doubt it's Uno specific, I've been able to interact with an Uno without any problems. I would try a few things.

First, after trying to connect via Embrio, open the Arduino IDE and open a terminal and listen at 57600 baud. The connection program should be sending a bunch of lines like "upd:5:xxx..." constantly, and once per second a line like "inf:xxxxxx". Are you seeing anything coming over the serial port? If yes the problem is probably with how Embrio reads those values, if not it's probably with how the compiled Arduino program is uploaded.

If that's not working, I would open the compiled Arduino file at C:\Users\<UserName>\AppData\Roaming\Embrio\ArduinoCompile\ArduinoCompile.ino and try to upload it via the Arduino IDE and see if that works. Are you able to upload it that way?

Embrio writes a .ino file and uses the command line functionality of Arduino 1.6.x to compile and upload it. Unfortunately that process isn't as bullet proof as I was hoping. I'd be grateful to see what your results are with the above steps, hopefully it'll help me make this process less prone to error.
caltabianoangelo@gmail.com  
#8 Posted : Thursday, May 21, 2015 1:17:12 PM(UTC)
caltabianoangelo@gmail.com

Rank: Newbie

Groups: BetaUser, Registered
Joined: 4/3/2015(UTC)
Posts: 6
Italy
Location: LIMA

Hi EmrioAdmin,

So, as i understood, embrio when i press on the connecting icon,it's open in background the arduino software and upload "ArduinoCompile.ino" automatically inside the arduino board.

I tried to upload manually as you explain to me,and the compiler on version 1.6.4, once i start the upload it stack at 35% of the progress bar with no results waiting at least 30 minutes.

So i uninstall the last version and install the version 1.6.3, once i start the upload it give me some error.

Here there is the copy of the error i get during this process:

Arduino: 1.6.3 (Windows 7), Board: "Arduino Uno"

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In constructor 'IPAddress::IPAddress()':

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:7:41: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memset(void*, int, size_t)'

memset(_address, 0, sizeof(_address));

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In constructor 'IPAddress::IPAddress(uint8_t, uint8_t, uint8_t, uint8_t)':

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:12:13: error: no match for 'operator[]' (operand types are 'IPAddress::<anonymous union>' and 'int')

_address[0] = first_octet;

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:13:13: error: no match for 'operator[]' (operand types are 'IPAddress::<anonymous union>' and 'int')

_address[1] = second_octet;

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:14:13: error: no match for 'operator[]' (operand types are 'IPAddress::<anonymous union>' and 'int')

_address[2] = third_octet;

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:15:13: error: no match for 'operator[]' (operand types are 'IPAddress::<anonymous union>' and 'int')

_address[3] = fourth_octet;

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In constructor 'IPAddress::IPAddress(uint32_t)':

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:20:48: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memcpy(void*, const void*, size_t)'

memcpy(_address, &address, sizeof(_address));

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In constructor 'IPAddress::IPAddress(const uint8_t*)':

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:25:47: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memcpy(void*, const void*, size_t)'

memcpy(_address, address, sizeof(_address));

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In member function 'IPAddress& IPAddress::operator=(const uint8_t*)':

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:30:47: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memcpy(void*, const void*, size_t)'

memcpy(_address, address, sizeof(_address));

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In member function 'IPAddress& IPAddress::operator=(uint32_t)':

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:36:65: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memcpy(void*, const void*, size_t)'

memcpy(_address, (const uint8_t *)&address, sizeof(_address));

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: At global scope:

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:40:6: error: prototype for 'bool IPAddress::operator==(const uint8_t*)' does not match any in class 'IPAddress'

bool IPAddress::operator==(const uint8_t* addr)

^

In file included from C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:3:0:

C:\Users\Angelo\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/IPAddress.h:52:10: error: candidates are: bool IPAddress::operator==(const uint8_t*) const

bool operator==(const uint8_t* addr) const;

^

C:\Users\Angelo\AppData\Roaming\Arduino15\packages\arduino\hardware\avr\1.6.2\cores\arduino/IPAddress.h:51:10: error: bool IPAddress::operator==(const IPAddress&) const

bool operator==(const IPAddress& addr) const { return _address.dword == addr._address.dword; };

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In member function 'virtual size_t IPAddress::printTo(Print&) const':

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:50:30: error: no match for 'operator[]' (operand types are 'const IPAddress::<anonymous union>' and 'int')

n += p.print(_address[i], DEC);

^

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:53:26: error: no match for 'operator[]' (operand types are 'const IPAddress::<anonymous union>' and 'int')

n += p.print(_address[3], DEC);

^

Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
EmbrioAdmin  
#9 Posted : Thursday, May 21, 2015 1:23:31 PM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 81 time(s) in 76 post(s)
What you're seeing isn't an embrio error but something in some files you're including. Could you zip up your project and the included files and send them to ezra@embrio.io so I could take a look? You can right click on the root of your project to open its location on disk.

Have you been able to upload one of the example projects like blink?
caltabianoangelo@gmail.com  
#10 Posted : Friday, May 22, 2015 6:27:19 AM(UTC)
caltabianoangelo@gmail.com

Rank: Newbie

Groups: BetaUser, Registered
Joined: 4/3/2015(UTC)
Posts: 6
Italy
Location: LIMA

Hi EmbrioAdmin,

these errors i get when i try to upload on the arduino board manually the "ArduinoCompile.ino" that is in the Embrio folder.
EmbrioAdmin  
#11 Posted : Saturday, May 23, 2015 6:02:52 AM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 81 time(s) in 76 post(s)
Could you try with Arduino 1.6.0? I seem to have had better luck with that version than the more recent ones.
caltabianoangelo@gmail.com  
#12 Posted : Saturday, May 23, 2015 8:27:17 AM(UTC)
caltabianoangelo@gmail.com

Rank: Newbie

Groups: BetaUser, Registered
Joined: 4/3/2015(UTC)
Posts: 6
Italy
Location: LIMA

Good Day EmbrioAdmin,

Today i uninstall the Arduino 1.6.3, and install back the Arduino 1.6.0, and i had again the same problem with these error coming:

Arduino: 1.6.0 (Windows 7), Board: "Arduino Uno"

C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In constructor 'IPAddress::IPAddress()':
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:7:41: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memset(void*, int, size_t)'
memset(_address, 0, sizeof(_address));
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In constructor 'IPAddress::IPAddress(uint8_t, uint8_t, uint8_t, uint8_t)':
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:12:13: error: no match for 'operator[]' (operand types are 'IPAddress::<anonymous union>' and 'int')
_address[0] = first_octet;
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:13:13: error: no match for 'operator[]' (operand types are 'IPAddress::<anonymous union>' and 'int')
_address[1] = second_octet;
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:14:13: error: no match for 'operator[]' (operand types are 'IPAddress::<anonymous union>' and 'int')
_address[2] = third_octet;
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:15:13: error: no match for 'operator[]' (operand types are 'IPAddress::<anonymous union>' and 'int')
_address[3] = fourth_octet;
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In constructor 'IPAddress::IPAddress(uint32_t)':
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:20:48: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memcpy(void*, const void*, size_t)'
memcpy(_address, &address, sizeof(_address));
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In constructor 'IPAddress::IPAddress(const uint8_t*)':
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:25:47: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memcpy(void*, const void*, size_t)'
memcpy(_address, address, sizeof(_address));
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In member function 'IPAddress& IPAddress::operator=(const uint8_t*)':
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:30:47: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memcpy(void*, const void*, size_t)'
memcpy(_address, address, sizeof(_address));
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In member function 'IPAddress& IPAddress::operator=(uint32_t)':
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:36:65: error: cannot convert 'IPAddress::<anonymous union>' to 'void*' for argument '1' to 'void* memcpy(void*, const void*, size_t)'
memcpy(_address, (const uint8_t *)&address, sizeof(_address));
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: At global scope:
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:40:6: error: prototype for 'bool IPAddress::operator==(const uint8_t*)' does not match any in class 'IPAddress'
bool IPAddress::operator==(const uint8_t* addr)
^
In file included from C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:3:0:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/IPAddress.h:52:10: error: candidates are: bool IPAddress::operator==(const uint8_t*) const
bool operator==(const uint8_t* addr) const;
^
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/IPAddress.h:51:10: error: bool IPAddress::operator==(const IPAddress&) const
bool operator==(const IPAddress& addr) const { return _address.dword == addr._address.dword; };
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp: In member function 'virtual size_t IPAddress::printTo(Print&) const':
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:50:30: error: no match for 'operator[]' (operand types are 'const IPAddress::<anonymous union>' and 'int')
n += p.print(_address[i], DEC);
^
C:\Users\Angelo\Documents\Arduino\libraries\stdlib\IPAddress.cpp:53:26: error: no match for 'operator[]' (operand types are 'const IPAddress::<anonymous union>' and 'int')
n += p.print(_address[3], DEC);
^
Error compiling.

I Hope,it will possible fix this problem i really want use this wonderful software.
EmbrioAdmin  
#13 Posted : Saturday, May 23, 2015 10:24:17 AM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 81 time(s) in 76 post(s)
Thanks for trying. It's hard to tell what the problem is right now. The error you are pasting is not an Embrio error, but looks like it has to do with some source files you are including in a custom Arduino node.

Have you been able to get it to work with one of the simple example projects, like the blink example? http://embrio.io/projects/beginner-tutorials/beginner-projects/blink-built-in-led

If that works then I'm sure the problem has to do with something in your project. Could you send me your project as a zip file, that also includes the .h and .cpp files that you are using? You can easily find the project on disk by right clicking on the root project node and selecting "Open folder location". Zip that up and e-mail it to ezra@embrio.io.

Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error