55
The L The L ON ON M M ARK ARK Interoperability Interoperability Association Association www.lonmark.org www.lonmark.org Jeremy Roberts 로로로 로로로 L L ON ON M M ARK ARK ® ® Interoperability Interoperability Association Association

Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

Embed Size (px)

Citation preview

Page 1: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Jeremy Roberts로버츠 제르미

LLONONMMARKARK®®

Interoperability AssociationInteroperability Association

Page 2: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

To enable the easy integration of multi-vendor systems based on

LONWORKS® networks.

LonMark MissionLonMark Mission

Page 3: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

The Association has three major functions:

Promote benefits of LONMARK products.

Provide collaborative marketing programs for companies developing LONMARK products.

Provide a forum to define application-specific design requirements.

Functions of the Functions of the AssociationAssociation

Page 4: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LONMARK membership is open to…• any company, organization or individual

that is committed to…• the development, manufacture and use of

interoperable LONWORKS networks and products.

LonMark MembershipLonMark Membership

Page 5: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LonMark MembershipLonMark Membership

• Sponsor Members take a leadership role in developing the market for LonMark Association-Certified products, and can be manufacturers, systems integrators, etc.

• Partner Members, like many Sponsors, are manufacturers of LonMark Association-Certified products.

• Associate Members are usually systems integrators, institutions, universities, suppliers, and distributors. They are not manufacturers of product.

Page 6: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LonMark BenefitsLonMark Benefits

• Technical support in achieving Compliance to the Interoperability Guidelines

• LonMark Certification & Logo Licensing

• Participation in industry Task Groups to define application-specific product interfaces

• Participation in LonMark Association promotional material and advertising

Page 7: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LLONONMMARKARK Membership Membership1999 1999

Membership 1 year ago ~ 243

Europe42%

The Americas

49%

A/P&J9%

Page 8: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LLONONMMARKARK Membership Membership TodayToday

Current Membership = 269

Europe38%

The Americas

49%

A/P&J12%

Page 9: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Asia/Pacific & JapanAsia/Pacific & Japan

23

32

0

10

20

30

40

50

A/P&J Members

mid-1999

mid-2000

mid-2001

• 9 members have joined since the middle of 1999

• A conservative estimate for mid-2001 is about 15 more member companies

Page 10: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Projects withProjects withLonMark Products:LonMark Products:

Malmö University, SwedenMalmö University, Sweden The Gäddan 8 building:

• Size: 12,000 m2

• LonMark Products:– TAC Xenta Controllers– Kaba-Benzing Legic Card Reader

Page 11: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Office Space:• Size: 3.5 million ft2 • LonMark Product:

– Johnson Controls’ ESUSA NexSys/UNITY

Projects withProjects withLonMark Products:LonMark Products:

Sears Tower, ChicagoSears Tower, Chicago

Page 12: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Projects withProjects withLonMark Products:LonMark Products:

Le Musée du LouvreLe Musée du Louvre

Security System:• LonMark Products:

– Echelon Corporation’s LonPoint Modules

Page 13: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Projects withProjects withLonMark Products:LonMark Products:

Queen Elizabeth School, Queen Elizabeth School, CanadaCanada

HVAC system upgrade:• LonMark Products:

– Hubbell’s Occupancy Sensors– Continental Control Systems’ Energy

Monitor

Page 14: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Projects withProjects withLonMark Products:LonMark Products:

The Düsseldorfer StadttorThe Düsseldorfer Stadttor• Size: 20 floors• LonMark Products:

– Johnson Controls’ DX Digital Controllers

– Johnson Controls’ NU-Net Controllers

Page 15: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Projects withProjects withLonMark ProductsLonMark Products::Helsinki TelephoneHelsinki Telephone

Smart Home Project:• Size: 3 floors• LonMark Products:

– Helvar Lighting– Kaba-Benzing

Security/Access

