Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Why aren't updated AlarmEvents showing in SBO

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • Why aren't updated AlarmEvents showing in SBO
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to SmartConnector Forum
sesa197614_brid
sesa197614_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2016-11-08 12:03 AM

0 Likes
3
623
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-08 12:03 AM

Why aren't updated AlarmEvents showing in SBO

As my developing the EWS Server to generate Alarm Event, I come across a confused problem.

There is one requirement that I receive the alarms from third party and display them in SBO, for this case, I created an EWS server, and override the function of MongooseGetAlarmEventsProcessor()


My override function is as:


protected override void PushDataOntoResponse(GetAlarmEventsResponse1 response, List<AlarmEventsType> pageOfData, bool isLastPage)

        {

            List<AlarmEventsType> newEventList = new List<AlarmEventsType> { };

            //My custom function to receive alarms from third party

            var retrievedAlarms = ReceiveTrap.AlarmList;

            foreach (var newItem in retrievedAlarms)

            {

                newEventList.Add(new AlarmEventsType { Acknowledgeable = "1", SourceName = "TestSample", State = newItem.Alarmstate, ID = newItem.ID, Message = newItem.AlarmText, SourceID = newItem.Source, Priority = newItem.Priority });

            }

            base.PushDataOntoResponse(response, newEventList, isLastPage);

        }

In this way, I DO get all alarm events in SBO and I could also acknowledge the alarms with my another override function.

However , My problem is:

All the alarms from EWS server cannot be updated automatically, now I only found I can update alarms by changing the alarm polling parameters of EWS interface and save.

Capture.JPG

I guess I override the wrong function of MongooseGetAlarmEventsProcessor, or I still need trigger some flag in the processor , to make alarms be auto updated by polling of client?

Please kindly help for it.

Cheers

Austen Yin

Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 3
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2016-11-08 06:03 AM

0 Likes
2
599
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-08 06:03 AM

Austen,

There are three approaches you can use to provide custom data to an EWS Client.  I'll paste in some text from the soon to be updated Developer's Guide to explain:

4.2 Providing Data to an EWS Client

While StuxureWare Building Operation ASs and ESs are the most likely EWS clients you will be integrating with, any system which is can consume an EWS 1.1 or EWS 1.2 feed can be integrated with your SmartConnector enabled solution.  SmartConnector provides fast, EWS 1.2 compliant, database backed, EWS Servers for this purpose. 

Where the data served originates depends on whichever technique works best for your solution.  Generally, there are three data management techniques used to manage EWS data: asynchronous data management, synchronous data management, or a hybrid approach which uses both asynchronous and synchronous methods.  While each technique comes with its own complexities and pros and cons, asynchronous data management is the easiest method to implement and the more common technique used.

4.2.1 Asynchronous Data Management

Asynchronous data management involves provisioning a native SmartConnector EWS server via the portal (see SmartConnector Installation and Configuration Guide) or through code using the EwsServerDataAdapter class.

Regardless of the provisioning approach, the data served would be stored in the SmartConnector database and managed asynchronously to the inbound client calls.  This is typically done with one or more custom Processors which maintain the data using the aforementioned EwsServerDataAdapter class.

Pros:

• Serve performance is fast.

• Simpler to implement. 

Cons:

• Served data may be stale between refresh cycles of the update Processor.

4.2.2 Synchronous Data Management

Synchronous data management involves provisioning a native SmartConnector EWS server via the portal (see SmartConnector Installation and Configuration Guide).  Once provisioned, all data is retrieved and served synchronous to the client request.  This is accomplished by creating custom EWS Server request processors for every EWS method to be supported.

Pros:

• Greater customization is achievable.

Cons:

• Serve performance is typically slower.

• Harder to configure.

• More involved to implement.

4.2.3 Hybrid Data Management

While synchronous data management offers a higher degree of customization, most solutions typically only require synchronous actions to support write, force, and unforce methods.  In these or similar situations, a hybrid approach is usually the best. 

Hybrid solutions are asynchronous solutions where only those method(s) which need to be performed synchronously are overridden from the base implementation. 

Pros:

• Serve performance is fast for reads.

• Allows selective customization.

Cons:

• Served data may be stale between refresh cycles of the update Processor.

• Harder to configure.

• Incrementally more involved to implement.

You choose to implement the Synchronous approach.  While what you did is certainly correct, it is only half of the battle.  When a client retrieves alarm data, there are two calls at work GetAlarmEvents and GetUpdatedAlarmEvents.  Since you only choose to provide custom GetAlarmEvents logic, the EWS Client (SBO) is making GetUpdatedAlarmEvents calls to get updates to what it already knows about and it is hitting the standard handler - which doesn't know about the data you already served.

You have two options here.

1. Supply custom GetUpdatedAlarmEvents logic (similar to what you did with GetAlarmEvents) that would respond to the client with updates since the "LastUpdate" value you originally returned in the GetAlarmEvents response.

2. Switch to an Asynchronous approach.  This would involve using a standard SmartConnector EWS Server and then creating a Processor which would poll your Alarm source and update the SmartConnector database accordingly (use the EwsServerDataAdapter class as referenced above).  The benefits to this approach is that you do not need to concern yourself with the idiosyncrasies of GetAlarmEvents, GetUpdatedAlarmEvents, and paging.

Hope this helps.

Mark

Reply
sesa197614_brid
sesa197614_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2016-11-08 04:07 PM

0 Likes
1
599
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-08 04:07 PM

Thanks Mark, by overriding both the function of GetAlarmEvents and GetUpdatedAlarmEvents, I get the right result.

One more question, I found there is no way to set the "Count" of alarm, could you please help me point out which attributes of "EwsAlarmEvent" or "AlarmEventsType" will be binding with "Count", or the "Count" will be always "0", that's incorrect.

Capture.JPG

Reply
sesa180908_brid
Commander sesa180908_brid Commander
Commander

Posted: ‎2016-11-09 06:53 AM

0 Likes
0
599
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-09 06:53 AM

The "Count" isn't an EWS thing so I'm not sure there is anything you can do in your custom EWS Server that can control that. 

If others know how/where SBO derives this information, please update this thread.

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of