These are chat archives for esp8266/Arduino

28th
May 2015
chad cormier roussel
@chadouming
May 28 2015 00:27
so, using station mode instead of station ap cut my program execution time by about 40% O.o
39% more precisely xD
fmgomes
@fmgomes
May 28 2015 08:01
@igrr, @ficeto , thanks a lot for your help. I've changed the circuit including now pull ups in all the ESP-01 pins (including reset), and also added one extra capacitor soldered directly between Vcc and Gnd at t the ESP-01 board pins. The wdog failures have disappeared (at least for the observation period), I've observed some Exception (28) only with Sming Examples, not Arduino, but the network connectivity is still not good: the ESP-01 now connects always to the AP, but for example sending a ping from my laptop to the ESP-01 has many failures and a large changes in the round trip time (I get between about 20 ms to more than 1.8 seconds, between successive pings). Also connecting the the Arduino WebServer has different response time between attempts (sometimes almost imidiate, sometimes more than 5 seconds), and also lots of timeouts, the difference is that now i don't see the wdog triggering as I did before installing the pull-ups. So you suggest any diagnostic to try to find the cause? In the meantime I ordered some modules from Olimex to compare the results, and I also have some ESP-12 modules that i never used, I might add them to the comparison.
Ivan Grokhotkov
@igrr
May 28 2015 08:03
poor connection might be related to the fact that that we are not initializing the flash region near the end of flash with the contents of esp_init_default_data.bin file... it has some configuration for the RF part as well.
but i had one ESP01 module which had poor connection even with that file flashed to the correct location
never figured out the cause
ficeto
@ficeto
May 28 2015 08:11
never had this flashed and never experienced such issues
using other variants though
fmgomes
@fmgomes
May 28 2015 08:15
The same modules have been flashed using Sming, Lua and Arduino. Sming has a 'flashinit' option but don't know exactly what it does, I've observed that some of the Sming examples only work well after making that flash init. @igrr, is there any way to clear that zone? The wireless signal is very strong (they are side by side).
ficeto
@ficeto
May 28 2015 08:15
you can do chip_erase to clear
we have tried flashing theimage
result is usually "bad configuration" message on boot and then the ESP clears it on it's own
so not quite sure what is the game there
Ivan Grokhotkov
@igrr
May 28 2015 08:23
one esp01 I have connects to wifi network only when I touch the antenna...
ficeto
@ficeto
May 28 2015 08:33
does it carry the previous chip?
not the EX one?
fmgomes
@fmgomes
May 28 2015 08:38
@igrr, I have not the boards with me now, I'll confirm that later today, but since I have bought the boards many months ago I suppose they have the previous chip
@ficeto , how can I do a chip_erase?
fmgomes
@fmgomes
May 28 2015 09:20
The ESP-01 modules were bought from Aliexpress in Oct 2014, and the ESP-12 in Jan 2015. Is there any comparison between the non EX and EX variants of the ESP8266?
ficeto
@ficeto
May 28 2015 11:58
esptool.py -p [serial-port] erase_flash
lipo_discharge.png
@chadouming discahrge curve of 1000mAh RC LiPO, no sleep, httpServer and wifi on. Measurements taken every 5 minutes.
Ivan Grokhotkov
@igrr
May 28 2015 12:58
and the total discharge time is?
ficeto
@ficeto
May 28 2015 13:11
13 hours 20 minutes
alon24
@alon24
May 28 2015 13:19
@ficeto do you see any change with 12e, with pins i mean, do we have more gpio?
i just got 2 pieces of 12e (waiting for breakout boards)
ficeto
@ficeto
May 28 2015 13:26
they have the flash pins exposed
you should not use those for anything
maybe one or two can be freed if flash is sed to standart SPI
but not recommended
so in reality you gained nothing but 4MB flash
some say it has better traces
doubt it
alon24
@alon24
May 28 2015 13:44
?wil it have more room for nodemcu
meaning would i be able to have more space for apps in lua?
Markus
@Links2004
May 28 2015 15:16
yey, SDK patch1 fix all the SPI 80Mhz and irq problems. Links2004/Arduino@937fb0d
chad cormier roussel
@chadouming
May 28 2015 15:53
meh, all my module stopped working during the night :(
:'(
well, stopped sending data that is, they did not die
Michael Miller
@Makuna
May 28 2015 16:21
In Arduino.h, there is an extern "C" scope placed around a large amount of the file. Usually this is done for legacy includes/functions only. Is there a reason for this?
chad cormier roussel
@chadouming
May 28 2015 16:21
all the includes from sdk are for C and not c++ ?
Markus
@Links2004
May 28 2015 16:22
yes the sdk is C only
Michael Miller
@Makuna
May 28 2015 16:35
sure, but inside Arduino.h, there is a bunch of stuff that isn't legacy, like other arduino header files.
Markus
@Links2004
May 28 2015 16:35
you mean the pinMode functions and so one?
Michael Miller
@Makuna
May 28 2015 16:36
Specific case I was investigating was pgmspace.h should not be in extern "C"
But I spotted other stuff that shouldn't be inside it either.
Markus
@Links2004
May 28 2015 16:38
all stuff that is implemented in a *.c (core_esp8266_wiring_digital.c for the pin stuff) file or the SDK needs to be in the extern "C" only stuff that is implemented in a .cpp file is not extern
chad cormier roussel
@chadouming
May 28 2015 16:39
well, indeed then pgmspace shouldn't be in the extern declaration
Markus
@Links2004
May 28 2015 16:41
correct, will change this.
Michael Miller
@Makuna
May 28 2015 16:44
@Links2004 See esp8266/Arduino#343 for a tracking issue on this.
Markus
@Links2004
May 28 2015 16:58
example code from #343 now working Links2004/Arduino@936669e
Russ Mathis
@RussMathis
May 28 2015 17:16
issue with reading serial data from 3.3V arduino mini over Serial(tx/rx). The first few 1000 bytes come across good but after that the while(Serial.available() ) drops out. There are several more 1000 bytes yet to read? Outputting data to simple wifi client with client.print((char*)buf), any ideas?
Markus
@Links2004
May 28 2015 17:17
add a delay(0) you may run in a wtd reset
Russ Mathis
@RussMathis
May 28 2015 17:18
yup! tried that even with delay(10)
Markus
@Links2004
May 28 2015 17:19
can you post you code?
chad cormier roussel
@chadouming
May 28 2015 17:19
vi is so not intuitive
Posted my code containing the Serial.read issue @http://russ.russmathis.com/esp8266-issue-with-receiving-data/
Markus
@Links2004
May 28 2015 17:21
the posted code has missing chars
Russ Mathis
@RussMathis
May 28 2015 17:22
don't understand? posted my blog with code at http://russ.russmathis.com/esp8266-issue-with-receiving-data/
chad cormier roussel
@chadouming
May 28 2015 17:22
client.print("
");
should be in one line
not a bug, just some coding style
Markus
@Links2004
May 28 2015 17:22
// Send the response to the client
client.print("done! delay(10);
Serial.flush();
that can not work ther is a "); missing
chad cormier roussel
@chadouming
May 28 2015 17:23
true
Russ Mathis
@RussMathis
May 28 2015 17:23
trying the suggested fix
chad cormier roussel
@chadouming
May 28 2015 17:24
client.print("Done !"); delay(10);
Markus
@Links2004
May 28 2015 17:24
ther is a simpler way to doing it will make a short examle.
chad cormier roussel
@chadouming
May 28 2015 17:24
readStringUntil ?
would be simpler
Russ Mathis
@RussMathis
May 28 2015 17:25
actually wordpress had the problem with my paste.
Markus
@Links2004
May 28 2015 17:25
yes :)
chad cormier roussel
@chadouming
May 28 2015 17:25
i hope it's wordpress, cause #include
won't include anything :P
use pastebin
Russ Mathis
@RussMathis
May 28 2015 17:26
Just updated the post using visual and not the text tab.
chad cormier roussel
@chadouming
May 28 2015 17:27
better
Markus
@Links2004
May 28 2015 17:27
    if(Serial.available()) {
        String str = Serial.readStringUntil('\r');
        client.print(str.length());
        client.print(": ");
        client.print(str);
    }
this shut work better and has a dynamic memory handling ;)
Russ Mathis
@RussMathis
May 28 2015 17:28
Giving it a try now
I steer clear of String due to issues with memory, My first attempt used String but only got 100 or so bytes at least with the char* i got the first 1000 or so...:0
Markus
@Links2004
May 28 2015 17:31
readStringUntil has a default timeout of 1 sec. how fast you data is comming in?
Russ Mathis
@RussMathis
May 28 2015 17:32
9600baud
Markus
@Links2004
May 28 2015 17:32
you can use Serial.setTimeout(5000); to set the timeout
Russ Mathis
@RussMathis
May 28 2015 17:32
but i modified the arduino/mini code by adding a delay(20) between Serial.println(...) statements.
Ok
Markus
@Links2004
May 28 2015 17:34
are you useing a browser to connect to the esp?
Russ Mathis
@RussMathis
May 28 2015 17:34
yes
chrome
Markus
@Links2004
May 28 2015 17:35
the browser itself hes also an time out.
Russ Mathis
@RussMathis
May 28 2015 17:35
Yes
Markus
@Links2004
May 28 2015 17:36
the IDE has an webserver example inside so you not need to do all the stuff youself :)
Russ Mathis
@RussMathis
May 28 2015 17:36
Yes, that is the sample I modeled for this prototype/test.
Markus
@Links2004
May 28 2015 17:37
for testing user telnet or nc
the you can be sure its not the browser
Russ Mathis
@RussMathis
May 28 2015 17:38
hmmm, ok. currently I'm having to use switches that reroute my tx/rx lines between the mini and ftdi.
Markus
@Links2004
May 28 2015 17:38
you can use Serial.swap()
Russ Mathis
@RussMathis
May 28 2015 17:39
Yes, but can i thought that was input only?
chad cormier roussel
@chadouming
May 28 2015 17:39
since you fixed the strlen_P thing, i can back cmd_qry_P, so I can hold queries in progmem :D
Russ Mathis
@RussMathis
May 28 2015 17:39
I'm thinking about pin2?
Markus
@Links2004
May 28 2015 17:39
no
pin2 is Serial1
"Serial " can be 1 + 3 or 13+15
Russ Mathis
@RussMathis
May 28 2015 17:40
So swap on pin 15 will output too?
Markus
@Links2004
May 28 2015 17:41
yes calling swap will move the TX RX to 15 and 13
Russ Mathis
@RussMathis
May 28 2015 17:41
OK, my misunderstanding thought was for input only. ;)
Markus
@Links2004
May 28 2015 17:41
pin2 for Serial1 is only output :) (TX)
Russ Mathis
@RussMathis
May 28 2015 17:41
thanks
chad cormier roussel
@chadouming
May 28 2015 17:43
also, just to make sure, you have to connect ground from your adapter with the ground of the esp
Russ Mathis
@RussMathis
May 28 2015 17:45
yes, gnd shared
Your code change using String seems to be getting more data. But some seems corrupt like extra line breaks. need to verify first that the mini is not the reason first. PC version of the collection routine runs with no problems. Just want to double check...
And modify board to use other pins(15/13) with swap.
fmgomes
@fmgomes
May 28 2015 17:55
Hi guys, I just received a notification from UPS that my ESP boards from Olimex have arrived, any particular precaution for using them? Do you want me to do any specific test with them?
chad cormier roussel
@chadouming
May 28 2015 17:57
make sure you have 3.3v power source and not 5v
btw @Links2004 , is there a way to make the CPU slower ? I know we have 80 and 160Mhz option, but could we go like 40 and 20 ?
Markus
@Links2004
May 28 2015 18:01
no documented way (but i think its possible but how) you can try to play with the 0x3ff00014 register https://github.com/esp8266/Arduino/blob/esp8266/docs/rgisters_dump.txt#L10
Russ Mathis
@RussMathis
May 28 2015 18:01
When flushing the Serial object... does that empty both input and output?
Markus
@Links2004
May 28 2015 18:01
its control the 80/160Mhz change
flush is only for TX
Russ Mathis
@RussMathis
May 28 2015 18:02
how do you empty the RX?
Just read until not available?
Markus
@Links2004
May 28 2015 18:04
no function for clear the buffer, but you can use end() and then call begin() again
Russ Mathis
@RussMathis
May 28 2015 18:04
ahhh, thanks
chad cormier roussel
@chadouming
May 28 2015 18:05
while(Serial.available()){Serial.read();} ?
Markus
@Links2004
May 28 2015 18:06
also working but slow if many data there
chad cormier roussel
@chadouming
May 28 2015 18:06
true
Russ Mathis
@RussMathis
May 28 2015 18:06
Detrimental differences between "While(Serialavailable()) Serial.read();" and "Serial.end();Serial.begin(9600);"
besides slow if large buffere?
Markus
@Links2004
May 28 2015 18:07
end and begin also kills the TX buffer
Russ Mathis
@RussMathis
May 28 2015 18:08
k
Russ Mathis
@RussMathis
May 28 2015 18:14
Currently trying the Serial.end();Serial.begin(9600); and had to use delay(10); immediately following.
chad cormier roussel
@chadouming
May 28 2015 18:14
i'd have to write directly to the register address since any other value than 80 or 160 won't work with the call to update the CPU freq
chad cormier roussel
@chadouming
May 28 2015 18:16
well, i ran the system_update_cpu_freq with 160 and it worked
even if it is set at 80mhz
Michael Miller
@Makuna
May 28 2015 18:17
I am real curious if running at 40mhz will reduce power usage even more.
Markus
@Links2004
May 28 2015 18:17
yes only the timers run slower :) system_update_cpu_freq only for set timers and so one
the real speed change of the core is from the register by we not the the documentation of it. so only way is testing.
dont call system_update_cpu_freq and change the register and see wat happens to the timings
may toggle pins for this, and check the power consumption, basic its try and error ;)
ficeto
@ficeto
May 28 2015 18:22
doubt it
you use the network and whatnot
that was to @Makuna if it was unclear :)
also I doubt you can go bello 80MHz as the APB clock runs on that
you go to 160, but the APB clock is still at 80
going 40 and nothing can generate that code
at best what you should get is half the everything
chad cormier roussel
@chadouming
May 28 2015 18:24
what's the crystal freq ?
ficeto
@ficeto
May 28 2015 18:24
but i doubt it will boot at all
Michael Miller
@Makuna
May 28 2015 18:24
@ficeto I was thinking from a scenario where you do some work "offline" and only update "online" once a day.
Markus
@Links2004
May 28 2015 18:25
network will brake of course, but calling system_update_cpu_freq shut fix it?
but most of the espressif stuff is magic.
ficeto
@ficeto
May 28 2015 18:25
the reason I think it will not work is because really everything is mostly tied to the APB clock
and you can not have that clock at 80MHz while the core is at 40
Markus
@Links2004
May 28 2015 18:26
so you think the wifi soc stuff will not work
ficeto
@ficeto
May 28 2015 18:26
yes
i think nothing of the peripherals will work
or they will at half the speed
Russ Mathis
@RussMathis
May 28 2015 18:27
I just got in some ESP12s but no mention was given about there Flash sizes. I've set the IDE to program at 512K then 1M and printed from ESP.getFlashChipSize() both worked showing the size set before uploading. How do you actually know if these are correct Flash size?
Markus
@Links2004
May 28 2015 18:27
ESP.getFlashChipSizeByChipId()
Russ Mathis
@RussMathis
May 28 2015 18:28
k
Markus
@Links2004
May 28 2015 18:28
ESP.getFlashChipSize() shows what you configured in the IDE
Russ Mathis
@RussMathis
May 28 2015 18:29
Yes it lets me upload no matter wich size I set the IDE to upload with.
ficeto
@ficeto
May 28 2015 18:29
it will still do
only thing that might stop doing is saving youtr wifi settings
if you set it to size above yours
Markus
@Links2004
May 28 2015 18:30
yes, you only get an error if the code goes bigger then the 512Kb
Russ Mathis
@RussMathis
May 28 2015 18:30
so getFlashChipSizeByChipId() reports: 4194304
ficeto
@ficeto
May 28 2015 18:31
4MB
Markus
@Links2004
May 28 2015 18:31
its Bytes
Russ Mathis
@RussMathis
May 28 2015 18:31
Thats great, thought I would have got the skimpy ones LOL
Does anyone know the state of SPIFF yet? Can I start using fopen?
Markus
@Links2004
May 28 2015 18:32
SPIFF support is on hold.
Russ Mathis
@RussMathis
May 28 2015 18:33
awww....
So back to the idea of extending the EEPOM memory?
sic EEPROM
ficeto
@ficeto
May 28 2015 18:34
no point
eeprom size is 4K which is plenty for EEPROM stuff
space is already prepartitioned for SPIFFS
and it's coming hopefully soon
there is the option for SDCard
Russ Mathis
@RussMathis
May 28 2015 18:35
Is there a way for me to just use fopen calls from the system?
Markus
@Links2004
May 28 2015 18:36
fopen is not implemented
Russ Mathis
@RussMathis
May 28 2015 18:36
by including user_interface.h or extending it?
ok
Michael Miller
@Makuna
May 28 2015 18:41
A point of clarification, what is SPIFFs?
ficeto
@ficeto
May 28 2015 18:42
file system for embeded devices
Markus
@Links2004
May 28 2015 18:42
SPI Flash File System
ficeto
@ficeto
May 28 2015 18:42
uses the internal flash to give you a file system that you can read, write and so on
it's what nodemcu uses to store the lua scripts
Michael Miller
@Makuna
May 28 2015 18:43
Ahh, because I was thinking that it would be nice to modifiy EEPROM class to use a smaller memory buffer and page through it. Then SPIFF sounds like a better solution to that.
Russ Mathis
@RussMathis
May 28 2015 18:44
When build with the IDE i always get:Binary sketch size: 237,400 bytes (used 45% of a 524,288 byte maximum) no mater if 515K or 4M is set.
Take or give on the binary size
But it always reflects 512K even if I've set the output for 4M
Markus
@Links2004
May 28 2015 18:45
yes esp8266/Arduino#314
is only a display problem
Russ Mathis
@RussMathis
May 28 2015 18:45
Wow your fast
Or you had that one dedicated to memory? LOL
thanks
Michael Miller
@Makuna
May 28 2015 18:46
mmm, I see
Sketch uses 205,452 bytes (4%) of program storage space. Maximum is 4,194,304 bytes.
Russ Mathis
@RussMathis
May 28 2015 18:47
I'm using VisualMicro with Arduino 1.6.4 installed
And Visual Studio 2013
chad cormier roussel
@chadouming
May 28 2015 18:47
meh
y u no arduino
Russ Mathis
@RussMathis
May 28 2015 18:48
Have arduinos but love the intellisense if the other IDEs.
Markus
@Links2004
May 28 2015 18:49
k no idea of VisualMicro. only using eclipse + arduino ide
the arduino ide is to limited for my usage :)
Russ Mathis
@RussMathis
May 28 2015 18:50
VisualMicro.com, has plugins for Visual Studio and Atmel Studio
Michael Miller
@Makuna
May 28 2015 18:50
Arduino IDE doesn't expose flash size that I could see, is that new?
@RussMathis Living on the edge, beta esp8266/Arduino and VisualMicro ! I have it also, but it tend to lag a bit as things change.
Russ Mathis
@RussMathis
May 28 2015 18:51
That let you use the ESP8266 libraries in Arduino ID 1.6.4 board manager.
VisualMicro has a new release SP2.
It works well.
chad cormier roussel
@chadouming
May 28 2015 18:53
meh, doesnt support visual studio 2015 ?
Russ Mathis
@RussMathis
May 28 2015 18:54
Not yet!
Visual Studio 2013 community edition is free so I guess more students use it/ newbs like me.
chad cormier roussel
@chadouming
May 28 2015 18:59
VS2015 community is also free
Russ Mathis
@RussMathis
May 28 2015 18:59
Didn't know that thanks
Michael Miller
@Makuna
May 28 2015 19:00
I just upgraded and built the same sketch I copied output from above...
Compiling 'StrTests' for 'NodeMCU (ESP8266 ESP-12 Module)'
Binary sketch size: 205,452 bytes (used 5% of a 4,194,304 byte maximum) (2.88 secs)
One states 4%, the other 5%, but both list the same numbers ;-)
Russ Mathis
@RussMathis
May 28 2015 19:01
No experience with NodeMCU, strictly been working ESP8266 IDE
ficeto
@ficeto
May 28 2015 19:02
@Makuna which ones are you comparing?
Russ Mathis
@RussMathis
May 28 2015 19:02
I guess now the ESP8266 IDE is really just another board for the Arduino IDE.
ficeto
@ficeto
May 28 2015 19:02
it matters how those percents are calculated
rounded and so on
Michael Miller
@Makuna
May 28 2015 19:03
@ficeto I was comparing Native Arduino IDE to the latest VisualMicro.
Russ Mathis
@RussMathis
May 28 2015 19:05
That's strung @Makuna , I just installed what I thought was the latest VisualMicro update this morning but the text you present and mine are different. After a build I get: Binary sketch size: 231,800 bytes (used 44% of a 524,288 byte maximum) (2.85 secs)
sic strange
Arduino @Makuna using Arduino IDE 1.6.4?
Michael Miller
@Makuna
May 28 2015 19:07
The NodeMCU is nice, plug and play, it just works. BUT, I accidently fried mine last night, I had a wires to two pins dangling as I was switching between them with a scope and it brushed against the raw voltage in and fried the pin and it seems the board.
@RussMathis Yes, Arduino IDE 1.6.4 (Windows).
Russ Mathis
@RussMathis
May 28 2015 19:08
@Makuna does your additional boards manager urls contain: http://arduino.esp8266.com/package_esp8266com_index.json?
chad cormier roussel
@chadouming
May 28 2015 19:09
hmm, visual micro crash on me xD
guess i'll keep using the arduino ide which works fin e
Michael Miller
@Makuna
May 28 2015 19:09
@RussMathis I used the Arduino IDE to get the board, and my url is
http://arduino.esp8266.com/package_esp8266com_index.json
Markus
@Links2004
May 28 2015 19:11
i use the eclipse plugin for arduino and it is working fine may an altanative for other platforms or if VS is fail
Russ Mathis
@RussMathis
May 28 2015 19:13
@Makuna , did you install Arduino 1.6.4 or use the administrative zip?
Michael Miller
@Makuna
May 28 2015 19:13
@RussMathis I installed 1.6.4
Russ Mathis
@RussMathis
May 28 2015 19:15
thx
I'm going to see if installing gives me the same build string you get.
Russ Mathis
@RussMathis
May 28 2015 19:25
@Links2004, I'm not familar with eclipse, can you build the project from github.com/esp8266/arduino? you know the actually libraries from the electro dragons SDK?
So you don't need the arduino or visual studio to build and upload?
I'm a newbie but would like to learn how to build apps at the lower level...
chad cormier roussel
@chadouming
May 28 2015 19:26
if you use the arduino ide you already build app at low level. Using nodemcu add a layer.
Markus
@Links2004
May 28 2015 19:26
you still need the arduino ide but only for getting the compiler and the libarys
all stuff is run in eclipse
you can upload there and also have code complication and all features of a full IDE
Russ Mathis
@RussMathis
May 28 2015 19:28
So I can use the SDK to access access SPIFF API?
Markus
@Links2004
May 28 2015 19:29
the SDK from espressif has no SPIFF, but yes you can accesss any function that is implement.
Russ Mathis
@RussMathis
May 28 2015 19:31
I have not been able to get a good example on how to setup the tool chain in visual studio for using the espressif SDK. So you succesfully got eclipse to work?
Markus
@Links2004
May 28 2015 19:31
Russ Mathis
@RussMathis
May 28 2015 19:31
OK, thanks @Links2004
Russ Mathis
@RussMathis
May 28 2015 19:38
Which version of Eclipse IDE do I want to download? the C/C++ Developers?
Markus
@Links2004
May 28 2015 19:38
yes
Russ Mathis
@RussMathis
May 28 2015 19:39
K
Russ Mathis
@RussMathis
May 28 2015 19:46
What is the difference between the board managers/General ESP8266 and the NodeMCU (ESP8266 ESP-12 Module)?
Markus
@Links2004
May 28 2015 19:47
its only hardware
Russ Mathis
@RussMathis
May 28 2015 19:47
thx
Unpacking Eclipse now
Flying blind here LOL
Markus
@Links2004
May 28 2015 19:48
if the setup is done, the basics are as easy to use like the arduino ide itselfs
Russ Mathis
@RussMathis
May 28 2015 19:49
The download was a zip, so I'm unpacking...
Russ Mathis
@RussMathis
May 28 2015 19:58
reading that now
Michael Miller
@Makuna
May 28 2015 19:58
@RussMathis Picking different boards enables different constants for things, like having constants for the PIN labels from the board (NodeMCU has D0, D1, D2, and these just work).
Russ Mathis
@RussMathis
May 28 2015 19:59
Instruction not working, 7. as Site enter: http://www.baeyens.it/eclipse/V2 or http://www.baeyens.it/eclipse/nightly,
but then Eclipse says: could not find http://www.baeyens.it/eclipse/V2 or http://www.baeyens.it/eclipse/nightly
chad cormier roussel
@chadouming
May 28 2015 19:59
so, waking up, connect to router, read data, connect to mysql, insert data into mysql, read time from ntp server, find how much time to sleep till next XXhX5 or XXhX0 and go to sleep takes about 3600 mSec
:D
Markus
@Links2004
May 28 2015 20:00
@RussMathis http://www.baeyens.it/eclipse/nightly is working for me
Russ Mathis
@RussMathis
May 28 2015 20:00
I'll try again
Markus
@Links2004
May 28 2015 20:01
blob
Russ Mathis
@RussMathis
May 28 2015 20:01
Came up that time...
Markus
@Links2004
May 28 2015 20:01
k
Russ Mathis
@RussMathis
May 28 2015 20:02
All the came up was Arduino Eclipse Extensions...
chad cormier roussel
@chadouming
May 28 2015 20:02
it's all you need xD
Markus
@Links2004
May 28 2015 20:02
yes
Russ Mathis
@RussMathis
May 28 2015 20:02
k
Installing now
Restarting
Ok, I'm up
Markus
@Links2004
May 28 2015 20:05
k now the plugin is installed. next steps: http://www.baeyens.it/eclipse/how_to.shtml#/e
Russ Mathis
@RussMathis
May 28 2015 20:05
Thx, go there now
Says Arduino IDE 1.6.4 only works with Teensy?
Markus
@Links2004
May 28 2015 20:08
its ok
Russ Mathis
@RussMathis
May 28 2015 20:08
k
OK, PDE, IDO file preferences added. next?...
sic INO
Markus
@Links2004
May 28 2015 20:10
yes
Russ Mathis
@RussMathis
May 28 2015 20:11
Creating sketch...
Not finding the ESP8266 board when creating new sketch?
Markus
@Links2004
May 28 2015 20:14
you downloaded by board manager?
Russ Mathis
@RussMathis
May 28 2015 20:15
in the arduino 1.6.4 yes
Markus
@Links2004
May 28 2015 20:15
ok
window --> preferences --> Arduino
add by the private hardware path
Russ Mathis
@RussMathis
May 28 2015 20:16
Where should the private hardware path point?
chad cormier roussel
@chadouming
May 28 2015 20:16
arduino ide
Markus
@Links2004
May 28 2015 20:16
no
Russ Mathis
@RussMathis
May 28 2015 20:17
k, trying to create a new project again...
'
chad cormier roussel
@chadouming
May 28 2015 20:17
~/arduino/hardware ?
Markus
@Links2004
May 28 2015 20:17
C:\Users[username here]\AppData\Roaming\appdata\packages\esp8266\hardware
Russ Mathis
@RussMathis
May 28 2015 20:17
oops, just pointed to the same directory as the ide, OK changing...
chad cormier roussel
@chadouming
May 28 2015 20:18
it was my bad sorry
Russ Mathis
@RussMathis
May 28 2015 20:18
No worries, thanks for the help...
Markus
@Links2004
May 28 2015 20:18
the arduino ide storages the installed "boards" on appdata
Russ Mathis
@RussMathis
May 28 2015 20:19
Still dont have board...
:) Maybe have to restart?
chad cormier roussel
@chadouming
May 28 2015 20:20
sure it's %APPDATA%\appdata ?
Markus
@Links2004
May 28 2015 20:20
may, will try myself, i use the git version ;)
chad cormier roussel
@chadouming
May 28 2015 20:20
shouldn't it be %APPDATA%\arduino ?
C:\Users\USER NAME\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266
Markus
@Links2004
May 28 2015 20:21
yes like this
Russ Mathis
@RussMathis
May 28 2015 20:21
Let me try that path instead...
chad cormier roussel
@chadouming
May 28 2015 20:22
try stopping at the hardware, not the 2nd esp8266
Russ Mathis
@RussMathis
May 28 2015 20:23
OK
Markus
@Links2004
May 28 2015 20:23
C:\Users[username]\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266 is working for me, may check in windows explore first if its existings
Russ Mathis
@RussMathis
May 28 2015 20:23
Got it!!! :sparkles:
chad cormier roussel
@chadouming
May 28 2015 20:26
:DF
Russ Mathis
@RussMathis
May 28 2015 20:26
OK, so have project open in arduino perspective mode...
See project explorer at the left and test.ino (Name I called the project) thenLoop(): void, setup(): void
So each method/function is shown individually in the editor? can't see the whole file at once?
Ahh double click... HEE HEE HEE
liking it...
Markus
@Links2004
May 28 2015 20:28
"F3" and Strg+Space are the most used key later on :)
Russ Mathis
@RussMathis
May 28 2015 20:29
Strg+Space ???
Markus
@Links2004
May 28 2015 20:29
k strg may is ctrl on the english keyboard
chad cormier roussel
@chadouming
May 28 2015 20:29
ctrl + space
Russ Mathis
@RussMathis
May 28 2015 20:29
LOL, OK, THX
Markus
@Links2004
May 28 2015 20:29
have a german one ;)
Russ Mathis
@RussMathis
May 28 2015 20:30
Testing my first blinky. :)
So.. ummm how to upload?
Markus
@Links2004
May 28 2015 20:31
same icon then arduino ide
Russ Mathis
@RussMathis
May 28 2015 20:32
ahhh, k
Markus
@Links2004
May 28 2015 20:32
blob
Russ Mathis
@RussMathis
May 28 2015 20:32
not liking command: pinMode(4,OUTPUT);
Markus
@Links2004
May 28 2015 20:33
#include <Arduino.h> ?
Russ Mathis
@RussMathis
May 28 2015 20:33
OK
still not liking pinMode(4,OUTPUT);
Markus
@Links2004
May 28 2015 20:34
what the message in the "console" tab?
Russ Mathis
@RussMathis
May 28 2015 20:35
invalid arguments
make: * [.ino.cpp.o] Error 127

