Skip to content
This repository was archived by the owner on Feb 4, 2022. It is now read-only.

Commit a52d4f1

Browse files
authored
Merge pull request #35 from sparkfunX/v2
Version 2.0
2 parents b61901a + eb3d1e1 commit a52d4f1

File tree

32 files changed

+2718
-1323
lines changed

32 files changed

+2718
-1323
lines changed

Software/examples/Example10_BasicSend/Example10_BasicSend.ino

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
Example: Basic Send
44
55
Written by Paul Clark (PaulZC)
6-
7th June 2020
6+
August 7th 2021
77
8-
** Set the Board to "SparkFun Artemis Module" **
8+
** Updated for v2.1.0 of the Apollo3 core / Artemis board package **
9+
** (At the time of writing, v2.1.1 of the core conatins a feature which makes communication with the u-blox GNSS problematic. Be sure to use v2.1.0) **
10+
11+
** Set the Board to "RedBoard Artemis ATP" **
12+
** (The Artemis Module does not have a Wire port defined, which prevents the IridiumSBD library from compiling) **
913
1014
This example powers up the Iridium 9603N and
1115
sends a "Hello, world!" message from the satellite modem.
@@ -56,14 +60,12 @@
5660
// Make sure you do not have gnssEN and iridiumPwrEN enabled at the same time!
5761
// If you do, bad things might happen to the AS179 RF switch!
5862

59-
// Declares a Uart object called Serial using instance 1 of Apollo3 UART peripherals with RX on variant pin 25 and TX on pin 24
60-
// (note, in this variant the pins map directly to pad, so pin === pad when talking about the pure Artemis module)
61-
Uart iridiumSerial(1, 25, 24);
63+
// We use Serial1 to communicate with the Iridium modem. Serial1 on the ATP uses pin 24 for TX and 25 for RX. AGT uses the same pins.
6264

6365
#include <IridiumSBD.h> //http://librarymanager/All#IridiumSBDI2C
6466
#define DIAGNOSTICS false // Change this to true to see IridiumSBD diagnostics
6567
// Declare the IridiumSBD object (including the sleep (ON/OFF) and Ring Indicator pins)
66-
IridiumSBD modem(iridiumSerial, iridiumSleep, iridiumRI);
68+
IridiumSBD modem(Serial1, iridiumSleep, iridiumRI);
6769

6870
void gnssOFF(void) // Disable power for the GNSS
6971
{
@@ -133,7 +135,7 @@ void setup()
133135
delay(1000);
134136

135137
// Start the serial port connected to the satellite modem
136-
iridiumSerial.begin(19200);
138+
Serial1.begin(19200);
137139

138140
// If we're powering the device by USB, tell the library to
139141
// relax timing constraints waiting for the supercap to recharge.

Software/examples/Example11_Ring/Example11_Ring.ino

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@
33
Example: Ring
44
55
Written by Paul Clark (PaulZC)
6-
7th June 2020
6+
August 7th 2021
77
8-
** Set the Board to "SparkFun Artemis Module" **
8+
** Updated for v2.1.0 of the Apollo3 core / Artemis board package **
9+
** (At the time of writing, v2.1.1 of the core conatins a feature which makes communication with the u-blox GNSS problematic. Be sure to use v2.1.0) **
10+
11+
** Set the Board to "RedBoard Artemis ATP" **
12+
** (The Artemis Module does not have a Wire port defined, which prevents the IridiumSBD library from compiling) **
913
1014
This example demonstrates how to use the Iridium Ring Indicator line to detect
1115
when inbound messages are available and retrieve them.
@@ -53,14 +57,12 @@
5357
// Make sure you do not have gnssEN and iridiumPwrEN enabled at the same time!
5458
// If you do, bad things might happen to the AS179 RF switch!
5559

56-
// Declares a Uart object called Serial using instance 1 of Apollo3 UART peripherals with RX on variant pin 25 and TX on pin 24
57-
// (note, in this variant the pins map directly to pad, so pin === pad when talking about the pure Artemis module)
58-
Uart iridiumSerial(1, 25, 24);
60+
// We use Serial1 to communicate with the Iridium modem. Serial1 on the ATP uses pin 24 for TX and 25 for RX. AGT uses the same pins.
5961

6062
#include <IridiumSBD.h> //http://librarymanager/All#IridiumSBDI2C
6163
#define DIAGNOSTICS false // Change this to true to see IridiumSBD diagnostics
6264
// Declare the IridiumSBD object (including the sleep (ON/OFF) and Ring Indicator pins)
63-
IridiumSBD modem(iridiumSerial, iridiumSleep, iridiumRI);
65+
IridiumSBD modem(Serial1, iridiumSleep, iridiumRI);
6466

6567
void gnssOFF(void) // Disable power for the GNSS
6668
{
@@ -130,7 +132,7 @@ void setup()
130132
delay(1000);
131133

132134
// Start the serial port connected to the satellite modem
133-
iridiumSerial.begin(19200);
135+
Serial1.begin(19200);
134136

135137
// If we're powering the device by USB, tell the library to
136138
// relax timing constraints waiting for the supercap to recharge.

0 commit comments

Comments
 (0)