These are chat archives for esp8266/Arduino

6th
May 2017
riataman
@riataman
May 06 2017 00:16
@me-no-dev that's interesting. I will look at the fatfs code in esp32
is that in the arduino code
or in idf
Ivan Grokhotkov
@igrr
May 06 2017 01:02
@me-no-dev i seem to remember a flowchart in the SD card spec which describes the procedure for switching between SD and SPI mode and vice versa
And I'm fairly sure i don't have it implemented yet, but will do it once SD-over-SPI MR is merged into IDF
riataman
@riataman
May 06 2017 01:54
@igrr: are you guys planning to upgrade the esp32 sdk in the esp32-arduino repo? I wanted to use that but the i2s seems to have gone trought a bit of changes that haven't been merged yet.
I don't even know why I'm still using Arduino :( but this customer I have insists on it.
at this point the "arduino" part of it is just a joke since the sketch is a simple thing and a few low level libraries.
4D Systems
@4dsystems
May 06 2017 02:00
http://arduino.esp8266.com/ back up for anyone else? browsing this and it comes up "No file specified" rather than the "Page Cannot be Found" type error...
riataman
@riataman
May 06 2017 02:00
I think that means it works
4D Systems
@4dsystems
May 06 2017 02:01
Just triggered off a build again to the repo, and it still fails. hmm :(
The command "cd esp8266/tools" exited with 0.
$ python get.py
Platform: x86_64-pc-linux-gnu
Downloading esptool-0.4.9-linux64.tar.gz
Done
Extracting dist/esptool-0.4.9-linux64.tar.gz
Renaming esptool-0.4.9-linux64 to esptool
Downloading linux64-xtensa-lx106-elf-gb404fb9.tar.gz
Done
Hash mismatch for dist/linux64-xtensa-lx106-elf-gb404fb9.tar.gz, delete the file and try again
Traceback (most recent call last):
File "get.py", line 116, in <module>
get_tool(tool)
File "get.py", line 83, in get_tool
raise RuntimeError()
RuntimeError
that is working for me
the linux64 comes out as 4d5e913b3a73ff48b9a75df84a799bfb
wait
that's a sha-256 which I don't have
pi@controller ~ $ rhash --sha256 linux64-xtensa-lx106-elf-gb404fb9.tar.gz
46f057fbd8b320889a26167daf325038912096d09940b2a95489db92431473b7 linux64-xtensa-lx106-elf-gb404fb9.tar.gz
and the one in the json is 0cf150193997bd1355e0f49d3d49711730035257bc1aee1eaaad619e56b9e4e6
so they certainly don't match
wait looked at the wrong one
json one is: 46f057fbd8b320889a26167daf325038912096d09940b2a95489db92431473b7
so the hashes do match
4D Systems
@4dsystems
May 06 2017 02:06
I just downloaded the above file, and SHA-256 for me is 1561ec85cc58cab35cc48bfdb0d0087809f89c043112a2c36b54251a13bf781f
hmm
riataman
@riataman
May 06 2017 02:06
maybe do what the scripts says: "delete the file and try again
can you do a file on it
pi@controller ~ $ file linux64-xtensa-lx106-elf-gb404fb9.tar.gz
linux64-xtensa-lx106-elf-gb404fb9.tar.gz: gzip compressed data, last modified: Wed May 13 09:23:31 2015, from Unix
4D Systems
@4dsystems
May 06 2017 02:07
This is me trying to do a pull request to this repo, so its not any files I have personally, its this Travis CI system doing the build, which is failing
riataman
@riataman
May 06 2017 02:07
oh
I don't know then
4D Systems
@4dsystems
May 06 2017 02:16
ubuntu:~/Downloads$ file linux64-xtensa-lx106-elf-gb404fb9.tar.gz
linux64-xtensa-lx106-elf-gb404fb9.tar.gz: gzip compressed data, from Unix, last modified: Thu May 14 02:23:31 2015
ubuntu:~/Downloads$ rhash --sha256 linux64-xtensa-lx106-elf-gb404fb9.tar.gz
46f057fbd8b320889a26167daf325038912096d09940b2a95489db92431473b7 linux64-xtensa-lx106-elf-gb404fb9.tar.gz
same as what you got
that was for the downloaded version to my PC
but not related to my error with Travis
Ivan Grokhotkov
@igrr
May 06 2017 03:26
@riataman sorry, totally missed that you have updated the PR three days ago.
left a minor comment
@4dsystems yep Travis CI is still failing for a reason unknown to me.
4D Systems
@4dsystems
May 06 2017 03:27
Damn :(
Ivan Grokhotkov
@igrr
May 06 2017 03:28
changed the package URLs in master, updated your branch, will see how it goes.
4D Systems
@4dsystems
May 06 2017 03:29
Yeah I noticed you updated a few things, was waiting for your 2nd one to finish then triggered my PR off again with a close then open. Its running now
Me No Dev
@me-no-dev
May 06 2017 07:03
@riataman what I2C changes? Arduino uses it's own I2C driver
Ivan Grokhotkov
@igrr
May 06 2017 07:50
I think he mentioned i2s not i2c
but the i2s seems to have gone trought a bit of changes that haven't been merged yet
Michael Muir
@MichaelMuir_twitter
May 06 2017 07:56
anyone in here tried to use GPIO14 on a Sonoff as an Input ?
Me No Dev
@me-no-dev
May 06 2017 09:58
@igrr ahh my bad
ibrahim-muneer
@ibrahim-muneer
May 06 2017 14:48
Hello
anyone here ???
Steve Nelson
@zenmanenergy
May 06 2017 17:21
I'm here, but I'm probably not much help
riataman
@riataman
May 06 2017 18:54
@me-no-dev: yeah i2s. IDF and arduino's aren't the same code. the one in idf seems more capable.
riataman
@riataman
May 06 2017 19:00
specially the ability to ouput the mclk
ibrahim-muneer
@ibrahim-muneer
May 06 2017 19:00
lol
riataman
@riataman
May 06 2017 19:00
@ibrahim-muneer ?
Me No Dev
@me-no-dev
May 06 2017 19:01
@riataman I updated it to the latest verions an hour ago
ibrahim-muneer
@ibrahim-muneer
May 06 2017 19:01
@riataman I wrote it for steve...
;)
riataman
@riataman
May 06 2017 19:01
@me-no-dev awesome!
ibrahim-muneer
@ibrahim-muneer
May 06 2017 19:02
@riataman are u an experienced arduino developer ?
riataman
@riataman
May 06 2017 19:02
@me-no-dev Hey any inside info on if the internal mclk can be routed to any pin in the esp8266 :) ?
for i2s
ibrahim-muneer
@ibrahim-muneer
May 06 2017 19:03
???
riataman
@riataman
May 06 2017 19:03
@ibrahim-muneer: I'd be offended if someone called me that ;)
I guess I know a few tricks
do you have a quetion?
ibrahim-muneer
@ibrahim-muneer
May 06 2017 19:04
@riataman lol, me too.... well for my finals I've built a maze solving robot.
but I needed some help
riataman
@riataman
May 06 2017 19:05
well if you have an specifict question you can ask it here and if I don't know the answer someone else might
ibrahim-muneer
@ibrahim-muneer
May 06 2017 19:07
Yeah I wanted to know about arrays and reference variables
riataman
@riataman
May 06 2017 19:10
well, if you don't have something very specific to ask I guess you can read a book or something to learn more about that?
there's no much arduino/esp8266 special about them
Steve Nelson
@zenmanenergy
May 06 2017 19:47
@ibrahim-muneer i just sent you a one on one conversation. I'll help you, if I can.
Me No Dev
@me-no-dev
May 06 2017 20:03
@riataman there is no actuall mclk pin I think, but CLKOUT is used instead and those are not matrixable functions
riataman
@riataman
May 06 2017 20:04
yeah, I ended up using CLKOUT, but as far as I know that's always 26Mhz
i used that out to drive a sgtl5000 and let it generate its own internal clocks based on that.
so the esp8266 had to be in slave mode
Me No Dev
@me-no-dev
May 06 2017 20:04
that s probably your best option
riataman
@riataman
May 06 2017 20:05
but then I keep running out of pins, since the sgtl5000 needs i2c to setup all of that
3 more for i2s and then 4 for softwarespi
Me No Dev
@me-no-dev
May 06 2017 20:05
that's why you have ESP32 :)
riataman
@riataman
May 06 2017 20:06
yeah, I'm started to look at that
starting
the availability story is still not very clear to me
can I go and order 1,000 of those now?
Me No Dev
@me-no-dev
May 06 2017 20:07
availabiliti of chips?
riataman
@riataman
May 06 2017 20:07
yeah
Me No Dev
@me-no-dev
May 06 2017 20:07
you can from Espressif :)
1000 are not that many
riataman
@riataman
May 06 2017 20:08
yeah, but I was under the impression that you couldn't get them
Me No Dev
@me-no-dev
May 06 2017 20:08
a few months back yes, but now they are available
riataman
@riataman
May 06 2017 20:09
cool, that wasn't really clear to me
since I still go to adafruit and can't order more than 1
Me No Dev
@me-no-dev
May 06 2017 20:09
adafruit just started printing the new feathers too
like today
riataman
@riataman
May 06 2017 20:10
cool, I'll relay that info to my customer, so see if he is willing so switch.
he has been using teensy for audio grabbing/processing/storing plus an esp8266 for sending it over the network.
and would like to consolitate everything in a single IC
Me No Dev
@me-no-dev
May 06 2017 20:11
esp32 can do all that and BT too
riataman
@riataman
May 06 2017 20:12
yeah, the BT was interesting too
we kind of got everything working with the esp8266, but ran out of pins
I kind of read that the esp32 were trickling very slowly so I wasn't ready to recommend the esp32
was fearing the same story as with the raspberry pi zero. years after the release you still can't go and order a batch of 10
James
@WanaGo
May 06 2017 21:17
Hi. Noob here to pull requests. If I want to make a change, submit a pull request, it gets approved and added, how long does it normally take before it appears in the main repo so when someone downloads from stable JSON the changes I made will be downloaded also? I dont quite understand the process of how this works. Thanks
James
@WanaGo
May 06 2017 21:22
Because it looks like the stable JSON is from mid 2016?
riataman
@riataman
May 06 2017 21:23
yes
I don't think there's a schedule
James
@WanaGo
May 06 2017 21:25
So the changes people have made since 2016.... how does someone download the repo to get those on their pc to use in Arduino IDE? Is there a different JSON to use?
James
@WanaGo
May 06 2017 21:25
I see stable and staging... but staging doesnt seem that late either...
riataman
@riataman
May 06 2017 21:25
check the section "Using git version"
James
@WanaGo
May 06 2017 21:25
Ah ok. Ta will have a read
Hmm so its not json based. Its manual...?
riataman
@riataman
May 06 2017 21:26
yes
James
@WanaGo
May 06 2017 21:27
I dont fully get why this is... why so long since the json has been updated? Its nearly a year
riataman
@riataman
May 06 2017 21:27
I'm guessing the people working on it have focused a bit more in the esp32
is there a feature from git that you need?
or a fix?
James
@WanaGo
May 06 2017 21:29
Wanting to add a board to the listing thats all
riataman
@riataman
May 06 2017 21:29
well you'd have to sumit the pull request and wait
OR
you can do your own package
and point people to that
James
@WanaGo
May 06 2017 21:30
Yeah. Hence why i was curious how long the wait is. Mid 2016 seems odd for the last one
Alot happens in a year
riataman
@riataman
May 06 2017 21:30
well
a lot includes the esp32 being released :)
James
@WanaGo
May 06 2017 21:30
Sure. I understand
riataman
@riataman
May 06 2017 21:31
I guess the latest 2.3.0 is quite stable
no there's no really a pressing need for a new release
James
@WanaGo
May 06 2017 21:31
Esp8266 updates being held up due to esp32 though
riataman
@riataman
May 06 2017 21:31
well
as I say, there's nothing critical in there, current release works quite well
for most people
James
@WanaGo
May 06 2017 21:31
Sure
riataman
@riataman
May 06 2017 21:32
I'd be nice if someone would do a nightly build that could be installed via the arduino board manager
I'd subscribe to that
James
@WanaGo
May 06 2017 21:32
But if someone designs a new board then getting it out there in a public friendly json package...
Yeah exactly
riataman
@riataman
May 06 2017 21:32
well
is there that much new with your board that the generic one doesn't cover?
James
@WanaGo
May 06 2017 21:34
Nope. Just having the item selectable in the list for customers would have been nice
So if we clone this repo, make change, do pull request, and in time being edit json too and point customers to our own repo... so they use that and wait for this main one to be updated
riataman
@riataman
May 06 2017 21:39
yeah I guess that could work.
James
@WanaGo
May 06 2017 21:39
I need to figure out how the json works. I guess i need to zip the whole lot so the json downloads it. Hmm
riataman
@riataman
May 06 2017 21:39
don't take my word for it, I'm no associated with the people mantaining this :)
James
@WanaGo
May 06 2017 21:41
Need to make the equivalent of esp8266-2.3.0.zip i guess. Hmm
There must be a way. This just seems backwards 😑
riataman
@riataman
May 06 2017 21:41
The arduino ide is pretty backwards
there should be a way that you could just ship your board and be an easy install
you can just unzip esp8266-2.3.0, modify the json, the boards.txt and put that into your own server
that would be the easiest way
James
@WanaGo
May 06 2017 21:43
Yeah i guess. Seems backwards to have to do this though. Assumed doing a pull request and ut being accepted would mean its then ready to go.
riataman
@riataman
May 06 2017 21:44
such is life :)
Iain
@IainIsCreative
May 06 2017 22:02
Hey folks — I'm having an issue getting an ESP8266 module working with JavaScript — can someone be able to help me with this?
Board is ESP8266 Thing from Sparkfun and uses StandardFirmataWifi with Wifi Credentials, but when I try to use Firmata node just hangs there.
I'll give you all the code if you need to see it