Advertisement

Quick Links

Silica JenNode - JN5168 demobaord
Documentation
Release 0
Silica
Mar 20, 2017

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the JN5168 and is the answer not in the manual?

Questions and answers

Summary of Contents for Avnet Silica JN5168

  • Page 1 Silica JenNode - JN5168 demobaord Documentation Release 0 Silica Mar 20, 2017...
  • Page 3: Table Of Contents

    ......1.1.6 Upgrading Flash GUI tool (for JN5168) ......
  • Page 5 Silica JenNode - JN5168 demobaord Documentation, Release 0 Version 1.00 Copyright (C)2016 Avnet Silica company Date 30 july 2013 Contents...
  • Page 6 Silica JenNode - JN5168 demobaord Documentation, Release 0 Contents...
  • Page 7: Introduction

    CHAPTER INTRODUCTION Silica Rialto Board is useful system to evaluate a basic IEE802.15.4 network using JN5168 wireless module. Rialto board has a single built-in USB dongle. Simply switching serial channel from terminal application to programming software, you can perform two alternate functions: a - Evaluate network with simple serial monitor (using a PC terminal such as HyperTerminal) b - Program Firmware into JN5168 module (using JN-SW-4007-Flash-Programmer v1.8.9)
  • Page 8: Installing Jennic Developement Suite

    Install.zip also include JN-SW-4041-SDK-Toolchain-v.1.1.exe and JN-SW-4065-JN516x-JenNet-IP-SDK-v857.exe to install developement suite. For JN5168 modules programming, you must install FlashGUI programmer from JN-SW-4007 (included in Install.zip). Please, note that JN-UG-3007 refers to Flash GUI programmer version 1.8.4, and JN-SW-4047 contains new release 1.8.9 of Flash GUI programmer. See release note document included in JN-SW-4047 package. The release 1.8.9 must be installed for JN516x modules programming.
  • Page 9: Installing Jennic Toolchain Jn-Sw-4041

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Then, you are ready for Jennic Developement Suite setup. Installing Jennic Toolchain JN-SW-4041 Double click on JN-SW-4041-SDK-Toolchain-v1.1.exe. Leave unchanged all default setting in the following dialog box. When appear verify checkbox selection as image below...
  • Page 10 Silica JenNode - JN5168 demobaord Documentation, Release 0 During installation, if you don’t have Java Runtime on your PC, this popup will appear: Click OK button and proceed following Java Installer instructions Chapter 1. INTRODUCTION...
  • Page 11 Silica JenNode - JN5168 demobaord Documentation, Release 0 When installation ends, the followiong will appear: click “next” button, and setup will ask you to perform a system restart 1.1. Installing Jennic Developement Suite...
  • Page 12: Installing Jn-An-4065 Library

    Silica JenNode - JN5168 demobaord Documentation, Release 0 click “OK” and wait for restart Installing JN-AN-4065 library Double click on JN-SW-4065-JN516x-JenNet-IP-SDK-v857.exe. Leave unchanged all default setting in the following dialog box. When appear verify checkbox selection as image below, then click “Next”...
  • Page 13: Starting Jennic Toolchain

    Silica JenNode - JN5168 demobaord Documentation, Release 0 When library installation has finished, Jennic Toolchain is ready to start Starting Jennic Toolchain Open Start and go to Jennic –> Eclipse (as show in figure below) click on Eclipse to start program Jennic Toolchain will ask for workspace.
  • Page 14 Silica JenNode - JN5168 demobaord Documentation, Release 0 Jennic Eclipse will open Welcome tab. Close Welcome tab by clicking on X red circled in figure above Now the Jennic Eclipse main window will appear Chapter 1. INTRODUCTION...
  • Page 15: Installing Flash Gui Tool Programmer

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Close Eclipse and proceed with next steps. Installing Flash GUI Tool Programmer In order to complete developement suite setup, you must install Flah Programmer as a external tool. Open file menu, and select “Import”...
  • Page 16 Silica JenNode - JN5168 demobaord Documentation, Release 0 chose “Run/Debug –> Launch Configurations and click “Next” button Chapter 1. INTRODUCTION...
  • Page 17 Silica JenNode - JN5168 demobaord Documentation, Release 0 click “Browse” button and navigate to C:\Jennic\Tools\eclipse_config and then click “OK” 1.1. Installing Jennic Developement Suite...
  • Page 18 Silica JenNode - JN5168 demobaord Documentation, Release 0 Sign “Flash GUI Tool” and “Flash CLI Tool” checkbox Please, note that Eclipse default is all tool checked, but as actual for JN5168 application only the two Flash tool are Chapter 1. INTRODUCTION...
  • Page 19 Silica JenNode - JN5168 demobaord Documentation, Release 0 needed. Click “Finish” button to perform Flash Tools setup. When finished, you can find the tools in the Run–>External Tools menu They can also be accessed from the drop-down arrow next to the tools symbol, as show in figure below...
  • Page 20: Upgrading Flash Gui Tool (For Jn5168)

    Upgrading Flash GUI tool (for JN5168) We must upgrade Flash GUI tool to release 1.8.9, because the tool just installed does’n work with JN5168. To make this, unpack the zip file JN-SW-4007.zip into new folder and navigate to Tools\FlashProgrammer located inside this new folder.
  • Page 21: Winxp Troubleshooting

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Select all files, right click an copy. Open folder C:\Jennic\Tools\flashprogrammer and paste all file inside this folder. Now Jennic Eclipse setup is complete and the suite is ready for work with Rialto Project!
  • Page 22: Cygwin1.Dll Troubles With Winxp

    Silica JenNode - JN5168 demobaord Documentation, Release 0 In this case, go to FTDI driver page download and install Windows driver. CYGWIN1.DLL TROUBLES WITH WINXP Jennic SDK Toolchain install CygWin API inside the folder C:\Jennic\cygwin. Some XP installation have the file “cygwin1.dll” inside C:windowssystem32 folder.
  • Page 23: Quick Start Guide

    • One or more USB type-A extension cable • PC with terminal software (such as HyperTerminal) Software requirements • Jennic SDK toolchain (JN-SW-4041), JN5168 stack library (JN-SW-4065) and Flash GUI tool (JN-SW-4007) • Rialto_Jennic firmware • PC terminal emulator (such as HyperTerminal)
  • Page 24: Hardware Setup

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Hardware setup Plug Rialto Board into USB port (also using USB type-A extension cable) with USB type-A extension cable Chapter 1. INTRODUCTION...
  • Page 25 Silica JenNode - JN5168 demobaord Documentation, Release 0 Wait for properly USB dongle driver installation When drivers are ready you can connect one or more Rialto Board (at least two for firmware evaluation) 1.3. Quick start guide...
  • Page 26 Silica JenNode - JN5168 demobaord Documentation, Release 0 Tip: See Control Panel of your PC and note COM Port number configured for each Rialto Board (figure above). For any troubles during USB driver installation in Windows XP see at WINXP TROUBLESHOOTING Connecting two Rialto Board (minimun number for full firmware evaluation), take care at COM number installed on...
  • Page 27 Silica JenNode - JN5168 demobaord Documentation, Release 0 SerizII plugin Rialto board has in bottom layer two strip (6 and 4 way) and can be used as a plugin for SerizII. 1.3. Quick start guide...
  • Page 28 Silica JenNode - JN5168 demobaord Documentation, Release 0 Chapter 1. INTRODUCTION...
  • Page 29: Hyperterminal Settings

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Important: Before using Rialto boards as SerizII plugin, you must download and install the proper firmware revision of the SerizII board (SerizRialto.zip). For all instruction and information about, see at Silica SerizII...
  • Page 30: Rialto Board Fw Installation & Setup

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Rialto Board FW installation & setup • In the folder C:\Jennic\Application create new folder named Rialto_Jennic Chapter 1. INTRODUCTION...
  • Page 31 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Unzip all files from Rialto_Jennic_1_0.zip into the folder C:\Jennic\Application\Rialto_Jennic just created • Go to Start –> Jennic –> JN-SW-404x products –> Eclipse and click on to start Jennic Eclipse 1.3. Quick start guide...
  • Page 32 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Check if workspace setting is like figure below. Then click OK to proceed. • Now you can see the Eclipse Main Window Chapter 1. INTRODUCTION...
  • Page 33 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Select menu File –> Import 1.3. Quick start guide...
  • Page 34 Silica JenNode - JN5168 demobaord Documentation, Release 0 • In the dialog box that will open, click on General, select Existing Projects Into Workspace and after click “Next” button: new dialog will open. Chapter 1. INTRODUCTION...
  • Page 35 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Click on “Browse...” button an navigate to C:\Jennic\Application\Rialto_Jennic folder. Click on “OK” button 1.3. Quick start guide...
  • Page 36 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Check options and setting as the image below, then click “Finish” button to import project. Chapter 1. INTRODUCTION...
  • Page 37 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Wait for project import, then you can see Rialto_Jennic project in the Project Explorer windows of Eclipse Platform. 1.3. Quick start guide...
  • Page 38 Silica JenNode - JN5168 demobaord Documentation, Release 0 • First of all, right click over “Rialto_Jennic” in the Project Exporer window, then select “Clean Project”. After cleaning, a first build will start automaticaly • Take care at image above. Expand project, and see at “Console” tab: you can find a log that ends with “Gener- ating binary ..
  • Page 39 Silica JenNode - JN5168 demobaord Documentation, Release 0 Tip: If you can’t see in the “Console” tab the message above, make shure that “Build Automatically” option (inside “Project” menu) is set 1.3. Quick start guide...
  • Page 40 Silica JenNode - JN5168 demobaord Documentation, Release 0 Note: The binary file for Coordinator has been generated and ready for Rialto Board programming Tip: don’t care if you have this warning (see Problems tab). • Now you can build End_Node project. Click on drop-down arrow next to Hammer Icon (blue circled in image below) Chapter 1.
  • Page 41 Silica JenNode - JN5168 demobaord Documentation, Release 0 then click on “Rialto_EndD”. Build will start. • When build has finished, in the Project Explorer tab expand Rialto_Coord and Rialto_EndD Build folders. The result in image below. 1.3. Quick start guide...
  • Page 42: Programming Rialto Board With Flash Gui Tool

    Silica JenNode - JN5168 demobaord Documentation, Release 0 You have built the two binary files and you are ready for program Rialto Board Programming Rialto Board with Flash GUI Tool Before starting Flash GUI programmer tool, you must connect Rialto Board whit built-in USB dongle. Please refer to Hardware Setup chapter on this document to check connection •...
  • Page 43 Silica JenNode - JN5168 demobaord Documentation, Release 0 Dont’t care of error in Console tab: no troubles or malfunctioning will be affect board program! • See at Flash GUI windows: check if version is 1.8.9. If not, refer Upgrading Flash GUI tool (for JN5168) Installing Jennic Developement Suite guide 1.3.
  • Page 44 Silica JenNode - JN5168 demobaord Documentation, Release 0 - Step 1: make these actions: 1) Check and/or select appropriate COM port (green circled). You can find find out which serial communications port your PC has allocated to the Rialto Board by checking in the Control Panel–>Hardware–>device Manager–>COM port...
  • Page 45 Silica JenNode - JN5168 demobaord Documentation, Release 0 Note: Take care at COM port: if it’s already busy with other applications (such as HyperTerminal), you cannot find it in COM port dropdown menu of Flash GUI Tool • Step 2: click “Browse” button red circled, navigate to C:\Jennic\Application\Rialto_Jennic\Rialto_Coord\Build and select bin file “Rialto_Coord_JN5168.bin”.
  • Page 46 Silica JenNode - JN5168 demobaord Documentation, Release 0 - Step 3: in the “Program” window will appear C:\Jennic\Application\Rialto_Jennic\Rialto_Coord\Build\Rialto_Coord_JN5168.bin. Clik on “Program” button to start board programming. Chapter 1. INTRODUCTION...
  • Page 47 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Step 4: wait for verifyng... 1.3. Quick start guide...
  • Page 48 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Step 5: Click “OK” button and board will reset and start. Chapter 1. INTRODUCTION...
  • Page 49 Silica JenNode - JN5168 demobaord Documentation, Release 0 Tip: program End-Node, repeat from step navigate C:\Jennic\Application\Rialto_Jennic\Rialto_EndD\Build select “Rialto_EndD_JN5168.bin” When you have programmed even Coordinator that End-node, you can select FW binary by clicking the drop-down arrow (red circled in image below) and select from drop-down menu Now you have finished all setup necessary to evaluate, debug and make changes inside Rialto Firmware.
  • Page 50: Ready To Run" Rialto Kit

    Silica JenNode - JN5168 demobaord Documentation, Release 0 You can plug the Rialto boards into USB ports of your PC, open HyperTerminal sessions and use Serial Monitor command for evaluate the main Firmware functions. For further details you can read the guides: Serial Monitor guide Tip &...
  • Page 51 Silica JenNode - JN5168 demobaord Documentation, Release 0 End-Node Serial Monitor main menu By default, Coordinator has “verbose mode” enabled and End-Node has “auto send sensors data” enabled. “Verbose 1.4. “Ready to run” Rialto Kit...
  • Page 52 Silica JenNode - JN5168 demobaord Documentation, Release 0 mode” shows for every transaction (both TX and RX) more data detail, such as HEX format (enclosed in square bracket) When verbose mode is disabled, Serial Monitor gets out only the string or data. It is useful to receive VCARD data from SerizII and save these in VCF format.
  • Page 53 HyperTerminal settings) • See SerizII display: it will inform that JN5168 End-Node is installed. • Wait for End-Node restart. See blue-leds flash, that will be slow. No network connection and no device associ- ated. (You can also verify by typing ‘N’ command on Coordinator serial monitor) •...
  • Page 54: Firmware Specification

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Important: Sleep Wake Time can be set changing default definition in define.h file. For more information, read Poll and Sleep settings After this 3 Labs, use Serial Monitor guide and enjoy with Rialto Boards!! Firmware specification...
  • Page 55: Firmware Restrictions

    Silica JenNode - JN5168 demobaord Documentation, Release 0 This is the complete set of guides to know the structure and operation of the skeleton code contained in the template Other documents: JN-UG-3087-JN516x-Integrated-Peripherals-API.pdf JN516x integrate peripherals API user guide (hardware library functions details) JN-DS-JN5168MO-1v2.pdf JN5168 module hardware manual...
  • Page 56: Project Structure

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Project structure The application’s file structure includes the following folders: • Rialto_Coord – contains source files and makefiles for the PAN Co-ordinator – Rialto_Coord.c specific application file for Coordinator functions (see chapter 3.2.1 of “JN-RM- 2024”...
  • Page 57: Serial Monitor Guide

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Serial Monitor guide Using serial monitor You can use USB built-in dongle on Rialto Board for programming or Serial Monitor purpose. The only attention is that you must “deselect” COM port in the Flash GUI Tool (or close program) before connect with Terminal (i.e.
  • Page 58 Silica JenNode - JN5168 demobaord Documentation, Release 0 and after starts main menu as follow: Chapter 1. INTRODUCTION...
  • Page 59 Silica JenNode - JN5168 demobaord Documentation, Release 0 Serial Monitor main messages and commands • End-Node detected and associated 1.6. Serial Monitor guide...
  • Page 60 Silica JenNode - JN5168 demobaord Documentation, Release 0 • End-Node poll fail and dissociated (details orange circled) • Send data to End-Node (“W” command) Chapter 1. INTRODUCTION...
  • Page 61 Silica JenNode - JN5168 demobaord Documentation, Release 0 - Sendig data to End-Node result Red circled: detail of data message Blue circled: sending End_Node address Green circled: data string hex format Yellow circled: data string terminator (same for all data sending) Orange circled: Data sending result Important: In the Coordinator Monitor W command will send a “string”...
  • Page 62 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Set Coordinator PAN.ID (‘c’ command) Please, note that ‘c’ command (lowercase) set only coordinator PAN.ID. To configure all network PAN.ID, use ‘C’ Chapter 1. INTRODUCTION...
  • Page 63 Silica JenNode - JN5168 demobaord Documentation, Release 0 command (uppercase) • Set network PAN.ID (“C” command) 1.6. Serial Monitor guide...
  • Page 64 Silica JenNode - JN5168 demobaord Documentation, Release 0 - See image below: Red circled: detail of PAN.ID configuration message Blue circled: PAN.ID message status Green circled: PAN.ID network global settings after system restart Chapter 1. INTRODUCTION...
  • Page 65 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Default PAN.ID (“I” command) • Request End-Node ADXL362 data (“S” command) 1.6. Serial Monitor guide...
  • Page 66 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Received End-Node ADXL362 data • Request End-Node SENS300 data (“3” command) Chapter 1. INTRODUCTION...
  • Page 67 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Received End-Node SENS300 data 1.6. Serial Monitor guide...
  • Page 68: End-Node Serial Monitor

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Important: All sensors data are transmitted in 32 bit HEX format, without any conversion in ASCII format. Values are position dependent, and must be read scanning the data string received Note: In the Coordinator Monitor S and 3 command will answers a selected End_Node to read and send sensor data.
  • Page 69 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Coordinator found, End-Node association • Coordinator lost, End-Node dissociation 1.6. Serial Monitor guide...
  • Page 70 Silica JenNode - JN5168 demobaord Documentation, Release 0 • Set data to send to Coordinator (“W” command) Chapter 1. INTRODUCTION...
  • Page 71 Silica JenNode - JN5168 demobaord Documentation, Release 0 - Data sending Blue arrow: string to send Orange circled: hex string format Red circled: End-Node address that send the message Blue circled: Data sending result • End-Node network status (“N” command)
  • Page 72 Silica JenNode - JN5168 demobaord Documentation, Release 0 • End-Node ADXL362 data sending (“S” command) • End-Node SENS300 data sending (“3” command) Chapter 1. INTRODUCTION...
  • Page 73 Silica JenNode - JN5168 demobaord Documentation, Release 0 • End-Node Auto Send Sensors Data toggle (”!” command) disable auto send 1.6. Serial Monitor guide...
  • Page 74 Silica JenNode - JN5168 demobaord Documentation, Release 0 enable auto send • End-Node Sleep Mode (“Z” command) Chapter 1. INTRODUCTION...
  • Page 75: Tip & Tricks

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Important: In End-Node module, configuration command “C” perform only local device PAN.ID settings. If you use this command, End-Node will dissociate himself until it find a Coordinator with same new PAN.ID. The setting sequence is identical to that of the Coordinator command “c”(lowercase)
  • Page 76 Silica JenNode - JN5168 demobaord Documentation, Release 0 Rialto pin strip schematich --> RxD TTL level --> TxD TTL level --> --> --> --> RESET How to change Serial Monitor out At the top of Rialto_Coord.c and Rialto_EndD file you can find a variable statement uint8 vprintf_uart = E_AHI_UART_0;...
  • Page 77: Poll And Sleep Settings

    Silica JenNode - JN5168 demobaord Documentation, Release 0 Important: Serial channel 1 (E_AHI_UART_1) is default communication channel to SerizII board. When you switch Rialto Serial Monitor out to this channel, all SerizII communication functions will be disabled. The result of...
  • Page 78: Firmware Debugging

    • Blue led, on –> sleep fail, no coordinator found • Red led –> flashing to indicate radio Rx/Tx Firmware debugging JN5168 modules does’t support Jtag emulation. If you need to develope new application, you can use “vPrintf” function. We also suggest you to see documentation JN516x Wireless Microcontrollers for any specific further detail.
  • Page 79 Index CwInst, index, PrjFiles,...

Table of Contents