Home health management expert-smart body fat scale

With the improvement of people's healthy living standards, more and more people begin to pay attention to healthy life, including diet, exercise, sleep and other aspects of life. As a body parameter testing device, body fat scales have become an indispensable product in the family. The body fat scale can include 16 body indicators such as weight, BMI, body fat, and body water, and comprehensively feedback the current health status of the human body. The use of body fat scales with apps to record measurement results, display historical changes in body fat, and provide parameter analysis has become a part of many families' lives.

As an industry-leading AI+IoT platform solution provider, Tuya provides overall solutions including modules, chips, IoT SDK, App, and Tuya cloud platform for WiFi and Bluetooth body fat scales to help different customers based on body fat scales. Achieve personalized needs and maintain competitiveness in the industry.

Bluetooth body fat scale solution:
Insert picture description here

WiFi body fat scale solution:
Insert picture description here

System introduction
1. Networking capability (embedded unit), allowing equipment to have networking capability, time-based data transmission

IoT module: Tuya provides a wealth of WiFi modules and Bluetooth modules, which are convenient for users to select and realize the networking capabilities of the device.
IoT SDK: Tuya provides BLE SDK for the access of Bluetooth health devices to realize the networking capabilities of the device
2. Tuya Cloud, Global deployment, open docking

Algorithm capability: Tuya provides algorithm docking capabilities. Users can use their own body fat scale algorithm or use Tuya algorithm to calculate 16 individual fat parameters.
Data statistics and analysis: Tuya Cloud will realize statistics and intelligent analysis of data based on user measured data
Global deployment: The global deployment of
Tuya Cloud can meet the rapid release of 3.Apps in various regions around the world , providing multiple types of apps for use

Public version App: suitable for rapid product docking, intelligent development can be completed in a short time and mass production
Customized App: suitable for customers who cannot meet the public version functions and have their own functional requirements, and can meet individual customization requirements
App SDK: Applicable to customers with App development capabilities, able to quickly integrate Tuya's platform capabilities based on the original App
4. Tuya IoT platform

Basic IoT platform: realize the rapid and intelligentization of equipment, and provide OTA, multi-language, alarm configuration and scene linkage setting capabilities.
Data platform: provide data related capabilities such as device data viewing, device statistics, APP analysis, user feedback, etc.
Operation platform: provide Device log query, App flash screen management, shipping management, message center, alarm processing, knowledge base management and other operational capabilities.
Program details
Core functions
Fast network configuration: supports WiFi EZ and AP two network distribution methods, Bluetooth Bluetooth Network distribution method
Home use: It can create family users and realize the body fat measurement of the entire family members.
Automatic allocation: After the measurement, the measurement user is automatically identified and assigned to the corresponding user.
Body fat monitoring: It can measure weight, fat percentage, BMI, 16 parameters such as muscle mass, water content, lean body mass, bone mass, basal metabolism, protein, visceral fat, body age, body type and body score.
Measurement and analysis: analyze the current status of each parameter and the corresponding recommended
goal setting : Users can set their own weight and body fat goals.
Data comparison: The measurement result data will be automatically compared with the last measurement result and display the floating ratio.
Data trend: You can view the change trend of body fat by week, month, and year.
History: Yes View historical data measured by all users.
Unit switch: support the switch of weight units KG, LB, ST, suitable for customers in different countries.
Data sharing: You can share your data with family and friends to help them understand their health.
Panel introduction
Insert picture description here

Module selection For
Bluetooth, you can choose BT3L IoT module:
Insert picture description here

Built-in low-power 32-bit MCU can double as an application processor.
The main frequency supports 48 MHz
working voltage: 1.8V-3.6V, between 1.8V and 2.7V, the module can be started, but the optimal RF performance cannot be guaranteed; between 2.8V-3.6V, the overall performance of the module is normal.
Peripherals: 5xPWM
BLE RF features-compatible with BLE5.0-RF data rate up to 2Mbps-TX transmit power: +10dBm-RX receiving sensitivity: -94.5dBm@BLE 1Mbps-Embedded hardware AES encryption-Operating temperature: -20℃ to +85℃
Applicable single product
Applicable to WiFi body fat scale and Bluetooth body fat scale.

