These are chat archives for esp8266/Arduino

22nd
Aug 2016
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:00
quick question, via under an SMD pad is okay, right?
Comino
@cominous_twitter
Aug 22 2016 00:01
dont :D
via suck away heat and lead to tombstones
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:02
hmm, what are tombstones?
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:04
oh wow, how does that happen?
Comino
@cominous_twitter
Aug 22 2016 00:04
One side heats up much quicker than the other by e.g. by beeing connected to a huge ground plate
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:05
ah, i see
but if the via is just connected to a track?
Comino
@cominous_twitter
Aug 22 2016 00:05
Is your layout too dense to put it next to the pad?
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:06
no, just wondering at this point (i've already moved it next to the pad)
Comino
@cominous_twitter
Aug 22 2016 00:06
prob its not a big deal and would still work if you do it by hand
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:07
i see, thanks
@cominous_twitter i'm afraid i can't help you with your ARP question :/
Comino
@cominous_twitter
Aug 22 2016 00:08
no prob :D hopefully someone who know will see it :D
Mehrdad K
@mkeyno
Aug 22 2016 00:09
@cominous_twitter have you try the wifievent handler
its context has the the node information which is concreted to
also Serial.setDebugOutput(true) print Mac address of connected client
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:13
has anyone here used altium?
Comino
@cominous_twitter
Aug 22 2016 00:13
@mkeyno : I need it in STA mode, does it work there, too?
@skorokithakis : yep, its a the greatest piece of layouter I lay my hands on
but insanely expensive
Mehrdad K
@mkeyno
Aug 22 2016 00:14
as soon as get any client in any mode context has the Mac Address
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:14
do you think it's worth using over KiCAD for a hobbyist?
Comino
@cominous_twitter
Aug 22 2016 00:15
The cheaptest licence is a couple of tousands
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:16
it's okay, i already have access to a copy, i was wondering because it's a hassle to boot into windows plus i like using OSS programs
Comino
@cominous_twitter
Aug 22 2016 00:18
I would stick to kicad or eagle for smaller projects.. but just my opinion
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:19
ah, interesting, why is that?
Comino
@cominous_twitter
Aug 22 2016 00:21
Altium is like a lasercalibrated, machine learning enabled production machine.
Eagle is a screwdriver.. it does what its supposed to do and nothing more :D
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:22
haha, i see
Comino
@cominous_twitter
Aug 22 2016 00:22
@mkeyno : Do you know whick event is the relevant one?
Stavros Korokithakis
@skorokithakis
Aug 22 2016 00:22
probably overkill for simple projects then, thanks
Comino
@cominous_twitter
Aug 22 2016 00:22
"onStationModeConnected" ?
Ok all the others would make no sense :D
Stavros Korokithakis
@skorokithakis
Aug 22 2016 01:12
okay, i added an external power supply and the serial connection still drops. that's because of RF noise, isn't it?
Stavros Korokithakis
@skorokithakis
Aug 22 2016 01:35
@gmag11 did you ever try to connect the headphones or the mic?
i get dreadful noise if i connect earphone left/right and ground, but speaker works fine
Stavros Korokithakis
@skorokithakis
Aug 22 2016 02:15
does anybody know what these capacitors are for? https://i.imgur.com/GzaiY7N.png
the schematic also appears to have some solenoids
Stavros Korokithakis
@skorokithakis
Aug 22 2016 02:20
my design is missing a bunch of stuff :(
Aaron N.
@porkyneal
Aug 22 2016 07:44
@skorokithakis take a look at easyeda.com, I have successfully developed and made a few boards with that site. I enjoy it a lot. Probably missing a few features but I found Eagle, kiCad and others incredibly frustrating to learn.
Stavros Korokithakis
@skorokithakis
Aug 22 2016 08:43
@porkyneal ah, I will, thanks
so it became a brilliant arduino such as ESP
Holger Lembke
@holgerlembke
Aug 22 2016 10:11
so /me is working on my flash problems again and trying to understand more about it.
ram must be aligned?
Mehrdad K
@mkeyno
Aug 22 2016 11:05
@xbary I believe true success of ESP8266 in not due to it's hardware feature because there is variety of wireless module in the market , in fact the whole success is due to what Ivan and other guys did to that chip ,to make easy programming like the simple Arduino
Stavros Korokithakis
@skorokithakis
Aug 22 2016 11:11
i agree with @mkeyno, using the ESP as a wifi module for something like the Arduino is a waste of a chip
Germán Martín
@gmag11
Aug 22 2016 11:11
I agree @mkeyno . All that has been achieved with this little thing would have been so difficult without all people that is around it. There are some other devices, like Arduino MKR1000. But they are not as supported as ESP is.
Martin Ayotte
@martinayotte
Aug 22 2016 12:07
@skorokithakis , for SMD LED try it out to see the brightness, today's LEDs don't need such 20mA, only few ones. (Because I have some white LEDs that doesn't take much current, and are glowing very bright at 5V with a 2K2 resistors)
Stavros Korokithakis
@skorokithakis
Aug 22 2016 12:08
@martinayotte will do, i'll try a few different resistors and see
i also need to test direction, i don't think the SMD led has any markings on it to indicate direction?
Martin Ayotte
@martinayotte
Aug 22 2016 12:10
@cominous_twitter , the find_entry() in lwip you are looking at is declared as "static", that is why you don't find it, it is local to that specific etharp.c. To make it available, you would need to remove the static and recompile the whole liblwip_gcc.ca.
@skorokithakis , usually, there a small triangle underneath. If not, no worries, try both direction, one will glow and the other won't.
Stavros Korokithakis
@skorokithakis
Aug 22 2016 12:11
@martinayotte sounds good, thanks
Angus Gratton
@projectgus
Aug 22 2016 12:31
3
oops!
Stavros Korokithakis
@skorokithakis
Aug 22 2016 12:36
@projectgus 4
Martin Ayotte
@martinayotte
Aug 22 2016 12:48
@igrr , any change that this PR be merged quickly ? esp8266/Arduino#2398
Ivan Grokhotkov
@igrr
Aug 22 2016 13:01
@martinayotte this changes API of the library, are you sure noone is passing char * into these methods?
Martin Ayotte
@martinayotte
Aug 22 2016 13:07
@Igrr, look at some of those threads such http://www.esp8266.com/viewtopic.php?f=32&t=10755&start=16 , simply calling SD.exists() with a "const char *" is getting into recursion and then WDT. Also if we look at all other method such SD.open() they received a "const char *" as argument, so why the exist()/remove()/rmdir()/mkdir() don't ?
Ivan Grokhotkov
@igrr
Aug 22 2016 13:10
@martinayotte 1) because of a bug in the way String overload is implemented 2) because the original author of the SD library decided that way.
OTOH now that I see similar change in arduino/Arduino@e3fae38, i'm happy to merge this.
Martin Ayotte
@martinayotte
Aug 22 2016 13:11
Oh ! interesting that the Author maybe found the same recursion issue and decide to fix it... :-)
Martin Ayotte
@martinayotte
Aug 22 2016 13:27
@igrr , it seems that there other differences between this SD and the one in ESP, we don't have yet the callback_openPath() method. Maybe a fresh merge would be ideal.
Sorry, I'm wrong, I missed it.
Holger Lembke
@holgerlembke
Aug 22 2016 15:03
where to get the flash sector size from? EEPROM uses SPI_FLASH_SEC_SIZE, flash_utils declares FLASH_SECTOR_SIZE,...
and where is spi_flash.h that is used in eeprom.c?
Comino
@cominous_twitter
Aug 22 2016 15:27
Anyone working with latest git version + platformio ?
Martin Ayotte
@martinayotte
Aug 22 2016 15:29
FLASH_SECTOR_SIZE is defined in cores/esp8266/flash_utils.h, while the SPI_FLASH_SEC_SIZE is defined in tools/sdk/include/spi_flash.h
Stavros Korokithakis
@skorokithakis
Aug 22 2016 15:29
@cominous_twitter i tried it the other day for a bit
does anyone know if there's an SMD component that's an inductor and capacitors, for integrated highpass/lowpass filtering of audio?
Comino
@cominous_twitter
Aug 22 2016 15:37
@skorokithakis : Did it work? I facing error messages on compile - most prob. due to changes in the plattform.txt.
Stavros Korokithakis
@skorokithakis
Aug 22 2016 15:37
it did not, it's because the flags changed in platform.txt, yes
i talked to ivan and he asked me to open an issue for it
which i did, but no activity yet
Comino
@cominous_twitter
Aug 22 2016 15:40
There are integrated ones for ~MHz. I never saw a passive one for audio frequencies. Probably because lower frequency = bigger capacitor/inductor.
Stavros Korokithakis
@skorokithakis
Aug 22 2016 16:02
@cominous_twitter ah, thank you!
Holger Lembke
@holgerlembke
Aug 22 2016 16:10
@martinayotte Thanks. Is there a deeper reason for having two declarations for the same thing?
Martin Ayotte
@martinayotte
Aug 22 2016 16:14
That's a good question for @igrr ... Since they both have the same value, maybe the one from SDK were not present in the old days ...
Mohamed Chedli Ben Yaghlane
@medchedli
Aug 22 2016 16:19
Hi,
Is it possible to use websocket protocol on ESP8266 Arduino core (Generic esp8266 module) ?
I couldn't find enough documentation about that
Holger Lembke
@holgerlembke
Aug 22 2016 16:26
@martinayotte I file an issue to clean it up.
Comino
@cominous_twitter
Aug 22 2016 16:27
Mohamed Chedli Ben Yaghlane
@medchedli
Aug 22 2016 16:30
@cominous_twitter Thanks
Holger Lembke
@holgerlembke
Aug 22 2016 16:37
ok, i think I need some basic help with pointer and int math....
void setup() {
  Serial.begin(115200);
  delay(4000);

  uint32_t *bufferptr = (uint32_t*)malloc(4000);

  Serial.print("bufferptr: 0x");
  Serial.print((int)bufferptr,HEX);
  Serial.println();

  int offset = 0x400;

  Serial.print("Offset: 0x");
  Serial.print(offset,HEX);
  Serial.println();

  bufferptr += offset;

  Serial.print("bufferptr+offset: 0x");
  Serial.print((int)bufferptr,HEX);
  Serial.println();

  /*
  bufferptr: 0x3FFF1064
  Offset: 0x400
  bufferptr+offset: 0x3FFF2064
  */

  while (1);
}

