Echelon Mini EVK Manual de usuario

Busca en linea o descarga Manual de usuario para Software Echelon Mini EVK. Echelon Mini EVK User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 98
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1 - Revision 3

Mini EVK User’s Guide Revision 3@®078-0302-01D

Pagina 2 - Chips in such applications

The Mini EVK software includes the following applications and examples: • Mini Application, which you can use to manage Neuron C code, build Neuron

Pagina 3 - Table of Contents

7. Click Install to begin the installation. When the installation has completed, a window appears to notify you. Click Finish to exit the installa

Pagina 4

6 Mini EVK User’s Guide

Pagina 5

2 Using the Mini Application This chapter describes how to use the Mini Application to build a Neuron C application image, and how to download an ap

Pagina 6

Starting the Mini Application You can use the Mini Application to build an application image for a Neuron C application, download the application ima

Pagina 7 - Introduction

EVK example Neuron C applications with the Mini Application. To create a Neuron application image, follow these steps: 1. Start the Mini Applicatio

Pagina 8

To build an application image for the example Neuron C applications, you must select the correct library as shown in Table 2.1. For more informati

Pagina 9 - Mini EVK Contents

a network. The program ID includes fields that define the manufacturer, device class, device subclass, transceiver type, and model number for a devi

Pagina 10 - ONWORKS platform

Figure 2.2 Standard Program ID Calculator Dialog 8. Click Build to compile the application and create the application image. The status box at the

Pagina 11 - Document Roadmap

1. Click the Device tab. You will use the Device tab to connect to a device and load the Neuron application image into the device. Figure 2.3 Devi

Pagina 12 - 6 Mini EVK User’s Guide

Echelon, LONWORKS, LonMaker, LonTalk, Neuron, 3120, 3150, LONMARK, NodeBuilder, and the Echelon logo are trademarks of Echelon Corporation registered

Pagina 13 - Using the Mini Application

Mini EVK Hardware Guide. For more information on installing and configuring the U10 or U20 USB Network Interface, and on using it to attach your com

Pagina 14 - ONWORKS hardware based on a

On a Mini EVB, the service pin button is the black button labeled “SERVICE.” When the Mini Application receives the service pin message, it displays

Pagina 15 - ONWORKS Neuron C\Libraries

The PL Evaluation Board will enter CENELEC configuration mode every time you load an application into it (as well as the first time you power up the

Pagina 16

Program ID Segment Field Description M:MM:MM Manufacturer A 20-bit identifier for the device manufacturer. Click the arrow to select from a list of

Pagina 17

Program ID Segment Field Description CC Device Class A 16-bit identifier for the primary function of the device. The primary function of the device

Pagina 18 - ONWORKS network into a Mini

Program ID Segment Field Description UU Usage An 8-bit identifier for the intended usage of the device. The most significant two bits are determined

Pagina 19 - ONWORKS devices on the

Program ID Segment Field Description N/A Has Changeable Interface Select this check box to indicate that the device has a changeable device interface

Pagina 20 - ONWORKS network

Mini EVK User’s Guide 21

Pagina 21

3 Using the Mini EVK Example Applications This chapter describes how to use the Neuron C and C# example applications included with the Mini EVK. 22

Pagina 22 - Selecting a Program ID

Mini EVK Example Applications The Mini EVK includes the following example applications: • MGDemo • MGSwitch • MGLight • MGKeyboard • Monitoring

Pagina 23

Welcome This document describes how to use the Mini EVK Evaluation Kit. You can use the Mini EVK to develop a prototype or production control syste

Pagina 24 - ONMARK International. To

2. If you are using an FT Mini EVK, skip to the next step. If you are using a PL Mini EVK and this is the first time you use a PL EVB or if you h

Pagina 25

MGSwitch and MGLight Example Applications You can use the MGSwitch and MGLight example applications to demonstrate how simple switch and lamp devices

Pagina 26

LED on the MiniGizmo attached to the evaluation board running the MGDemo application will activate or de-activate each time the MGSwitch MiniGizmo se

Pagina 27 - Mini EVK User’s Guide 21

board used in this step is referred to as the MGDemo board in this section. 2. To demonstrate monitoring and controlling a device from your computer

Pagina 28 - Applications

the I/O LEDs on all other connected evaluation boards running the MGDemo application will activate. When you press the I/O button again, the I/O LED

Pagina 29

Monitoring & Control Example Application You can use the Monitoring & Control Example Application to monitor a 3150 EVB running the MGDemo ex

Pagina 30

WARNING: If you want to use a PCC-10, PCLTA-20, or PCLTA-21 network interface, you must configure it as a layer 5 interface. See the Mini EVK Hardwa

Pagina 31 - ONWORKS network, where the

Figure 3.3 Add Device Dialog If you clicked the Add button, enter the Neuron ID of the target device in the Neuron ID box, and then click OK to retu

Pagina 32 - MGDemo Example Application

Figure 3.4 ISI Information Window The subnet ID, node ID, and Neuron ID of the network interface used by the Monitoring & Control Application ar

Pagina 33

IsiUpdateUserInterface() and IsiDiagnostics() calls on the remote device. Consult the ISI Programmer’s Guide for more information on these calls. Yo

Pagina 34

Mini EVK vs. NodeBuilder Tool Comparison ... 2 Mini EVK Contents ...

Pagina 35

4 Developing a Neuron C Application This chapter introduces the Neuron C Version 2.1 programming language, and provides an overview on how to use th

Pagina 36

What Is Neuron C? Neuron C Version 2.1 is a programming language based on ANSI C that you can use to develop applications for Neuron Chips and Smart

Pagina 37 - ISI Information

the look and feel of a normal variable to the C program, with the addition of controlled access by network configuration tools. Neuron C also provide

Pagina 38

Neuron C provides many built-in I/O objects. These I/O objects are standardized I/O device drivers for the Neuron Chip or Smart Transceiver I/O hard

Pagina 39

Declarations using extern references can be used to provide forward references to variables, and function prototypes must be declared to provide forw

Pagina 40

Variable Initialization Initialization of variables occurs at different times for different classes. The const variables, except for network variab

Pagina 41 - Unique Aspects of Neuron C

•Configuration Properties SCPTdefOutput cp_family cpDefaultOut; •Functional Blocks fblock SFPTnodeObject { … } myNode; •Message tags

Pagina 42

devices include temperature and position sensors, valves, switches, and LED displays. Neuron Chips and Smart Transceivers can also be connected to o

Pagina 43 - Neuron C Storage Classes

Document Title Contents Part NumberScanning a Keypad with the Neuron Chip Describes how a Smart Transceiver or Neuron Chip can be used to scan a

Pagina 44

#define DS18S20_SKIP_ROM 0xCCu #define DS18S20_CONVERT 0x44u #define DS18S20_READ 0xBEu // Get a temperature reading from the Touch t

Pagina 45 - Neuron C Declarations

Analog Sensor Example... 60 Digital Actuator Example...

Pagina 46 - Input/Output

output port. This connects the IO10 output to an EIA-232 line driver that is in turn connected to pin 2 as a serial data output on the RS-232 connec

Pagina 47 - ), io_out( )

