Skip to content

Commit 2ecbf9a

Browse files
committed
Merge branch 'develop'
2 parents 60f19dc + 8ddacc7 commit 2ecbf9a

File tree

343 files changed

+18134
-15924
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

343 files changed

+18134
-15924
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@
1616
*.sct
1717
*.MajerleT
1818
*.tjuln
19+
*.tilen
1920
*.dbgconf
2021
*.uvguix
2122
*.uvoptx
2223
*.__i
2324
*.i
2425
*.txt
26+
!docs/*.txt
2527
RTE/
2628

2729
# IAR Settings
@@ -73,6 +75,7 @@ bld/
7375
[Bb]in/
7476
[Oo]bj/
7577
[Ll]og/
78+
_build/
7679

7780
# Visual Studio 2015/2017 cache/options directory
7881
.vs/
@@ -377,7 +380,6 @@ log_file.txt
377380
.metadata/
378381
.mxproject
379382
.settings/
380-
template/
381383
project.ioc
382384
mx.scratch
383385
*.tilen majerle

.gitmodules

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
[submodule "third_party/Embedded_Libs"]
2-
path = third_party/Embedded_Libs
3-
url = https://github.com/MaJerle/Embedded_Libs
1+
[submodule "third_party/embedded-libs"]
2+
path = third_party/embedded-libs
3+
url = https://github.com/MaJerle/embedded-libs

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2018 Tilen Majerle
3+
Copyright (c) 2020 Tilen MAJERLE
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,36 @@
1-
# GSM AT commands parser for RTOS systems
1+
# Lightweight GSM-AT parser
22

3-
GSM-AT Library commands parser is a generic, platform independent, library for communicating with SIMCOM based modules SIM800/SIM900 or SIM70xx. Module is written in C99 and is independent from used platform. Its main targets are embedded system devices like ARM Cortex-M, AVR, PIC and others, but can easily work under `Windows`, `Linux` or `MAC` environments.
3+
LwGSM is lightweight, platform independent, AT commands parser, targeting for communicion with SIMCOM based modules SIM800/SIM900 or SIM70xx. Module is written in C99 and is independent from used platform. Its main targets are embedded system devices like ARM Cortex-M, AVR, PIC and others, but can easily work under `Windows`, `Linux` or `MAC` environments.
44

5-
## Features
6-
7-
- Supports `SIM800/SIM900 (2G)` and `SIM7000/SIM7020 (NB-Iot LTE)` modules
8-
9-
## Documentation
5+
<h3>Read first: <a href="https://docs.majerle.eu/projects/lwgsm/">Documentation</a></h3>
106

11-
Full API documentation with description and examples is available and is regulary updated with the source changes
12-
13-
http://majerle.eu/documentation/gsm_at/html/index.html
14-
15-
## Contribution
7+
## Features
168

17-
I invite you to give feature request or report a bug. Please use issues tracker.
9+
* Supports ``SIM800/SIM900 (2G)`` and ``SIM7000/SIM7020 (NB-Iot LTE)`` modules
10+
* Platform independent and very easy to port
11+
* Development of library under Win32 platform
12+
* Provided examples for ARM Cortex-M or Win32 platforms
13+
* Written in C language (C99)
14+
* Allows different configurations to optimize user requirements
15+
* Supports implementation with operating systems with advanced inter-thread communications
16+
* Currently only OS mode is supported
17+
* 2 different threads handling user data and received data
18+
* First (producer) thread (collects user commands from user threads and starts the command processing)
19+
* Second (process) thread reads the data from GSM device and does the job accordingly
20+
* Allows sequential API for connections in client and server mode
21+
* Includes several applications built on top of library:
22+
* MQTT client for MQTT connection
23+
* User friendly MIT license
24+
25+
## Contribute
26+
27+
Fresh contributions are always welcome. Simple instructions to proceed::
28+
29+
1. Fork Github repository
30+
2. Respect [C style & coding rules](https://github.com/MaJerle/c-code-style) used by the library
31+
3. Create a pull request to develop branch with new features or bug fixes
32+
33+
Alternatively you may:
34+
35+
1. Report a bug
36+
2. Ask for a feature request

dev/VisualStudio/gsm_config.h

Lines changed: 0 additions & 77 deletions
This file was deleted.

dev/VisualStudio/gsm_at_lib_dev.sln renamed to dev/VisualStudio/lwgsm_dev.sln

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.28803.452
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gsm_at_lib_dev", "gsm_at_lib_dev.vcxproj", "{87E5EEE1-1C99-458B-A893-DDDB00775631}"
6+
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lwgsm_dev", "lwgsm_dev.vcxproj", "{87E5EEE1-1C99-458B-A893-DDDB00775631}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -13,8 +13,8 @@ Global
1313
Release|x86 = Release|x86
1414
EndGlobalSection
1515
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16-
{87E5EEE1-1C99-458B-A893-DDDB00775631}.Debug|x64.ActiveCfg = Debug|Win32
17-
{87E5EEE1-1C99-458B-A893-DDDB00775631}.Debug|x64.Build.0 = Debug|Win32
16+
{87E5EEE1-1C99-458B-A893-DDDB00775631}.Debug|x64.ActiveCfg = Debug|x64
17+
{87E5EEE1-1C99-458B-A893-DDDB00775631}.Debug|x64.Build.0 = Debug|x64
1818
{87E5EEE1-1C99-458B-A893-DDDB00775631}.Debug|x86.ActiveCfg = Debug|Win32
1919
{87E5EEE1-1C99-458B-A893-DDDB00775631}.Debug|x86.Build.0 = Debug|Win32
2020
{87E5EEE1-1C99-458B-A893-DDDB00775631}.Release|x64.ActiveCfg = Release|x64

dev/VisualStudio/gsm_at_lib_dev.vcxproj renamed to dev/VisualStudio/lwgsm_dev.vcxproj

Lines changed: 41 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<VCProjectVersion>15.0</VCProjectVersion>
2323
<ProjectGuid>{87E5EEE1-1C99-458B-A893-DDDB00775631}</ProjectGuid>
2424
<Keyword>Win32Proj</Keyword>
25-
<RootNamgsmace>gsm_dev_os</RootNamgsmace>
25+
<RootNamgsmace>lwgsm_dev_os</RootNamgsmace>
2626
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
2727
</PropertyGroup>
2828
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
@@ -72,17 +72,19 @@
7272
<PropertyGroup Label="UserMacros" />
7373
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
7474
<LinkIncremental>true</LinkIncremental>
75-
<IncludePath>.;..\..\snippets\include;..\..\GSM_AT_Lib\src\include;..\..\..\lwmem\lwmem\src\include;$(IncludePath)</IncludePath>
75+
<IncludePath>.;..\..\lwgsm\src\include;..\..\lwgsm\src\include\system\port\win32;..\..\snippets\include;..\..\..\lwmem\lwmem\src\include;$(IncludePath)</IncludePath>
7676
</PropertyGroup>
7777
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
7878
<LinkIncremental>true</LinkIncremental>
79-
<IncludePath>.;..\..\snippets\include;..\..\GSM_AT_Lib\src\include;$(IncludePath)</IncludePath>
79+
<IncludePath>.;..\..\lwgsm\src\include;..\..\lwgsm\src\include\system\port\win32;..\..\snippets\include;$(IncludePath)</IncludePath>
8080
</PropertyGroup>
8181
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
8282
<LinkIncremental>false</LinkIncremental>
83+
<IncludePath>.;..\..\lwgsm\src\include;..\..\lwgsm\src\include\system\port\win32;..\..\snippets\include;$(IncludePath)</IncludePath>
8384
</PropertyGroup>
8485
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
8586
<LinkIncremental>false</LinkIncremental>
87+
<IncludePath>.;..\..\lwgsm\src\include;..\..\lwgsm\src\include\system\port\win32;..\..\snippets\include;$(IncludePath)</IncludePath>
8688
</PropertyGroup>
8789
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
8890
<ClCompile>
@@ -142,42 +144,47 @@
142144
<ItemGroup>
143145
<ClCompile Include="..\..\..\lwmem\lwmem\src\lwmem\lwmem.c" />
144146
<ClCompile Include="..\..\..\lwmem\lwmem\src\system\lwmem_sys_win32.c" />
145-
<ClCompile Include="..\..\GSM_AT_Lib\src\api\gsm_netconn.c" />
146-
<ClCompile Include="..\..\GSM_AT_Lib\src\api\gsm_network_api.c" />
147-
<ClCompile Include="..\..\GSM_AT_Lib\src\apps\mqtt\gsm_mqtt_client.c" />
148-
<ClCompile Include="..\..\GSM_AT_Lib\src\apps\mqtt\gsm_mqtt_client_api.c" />
149-
<ClCompile Include="..\..\GSM_AT_Lib\src\apps\mqtt\gsm_mqtt_client_evt.c" />
150-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm.c" />
151-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_buff.c" />
152-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_call.c" />
153-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_conn.c" />
154-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_debug.c" />
155-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_device_info.c" />
156-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_evt.c" />
157-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_http.c" />
158-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_input.c" />
159-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_int.c" />
160-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_mem.c" />
161-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_network.c" />
162-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_operator.c" />
163-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_parser.c" />
164-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_pbuf.c" />
165-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_phonebook.c" />
166-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_sim.c" />
167-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_sms.c" />
168-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_threads.c" />
169-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_timeout.c" />
170-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_unicode.c" />
171-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_ussd.c" />
172-
<ClCompile Include="..\..\GSM_AT_Lib\src\gsm\gsm_utils.c" />
173-
<ClCompile Include="..\..\GSM_AT_Lib\src\system\gsm_ll_win32.c" />
174-
<ClCompile Include="..\..\GSM_AT_Lib\src\system\gsm_mem_lwmem.c" />
175-
<ClCompile Include="..\..\GSM_AT_Lib\src\system\gsm_sys_win32.c" />
147+
<ClCompile Include="..\..\lwgsm\src\api\lwgsm_netconn.c" />
148+
<ClCompile Include="..\..\lwgsm\src\api\lwgsm_network_api.c" />
149+
<ClCompile Include="..\..\lwgsm\src\apps\mqtt\lwgsm_mqtt_client.c" />
150+
<ClCompile Include="..\..\lwgsm\src\apps\mqtt\lwgsm_mqtt_client_api.c" />
151+
<ClCompile Include="..\..\lwgsm\src\apps\mqtt\lwgsm_mqtt_client_evt.c" />
152+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm.c" />
153+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_buff.c" />
154+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_call.c" />
155+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_conn.c" />
156+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_debug.c" />
157+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_device_info.c" />
158+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_evt.c" />
159+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_http.c" />
160+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_input.c" />
161+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_int.c" />
162+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_mem.c" />
163+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_network.c" />
164+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_operator.c" />
165+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_parser.c" />
166+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_pbuf.c" />
167+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_phonebook.c" />
168+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_sim.c" />
169+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_sms.c" />
170+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_threads.c" />
171+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_timeout.c" />
172+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_unicode.c" />
173+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_ussd.c" />
174+
<ClCompile Include="..\..\lwgsm\src\lwgsm\lwgsm_utils.c" />
175+
<ClCompile Include="..\..\lwgsm\src\system\lwgsm_ll_win32.c" />
176+
<ClCompile Include="..\..\lwgsm\src\system\lwgsm_mem_lwmem.c" />
177+
<ClCompile Include="..\..\lwgsm\src\system\lwgsm_sys_win32.c" />
178+
<ClCompile Include="..\..\snippets\call.c" />
179+
<ClCompile Include="..\..\snippets\call_sms.c" />
180+
<ClCompile Include="..\..\snippets\client.c" />
181+
<ClCompile Include="..\..\snippets\device_info.c" />
176182
<ClCompile Include="..\..\snippets\mqtt_client_api.c" />
177183
<ClCompile Include="..\..\snippets\netconn_client.c" />
178184
<ClCompile Include="..\..\snippets\network_utils.c" />
179185
<ClCompile Include="..\..\snippets\sim_manager.c" />
180186
<ClCompile Include="..\..\snippets\sms_send_receive.c" />
187+
<ClCompile Include="..\..\snippets\sms_send_receive_thread.c" />
181188
<ClCompile Include="main.c" />
182189
</ItemGroup>
183190
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />

0 commit comments

Comments
 (0)