Echelon Mini EVK Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Software Echelon Mini EVK herunter. Echelon Mini EVK User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 98
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen

Inhaltsverzeichnis

Seite 1 - Revision 3

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

Seite 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

Seite 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

Seite 4

6 Mini EVK User’s Guide

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 20 - ONWORKS network

Mini EVK User’s Guide 21

Seite 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

Seite 22 - Selecting a Program ID

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

Seite 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

Seite 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

Seite 25

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

Seite 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

Seite 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

Seite 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

Seite 29

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

Seite 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

Seite 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

Seite 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

Seite 33

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

Seite 34

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 39

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

Seite 40

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

Seite 41 - Unique Aspects of Neuron C

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

Seite 42

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

Seite 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

Seite 44

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

Seite 45 - Neuron C Declarations

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

Seite 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

Seite 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”

Seite 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

Seite 49 - Serial Actuator Example

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

Seite 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

Seite 51

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

Seite 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

Seite 53 - Network Variables

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

Seite 54

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

Seite 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

Seite 56 - Analog Sensor Example

iv Mini EVK User’s Guide

Seite 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

Seite 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

Seite 59

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

Seite 60

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

Seite 61

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

Seite 62

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

Seite 63

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

Seite 64 - Self-installation

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

Seite 65

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

Seite 66

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

Seite 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

Seite 68 - 62 Mini EVK User’s Guide

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

Seite 69

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

Seite 70

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 76 - 70 Mini EVK User’s Guide

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

Seite 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

Seite 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

Seite 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

Seite 80

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

Seite 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

Seite 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

Seite 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

Seite 84

Mini EVK User’s Guide 79

Seite 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

Seite 86 - Appendix A

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

Seite 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

Seite 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

Seite 89

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

Seite 90 - Appendix B

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

Seite 91

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

Seite 92 - 86 Mini EVK User’s Guide

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

Seite 93

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

Seite 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

Seite 95 - NetMgmtMsg Class

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

Seite 96 - SessionEventTrap Class

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

Seite 97 - LDV32.DLL

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

Seite 98

www.echelon.com

Kommentare zu diesen Handbüchern

Keine Kommentare