Page 16: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Projects withProjects withLonMark ProductsLonMark Products::

Grampian HouseGrampian House

The hub for Scottish Hydro Electric:

• Size: over 3000 nodes• LonMark Products:

– Danfoss VLT Frequency Converter

– TAC Xenta Controllers

Page 17: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

NodeObject

LONMARK

Object

LONMARK

Object

Device Documentation

Explicit Messages

CP & Data File Transfer

NV NV Non-Interoperable Interface

Interoperable Interface

Inside a LonMark NodeInside a LonMark Node

Configuration Properties

Configuration Properties

Configuration Properties

Page 18: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

NodeObject

LONMARK

Object

LONMARK

Object

Device Documentation

Explicit Messages

CP & Data File Transfer

NV NV Non-Interoperable Interface

Interoperable Interface

Inside a LonMark NodeInside a LonMark Node

Configuration Properties

Configuration Properties

Configuration Properties

Page 19: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Mandatory Network Variables

Optional Network Variables

Optional Configuration Properties

Node ObjectNode ObjectNode Object

Type #0

nviRequest SNVT_obj_request

nvoStatus SNVT_obj_status

nvoAlarm SNVT_alarm

nvoFileStat SNVT_file_status

nvoFileDirectory SNVT_address

nviTimeSet SNVT_time_stamp

nviFileReq SNVT_file_req

nviFilePos SNVT_file_pos

nc25 - Network Config (optional)nc22 - Max Send Time (optional)

nv1 nv2

nv3

nv5

nv7

nv4

nv6

nv8

Page 20: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Open Loop SensorObject Type #1

nvoValue SNVT_xxx

nvoRawHwdata SNVT_count

nvoPreset SNVT_preset

nviPresetFb SNVT_preset

nc17 - Location Label nc31 - Gainnc26 - Offset nc20 - Max Rangenc23 - Min Range nc27 - Send On Deltanc22 - Max Send Time nc24 - Min Send Timenc16 - Invert Output nc28 - Translation table Xnc29 - Translation table Y nc9 - High Limit 1 Valuenc10 - High Limit 2 Value nc18 - Low Limit 1 Valuenc19 - Low Limit 2 Value nc5 - Alarm Set 1 Timenc6 - Alarm Set 2 Time nc2 - Alarm Clear 1 Timenc3 - Alarm Clear 2 Time nc11 - Hysteresis High 1nc12 - Hysteresis High 2 nc13 - Hysteresis Low 1nc14 - Hysteresis Low 2 nc4 - Alarm Output Inhibit Timenc7 - Default Output nc32 - Override Behaviornc33 - Override Value

nv1

nv2nv3

nv4

Mandatory Network Variable

Optional Network Variables

Optional Configuration Properties

Open Loop Sensor ObjectOpen Loop Sensor Object

Page 21: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

CLAObject Type #4

nvoActPosnFb SNVT_xxx

nvoPresetFb SNVT_preset

nviPreset SNVT_preset

nc7 - Default Output nc8 - Drive Timenc17 - Location Label nc21 - Max Receive Timenc30 - Turn Off Delay nc1 - Actual Position FB Delaync9 - High Limit 1 Value nc10 - High Limit 2 Valuenc18 - Low Limit 1 Value nc19 - Low Limit 2 Valuenc5 - Alarm Set 1 Time nc6 - Alarm Set 2 Timenc2 - Alarm Clear 1 Time nc3 - Alarm Clear 2 Timenc11 - Hysteresis High 1 nc12 - Hysteresis High 2nc13 - Hysteresis Low 1 nc14 - Hysteresis Low 2nc4 - Alarm Output Inhibit Time nc32 - Override Behaviornc33 - Override Value nc28 - Translation Table Xnc29 - Translation Table Y nc15 - Input Value FB Delay

nv3nv4

nv5

Mandatory Network Variables

Optional Network Variables

Optional Configuration Properties

nviValueSNVT_xxx

