裝置、感應器及電源Devices, sensors, and power

為提供使用者豐富的使用經驗,您可能會發現有必要將外部裝置或感應器與您的應用程式整合。In order to provide a rich experience for your users, you may find it necessary to integrate external devices or sensors into your app. 以下是一些功能範例,您可以使用本節所描述的技術將這些功能新增到您的應用程式中。Here are some examples of features that you can add to your app using the technology described in this section.

  • 提供進階的列印經驗Providing an enhanced print experience
  • 將動作和方向感應器整合到您的遊戲中Integrating motion and orientation sensors into your game
  • 直接或透過網路通訊協定連線到裝置Connecting to a device directly or through a network protocol
主題Topic 描述Description
啟用裝置功能Enable device capabilities 本教學課程描述如何在 Microsoft Visual Studio 中宣告裝置功能。This tutorial describes how to declare device capabilities in Microsoft Visual Studio. 這可以讓您的應用程式使用相機、麥克風、定位感應器及其他裝置。This enables your app to use cameras, microphones, location sensors, and other devices.
以使用者模式存取 Windows IoTEnable usermode access for Windows IoT 本教學課程描述如何在 Windows 10 IoT 核心版上以使用者模式存取 GPIO、I2C、SPI 及 UART。This tutorial describes how to enable usermode access to GPIO, I2C, SPI, and UART on Windows 10 IoT Core.
列舉裝置Enumerate devices 列舉命名空間可讓您尋找內部連接到系統、外部連接,或者可透過無線或網路通訊協定偵測到的裝置。The enumeration namespace enables you to find devices that are internally connected to the system, externally connected, or detectable over wireless or networking protocols.
配對裝置Pair devices 有些裝置在使用之前需要先進行配對。Some devices need to be paired before they can be used. Windows.Devices.Enumeration 命名空間支援三種不同方式來配對裝置。The Windows.Devices.Enumeration namespace supports three different ways to pair devices.
服務點Point of Service 本節說明如何與服務點週邊設備 (例如條碼掃描器、收據印表機、收銀機) 進行互動。This section describes how to interact with point of service peripherals, such as barcode scanners, receipt printers, cash drawers, etc.
感應器Sensors 感應器可讓 app 得知裝置與周遭實際環境之間的關係。Sensors let your app know the relationship between a device and the physical world around it. 感應器會將裝置的方向、指向及動作告知您的 app。Sensors can tell your app the direction, orientation, and movement of the device.
BluetoothBluetooth 本節包含如何將藍牙整合至通用 Windows 平台 (UWP) 應用程式的文章,包括如何使用 RFCOMM、GATT 及低功耗 (LE) 廣告。This section contains articles on how to integrate Bluetooth into Universal Windows Platform (UWP) apps, including how to use RFCOMM, GATT, and Low Energy (LE) Advertisements.
列印與掃描Printing and scanning 本節描述如何從您的通用 Windows 應用程式列印與掃描。This section describes how to print and scan from your Universal Windows app.
3D 列印3D printing 本節描述如何利用通用 Windows app 中的 3D 列印功能。This section describes how to utilize 3D printing functionality in your Universal Windows app.
建立 NFC 智慧卡應用程式Create an NFC Smart Card app Windows Phone 8.1 使用以 SIM 卡為基礎的安全元素來支援 NFC 卡模擬應用程式,但該模型需要安全的付款應用程式才能與行動網路運算子 (MNO) 緊密結合。Windows Phone 8.1 supported NFC card emulation apps using a SIM-based secure element, but that model required secure payment apps to be tightly coupled with mobile-network operators (MNO). 這會限制其他未結合 MNO 的商家或開發人員所提供的各種可能付款解決方案,This limited the variety of possible payment solutions by other merchants or developers that are not coupled with MNOs. 在 Windows 10 行動裝置版中,我們已導入新的卡片模擬技術,稱為主機卡模擬 (HCE)。In Windows 10 Mobile, we have introduced a new card emulation technology called, Host Card Emulation (HCE). HCE 技術可讓您的應用程式直接與 NFC 卡讀卡機進行通訊。HCE technology allows your app to directly communicate with an NFC card reader. 本主題說明主機卡模擬 (HCE) 在 Windows 10 行動裝置版裝置上的運作方式,以及如何開發 HCE 應用程式,讓您的客戶可以透過他們的手機而不是實體卡片存取您的服務,而不需要使用 MNO 共同作業。This topic illustrates how Host Card Emulation (HCE) works on Windows 10 Mobile devices and how you can develop an HCE app so that your customers can access your services through their phone instead of a physical card without collaborating with an MNO.
取得電池資訊Get battery information 了解如何使用 Windows.Devices.Power 命名空間中的 API 取得詳細的電池資訊。Learn how to get detailed battery information using APIs in the Windows.Devices.Power namespace.