Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Brand Logo
Help
  • Get started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
close
  • Community Home
  • Forums
    • By Topic
    • By Topic
      EcoStruxure Building
      • Field Devices Forum
      • SmartConnector Forum
      EcoStruxure Power & Grid
      • Gateways and Energy Servers
      • Metering & Power Quality
      • Protection & Control
      APC UPS, Critical Power, Cooling and Racks
      • APC UPS Data Center & Enterprise Solutions Forum
      • APC UPS for Home and Office Forum
      EcoStruxure IT
      • EcoStruxure IT forum
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • EcoStruxure Geo SCADA Expert Forum
      • Remote Operations Forum
      Industrial Automation
      • Alliance System Integrators Forum
      • AVEVA Plant SCADA Forum
      • CPG Expert Forum DACH
      • EcoStruxure Automation Expert / IEC 61499 Forum
      • Fabrika ve Makina Otomasyonu Çözümleri
      • Harmony Control Customization Forum
      • Industrial Edge Computing Forum
      • Industry Automation and Control Forum
      • Korea Industrial Automation Forum
      • Machine Automation Forum
      • Modicon PAC Forum
      • PLC Club Indonesia
      Schneider Electric Wiser
      • Schneider Electric Wiser Forum
      Power Distribution IEC
      • Eldistribution & Fastighetsautomation
      • Elektrik Tasarım Dağıtım ve Uygulama Çözümleri
      • Paneelbouw & Energie Distributie
      • Power Distribution and Digital
      • Solutions for Motor Management
      • Specifiers Club ZA Forum
      • Електропроектанти България
      Power Distribution NEMA
      • Power Monitoring and Energy Automation NAM
      Power Distribution Software
      • EcoStruxure Power Design Forum
      • LayoutFAST User Group Forum
      Energy & Sustainability Services
      • Green Building Scoring and Certification Forum
      Light and Room Control
      • SpaceLogic C-Bus Forum
      Solutions for your Business
      • Solutions for your Business Forum
      Support
      • Ask the Community
  • Knowledge Center
    • Building Automation Knowledge Base
    • Remote Operations Devices Knowledge Base
    • Geo SCADA Knowledge Base
    • Industrial Automation How-to videos
    • Digital E-books
    • Success Stories Corner
  • Events & Webinars
    • All Events
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Partner Success
    • Process Automation Talks
    • Technology Partners
  • Ideas
    • EcoStruxure Building
      • EcoStruxure Building Advisor Ideas
      Remote Operations
      • EcoStruxure Geo SCADA Expert Ideas
      • Remote Operations Devices Ideas
      Industrial Automation
      • Modicon Ideas & new features
  • Blogs
    • By Topic
    • By Topic
      EcoStruxure Power & Grid
      • Backstage Access Resources
      EcoStruxure IT
      • EcoStruxure IT™ Advisor CFD
      Remote Operations
      • Remote Operations Blog
      Industrial Automation
      • Industrie du Futur France
      • Industry 4.0 Blog
      Power Distribution NEMA
      • NEMA Power Foundations Blog
      Energy & Sustainability Services
      • Active Energy Management Blog
      Light and Room Control
      • KNX Blog
      Knowledge Center
      • Digital E-books
      • Geo SCADA Knowledge Base
      • Industrial Automation How-to videos
      • Remote Operations Devices Knowledge Base
      • Success Stories Corner
  • companyImpact

A little guidance in project selection

SmartConnector Forum

Discussion of SmartConnector applications for integration of various 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
  • Communities
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • A little guidance in project selection
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 Exchange 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
JeffBowman Schneider Alumni (Retired)
164
sesa180908_brid
Commander sesa180908_brid Commander
34
ardak
Commander ardak Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Building Operation

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
ahmet191
Ensign ahmet191
Ensign

Posted: ‎2022-09-06 04:40 AM

0 Likes
7
973
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2022-09-06 04:40 AM

A little guidance in project selection

Hello SmartConnector Community,

 

I've been reviewing the posts here for a while, but unfortunately there is not a very large audience. If there were, I would guess that much simpler questions would have been asked. But it's getting bigger so I'm going to ask that simple question 🙂

 

