没有合适的资源?快使用搜索试试~ 我知道了~
首页EdgeXFoundry详细说明文档英文
资源详情
资源评论
资源推荐
Welcome to the EdgeX Foundry documentation
EdgeX Foundry documentation V1.1.0
2 / 309
Contents
Welcome to the EdgeX Foundry documentation ...........................................................................................................1
1. Quick Start ...............................................................................................................................................................................9
1.1. Setup .............................................................................................................................................................................9
1.2. Running EdgeX ...........................................................................................................................................................9
1.3. Connecting a Device .............................................................................................................................................. 10
1.4. Connecting an Application ................................................................................................................................... 11
1.5. Controlling the Device ........................................................................................................................................... 12
1.6. Next Steps ................................................................................................................................................................ 15
2. Introduction.......................................................................................................................................................................... 16
2.1. Definitions: “South Side” and “North Side” ...................................................................................................... 16
2.2. EdgeX Foundry Architectural Tenets ................................................................................................................. 17
2.3. EdgeX Foundry Service Layers ............................................................................................................................ 17
2.4. Core Services Layer ................................................................................................................................................ 18
2.5. Supporting Services Layer .................................................................................................................................... 19
2.6. Export Services Layer ............................................................................................................................................. 20
2.7. Device Services Layer ............................................................................................................................................. 21
2.8. System Services Layer ............................................................................................................................................ 22
3. EdgeX Foundry Microservices Architecture.................................................................................................................. 24
3.1. Core Services Microservices¶ ........................................................................................................................................ 25
3.1.1. Configuration and Registry ........................................................................................................................................ 26
3.1.1.1. Introduction ....................................................................................................................................................... 26
3.1.1.1.1. Configuration ........................................................................................................................................ 26
3.1.1.2. Registry ............................................................................................................................................................... 29
3.1.1.2.1. Introduction to Registry ...................................................................................................................... 29
3.1.1.2.2. Web User Interface .............................................................................................................................. 30
3.1.1.2.3. Running on Docker .............................................................................................................................. 31
3.1.1.2.4. Running on Local Machine ................................................................................................................ 31
3.1.2. Core Data ....................................................................................................................................................................... 33
3.1.2.1. Introduction ....................................................................................................................................................... 33
3.1.2.2. Core Data “Streaming” .................................................................................................................................... 34
3.1.2.3. Data Model ........................................................................................................................................................ 34
3.1.2.4. Data Dictionary ................................................................................................................................................. 35
3.1.2.5. High Level Interaction Diagrams .................................................................................................................. 35
3.1.3. Metadata ........................................................................................................................................................................ 37
3.1.3.1. Introduction ....................................................................................................................................................... 37
3.1.3.1.1. Data Models .......................................................................................................................................... 40
3.1.3.2. Data Dictionary ................................................................................................................................................. 44
3.1.3.3. High Level Interaction Diagrams .................................................................................................................. 45
3.1.4. Command ...................................................................................................................................................................... 48
3.1.4.1. Introduction ....................................................................................................................................................... 48
3.1.4.2. Data Dictionary ................................................................................................................................................. 49
3.1.4.3. High Level Interaction Diagrams .................................................................................................................. 49
EdgeX Foundry documentation V1.1.0
3 / 309
3.2. Supporting Services Microservices .............................................................................................................................. 51
3.2.1. Alerts & Notifications .................................................................................................................................................. 52
3.2.1.1. Introduction ....................................................................................................................................................... 52
3.2.1.2. Data Model ........................................................................................................................................................ 54
3.2.1.3. Data Dictionary ................................................................................................................................................. 54
3.2.1.4. High Level Interaction Diagrams .................................................................................................................. 55
3.2.1.5. Configuration Properties ................................................................................................................................ 59
3.2.1.6. Configure Mail Server ..................................................................................................................................... 60
3.2.1.6.1. Gmail ....................................................................................................................................................... 60
3.2.1.6.2. Yahoo Mail ............................................................................................................................................. 61
3.2.2. Logging ........................................................................................................................................................................... 62
3.2.2.1. Introduction ....................................................................................................................................................... 62
3.2.2.2. Minimum Product Feature Set ...................................................................................................................... 62
3.2.2.3. High Level Design Architecture .................................................................................................................... 63
3.2.2.4. Configuration Properties ................................................................................................................................ 64
3.2.2.5. Logging Service Client Library for Go ......................................................................................................... 65
3.2.2.6. EdgeX Logging Keys ........................................................................................................................................ 67
3.2.3. Scheduling ..................................................................................................................................................................... 68
3.2.3.1. Introduction ....................................................................................................................................................... 68
3.2.3.2. Data Dictionary ................................................................................................................................................. 69
3.2.4. Rules Engine .................................................................................................................................................................. 70
3.2.4.1. Reference Implementation ............................................................................................................................ 70
3.2.4.2. Rules Engine as Export Service Client ......................................................................................................... 70
3.2.4.3. Rules Engine Direct Connect to Core Data ................................................................................................ 71
3.2.4.4. Rules Client and High Level Interaction Diagram .................................................................................... 72
3.2.4.5. Rules (Defined), and Data Model ................................................................................................................. 73
3.2.4.6. Rules Engine Configuration ........................................................................................................................... 76
3.2.4.7. Data Dictionary ................................................................................................................................................. 78
3.3. System Management ...................................................................................................................................................... 79
3.3.1. Introduction .......................................................................................................................................................... 79
3.3.2. The System Management Agent ..................................................................................................................... 80
3.3.3. Micro Service Management API ...................................................................................................................... 81
3.3.3.1. System Management Agent (SMA) ...................................................................................................................... 82
3.3.3.1.1. Introduction .................................................................................................................................................... 82
3.3.3.1.2. Examples of API Calls ................................................................................................................................... 82
3.3.3.1.2.1. Metrics of a service ........................................................................................................................... 82
3.3.3.1.2.2. Configuration of a service ............................................................................................................... 83
3.3.3.1.2.3. Start a service ..................................................................................................................................... 86
3.3.3.1.2.4. Stop a service ..................................................................................................................................... 86
3.3.3.1.2.5. Restart a service ................................................................................................................................ 87
3.3.3.1.2.6. Health check on a service ............................................................................................................... 88
3.4. Security............................................................................................................................................................................... 89
3.4.1. Secret Store ................................................................................................................................................................... 90
3.4.1.1. Start the Secret Store ...................................................................................................................................... 91
EdgeX Foundry documentation V1.1.0
4 / 309
3.4.1.1.1. Troubleshooting steps ........................................................................................................................ 92
3.4.1.1.2. Using Consul Web UI ........................................................................................................................ 101
3.4.1.1.3. Shell Access to Consul Container and Using Consul CLI .......................................................... 106
3.4.1.2. Configuring the Secret Store ....................................................................................................................... 106
3.4.1.3. Using the Secret Store .................................................................................................................................. 110
3.4.1.3.1. 1st alternative: executing a shell session in the active Vault container to run Vault CLI
commands. ............................................................................................................................................................ 110
3.4.1.3.2. 2nd alternative: using the Vault Web UI. ...................................................................................... 114
3.4.1.3.3. 3rd alternative: directly using the Vault HTTP API with cURL commands............................ 116
3.4.1.4. See also ............................................................................................................................................................. 119
3.4.2. API Gateway ................................................................................................................................................................ 119
3.4.2.1. Start the API Gateway ................................................................................................................................... 119
3.4.2.2. Configuring API Gateway ............................................................................................................................. 121
3.4.2.3. Using API Gateway ......................................................................................................................................... 122
3.4.3. Access EdgeX REST resources ................................................................................................................................. 126
3.4.4. Starting security services within EdgeX ................................................................................................................. 126
3.4.5. Security Issues ............................................................................................................................................................. 127
3.4.5.1. Security Announcements ............................................................................................................................. 127
3.4.5.2. Vulnerability Reporting ................................................................................................................................. 127
3.4.5.2.1. When to Report a Vulnerability? .................................................................................................... 127
3.4.5.2.2. When NOT to Report a Vulnerability? .......................................................................................... 127
3.4.5.3. Security Vulnerability Response.................................................................................................................. 128
3.4.5.4. Public Disclosure Timing .............................................................................................................................. 128
3.5. Export Services Microservices ..................................................................................................................................... 129
3.5.1. Client Registration ...................................................................................................................................................... 130
3.5.1.1. Introduction ..................................................................................................................................................... 130
3.5.1.2. Data Model ...................................................................................................................................................... 133
3.5.1.3. Data Dictionary ............................................................................................................................................... 133
3.5.1.4. High Level Interaction Diagram .................................................................................................................. 134
3.5.1.5. Client Registration Details ............................................................................................................................ 134
3.5.2. Distribution .................................................................................................................................................................. 136
3.5.2.1. Introduction ..................................................................................................................................................... 136
3.5.2.2. Client Registration and Distro Service Cooperation .............................................................................. 137
3.5.2.3. High Level Interaction Diagram .................................................................................................................. 138
3.5.2.4. Data Dictionary ............................................................................................................................................... 139
3.5.2.5. The Pipe and Filter ......................................................................................................................................... 139
3.5.3. Google IoT Core ......................................................................................................................................................... 142
3.6. Application Services Microservices ........................................................................................................................... 145
3.6.1. Application Services ................................................................................................................................................... 146
3.6.1.1. Export Service Deficiencies .......................................................................................................................... 147
3.6.1.2. Application Service Improvements ............................................................................................................ 147
3.6.1.3. Standard Functions ........................................................................................................................................ 147
3.6.1.4. Examples .......................................................................................................................................................... 149
3.6.1.4.1. Unsupported existing export service functions .......................................................................... 149
EdgeX Foundry documentation V1.1.0
5 / 309
3.6.2. Application Functions SDK (GoLang) .................................................................................................................... 150
3.6.2.1. Getting started ................................................................................................................................................ 150
3.6.2.2. Triggers ............................................................................................................................................................. 153
3.6.2.3. Context API ...................................................................................................................................................... 153
3.6.2.4. Built-In Transforms/Functions .................................................................................................................... 154
3.6.2.5. Configuration .................................................................................................................................................. 155
3.6.2.6. Error Handling ................................................................................................................................................. 155
3.6.2.2.1. Message Bus Trigger .......................................................................................................................................... 156
3.6.2.2.1.1. Type and Topic Configuration .............................................................................................................. 156
3.6.2.2.1.2. Message bus connection configuration ............................................................................................. 156
3.6.2.2.2. HTTP Trigger ......................................................................................................................................................... 157
3.7. Device Services Microservices .................................................................................................................................... 158
3.7.1. Virtual Device .............................................................................................................................................................. 160
3.7.1.1. Introduction ..................................................................................................................................................... 160
3.7.1.2. Virtual Resources Example ........................................................................................................................... 162
3.7.1.3. Special Configuration .................................................................................................................................... 163
3.7.1.4. System Architecture ....................................................................................................................................... 164
3.7.1.5. Device Profile Definition ............................................................................................................................... 166
3.7.1.6. Data Model ...................................................................................................................................................... 166
3.7.1.7. Data Dictionary ............................................................................................................................................... 169
3.7.2. Device Services SDK .................................................................................................................................................. 170
3.7.2.1. Introduction to the SDK ................................................................................................................................ 170
3.7.2.2. Device Service Workflow .............................................................................................................................. 170
3.7.2.3. Writing a Device Service ............................................................................................................................... 171
3.7.3. Device Profile ..................................................................................................................................................... 172
4. Getting Started .................................................................................................................................................................. 174
4.1. Getting Started - Users ................................................................................................................................................ 174
4.1.1. Introduction ........................................................................................................................................................ 174
4.1.2. Platform Requirements .................................................................................................................................... 175
4.1.3. Get & Run EdgeX Foundry .............................................................................................................................. 176
4.1.3.1. Install Docker & Docker Compose .................................................................................................... 176
4.1.3.2. Download the EdgeX Foundry Compose File ................................................................................ 176
4.1.3.3. Run EdgeX Foundry .............................................................................................................................. 178
4.1.4. Stop and Remove EdgeX Foundry ................................................................................................................ 180
4.1.5. Advanced EdgeX Foundry User Commands .............................................................................................. 181
4.1.6. Checking the Status of EdgeX Foundry ....................................................................................................... 184
4.1.6.1. Docker Container Status Check ......................................................................................................... 184
4.1.6.2. EdgeX Foundry Consul Registry......................................................................................................... 187
4.2. Getting Started - Developers ..................................................................................................................................... 188
4.2.1. Introduction ........................................................................................................................................................ 188
4.2.2. What You Need ................................................................................................................................................. 189
4.2.2.1. Get EdgeX Foundry - Go Developers ................................................................................................................ 190
4.2.2.1.1. Introduction .................................................................................................................................................. 190
4.2.2.1.2. What You Need For Go Development .................................................................................................. 190
剩余308页未读,继续阅读
码不停C
- 粉丝: 0
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0