Echelon Mini EVK Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Software Echelon Mini EVK. Echelon Mini EVK User Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 98
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků

Shrnutí obsahu

Strany 1 - Revision 3

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

Strany 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

Strany 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

Strany 4

6 Mini EVK User’s Guide

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 20 - ONWORKS network

Mini EVK User’s Guide 21

Strany 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

Strany 22 - Selecting a Program ID

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

Strany 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

Strany 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

Strany 25

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

Strany 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

Strany 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

Strany 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

Strany 29

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

Strany 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

Strany 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

Strany 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

Strany 33

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

Strany 34

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 39

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

Strany 40

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

Strany 41 - Unique Aspects of Neuron C

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

Strany 42

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

Strany 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

Strany 44

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

Strany 45 - Neuron C Declarations

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

Strany 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

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

Strany 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

Strany 49 - Serial Actuator Example

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

Strany 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

Strany 51

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

Strany 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

Strany 53 - Network Variables

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

Strany 54

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

Strany 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

Strany 56 - Analog Sensor Example

iv Mini EVK User’s Guide

Strany 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

Strany 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

Strany 59

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

Strany 60

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

Strany 61

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

Strany 62

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

Strany 63

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

Strany 64 - Self-installation

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

Strany 65

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

Strany 66

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

Strany 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

Strany 68 - 62 Mini EVK User’s Guide

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

Strany 69

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

Strany 70

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 76 - 70 Mini EVK User’s Guide

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

Strany 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

Strany 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

Strany 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

Strany 80

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

Strany 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

Strany 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

Strany 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

Strany 84

Mini EVK User’s Guide 79

Strany 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

Strany 86 - Appendix A

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

Strany 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

Strany 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

Strany 89

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

Strany 90 - Appendix B

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

Strany 91

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

Strany 92 - 86 Mini EVK User’s Guide

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

Strany 93

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

Strany 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

Strany 95 - NetMgmtMsg Class

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

Strany 96 - SessionEventTrap Class

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

Strany 97 - LDV32.DLL

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

Strany 98

www.echelon.com

Komentáře k této Příručce

Žádné komentáře