From d44d01e563077889c2908d4e5f63e8b74c330b9a Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Tue, 20 Mar 2018 23:24:49 +0200 Subject: [PATCH 1/8] Add issue template --- .github/ISSUE_TEMPLATE.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE.md diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md new file mode 100644 index 0000000..5a7c582 --- /dev/null +++ b/.github/ISSUE_TEMPLATE.md @@ -0,0 +1,23 @@ + + +TinyGSM version: +Hardware: + +### Scenario, steps to reproduce + + +### Expected result + + +### Actual result + + +### AT command log + From 414620f97e272c507a5cca464ad1c7c81027bf6d Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 24 Mar 2018 16:48:56 +0200 Subject: [PATCH 2/8] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index f0e1490..d993bc2 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,10 @@ This may result in problems such as: To return module to **Factory Defaults**, use this sketch: File -> Examples -> TynyGSM -> tools -> [FactoryReset](https://github.com/vshymanskyy/TinyGSM/blob/master/tools/FactoryReset/FactoryReset.ino) +### Goouuu Tech IOT-GA6 vs AiThinker A6 confusion + +It turns out that **Goouuu Tech IOT-GA6** is not the same as **AiThinker A6**. Unfortunately IOT-GA6 is not supported out of the box yet. There are some hints that IOT-GA6 firmware may be updated to match A6... But no one confirmed that up to my knowledge. + __________ ### License From a30e0bcd8658d62450fc73f644245d470e76d389 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 24 Mar 2018 17:17:03 +0200 Subject: [PATCH 3/8] Update README.md --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d993bc2..f9f7ce9 100644 --- a/README.md +++ b/README.md @@ -110,10 +110,9 @@ If you have found TinyGSM to be useful in your work, research or company, please - Check your ballance - Check that APN,User,Pass are correct and you have internet 2. Ensure the SIM card is correctly inserted into the module - 3. Provide a good, [stable power supply](https://github.com/vshymanskyy/TinyGSM/wiki/Powering-GSM-module) (up to 2A and specific voltage according to your module documentation) - 4. Check if serial connection is working (Hardware Serial is recommended) + 3. Check if serial connection is working (Hardware Serial is recommended) Send an ```AT``` command using [this sketch](tools/AT_Debug/AT_Debug.ino) - 5. Check if GSM antenna is attached + 4. Ensure that GSM antenna is firmly attached ## How does it work? @@ -131,6 +130,14 @@ For additional functions, please refer to [this example sketch](examples/AllFunc Use this sketch to diagnose your SIM card and GPRS connection: File -> Examples -> TynyGSM -> tools -> [Diagnostics](https://github.com/vshymanskyy/TinyGSM/blob/master/tools/Diagnostics/Diagnostics.ino) + +### Ensure stable data & power connection + +This actually solves stability problems in **many** cases: +- Provide a good, [stable power supply](https://github.com/vshymanskyy/TinyGSM/wiki/Powering-GSM-module) (up to 2A and specific voltage according to your module documentation) +- Keep your wires as short as possible +- Consider soldering them for a stable connection +- Do not put your wires next to noisy signal sources (buck converters, antennas, oscillators etc.) ### SoftwareSerial problems From 5ab0b93c299a00326d7459a6b03a4d5f0369e545 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 24 Mar 2018 17:20:36 +0200 Subject: [PATCH 4/8] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f9f7ce9..ea4961e 100644 --- a/README.md +++ b/README.md @@ -169,9 +169,9 @@ This may result in problems such as: To return module to **Factory Defaults**, use this sketch: File -> Examples -> TynyGSM -> tools -> [FactoryReset](https://github.com/vshymanskyy/TinyGSM/blob/master/tools/FactoryReset/FactoryReset.ino) -### Goouuu Tech IOT-GA6 vs AiThinker A6 confusion +### Goouuu Tech IOT-GA6 vs AI-Thinker A6 confusion -It turns out that **Goouuu Tech IOT-GA6** is not the same as **AiThinker A6**. Unfortunately IOT-GA6 is not supported out of the box yet. There are some hints that IOT-GA6 firmware may be updated to match A6... But no one confirmed that up to my knowledge. +It turns out that **Goouuu Tech IOT-GA6** is not the same as **AI-Thinker A6**. Unfortunately IOT-GA6 is not supported out of the box yet. There are some hints that IOT-GA6 firmware may be updated to match A6... But no one confirmed that up to my knowledge. __________ From 975ba8bf57226dc2734d84938a8c1da0ab9cd32f Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 14 Apr 2018 17:55:10 +0300 Subject: [PATCH 5/8] Fix SIM900 build --- .travis.yml | 6 +++++- src/TinyGsmClientSIM800.h | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 05e48d7..8fd3573 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ env: # Arduino test - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_SIM800' --project-option='framework=arduino' --board=uno --board=leonardo --board=yun --board=megaatmega2560 --board=genuino101 --board=mkr1000USB --board=zero --board=teensy31 --board=bluepill_f103c8 --board=uno_pic32 --board=esp01 --board=nodemcuv2 --board=esp32dev --board=mayfly" + - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_SIM900' --project-option='framework=arduino' --board=uno --board=leonardo --board=yun --board=megaatmega2560 --board=genuino101 --board=mkr1000USB --board=zero --board=teensy31 --board=bluepill_f103c8 --board=uno_pic32 --board=esp01 --board=nodemcuv2 --board=esp32dev --board=mayfly" - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_A6' --project-option='framework=arduino' --board=uno --board=leonardo --board=yun --board=megaatmega2560 --board=genuino101 --board=mkr1000USB --board=zero --board=teensy31 --board=bluepill_f103c8 --board=uno_pic32 --board=esp01 --board=nodemcuv2 --board=esp32dev --board=mayfly" - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_M590' --project-option='framework=arduino' --board=uno --board=leonardo --board=yun --board=megaatmega2560 --board=genuino101 --board=mkr1000USB --board=zero --board=teensy31 --board=bluepill_f103c8 --board=uno_pic32 --board=esp01 --board=nodemcuv2 --board=esp32dev --board=mayfly" - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_ESP8266' --project-option='framework=arduino' --board=uno --board=leonardo --board=yun --board=megaatmega2560 --board=genuino101 --board=mkr1000USB --board=zero --board=teensy31 --board=bluepill_f103c8 --board=uno_pic32 --board=esp01 --board=nodemcuv2 --board=esp32dev --board=mayfly" @@ -27,11 +28,14 @@ env: # Energia test - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_SIM800' --project-option='framework=energia' --board=lplm4f120h5qr" + - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_SIM900' --project-option='framework=energia' --board=lplm4f120h5qr" - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_A6' --project-option='framework=energia' --board=lplm4f120h5qr" - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_M590' --project-option='framework=energia' --board=lplm4f120h5qr" - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_ESP8266' --project-option='framework=energia' --board=lplm4f120h5qr" - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_U201' --project-option='framework=energia' --board=lplm4f120h5qr" - - PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_XBEE' --project-option='framework=energia' --board=lplm4f120h5qr" + + # Disabled due to a bug in Energia readBytes implementation + #- PLATFORMIO_CI_SRC=tools/test_build PLATFORMIO_CI_ARGS="--project-option='build_flags=-D TINY_GSM_MODEM_XBEE' --project-option='framework=energia' --board=lplm4f120h5qr" install: # ChipKIT issue: install 32-bit support for GCC PIC32 diff --git a/src/TinyGsmClientSIM800.h b/src/TinyGsmClientSIM800.h index 6490842..13a62a9 100644 --- a/src/TinyGsmClientSIM800.h +++ b/src/TinyGsmClientSIM800.h @@ -750,9 +750,10 @@ public: protected: bool modemConnect(const char* host, uint16_t port, uint8_t mux, bool ssl = false) { + int rsp; #if !defined(TINY_GSM_MODEM_SIM900) sendAT(GF("+CIPSSL="), ssl); - int rsp = waitResponse(); + rsp = waitResponse(); if (ssl && rsp != 1) { return false; } From b1687256d3395100c2e5992413a378acff4ae896 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 14 Apr 2018 20:03:26 +0300 Subject: [PATCH 6/8] Boost version --- library.json | 2 +- library.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library.json b/library.json index 7d36c1f..fc40cfd 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TinyGSM", - "version": "0.3.2", + "version": "0.3.3", "description": "A small Arduino library for GPRS modules, that just works. Includes examples for Blynk, MQTT, File Download, and Web Client. Supports GSM modules with AT command interface: SIM800, SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868, SIM900, SIM900A, SIM900D, SIM908, SIM968", "keywords": "GSM, AT commands, AT, SIM800, SIM900, A6, A7, M590, ESP8266, SIM800A, SIM800C, SIM800L, SIM800H, SIM808, SIM868, SIM900A, SIM900D, SIM908, SIM968", "authors": diff --git a/library.properties b/library.properties index 1ec6a17..383fb0f 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TinyGSM -version=0.3.2 +version=0.3.3 author=Volodymyr Shymanskyy maintainer=Volodymyr Shymanskyy sentence=A small Arduino library for GPRS modules, that just works. From e77ae5fd5020f216ff49080055e4e1707eb1afb0 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 14 Apr 2018 21:25:28 +0300 Subject: [PATCH 7/8] Update diagnostics sketch --- tools/Diagnostics/Diagnostics.ino | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/Diagnostics/Diagnostics.ino b/tools/Diagnostics/Diagnostics.ino index b3761ea..2ee17fb 100644 --- a/tools/Diagnostics/Diagnostics.ino +++ b/tools/Diagnostics/Diagnostics.ino @@ -47,8 +47,9 @@ StreamDebugger debugger(SerialAT, SerialMon); TinyGsm modem(debugger); TinyGsmClient client(modem); -const char server[] = "cdn.rawgit.com"; -const char resource[] = "/vshymanskyy/tinygsm/master/extras/logo.txt"; +const char server[] = "vsh.pp.ua"; +const char resource[] = "/TinyGSM/logo.txt"; +const int port = 80; void setup() { // Set console baud rate @@ -108,7 +109,7 @@ void loop() { SerialMon.print("Connecting to "); SerialMon.print(server); - if (!client.connect(server, 80)) { + if (!client.connect(server, port)) { SerialMon.println(" fail"); delay(10000); return; From cc80035e691c3d33a5786461d96c11bb89fb05e9 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sat, 14 Apr 2018 21:54:16 +0300 Subject: [PATCH 8/8] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ea4961e..47a631a 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ If you have found TinyGSM to be useful in your work, research or company, please 1. Using your phone: - Disable PIN code on the SIM card - - Check your ballance + - Check your balance - Check that APN,User,Pass are correct and you have internet 2. Ensure the SIM card is correctly inserted into the module 3. Check if serial connection is working (Hardware Serial is recommended)