WeChat intelligent hardware open platform_How to connect WeChat hardware platform

I. Overview of WeChat Intelligent Platform

WeChat is a cross-platform communication application that connects mobile devices to third-party smart devices via WeChat. With the public number, you can bind device and transfer device data to connect the device to hundreds of millions of WeChat users.

WeChat can provide the ability to connect everything. Hardware is only one of the components. When the device is connected to the WeChat platform, users can control these wearable devices through the WeChat service number.

Second, WeChat intelligent platform features

The capacity building of WeChat platform is divided into two aspects: connection and value-added services.

In terms of connection, the channel between the connection person and the device and the supplier, through the WeChat hardware platform, the device supplier can well grasp and communicate with the user related information, WeChat, in addition to the QR code scanning method, Provide app to jump to the public number for marketing and communication.

In value-added service providers, WeChat platform has more advanced capabilities

First, the data of the device, on the WeChat hardware platform, in addition to viewing and sharing of data usage, can also generate more applications, such as the number of offline sports steps online to redeem the game scene.

Second, the special device cloud data access, WeChat hardware platform through the cloud capabilities, the data is connected to the leaderboard, allowing more people to show off social games and leaderboards.

Third, provide Jingdong's sales channels and a unified feedback mechanism.

At the front end, open their respective social relationship chains, public platform capabilities (beared by QQ and WeChat internal light applications), basic cloud service support, data statistics and simple analysis capabilities to hardware vendors; Manufacturers Broadcom, communications semiconductor manufacturer NXP, IoT integrated solution provider AylaNetworks, sensor and IoT integration solution manufacturer Fengtang IOT and other partners to jointly access the two hardware open platforms Equipment manufacturers provide industry chain support behind

Open mode: through the form of WeChat service number, instead of the hardware supporting app for information setting, data record analysis, etc., the purchase page is added in the service number to form a closed loop of data collection and management. On the WeChat public page, the Html5 technology is used to create the control interface of the intelligent hardware. In WeChat, intelligent hardware is reflected in the service number of a fairly light application. Under the unified interface and development specifications of the WeChat platform, these service numbers can completely use WeChat account system, payment system, and even data intercommunication between each other.

WeChat provides different development interfaces based on WiFI, 3G and Bluetooth. The background server of WeChat cloud platform and intelligent hardware uses Https protocol to encrypt and transmit, and the relevant interface protocol is specified in the cloud.

See the WeChat platform for details. Click on this link to learn more.

Third, WeChat intelligent platform product development 3.1 product access specification

Since the launch of the hardware platform in July 2014, WeChat has now accessed 4 kinds of products. The access of the products needs to meet the interface requirements of WeChat. The specific requirements are as follows:

1. Introducing WeChat social system

Users can send recorded data to the WeChat circle of friends, forming a secondary spread and showing off and urging.

2. Introducing WeChat's leaderboard

Users who use this hardware in all circle of friends will appear in the leaderboards to meet the demand ratio between users and form a supervisory mechanism between users.

3. Introducing WeChat's rights protection mechanism

It has solved the situation that the smart hardware has been single-handed, has no supervision mechanism, and has no need to promote the door.

4. Support individual developer access.

Individual developers can develop their own hardware devices to access WeChat through test number development

the whole frame:

WeChat intelligent hardware open platform_How to connect WeChat hardware platform

3.1.1 WiFi connection solution

WeChat intelligent hardware open platform_How to connect WeChat hardware platform

Peripherals and vendor servers, developed by vendors. WeChat provides a connection solution and related interfaces to the vendor server to enable communication between the peripheral and WeChat.

3.1.2 Bluetooth connection solution

WeChat intelligent hardware open platform_How to connect WeChat hardware platform

Peripherals and vendor servers, developed by vendors.

WeChat provides the peripherals of the mobile phone interface docking vendor, providing a server interface to dock the vendor's server.

3.2 Introduction to WeChat Products

Each product package that is connected to WeChat is equipped with a two-dimensional code, which represents the public number interface provided by the equipment manufacturer. After scanning the QR code and paying attention to the corresponding WeChat service number, the user opens the mobile phone Bluetooth at the prompt. Binding between the device and the WeChat account can be completed. Unbinding is also very simple, just unfollow it. In this way, the hardware entry is unified, and the hardware app is replaced by the public number.

1. Smart Watch iHealth WeChat Edition

