Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:56
    dok-net synchronize #8011
  • 21:56
    dok-net synchronize #8008
  • 21:50

    earlephilhower on master

    Move _stopPWM in phase PWM to I… (compare)

  • 21:50
    earlephilhower closed #8048
  • 21:34
    dok-net opened #8048
  • 17:56
    d-a-v closed #8043
  • 17:56

    d-a-v on master

    Added IRAM_ATTR to _stopPWM() s… (compare)

  • 17:56
    d-a-v closed #8044
  • 17:50
    earlephilhower milestoned #7974
  • 17:44
    earlephilhower closed #8042
  • 17:42
    earlephilhower closed #8033
  • 17:40
    earlephilhower milestoned #8046
  • 17:40
    earlephilhower closed #8045
  • 17:32
    earlephilhower closed #8047
  • 16:46
    Xuifyy edited #8047
  • 16:45
    Xuifyy edited #8047
  • 16:43
    Xuifyy edited #8047
  • 16:43
    Xuifyy edited #8047
  • 16:39
    Xuifyy edited #8047
Jeff Eberl
@jeffeb3
Oh wait, the client is the arduino IDE for ota updates? Neat.
Markus
@Links2004
yes
or you can use a web server, take a look here:
https://github.com/esp8266/Arduino/issues/268#issuecomment-154190046
Jeff Eberl
@jeffeb3
Hah, that's cool too.
I am constantly surprised how much is changing with this ESP chip.
Jeff Eberl
@jeffeb3
The web server example doesn't explain the client. Looks like someone could use that for making a web based IDE/updater.
Markus
@Links2004
yes, possible, the "client" (http Server) only needs to send a bin file or http header 304 (no update).
in the simples case there is no logic or script on there server running.
but the server can send for example different files based on the MAC address.
I currently running a simple php script thats delivers based on a json file the bins based on the MAC (including a version check).
Jeff Eberl
@jeffeb3
If there was money in it, someone could make a web based IDE (similar to the particle IDE) and automatically fill in the web updater stuff, and then point each one to a separate webpage. I guess you'd be dealing with a lot of devices checking in all the time for updates.
Anyway, it's very cool.
Yeah, I think I'm going to figure this all out. I would like to stop having to climb on a ladder to change the firmware on my garage door detector. Seems easy enough.
Thanks.
Markus
@Links2004
yes, this one of the reasons why i wrote the http updater ;)
Jeff Eberl
@jeffeb3
Well thank you. And get it documented! The people must know!
seclorum
@seclorum
@igrr thanks, is the config for crostool-ng available somewhere in the repo, i may have overlooked it .. for compliance/testing reasons, where possible I prefer to build toolchains from source...
tzapu
@tzapu
hi guys, does OTA work with ide 1.6.6 now ? or still limited to 1.6.5 ?
Ivan Grokhotkov
@igrr
@seclorum "config" is actually within crosstool-ng itself, it is called xtensa-lx106-elf

So on Linux you just follow crosstool-ng manual and do something like

./bootstrap && ./configure --prefix=`pwd` && make && make install
./ct-ng xtensa-lx106-elf
./ct-ng build

After that the toolchain will be inside builds/xtensa-lx106-elf directory

On OS X things get a bit more tricky: you need to run crosstool-ng on a case-sensitive volume, plus you need some GNU tools from macports or homebrew
Ivan Grokhotkov
@igrr
@seclorum btw, @kireevco has been working on build scripts for the toolchain recently: https://github.com/kireevco/packages/tree/master/xtensa-lx106-elf
perhaps that's what you need
Dmitry Kireev
@AutomationD
@seclorum @igrr it works on all platforms, now I’m making my jenkins work
@seclorum I don’t think it’s for crosstool-ng. it’s building all components separately
I was not able to make esp-open-sdk work on windows (yet)
mac+linux works ok
@seclorum work for esp-open-sdk has been done here https://github.com/kireevco/packages/tree/master/esp-open-sdk
seclorum
@seclorum
superlative, thanks @igrr @kireevco
Ivan Grokhotkov
@igrr
damn, OTA thing in 1.6.6 is worse than I thought.
Markus
@Links2004
you mean the ssh problem?
Ivan Grokhotkov
@igrr
originally i thought the issue to be just with the UploaderFactory, but it turns out there is another one
Basically IDE checks if the advertised port accepts TCP connections
And since we are using UDP, this check fails.
Markus
@Links2004
k that is bad, and open one of our limited tcp sockets isnt the best idea.
Ivan Grokhotkov
@igrr
@reaper7 stumbled upon this in #970
yeah. I was about to open a pull request for the UploaderFactory issue (basically a one-line change), but i have no idea how to work around this BoardReachabiltyFilter
Markus
@Links2004
is is possible to disable the filter for udp ports.
and change the code to:
    MDNS.addService("arduino", "udp", _port);
Ivan Grokhotkov
@igrr
possible, but less likely to be accepted
Markus
@Links2004
yes, that is the main problem, i think.
Ivan Grokhotkov
@igrr
on the IDE side this will also need a change in that case:
jmDNS.addServiceListener("_arduino._tcp.local.", this);
Markus
@Links2004
may simple adding as seconde jmDNS.addServiceListener("_arduino._udp.local.", this); is working.
Ivan Grokhotkov
@igrr
nah, this still doesn't work: BoardReachabiltyFilter still runs, and it call NetUtils.isReachable, which tries to open TCP socket.
there is no provision for UDP there
i.e. that information is not passed from board discovery mechanism
I am tempted to write a plugin, similar to ESP8266FS tool, which will implement OTA uploads.
downside of this approach is that users will not be able to do OTA with "Upload" button
upside is that Arduino team is less likely to break our OTA mechanism with future changes
Markus
@Links2004
I think that the Upload button will not work will be the biggest problem for the most normal Users,
but get it working is not easy to reach.
for user who read the documentation its not the problem, but the most simply try without reading and then we get more issues.
Markus
@Links2004
we have to many Issues oO
try to clean up but no end in sight.
Ivan Grokhotkov
@igrr
well you have reduced the number of issues by 10%. if we do this every day, in two weeks we will be back to normal :)
Me No Dev
@me-no-dev
I also attempted to modify the mainstream IDE to be able to upload using the upload button