I'm pretty new to SmartConnector. Actually, I'm pretty new to software also. I will mention about what I have to do. I would be very grateful if you could guide me in simple terms. What is required of me is to integrate an existing fire system software with EBO. Let's call this software x software. This x software gives me required information via API. I generally need to show this information on the EBO side. In rare cases, there will be things that I need to post from the EBO side to the x software side. So there is a two-way flow of data.

 

While the summary is like this, I reviewed all the sample projects on the SmartConnector side. I could not read any Endpoint on the EBO side. Only EWS Server has a fine flow. I'm trying to write a Custom EWS Server myself. But It would be nice to proceed in the right direction, whichever is an easy method or the more correct method. I would be very grateful if you could guide me on this.

 

Kind regards,

Ahmet

  • Thumbnail of EcoStruxure™ Building Operation
    Schneider Electric
    EcoStruxure™ Building Operation
View products (1)
Tags (1)
  • Tags:
  • english
Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
Erwin-vd-Zwart
Admiral Erwin-vd-Zwart Admiral
Admiral

Posted: ‎2022-09-06 06:49 AM

2 Likes
2
936
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2022-09-06 06:49 AM

Hi,

 

Well that depends on your task, what i have done is create a ValueReceiveProcessor that runs forever with a variable as delay for the requests.

 

#region FeedbackInterval
[Required, Range(1, 300), DefaultValue(5), Tooltip("Inval speed of feedback polling in seconds")]
public int FeedbackInterval { get; set; }
#endregion

 

public class ValueReceiveProcessor : ProcessorBase, ILongRunningProcess
{

#region Execute_Subclass - Override
protected override IEnumerable<Prompt> Execute_Subclass()
{
for (;;)
{
CheckCancellationToken();
// Perform here your class to do the actual request
Task.Delay(FeedbackInterval * 1000).Wait();
}
}
#endregion

}

 

And then i created a ValuePush processor that fetch changes from EBO to push to the API

 

#region Lastrun
public DateTime LastRun = DateTime.Now.ToUniversalTime();
#endregion

 

public class ValuePushProcessor : ProcessorBase, ILongRunningProcess
{

#region Execute_Subclass - Override
protected override IEnumerable<Prompt> Execute_Subclass()
{
for (;;)
{
CheckCancellationToken();
WriteUpdatesFromEBO();
Task.Delay(100).Wait();
}
}
#endregion

 

#region WriteUpdatesFromEBO
protected void WriteUpdatesFromEBO()
{
// Reload database context to get latest values (update of DataAdapter)
DataAdapter.CreateDatabaseContext();

// Get changed items from the DataAdapter
var updatedValueItems = DataAdapter.ValueItems.Where(vi => vi.LastModified > LastRun).ToList();

// Send command based on changed value to Versosol API
foreach (var updatedValueItem in updatedValueItems)
{

// Do stuff on a changed item in the EWS server

}

LastRun = DateTime.Now.ToUniversalTime();

}
#endregion

 

}

See Answer In Context

Tags (1)
  • Tags:
  • english
Reply
Replies 7
Erwin-vd-Zwart
Admiral Erwin-vd-Zwart Admiral
Admiral

Posted: ‎2022-09-06 06:22 AM

0 Likes
4
952
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2022-09-06 06:22 AM

Hi,

 

The SmartConnectorWeatherSample code should cover 99% of your request..

 

Here are the introduction videos that takes you step by step to the process

 

https://community.se.com/t5/SmartConnector-Forum/SmartConnectorWeatherSamples-teaching-videos-are-mi... 

 

BR,

 

Erwin

Tags (1)
  • Tags:
  • english
Reply
mike_meirovitz
Commander mike_meirovitz
Commander

Posted: ‎2022-09-06 06:33 AM

0 Likes
1
946
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2022-09-06 06:33 AM

Hi Ahmet,

 

If your fire system supports OPC server connectivity, then you don't need to develop anything. You can simply use the EBO-OPC Client software. See this link.

 

Regards,

 

Michael

Tags (1)
  • Tags:
  • english
Reply
ahmet191
Ensign ahmet191
Ensign

Posted: ‎2022-09-06 06:34 AM

0 Likes
3
943
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2022-09-06 06:34 AM

Thanks for reply Erwin,

 

