These are chat archives for esp8266/Arduino

13th
Aug 2016
Akash Ashok
@thehellmaker
Aug 13 2016 02:57
Hi Guys,
As a simple fix for esp8266/Arduino#2330 for now I am plannin to do a WiFi.reconnect() when i recieve wifi evt: 6 which is a disconnected.
auto handler2 = WiFi.onStationModeDisconnected([&](const WiFiEventStationModeDisconnected& evt){

});
Is this the right way to do it. on this handler I'll just do a WiFiReconnect to ensure that things go Smooth
Akash Ashok
@thehellmaker
Aug 13 2016 04:16
@me-no-dev bcn_timout is happening even when the module is responding. Seems like thats not the issue.
Clemens Kirchgatterer
@everslick
Aug 13 2016 08:22
@thehellmaker there is also WiFi.setAutoReconnect(true);
Clemens Kirchgatterer
@everslick
Aug 13 2016 08:44
This message was deleted
Ivan Grokhotkov
@igrr
Aug 13 2016 09:24
@martinayotte @me-no-dev hehe :)
it will be opensourced, eventually.
for the 32, that is. for the 8266, it's probably not worth it at this point.
@thehellmaker doesn't it reconnect automatically when WiFi.setAutoReconnect(true) is set?
oh, everslick has mentioned that already
are you testing in STA mode or in AP + STA?
Akash Ashok
@thehellmaker
Aug 13 2016 09:28
@igrr I am using AP+STA. Even now it tries to reconnect. But it fails when tries to ....
so i have not explicitly called WiFi.setAutoReconnect(true)
i am will try that and let u know
Ivan Grokhotkov
@igrr
Aug 13 2016 09:29
okay, then it is probably set that way already
otherwise it would not have tried to reconnect
Akash Ashok
@thehellmaker
Aug 13 2016 09:30
but the interesting this is if u restart the module and it connects again then it starts working fine
so I am trying ot check if WiFi.reconnect() will solve this issue temporarily for now
but seems like some once the problem starts occurring it kinda dies slowly
it recieves the probes from other modules properly every second .. once it starts failing .. it reconnects back starts recieving one or 2 probes before which it disconnects with different error messages like "bcn_timout, "max connections" or even addr already associed" and finally just stops reconnecting and module stoprs responding
Akash Ashok
@thehellmaker
Aug 13 2016 09:35
https://drive.google.com/file/d/0B8DXcb9GfNuARFZGdy1USGNPbFk/view this file has the complete log. and if u grep for wifi evt: 6 u'll see all different sorts of issues that come up
multiple people have faced this with esp8266. @igrr you mentioned its not worth investing in esp8266 .... Do you mean that because you will stop supporting esp8266 soon or because of bandwidth issues. We are planning to us esp 12 f modules in production systems for our company. Is there a problem with that?
Ivan Grokhotkov
@igrr
Aug 13 2016 09:40
no, esp8266 will still be supported.
but because of some structural issues in the esp8266 sdk, it's difficult to open source it gradually.
this means that to open source all the esp8266 code it would take considerable part of team working for a long time... so yes, mostly bandwidth issues.
Akash Ashok
@thehellmaker
Aug 13 2016 09:42
ok I understand. glad to know the chip will still be supported..
Ivan Grokhotkov
@igrr
Aug 13 2016 09:42
but the sdk as it is will still be supported. regarding specific SLAs you should talk to sales people. i can't promise anything specific.
i'll forward this to our testing guys to see if they can reproduce. did i get this right that this happens after an esp is on the network for 36 hours?
Akash Ashok
@thehellmaker
Aug 13 2016 09:45
yes thats right i have attached other links where people have faced similar issues before
Ivan Grokhotkov
@igrr
Aug 13 2016 09:45
i would assume this has to depend on traffic patterns and such, because i do have a bunch of esps on my home network running for weeks and they are still accessible (mDNS, OTA).
okay
i see
Akash Ashok
@thehellmaker
Aug 13 2016 09:45
so what i do is
i have 2 esp8266 modules which are connected in my home ....
and to discover them from my android device i dnt use mdns but i ping all ipaddresses on the network
and once i discover i directly use http client ot connect to espasyncweb server
i started seeing that after a day or so esp8266 stopped responding on the ip it was connected to
after reading the blogs it corresponded the root cause where ESP8266 stopped responding to ARP broadcasts (wireshark showed that broadcast arp requests were sent but esp didn't respond)
then i started logging and saw that wifi connection itself had these errors mentioned
Akash Ashok
@thehellmaker
Aug 13 2016 09:53
and there is a similar issue opened early last year as well
esp8266/Arduino#1137
@igrr Please let me know if you need any more information. I would be glad to run any tests and give u more testing information and logs if it would help your team.
Akash Ashok
@thehellmaker
Aug 13 2016 10:00
but one interesting thing is .... if the client has ARP it responds to the http call
so the module is technically not disconnected
and it event sends gratuitous arp out to other devices
Stavros Korokithakis
@skorokithakis
Aug 13 2016 10:19
what's the best way of printing debugging output to serial when debugging a library, but disabling that in production? a custom println function?
Clemens Kirchgatterer
@everslick
Aug 13 2016 10:54
@skorokithakis i went for a custom debug lib. all functions have a macro wrapper, so in release version the debug prints are completely removed from the code.
can be as simple as #define log(A) Serial.print(A) or get really sophisticated (like i did it)
Stavros Korokithakis
@skorokithakis
Aug 13 2016 10:56
@everslick do you remember what that lib is? Won't that mean that whoever uses my library will need to download that as well, even if they don't use it?
@everslick the define is a good solution, but the problem is what to define when I DON'T want it to print
Although I guess log can be an empty function or something
Clemens Kirchgatterer
@everslick
Aug 13 2016 10:57
#define log(A)
exactly
the lib i'm talking about is my own. it is two files, one .h one .cpp
might be overkill for you
has support for terminal colors, serial, udp and command line backchannel
means you can send commands to your esp device over serial or udp to trigger some action
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:00
Ah, yes, I just want to print some things for debugging, nothing that fancy
Clemens Kirchgatterer
@everslick
Aug 13 2016 11:01
i started with your aproach as well... ;-)
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:03
i have bigger problems, i don't know any C++ and i'm trying to write a lib :P
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:09
how can i set a SoftwareSerial instance as a private class variable? i need to declare it and initialize it in a function, but i'm confused as to the syntax

