Coder Social home page Coder Social logo

memfault-nrf9160-relay's Introduction

Memfault nRF9160 Relay Example

This example builds upon the nRF9160 UDP example by Nordic Semiconductor. It shows how a server that receives UDP packets might relay them to the Memfault servers.

This example uses v1.6.0-rc2 of the nRF SDK.

Installing dependencies

nRF SDK and Zephyr

Install the necessary system dependencies (this command should work as-is on Ubuntu):

sudo apt install cmake python3 python3-pip python3-venv

Clone the repository:

git clone https://github.com/memfault/memfault-nRF9160-relay.git
cd memfault-nRF9160-relay

Create a virtual environment and install the dependencies:

python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt

All the steps starting from here mimic Nordic's instructions.

Install nRF SDK dependencies:

west init -m https://github.com/nrfconnect/sdk-nrf --mr v1.6.0-rc2
west config manifest.path firmware
west update
west zephyr-export

Install additional Python dependencies:

pip3 install -r zephyr/scripts/requirements.txt
pip3 install -r nrf/scripts/requirements.txt
pip3 install -r bootloader/mcuboot/scripts/requirements.txt

Compiling and running

Once you've installed all the dependencies, make sure to set your Project Key and a static IP address to your UDP server in firmware/prj.conf:

CONFIG_UDP_SERVER_ADDRESS_STATIC="18.188.13.221"
CONFIG_MEMFAULT_NCS_PROJECT_KEY="owTDJvKithvuHTNj47hwmzUOsQ2qEGbG"

Run this in this repository's root:

west build -b=nrf9160dk_nrf9160ns firmware

Set up the UDP server:

python3 server

Finally, flash the device:

west build -t flash

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.