nv1nvoValueFbSNVT_xxx

nv2

Closed Loop Actuator Closed Loop Actuator ObjectObject

Page 22: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LonMark Task GroupsLonMark Task Groups

• Router • Security • Semiconductor • Sunblinds • System Integration • Transportation• Utility• Elevator / Escalator

• Automated Food Service Equipment

• Fire & Smoke• Home• HVAC • Industrial • Lighting • Network Tools• Refrigeration Future: A/V, Pro-Audio, Whitegoods

Page 23: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

HVAC Temp. SensorFunctional Profile: 1040

nvoFixPtTemp SNVT_temp

nvoFloatTemp SNVT_temp_f

nv2

nv3

Mandatory Network Variable

Mandatory Configuration Properties

Optional Configuration Properties

nvoHVACTempSNVT_temp_p

nv1

Mandatory Configuration Properties

nc49 - Max Send Timenc52 - Min Send Timenc64 - Temp Send on Delta

Optional Configuration Properties

nc70 - Temperature Offset

Optional Network Variables

HVAC Temperature HVAC Temperature Sensor (FP 10.40)Sensor (FP 10.40)

Page 24: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LLONONMMARKARK Product Product Conformance ReviewConformance Review

1 Use the LONMARK Interoperability Guidelines as you design your product.

2 When a Profile exists for your device, use it. Otherwise, you should propose a Profile, or use Objects 1– 4, or create one to meet your needs.– Direct questions on the Functional Profiles to the

appropriate Task Group Leader. – Direct questions about the Guidelines and

Certification process to [email protected].

Page 25: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LLONONMMARKARK Product Product Conformance ReviewConformance Review

3 When your design is complete, submit – The Conformance Application (LM_CONFM.PDF) and – Completed Checklist, and– LonMark Logo License Agreement

via fax to LonMark at +1-408-328-3832,and send by postal mail also.

4 Submit your product datasheet as a single ZIP attachment to [email protected] in DOC or PDF format.

Page 26: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LLONONMMARKARK Product Product Conformance ReviewConformance Review

5 Submit your product XIF file, and if needed, your TYP, FMT, FPT, and language files—as a single ZIP attachment to [email protected]. (currently, 2-byte characters, like Chinese, Japanese, and Korean are not an option, but we are working to correct this problem.)

How will I know if the TYP, FMT, FPT, and language files are “needed” for my device?

Page 27: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LLONONMMARKARK Product Product Conformance ReviewConformance Review

How will I know if the TYP, FMT, FPT, andlanguage Device Resource Files (DRFs)

are “needed” for my device?If you have:– a node that must have its UCPTs set to function,– created a UNVT or UCPT that you want exposed,– added UNVTs to a Standard Object, or– created your own Object (UFPT)

then you need Device Resource Files (DRFs), or a Passive Configuration Tool (PCT).

Page 28: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Common Common Certification IssuesCertification Issues

• User-defined NVs, CPs, and Objects should use Selector/Scope of 3, 4, 5, or 6 — not 0, 1, nor 2 (these are reserved).

• User-defined Objects should be indexed from 20’000 to 25’000 (C8:00 – FA:00).

• Nodes created using Objects 1– 5 should use a Device Class that is not assigned to a Standard Functional Profile.

Page 29: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Profile / Profile / SNVT SNVT / / SCPTSCPT ApprovalApproval

1 Use DOC templates on www.lonmark.org - HNDBK_10.ZIP HNDBK_20.ZIP

- LMSNVT.ZIP

2 Post Profile/SNVTs/SCPTs to appropriate Task Group in Member Forum.

3 Also, Submit SNVTs/SCPTs proposals to [email protected] in parallel

Page 30: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Profile / Profile / SNVT SNVT / / SCPTSCPT ApprovalApproval

6 Posting the Profile/SNVTs/SCPTs to the Member Forum puts them in the “30-Day Review” cycle.