include <Arduino.h>

//The setup function is called once at startup of the sketch
void setup()
{
// Add your initialization code here
Serial.begin(9600);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
}

// The loop function is called in an endless loop
void loop()
{
digitalWrite(4,1);
delay(200);
digitalWrite(4,LOW);
delay(200);
//Add your repeated code here
}

Markus
@Links2004
May 28 2015 20:36
will try one moment
#include <Arduino.h>

//The setup function is called once at startup of the sketch
void setup() {
// Add your initialization code here
    Serial.begin(9600);
    pinMode(4, OUTPUT);
    pinMode(5, OUTPUT);
}
// The loop function is called in an endless loop
void loop() {
    digitalWrite(4, 1);
    delay(200);
    digitalWrite(4, LOW);
    delay(200);
//Add your repeated code here
}
file is named blink.ino
22:37:36 Build Finished (took 13s.653ms)
invalid arguments
make: * [.ino.cpp.o] Error 127
is all you get?
Russ Mathis
@RussMathis
May 28 2015 20:39
make all
Building file: ../.ino.cpp
Starting C++ compile
"/bin/xtensa-lx106-elf-g++" -Dets -DICACHEFLASH -USTRICT_ANSI "-IC:/Users/Russ/AppData/Roaming/Arduino15/packages/esp8266/hardware/esp8266/1.6.4-628-g545ffde/tools/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -DFCPU=160000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_1.6.4-628-G545FFDE -DESP8266 -I"C:\Users\Russ\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-628-g545ffde\cores\esp8266" -I"C:\Users\Russ\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-628-g545ffde\variants\generic" -MMD -MP -MF".ino.cpp.d" -MT".ino.cpp.o" -D__IN_ECLIPSE=1 -x c++ "../.ino.cpp" -o ".ino.cpp.o" -Wall
/usr/bin/sh: /bin/xtensa-lx106-elf-g++: No such file or directory
make: * [.ino.cpp.o] Error 127
Markus
@Links2004
May 28 2015 20:41
oO why there are linux style paths in side "/bin/xtensa-lx106-elf-g++" is for linux
Russ Mathis
@RussMathis
May 28 2015 20:41
?
Markus
@Links2004
May 28 2015 20:42
will download latest bordmanager version and check the config there
you not have the latest version. try tu podate with the arduino board manager
Russ Mathis
@RussMathis
May 28 2015 20:46
I'm looking
Do I need to remove it and install again ... ?
Markus
@Links2004
May 28 2015 20:47
if no update is there yes
Russ Mathis
@RussMathis
May 28 2015 20:47
will do
Markus
@Links2004
May 28 2015 20:48
finally you shut get the version "1.6.4-673-g8cd3697"
Russ Mathis
@RussMathis
May 28 2015 20:48
K
Ok, latest version installed
still get same error
Markus
@Links2004
May 28 2015 20:51
k in eclipse click right of you project --> properties Arduino
select the new boards.txt version and apply then OK
Russ Mathis
@RussMathis
May 28 2015 20:52
ok... still have error
Markus
@Links2004
May 28 2015 20:52
try to rename the ino file to cpp
i mean the file ending
Russ Mathis
@RussMathis
May 28 2015 20:53
k
still error
trying to restart the ide
still error
Markus
@Links2004
May 28 2015 20:55
mm will try again at my side one moment
Russ Mathis
@RussMathis
May 28 2015 20:55
Have to pick kids up back in about 30min.
Markus
@Links2004
May 28 2015 20:56
ok
Markus
@Links2004
May 28 2015 21:03
@igrr in the platform.txt from the board manager the runtime.tools.xtensa-lx106-elf-gcc.path= and runtime.tools.esptool.path= is missing ?
Markus
@Links2004
May 28 2015 21:10