I have:

private: 
SoftwareSerial A6;

and in the constructor:
A6(1, 2, true, 256);

but i have a feeling that that's wrong
Shelby Merrick
@forkineye
Aug 13 2016 11:20
I managed to brick one of my modules messing around with custom update code. What do I need to flash outside of the standard Arduino stuff to bring it back to life?
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:21
@forkineye how did you brick it? i've never seen anything that just flashing with regular firmware wouldn't fix
Shelby Merrick
@forkineye
Aug 13 2016 11:23
I was working on a firmware update routine that combined the sketch and spiffs into one package. Endianess bit me for sizes in my package header and it went writing garbage way out into lala land
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:26
@forkineye hmm, putting it into flash mode and flashing a new sketch isn't working?
Shelby Merrick
@forkineye
Aug 13 2016 11:26
nope
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:27
what does it do if you pull GPIO0 low and reset?
flashing doesn't work even then?
Shelby Merrick
@forkineye
Aug 13 2016 11:28
Nope. It flashes just fine, but comes spits this out:
system param error
followed by a huge hex dump, then resets
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:31
ah, ouch... i can't help then, sorry :/
Shelby Merrick
@forkineye
Aug 13 2016 11:35
ugh, trying to use esptool -ce to erase and it segfaults :/
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:35
does anyone know why i would be getting this error when my library has nothing to do with SoftwareSerial, other than the fact that it uses it?
.pioenvs/esp8266/A6lib/A6lib.cpp: In constructor 'A6::A6(int, int)':
.pioenvs/esp8266/A6lib/A6lib.cpp:16:39: error: no matching function for call to 'SoftwareSerial::SoftwareSerial()'
A6::A6(int transmitPin, int receivePin) {
^
.pioenvs/esp8266/A6lib/A6lib.cpp:16:39: note: candidates are:
In file included from .pioenvs/esp8266/A6lib/A6lib.cpp:2:0:
.pioenvs/esp8266/SoftwareSerial/SoftwareSerial.h:38:4: note: SoftwareSerial::SoftwareSerial(int, int, bool, unsigned int)
SoftwareSerial(int receivePin, int transmitPin, bool inverse_logic = false, unsigned int buffSize = 64);
^
.pioenvs/esp8266/SoftwareSerial/SoftwareSerial.h:38:4: note:   candidate expects 4 arguments, 0 provided
.pioenvs/esp8266/SoftwareSerial/SoftwareSerial.h:35:7: note: constexpr SoftwareSerial::SoftwareSerial(const SoftwareSerial&)
class SoftwareSerial : public Stream
^
.pioenvs/esp8266/SoftwareSerial/SoftwareSerial.h:35:7: note:   candidate expects 1 argument, 0 provided
.pioenvs/esp8266/A6lib/A6lib.cpp:17:47: error: no match for call to '(SoftwareSerial) (int&, int&, bool, int)'
A6conn(receivePin, transmitPin, false, 256);
^
scons: *** [.pioenvs/esp8266/A6lib/A6lib.o] Error 1
@forkineye wow, that sounds hardcore
Ivan Grokhotkov
@igrr
Aug 13 2016 11:38
@forkineye Windows?
Shelby Merrick
@forkineye
Aug 13 2016 11:39
@igrr yeah
Ivan Grokhotkov
@igrr
Aug 13 2016 11:39
which version?
i heard it does that, but i couldn't reproduce on win7 x64
Shelby Merrick
@forkineye
Aug 13 2016 11:39
0.4.9
Ivan Grokhotkov
@igrr
Aug 13 2016 11:39
and it seems to run fine on linux and osx
i mean which windows version
Shelby Merrick
@forkineye
Aug 13 2016 11:39
oh, windows 10 x64
it works fine for programming, only seen it segfault when erasing
Ivan Grokhotkov
@igrr
Aug 13 2016 11:40
oh, okay. will see if someone in the office has that one.
yeah, i know it's only on erase...
Shelby Merrick
@forkineye
Aug 13 2016 11:41
wish windows would do core dumps :(
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:41
@igrr do you have any idea why the compiler would think that the constructor to A6 is a call to SoftwareSerial?
Ivan Grokhotkov
@igrr
Aug 13 2016 11:41
can you please try erase again with -vvv argument added
@skorokithakis i imagine that SoftwareSerial has non-trivial constructor and you aren't providing arguments in your initializer list
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:42
@igrr but i'm not constructing SoftwareSerial... hmm
Ivan Grokhotkov
@igrr
Aug 13 2016 11:42
i.e. MyClass::MyClass() : A6(pinRx, pinTx) { }
Shelby Merrick
@forkineye
Aug 13 2016 11:42
well, this is random:
sporadic@alpha MINGW64 ~/Documents/Netbeans/ESPSFlashTool/data/bin/win (master)
$ ./esptool.exe -vvv -cp COM3 -cd none -ce
Segmentation fault

sporadic@alpha MINGW64 ~/Documents/Netbeans/ESPSFlashTool/data/bin/win (master)
$ ./esptool.exe -vvv -cp COM3 -cd none -ce
esptool v0.4.9 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
        setting port from COM1 to COM3
        setting board to none
        espcomm_erase_flash
        setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
        flush start
        setting serial port timeouts to 1 ms
                flushed 0 bytes
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
                espcomm_send_command: didn't receive command response
Ivan Grokhotkov
@igrr
Aug 13 2016 11:43
@skorokithakis you have it as a member, so you are
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:43
oh
line 17
Ivan Grokhotkov
@igrr
Aug 13 2016 11:43
yeah, it's a member
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:43
how can i just declare that variable as a private member but not initialize it yet? i don't know the params at that point, i have to wait for .begin()
Ivan Grokhotkov
@igrr
Aug 13 2016 11:43
show me how you implement A6(int transmitPin, int receivePin);
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:44
Ivan Grokhotkov
@igrr
Aug 13 2016 11:44
you can't, because SoftwareSerial expects two arguments in its constructor
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:44
hm :(
Ivan Grokhotkov
@igrr
Aug 13 2016 11:44
you can change it to a pointer though
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:44
that's unfortunate, i need it as a private member but i don't know the parameters at that point
oh
and then i have to free it in the destructor, right?
Ivan Grokhotkov
@igrr
Aug 13 2016 11:45
and then do pA6 = new SoftwareSerial(pinTx, pinRx);
and delete pA6 in destructor
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:45
ahh, fantastic, thank you very much!
Ivan Grokhotkov
@igrr
Aug 13 2016 11:45
or make it a smart pointer so that you don't have to worry about deletion
#include <memory> in header file
std::unique_ptr<SoftwareSerial> mA6; in class
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:46
@igrr is that arduino-compatible? i would like to keep compatibility if possible
Ivan Grokhotkov
@igrr
Aug 13 2016 11:47
this should work on ARM-based stuff, but AVR-gcc doesn't seem to have libstdc++, so probably no
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:47
ah, okay
just so i know, how do i initialize the smart pointer?
after i've added it as a member
just mA6(tx, rx)?
Ivan Grokhotkov
@igrr
Aug 13 2016 11:47
mA6.reset(new SoftwareSerial(tx, rx));
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:47
ah, okay, so there's a whole interface there
i see, thank you
and then mA6->begin()?
Ivan Grokhotkov
@igrr
Aug 13 2016 11:48
and then just mA6->begin(9600);
so it behaves like a normal pointer
Stavros Korokithakis
@skorokithakis
Aug 13 2016 11:48
right, so it's just a pointer apart from the allocation stuff
right
thanks!
Ivan Grokhotkov
@igrr
Aug 13 2016 11:49
@forkineye wow, so it crashes even before printing anything...
Shelby Merrick
@forkineye
Aug 13 2016 11:49
yeah, lol
woot, back in business!!! was able to use the Espressif Download Tool to generate a new rf_init.bin and flash it to 0xFC000, then re-flashed my sketch
@igrr you know of any way to generate core dumps on windows? i'm looking at something called "userdump" from microsoft now
Ivan Grokhotkov
@igrr
Aug 13 2016 11:54
ideally you would need a binary with some debug info for that to be useful
Shelby Merrick
@forkineye
Aug 13 2016 11:55
if you have a none stripped one, i can play with it
Ivan Grokhotkov
@igrr
Aug 13 2016 11:55
sprinkling some printfs here and there might be a faster option.
no, i dont.
these binaries are built on appveyor, i'll get a windows vm on monday to test
Shelby Merrick
@forkineye
Aug 13 2016 11:56
ah, okies. i don't have a gcc environment setup in windows or I'd dig into it further
Stavros Korokithakis
@skorokithakis
Aug 13 2016 12:05
I'm getting this. is there any way to tell what's causing it?:
Soft WDT reset

ctx: cont 
sp: 3ffef140 end: 3ffef450 offset: 01b0

>>>stack>>>
3ffef2f0:  3ffef540 0000022e 0000022e 4010020c  
3ffef300:  3ffef380 3ffef38c 3ffef330 40100688
Martin Ayotte
@martinayotte
Aug 13 2016 12:21
You need to use ExceptionDecoder to get more meanful stacktrace
Stavros Korokithakis
@skorokithakis
Aug 13 2016 12:21
oh, how can i use that?
hmm, i don't use arduino ide, sadly :/
Martin Ayotte
@martinayotte
Aug 13 2016 12:28
Yes, this is the tool. For short term, try to compile in Arduino. For longuer term, maybe platformio would work if Makefile take care of providing *.elf, but I don't know how ExceptionDecoder will figure out the compile path.
Stavros Korokithakis
@skorokithakis
Aug 13 2016 12:29
hmm, yes, platformio does provide the elf, but yes, i will see if i can move the elf to the ExceptionDecoder's path
@me-no-dev any plans to make ExceptionDecoder work in the command-line?
Martin Ayotte
@martinayotte
Aug 13 2016 12:34
In the mean time, you can create a dummy project in Arduino, and copy all file there, I think ExceptionDecoder will find them
Stavros Korokithakis
@skorokithakis
Aug 13 2016 12:35
ah, that works, thanks!
Stavros Korokithakis
@skorokithakis
Aug 13 2016 12:47
ugh, it's crashing because it's in a tight loop that doesn't yield, it seems :/
so the watchdog is freaking out
what's the best way to yield? delay()?
yield()? optimistic_yield()?
Clemens Kirchgatterer
@everslick
Aug 13 2016 12:50
yield()
command line exception decoder: rm -f stack.txt && vi stack.txt && awk '/>>>stack>>>/{flag=1;next}/<<<stack<<</{flag=0}flag' stack.txt | awk -e '{ OFS="\n"; $1=""; print }' | <path_to_tools_bin>/xtensa-lx106-elf-addr2line -aipfC -e <path_to_elf> | grep -v "?? ??:0" ; rm -f stack.txt
Stavros Korokithakis
@skorokithakis
Aug 13 2016 12:53
ah, that's great, if a bit scary
let me try that
Clemens Kirchgatterer
@everslick
Aug 13 2016 12:54
opens vi, there you paste your stack backtrace, then you press [ESC]:x[ENTER]
best to put that in the Makefile or in a script
Stavros Korokithakis
@skorokithakis
Aug 13 2016 12:57
yeah, i'll make an alias
thank you!
Clemens Kirchgatterer
@everslick
Aug 13 2016 12:57
yaw
Mehrdad K
@mkeyno
Aug 13 2016 13:05
@everslick what is different between yield and optimistic_yield(some millisecond )
Clemens Kirchgatterer
@everslick
Aug 13 2016 13:19
i THINK optimistic_yield() does only yield() if it has to (was not called for some time) otherwise it does nothing.
yield() is the save bet
Stavros Korokithakis
@skorokithakis
Aug 13 2016 14:31
@gmag11 @martinayotte I made a very small A6 library, maybe you'll find it useful: https://github.com/skorokithakis/A6lib
although it doesn't do much yet
Germán Martín
@gmag11
Aug 13 2016 14:36
It's a good start. Nice!
Stavros Korokithakis
@skorokithakis
Aug 13 2016 14:36
thanks!
i'm really bad at C++, but eh, at least it runs
Mehrdad K
@mkeyno
Aug 13 2016 16:19
guys , is there any way to increase memory for text section iram1_0_seg and avoid compile error .text' will not fit in regioniram1_0_seg`
Stavros Korokithakis
@skorokithakis
Aug 13 2016 16:36
okay, this is driving me crazy

i have:

reply = "\0xff\0x00AT+IPR=9600\n\nOK"
Serial.println(reply.indexOf("OK") + reply.indexOf("IPR=") == -2, DEC)

prints -2

shouldn't it print something very positive?
Stavros Korokithakis
@skorokithakis
Aug 13 2016 16:48
why is this so fiddly :(
Stavros Korokithakis
@skorokithakis
Aug 13 2016 17:05
sometimes the SoftwareSerial connection works fine, sometimes it just prints garbage, and i don't know why... does anyone know if the A6 starts at a rate other than 115200 by default?
Germán Martín
@gmag11
Aug 13 2016 17:12
I gave up using SoftSerial because of things like that. I guess it losses interrupts if ESP is doing other tasks.
Martin Ayotte
@martinayotte
Aug 13 2016 17:14
@skorokithakis , you are not printing the indexes but the result of the '=='.
Stavros Korokithakis
@skorokithakis
Aug 13 2016 17:14
@martinayotte sorry martin, that's a wrong paste
i was doing
Serial.println(reply.indexOf("OK") + reply.indexOf("IPR="), DEC)
i started flushing the serial buffer before reading and it started working, though
i'm not sure why
@gmag11 what did you use instead?
Martin Ayotte
@martinayotte
Aug 13 2016 17:16
try to print them separately. BTW, is reply a String ?
Germán Martín
@gmag11
Aug 13 2016 17:16
Hardware Serial
Stavros Korokithakis
@skorokithakis
Aug 13 2016 17:17
@martinayotte yes
@gmag11 unfortunately hardware serial confuses the A6 because the ESP prints various things at times like boot, plus i like debugging over the serial
Germán Martín
@gmag11
Aug 13 2016 17:19
I used Serial1 for debugging
Stavros Korokithakis
@skorokithakis
Aug 13 2016 17:19
hmm
that might work
Germán Martín
@gmag11
Aug 13 2016 17:19
You need an additional TTL to serial adapter
Stavros Korokithakis
@skorokithakis
Aug 13 2016 17:20
yeah, i have an FTDI cable that should work
@gmag11 ah, it turns out that the rate is not always 115200. autodetecting it works better
Stavros Korokithakis
@skorokithakis
Aug 13 2016 17:27
how does the soft serial work? can i yield() in the reading loop? won't i miss data if i'm not read()ing while the data is sent?
hmm, i guess there's an interrupt on the rx pin and the data gets read into a buffer
Stavros Korokithakis
@skorokithakis
Aug 13 2016 17:46
Bleh, I don't know what's going on. I have half a mind to make an option to use the hardware serial as well
Stavros Korokithakis
@skorokithakis
Aug 13 2016 19:39
This message was deleted
This message was deleted
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:28
@gmag11 it turns out that autodetecting the rate works pretty reliably now
i've added dialing and SMS sending capabilities
i just need to add call detection and sms detection/retrieval for now
and it will be pretty good
i also need to figure out what components are on the breakout board exactly so i can make my own pcb
@martinayotte would you happen to know what the yellow component on here is? http://i.ebayimg.com/images/g/dZYAAOSwhOVXch1W/s-l1600.jpg
it says 477j
oh, it's a capacitor
Martin Ayotte
@martinayotte
Aug 13 2016 20:33
Yes, tantalum capacitor
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:33
thank you
i wonder whether i can remove the switching converter and output 3.3V to the A6
it looks like the module is pretty simple to put on a PCB, it requires minimal other components
does anyone know what a 12p socket is? i can't find anything relevant on google
Martin Ayotte
@martinayotte
Aug 13 2016 20:39
Do you mean you are searching for header to connect this A6 to your own PCB and you don't find 12x pins ?
They are usually comes in 40x pins and youhave to cut them to desired length by yourself ...
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:39
no, i just don't know what a 12p socket is (that's on the datasheet). is it just a 12x1 header?
Martin Ayotte
@martinayotte
Aug 13 2016 20:41
Are the header female or male on the A6 ? probably they mean by "12p socket" to designate female
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:43
ahhh
you're right, it's the output header
thank you, i didn't know whether it was some other component
wow, this really just needs a capacitor, a few resistors, an antenna and a sim
that's it
that's fantastic
@martinayotte do you know if there's any special consideration for routing the SMA connector?
Martin Ayotte
@martinayotte
Aug 13 2016 20:45
I don't have much knowledge about antenna, but usually the manufacturer provide design notes about it
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:46
ah, thanks
i'm not sure why it has a 0R resistor or what the NC resistors are
Martin Ayotte
@martinayotte
Aug 13 2016 20:47
Or you can copy the same layout as the above module.
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:47
yes, i aim to
Martin Ayotte
@martinayotte
Aug 13 2016 20:47
NC for "not connect" and 0R simply a short.
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:47
but why would they add a 0R resistor rather than just a wire, and NC rather than just nothing?
Martin Ayotte
@martinayotte
Aug 13 2016 20:49
For the NC, it is maybe SMT location to add filtering caps in case it is needed, the 0R is usually derivation in case there an on-board ceramic antenna, a bit like the ESP-07
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:49
ah, i see
that makes sense, so i can just ignore those
great
this is very simple
and my library works well so far
Martin Ayotte
@martinayotte
Aug 13 2016 20:50
Congrat !
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:51
thank you!
this is a very very good module
$2 for a gsm module, jesus
Martin Ayotte
@martinayotte
Aug 13 2016 20:54
Just curious, since I've never play with those : how much cost for the SIM for how many minutes of services.
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:56
@martinayotte depends on your country, we have a SIM here that's no fixed monthly payment but with expensive SMS/minutes
which is good if you want something remote-controlled that will rarely send messages and never make calls
it depends on your usage
it's less than 5 euros/mo for some data or some SMS, though, here
Martin Ayotte
@martinayotte
Aug 13 2016 20:56
yes, of course, but for your location in Greece
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:56
not much, though
well
for my main phone number, i pay 20 eur/mo for 2000 minutes, 2000 SMS and 3 GB
but for IoT projects, I use the no-fixed-fee card, but i think the sms is 0.20 eur each
Martin Ayotte
@martinayotte
Aug 13 2016 20:58
I may look at such modules soon ...
Did the antenna has good coverage ?
Stavros Korokithakis
@skorokithakis
Aug 13 2016 20:58
i use a small SMA antenna and it seems to have great coverage
it's hard to tell, since there's no signal indicator that i can see, but voice calls sound good
let me know if you ever need anything
Martin Ayotte
@martinayotte
Aug 13 2016 20:59
Ok, thanks !
Stavros Korokithakis
@skorokithakis
Aug 13 2016 21:00
np
Germán Martín
@gmag11
Aug 13 2016 22:30
@skorokithakis @martinayotte there are commamds to check signal quality.
Stavros Korokithakis
@skorokithakis
Aug 13 2016 22:56
@gmag11 @martinayotte in that case, i'm getting 17 RSSI, 99 BER
apparently 17 RSSI is rather good
why do so many chips have many ground connections? The A6 has ~8 GND pins, do i need to connect them all or just one?