These are chat archives for esp8266/Arduino

20th
Nov 2015
onkelfunny
@onkelfunny
Nov 20 2015 00:04
i tested this again... the problem comes only with the ftdi chip
Me No Dev
@me-no-dev
Nov 20 2015 01:10
@onkelfunny i'm having the same issues since I updated to the captain
i mean similar issues
esptool hanging, sometimes can't be killed
Philip Barclay
@claybar
Nov 20 2015 01:20
Anyone have an idea when arduino.esp8266.com will be back up?
Alex Gray
@mralexgray
Nov 20 2015 05:19
Hey is there a similar #ifdef to esp8266, but more specifically like #ifdef nodemcu? I'm trying to fix some libraries that guess incorrectly that all esp's have the same pinout arrangement.
Ivan Grokhotkov
@igrr
Nov 20 2015 05:45
@mralexgray that's easy to determine: just open Arduino, select NodeMCU board, enable verbose compiler output in Preferences,
"/tmp/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/1.20.0-26-gb404fb9-2/bin/xtensa-lx106-elf-g++" -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ "-I/tmp/Arduino15/packages/esp8266/hardware/esp8266/2.0.0-rc1/tools/sdk/include" -c -Os -g -mlongcalls -mtext-section-literals -fno-exceptions -fno-rtti -falign-functions=4 -std=c++11 -MMD -ffunction-sections -fdata-sections -DF_CPU=80000000L -DARDUINO=10607 -DARDUINO_ESP8266_ESP12 -DARDUINO_ARCH_ESP8266 -DESP8266 "-I/tmp/Arduino15/packages/esp8266/hardware/esp8266/2.0.0-rc1/cores/esp8266" "-I/tmp/Arduino15/packages/esp8266/hardware/esp8266/2.0.0-rc1/variants/nodemcu" "/var/folders/15/ybtbgzpj7636vv4wp92l2c700000gn/T/builda484e8f51fd81c36103039f382134c35.tmp/sketch/sketch_nov20b.ino.cpp" -o "/var/folders/15/ybtbgzpj7636vv4wp92l2c700000gn/T/builda484e8f51fd81c36103039f382134c35.tmp/sketch/sketch_nov20b.ino.cpp.o"
this line lists everything that is defined for nodemcu board
ARDUINO_ESP8266_ESP12 is specific to NodeMCU variant
Alex Gray
@mralexgray
Nov 20 2015 06:20
Sweet. I'll look closer. I have verbose enabled, anyways... It's just hard to parse, visually - as the Arduino IDE Spews so much garbage info.
onkelfunny
@onkelfunny
Nov 20 2015 07:58
@me-no-dev with the NodeMCU 1.0 board i have no problems. witch board do you have? do you have os x el capitan?
Me No Dev
@me-no-dev
Nov 20 2015 10:24
@onkelfunny yes. I have nodemcu, lots of bare modules, ftdi uart and OS X el capitan
and I have problems with FTDI as well not with nodemcu
kathir1951
@kathir1951
Nov 20 2015 11:41
@ hi to all I am struggling to make it work os_printf macro even though I defined In exten "C" { os_api.h and os_type.} I got error "os_printf" is not defined HOW TO DEFINE AND WHERE TO DEFINE Pl help any one
onkelfunny
@onkelfunny
Nov 20 2015 12:56
@me-no-dev this is a problem with el capitan and ftdi. the bad part is, there is no fix for this now
http://www.eevblog.com/forum/reviews/cp2102-ft232rl-el-capitan-phantom-devices/
https://origin-discussions-us.apple.com/thread/7267570?start=0&tstart=0
Steve Nelson
@zenmanenergy
Nov 20 2015 14:38
I’ll 3rd or 4th the problem with el capitan. Another thing I’ve noticed is it’ll work for a while then if I disconnect/reconnect the ftdi it no longer shows up in the list of ports. I’ve found that I often have to reboot my Mac to get it to show up again.
Me No Dev
@me-no-dev
Nov 20 2015 14:43
i'm on a hunt for a good hub. They all say that it will work fine through USB hub. Apple better fix their onboard HUB drivers, as the problem seems to be there
Steve Nelson
@zenmanenergy
Nov 20 2015 14:48
Does your FTDI disappear from the list of ports like mine does? Or are you getting an upload error?
Me No Dev
@me-no-dev
Nov 20 2015 14:49
I got all kinds of behaviour
sometimes I have the /dev/tty.* there when the module is unplugged
have it sometimes not show up on a port
and have had esptool hang on flash many times
Steve Nelson
@zenmanenergy
Nov 20 2015 14:50
I haven’t seen that yet. I have seen two usb devices in the system information.
that are identical.
does a reboot fix it for you?
Me No Dev
@me-no-dev
Nov 20 2015 14:50
I even had a situation where the USB enumerator freaked out and was giving new port every recnnect
Steve Nelson
@zenmanenergy
Nov 20 2015 14:51
sometimes logging out/in fixes it for me, rebooting seems to work for me everytime. but it happens ALL the time these days
Me No Dev
@me-no-dev
Nov 20 2015 14:51
reboot fixes it yes, not that it's a fix
Steve Nelson
@zenmanenergy
Nov 20 2015 14:51
agreed.
Me No Dev
@me-no-dev
Nov 20 2015 14:51
get a hub and try that
Steve Nelson
@zenmanenergy
Nov 20 2015 14:52
oh really? Ok. any recommendations on the brand?
Me No Dev
@me-no-dev
Nov 20 2015 14:52
I have had some troubles with generic ones
so the best you can get is the best choice :D
Steve Nelson
@zenmanenergy
Nov 20 2015 14:52
ha. ok. i’ll order one.
Me No Dev
@me-no-dev
Nov 20 2015 14:53
Belkin maybe... they seem to have a decent QC
Steve Nelson
@zenmanenergy
Nov 20 2015 14:53
and give Amazon MORE money. sigh.
Steve Nelson
@zenmanenergy
Nov 20 2015 14:58
hmm, this gives me an idea.. with an ftdi plugged into each of the ports on a hub, we could make a script that could bulk load a bunch of esp chips one after the next.
Me No Dev
@me-no-dev
Nov 20 2015 14:59
I use serial nowdays only when I mess something up and OTA in no longer an option
Steve Nelson
@zenmanenergy
Nov 20 2015 15:01
don’t you have to install the OTA firmware first via serial? The only way I’ve gotten OTA to work is with the file upload example. Although I have been using the stable version of the IDE. Has that changed?
siedi
@siedi
Nov 20 2015 15:31
can someone provide me a quick tip on how to deal with huge (16kb) json loaded from another website?
Me No Dev
@me-no-dev
Nov 20 2015 15:32
довнлоад ит то спиффс анд реад фромтхере
oops
download it to SPIFFS and parse it from there
siedi
@siedi
Nov 20 2015 15:35
right, thx, means a little bit of work.....I just found https://github.com/squix78/json-streaming-parser, I give this a try first
onkelfunny
@onkelfunny
Nov 20 2015 16:17
@me-no-dev i did a stress test with this adapter http://de.aliexpress.com/item/1set-USB2-0-To-TTL-6Pin-CH340G-Converter-for-STC-PRO-Instead-of-CP2102-PL2303/32272464580.html?adminSeq=202424945&shopNumber=336447
after 50 uploads / disconnects / connects and some other thinks to break the upload everything works fine without a reboot or logoff
Me No Dev
@me-no-dev
Nov 20 2015 16:32
@onkelfunny this is CH340, not CP or FTDI chip
CH chips are fine (nodemcu has one of thse)
Mario Mikočević
@mozgy
Nov 20 2015 16:42
nodemcu v0.9 is ch340, v1.0 is cp2102
Me No Dev
@me-no-dev
Nov 20 2015 16:43
wow you are correct
no clue why I thought 1.0 has CH
it's the only version I have anyway...
Mario Mikočević
@mozgy
Nov 20 2015 16:43
I have several :)
Me No Dev
@me-no-dev
Nov 20 2015 16:45
I actually bought my nodemcu because of the problems with ftdi, I use bare modules otherwise
Mario Mikočević
@mozgy
Nov 20 2015 16:45
v1.0 orig, v1.0 DoIT, v1.0 LoLin
and yellow v0.9
esp8266.com is gone again ..
@me-no-dev I use barebones -01 and -12E aswell
Mario Mikočević
@mozgy
Nov 20 2015 16:52
anyone knows the IP of arduino.esp8266.com ?
ah, found it on #1051
nodoubtman
@nodoubtman
Nov 20 2015 17:01
hi
iam new
i want to do that for arduino esp8266 arduino
when i try to do that : python get.py
it doesnt recognize the command
is down :-(
Mario Mikočević
@mozgy
Nov 20 2015 17:06
you forgot to click 'add path' when installing python
nodoubtman
@nodoubtman
Nov 20 2015 17:06
i tried in cmd
nodoubtman
@nodoubtman
Nov 20 2015 17:07
thank you :)
I really appreciate your help :)) mozgy :)
Steve Nelson
@zenmanenergy
Nov 20 2015 17:08
@mozgy but the urls inside that json file are broken.
Mario Mikočević
@mozgy
Nov 20 2015 17:08
yw
nodoubtman
@nodoubtman
Nov 20 2015 17:08
:-)
Mario Mikočević
@mozgy
Nov 20 2015 17:08
hm? worked for me, just tried
Steve Nelson
@zenmanenergy
Nov 20 2015 17:08
how will that work?
nodoubtman
@nodoubtman
Nov 20 2015 17:08
where are you from?
nodoubtman
@nodoubtman
Nov 20 2015 17:10
mozgy cannot download...
:(
and add path ??
it will appear in cmd ? windows
Mario Mikočević
@mozgy
Nov 20 2015 17:11
well obvious step, change to IP num :)
nodoubtman
@nodoubtman
Nov 20 2015 17:11
i don't understand change IP ? for what ip ?
Steve Nelson
@zenmanenergy
Nov 20 2015 17:11
I guess if you did a local file and manually changed all the addresses it would work.
Me No Dev
@me-no-dev
Nov 20 2015 17:12
either that or add it to hosts file then no need to change anything
but shoould revert the change once the site is up
Mario Mikočević
@mozgy
Nov 20 2015 17:12
but then, -1160 is not the latest staging
the domain arduino.esp8266.com has some problems right now
Mario Mikočević
@mozgy
Nov 20 2015 17:13
@Links2004 whole esp8266.com domain has problems
Me No Dev
@me-no-dev
Nov 20 2015 17:14
does any one of you know what those problems are?
Markus
@Links2004
Nov 20 2015 17:14
yes esp8266.com comes and goes this morning it was working.
nodoubtman
@nodoubtman
Nov 20 2015 17:15
for what adress mozgy?
i'm quite a novice in this thing :)
Mario Mikočević
@mozgy
Nov 20 2015 17:15
->
# host -a esp8266.com
Trying "esp8266.com"
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2168
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2