@RussMathis to fix it add

runtime.tools.xtensa-lx106-elf-gcc.path={runtime.platform.path}/../../../tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9
runtime.tools.esptool.path={runtime.platform.path}/../../../tools/esptool/0.4.4

to the C:\Users\Russ\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-628-g545ffde\platform.txt under

version=1.6.4

after this eclipse click right of you project --> properties Arduino
select the new boards.txt version and apply then OK

Russ Mathis
@RussMathis
May 28 2015 21:21
ok
To the package: 1.6.4-628-g545ffde or 1.6.4-673-g8cd3697?
Markus
@Links2004
May 28 2015 21:23
1.6.4-673-g8cd3697
delete the other one
Russ Mathis
@RussMathis
May 28 2015 21:23
k
Is this something everyone has to do or something wrong with my system?
Markus
@Links2004
May 28 2015 21:24
there is something wrong with the pagage from the manager but i have the same problem in last version here.
Russ Mathis
@RussMathis
May 28 2015 21:25
Still have the same error
Markus
@Links2004
May 28 2015 21:25
have you do the apply stuff?
Russ Mathis
@RussMathis
May 28 2015 21:26
Building file: ../test.cpp
Starting C++ compile
"/bin/xtensa-lx106-elf-g++" -Dets -DICACHEFLASH -USTRICT_ANSI "-IC:/Users/Russ/AppData/Roaming/Arduino15/packages/esp8266/hardware/esp8266/1.6.4-673-g8cd3697/tools/sdk//include" -c -Os -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -DFCPU=160000000L -DARDUINO=10604 -DARDUINO_ESP8266_ESP01 -DARDUINO_ARCH_1.6.4-673-G8CD3697 -DESP8266 -I"C:\Users\Russ\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\cores\esp8266" -I"C:\Users\Russ\AppData\Roaming\Arduino15\packages\esp8266\hardware\esp8266\1.6.4-673-g8cd3697\variants\generic" -MMD -MP -MF"test.cpp.d" -MT"test.cpp.o" -D__IN_ECLIPSE=1 -x c++ "../test.cpp" -o "test.cpp.o" -Wall
/usr/bin/sh: /bin/xtensa-lx106-elf-g++: No such file or directory
make: * [test.cpp.o] Error 127
hold on..., did the build again and it is worked!
Markus
@Links2004
May 28 2015 21:27
yay :)
Russ Mathis
@RussMathis
May 28 2015 21:27
LOL :) thanks!
Markus
@Links2004
May 28 2015 21:28
will talk to igrr about the problem, its only an problem by using eclipse i think.
Russ Mathis
@RussMathis
May 28 2015 21:28
OK
Im trying to upload the project now
and it is failing
Launching C:/Users/Russ/AppData/Roaming/Arduino15/packages/esp8266/hardware/esp8266/1.6.4-673-g8cd3697/../../../tools/esptool/0.4.4/esptool.exe -cd ck -cb 921600 -cp COM9 -ca 0x00000 -cf C:\Users\Russ\workspace\test/Release/test_00000.bin -ca 0x10000 -cf C:\Users\Russ\workspace\test/Release/test_10000.bin
Output:
warning: espcomm_sync failed
error: espcomm_open failed
C:/Users/Russ/AppData/Roaming/Arduino15/packages/esp8266/hardware/esp8266/1.6.4-673-g8cd3697/../../../tools/esptool/0.4.4/esptool.exe finished
upload done
Markus
@Links2004
May 28 2015 21:30
now it shut be running and you can play with it.
under arduino/core you will find how the arduino functions like digitalWrite will do the register work
may speed is to high
can you upload at this speed in the normal IDE?
chad cormier roussel
@chadouming
May 28 2015 21:31
did you put your esp in flash mode ?
Russ Mathis
@RussMathis
May 28 2015 21:31
ok trying 115200
trying 5700
Markus
@Links2004
May 28 2015 21:33
if its not working try upload with the normal arduino IDE if not working ther check you setup
Russ Mathis
@RussMathis
May 28 2015 21:33
ok
Russ Mathis
@RussMathis
May 28 2015 21:36
previously visual studio was uploading @38400, but that is no longer an upload speed in the IDE?
Markus
@Links2004
May 28 2015 21:38
its very low, normally 115200 is working fine with short cables i cam up to ~500000 for stable usage
Russ Mathis
@RussMathis
May 28 2015 21:39
512000 seemed to work in visual studio, trying eclipse again
There is no 512000 choice in the eclipse ide
how do I add the 512000 baud rate to the eclipse ide choices?
Markus
@Links2004
May 28 2015 21:42
its simply missing on the boards.txt... but if 512000 work 115200 will work too
Russ Mathis
@RussMathis
May 28 2015 21:42
trying
success!!!!!!
trying alternate project now...
chad cormier roussel
@chadouming
May 28 2015 21:44
making an automated home ?
Markus
@Links2004
May 28 2015 21:45
have one :)
Russ Mathis
@RussMathis
May 28 2015 21:46
no... i wish, I'm just a newb, but I'll get there. I'm working on getting information from an arduino mini via serial and presenting it on a webpage though kind of cool..., for me...:)
chad cormier roussel
@chadouming
May 28 2015 21:47
hmm, why pass by an arduino ?
Russ Mathis
@RussMathis
May 28 2015 21:48
still using the 3.3v arduino mini, just using the esp8266 for web access.
chad cormier roussel
@chadouming
May 28 2015 21:48
why ?
Markus
@Links2004
May 28 2015 21:48
you can run all the code from the mini on the esp?
Russ Mathis
@RussMathis
May 28 2015 21:48
My project compiled but the IDE is show all kinds of red lines as if it don't understand digitalWrite or client.print, etc, etc
Don't have money for expensive xbee LOL
have 3 kids and wife to support LOL :)
Markus
@Links2004
May 28 2015 21:49
add #include <Arduino.h>
chad cormier roussel
@chadouming
May 28 2015 21:49
but, that's not the question, you can run almost all the code from the mini directly through the esp
Russ Mathis
@RussMathis
May 28 2015 21:50
Is there a way to auto include the #include <Arduino.h>
Yes, I played with lua for awhile but then thought how about just put all my code on the esp... yhea and cheaper too.
Markus
@Links2004
May 28 2015 21:52
blob
Russ Mathis
@RussMathis
May 28 2015 21:53
Ok I included the #include <Arduino.h> but now It shows that the next #include is bad?