You can be sure that I have reviewed the developer guide completely and watched the videos(I might be as professional as others maybe). But unfortunately they do not fully meet what I want. At least I can describe it this way, for example. In the SmartConnectorWeatherSamples project, UpdateProcessor has to be run repeatedly to update the data. I want to make it permanent. at least send a request to the API that I provide data from outside at certain periods.

 

In this sense, only the EWS Server is running all the time and I guess this can provide what I want. Am I thinking right about this? Should I work on Custom EWS Server to keep data up to date from API? Or should I design a LongRunningProcessor that comes to my mind and make periodic requests over the processor? Do you have any comments about this? Am I thinking wrong on some point?

 

Kind Regards,

Ahmet

Tags (1)
  • Tags:
  • english
Reply
ahmet191
Ensign ahmet191
Ensign

Posted: ‎2022-09-06 06:36 AM

0 Likes
0
940
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2022-09-06 06:36 AM

Thank you Michael.

 

Maybe i should ask this to relevant people. I know they don't have at the moment. But maybe they might choose this solution and make some changes. Thank you.

 

Kind Regards,

Ahmet

Tags (1)
  • Tags:
  • english
Reply
Erwin-vd-Zwart
Admiral Erwin-vd-Zwart Admiral
Admiral

Posted: ‎2022-09-06 06:49 AM

2 Likes
2
937
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2022-09-06 06:49 AM

Hi,

 

Well that depends on your task, what i have done is create a ValueReceiveProcessor that runs forever with a variable as delay for the requests.

 

#region FeedbackInterval
[Required, Range(1, 300), DefaultValue(5), Tooltip("Inval speed of feedback polling in seconds")]
public int FeedbackInterval { get; set; }
#endregion

 

public class ValueReceiveProcessor : ProcessorBase, ILongRunningProcess
{

#region Execute_Subclass - Override
protected override IEnumerable<Prompt> Execute_Subclass()
{
for (;;)
{
CheckCancellationToken();
// Perform here your class to do the actual request
Task.Delay(FeedbackInterval * 1000).Wait();
}
}
#endregion

}

 

And then i created a ValuePush processor that fetch changes from EBO to push to the API

 

#region Lastrun
public DateTime LastRun = DateTime.Now.ToUniversalTime();
#endregion

 

public class ValuePushProcessor : ProcessorBase, ILongRunningProcess
{

#region Execute_Subclass - Override
protected override IEnumerable<Prompt> Execute_Subclass()
{
for (;;)
{
CheckCancellationToken();
WriteUpdatesFromEBO();
Task.Delay(100).Wait();
}
}
#endregion

 

#region WriteUpdatesFromEBO
protected void WriteUpdatesFromEBO()
{
// Reload database context to get latest values (update of DataAdapter)
DataAdapter.CreateDatabaseContext();

// Get changed items from the DataAdapter
var updatedValueItems = DataAdapter.ValueItems.Where(vi => vi.LastModified > LastRun).ToList();

// Send command based on changed value to Versosol API
foreach (var updatedValueItem in updatedValueItems)
{

// Do stuff on a changed item in the EWS server

}

LastRun = DateTime.Now.ToUniversalTime();

}
#endregion

 

}

Tags (1)
  • Tags:
  • english
Reply
ahmet191
Ensign ahmet191
Ensign

Posted: ‎2022-09-06 06:57 AM

0 Likes
1
930
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2022-09-06 06:57 AM

Erwin thank you so much.

 

I needed something like this. Your answer will be the solution i believe also. I wish I had asked earlier. Thanks again.

 

Best Regards,

Ahmet

Tags (1)
  • Tags:
  • english
Reply
Erwin-vd-Zwart
Admiral Erwin-vd-Zwart Admiral
Admiral

Posted: ‎2022-09-06 07:09 AM

1 Like
0
923
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2022-09-06 07:09 AM

Hi,

 

Keep in mind that i use NuGet Package SmartConnector.Utilities and for this you need to copy SmartConnector.Utilities.dll thogether with the .dll assembly to the SC folder when deploying.

 

Some code might make use of this classes

 

BR,

 

Erwin

Tags (1)
  • Tags:
  • english
Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

Additional options
You do not have permission to remove this product association.
 
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 forum after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the forum - 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 © 2023 Schneider Electric, Inc