Development

Examples:

Communication / LoRa

» SX 02a: TX

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then send packets with plain-text payloads.

» SX 02b: RX

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then receive packets with plain-text payloads

» SX 03a: TX ACK

Last edition: Jan 10th, 2017 |

This example shows how to configure the semtech module in LoRa mode and then send packets with plain-text payloads waiting for the acknowledgement (ACK) from the receiver

» SX 03b: RX ACK

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then receive packets with plain-text payloads sending an acknowledgement (ACK) to the sender.

» SX 04a: TX ACK wRetries

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then send packets with plain-text payloads waiting for the acknowledgement (ACK) from the receiver. In the case it fails a number of retries is specify to repeat the sending

» SX 04b: RX ACK wRetries

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then receive packets with plain-text payloads sending an acknowledgement (ACK) to the sender. The sender retries the sending for several attempts in the case the ACK is not received

» SX 05a: TX Frame

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then send packets with Waspmote Frames within the payload

» SX 05b: RX Frame

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then receive packets with Waspmote Frames within the payload

» SX 06a: TX Frame ACK

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then send packets with Waspmote Frames within the payload using ACKs.

» SX 06b: RX Frame ACK

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then receive packets with Waspmote Frames within the payload sending back an ACK to the sender

» SX 07a: TX Frame ACK wRetries

Last edition: Jan 10th, 2017 |

This example shows how to send a Waspmote Frame via SX1272 module. Steps performed: - Configure the LoRa mode - Create a new Waspmote Frame - Send a packet

» SX 07b: RX Frame ACK wRetries

Last edition: Jan 10th, 2017 |

This example shows how to receive a Waspmote Frame via SX1272 module. Steps performed: - Configure the LoRa mode - Receive a packet sending an ACK in that case

» SX 08a: TX encrypted

Last edition: Jan 10th, 2017 |

This example shows how to encrypt a plain text message and then send the ciphertext via SX1272 module. Steps performed: - Configurate the LoRa mode - Encrypt the text message - Send a packet with the encrypted message

» SX 09a: TX encrypted Frame

Last edition: Jan 10th, 2017 |

This example shows how to send an encrypted Waspmote Frame using the SX1272 module. This encrypted frame can be sent to Meshlium when the node has been registered with the proper AES key. Steps performed: - Configurate the LoRa mode - Create a new Waspmote Frame - Encrypt the Waspmote Frame - Send a packet with the encrypted frame

» SX 10: RX from all nodes

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then receive packets from any node. This code works as a network sniffer because independently the packet is sent to, this module gets it and shows it.

» SX 11: RX wACK from all nodes

Last edition: Jan 10th, 2017 |

This example shows how to configure the semtech module in LoRa mode and then receive packets from any node. When a packet is received, an ACK is sent back to the sender. This code works as a network sniffer because independently the packet is sent to, this module gets it and shows it.

» SX 12: RSSI LoRa

Last edition: Jan 10th, 2017 |

This example shows how to configure the SX1272 module in LoRa mode and then receive packets. When a new packet is received the SNR, channel RSSI and last received packet RSSI are measured from the module

» SX 14: Current Supply

Last edition: Jan 10th, 2017 |

This example shows how to set the maximum Over Current Protection (OCP) level. By default, the OCP is disabled. This example also permits to get the OCP current value in mA units.