Skip to content

Commit 51b55ec

Browse files
committed
Update documentation
1 parent 2a2e2f6 commit 51b55ec

File tree

8 files changed

+115
-11
lines changed

8 files changed

+115
-11
lines changed

Diff for: README.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,44 @@
1-
# Arduino Cellular
1+
# 📡 Arduino Cellular
22

33
[![Arduino Lint](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/arduino-lint.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/arduino-lint.yml) [![Compile Examples](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/compile-examples.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/compile-examples.yml) [![Spell Check](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/spell-check.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/spell-check.yml) [![Sync Labels](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/sync-labels.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/sync-labels.yml) [![Render Documentation](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/render-documentation.yml/badge.svg)](https://github.com/arduino-libraries/Arduino_Cellular/actions/workflows/render-documentation.yml)
44

55

66
This library provides a toolkit for interacting with the official Arduino 4G Modules. It allows you to connect to the internet, send and receive SMS messages, and get location from the cellular network or GPS.
77

88
## Examples
9-
* [examples/HTTPClient]() - Example of using this library together with [HttpClient]() to connect to a web server
10-
* [examples/HTTPClient]() - Example of using this library together with [HttpClient]() that uses [BearSSL]() under the hood to create a secure connection to a web server
11-
* [examples/ReceiveSMS]() - Example for the SMS sending and receiving functionality
12-
* [examples/TimeAndLocation]() - Use GPS, or Cellular to acquire the location and time of the device.
13-
* [examples/ModemTerminal]() - A handy example for debugging and Testing AT commands
14-
15-
## Features
9+
* [DeleteSMS](examples/DeleteSMS) - Example that shows how to delete SMS.
10+
* [GetLocation](examples/GetLocation) - Shows how to get the current GPS location.
11+
* [GetTime](examples/GetTime) - Use GPS to acquire the time of the device.
12+
* [HTTPClient](examples/HTTPClient) - Example of using this library together with [ArduinoHttpClient]() to connect to a web server
13+
* [HTTPSClient](examples/HTTPSClient) - Example of using this library together with [ArduinoHttpClient]() that uses [BearSSL]() under the hood to create a secure connection to a web server
14+
* [ModemTerminal](examples/ModemTerminal) - A handy example for debugging and Testing AT commands
15+
* [ReceiveSMS](examples/ReceiveSMS) - Example for the SMS sending and receiving functionality
16+
* [SendSMS](examples/SendSMS) - Shows how to send an SMS
17+
18+
## ✨ Features
1619
* Fast 4G connection to the internet
1720
* Secure SSL connections with BearSSL
1821
* Get location using GPS or GSM
1922
* Synchronise time with the cell provider
2023
* Send and Receive SMS Messages
2124

22-
## Instructions
25+
## 👀 Instructions
2326
1. Insert your Arduino 4G module to the Arduino Portenta Mid Carrier
2427
2. Insert a valid SIM card either on the back of the Arduino 4G miniPCI board, or the **PCIE_SIM** connector on the Portenta Mid Carrier
2528
3. Connect the 6 **SERIAL1** header pins to their corresponding pins on the **PCIE_BREAKOUT** header using jumpers
2629
![](https://raw.githubusercontent.com/arduino-libraries/Arduino_Cellular/main/extras/connection_img/header.jpg?token=GHSAT0AAAAAACNPRJPUBHNVP3J3KMRPUULUZQVDLKQ)
2730
4. Connect the **3V3 PCIE** pin to the **3V3 Buck**
2831
![](https://raw.githubusercontent.com/arduino-libraries/Arduino_Cellular/main/extras/connection_img/buck.jpg?token=GHSAT0AAAAAACNPRJPUBUCALG2FUCDZ7AVCZQVDLJA)
2932
5. Connect external power to the Mid Carrier, via the **VIN** (5-12V) because modem use a lot of power when connecting or getting a GPS location. Make sure your supply can handle around 3A.
30-
6. Get the APN settings from your network operator and add them to the "ArduinoSecrets.h" file for each sketch
31-
```c
33+
6. Get the APN settings from your network operator and add them to the "arduino_secrets.h" file for each sketch
34+
```cpp
3235
const char apn[] = "live.vodafone.com";
3336
const char gprsUser[] = "live";
3437
const char gprsPass[] = "";
3538
```
3639
7. Install the library and it's dependencies
3740
8. Enjoy
3841

42+
## 📖 Documentation
3943

44+
For more information about this library please read the documentation [here](./docs).

Diff for: examples/DeleteSMS/DeleteSMS.ino

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* This example demonstrates how to delete SMS messages using the ArduinoCellular library.
3+
*
4+
* Instructions:
5+
* 1. Insert a SIM card with or without PIN code in the Arduino Pro 4G Module.
6+
* 2. Provide sufficient power to the Arduino Pro 4G Module. Ideally, use a 5V power supply
7+
* with a current rating of at least 2A and connect it to the VIN and GND pins.
8+
* 3. Send an SMS to the SIM card number to test the SMS reception.
9+
* 4. Upload the sketch to the connected Arduino board.
10+
* 5. Check the serial monitor for the received SMS.
11+
* 6. Enter the index of the SMS you want to delete in the serial monitor.
12+
*
13+
* Initial author: Sebastian Romero
14+
*/
15+
116
#include "ArduinoCellular.h"
217

318
ArduinoCellular cellular = ArduinoCellular();

Diff for: examples/GetLocation/GetLocation.ino

+12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
/**
2+
* This example demonstrates how to get the current GPS location using the ArduinoCellular library.
3+
*
4+
* Instructions:
5+
* 1. Move the Arduino Pro 4G Module to an outdoor location with a clear view of the sky.
6+
* 2. Provide sufficient power to the Arduino Pro 4G Module. Ideally, use a 5V power supply
7+
* 3. Upload the sketch to the connected Arduino board.
8+
* 4. Open the serial monitor to view the output.
9+
*
10+
* Initial author: Sebastian Romero
11+
*/
12+
113
#include "ArduinoCellular.h"
214

315
ArduinoCellular cellular = ArduinoCellular();

Diff for: examples/GetTime/GetTime.ino

+13
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/**
2+
* This example demonstrates how to get the current time using the ArduinoCellular library.
3+
* It derives the time from GPS connection.
4+
*
5+
* Instructions:
6+
* 1. Move the Arduino Pro 4G Module to an outdoor location with a clear view of the sky.
7+
* 2. Provide sufficient power to the Arduino Pro 4G Module. Ideally, use a 5V power supply
8+
* 3. Upload the sketch to the connected Arduino board.
9+
* 4. Open the serial monitor to view the output.
10+
*
11+
* Initial author: Cristian Dragomir
12+
*/
13+
114
#include "ArduinoCellular.h"
215

316
ArduinoCellular cellular = ArduinoCellular();

Diff for: examples/HTTPClient/HTTPClient.ino

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
/**
2+
* This example demonstrates how to make a HTTP GET request using
3+
* the ArduinoHttpClient library and the ArduinoCellular library.
4+
*
5+
* Instructions:
6+
* 1. Insert a SIM card with or without PIN code in the Arduino Pro 4G Module.
7+
* 2. Provide sufficient power to the Arduino Pro 4G Module. Ideally, use a 5V power supply
8+
* with a current rating of at least 2A and connect it to the VIN and GND pins.
9+
* 3. Specify the APN, login, and password for your cellular network provider.
10+
* 4. Upload the sketch to the connected Arduino board.
11+
* 5. Open the serial monitor to view the output.
12+
*
13+
* Initial author: Cristian Dragomir
14+
*/
15+
116
#define ARDUINO_CELLULAR_DEBUG
217

318
#include "ArduinoCellular.h"

Diff for: examples/HTTPSClient/HTTPSClient.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/**
2+
* Example demonstrating how to make an HTTPS GET request using
3+
* the ArduinoHttpClient library and the ArduinoCellular library.
4+
*
5+
* Instructions:
6+
* 1. Insert a SIM card with or without PIN code in the Arduino Pro 4G Module.
7+
* 2. Provide sufficient power to the Arduino Pro 4G Module. Ideally, use a 5V power supply
8+
* with a current rating of at least 2A and connect it to the VIN and GND pins.
9+
* 3. Specify the APN, login, and password for your cellular network provider.
10+
* 4. Upload the sketch to the connected Arduino board.
11+
* 5. Open the serial monitor to view the output.
12+
*
13+
* Initial author: Cristian Dragomir
14+
*/
115

216
#include <Arduino.h>
317
#include "ArduinoCellular.h"

Diff for: examples/ModemTerminal/ModemTerminal.ino

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/**
2+
* The ModemTerminal example demonstrates how to use the ArduinoCellular library to send raw AT commands to the modem.
3+
*
4+
* Instructions:
5+
* 1. Insert a SIM card with or without PIN code in the Arduino Pro 4G Module.
6+
* 2. Provide sufficient power to the Arduino Pro 4G Module. Ideally, use a 5V power supply
7+
* with a current rating of at least 2A and connect it to the VIN and GND pins.
8+
* 3. Specify the APN, login, and password for your cellular network provider.
9+
* 4. Upload the sketch to the connected Arduino board.
10+
* 5. Open the serial monitor and type AT commands to interact with the modem.
11+
*
12+
* Initial author: Cristian Dragomir
13+
*/
14+
115
#include "ArduinoCellular.h"
216
#include "arduino_secrets.h"
317

Diff for: examples/ReceiveSMS/ReceiveSMS.ino

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/**
2+
* This example demonstrates how to receive SMS messages using ArduinoCellular library.
3+
* It supports both polling and interrupt based methods to check for new SMS messages.
4+
*
5+
* Instructions:
6+
* 1. Insert a SIM card with or without PIN code in the Arduino Pro 4G Module.
7+
* 2. Provide sufficient power to the Arduino Pro 4G Module. Ideally, use a 5V power supply
8+
* with a current rating of at least 2A and connect it to the VIN and GND pins.
9+
* 3. Specify the PIN code of your SIM card if it has one.
10+
* 4. Upload the sketch to the connected Arduino board.
11+
* 5. Send an SMS to the SIM card number to test the SMS reception.
12+
* 6. Check the serial monitor for the received SMS.
13+
*
14+
* Initial author: Cristian Dragomir
15+
*/
16+
117
#include "ArduinoCellular.h"
218

319
constexpr int NEW_SMS_INTERRUPT_PIN = A0;

0 commit comments

Comments
 (0)