You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/04.pro/carriers/portenta-mid-carrier/tutorials/user-manual/content.md
+64-70Lines changed: 64 additions & 70 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2218,16 +2218,11 @@ nmcli c add type gsm ifname cdc-wdm0 con-name wwan0 apn mobile.vodafone.it gsm.p
2218
2218
2219
2219
#### Using Arduino IDE
2220
2220
2221
-
The Portenta H7 and C33 are compatible with the Mini PCIe interface and can leverage the Pro 4G Module's capability. Enable and using the modem with the Portenta H7 or C33 will require a library named **Arduino_4GModem**.
2221
+
The Portenta H7 and C33 are compatible with the Mini PCIe interface and can leverage the Pro 4G Module's capability. Enable and using the modem with the Portenta H7 or C33 will require a library named [**Arduino_Cellular**](https://github.com/arduino-libraries/Arduino_cellular). The library manager within the Arduino IDE can access the library by navigating to **Sketch -> Include Library -> Manage Libraries**.
2222
2222
2223
-
The *Arduino_4GModem* library packs two sources:
2223
+

2224
2224
2225
-
- Arduino_4G_Module
2226
-
- ArduinoProModem
2227
-
2228
-
Each source is included for the correct compilation and operation of the modem with either Portenta H7 or C33. The library manager within the Arduino IDE can access the library by navigating to **Sketch -> Include Library -> Manage Libraries**.
2229
-
2230
-
The library provides functionality for setting up a 4G connection, handling GPS/A-GPS location services, and uninterrupted SMS transactions.
2225
+
The [**Arduino_Cellular**](https://github.com/arduino-libraries/Arduino_cellular) provides tools for interacting with Arduino Pro 4G modules. It enables internet connectivity, SMS communication, and location tracking via cellular networks or GPS. Features include fast 4G internet connection, secure SSL connections, GPS or GSM-based location tracking, time synchronization with cell providers, and SMS sending and receiving.
2231
2226
2232
2227
Please ensure the mini PCIe power configuration is set as outlined in the [Mini PCIe Power Breakout Header](#mini-pcie-power-breakout-header-j9) section. The Portenta H7 or C33 requires **SERIAL1 Breakout** pins to be connected to designated **PCIe Breakout** pins :
2233
2228
@@ -2250,96 +2245,95 @@ The Portenta H7 can be replaced with the Portenta C33, maintaining the same setu
2250
2245
Once the setup is ready, we can use the following example from the library called **HTTPClient**:
2251
2246
2252
2247
```arduino
2253
-
#define TINY_GSM_DEBUG
2254
-
#define LOGGING
2255
-
#define DEBUGSERIAL Serial
2248
+
/**
2249
+
* This example demonstrates how to make a HTTP GET request using
2250
+
* the ArduinoHttpClient library and the ArduinoCellular library.
2251
+
*
2252
+
* Instructions:
2253
+
* 1. Insert a SIM card with or without PIN code in the Arduino Pro 4G Module.
2254
+
* 2. Provide sufficient power to the Arduino Pro 4G Module. Ideally, use a 5V power supply
2255
+
* with a current rating of at least 2A and connect it to the VIN and GND pins.
2256
+
* 3. Specify the APN, login, and password for your cellular network provider.
2257
+
* 4. Upload the sketch to the connected Arduino board.
Serial.println("Failed to connect to the network.");
2306
+
while(true); // Stop here
2307
+
}
2308
+
Serial.println("Connected!");
2324
2309
2310
+
getResource();
2325
2311
}
2312
+
2313
+
void loop(){}
2326
2314
```
2327
2315
2328
-
The example above connects to the web and fetches resources via HTTP. The script will require defining the following parameter fields:
2316
+
The example above connects to the web and fetches resources via HTTP. The script will require **arduino_secrets.h** to be defined wtih following credentials:
2329
2317
2330
-
- APN
2318
+
-GPRS APN
2331
2319
- GPRS User
2332
2320
- GPRS Password
2321
+
- SIM Card Pin Number
2333
2322
2334
-
These three parameters will always be required to be defined to use the SIM functionalities within the modem. The image below shows an anticipated initial result of the modem detected and connecting to a 4G network:
2323
+
These parameters will always be required to be defined to use the SIM functionalities within the modem. The image below shows an anticipated initial result of the modem detected and connecting to a 4G network:
2335
2324
2336
2325

2337
2326
2338
-
You may find additional examples as well within the library, each dedicated to different purposes as follows:
2327
+
You may find additional examples as well within the library to try various functionalities such as deleting SMS, getting GPS location, and connecting to web servers securely:
2339
2328
2340
-
-**MQTTClient:** Stream sensor information via MQTT
2341
-
-**SMSReceive:** Send and receive SMS messages
2342
-
-**TimeAndLocation:** Get time and location using GPS and GSM as a fallback process for the EU version
2329
+
-**HTTPClient**: Connects to a web server using the [*ArduinoHttpClient*](https://github.com/arduino-libraries/ArduinoHttpClient).
2330
+
-**HTTPSClient**: Establishes a secure connection to a web server with [*BearSSL*](https://bearssl.org/) and [*ArduinoHttpClient*](https://github.com/arduino-libraries/ArduinoHttpClient).
2331
+
-**ModemTerminal**: Useful for debugging and testing AT commands.
2332
+
-**GetLocation**: Shows how to obtain the current GPS location.
2333
+
-**GetTime**: Uses GPS to acquire the device's time.
2334
+
-**ReceiveSMS**: Demonstrates SMS sending and receiving functionality.
2335
+
-**SendSMS**: Shows how to send an SMS.
2336
+
-**DeleteSMS**: Demonstrates how to delete SMS messages.
0 commit comments