7 At the end of 30-Day Review, author must address all comments, and post a new proposal—unless nothing is changed due to all positive comments. In such case…

8 Task Group Leader (or Principal Engineer) decides whether to post files for another 30-Day Review, or send to the Technical Advisory Committee, and then the Board of Directors for Review & Approval.

Page 31: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LonMark Node LonMark Node DocumentationDocumentation

• What is… Node Self-Documentation?

• What is… Network Variable Self-Documentation?

• What is… Configuration Property Self-Documentation?

Page 32: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Standard Program Standard Program Identification (SPID)Identification (SPID)

// LonMark Standard Program ID (SPID)// 8 bytes// fm:mm:mm:cc:cc:ss:ss:nn

#pragma set_std_prog_id 80:00:01:05:01:02:04:00

Format Type: 9 for Prototypes, 8 for LONMARK Association-Certified nodes

Page 33: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Standard Program Standard Program Identification (SPID)Identification (SPID)

// LonMark Standard Program ID (SPID)// 8 bytes// fm:mm:mm:cc:cc:ss:ss:nn

#pragma set_std_prog_id 80:00:01:05:01:02:04:00

Manufacturer’s Identifier (MID) in Hexadecimal, not

Decimal

Page 34: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Standard Program Standard Program Identification (SPID)Identification (SPID)

// LonMark Standard Program ID (SPID)// 8 bytes// fm:mm:mm:cc:cc:ss:ss:nn

#pragma set_std_prog_id 80:00:01:05:01:02:04:00

Device Class: in Hexadecimal, not Decimal(e.g., “Multi-I/O”). This can

also be a Profile number.

Page 35: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Standard Program Standard Program Identification (SPID)Identification (SPID)

// LonMark Standard Program ID (SPID)// 8 bytes// fm:mm:mm:cc:cc:ss:ss:nn

#pragma set_std_prog_id 80:00:01:05:01:02:04:00

Device Subclass:Industry Class, and

Channel Type(Industrial, TP/FT-10)

Page 36: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Standard Program Standard Program Identification (SPID)Identification (SPID)

// LonMark Standard Program ID (SPID)// 8 bytes// fm:mm:mm:cc:cc:ss:ss:nn

#pragma set_std_prog_id 80:00:01:05:01:02:04:00

Model or Revision number

Page 37: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Node Node Self-DocumentationSelf-Documentation

Interoperability Guidelines version:

Current version is 3.2

// Node Self-Documentation// String// 1024 bytes maximum

#pragma set_node_sd_string "&3.2@0Node,3OLA,1OLS,1OL2;SomeCorp Thing-1"

Page 38: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Node Node Self-DocumentationSelf-Documentation

Node Object with Optional Text (“Node”)

// Node Self-Documentation// String// 1024 bytes maximum

#pragma set_node_sd_string "&3.2@0Node,3OLA,1OLS,1OL2;SomeCorp Thing-1"

Page 39: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Node Node Self-DocumentationSelf-Documentation

Open Loop Actuator Object

(Object 3)

// Node Self-Documentation// String// 1024 bytes maximum

#pragma set_node_sd_string "&3.2@0Node,3OLA,1OLS,1OL2;SomeCorp Thing-1"

Page 40: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Node Node Self-DocumentationSelf-Documentation

Open Loop Sensor Object (Object 1)

// Node Self-Documentation// String// 1024 bytes maximum

#pragma set_node_sd_string "&3.2@0Node,3OLA,1OLS,1OL2;SomeCorp Thing-1"

Page 41: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Node Node Self-DocumentationSelf-Documentation

Another Open Loop Sensor Object (Object 1)

// Node Self-Documentation// String// 1024 bytes maximum

#pragma set_node_sd_string "&3.2@0Node,3OLA,1OLS,1OL2;SomeCorp Thing-1"

Page 42: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Node Node Self-DocumentationSelf-Documentation

