# outline

If there is any confusion or confusion about specific concepts, please refer toNoun explanation

Want to go through the Mini Program hardware framework (WMPF) To run the mini program on the device, you need to connect the hardware device to the device system of WeChat, and register the corresponding mobile application and mini program.Device - Application - Mini ProgramAssociation between. Before starting development, the following needs to be prepared:

  1. registeredWeChat terminal cooperation platformaccount(An account can be accessed directly.) Once approved, you can downloadFast Experience Demo, Early Access Mini Program Effects on Running Devices
  2. registeredWeChat Open PlatformAccount number (existing account can be directly logged in), andCreating a Mobile App(You can also use existing apps)
  3. (available) Based on business needsDeveloping a new Mini ProgramIf you do not have special needs, you can also run the Mini Program of the network
  4. inWeChat terminal cooperation platformBinding Mobile Apps and Mini Programs
  5. inWeChat terminal cooperation platformRegistration Equipment Information, including basic information such as equipment brand and model
  6. For each operation. WMPF Of the hardware devices, all need to be completedHardware registrationOnly after the hardware registration has been properly completed can the WMPF Log in to your WeChat account and run the mini program.

After completing all the above steps, your device is really connected to the WeChat device system, and then you can check theDevelopment GuideTo carry out WMPF Client Of the code development.

Please note that developers distinguishMobile applicationandMini ProgramThe difference:

  • Mobile applicationandMini ProgramIt is two sets of account systems under the WeChat ecosystem, each mobile application and Mini Program has a appId As a unique identifier.
  • Mobile application Appid (commonly referred to as hostAppId) It was inWeChat Open PlatformThe application is obtained to identify a native application developed by the developer.
  • Mini Program appId It was inWeChat Official PlatformApplication is obtained, used to identify a WeChat mini program.
  • inBinding Mobile Apps and Mini ProgramsIn one step, it willWeChat terminal cooperation platformAccount and Mobile Apps hostAppId Binding to allow the mobile app to use the WMPFAnd associate the mobile application with the Mini Program to allow the bound Mini Program to run through the mobile application.
  • Mobile application hostAppId Or by corresponding appSecret 初始值 access_Token Generally used for WMPF And behavior within mobile applications, such as:WMPF to activateRegistration Hardware
  • Mini Program appId Or by corresponding appSecret In exchange for access_Token Generally used for behavior within the Mini Program hardware ecosystem, such as in exchange forEquipment bill