Digital Sensor and Serial Actuator Example The following example application reads the MiniGizmo push buttons every 50 milliseconds and sends an “On”

Pagina 48

#pragma enable_io_pullups #pragma num_alias_table_entries 2 #pragma run_unconfigured // Configure the I/O pins IO_7 touch ioThermometer; IO_10 outp

Pagina 49 - Serial Actuator Example

static SNVT_temp_p lastTemperature; char temperatureString[15]; temperature = GetTemperature(); if (temperature != lastTemperatu

Pagina 50 - Hello World Example

Applications exchange data with other LONWORKS devices using network variables. Every network variable has a direction, type, and length. The netwo

Pagina 51

Figure 4.2 Network Variable Multicast Connection Network variables greatly simplify the process of developing and installing distributed systems bec

Pagina 52 - 46 Mini EVK User’s Guide

// Latch the button inputs io_out(ioButtonLd, 0); io_out(ioButtonLd, 1); // Shift in and return TRUE if any buttons are pressed

Pagina 53 - Network Variables

= touch_byte(ioThermometer, 0xFFu); CurrentTemperature.Bytes[0] = touch_byte(ioThermometer, 0xFFu); if (tou

Pagina 54

// Update LEDs when an nviLight updwhen(nv_update_occurs(nviLight)) { ate is received SetLED(nviLight.state && nviLight.value); } Serial

Pagina 55 - Digital Sensor Example

file that specifies the data encoding, scaling, units, default value, range, and behavior for configuration properties based on the type. A rich var

Pagina 56 - Analog Sensor Example

iv Mini EVK User’s Guide

Pagina 57

Functional Blocks and Functional Profiles A device application is divided into one or more functional blocks. A functional block is a portion of a

Pagina 58 - Configuration Properties

An application image for a device created by the Neuron C compiler will contain self-identification information unless the #pragma disable_snvt_si di

Pagina 59

// Repeat every 50 milliseconds mtimer repeating scanTimer = 50; // Read the buttons when the timer expires when(timer_expires(scanTimer)) { boo

Pagina 60

CurrentTemperature.snvtTempP *= 50l; // start the next conversion cycle: (void) touch_byte(ioThermometer, DS18S2

Pagina 61

// Update LEDs when an nviLight update is received when(nv_update_occurs(nviLight)) { SetLED(nviLight.state && nviLight.value); } Serial

Pagina 62

network. Developing an application using the Neuron ISI library is described in the ISI Programmer’s Guide. Digital Sensor Example The following exa

Pagina 63

nvoSwitch.state = button ? 1 : 0; } } // Call IsiTick() every 250 milliseconds mtimer repeating isiTimer = 250; when(timer_expires(isiT

Pagina 64 - Self-installation

#define DS18S20_CONVERT 0x44u #define DS18S20_READ 0xBEu // Get a temperature reading from the Touch temperature sensor SNVT_temp_p GetTe

Pagina 65

