RSS
Sort by » date activity comments

286 blog posts

0
comments
by Carlos Delfino

Estudando Projetos do SDK 10 para nRF5x com Eclipse Oxygen (Portuguese)

The purpose of this tutorial is to expound my notes on the studies I have done on the use of nRF51, but also serve for the nRF52, and thus share with the beginner as I of the Portuguese language. This tutorial is continuity in the [previous tutorial] (https://devzone.nordicsemi.com/blogs/1193/configuring-the-eclipse-oxygen-for-development/).

The SDK 10 is chosen because there is still the S110 version of SoftDevice for the nRF51.

If you find any errors, be sure to let me know, because they are annotations made as I am learning to program for these modules, so I can initially...

2
comments
by Carlos Delfino

Configurando o Eclipse Oxygen para Desenvolvimento com nRF5x (Portuguese)

This tutorial aims to help Portuguese language beginners, like me, with the nRF5x family and who chose to use Eclipse as a development tool.

The tutorial will be very simple and we will use the Eclipse Oxygen and the GNU MCU Plugin, in addition to GCC 6.

There will also be separate tutorials for each step, in this will be the only configuration of Eclipse for use of the Tools and soon thereafter will create another showing how to create a project using one of the examples, and finally a third demonstrating how to create a project from scratch.


Este...

1
comment
by Yaniv Nis

How to use Git for embedded software development

Hi,

Using Git and choosing the right workflow is essential when you want to implement DevOps practices as part of your SW development. When it comes to embedded SW things start to get a bit rough. Take a look at the blog post below to learn how to use Git-Flow for embedded development and what kind of tests to apply for each commit, merge, etc. Note that it's based on what we are doing at Jumper when we are building our virtual lab, so you might need to tweak it a bit.

https://medium.com/jumperiot/how-to-use-git-flow-in-embedded-software-development-dbb2a78da413

Hope you...

3
comments
by Krzysztof Szewczyk

Thingy:52 based Weather Station

Weather station created from two Nordics eval-boards (Thingy:52 and nRF52840-Preview-DK). Source code and hardware files are available. http://evalspace.com/weather-station/ image description

0
comments
by Yaniv Nis

How to build continuous integration and delivery process for embedded SW development

If automated testing, continuous integration, and delivery processes are top of mind for you, but you are not sure how to start implementing it for embedded SW development - take a look at the following cookbook.

https://medium.com/jumperiot/how-to-build-a-continuous-integration-and-delivery-flow-for-embedded-software-b0b5bf220a2

Enjoy!

4
comments
by Krzysztof Zaraska

Multiple channels in RTT

Segger RTT (Real-Time Terminal) supports multiple data channels.

RTT Viewer uses channel 0 only, and implements multiple virtual terminals on top of this. The terminal can be switched by SEGGER_RTT_SetTerminal(). Channel 0 is used by NRF_LOG. NRF_LOG does not do terminal switching, so you can do it yourself (be careful about reentracy though).

Data from other channels can be read using RTT Logger. To send data from NRF to RTT Logger:

  1. In sdk_config.h, adjust value of SEGGER_RTT_CONFIG_MAX_NUM_UP_BUFFERS. The default is 2, which gives you 1 extra channel besides channel 0. In the example below, it should be set to...
4
comments
by Rose Martin

6 Things to Know about Bluetooth Beacons

Smartphones and tablets have revolutionized the manner in which people communicate with each other. Mobile applications with location-based features like Bluetooth beacons, WiFi, and GPS are helping people stay connected from any location.

An increasing number of companies are using innovative methods like Bluetooth beacons to touch base with their customers and engage them by offering contextual and personalized services. The Allied Business Intelligence Inc. estimates that the overall Bluetooth beacon market will cross 500 million units by 2021 with a compounded annual growth rate of 113 percent. Beacons will continue to gain importance as they find new applications in...

4
comments
by Kristian Skordal

Creating a Keil project for a Bluetooth Mesh example (Updated for 0.10.0)

Introduction

The recently released nRF5 SDK for Bluetooth Mesh does not provide Keil project files for its example projects. Fortunately, it's relatively easy to set up your own project from scratch. This guide will show you how.

While the list of steps below might seem overwhelming, most of the settings used here, such as the linker settings and defines, can be copied from the Segger Embedded Studio project provided with the mesh SDK. The SES project can be used as a template for which files to include and which settings to use when creating Keil projects for other mesh...

10
comments
by schef

Using millis() like in Arduino.

Here are two simple functions to use when you want to use timestamps for time measurement.

uint32_t millis(void)
{
  return(app_timer_cnt_get() / 32.768);
}

and for comperison of current with given timestamp with rollover correction (thanks to Nicolas Brunner for the correction):

#define OVERFLOW ((uint32_t)(0xFFFFFFFF/32.768))

uint32_t compareMillis(uint32_t previousMillis, uint32_t currentMillis)
{
  if(currentMillis < previousMillis) return(currentMillis + OVERFLOW + 1 - previousMillis);
  return(currentMillis - previousMillis);
}

You can use it like:

uint32_t myTimeStamp = millis();
//... some code here
if(compareMillis(myTimeStamp, millis()) > 2000)
{
  printf("2 seconds have passed\n");
}

Here are unit tests https://github.com/schef/nrf_millis

1
comment
by Nguyen Hoan Hoang

Flashing nRF5x firmware using any dumb terminal program via standard serial COM port

There are times that we needed to flash the nRF5x series on a PC where the development software were not installed. The problem could be worst when network access is limited. With a HEX file on hand, it is now possible to flash the nRF5x device using regular dumb terminal software such as CoolTerm, Putty,... through the COM port. This is the new feature of the IDAP-Link, a CMSIS-DAP compatible debug jtag. This feature is called 'Console Mode'. Please note that programming the nRF5x is actually done using SWD. The COM port is only for user interface.

image description

To active the...

0
comments
by Yaniv Nis

How to Debug the nRF52 Interrupts — Useful Tips

Debugging interrupts in not an easy task. During the development of Jumper's Emulator, we gather few useful tips that we think can help you all when debugging the nRF52 interrupts. Hope it will help you all.

https://medium.com/jumperiot/how-to-debug-the-nrf52-interrupts-useful-tips-19accc2b1aa9

Enjoy!

P.S.

As we are working on making our emulator better and better, we'd love to get your feedback. If you like what we are doing and want to share with us your thoughts, use this Google Form.

0
comments
by Mohammad Afaneh

The ultimate guide to maximizing your BLE and Bluetooth 5 data throughput

image description

In my 2nd blog post in the series on Bluetooth 5, I go over one of the main features of Bluetooth 5: 2x speed.

The advertised 2x speed of Bluetooth 5 is great! BUT, what does that even mean? Is it 2x "1 Mbps" = 2 Mbps? Is that even achievable in terms of your application data throughput? How do you optimize for maximum throughput? How does it affect power consumption?

There are at least a few variables that determine your application throughout. In this blog post, I put them all in one list, explain each of them, and then detail...

2
comments
by Yaniv Nis

How to build a monitoring and analytics system for your IoT embedded devices almost for free

Embedded devices are no longer ship and forget products. Once deployed, a connected embedded device is updated and provide with services and not just functionality. This paradigm shift requires adopting DevOps practices and requires monitoring devices' operation to mitigate production issues. Once you monitor your entire distributed embedded system, you can run analytics for product improvements and predictive maintenance.

The link below outlines a cookbook for building monitoring and analytics system for connected embedded devices. We've included a working sample for nRF52 based devices that use BLE GATT and a GW. We used services that are open source, and...

1
comment
by Elecfreaks

Micro:bit Experiment 01: LED Scroller —— Elecfreaks Mirco: bit Starter Kit Course

Introduction:

LED has wide applications. We can see most signal lights we saw in our daily life use LED as its major illuminate component. In today’s experiment, we are going to use Micro:bit to make 2 LED beads twinkle alternatively.

Components List:

Hardware:

1 X Micro: bit Board

1 X Micro USB Cable

1 X Microbit Breadboard Adapter

1 X Transparent Breadboard – 83*55 mm

2 X LED

2 X 100 Ohm Resistors

1 X Breadborad Jumper Wire 65pcs pack

Tips: If you have bought Elecfreaks Micro: bit Starter kit, it will conclude all of the above...

3
comments
by Mohammad Afaneh

Bluetooth 5 e-book (plus video tutorials, exercises, and source code)

Do you get sick of scouring the internet for Bluetooth 5 and BLE resources? Do you feel lost or get stuck during the development of your BLE project? Are you excited about Bluetooth 5 and its possibilities but don't know where to start? Do you experience pain when referring to the official spec and its daunting 2,800+ pages??!

You're not alone... I've been there and experienced every single one of those pains myself! Back in March 2016, I decided to start a blog about Bluetooth Low Energy. I wanted to provide a one-stop resource for others...

2
comments
by Alexis Duque

Make your Bluetooth Low Energy IoT device more secure with Visible Light Communication

About IoT security

Since the Internet of Things is still in the emerging phase, ensuring security and privacy is an important issue that must be addressed and resolved now.

The number of IoT and connected objects grows exponentially, so their security exploits will have more and more repercussions, making them very attractive for the hackers. Recent news and the growing IoT track at security conferences such as Blackhat, or Defcon perfectly illustrates this phenomenon.

About Bluetooth

In regards to Bluetooth, the SIG greatly enhanced the BLE security releasing at the end of 2014 the Bluetooth Core Specification 4.2. This...

2
comments
by dansheme

How We Found a Bug In Nordic’s SDK Using Jumper’s Emulator

shutterstock_80665672.jpg

We were trying to run the PPI example from the nRF5 SDK on our emulator. We quickly revealed a bug in the configuration of one of the timers by having a look at the HW log: image description

Check out our Medium blog for the full story.

Note: I could not find any way to submit a bug report to Nordic but I'm sure it will be fixed soon

0
comments
by Krzysztof Chruściński

New Command Line Interface and enhanced Logger - part 2.

If you haven't yet get to know command line interface (nrf_cli) module significantly improved in nRF5 SDK 14.0.0 please check this blog post: New command line interface - part 1

Enhanced logger and console

It seems like a natural fit to use the console as a way of presenting logs to the user, as well as configuring which logs should be printed, to avoid flooding the console with logs. There are other natural fits for the logger, like storing logs to non-volatile memory, so logger could not be tightly coupled with the console. On the other hand, it...

0
comments
by JustinLee

MultiLink with Peripherals & Centrals in the nRF5 SDK v13

Introducing concurrent MultiLinks

I’d like to inform that it is possible to configure concurrent-multiple connections with several Centrals and Peripherals.
This behavior can be possible to use examples in the nRF5 SDK v13.
In the nRF5 SDK v13, “multiperipheral” example has been come newly.

So, “multilink_central” and “multiperipheral” can be used together.

MultiLink examples in the nRF5 SDK v13

There are two multilink examples for Central and Peripheral which are located in the nRF5 SDK v13.

  • “nRF5_SDK_13.0.0_04a0bfd\examples\ble_central\ble_app_multilink_central”

image description

  • “nRF5_SDK_13.0.0_04a0bfd\examples\ble_peripheral\experimental_ble_app_multiperipheral”

image description

These solutions allow multi-connections from Peripherals as the Central Role and...

0
comments
by gamnes

Nordic Thingy:52 Raspberry Pi Python Interface

Thingy:52 Python Raspberry Pi Interface

This blog is a follow up to both the Nordic Thingy:52 node.js/Raspberry Pi demos and the https://devzone.nordicsemi.com/blogs/1160/walkthrough-of-nordic-thingy52-nodejs-raspberry-pi/ blog posts. It will go through how you can set up and develop Python Thingy:52 applications on the Raspberry Pi.

Raspberry Pi Setup

Please follow the setup as explained in Node.js walkthrough to make sure the Raspberry Pi is setup as assumed for this blog post. We will be running the Raspbian operating system.

Running the Example

GitHub Clone

UPDATE: The Thingy:52 Raspberry Pi python...

1 2 3 ... 15 »

Tags