Echelon OpenLDV User Manual Page 115

  • Download
  • Add to my manuals
  • Print
  • Page
    / 194
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 114
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
xDriver Lookup
Extesnion Component
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
Page view 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 193 194

Comments to this Manuals

No comments