The user can scan the iHeath service number through WeChat scanning the QR code attached to ihealth. After paying attention, the mobile phone will prompt you to turn on the Bluetooth. When you turn on the Bluetooth, the iHealth smart watch will automatically connect with the mobile phone, and the time on the mobile phone. The date will be synced to the watch. In the Tab section of the WeChat service number, you can easily set height, weight, age, gender, and sports goals in the newly discovered personal information options.

With a WeChat service number, you can complete all aspects of the user from purchase payment to after-sales, from information setting to data analysis without using iHealth's own app or other third-party shopping app.

2. å’•å’š smart bracelet 2

The wristband is worn on the wrist and can record daily interactions, movement steps, distances and calories burned, monitor your sleep quality during sleep, support life waterproofing, and transfer data to your smartphone via Bluetooth 4.0. Users can implement all the functions of the mobile client in WeChat, use WeChat to synchronize and manage the detection data of the bracelet, and share the data at any time to conduct PK and exchange sports experience with friends.

Smartphones that support Bluetooth 4.0, including iPhone4S, iPhone5, iPhone5C, iPhone5s, and Samsung GalaxyS5, can be paired with the bracelet through the app. When using, you must first download the app, then turn on the phone Bluetooth, and connect and match within 10m to start using

Out of the box evaluation point to enter, in addition to the leaderboard, after the introduction of WeChat, there are other ways to play the bracelet, click here to enter.

3. LeBon BonBon

The medical device manufacturer is pleased to introduce the smart bracelet BonBon, BonBon adopts the Bluetooth 4.0 connection scheme, the core adopts ARMCortex-M0, and the sensor adopts the STMicroelectronics solution to support waterproof. The button battery design, so after changing the battery can have 3 months of battery life, plus the disc shape, the above shows the time and movement completion through the array of LEDs, the overall idea is very similar to Misfit's Shine.

In addition to the customized å’•å’š app, users can connect to a customized music service number by scanning the QR code. After entering the service number, WeChat will promptly open the iPhone's Bluetooth, then BonBon has been paired with the phone, and the happy service number also successfully reads the relevant WeChat account information.

4. Huawei glory bracelet WeChat version

This product not only has the functions of routine detection such as sports and sleep, but also has the function of Bluetooth headset, and the entrance point of the evaluation is entered. The special feature of the WeChat version is that you don't need to download the "Glory Bracelet" app. You only need to scan the WeChat QR code in the package and pay attention to the WeChat public account "Huawei Sports Health" to realize the sports statistics of the bracelet and friends. , sports rankings, device management and other functions, access to WeChat connectivity, so that the glory bracelet is sent to WeChat's powerful social network, adding more social elements and fun to the sport. Detailed evaluation, click here to enter, and glory bracelet test.

Fourth, the basic access and hardware cloud standard access analysis of WeChat hardware platform

1. WeChat hardware platform basic access architecture

WeChat intelligent hardware open platform_How to connect WeChat hardware platform

The WeChat hardware platform includes two scenarios of near field Bluetooth control access and far field wifi control access. For Bluetooth access, it needs to communicate with the mobile phone's WeChat through the airsync protocol defined by WeChat, access the WeChat hardware platform, and the communication between the Bluetooth device and the manufacturer server needs to be pushed by the WeChat server. The wifi access device can directly communicate with its own vendor server. In the basic access solution, the wifi device provides services to the WeChat users through the vendor server. In the second type of WeChat hardware cloud access, the device can communicate with the WeChat server through the direct connection SDK to provide services to WeChat users.

2. WeChat hardware platform hardware cloud standard access solution

WeChat intelligent hardware open platform_How to connect WeChat hardware platform

The hardware cloud standard access solution is for wifi access, which has two forms.

1. The first form: the device can directly communicate with the WeChat hardware cloud through the direct connection SDK provided by WeChat, and implement the protocol of the WeChat standard scenario, without adding a vendor server. Ali Xiaozhi is similar to this way.

2. The second form: WeChat provides the API of the device through HTTP, and is accessed by the manufacturer server of the device. That is, the device first accesses the device manufacturer server, and the manufacturer server accesses the WeChat hardware platform. For example, a device with a wit cloud can access WeChat through the device-side API. However, this method requires the development capability of the equipment manufacturer to be strong enough.

Next, we will focus on analyzing the architecture analysis of the basic access, and the WeChat hardware cloud standard access solution will be analyzed later.

3. Analysis of the basic access architecture of WeChat hardware platform

