Skip to content

Commit 71341ec

Browse files
author
Amanda Butler
authored
Copy edit LoraWANBase.h
Copy edit file, mostly for consistent U.S. spelling and precise language.
1 parent 17d02d9 commit 71341ec

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

features/lorawan/LoRaWANBase.h

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -37,35 +37,35 @@ class LoRaWANBase {
3737
*/
3838
virtual lorawan_status_t initialize(events::EventQueue *queue) = 0;
3939

40-
/** Connect OTAA or ABP using Mbed-OS config system
40+
/** Connect OTAA or ABP using the Mbed OS config system
4141
*
4242
* Connect by Over The Air Activation or Activation By Personalization.
43-
* You need to configure the connection properly via the Mbed OS configuration
43+
* You need to configure the connection properly using the Mbed OS configuration
4444
* system.
4545
*
46-
* When connecting via OTAA, the return code for success (LORAWAN_STATUS_CONNECT_IN_PROGRESS) is negative.
47-
* However, this is not a real error. It tells you that the connection is in progress and you will
48-
* be notified of the completion via an event. By default, after the Join Accept message
46+
* When connecting through OTAA, the return code for success (LORAWAN_STATUS_CONNECT_IN_PROGRESS) is negative.
47+
* However, this is not a real error. It tells you that the connection is in progress, and an event will
48+
* notify you of the completion. By default, after the Join Accept message
4949
* is received, base stations may provide the node with a CF-List that replaces
5050
* all user-configured channels except the Join/Default channels. A CF-List can
5151
* configure a maximum of five channels other than the default channels.
5252
*
5353
* To configure more channels, we recommend that you use the `set_channel_plan()` API after the connection.
5454
* By default, the PHY layers configure only the mandatory Join channels. The retransmission back-off restrictions
55-
* on these channels are severe and you may experience long delays or even failures in the confirmed traffic.
55+
* on these channels are severe, and you may experience long delays or even failures in the confirmed traffic.
5656
* If you add more channels, the aggregated duty cycle becomes much more relaxed as compared to the Join (default) channels only.
5757
*
5858
* **NOTES ON RECONNECTION:**
5959
* Currently, the Mbed OS LoRaWAN implementation does not support non-volatile
6060
* memory storage. Therefore, the state and frame counters cannot be restored after
6161
* a power cycle. However, if you use the `disconnect()` API to shut down the LoRaWAN
62-
* protocol, the state and frame counters are saved. Connecting again would try to
63-
* restore the previous session. According to the LoRaWAN 1.0.2 specification, the frame counters are always reset
64-
* to zero for OTAA and a new Join request lets the network server know
65-
* that the counters need a reset. The same is said about the ABP but there
62+
* protocol, the state and frame counters are saved. Connecting again
63+
* restores the previous session. According to the LoRaWAN 1.0.2 specification, the frame counters are always reset
64+
* to 0 for OTAA, and a new Join request lets the network server know
65+
* that the counters need a reset. The same is said about the ABP, but there
6666
* is no way to convey this information to the network server. For a network
6767
* server, an ABP device is always connected. That's why storing the frame counters
68-
* is important, at least for ABP. That's why we try to restore frame counters from
68+
* is important for ABP. That's why we restore frame counters from
6969
* session information after a disconnection.
7070
*
7171
* @return Common: LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
@@ -87,31 +87,31 @@ class LoRaWANBase {
8787
* All connection parameters are chosen by the user and provided in the
8888
* data structure passed down.
8989
*
90-
* When connecting via OTAA, the return code for success (LORAWAN_STATUS_CONNECT_IN_PROGRESS) is negative.
91-
* However, this is not a real error. It tells you that connection is in progress and you will
92-
* be notified of completion via an event. By default, after Join Accept message
93-
* is received, base stations may provide the node with a CF-List which replaces
90+
* When connecting using OTAA, the return code for success (LORAWAN_STATUS_CONNECT_IN_PROGRESS) is negative.
91+
* However, this is not a real error. It tells you that connection is in progress, and an event will
92+
* notify you of completion. By default, after Join Accept message
93+
* is received, base stations may provide the node with a CF-List that replaces
9494
* all user-configured channels except the Join/Default channels. A CF-List can
9595
* configure a maximum of five channels other than the default channels.
9696
*
9797
* To configure more channels, we recommend that you use the `set_channel_plan()` API after the connection.
9898
* By default, the PHY layers configure only the mandatory Join
9999
* channels. The retransmission back-off restrictions on these channels
100-
* are severe and you may experience long delays or even
100+
* are severe, and you may experience long delays or even
101101
* failures in the confirmed traffic. If you add more channels, the aggregated duty
102102
* cycle becomes much more relaxed as compared to the Join (default) channels only.
103103
*
104104
* **NOTES ON RECONNECTION:**
105105
* Currently, the Mbed OS LoRaWAN implementation does not support non-volatile
106106
* memory storage. Therefore, the state and frame counters cannot be restored after
107107
* a power cycle. However, if you use the `disconnect()` API to shut down the LoRaWAN
108-
* protocol, the state and frame counters are saved. Connecting again would try to
109-
* restore the previous session. According to the LoRaWAN 1.0.2 specification, the frame counters are always reset
110-
* to zero for OTAA and a new Join request lets the network server know
111-
* that the counters need a reset. The same is said about the ABP but there
108+
* protocol, the state and frame counters are saved. Connecting again
109+
* restores the previous session. According to the LoRaWAN 1.0.2 specification, the frame counters are always reset
110+
* to zero for OTAA, and a new Join request lets the network server know
111+
* that the counters need a reset. The same is said about the ABP, but there
112112
* is no way to convey this information to the network server. For a network
113113
* server, an ABP device is always connected. That's why storing the frame counters
114-
* is important, at least for ABP. That's why we try to restore frame counters from
114+
* is important for ABP. That's why we restore frame counters from
115115
* session information after a disconnection.
116116
*
117117
* @param connect Options for an end device connection to the gateway.
@@ -146,15 +146,15 @@ class LoRaWANBase {
146146
* from the Network Server, user provided method is called.
147147
*
148148
* One way to use this API may be the validation of connectivity after a long
149-
* deep sleep. Mbed LoRaWANStack piggy-backs the MAC commands with data
150-
* frame payload so the application needs to try sending something and the Network
149+
* deep sleep. Mbed LoRaWANStack follows the MAC commands with data
150+
* frame payload, so the application needs send something, and the Network
151151
* Server may respond during the RX slots.
152152
*
153153
* This API is usable only when the 'link_check_resp' callback is set by
154154
* the application. See add_lora_app_callbacks API. If the above mentioned
155155
* callback is not set, a LORAWAN_STATUS_PARAMETER_INVALID error is thrown.
156156
*
157-
* First parameter to callback function is the demodulation margin and
157+
* The first parameter to callback function is the demodulation margin, and
158158
* the second parameter is the number of gateways that successfully received
159159
* the last request.
160160
*
@@ -172,7 +172,7 @@ class LoRaWANBase {
172172

173173
/** Removes link check request sticky MAC command.
174174
*
175-
* Any already queued request may still get entertained. However, no new
175+
* Any already queued request may still be completed. However, no new
176176
* requests will be made.
177177
*/
178178
virtual void remove_link_check_request() = 0;
@@ -185,14 +185,14 @@ class LoRaWANBase {
185185
* @return LORAWAN_STATUS_OK if everything goes well, otherwise
186186
* a negative error code:
187187
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
188-
* LORAWAN_STATUS_PARAMETER_INVALID if ADR is enabled or invalid datarate is given
188+
* LORAWAN_STATUS_PARAMETER_INVALID if ADR is enabled or invalid data rate is given
189189
*/
190190
virtual lorawan_status_t set_datarate(uint8_t data_rate) = 0;
191191

192192
/** Enables adaptive data rate (ADR)
193193
*
194194
* The underlying LoRaPHY and LoRaMac layers handle the data rate automatically
195-
* for the user, based upon the radio conditions (network congestion).
195+
* for the user, based on the radio conditions (network congestion).
196196
*
197197
* @return LORAWAN_STATUS_OK on success, negative error code
198198
* on failure:
@@ -202,11 +202,11 @@ class LoRaWANBase {
202202

203203
/** Disables adaptive data rate
204204
*
205-
* When adaptive data rate (ADR) is disabled, you can either set a certain
206-
* data rate or the MAC layer selects a default value.
205+
* When adaptive data rate (ADR) is disabled, either you can set a certain
206+
* data rate, or the MAC layer selects a default value.
207207
*
208208
* @return LORAWAN_STATUS_OK on success, negative error code on failure:
209-
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize()
209+
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize()
210210
*/
211211
virtual lorawan_status_t disable_adaptive_datarate() = 0;
212212

@@ -218,8 +218,8 @@ class LoRaWANBase {
218218
* receive an acknowledgment. The MAC performs a data rate adaptation as in
219219
* the LoRaWAN Specification V1.0.2, chapter 18.4, table on page 64.
220220
*
221-
* Note, that if number of retries is set to 1 or 2, MAC will not decrease
222-
* the datarate, if the LoRaMAC layer did not receive an acknowledgment.
221+
* Note that if the number of retries is set to 1 or 2, MAC does not decrease
222+
* the data rate, if the LoRaMAC layer did not receive an acknowledgment.
223223
*
224224
* @param count The number of retries for confirmed messages.
225225
*
@@ -239,15 +239,15 @@ class LoRaWANBase {
239239
* is already active, the request is silently ignored. A negative error
240240
* code is returned if there is any problem with parameters.
241241
*
242-
* Please note that this API can also be used to add a single channel to the
242+
* Please note that you can also use this API to add a single channel to the
243243
* existing channel plan.
244244
*
245245
* There is no reverse mechanism in the 1.0.2 specification for a node to request
246246
* a particular channel. Only the network server can initiate such a request.
247247
* You need to ensure that the corresponding base station supports the channel or channels being added.
248248
*
249249
* If your list includes a default channel (a channel where Join Requests
250-
* are received) you cannot fully configure the channel parameters.
250+
* are received), you cannot fully configure the channel parameters.
251251
* Either leave the channel settings to default or check your
252252
* corresponding PHY layer implementation. For example, LoRaPHYE868.
253253
*
@@ -256,9 +256,9 @@ class LoRaWANBase {
256256
* @return LORAWAN_STATUS_OK on success, a negative error code on failure:
257257
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
258258
* LORAWAN_STATUS_PARAMETER_INVALID if number of channels is exceeding the PHY limit,
259-
* LORAWAN_STATUS_DATARATE_INVALID if invalid datarate is given,
259+
* LORAWAN_STATUS_DATARATE_INVALID if invalid data rate is given,
260260
* LORAWAN_STATUS_FREQUENCY_INVALID if invalid frequency is given,
261-
* LORAWAN_STATUS_FREQ_AND_DR_INVALID if invalid datarate and freqency are given,
261+
* LORAWAN_STATUS_FREQ_AND_DR_INVALID if invalid data rate and freqency are given,
262262
* LORAWAN_STATUS_BUSY if TX currently ongoing,
263263
* LORAWAN_STATUS_SERVICE_UNKNOWN if custom channel plans are disabled in PHY
264264
*/
@@ -362,8 +362,8 @@ class LoRaWANBase {
362362
* one another depending on the intended use case or reception
363363
* expectation.
364364
*
365-
* e.g., MSG_CONFIRMED_FLAG and MSG_UNCONFIRMED_FLAG are
366-
* not mutually exclusive, i.e., the user can subscribe to
365+
* For example, MSG_CONFIRMED_FLAG and MSG_UNCONFIRMED_FLAG are
366+
* not mutually exclusive. In other words, the user can subscribe to
367367
* receive both CONFIRMED AND UNCONFIRMED messages at
368368
* the same time.
369369
*
@@ -385,7 +385,7 @@ class LoRaWANBase {
385385
*
386386
* @param length The size of data in bytes
387387
*
388-
* @param port Return the number of port to which message was received.
388+
* @param port Return the number of port from which message was received.
389389
*
390390
* @param flags Return flags to determine what type of message was received.
391391
* MSG_UNCONFIRMED_FLAG = 0x01
@@ -518,13 +518,13 @@ class LoRaWANBase {
518518
* This API is used to cancel any outstanding transmission in the TX pipe.
519519
* If an event for transmission is not already queued at the end of backoff timer,
520520
* the system can cancel the outstanding outgoing packet. Otherwise, the system is
521-
* busy sending and can't be held back. The system will not try to re-send if the
521+
* busy sending and can't be held back. The system will not try to resend if the
522522
* outgoing message was a CONFIRMED message even if the ack is not received.
523523
*
524-
* @return LORAWAN_STATUS_OK if the sending is cancelled, otherwise
524+
* @return LORAWAN_STATUS_OK if the sending is canceled, otherwise
525525
* other negative error code if request failed:
526526
* LORAWAN_STATUS_NOT_INITIALIZED if system is not initialized with initialize(),
527-
* LORAWAN_STATUS_BUSY if the send cannot be cancelled
527+
* LORAWAN_STATUS_BUSY if the send cannot be canceled
528528
*/
529529
virtual lorawan_status_t cancel_sending(void) = 0;
530530
};

0 commit comments

Comments
 (0)