Guest User

Untitled

a guest
Mar 12th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.01 KB | None | 0 0
  1. # setup (Monday)
  2.  
  3. sqlexpr (needs internet, but can be installed through an offline version of the installer)
  4. - server configuration: mixed mode
  5. - password: abc
  6. - sql server administrator: aslak-PC\aslak (aslak)
  7.  
  8. smartconnector
  9. - sql server express
  10. - give previous password (abc)
  11. - localdb requires (like sql express) a separate install
  12. - if successful it will start a service exposing a web interface on http://localhost:8082/Login
  13. - username: admin
  14. - initial password: Admin!23
  15. - new password: Password!23
  16.  
  17. smartconnector license:
  18. - Get it from here: https://www.smartconnectorserver.com/Marketplace
  19. - password: Password!23
  20. - developer license for runtime 2.4 (developer) under license depot
  21. - license key: 83AE460B2A7C26CED5CB65057501938CDE5C4060687E9F820213AC605D52B08B061FE48156FED89E84F7FA88AA81515A13B4B0700217D77575DCF101F8631CD2
  22. - developer lincese runs out in 60 days. Then you just go back and get another one
  23.  
  24. install enterprise server (in the /Ebo of the archive, all defaults)
  25. - License Administrator
  26. - Enterprise Server (http:80, https:443, TCP:4444, local system)
  27. - Workstation
  28.  
  29. run licence administrator (which is now installed)
  30. - chose Licences and add the license file from under /Ebo
  31. - this will run out
  32. - Get a new one from the exchange community or through Niels (Schneider DK)
  33.  
  34. run "software administrator building operations" (search in the start menu)
  35. - watch out for red marks (indicating port conflicts)
  36. - start the server
  37.  
  38. run "workstation building operation" (type in start menu)
  39. - default username password: admin/admin
  40. - new password: Password!23
  41. - also exposes https://localhost
  42.  
  43. install azure data studio (for a backchannel into the database of users (encrypted) and endpoints (not encrypted))
  44.  
  45. NuGet account:
  46. - Password: Password!23
  47. - https://www.myget.org/F/mongoose/auth/530ff9fe-a643-4636-9745-eff419fb3253/api/v3/index.json
  48.  
  49. # tuesday
  50.  
  51. definition slides could use more structure to ease reception
  52.  
  53. ews clients reuse connections
  54.  
  55. the smart connector thread count is basically a thread pool
  56.  
  57. "+" can be used to bind to all interfaces
  58.  
  59. password age limit set to zero to not require it to change
  60.  
  61. SubscriptionReader seems important
  62.  
  63. asynchronuous operations only goes to the SQL database (which is updated on a schedule) where as synchronuous goes directly to the source (and is then slow)
  64.  
  65. passive third party data flow seems interesting
  66.  
  67. every public property will be exposed for configuration through the UI
  68.  
  69. NoBusyWait() - otherwise a busy while loop will eat your memory (don't use busy wait)
  70.  
  71. ILongRunningProcess, e.g. for processes listening on a socket
  72.  
  73. https://github.com/buildingslabs/smartconnectorsamples
  74.  
  75. EWO only supports 30 min subscriptions, then it gets automatically unsubscribed
  76.  
  77. forcing is performing a manual override
  78.  
  79. only one program can write to a point. This can at times lead to ugly code
  80.  
  81. Scripts are working on raw values so one has to be a bit carefull to make it portable between imperial and metric. The UI does conversion to your locale though.
  82.  
  83. SmartConnector.Utilities under NuGet (from public repo that we can contribute to)
  84.  
  85. you can use tuples in c#
  86.  
  87. openweathermaps can give you current and predicted waether for free
  88.  
  89. Logger.LogError and Logger.LogDebug
  90.  
  91. openweathermap account:
  92. - asjo
  93. - Password!23_
  94. - Default api key: 1186cc9834d174db8a0678dcc56382f1
  95.  
  96. Install https://marketplace.visualstudio.com/items?itemName=NUnitDevelopers.NUnit3TestAdapter
  97.  
  98. F12 goes to definition
  99.  
  100. # wednesday
  101.  
  102. how to open the code: Got to C:\Users\aslak\source\repos\SmartConnectorSamples and click "SmartConnectorSamples". This is a solutions file.
  103.  
  104. got the weather forecasts working by completing the merge (maybe?)
  105.  
  106. you can deploy a debug dll and then licence won't be required
  107.  
  108. 3 types of subscriptions in ebo
  109. - value changes: sensor values
  110. - hierarchy changes: e.g., a point being moved
  111. - alarm changes: not really sure
  112.  
  113. trends is a timeseries
  114.  
  115. alarm consists of a timestamp, a message, a priority and a linked point
  116.  
  117. custom ews servers
  118.  
  119. licensing ...
  120.  
  121. when building for release the resulting dll will be in C:\Users\aslak\source\repos\SmartConnectorSamples\SmartConnector.WeatherExtension\bin\Release . It needs to be moved to C:\Program Files\Schneider Electric\SmartConnector
  122.  
  123. Logs: C:\ProgramData\SmartConnector\Logs
  124.  
  125. C:\ProgramData is hidden!
  126.  
  127. whatever I rightclick and host will be created on your server
  128.  
  129. TODO: we should add a "configured" signal
  130.  
  131. we get a timestamp for when a point is invalidated
  132.  
  133. Jeff says that some Russians have been working on a high-performance OPC (da or ua?) smartconnector thing
  134.  
  135. send jeff an email about getting access to the smartconnector developer forum
  136.  
  137. yesterday we had tu import stuf from XsL
  138.  
  139. # Wednesday: writing a processor
  140.  
  141. managedewsclient is recommended over ewsclient
  142.  
  143. it is SOAP
  144.  
  145. subscriptions seem very volatile and complex (lots of potential exception to take care of) to work with
  146.  
  147. The cache is essentially a shared memory segment, which can be cleared. The reason for having multiple segments is protection.
  148.  
  149. limit subscription to 500-1000 items to avoid errors
  150.  
  151. the plan is to move some of the code Jeff is writing today into the utilities libraries for convenience.
  152.  
  153. UpdateValues(...) -> SendValues(...)
  154.  
  155. the cache of a test is being cleared before/after(?) every execution
  156.  
  157. invalid id if the interface is offline (e.g., if openweather was down)
  158.  
  159. subscriptions are better than getvalues
  160.  
  161. the get going guide?
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169. # misc notes (monday ...)
  170.  
  171. quite nice graphics based on HTML5
  172.  
  173. they use a hardcoded conditioning time for room scheduling
  174.  
  175. alexa support for room scheduling, and temperature setup
  176.  
  177. they have a structural overview of the breaker system
  178.  
  179. extract some information from IFC and BIM models, but has humans in the loop
  180.  
  181. they can remotely lock and unlock doors
  182.  
  183. cheap sensor for retrofitting desks for occupancy detection
  184.  
  185. uses interfaces with named entries for mapping scripts to point names
  186.  
  187. haystack-style tag names and brick for the future metadata
  188.  
  189. github project: olga ontology library generator, build on stardock(?). ecostructure olga
  190.  
  191. smartconnecter is for everything which doesn't ahve a native interface
  192.  
  193. If I poll I will get the latest value at the timestamp of querying. If I go through trendlogs, I will get the time of reception/sampling.
  194.  
  195. Can we pull the meter data through Schneider?
  196.  
  197. csp (common service protocol?) protocol for quick access (but still involves polling)
  198.  
  199. ews support polling and subscription (which is basically polling on dynamically defined sets of points)
  200.  
  201. As (automation server) has minited space for logs, ES (enterprise server) does not.
  202.  
  203. thin client is a browser, thich client is the "workstation" desktop application
  204.  
  205. tenant: this is where I can add users through their emails
  206.  
  207. azuredatastudio is usefull for looking at what is in the database. SQL management studio (2012) can also be used.
  208.  
  209. Documentation (guide really): C:\Program Files\Schneider Electric EcoStruxure\Building Operation 2.0\WorkStation\Guide
  210.  
  211. Logs (c# logging ends up here): C:\ProgramData\SmartConnector\Logs
  212.  
  213. Choose severity for logging: http://localhost:8082/ServiceSettings
  214.  
  215. Choose which things to log: http://localhost:8082/LoggingFilters
  216.  
  217. Existing scripts and how to use them: C:\ProgramData\Schneider Electric EcoStruxure\Building Operation 2.0\WorkStation\Script Editor\Code Library
  218.  
  219. the scripting language is "plain englist"
  220.  
  221. code has to be run by a task
  222.  
  223. point names are relative to the folder the script is contained in
  224.  
  225. manual mapping from a well-defined tree structure (e.g., /sdu/ou44/u180/temperature) to providers (e.g., some some path under bacnet)
  226.  
  227. can use SoarUI for testing
  228.  
  229. Digital means boolean
  230.  
  231. multistate is essentially an enum
  232.  
  233. opening a script editor is REALLY slow
  234.  
  235. a scipt can see if a point is online (or if a point is bound to it)
  236.  
  237. binding templates for primitive automatic searches for potential bindings
  238.  
  239. flavor of what is coming (not done or given):
  240. - pacific electic for brick?
Add Comment
Please, Sign In to add comment