when(timer_expires(serviceTimer)) { if (service_pin_state()) { ServicePinActivation++; if (ServicePinActivation > LONG_SERVIC

Pagina 66

Digital Actuator Example The following example application adds ISI support to the previous digital actuator example. The network variable input may

Pagina 67 - Mini EVK User’s Guide 61

1 Introduction This chapter introduces the Mini EVK, and describes how to install the Mini EVK software. It also provides a roadmap to follow when

Pagina 68 - 62 Mini EVK User’s Guide

// Call IsiInitiateAutoEnrollment() after a specified period has // passed void IsiUpdateUserInterface(IsiEvent Event, unsigned Parameter) { if

Pagina 69

} // Print the network variable value when an nviSwitch update // is received when(nv_update_occurs(nviSwitch)) { PrintConsole(nviSwitch.value

Pagina 70

Chapter 6, How Devices Communicate Using Application Messages, of the Neuron C Programmer’s Guide. Feedback Network Variable Connections A typical ne

Pagina 71 - Low-Level Messaging

Feedback loops allow for tied control; the lamp can for example sense the light level and provide the feedback signal based on real measurement (rath

Pagina 72

To achieve the same level of transport control in a star-shaped feedback connection, the initiator needs to know the number of expected feedback netw

Pagina 73

with the eeprom storage class don’t get initialized during reset, but only with a new application image. The following code fragment illustrates thi

Pagina 74 - Oscillation

5 Debugging a Neuron C Application This chapter describes how to use the boards and accessories included with the Mini EVK, or additional tools such

Pagina 75 - Reset Processing

Debugging a Neuron C Application You can use the boards and accessories included with the Mini EVK to debug a Neuron C application, or you can use ad

Pagina 76 - 70 Mini EVK User’s Guide

void PrintConsole(const char *message) { if (strlen(message) <= 100) { io_out(ioSerialOut, message, (unsigned) strlen(message)); }

Pagina 77 - Debugging with I/O

Figure 5.1 LonMaker Browser The LonMaker Device Manager allows you to control the state of your device and its functional blocks. You can use the

Pagina 78 - ONWORKS devices in a

Introducing the Mini Evaluation Kit Echelon’s Mini EVK Evaluation Kit is a tool for evaluating the development of control network applications with t

Pagina 79

Figure 5.2 LonMaker Device Manager The LonMaker tool allows you to connect network variables on your devices, and then monitor those connections on

Pagina 80

Figure 5.3 LonMaker Drawing with Connection Monitoring You cannot simultaneously use the same network interface with both the LonMaker tool and the

Pagina 81

Figure 5.4 NodeBuilder Debugger You cannot simultaneously use the same network interface with both the LonMaker tool that is included with the NodeB

Pagina 82

Using the Mini Application with the LonMaker Tool To switch from using the Mini Application on a network interface to the LonMaker tool with the same

Pagina 83

Figure 5.5 New Device Template Wizard With these settings, you can use the same device template file for both build processes. Possible conflicts r

Pagina 84

Mini EVK User’s Guide 79

Pagina 85 - Mini EVK User’s Guide 79

Appendix A Troubleshooting This appendix describes how to resolve problems that may occur while you are using the Mini EVK. 80 Mini EVK U

Pagina 86 - Appendix A

1. I cannot compile the MGKeyboard application. When I try to compile the application, the "Typename 'UCPTfrequency' not found in De

Pagina 87

Use a TP/FT-10 channel for most of the application development and debugging. When doing so, you must make sure to include use of the targeted power

Pagina 88

using an I/O button, press and hold the SW1 – SW4 I/O button on the evaluation board running the MGDemo application when accepting or confirming an c

Pagina 89

Feature Mini EVK NodeBuilder Tool Application Code and Constant Data per Device* 32Kbyte maximum 64Kbyte maximum Code Wizard No Plug-in Wizard N

Pagina 90 - Appendix B

Appendix B Monitoring & Control Application Overview This appendix describes the structure of the Monitoring & Control C# Example Applicati

Pagina 91

Monitoring & Control C# Example The Monitoring & Control Example Application is a C# application that monitors ISI messages and uses the Open

Pagina 92 - 86 Mini EVK User’s Guide

86 Mini EVK User’s Guide Figure B.1 Monitoring & Control Example Hierarchy

Pagina 93

User Interface and Application Specific Implementation This section describes the classes, files, and dialogs that make up the Monitoring & Contr

Pagina 94 - ISI Support

main user interface window. The IsiInfoForm class contains the implementation of the ISI Information window. Change Subnet/Node ID Dialog You can c

Pagina 95 - NetMgmtMsg Class

(domain resource usage message) that helps detect duplicate subnet/node IDs. When the Monitoring & Control Example Application receives the DRU

Pagina 96 - SessionEventTrap Class

OpenLDV Adapter This section describes the classes and files of the Monitoring & Control Example Application that invoke the OpenLDV API. Operato

Pagina 97 - LDV32.DLL

AppBuffer / ISIAppBuffer The AppBuffer.cs and ISIAppBuffer implementation files contain the collection of conversion classes, which together form the

Pagina 98

www.echelon.com

Comentarios a estos manuales

Sin comentarios