- Встроенный режим Embedded mode
- Фоновые приложения Background Applications
- Возможности устройства Ловлевел и возможности Ловлевелдевице lowLevel device Capability and lowLevelDevice capability
- Возможность Системманагмент systemManagment Capability
- Отладка фоновых приложений Debugging Background Applications
- Изменение режима Changing the mode
- Настройка автоматического запуска фонового приложения Configuring a Background Application to Run automatically
- Embedded mode
- Background Applications
- lowLevel device Capability and lowLevelDevice capability
- systemManagment Capability
- Debugging Background Applications
- Changing the mode
- Configuring a Background Application to Run automatically
Встроенный режим Embedded mode
Встроенный режим поддерживается в Windows IoT Core и Windows IoT Корпоративная. Embedded Mode is supported on Windows IoT Core and Windows IoT Enterprise. Внедренный режим включает: Embedded Mode enables:
- Фоновые приложения (Дополнительные сведения) Background Applications (read more)
- Использование возможности Ловлевелдевице Use of the lowLevelDevice capability
- Использование возможности Системманажемент Use of systemManagement capability
Встроенный режим всегда включен в Windows IoT Core. Embedded mode is always enabled on Window IoT Core. Внедренный режим должен быть включен, выполнив действия, описанные ниже в Windows IoT Корпоративная. Embedded mode must be enabled by following the steps below on Windows IoT Enterprise.
Фоновые приложения Background Applications
Фоновые приложения создаются с помощью шаблона фонового приложения (IoT) в Visual Studio. Background Applications are created using the Background Application (IoT) template in Visual Studio. Узнайте больше о создании фоновых приложений. Read more about creating Background Applications.
Фоновые приложения запускаются без остановки и без ограничений ресурсов. Background applications run without stopping and without resource limits. Кроме того, если фоновое приложение останавливается по какой-либо причине, а внедренный режим включен, фоновое приложение будет перезапущено системой. Also, if the background application stops for some reason and embedded mode is enabled the background application will be restarted by the system.
Хотя система автоматически перезапускает фоновые приложения, необходимо включить функции блокирования системы, чтобы запретить пользователям останавливать или мешать работе фоновых приложений. While the system will automatically restart background applications, system lockdown features must be enabled to prevent users from stopping or interfering with the operation of Background Applications.
Возможности устройства Ловлевел и возможности Ловлевелдевице lowLevel device Capability and lowLevelDevice capability
Возможность устройства ловлевел предоставляет доступ к аппаратным интерфейсам низкого уровня, таким как GPIO, SPI и I2C. The lowLevel device Capability gives access to low-level hardware interfaces like GPIO, SPI, and I2C.
Функция ловлевелдевицес позволяет приложениям получать доступ к пользовательским устройствам при выполнении ряда дополнительных требований. The lowLevelDevices Capability allows apps to access custom devices when a number of additional requirements are met. Эту возможность не следует путать с возможностью lowLevel устройства, которая обеспечивает доступ к устройствам GPIO, I2C, SPI и PWM. This capability should not be confused with the lowLevel device capability, which allows access to GPIO, I2C, SPI, and PWM devices.
Дополнительные сведения см. в разделе объявления возможностей приложений . Refer to App capability declarations for details.
Возможность Системманагмент systemManagment Capability
При включении возможностей Системманагмент для приложения это набор интерфейсов API, которые будут разблокированы: When you enable the systemManagment capabilities for your application, this is the set of APIs that gets unlocked:
Отладка фоновых приложений Debugging Background Applications
При отладке на устройстве, не работающем под управлением Windows IoT базовая, вы увидите одно из следующих сообщений об ошибке, необходимых для обеспечения включения Алловембеддедмоде на устройстве и запуска службы в режиме Embedded: If you are debugging on a device that is not running Windows IoT Core and you see either of the following error messages you need to ensure AllowEmbeddedMode is enabled on the device and that the Embedded Mode service is running:
- В модуле сопоставления конечных точек больше нет доступных конечных узлов. There are no more endpoints available from the endpoint mapper.
- Эта программа заблокирована групповой политикой. This program is blocked by group policy. Для получения дополнительных сведений обратитесь к системному администратору. For more information, contact your system administrator.
Изменение режима Changing the mode
Чтобы включить внедренный режим, необходимо создать пакет подготовки в конструкторе образов и Configuration Designer (ICD), который задает Алловембеддедмоде = 1. To enable embedded mode, you will need to create a provisioning package in Imaging and Configuration Designer (ICD) that sets AllowEmbeddedMode=1. Чтобы установить ICD, необходимо загрузить и установить Windows ADK для Windows 10. To install ICD, you need to download and install the Windows ADK for Windows 10.
При установке ADK SELECT Imaging and Configuration Designer (ICD) When installing the ADK select Imaging and Configuration Designer (ICD)
После завершения установки запустите конструктор Windows Imaging и Configuration Designer (ВИКД). After installation is complete, run Windows Imaging and Configuration Designer (WICD).
Щелкните Расширенная подготовка. Click Advanced provisioning. Назовите проект алловембеддедмоде и нажмите кнопку Далее. Name the project AllowEmbeddedMode and click Next.
Выберите Общие для всех выпусков Windows и Далее. Choose Common to all Windows editions then Next.
Нажмите кнопку Готово. Click Finish.
В поле поиска введите ембеддедмоде и щелкните алловембеддедмоде. In the search box type EmbeddedMode and then click on AllowEmbeddedMode.
В центральной области установите для параметра алловембеддедмоде значение Да In the center pane set the value of AllowEmbeddedMode to Yes
Щелкните Экспорт > подготовки пакета. Click Export > Provisioning Package
Нажмите кнопку «Далее». Click Next.
Нажмите кнопку «Далее». Click Next.
Нажмите кнопку «Далее». Click Next.
Щелкните Построить. Click Build.
Установка встроенного режима. PPKG в Windows IoT корпоративный дважды щелкните. PPKG. To install the embedded mode .PPKG on Windows IoT Enterprise double-click on the .PPKG.
Нажмите кнопку Да, добавить. Click Yes, add it. Нажмите кнопку Да в диалоговом окне LUA, если оно отображается, и нажмите кнопку Да, чтобы добавить его в диалоговое окно, показанное ниже. Click yes on the LUA dialog if it appears, and the click Yes, add it on the dialog shown below.
Настройка автоматического запуска фонового приложения Configuring a Background Application to Run automatically
Чтобы настроить фоновое приложение для автоматического запуска, необходимо следовать указаниям по созданию карты SD минновбоардмакс и копированию D:\windows\system32\iotstartup.exe (где D: это SD-карта). To configure a Background Application to automatically run, you will need to follow the directions to create an MinnowBoardMax SD Card and copy D:\windows\system32\iotstartup.exe (where D: is your SD Card).
Чтобы получить список установленных фоновых приложений, выполните следующие действия. To get a list of installed Background Applications type:
Перезапустите устройство с внедренным режимом: Restart the embedded mode device:
После перезагрузки устройства фоновое приложение запустится автоматически. Once the device has restarted, your Background Application will start automatically. Для запуска службы в режиме внедренного режима, которая управляет фоновыми приложениями, может потребоваться несколько минут. The Embedded Mode service that manages Background Applications can take a few minutes to start. Служба внедренного режима будет отслеживать фоновые приложения в списке автозагрузки и обеспечить их перезапуск в случае их зависания. The embedded mode service will monitor Background Applications on the startup list and make sure they get restarted if they stop. Если фоновое приложение останавливается несколько раз в течение короткого периода времени, оно больше не будет перезапущено. If a Background Application stops several times in a short period of time, it will no longer be restarted.
Чтобы удалить фоновое приложение из списка автозагрузки, выполните следующие действия. To remove your Background Application from the startup list type:
- Если фоновое приложение удаляется из списка автозагрузки, выходные данные будут выглядеть следующим образом: If the Background Application is removed from the startup list the output will look like this:
—>
Embedded mode
Embedded Mode is supported on Windows IoT Core and Windows IoT Enterprise. Embedded Mode enables:
- Background Applications (read more)
- Use of the lowLevelDevice capability
- Use of systemManagement capability
Embedded mode is always enabled on Window IoT Core. Embedded mode must be enabled by following the steps below on Windows IoT Enterprise.
Background Applications
Background Applications are created using the Background Application (IoT) template in Visual Studio. Read more about creating Background Applications.
Background applications run without stopping and without resource limits. Also, if the background application stops for some reason and embedded mode is enabled the background application will be restarted by the system.
While the system will automatically restart background applications, system lockdown features must be enabled to prevent users from stopping or interfering with the operation of Background Applications.
lowLevel device Capability and lowLevelDevice capability
The lowLevel device Capability gives access to low-level hardware interfaces like GPIO, SPI, and I2C.
The lowLevelDevices Capability allows apps to access custom devices when a number of additional requirements are met. This capability should not be confused with the lowLevel device capability, which allows access to GPIO, I2C, SPI, and PWM devices.
systemManagment Capability
When you enable the systemManagment capabilities for your application, this is the set of APIs that gets unlocked:В В
Debugging Background Applications
If you are debugging on a device that is not running Windows IoT Core and you see either of the following error messages you need to ensure AllowEmbeddedMode is enabled on the device and that the Embedded Mode service is running:
- There are no more endpoints available from the endpoint mapper.
- This program is blocked by group policy. For more information, contact your system administrator.
Changing the mode
To enable embedded mode, you will need to create a provisioning package in Imaging and Configuration Designer (ICD) that sets AllowEmbeddedMode=1. To install ICD, you need to download and install the Windows ADK for Windows 10.
When installing the ADK select Imaging and Configuration Designer (ICD)
After installation is complete, run Windows Imaging and Configuration Designer (WICD).
Click Advanced provisioning. Name the project AllowEmbeddedMode and click Next.
Choose Common to all Windows editions then Next.
Click Finish.
In the search box type EmbeddedMode and then click on AllowEmbeddedMode.
In the center pane set the value of AllowEmbeddedMode to Yes
Click Export > Provisioning Package
To install the embedded mode .PPKG on Windows IoT Enterprise double-click on the .PPKG.
Click Yes, add it. Click yes on the LUA dialog if it appears, and the click Yes, add it on the dialog shown below.
Configuring a Background Application to Run automatically
To configure a Background Application to automatically run, you will need to follow the directions to create an MinnowBoardMax SD Card and copy D:\windows\system32\iotstartup.exe (where D: is your SD Card).
To get a list of installed Background Applications type:
Restart the embedded mode device:
Once the device has restarted, your Background Application will start automatically. The Embedded Mode service that manages Background Applications can take a few minutes to start. The embedded mode service will monitor Background Applications on the startup list and make sure they get restarted if they stop. If a Background Application stops several times in a short period of time, it will no longer be restarted.
To remove your Background Application from the startup list type:
- If the Background Application is removed from the startup list the output will look like this:
—>