Skip to content

Commit

Permalink
mikroSDK library for GSM 2 click
Browse files Browse the repository at this point in the history
  • Loading branch information
paunovica committed Mar 8, 2019
0 parents commit 4737fa0
Show file tree
Hide file tree
Showing 246 changed files with 13,343 additions and 0 deletions.
88 changes: 88 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
![MikroE](http:https://www.mikroe.com/img/designs/beta/logo_small.png)

---

# GSM_2 Click

---

- **CIC Prefix** : GSM2
- **Author** : MikroE Team
- **Verison** : 1.0.0
- **Date** : Jan 2018.

---

### Software Support

We provide a library for the GSM_2 Click on our [LibStock](${LIBSTOCK_LINK})
page, as well as a demo application (example), developed using MikroElektronika
[compilers](http:https://shop.mikroe.com/compilers). The demo can run on all the main
MikroElektronika [development boards](http:https://shop.mikroe.com/development-boards).

**Library Description**

Library carries generic command parser adopted for AT command based modules.
Generic parser

Key functions :

- ``` gsm2_cmdSingle ``` - Sends provided command to the module
- ``` gsm2_setHandler ``` - Handler assignation to the provied command
- ``` gsm2_modulePower ``` - Turn on module

**Examples Description**

Example demo application waits for the call, after call is received the parser will
get hangup call.

This code snippet shows how generic parser should be properly initialized.
Before intialization module must be turned on and additionaly to that hardware
flow control should be also

Commands :
- First command negotiates baud rate with module
- Second command turns echo off
- Third command enables hardware flow control - necessary in case of UART polling
- Fourth command setup default message foramt

```.c

// MODULE POWER ON
gsm2_hfcEnable( true );
gsm2_modulePower( true );

// MODULE INIT
gsm2_cmdSingle( "AT" );
gsm2_cmdSingle( "ATE0" );
gsm2_cmdSingle( "AT+IFC=2,2" );
gsm2_cmdSingle( "AT+CMGF=1" );

```
Alongside with the demo application timer initialization functions are provided.
Note that timer is configured acording to default develoment system and
MCUs, changing the system or MCU may require update of timer init and timer ISR
functions.
The full application code, and ready to use projects can be found on our
[LibStock](${LIBSTOCK_LINK}) page.
Other mikroE Libraries used in the example:
- String
- Conversion
**Additional notes and informations**
Depending on the development board you are using, you may need
[USB UART click](http:https://shop.mikroe.com/usb-uart-click),
[USB UART 2 Click](http:https://shop.mikroe.com/usb-uart-2-click) or
[RS232 Click](http:https://shop.mikroe.com/rs232-click) to connect to your PC, for
development systems with no UART to USB interface available on the board. The
terminal available in all Mikroelektronika
[compilers](http:https://shop.mikroe.com/compilers), or any other terminal application
of your choice, can be used to read the message.
---
---
Loading

0 comments on commit 4737fa0

Please sign in to comment.