void loop() {}
how do I increment this pointer?
because 0x1064+0x400 is not 0x2064
holgerlembke @holgerlembke feels stüpit
Martin Ayotte
@martinayotte
Aug 22 2016 16:42
@holgerlembke , don't forget that your pointer is uint32_t *, not char *, so each increment is 4 bytes
Holger Lembke
@holgerlembke
Aug 22 2016 16:43
soooo how to get the math right?
or better: increment by one?
Martin Ayotte
@martinayotte
Aug 22 2016 16:44
You can keep it as a plain address in a unsigned int or char *, and cast it to uint32_t * at the last minute
Holger Lembke
@holgerlembke
Aug 22 2016 16:57
I decided to give this beauty a try:
  bufferptr = reinterpret_cast<uint32_t *>(reinterpret_cast<char*>(bufferptr) + offset);
Martin Ayotte
@martinayotte
Aug 22 2016 16:59
That is another way to workaround, but less readable than casting to uint32_t only where it is required.
Germán Martín
@gmag11
Aug 22 2016 17:30
@skorokithakis I've been playing a bit with A6 and gsmlib library. It seems promising. But I've been not able to change A6 serial baud rate to anything but 115200. It accepts the command but does not effectively change it.
A6 command set seems to be a subset of SIM900 commands. Some of them are not implemented, like server command.
I'm starting to think that SIM900 has better features/price rate. I guess it has built in GPS.
There are modules on Aliexpress for 7€ and Amazon for 16€
Anyway I will go on trying to get something interesting from A6
Stavros Korokithakis
@skorokithakis
Aug 22 2016 17:50
@gmag11 how are you trying to do it? it should always change the rate to what you specify
use gsm.blockUntilReady(9600);
@gmag11 oh sorry, i thought you were using my lib
Mikael Falkvidd
@mfalkvidd
Aug 22 2016 18:15
Has "update check" been discussed (for http updates)? I'd like a way to check if an update is available, so the user can decide whether they want to update or not.
I've searched for issues and pull requests on github but haven't found any discussions on that topic.
Germán Martín
@gmag11
Aug 22 2016 18:26
@skorokithakis I've tried it with terminal application using the corresponding AT command. I don't remember which one right now, it was AT+*=9600. It answers OK but it keeps connected to 115k, if I force terminal to 9600 I get rubbish from serial.
I've forced the library to 115200 and it seems to work but it crashes after some commands. I have to investigate more.
If it works fine at 115200 I don't mind to keep it so
Stavros Korokithakis
@skorokithakis
Aug 22 2016 18:32
Look at hoe my library does it, it definitely works
Germán Martín
@gmag11
Aug 22 2016 18:43
I'll do
probonopd
@probonopd
Aug 22 2016 19:23
Hi, anyone interested in an Arduino IDE + esp8266 + SPIFFS uploader AppImage (single file that runs on close to all Linux distributions)? Check https://plus.google.com/u/0/105493415534008524873/posts/Y7igYvsFgZM
xbary
@xbary
Aug 22 2016 20:24
@mkeyno
exactly, of course, the price also helped here. But in those modules based on the RTL processor Cortex M3, which is associated with the facilities during the memory operation, indicators and so on.
Comino
@cominous_twitter
Aug 22 2016 20:46
Sorry to ask this again, but Im still lost:
I want to resolve a ip's MAC address. Is there any specific usable implementation for that? (I tried a lot but I keep it short here :D)
Mehrdad K
@mkeyno
Aug 22 2016 20:54
@xbary also I believe when double core extensa come to market and all wifi transaction cared by designated core , it gets more powerful to connect with other devices , this is privilege architecture rather than any single core wifi module
bbx10
@bbx10
Aug 22 2016 22:23
@igrr @me-no-dev @martinayotte Interesting performance chart webserver vs. asyncwebserver and 2.3.0 vs. 2.4.0-pre (git version) http://www.esp8266.com/viewtopic.php?f=32&t=11289&p=53624#p53619
Me No Dev
@me-no-dev
Aug 22 2016 23:37
@bbx10 my results differ
I get from 1 048 576 311KB/s in 3,3s for multi downloads (lowest) to 1 048 576 909KB/s in 1,1s for single downloads (highest)