Click to learn about the IoT development platform to help you quickly complete product intelligence:
auth.tuya.com/?from=https%3A%2F%2Fiot.tuya.com%2F&_source=81b786df37f17f6d239349cb965e3568

The following is the detailed process of product creation:

Log in to the platform
On the Tuya IoT platform, register a developer account to turn on product intelligence.

In order to use log query, permission sharing and other related functions, please activate the enterprise version permissions.

IoT platform link: Tuya IoT.

Process overview
Step1-Product creation: select the corresponding product category on the IoT platform, define the product name and model, and create the product;

Step2-Product definition: Define the specific functions of the product on the platform, the core is the content and format of data transmission;

Step3-Panel configuration: According to product characteristics, select and configure personalized UI, the core is style, color, icon, etc.;

Step4-Hardware development: According to the requirements of the main control of the product, select the suitable Wi-Fi communication module and develop the MCU program;

Step5-Cloud configuration: configure multi-language App interface, apply for smart speakers, device OTA upgrade and other core operations;

Step6-Production arrangement: After the equipment is developed and passed the self-test or graffiti test, the production arrangement can be made.

Steps to create
Product creation Create a product
on the Tuya IoT platform, click "Create Product", select [Sports Health]-[Body Fat Scale] to start creating the product.

Insert picture description here
Insert picture description here
Insert picture description here

Related instructions:

Product name: The default name of the actual device after the network is configured will be displayed on the device page in the App;
Networking mode: the way the hardware connects to Tuya Cloud, currently supports Wi-Fi & Bluetooth dual mode, Wi-Fi mode;
product definition
How to define DP
Tuya The platform abstracts the data transmitted between the device and the cloud into different types of DP. When defining the DP, it can be classified into different DP points according to the function of the feeder for control and display.

In order to meet different development needs, Tuya platform provides standardized and custom functions:

Standard function: aiming at the standardization of conventional body fat scale functions, corresponding to the App panel provided by the IoT platform, for rapid development;
custom function: customizing the additional function items of the body fat scale to extend the body fat scale function;
standardization Function description: The
standard functions of the body fat scale include: weight, body impedance, power status, flags, dynamic data, left hand impedance, right hand impedance, left leg impedance, right leg impedance, left hand impedance, right hand impedance, left leg impedance, and right leg impedance 4 function points are used for 8-electrode body fat scale, 4 electrodes do not need to be selected

Flag function points are used to distinguish historical data from real-time data

Dynamic data is used to report the value of the dynamic change of weight during the weighing process

Insert picture description here

Custom function description:
For the extended functions of the body fat scale, you can add new functions in the "Custom Functions". After the addition, the corresponding control items will be generated in the setting page of the device control interface of the App.

The IoT platform provides data types such as Boolean, numeric value, enumeration, character, fault, and RAW, and supports upstream and downstream.

For detailed introduction, please refer to: custom function.
Insert picture description here

Insert picture description here

Panel configuration After the
product is defined, different styles of panels (device control page) can be selected as the interactive page of the body fat scale. On the IoT platform, public panels, custom panels, free configuration panels, and development and debugging panels are provided for users to choose from.

Public version panel: The style and interaction are fixed, corresponding to the [standard function], and it supports the configuration of background, color and other content for mass production.

Free configuration panel: support free setting of page controls and styles for custom products;

Debugging panel: display device-side data in the form of switch options for debugging in the development stage;-select the appropriate interface according to actual needs, and after the selection is successful, you can use the Tuya Smart APP to scan the code;-after selecting the interface, you can edit the background of the interface and other content , Please refer to the operating instructions of the public panel configuration for the usage rules.

Insert picture description here