Optional, Descriptive ASCII

Text

// Node Self-Documentation// String// 1024 bytes maximum

#pragma set_node_sd_string "&3.2@0Node,3OLA,1OLS,1OL2;SomeCorp Thing-1"

Page 43: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Network Variable Network Variable Self-DocumentationSelf-Documentation

// Network Variable Declarations

// Mandatory Node Object Network Variable Declarationsnetwork input sd_string("@00|1;Request")

SNVT_obj_request nviRequest;

network output sd_string("@0|2;Status") bind_info(ackd) SNVT_obj_status nvoStatus;

// Open Loop Actuator NV (Object 3)network input sd_string("@11|11;Amperes") SNVT_amp nviAmps;

#pragma set_node_sd_string "&3.2@0,3,1,1;SomeCorp"index index 00 1 2 3 1 2 3

Page 44: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Network Variable Network Variable Self-DocumentationSelf-Documentation

// Network Variable Declarations

// Mandatory Node Object Network Variable Declarationsnetwork input sd_string("@00|1;Request")

SNVT_obj_request nviRequest;

network output sd_string("@0|2;Status") bind_info(ackd) SNVT_obj_status nvoStatus;

// Open Loop Actuator NV (Object 3)network input sd_string("@11|11;Amperes") SNVT_amp nviAmps;

#pragma set_node_sd_string "&3.2@0,3,1,1;SomeCorp"index 0 index 0 11 2 3 2 3

Page 45: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Network Variable Network Variable Self-DocumentationSelf-Documentation

// Network Variable Declarations

// Mandatory Node Object Network Variable Declarationsnetwork input sd_string("@00|1;Request")

SNVT_obj_request nviRequest;

network output sd_string("@0|2;Status") bind_info(ackd) SNVT_obj_status nvoStatus;

// Open Loop Actuator NV (Object 3)network input sd_string("@11|11;Amperes") SNVT_amp nviAmps;

Use index defined in Profile/Object definition (e.g., 11), not as declared in the application program (e.g., 33).

Declaration 1Declaration 1

Declaration 2Declaration 2

Declaration 3Declaration 3

Page 46: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Configuration PropertyConfiguration PropertySelf-DocumentationSelf-Documentation

// Specification stated “Need// configurable receive heartbeat for // current (Amps) input.”

// Assign this CP to the nviAmps NV:network input config

sd_string("&2,3,0\x81,48")SNVT_time_sec nciRcvrHrtBt;

‘&’ starts CP documentation

Page 47: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Configuration PropertyConfiguration PropertySelf-DocumentationSelf-Documentation

// Specification stated “Need// configurable receive heartbeat for // current (Amps) input.”

// Assign this CP to the nviAmps NV:network input config

sd_string("&2,3,0\x81,48")SNVT_time_sec nciRcvrHrtBt;

CP Applies to: 0 - Entire Device/Node 1 - Object(s) 2 - Network Variable(s)

Page 48: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Configuration PropertyConfiguration PropertySelf-DocumentationSelf-Documentation

// Specification stated “Need// configurable receive heartbeat for // current (Amps) input.”

// Assign this CP to the nviAmps NV:network input config

sd_string("&2,3,0\x81,48")SNVT_time_sec nciRcvrHrtBt;

Objects or NVs selected. This number is relative to the order of declaration (Declaration 3Declaration 3).

Page 49: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Configuration PropertyConfiguration PropertySelf-DocumentationSelf-Documentation

// Specification stated “Need// configurable receive heartbeat for // current (Amps) input.”

// Assign this CP to the nviAmps NV:network input config

sd_string("&2,3,0\x81,48")SNVT_time_sec nciRcvrHrtBt;

Flags: 0 - SCPT 3, 4, 5, or 6 - UCPT \x81 - Disable

the Node to Modify

Page 50: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Configuration PropertyConfiguration PropertySelf-DocumentationSelf-Documentation