WeChat intelligent hardware open platform_How to connect WeChat hardware platform

The above picture covers the following information:

1. The composition of the Internet of Things based on the WeChat hardware platform, including WeChat public platform/hardware platform, third-party vendor cloud backend, mobile phone WeChat/public number, WeChat hardware device terminal (Wifi and Bluetooth BLE).

2. Green represents the basic platform and services provided by Tencent to developers and the public, and is accessed by hardware devices through red (airsync/airkiss) defined hardware peripheral protocols, red (WeChat hardware platform access protocol, XML/JSON) For the manufacturer's cloud back-end access; Bluetooth and purple areas represent the tasks that developers must accomplish, where Bluetooth is the task of embedded hardware device terminals, and purple is the task of third-party vendors' cloud backends.

3. Communication protocol identification between the various components of the Internet of Things. Except for the red-marked agreement, the agreement established by the WeChat public platform and the hardware platform must be followed, and the other components of the agreement are all custom protocols.

4. The SDK provided by the Wifi module provider generally provides socket communication interface, while the cloud back end generally uses web programming technology such as JSP/PHP, so the wifi device needs to simulate the HTTP protocol to communicate with the cloud terminal. HTTP is a standard public communication protocol. The application layer needs to establish a custom application protocol on top of HTTP to complete the control and interaction of the device. The application protocol can be XML/JSON and so on. Of course, if the cloud backend uses the underlying socket programming, the wifi device terminal may not need to emulate http.

5. Bluetooth accesses WeChat through the airsync protocol, which specifies the process of device discovery, binding, login, initialization, receiving user commands, and sending messages actively.

6. Airkiss uses JSAPI to allow users to enter the router's username and password on WeChat, and then tells the wifi device that there is no key input and screen display, so that the device can connect to the router to enter the network online state. In addition, Airkiss has nothing to do with the interaction between users and vendors and devices. In essence, Airkiss is just a configuration Internet feature, independent of the control and interaction of the Internet of Things.

7. The Wifi device access to the WeChat hardware platform is far-field control. As long as the device is online, the mobile phone user can control the device whenever he can access the Internet. A typical example is that the company can control the home through the mobile phone. The smart socket is powered on; the Bluetooth device access to the WeChat hardware platform must rely on the mobile phone, which is near-field control. The typical scene is that the mobile phone controls the lights and air conditioners in the home.

V. WeChat hardware public platform access process

1. Access process

The access process is divided into two parts, one is the development phase, and the other is the formal launch and sales phase. During the development phase, the manufacturer can develop and test the equipment through the test number. During the official launch and sales phase, the manufacturer must register the service number and pass the WeChat certification to officially launch the product and sales.

2. Development stage

1) Apply for a test number

Vendors who want to access the WeChat hardware public platform need to apply for a test number to facilitate the development and testing of hardware functions. The test number is collapsed in the subscription number, and the avatar and name cannot be changed. In addition to the template message function, the test number has the functionality of the service number.

The test number application address is: http://mp.weixin.qq.com/debug/cgi-bin/sandbox? t=sandbox/login

2) Open hardware function permissions

Both the test number and the official hardware public number require the ability to enable hardware functionality to use the hardware features. The vendor needs to provide the WeChat hardware team product manager with the public account original ID (a string of characters starting with "gh_") to apply for the hardware function of the public number.

3) Equipment development

A. Device Authorization: By calling the API of the device authorization, the vendor submits the device deviceID and its attribute information to the public platform for authorization. (For details, see section 1.6 of Device Access Interface Protocol 2.0)

B. Obtain the device-specific QR code: Call the device QR code to obtain the API. The manufacturer can obtain the device QR code from the public platform in batches through the authorized deviceID. (For details, see section 1.5 of the Device Access Interface Protocol 2.0)

C. Equipment Testing: Production of sample equipment and testing.

3, officially online and on sale

1) Registration service number

Vendors need to register the service number on the WeChat public platform as the official hardware public number. The service number registration address is: https://mp.weixin.qq.com/

2) WeChat authentication

The manufacturer needs to perform the WeChat authentication on the hardware public account. After the authentication is successful, the WeChat authentication logo is displayed on the profile page of the public account.

NLW-ECL PM Fiber

Nlw-Ecl Pm Fiber,Diode Pumped Lasers,Gemini Diode Laser,Gp Fast Diode Laser

AcePhotonics Co.,Ltd. , https://www.acephotonics.com