Commit Graph

489 Commits

Author SHA1 Message Date
Sara Damiano
772f33636e Merge pull request #503 from Orange-OpenSource/fix-sequans-monarch
src/TinyGsmModem.tpp: fix registration state
2021-04-28 15:17:41 -04:00
Sara Damiano
51f4da58e5 Merge pull request #520 from I-Connect/patch-1
Added NTPServerSync() and related methods to Sim7000 implementation
2021-04-28 13:08:59 -04:00
Bascy
750108ee09 Added NTPServerSync() and related methoeds 2021-04-14 00:52:06 +02:00
Francesco Stefanni
c1d6abaff7 Supported SNI (fix by kyriazis) 2021-04-07 11:24:39 +02:00
Francesco Stefanni
7f19c69554 sim7000: added fix on read 2021-03-18 08:06:14 +01:00
Francesco Stefanni
28f7e7b298 Some improvements 2021-03-17 15:19:04 +01:00
Francesco Stefanni
f0abeef22d Supported root certificates 2021-03-17 15:17:13 +01:00
Francesco Stefanni
b8a54d37e0 Some improvements to sim7000 2021-03-17 14:27:43 +01:00
Francesco Stefanni
57895868f2 Added missing waitResponse() 2021-03-17 08:36:09 +01:00
Francesco Stefanni
57514b7c4d Supported factory reset for sim7000 2021-03-12 15:27:57 +01:00
Francesco Stefanni
7cf19beb44 A deep debug of sim7000 2021-03-12 15:26:35 +01:00
Francesco Stefanni
0be9622e9c Removed some debug print 2021-03-12 10:38:47 +01:00
Francesco Stefanni
81f583a80f SIM7000: TLS + some refinements 2021-03-12 10:11:58 +01:00
Francesco Stefanni
f20293905f SIM7000: added methods to get some connection preferences, plus the
current connection technology
2021-03-10 08:55:38 +01:00
Fabrice Fontaine
1291a4407d src/TinyGsmModem.tpp: fix registration state
As specified in the ETSI standards (e.g. ETSI TS 127 001), CREG and
CEREG responses can contain optional parameters:

+CEREG:         <n>,<stat>[,<tac>,<ci>[,<AcT>]]

For example, the Monarch GMS01Q returns the following response:

+CEREG: 2,1,"3982","00DF3B03",7

This results in TinyGSM setting state as '7' instead of 1 preventing
any connection.

Fix this by picking the next integer after the first ',' which will
always works (with or without optional parameters)

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
2021-03-05 18:59:29 +01:00
Fabrice Fontaine
eb9c1f7786 src/TinyGsmClientSequansMonarch.h: fix connection handling
There is an issue in the handling of +SQNSS answer: the
sock->sock_connected state will always be set to the state of the last
socket. This will prevent any communication.

Fix this issue by checking that muxNo is equal to mux before updating.

Signed-off-by: Fabrice Fontaine <fabrice.fontaine@orange.com>
2021-03-05 16:47:35 +01:00
Sara Damiano
b0e363c536 Merge pull request #488 from adrianca88/SIM808_bt_support
First SIM808 bluetooth support commit. Template class and basic functionality
2021-02-08 13:58:14 -05:00
Adrian Cervera Andes
54c25cce23 First SIM808 support commit. Added template base class and some basic functionality 2021-01-31 12:11:11 +01:00
Adrian Cervera Andes
a51cfda25d Added pin parameter on restart() (necessary for init() with pin) 2021-01-29 15:02:35 +01:00
moto
ba778adb74 use CEREG first for BG96
I refered TinyGsmClientSaraR4.h for this patch.
2020-12-03 10:34:29 +09:00
Markus Schmidleitner
23742b4b9c disable memory optimizations on ATmega4809 2020-11-06 15:17:34 +01:00
Sara Damiano
4cfabb14eb Version bump 2020-10-30 11:10:24 -04:00
Sara Damiano
594fd3bdf9 Removed un-needed Ethernet include 2020-10-30 10:57:30 -04:00
Sara Damiano
399bc7532f Merge pull request #438 from galizki/mc60_batch_of_fixes
FIX for issue #371: MC60 is not working with this library
2020-10-30 10:43:20 -04:00
Giulio Tranchida
6b03e0c140 passage variables by reference 2020-10-03 10:51:25 +02:00
Sara Damiano
6203ebd27c Merge pull request #389 from adrianca88/set_phone_functionality
Added setPhoneFunctionality method
2020-10-01 14:04:31 -04:00
Mikhail Galitskiy
d4afe7a744 FIX for issue #371: MC60 is not working with this library 2020-09-06 17:35:42 +03:00
Sara Damiano
ad437a5a51 Version bump
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-08-07 17:13:28 -04:00
Sara Damiano
b49c214d01 Add SSLOPT to SIM800 with preprocessor flag to use
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-08-07 16:33:57 -04:00
Sara Damiano
31205166a7 catch result of cipopen on 7600
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-08-07 16:08:19 -04:00
Sara Damiano
fc254ef157 Merge branch 'v_master' 2020-07-23 15:08:09 -04:00
Sara Damiano
e1c9c2517b Deactivate contexts on Monarch
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-07-23 15:06:22 -04:00
Sara Damiano
cd002c5adf Merge pull request #405 from lewisxhe/master
Added GNSS setMode and getMode method
2020-07-22 11:51:59 -04:00
Sara Damiano
234a20e894 Catching CMS error on debug
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-06-22 17:13:24 -04:00
lewis he
c40ca2144b Added GNSS setMode and getMode method 2020-06-05 15:12:56 +08:00
Sara Damiano
56446bc42f Static cast size in additon
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-05-05 12:26:22 -04:00
Adrian Cervera Andes
5fbd80b3b2 Fixed bad reference and added not implemented 2020-04-30 16:49:45 +02:00
Adrian Cervera Andes
868e2bedf9 Added setPhoneFunctionalityImpl function 2020-04-30 16:22:09 +02:00
Adrián Cervera Andés
61878aa9f3 Fixed problem with streamGetFloatLength and streamGetIntLength functions 2020-04-26 18:00:14 +02:00
Sara Damiano
ad42db2131 Decreased boot wait for SIM7000
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-19 15:16:33 -04:00
Sara Damiano
8c5850ef7b Accept "RDY" or "SMS Ready" from SIM7000
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-15 23:49:57 -04:00
Sara Damiano
fb3f8583a3 Some more null pointer checks, fix #186
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-15 15:42:55 -04:00
Sara Damiano
335c2e8e63 Fix CCID for SIM800, fixes #336
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-15 09:16:56 -04:00
Sara Damiano
e47e3e3879 Fix some extra whitespace that crept in
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-15 08:57:41 -04:00
Sara Damiano
90dde6861b Fix get battery voltage, fixes #369
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-15 08:48:31 -04:00
Sara Damiano
5a6936b37a Made internal stream public again, fixing #373
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-15 08:41:33 -04:00
Sara Damiano
9f2068cecb Fix QTEMP on M95, fixes #377
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-15 08:36:11 -04:00
Sara Damiano
dbd677e6e7 Fix several potential null pointers
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-15 08:34:44 -04:00
Sara Damiano
eb9358f440 Check GPRS status on SIM7000
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-04-14 21:38:15 -04:00
Sara Damiano
564846c872 Added debug print with compiled client file name
Signed-off-by: Sara Damiano <sdamiano@stroudcenter.org>
2020-03-08 10:56:57 -04:00