// Specification stated “Need// configurable receive heartbeat for // current (Amps) input.”

// Assign this CP to the nviAmps NV:network input config

sd_string("&2,3,0\x81,48")SNVT_time_sec nciRcvrHrtBt;

Master SCPT List Index (absolute, not relative)

Page 51: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Configuration PropertyConfiguration PropertySelf-DocumentationSelf-Documentation

// Specification stated “Need// configurable send heartbeat for // the Open Loop Actuator.”

// Assign this CP to the Object 3:network input config

sd_string("&1,1,0\x81,22")SNVT_elapsed_tm nciMaxSendTime;

Objects or NVs selected. This number is relative to the order of declaration:"&3.2@0,3,1,1;SomeCorp"index 0 index 0 11 2 3 2 3

CP Applies to: 0 - Entire Device/Node 1 - Object(s) 2 - Network Variable(s)

Flags: 0 - SCPT 3, 4, 5, or 6 - UCPT \x81 - Disable

the Node to Modify

Page 52: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

Configuration PropertyConfiguration PropertySelf-DocumentationSelf-Documentation

// Specification stated “Need// to know the location of the node.”

// Assign this CP to the entire node:network input config

sd_string("&0,,0\x80,17")SNVT_str_asc nciLocation;

When assigned to the entire node, no Objects or NVs are listed in this area.

CP Applies to: 0 - Entire Device/Node 1 - Object(s) 2 - Network Variable(s)

Flags: 0 - SCPT 3, 4, 5, or 6 - UCPT \x80 - Modify

the CP at any time

Page 53: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

#define NUM_FILES 2 // Directory Sizetypedef struct {

unsigned long Size; // file sizeunsigned Type; // file typevoid * pData; // pointer to data

} FileDescriptor; // directory entry

const struct { // File Directory Tableint Version;int NumFiles; FileDescriptor Files[NUM_FILES];

} FileDirectory = {0x20, // Major & Minor version number in a single byteNUM_FILES, {{ sizeof(SCPT_File2), 2, SCPT_File2 }, // type 2,template file{ sizeof(SCPT_File1), 1, &SCPT_File1 } // type 1,value file}

};

Declaration of file descriptor

Declaration of file directory table

Configuration PropertyConfiguration PropertyFile TablesFile Tables

Page 54: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

// Configuration Parameter Value Filefar eeprom struct {

UNVT_my_type myConfig;SNVT_amp ampRange;SNVT_location nodeLocation;SNVT_elapsed_tm heartBeat;

} SCPT_File1 = {DEFAULT_VALUE1, // myConfigDEFAULT_CURRENT, // ampRangeDEFAULT_LOCATION, // nodeLocationDEFAULT_HEARTBEAT, // heartBeat

};Declarations of the configuration parameter template file SCPT_File2

Declarations of the configuration parameter value file SCPT_File1

Configuration PropertyConfiguration PropertyFile TablesFile Tables

// Config. Parameter Template Fileconst char SCPT_File2[] = {"1.1;" // version"1,0,3\x84,1,1;" // UCPTmyConfig "1,0,3\xA4,2,1;" // UCPTampRange"1,0,0\x80,17,31;" // SCPTlocation"1,0,0\x80,22,7;" // SCPTmaxSndT};

Page 55: Www.lonmark.org The L ON M ARK Interoperability Association Jeremy Roberts 로버츠 제르미 L ON M ARK ® Interoperability Association

The LThe LONONMMARK ARK Interoperability AssociationInteroperability Association www.lonmark.orgwww.lonmark.org

LLONONMMARKARK®® Association Association

Headquarters(Main Office)

415 Oakmead PkwySunnyvaleCA 94085

TEL +1-408-938-5266

FAX +1-408-328-3822

Technical Office (Jeremy’s Office)

PO 268Jamison

PA 18929

TEL +1-215-918-1026

FAX +1-215-918-1027