;; QUESTION SECTION:
;esp8266.com.                   IN      ANY

;; ANSWER SECTION:
esp8266.com.            951     IN      NS      dns1.stabletransit.com.
esp8266.com.            951     IN      NS      dns2.stabletransit.com.

;; AUTHORITY SECTION:
esp8266.com.            951     IN      NS      dns1.stabletransit.com.
esp8266.com.            951     IN      NS      dns2.stabletransit.com.

;; ADDITIONAL SECTION:
dns1.stabletransit.com. 50473   IN      A       69.20.95.4
dns2.stabletransit.com. 50473   IN      A       65.61.188.4
entry from an hour ago
Steve Nelson
@zenmanenergy
Nov 20 2015 17:16
sweetness. the hosts thing worked. thanks @me-no-dev
Mario Mikočević
@mozgy
Nov 20 2015 17:16
so probably someone who has access to NS config data is playing tricks
Me No Dev
@me-no-dev
Nov 20 2015 17:17
if the DNS is pointing somewhere else it usually means that the domain has not been paid or the DNS hacked
nodoubtman
@nodoubtman
Nov 20 2015 17:17
i would like to install esp8266 into the arduino..
json
doesnt work
any other way?
:-(
Markus
@Links2004
Nov 20 2015 17:17
the name server is also changing around
@nodoubtman check: https://github.com/esp8266/Arduino/issues/1051#issuecomment-158434266 that will fix the problem for now
then the json will work
Me No Dev
@me-no-dev
Nov 20 2015 17:18
that is controled by the regitrar and only domain owner can change that
hard to imagine the registrar to be hacked
i have probably close to 20 domains
nodoubtman
@nodoubtman
Nov 20 2015 17:19
omy gosh
thatnk you so much links2004
you saved my life
:))
it's downloading right now :-))
works like a charm :)
Markus
@Links2004
Nov 20 2015 17:22
@me-no-dev the registrar itself is not hacked i think, at maximum the account that was in control of the domain. right now it look like the domain is moved from one provider to the next, have seen 3 different provides in the last days, right now i not get any dns record.
Me No Dev
@me-no-dev
Nov 20 2015 17:23
that is the worst that could have happened :(
if domain had been transfered to a different registrar then there is verry little hope
Markus
@Links2004
Nov 20 2015 17:24
@me-no-dev I hope that the all this is done be the right person and not a 3 party.
Me No Dev
@me-no-dev
Nov 20 2015 17:26
time will tell. the fact that the site came online this morning was somewhat promising
Mario Mikočević
@mozgy
Nov 20 2015 17:26
it was online two hours ago aswell
Steve Nelson
@zenmanenergy
Nov 20 2015 17:48
i’m struggling a bit with the new webUpdater example. THe example loads, I choose a .bin file and update button. the browser is showing a percentage uploaded in the status bar. and then it redirects to an “OK” page. But when I watch it in the serial monitor the device reboots and then just hangs
i’m doing this on a 1Meg esp01.
Me No Dev
@me-no-dev
Nov 20 2015 17:50
with how much SPIFFS?
Steve Nelson
@zenmanenergy
Nov 20 2015 17:50
i chose 512k
Me No Dev
@me-no-dev
Nov 20 2015 17:50
you are out of space
Steve Nelson
@zenmanenergy
Nov 20 2015 17:51
ok.
Me No Dev
@me-no-dev
Nov 20 2015 17:51
your sketches are above 256K
so no space to fit two on 512 space left
Steve Nelson
@zenmanenergy
Nov 20 2015 17:52
so should i do 1 meg (256k) would that work or is this just not possible on an esp01?
Me No Dev
@me-no-dev
Nov 20 2015 17:52
depends on the size of the sketch
what does arduino say about it?
Steve Nelson
@zenmanenergy
Nov 20 2015 17:53
its showing the sketch is 248K. so that should be enough, right?
Me No Dev
@me-no-dev
Nov 20 2015 17:53
depending on the old one, rounded size, EEPROM and whatnot you are at the edge
chose less SPIFFS and should be fine
Steve Nelson
@zenmanenergy
Nov 20 2015 17:54
oooh that worked that time
thanks.
does the webupdater store the bin in spiffs?
Me No Dev
@me-no-dev
Nov 20 2015 17:55
no
Steve Nelson
@zenmanenergy
Nov 20 2015 17:55
in other words, does the spiffs need to be big enough to hold the binary?
Me No Dev
@me-no-dev
Nov 20 2015 17:55
no
Steve Nelson
@zenmanenergy
Nov 20 2015 17:55
oh perfect.
Me No Dev
@me-no-dev
Nov 20 2015 17:55
update goes after the current sketch
before eeprom, spiffs and configs
then moved to the start from the bootloader
Steve Nelson
@zenmanenergy
Nov 20 2015 17:56
rockin’ whomever worked on that… if you’re on here...A BIG BIG THANK YOU!
Me No Dev
@me-no-dev
Nov 20 2015 17:57
it's a joint effort :)
Steve Nelson
@zenmanenergy
Nov 20 2015 17:59
And I’m a moocher of that joint effort! I guess I’ll toss in some paypal bucks to buy some joint beer. :smile:
Mario Mikočević
@mozgy
Nov 20 2015 18:36
forum works
kathir1951
@kathir1951
Nov 20 2015 19:13
@@ hi to all I am struggling to make it work os_printf macro even though I defined In exten "C" { os_api.h and os_type.} I got error "os_printf" is not defined HOW TO DEFINE AND WHERE TO DEFINE Pl help any one
Markus
@Links2004
Nov 20 2015 19:30
you need this:
include osapi.h
kathir1951
@kathir1951
Nov 20 2015 19:34
@Links2004 I included in In exten "C" { os_api.h os_type.} in my cpp file
David
@dmarkey
Nov 20 2015 19:45
I've seen things execute out of order, unlike actual arduino, has people seen this?
Markus
@Links2004
Nov 20 2015 20:02
@kathir1951 so os_api.h means osapi.h? can you post the exact compiler output for the error?
kathir1951
@kathir1951
Nov 20 2015 22:01
@Links2004 yes i got error os_printf is not defined in this scope I verified in ets_sys.h file it is defined
Sven Eliasson
@comino
Nov 20 2015 22:44
Hey, can someone help me with a effective way to cast a char array I get from a JSON obetct to a "const uint8_t" array to store it in a file? (Btw: why can I just store a String/char array in a file?)
can`t*