Figure 17, Typical uplink scenario, Openldv programmer’s guide 107 – Echelon OpenLDV User Manual

Page 115: Figure 17 . uplink session for an lns application

Advertising
background image

OpenLDV Programmer’s Guide

107

Call ObjectServer.open()

Accept

Incoming Call?

Get network from Local network collection

Yes

Call myNetwork.open()

Open System Object

Set NetworkServiceDevice.NetworkInterface to

above received IntfName a) networkInterface i.e

“x.[profileName].[IntfName]”

Do network and monitoring task

Close MonitorSet(s)

Call myNetwork.CloseIndependent()

Open network in Local or

serverIndependant mode?

Close ObjectServer

Typical Uplink Scenario

Call BeginIncomingSessionEvents(myProfile)

a) OnIncomingSessionEvent(profileName, netName, IntfName, Tag)

arrives (IntfName = x.myProfile.RNI_name)

Code ILdvxConfigure.SetInstance() to: return S_OK

(This optional method is fired once in the lifetime of an Instance)

Code ILdvxConfigure.SetOptions() to: return S_OK

(This optional method is fired once in the lifetime of an Instance)

Code ILdvxLookup.UplinkLookup() to:

Call xSCO.GetUplinkKey()

Do an external database query using the retrieved UplinkKey

If (query Result = NULL) then

Exit by Returning an appropriate COM error e.g. E_ERROR

Else

Call xSCO.SetAuthenticationFlag([Recommended: True]|[False])

Call xSCO.SetCurrentAuthenticationKey(a)

Call xSCO.SetNextAuthenticationKey(a|[b])

Call xSCO.SetDownlinkKey("RNI_0001")

Call xSCO.SetLNSNetworkName(“myNetworkName”)

return S_OK

xD

riv

er

L

oo

ku

p

Ex

te

sn

io

n

C

om

po

ne

nt

AcceptIncomingSession(tag, false, false)

Tag from a)

AcceptIncomingSession(tag, true,true) Tag from a)

No

Local

Get network from MyVNI network collection

Indp.

Wait for another

uplink?

No

Open MonitorSet(s)

Do Monitoring Task(s)

Call EndIncomingSessionEvents(myProfile)

ReleasePendingUpdates()

Call ReleasePendingUpdates()

Call myNetwork.OpenIndependent()

Open MonitorSet(s).

Close MonitorSet(s)

Close System Object

Close Network

Uplink session event received, lookup extension launched.

Figure 17. Uplink Session for an LNS Application

Advertising