u-blox EVK-W16 User Manual

Evaluation kit

Advertisement

Quick Links

EVK-W16
Evaluation kit for ELIN-W160 and
ODIN-W160 modules
User Guide
Abstract
This document describes how to set up the EVK-W16 evaluation kit
to evaluate u-blox ELIN-W160 and ODIN-W160 multiradio modules.
It also provides an overview of the ELIN-W160 module, the build
environment, how to download the firmware for ELIN-W160 and
brief information on how to modify and add new functionality to
Yocto build environment.
www.u-blox.com
UBX-15017061 - R02

Advertisement

Table of Contents
loading

Summary of Contents for u-blox EVK-W16

  • Page 1 ODIN-W160 modules User Guide Abstract This document describes how to set up the EVK-W16 evaluation kit to evaluate u-blox ELIN-W160 and ODIN-W160 multiradio modules. It also provides an overview of the ELIN-W160 module, the build environment, how to download the firmware for ELIN-W160 and brief information on how to modify and add new functionality to Yocto build environment.
  • Page 2 The information contained herein is provided “as is” and u-blox assumes no liability for the use of the information. No warranty, either express or implied, is given, including but not limited, with respect to the accuracy, correctness, reliability and fitness for a particular purpose of the information.
  • Page 3: Table Of Contents

    EVK-W16 - User Guide Contents Contents ..........................3 Introduction ........................5 Overview .............................. 5 Development board ..........................5 1.2.1 System requirements ......................... 7 Getting started ......................8 Jumper configuration..........................8 GPIO LED overview ..........................9 UART Terminal ............................ 10 Ethernet over USB..........................11 Working with Wi-Fi..........................
  • Page 4 EVK-W16 - User Guide Related documents and links ..................37 Revision history ........................ 37 Contact ..........................38 UBX-15017061 - R02 Advance Information Contents Page 4 of 38...
  • Page 5: Introduction

    EVK-W16 - User Guide 1 Introduction This document describes how to set up the u-blox EVK-W16 evaluation kit to perform some basic operations with Wi-Fi, Bluetooth and the terminal. The EVK-W16 also serves as reference platform for the ODIN-W160 module and this guide also demonstrates the capabilities of the ODIN-W160 multiradio module. The setup process takes around 10 minutes.
  • Page 6 Access to almost all CPU signals  JTAG for ELIN-W160 CPU  Three GPIO buttons  Four user customizable LEDs  Antenna connector  Power switch Figure 2: Overview of EVK-W16 evaluation kit UBX-15017061 - R02 Advance Information Introduction Page 6 of 38...
  • Page 7: System Requirements

    EVK-W16 - User Guide Figure 3: Overview of EVK-W16 connectors 1.2.1 System requirements The minimum system requirements are provided below:  EVK-W16 evaluation kit ELIN-W160 module EVB-W16 evaluation board 9-12 V power adapter 1A USB A - B mini cable...
  • Page 8: Getting Started

    JP7.9 - JP8.10. This enables the UART1 transceiver on the DSUB J24 and connects RXD and TXD to the DSUB connector. 4. Set the jumper on JP12 between pin 1 and 2. This sets 3.3 V to the Ethernet PHYs. Figure 4: EVK-W16 jumper configuration 5. Connect a regulated power supply to the J16. UBX-15017061 - R02...
  • Page 9: Gpio Led Overview

    7. Connect a USB cable to the FTDI chip. The LED LD18 will indicate USB Voltage. Figure 5: EVK-W16 GPIO LED overview 8. Press PWR TGL (SW11) to start the OEM Module. Your OS should detect the FTDI chip and provide 4 UARTs.
  • Page 10: Uart Terminal

    EVK-W16 - User Guide U-Boot SPL 2013.10 (Jun 10 2015 - 12:02:59) U-Boot 2013.10 (Jun 10 2015 - 12:02:59) I2C: ready DRAM: 256 MiB NAND: 512 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Net: cpsw:3 is connected to cpsw.
  • Page 11: Ethernet Over Usb

    EVK-W16 - User Guide 2.4 Ethernet over USB Connect the EVK-W16 to the PC using a USB cable (Type-A to Micro-AB) inserted into USB0 port. On Linux, you should be able to find the USB device on your PC using the following commands:...
  • Page 12 EVK-W16 - User Guide Steps Instructions Selected interface 'wlan0' Interactive mode Verify whether the wlan0 > status interface is up. wpa_state=DISCONNECTED address=de:ad:be:ef:00:00 Perform a scan to see the > scan available networks. <3>CTRL-EVENT-SCAN-RESULTS <3>WPS-AP-AVAILABLE > scan_results bssid / frequency / signal level / flags / ssid...
  • Page 13: Bluetooth

    EVK-W16 - User Guide Steps Instructions # udhcpc -i wlan0 udhcpc (v1.21.1) started Sending discover... Sending discover... Sending discover... Sending select for 192.168.0.89... Lease of 192.168.0.89 obtained, lease time 43200 /etc/udhcpc.d/50default: Adding DNS 192.168.0.1 You can now ping the router to # ping 192.168.0.1...
  • Page 14 EVK-W16 - User Guide Steps Instructions <EDR eSCO 2 Mbps> <EDR eSCO 3 Mbps> <3-slot EDR eSCO> <extended inquiry> <LE and BR/EDR> <simple pairing> <encapsulated PDU> <err. data report> <non-flush flag> <LSTO> <inquiry TX power> <EPC> <extended features> Features page 1: 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00...
  • Page 15: Ethernet

    EVK-W16 - User Guide 2.7 Ethernet Ethernet on the ELIN-W160 is set to obtain an IP address through DHCP automatically. To see the interfaces, use ifconfig: # ifconfig -a eth0 Link encap:Ethernet HWaddr 20:CD:39:FC:1F:42 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0...
  • Page 16: Benchmark

    EVK-W16 - User Guide 2.8 Benchmark to test the throughput of the network connection. Install on your PC if not installed previously iperf iperf and start as a server. iperf // On HOST PC $ sudo apt-get install iperf $ iperf -s -u is pre-installed on the ELIN-W160 module.
  • Page 17: Yocto Environment Setup

    EVK-W16 - User Guide 3 Yocto environment setup This section provides information on how to set up the yocto build environment and make the default factory image download to the target. For more information, refer to Yocto Quick Start Guide [4], which provides detailed information about the Yocto build system.
  • Page 18 Run the following setup script that will download the required repositories and provide you with initial configuration files required by Yocto. This will download the poky, openembedded, ti and u-blox meta layers (roughly 150 MiB). On successful download, you should have a poky folder populated with the required meta layers.
  • Page 19 In the bblayers.conf file, you can see the paths for the different meta-layers, which bitbake requires to build the u-blox distribution. Here, add your own meta-layer if you would like to add any layers of your own. # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly LCONF_VERSION = "6"...
  • Page 20: Build Default Distribution

    EVK-W16 - User Guide The local.conf file contains local settings, such as the machine on which distro can be built. The DL_DIR variable should match the location where you want to save all your downloaded tarballs and git archives from the build process.
  • Page 21 EVK-W16 - User Guide /elin-tools/scripts/poky/build$ bitbake core-image-ublox-dev Parsing recipes: 100% |#########################################| Time: 00:23:17 Parsing of 1666 .bb files complete (0 cached, 1666 parsed). 2158 targets, 96 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies Build Configuration: BB_VERSION = "1.26.0"...
  • Page 22: Download Firmware To Target

    EVK-W16 - User Guide 3.2 Download firmware to target The images generated during build are located in the build directory under tmp/deploy/images/ELIN-W16-evk/ $ ls tmp/deploy/images/ELIN-W16-evk/ core-image-ublox-dev-elin-w160-evk-20160208090855.rootfs.manifest core-image-ublox-dev-elin-w160-evk-20160208090855.rootfs.tar.bz2 core-image-ublox-dev-elin-w160-evk-20160208090855.rootfs.ubi core-image-ublox-dev-elin-w160-evk-20160208090855.rootfs.ubifs core-image-ublox-dev-elin-w160-evk.manifest core-image-ublox-dev-elin-w160-evk.tar.bz2 core-image-ublox-dev-elin-w160-evk.ubi core-image-ublox-dev-elin-w160-evk.ubifs MLO-elin-w160-evk MLO-elin-w160-evk-v2013.10+gitAUTOINC+8db1ee3025-r0 modules--3.19+git0+93a3344328-r0-elin-w160-evk-20160208090855.tgz modules-elin-w160-evk.tgz README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt ubinize.cfg u-boot-elin-w160-evk.img u-boot-elin-w160-evk-v2013.10+gitAUTOINC+8db1ee3025-r0.img...
  • Page 23: Factory Restore

    $ sudo apt-get install dfu-util The scripts are matched to the firmware from u-blox EVK though it can be easily changed to match other images. Power off the module and connect the board with a USB micro into the USB0 interface on your PC and the FTDI chip to your PC.
  • Page 24 EVK-W16 - User Guide U-Boot# nand erase.chip NAND erase.chip: device 0 whole chip Erasing at 0x1ffe0000 -- 100% complete. To set the ELIN-W160 in DFU mode: U-Boot# dfu nand 0 using id 'nand0,0' using id 'nand0,1' using id 'nand0,2' using id 'nand0,3'...
  • Page 25: Build And Install Package

    EVK-W16 - User Guide 5 Build and install package The Yocto provides a package manager, which allows for upgrade of existing programs and user space applications. While building the target images, Yocto also generates the packages that can be downloaded to the target through the package manager.
  • Page 26: Sample Python Package

    EVK-W16 - User Guide You can now update and recompile packages on your host machine and easily download them to your target. Update the opkg feed on the target to sync the package streams: # opkg update 5.2 Sample Python package To test the setup of the package, python is downloaded and built via build tool bitbake.
  • Page 27 EVK-W16 - User Guide On completion, you can install python on your target. First update your package feed to get the newly compiled python package. root@ELIN-W16-evk:~# opkg update Downloading http://192.168.1.1/ipk/armv7a-vfp-neon/Packages.gz. Inflating http://192.168.1.1/ipk/armv7a-vfp-neon/Packages.gz. Updated list of available packages in /var/lib/opkg/ublox. root@ELIN-W16-evk:~# opkg install python-core Installing python-core (2.7.3-r0.3) to root...
  • Page 28: Overview Of Yocto Meta Layers

    6.2 Application layer This is the layer which the applications, packages and policies for the end product are defined. 6.3 u-blox layers u-blox provides the following two layers:  meta-ublox Hardware specific layer for mandatory packages and configuration Do not override or modify as it might void warranty and regulatory requirements.
  • Page 29: Meta-Ublox Layer

    EVK-W16 - User Guide 6.3.1 meta-ublox Layer meta-ublox ├── conf │ ├── layer.conf └── │ machine │ ├── elin-w160-evk.conf └── │ include └── │ elin-w160.inc ├── COPYING.MIT ├── README ├── recipes-bsp │ ├── elin-eeprom-reader │ │ ├── elin-eeprom-reader └── │...
  • Page 30: Meta-Ublox-Extras Layer

    The recipes-bsp layer contains hardware specific recipes for u-boot and radio configuration. The radio directories (calibrator, ti-bt-firmware, ublox-eeprom-parser) should not be altered as they are a part of the regulatory compliance. Any modification to these layers might void the u-blox warranty and breaks the regulatory requirements.
  • Page 31: Yocto, Openembedded, And Ti Layers

    The Yocto, OpenEmbedded, and TI layers contain the key information on which the u-blox layers are created upon. The u-blox layers require a specific revision of the layers and are managed by the setup script. 6.4 Working with the meta layers Sometimes, it is necessary to modify or override the settings in a layer.
  • Page 32 EVK-W16 - User Guide Find below is a snapshot of the newly created folder meta-foobar: meta-foobar/ ├── conf │ └── layer.conf ├── COPYING.MIT ├── README └── recipes-example └── example ├── bar-0.1 │ ├── example.patch │ └── helloworld.c └── bar_0.1.bb The configuration file for the new meta layer is created by the script. The script also adds a hello_world example program and a bitbake recipe to build the program.
  • Page 33: Overriding Or Modifying A Meta Layer Or An Image

    EVK-W16 - User Guide $ cat meta-foobar/recipes-example/example/bar-0.1/helloworld.c #include <stdio.h> int main(int argc, char **argv) printf("Hello World!\n"); return 0; To build the new recipe, add the meta layer to the bblayers.conf: $ vi build/conf/bblayers.conf # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly LCONF_VERSION = "6"...
  • Page 34 EVK-W16 - User Guide $ cd meta-foobar $ mkdir -p recipes-core/image $ cd recipes-core/image $ echo 'CORE_IMAGE_EXTRA_INSTALL += "bar"' > ublox-image-dev.bbappend $ cd ../../../build $ bitbake core-image-ublox-dev Loading cache: 100% |############################################################################################| ETA: 00:00:00 Loaded 1834 entries from dependency cache. NOTE: Resolving any missing task queue dependencies...
  • Page 35: Appendix

    EVK-W16 - User Guide Appendix A Glossary Abbreviation / Term Explanation / Definition Abstract Control Model Central Processing Unit Clear To Send Device Firmware Upgrade Dynamic Host Configuration Protocol DHCP Evaluation Kit General-Purpose Input/Output GPIO Light-Emitting Diode Network File System...
  • Page 36: B Policies And Configuration

    EVK-W16 - User Guide B Policies and configuration Interface/Service Package/Policy Comment Console UART0 115200 8N1, via FTDI chip Shell Device Manager udev Logging daemon syslog Services hiawatha web server /etc/hiawatha/hiawatha.conf Avahi mDNS /etc/ uDHCP client uDHCP server /etc/udhcpd.conf (used for USB0) wpa_supplicant /etc/wpa_supplicant.conf...
  • Page 37 Initial release. 1-Mar-2016 mjer,fbro,msen, Document status updated to Advance Information. Updated the instructions. Applied kgom u-blox word template. Updated to ELIN FW rev 2.0.0.0. Editorial updates. UBX-15017061 - R02 Advance Information Related documents and links Page 37 of 38...
  • Page 38 EVK-W16 - User Guide Contact For complete contact information visit us at www.u-blox.com. u-blox Offices North, Central and South America Headquarters Asia, Australia, Pacific Europe, Middle East, Africa u-blox America, Inc. u-blox Singapore Pte. Ltd. u-blox AG Phone: +1 703 483 3180...

Table of Contents