extern "C" {

include "user_interface.h"

}

include <Arduino.h>

include <ESP8266WiFi.h>

Markus
@Links2004
May 28 2015 21:54
you need to add the libary
Russ Mathis
@RussMathis
May 28 2015 21:56
Gotcha, I need to read the rest of that help page, thanks!
Markus
@Links2004
May 28 2015 21:59
getting late here, gn8
Russ Mathis
@RussMathis
May 28 2015 21:59
So I can manually add the faster baud rate to the file boards.txt
Markus
@Links2004
May 28 2015 21:59
yes
generic.menu.UploadSpeed.512000=512000
generic.menu.UploadSpeed.512000.upload.speed=512000
Russ Mathis
@RussMathis
May 28 2015 22:00
cool, late here too have to go home and feed the family:) But I'll stick with it later tonight. Thanks for all the help. Have a greate evening.
Thanks you!
fmgomes
@fmgomes
May 28 2015 23:14
New Olimex module including the 'development board' working! No more stability issues like I had with the ESP-01 modules, no wdg reset nor exception 28. Nevertheless, the communication still has problems: Ping has failures, and even when it receives all the replies, they have a wide spread for the round trip time:
Pinging 192.168.3.246 with 32 bytes of data:
Reply from 192.168.3.246: bytes=32 time=47ms TTL=255
Reply from 192.168.3.246: bytes=32 time=1346ms TTL=255
Reply from 192.168.3.246: bytes=32 time=61ms TTL=255
Reply from 192.168.3.246: bytes=32 time=2ms TTL=255
This message was deleted
fmgomes
@fmgomes
May 28 2015 23:19
Using the webserver example also has problems as before, at the TCP level like we can see in the below image:
blob
So the node itself seems stable (no reset, no exceptions), but at the IP level it seems that there are still issues, do you have similar problems?
ficeto
@ficeto
May 28 2015 23:23
have to try
have not experienced such issues