Hardware development
Module selection The
body fat scale electronic control board communicates with Tuya Cloud and App through the cloud module. After the product is newly built, select the applicable cloud module, and complete the development of the hardware circuit according to the interface circuit of the motherboard and the cloud module and the product requirements.
Insert picture description here
There are two options for MCU development:

1) Serial protocol mode

According to the serial port protocol, MCU assembles and unpacks itself to realize data reporting and execution; Overview of MCU general docking solution, MCU general docking solution description (Wi-Fi/Wi-Fi+BLE)

2) SDK method

The SDK interface file encapsulated by the IoT platform is transplanted, and the MCU directly calls related functions to implement data reporting and execution. For development details, please refer to: Tuya Universal Wi-Fi+BLE SDK description, Tuya Universal Wi-Fi SDK description

Device function debugging
In the verification and debugging stage of product development, in order to verify the technical solution or the function of the App panel, the debugging assistant and debugging panel provided by the IoT platform can be used to realize the data communication between the App side and the device side, and assist the development and debugging of the development process. .

1) Module debugging assistant

Tuya Module Debugging Assistant is a serial debugging tool that integrates the communication protocol of Tuya module. It is often used for the development and debugging of general MCU docking solutions. It integrates common serial protocols for modules including Wi-Fi, Bluetooth, Zigbee, and NB-IoT. It can simulate the module to verify the MCU code logic, and also can simulate the MCU to debug the network distribution function. It has multiple functions and is easy to use.
Insert picture description here

For details on using the debugging assistant, please refer to: Module debugging assistant instructions.

2) Panel debugging

After the equipment network function debugging is completed, you can configure the body fat scale through the App, perform related operations on the App, and verify whether the instructions are sent and received, the App display, and the device execution are correct.

At the same time, in the early stage of development, MCU can use the debugging panel function to independently debug whether the logic of a certain DP is correct.

The debugging panel only retains data receiving and sending operations, without interactive logic, which can be selected in the [App Panel] link, which is suitable for debugging in the development process.
Insert picture description here
3) Log query

During the commissioning process, you will encounter the need to query the DP data receiving and sending process. The IoT platform provides a log query function, which allows you to view the data communication between the device's MCU and App, and is suitable for troubleshooting the operation of each terminal under abnormal conditions.

Insert picture description here

[Description] The log query function requires the "Enterprise Edition" account permissions to be opened and operated on the operating platform.

App construction
When the machine function development is completed, it will involve the construction of its own brand App. Tuya platform provides the function of online OEM App.

In the [App Workbench] of IoT, you can configure information such as App name, LOGO, network distribution copy, product icon, etc., to generate an OEM App with manufacturer identification information and personalized.

Insert picture description here

For detailed operation, please refer to: App Construction Guide

Cloud configuration
provides MCU firmware upgrade (firmware OTA), multi-language management (used in multiple countries when shipped), alarm configuration (required for device message reminders), network distribution information (required for OEM APP, and Tuya provides default network distribution information, which needs to be customized The distribution network information of the product itself), scene linkage settings (optional functions support scene linkage and automation), shortcut switch configuration (app homepage shortcut control switch, mode, time temperature, etc.) and other cloud configuration functions.
Insert picture description here

Multi-language configuration
When the target market of the product is an overseas region, the language of the App interface needs to be adjusted to the language of the corresponding region.

In the "multi-language configuration" of the "extended functions" of the IoT platform, multi-language editing of the set function points can be performed, and the editing is completed. When the phone adjusts the system language, the App interface language is also adjusted accordingly.
Insert picture description here

Insert picture description here
OTA upgrade
In order to meet the machine function upgrade, the platform supports MCU OTA function.

In the "Firmware Upgrade" of the "Extended Functions" of the IoT platform, you can customize the upload of MCU firmware. The firmware version, upgrade information, etc. all support custom management.
Insert picture description here
Insert picture description here
Production arrangement
After the equipment is developed and passed the self-test or graffiti test, the production arrangement can be made.

Guess you like

Origin blog.csdn.net/weixin_42614971/article/details/108595229