Smart home communication system and method based on Internet of Things, and related device

By separating the logical service and communication parts of the IoT base station, using terminal applications to process logical services, the problems of hardware cost limitation and development difficulty in the existing technology are solved, the logical service complexity and hardware cost reduction are achieved, and a variety of sensors are adapted to Functional requirements of sub-device.

CN119172192AInactive Publication Date: 2024-12-20X-SENSE INNOVATIONS CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411688903.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2024-12-20
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Due to the limitations of hardware processor, memory and system cost, existing IoT base stations cannot complicate business logic, and the firmware package size is limited, which increases the difficulty of the development environment and learning difficulty, and cannot effectively support the function updates of multiple sensor sub-devices.

Method used

By separating the logical service part and communication part of the IoT base station, using terminal applications as the logical service part, the communication part is composed of independent hardware devices, reducing hardware production and operation and maintenance costs and realizing system decoupling.

Benefits of technology

It improves the complexity and personalization of logic services, while reducing the hardware production and operation and maintenance costs of the communication part, simplifies the development environment, and adapts to the functional update requirements of multiple sensor sub-equipments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119172192A_ABST
    Figure CN119172192A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a smart home communication system and method based on the Internet of Things, and a related device. The system comprises an IoT concentrator used for forwarding a sensing message and forwarding a custom message to IoT sensor sub-equipment; the first terminal device is used for extracting sensing data according to the sensing message and receiving self-defined data forwarded by the IoT server; the IoT server is used for analyzing the sensing data and feeding back an analysis result of the sensing data to the second terminal equipment; the second terminal device is used for displaying the analysis result of the perception data to the user and receiving the self-defined data; the IoT sensor sub-device is used for collecting sensing data and adjusting working parameters of the IoT sensor sub-device to be custom data. Therefore, the logic service part and the communication part of the IoT base station are separated, the complexity and individuation of the logic service are improved, the production cost of the communication part is also reduced, and the purpose of system decoupling is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the technical field of data processing technology, specifically relating to an Internet of Things-based smart home communication system, method, and related devices. Background Technology

[0002] With the rapid development of the Internet and the popularization of smart devices, existing IoT base stations, as the central devices of smart homes, need to connect various sensor sub-devices to transmit and collect information, and process the information to feed back to the server and terminal App.

[0003] As sensor sub-devices are constantly being updated, the functionality of base stations also needs continuous upgrades. IoT base stations are constrained by the cost of hardware processors, memory, and systems, limiting the complexity of their logical operations and firmware package size. This also increases the difficulty of using and learning the development environment. Summary of the Invention

[0004] This application provides an IoT-based smart home communication system, method, and related apparatus. By separating the logical service part and the communication part of the IoT base station, with the terminal application running as the logical service part and the communication part composed of independent hardware devices, the system aims to increase the complexity and personalization of the logical service while reducing the hardware production and maintenance costs of the communication part, thereby achieving system decoupling.

[0005] In a first aspect, embodiments of this application provide an Internet of Things (IoT)-based smart home communication system, comprising: an IoT hub, an IoT server, IoT sensor sub-devices, a first terminal device, and a second terminal device; wherein, An IoT hub is used to receive sensing messages sent by IoT sensor sub-devices, forward the sensing messages to a first terminal device, and the sensing messages carry sensing data; and to receive custom messages from the first terminal device and forward them to the IoT sensor sub-devices, and the custom messages carry custom data. The first terminal device is equipped with an IoT base station application, which is used to extract sensing data based on sensing messages, perform logical processing on the sensing data, and send the sensing data to the IoT server; and to receive custom data forwarded by the IoT server, encapsulate the custom data into custom messages, and the message format of the custom messages can be recognized by the IoT hub. The IoT server is used to analyze the sensing data and feed the analysis results of the sensing data back to the second terminal device. The second terminal device is used to display the analysis results of the sensing data to the user, receive the custom data input by the user, and submit the custom data to the IoT server. IoT sensor sub-devices are used to collect sensing data, including environmental parameters, user behavior data, and device status data; and to respond to custom data and adjust the operating parameters of the IoT sensor sub-devices to the custom data.

[0006] Secondly, embodiments of this application provide a smart home communication method based on the Internet of Things (IoT). This method is applied to a smart home communication system, which includes: an IoT hub, an IoT server, IoT sensor sub-devices, a first terminal device, and a second terminal device. The method includes: the IoT hub receiving a sensing message sent by the IoT sensor sub-device and forwarding the sensing message to the first terminal device, the sensing message carrying sensing data; and receiving a custom message from the first terminal device and forwarding it to the IoT sensor sub-device, the custom message carrying custom data. The first terminal device has an IoT base station application installed, which extracts sensing data based on the sensing message, performs logical processing on the sensing data, and... The system sends sensed data to an IoT server; and receives custom data forwarded by the IoT server, encapsulates the custom data into a custom message, the message format of which can be recognized by the IoT hub; the IoT server analyzes the sensed data and feeds back the analysis results to a second terminal device; the second terminal device displays the analysis results of the sensed data to the user, receives custom data input by the user, and submits the custom data to the IoT server; the IoT sensor sub-device collects sensed data, including environmental parameters, user behavior data, and device status data; and, in response to the custom data, adjusts the operating parameters of the IoT sensor sub-device to the custom data.

[0007] Thirdly, embodiments of this application provide an IoT-based smart home communication device, applied to a smart home communication system. The system includes: an IoT hub, an IoT server, IoT sensor sub-devices, a first terminal device, and a second terminal device. The device includes: a receiving unit, configured to receive sensing messages sent by the IoT sensor sub-devices and forward the sensing messages to the first terminal device, wherein the sensing messages carry sensing data; and to receive custom messages from the first terminal device and forward them to the IoT sensor sub-devices, wherein the custom messages carry custom data; and a processing unit, wherein the first terminal device has an IoT base station application installed, configured to extract sensing data based on the sensing messages and perform logical processing on the sensing data. The system includes: a sensing unit for sending the sensed data to the IoT server; a receiving unit for encapsulating custom data into custom messages, the message format of which can be recognized by the IoT hub; an analysis unit for analyzing the sensed data and feeding back the analysis results to the second terminal device; a display unit for displaying the analysis results to the user and receiving custom data input by the user, submitting the custom data to the IoT server; and a data acquisition unit for acquiring sensed data, including environmental parameters, user behavior data, and device status data; and adjusting the operating parameters of the IoT sensor sub-device to the custom data in response to the custom data.

[0008] Fourthly, embodiments of this application provide an electronic device including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing steps in any method of the second aspect of embodiments of this application.

[0009] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program for electronic data interchange, wherein the computer program causes a computer to perform some or all of the steps described in any method of the second aspect of this application.

[0010] Sixthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in any method of the second aspect of embodiments of this application. The computer program product may be a software installation package.

[0011] As can be seen, this application embodiment provides an IoT-based smart home communication system, including: an IoT hub, an IoT server, IoT sensor sub-devices, a first terminal device, and a second terminal device. The IoT hub is used to forward sensing messages and custom messages to the IoT sensor sub-devices. The first terminal device is used to extract sensing data based on the sensing messages and receive custom data forwarded by the IoT server. The IoT server is used to analyze the sensing data and feed back the analysis results to the second terminal device. The second terminal device is used to display the analysis results of the sensing data to the user and receive custom data. The IoT sensor sub-devices are used to collect sensing data and adjust their operating parameters to the custom data. This separates the logical service part and the communication part of the IoT base station, increasing the complexity and personalization of the logical services while reducing the hardware production and maintenance costs of the communication part, thus achieving system decoupling. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a schematic diagram of the architecture of a smart home communication system based on the Internet of Things provided in an embodiment of this application; Figure 2 This is a functional unit diagram of an IoT hub provided in an embodiment of this application; Figure 3 This is a schematic diagram of a scenario for inputting custom data provided in an embodiment of this application; Figure 4 This is a flowchart illustrating a smart home communication method based on the Internet of Things provided in an embodiment of this application; Figure 5 This is a schematic diagram illustrating a scenario for displaying analysis results provided in an embodiment of this application; Figure 6 This is a block diagram of the functional units of a smart home communication device based on the Internet of Things, provided in an embodiment of this application. Figure 7 This is a structural block diagram of an electronic device provided in an embodiment of this application.

[0014] Labeling Explanation: Smart Home Communication System 100, IoT Hub 110, IoT Server 120, IoT Sensor Sub-device 130, First Terminal Device 140, Second Terminal Device 150, USB OTG Interface 210, Microcontroller 220, Wireless RF Module 230, IoT Sub-Sensor A 240, IoT Sub-Sensor B 250, IoT Sub-Sensor C 260, IoT Base Station Application 270, Electronic Display Screen 300, Data Input Bar 301, Mobile Phone Interface 500, Insufficient Light Icon 510, Inquiry Information Bar 520, User Adjustment 521, Automatic Adjustment 522, User Gesture 530, Smart Home Communication Device 600, Receiving Unit 610, Processing Unit 620, Analysis Unit 630, Display Unit 640, Acquisition Unit 650, Electronic Device 700, Processor 701, Memory 702. Detailed Implementation

[0015] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0016] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0017] It should be understood that the term "and / or" in this article is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this article indicates that the preceding and following related objects have an "or" relationship.

[0018] In this application's embodiments, "multiple" refers to two or more. In this application's embodiments, "connection" refers to various connection methods, such as direct or indirect connections, to achieve communication between devices; this application's embodiments do not impose any limitations on this.

[0019] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0020] Before providing a further detailed description of the embodiments disclosed herein, the nouns and terms used in the embodiments of this disclosure are explained, and the nouns and terms used in the embodiments of this disclosure are subject to the following interpretations: An IoT hub (Internet of Things Hub Extension) is a device with multiple ports used to connect multiple devices to a central node. It is typically an industrial Ethernet module to meet the communication and data transmission needs between IoT devices.

[0021] The Internet of Things Station App is an application installed on a mobile device that handles the logical operations of an IoT base station.

[0022] Existing IoT base stations, serving as central devices in smart homes, connect to various sensor sub-devices to transmit and collect information, and process this information before feeding it back to servers and terminal apps. As the types of sensor sub-devices are constantly evolving, the functionality of the base stations also needs continuous upgrades. IoT base stations are constrained by the cost of hardware processors, memory, and systems, limiting the complexity of their business logic and firmware package size. This also increases the difficulty of using and learning the development environment.

[0023] To address the aforementioned issues, this application provides an IoT-based smart home communication system, method, and related apparatus. By separating the logical service portion and the communication portion of the IoT base station, with the terminal application running as the logical service portion and the communication portion consisting of independent hardware devices, the system achieves decoupling by increasing the complexity and personalization of the logical services while reducing the hardware production and maintenance costs of the communication portion.

[0024] Please refer to details. Figure 1 , Figure 1 This is a schematic diagram of the architecture of a smart home communication system based on the Internet of Things provided in an embodiment of this application, such as... Figure 1The smart home communication system 100 shown includes: an IoT hub 110, an IoT server 120, an IoT sensor sub-device 130, a first terminal device 140, and a second terminal device 150. The IoT hub 110 receives sensing messages sent by the IoT sensor sub-device 130 and forwards these messages to the first terminal device 140, the sensing messages carrying sensing data. It also receives custom messages from the first terminal device 140 and forwards them to the IoT sensor sub-device 130, the custom messages carrying custom data. The first terminal device 140 has an IoT base station application installed, used to extract sensing data based on the sensing messages, perform logical processing on the sensing data, and send the sensing data to the IoT server 120. 0; and, for receiving custom data forwarded by IoT server 120, encapsulating the custom data into a custom message, the message format of which can be recognized by IoT hub 110; IoT server 120, for analyzing sensing data, and feeding back the analysis results of the sensing data to second terminal device 150; second terminal device 150, for displaying the analysis results of sensing data to the user, and receiving custom data input by the user, and submitting the custom data to IoT server 120; IoT sensor sub-device 130, for collecting sensing data, including: environmental parameters, user behavior data, and device status data; and, in response to custom data, adjusting the operating parameters of IoT sensor sub-device 130 to the custom data.

[0025] The IoT hub 110 is connected to the IoT sensor sub-device 130 via a wireless radio frequency module in the IoT hub 110. The IoT hub 110 is connected to the first terminal device 140 via a USB OTG cable (USB On-The-Go). The IoT server 120 is connected to the first terminal device 140 via wireless communication such as WiFi and cellular network.

[0026] Specifically, the data from the IoT sensor sub-device 130 can be one or more, with different types, parameters, and configurations, each acquiring different sensing data from the environment, such as humidity, smoke concentration, and ambient light intensity. For example, when the IoT sensor sub-device 130 collects humidity data, the IoT hub 110 receives the humidity data and determines that it exceeds the standard humidity, indicating a potential health hazard to users in the current environment. The data is then encapsulated in a format recognizable by the IoT base station application and forwarded to the first terminal device 140. The IoT base station application performs logical processing based on the sensor type, parameters, and configuration of the IoT sensor sub-device 130, such as displaying it on the screen or issuing an alarm, and simultaneously sends it to the IoT server 120 for further analysis and processing. The IoT server 120 then sends the processed humidity data to the second terminal device 150, which in this example could be a dehumidifier. The second terminal device 150 can issue a prompt to the user to turn on the dehumidification function or automatically activate the dehumidification function. Furthermore, the second terminal device 150 can also be a mobile smart terminal such as a mobile phone, computer, or smartwatch.

[0027] In one possible example, the IoT hub 110 also includes: a USB OTG interface, a microcontroller, and a wireless radio frequency module; the IoT hub 110 is communicatively connected to at least one IoT sensor sub-device 130 via the wireless radio frequency module; the IoT hub 110 is connected to a first terminal device 140 via the USB OTG interface; the microcontroller is used to read sensing messages from the wireless radio frequency module and encapsulate the payload data carried by the sensing messages into a message format that can be recognized by the IoT base station application.

[0028] Please refer to Figure 2 , Figure 2 This is a functional unit diagram of an IoT hub provided in an embodiment of this application, such as... Figure 2The IoT hub 110 shown includes a USB OTG interface 210, a microcontroller unit (MCU) 220, and a radio frequency (RF) module 230. Specifically, the microcontroller unit 220 and the RF module 230 are connected via the I2C serial communication protocol, and the microcontroller unit 220 is connected to the USB OTG interface 210 via a USB wired connection. The I2C protocol bus consists of two lines: a clock line (SCL) and a data line (SDA). Structure: I2C is a master-slave communication protocol, where one device acts as the master, responsible for initiating communication and controlling the timing of communication, while other devices act as slaves, responsible for responding to the master's commands. I2C data transmission rates have multiple modes, including standard mode (100Kb / s), fast mode (400Kb / s), high-speed mode (3.4Mbps), and ultra-fast mode.

[0029] Specifically, Figure 2 The diagram also shows IoT sub-sensor A 240, IoT sub-sensor B 250, and IoT sub-sensor C 260. These IoT sub-sensors A 240, IoT sub-sensor B 250, and IoT sub-sensor C 260 are multiple sensors that may be included in the IoT sensor sub-device 130, used to collect different types of environmental data. Figure 2 It also includes a first terminal device 140 and an IoT base station application 270 installed on the first terminal device 140. Specifically, the first terminal device 140 can be a device such as a mobile phone. Currently, mobile phones have more advanced and stable processors, memory, and operating systems than embedded solutions, and their development tools and environments are also more powerful, making them easier for developers to choose. In other possible examples, the wireless radio frequency module 230 is used to forward FSK (Frequency Shift Keying), LoRa (Long Range, a low-power narrowband long-range communication technology based on spread spectrum), and ZigBee (low-power local area network protocol) network data to the IoT base station application 270.

[0030] As can be seen, in this example, by separating the IoT server and business logic, the IoT is divided into a communication part and a business processing part. For the communication part, a low-end processor is used to simplify the hardware design and reduce costs. For the business processing part, more complex and personalized needs are met by installing IoT base station applications on the first terminal device, which also enriches the diversity of software update methods.

[0031] In one possible example, in terms of feeding back the analysis results of the sensed data to the second terminal device, the IoT server is specifically used to: send the analysis results of the sensed data to the second terminal device according to the MQTT communication protocol.

[0032] MQTT (Message Queuing Telemetry Transport) is a lightweight publish / subscribe messaging protocol designed for communication between resource-constrained devices and remote devices in unstable network environments. It uses minimal network bandwidth to transmit information and is one of the mainstream protocols in the Internet of Things (IoT) scenario. MQTT features include: lightweight (MQTT message size is approximately tens of bytes, suitable for resource-constrained devices); reliable (MQTT supports reliable message transmission, ensuring no message loss, and through flexible Quality of Service (QoS) levels, it ensures secure message delivery on demand); scalability (MQTT supports multi-level topics, allowing devices to be organized into a tree structure for easy management); and security (MQTT supports multiple authentication and authorization mechanisms to guarantee data security).

[0033] In one possible example, the second terminal device includes an electronic display screen; in receiving custom data input by the user, the second terminal device is specifically configured to: receive an adjustment data message from the user, the adjustment data message representing an input operation in which the user inputs custom data into the second terminal device, the input operation including: key input, and / or input via touching the electronic display screen; obtain the custom data configured by the user based on the adjustment data message; and generate a custom message based on the custom data.

[0034] Specifically, please refer to Figure 3 , Figure 3 This is a schematic diagram of a scenario for inputting custom data provided in an embodiment of this application, such as... Figure 3The second terminal device 150 shown includes an electronic display screen 300, which can be a touch screen that allows users to operate the device by directly touching it with their fingers or other objects. After the data input field 301 in the electronic display screen 300 detects the user's custom data, the second terminal device 150 submits it to the IoT server 120. Next, the IoT server 120 sends the custom data to the IoT base station application 270 via the MQTT protocol. Then, the IoT base station application 270 retrieves the custom data from the MQTT callback, encapsulates it into a message format that the IoT hub 110 can recognize, and sends it to the IoT hub 110 via the USB OTG interface 210. Then, the IoT hub 110 reads the message from the USB OTG interface 210 cache, re-encapsulates it into an RF module message, and sends it to the IoT sensor sub-device 130. Finally, the IoT sensor sub-device 130 receives the message and responds and adjusts its own functional parameters accordingly.

[0035] Custom data can be dynamic, user-defined data such as turning lights on / off, lighting brightness, and voice broadcast content; it can also be data selected by the user to adjust the parameters of smart home sensors, such as adjusting the light intensity threshold to control the smart bulb to automatically turn on when the ambient light is insufficient; or adjusting the active start-up temperature of the smart air conditioner, such as automatically turning on the air conditioner in cooling mode when the sensor detects an ambient temperature of 32 degrees Celsius.

[0036] As can be seen in this example, by receiving the user's adjustment data message, obtaining the user's configured custom data based on the adjustment data message, generating a custom message based on the custom data, and dynamically adjusting the configuration parameters based on the user's selection, the personalization and flexibility of smart home management can be improved, which is conducive to optimizing the user experience.

[0037] In one possible example, in terms of displaying the analysis results of the perceived data to the user, the second terminal device is specifically used to: convert the analysis results of the perceived data into a graphical form and display it on an electronic display screen using a data visualization tool, which is an application installed on the second terminal device, and the graphical form includes at least one of the following: pattern mode, list mode, and chart mode.

[0038] Specifically, this includes graphical representations (such as heatmaps on a map), list representations (such as sorted lists of data), and chart representations (such as line charts, bar charts, pie charts, etc.). The electronic display screen can be any device that supports graphical display, such as an LCD screen, LED screen, or projector; the displayed analysis results of the perceived data can be dynamically updated as needed to reflect the latest data analysis results.

[0039] As can be seen in this example, by using data visualization tools, the analysis results of the perceived data are transformed into a graphical representation and displayed on an electronic screen, which optimizes the convenience for users to view environmental perception data and presents the analysis results in a more intuitive and concise manner.

[0040] In one possible example, the IoT server is also specifically used to: receive custom data sent by a second terminal device; and store the custom data as a device log for the IoT server.

[0041] Specifically, the process includes the following steps: After receiving custom data, the IoT server parses the custom data to extract the decoded data format, verify data integrity, and identify key fields; the parsed custom data is stored on the IoT server; and management operations are performed on the parsed custom data, including data backup, data recovery, data cleanup, and data security.

[0042] Decoding data formats includes JSON parsing, verifying data integrity includes checking signatures or checksums, and extracting key fields such as device ID and data values. The storage method can be a database (such as a relational database, NoSQL database, or time series database), a file system, or a cloud storage service. Finally, the stored data can be used for subsequent queries and analysis, and analysis tools can be used to extract useful information from the log data, such as device fault warnings and performance trend analysis.

[0043] In this process, user-configured custom data is stored as device logs to facilitate analysis of user-specific configurations. Subsequently, a dedicated smart home parameter archive is created for each user, providing more personalized device parameters such as light intensity and air conditioning cooling temperature when the user uses related home devices.

[0044] In one possible example, in receiving a custom message from a first terminal device and forwarding it to an IoT sensor sub-device, the IoT hub is further configured to: encode the custom message to obtain a first target message adapted to a radio frequency transmission format; modulate the first target message to obtain a second target message, the frequency of which allows it to be transmitted in a wireless channel, the modulation including at least one of the following behaviors: amplitude modulation, frequency modulation, and phase modulation; and transmit the second target message to the IoT sensor sub-device via the wireless radio frequency module of the IoT hub.

[0045] Specifically, the process of encapsulating a custom message into an RF (radio frequency) message mainly involves converting digital signals into a form suitable for transmission via radio frequency waves. This may involve the following steps: First, determining the message content: First, clarifying the content of the communication message to be transmitted, including text, images, sound, or other multimedia data; second, converting the original custom message data into a digital signal using technologies such as data compression and encryption to ensure data integrity and security; next, selecting a suitable carrier frequency, modulation method (such as amplitude modulation, frequency modulation, or phase modulation), and possible channel coding scheme to convert the digital signal into an analog signal suitable for radio frequency transmission; then, using RF encapsulation technology with specific RF encapsulation components, such as antennas, filters, and amplifiers, to encapsulate the modulated analog signal into the RF message to ensure efficient signal transmission and reception; and adhering to specific RF communication protocols and standards, such as the RF communication protocol for industrial remote control systems, to ensure correct message transmission and parsing. Furthermore, at the receiving end of the IoT sensor sub-device, using appropriate antennas and RF receiving components to receive the RF message; and performing demodulation, decoding, and decryption steps on the received RF message to reconstruct the original custom message content.

[0046] As can be seen in this example, by encoding the custom message to obtain a first target message adapted to the radio frequency transmission format, and modulating the first target message to obtain a second target message, the second target message is transmitted to the IoT sensor sub-device through the wireless radio frequency module of the IoT hub. This ensures that the signal of the custom message can be transmitted and received efficiently and accurately to the receiving IoT sensor sub-device, thereby improving the efficiency and quality of communication.

[0047] Specifically, please refer to Figure 4 , Figure 4 This is a flowchart illustrating a smart home communication method based on the Internet of Things (IoT) provided in an embodiment of this application. Figure 4 Including Figure 1 The smart home communication system 100 shown comprises the following components: IoT hub 110, IoT server 120, IoT sensor sub-device 130, first terminal device 140, and second terminal device 150, including the data uplink process: Step S410: Collect sensing data.

[0048] The sensing data collected by the IoT sensor sub-devices includes: environmental parameters, user behavior data, and device status data.

[0049] Step S420: Forward the sensing message to the first terminal device.

[0050] The IoT hub first receives sensing messages sent by IoT sensor sub-devices, which carry sensing data.

[0051] Step S430: Extract sensing data based on the sensing message, perform logical processing on the sensing data, and send the sensing data to the IoT server.

[0052] The first terminal device is equipped with an IoT base station application, which is used to process the logical business of the sensed data.

[0053] For example, an IoT server determines the analysis results based on the sensed data. In smart lighting control, for instance: ambient light data is collected via light sensors; algorithms analyze the light data to determine if the current light meets the user's needs; if the light is insufficient, a control command to adjust the brightness of the lights is generated and sent to the smart lighting device via a wireless network. Similarly, in smart temperature control: indoor temperature and humidity data are collected via temperature and humidity sensors; algorithms analyze the temperature and humidity data to determine if the current temperature and humidity meet the user's needs; if the temperature and humidity do not meet the requirements, a control command to adjust the air conditioning or heating equipment is generated and sent to the corresponding smart home device via a wireless network. In security protection, security data is collected via door and window sensors, human motion sensors, etc.; algorithms analyze the security data to determine if there are any security risks; if there are security risks, an alarm command is generated and sent to the alarm device in the smart home system or the mobile device's app via a wireless network.

[0054] Step S440: Analyze the sensing data and feed back the analysis results of the sensing data to the second terminal device.

[0055] Step S450: Show the user the analysis results of the perceived data.

[0056] Specifically, please refer to Figure 5 , Figure 5 This is a schematic diagram illustrating a scenario for displaying analysis results provided in an embodiment of this application, which is exemplary. Figure 5 The example given uses a mobile phone as the second terminal device. Figure 5 The analysis results shown indicate that the IoT server, based on sensor data, determined that the current ambient light intensity was insufficient to meet user needs. Therefore, the phone interface 500 displayed an insufficient lighting icon 510 and an information bar 520, which included multiple options. Figure 5 The system displays two options: user adjustment 521 and automatic adjustment 522. When the user selects user adjustment 521 by gesture 530, the smart home system is not adjusted through the smart home communication system. Instead, the user goes to the smart lighting device to adjust it. When the user selects automatic adjustment 522, the smart lighting device is adjusted through the above communication steps to adjust the ambient light to suit the user's needs.

[0057] In this embodiment, the existing independent IoT base station equipment is split into two parts: 1. The business logic part, which runs as an App (IoT base station application) on the mobile device; 2. The RF communication part, which is an independent peripheral hardware device that can be designed according to different protocols and frequency bands, such as supporting FSK, LoRa, ZigBee networks; 868MHz / 915MHz frequency points, etc. This hardware peripheral is connected to the mobile device via OTG and interfaces with the logical business of the business logic part to achieve decoupling.

[0058] In this embodiment, the IoT base station service can be developed by the IoT base station application team, using high-level languages ​​such as Swift, Java, and Kotlin to develop the IoT base station application. Since there are no limitations imposed by embedded hardware, this module focuses more on logical business logic, thus providing more extended functions, such as: TTS voice broadcast; emergency information / calls using mobile phone SMS and telephone; comprehensive condition judgment with AI inference, etc., enabling the development of different value-added service projects. Independent RF communication peripherals can use inexpensive components such as MCUs and RAM, reducing hardware costs and allowing for smaller size and easier installation.

[0059] This also includes the data downlink process: Step S411: Receive custom data and submit it to the IoT server.

[0060] Custom data can be dynamic, user-defined data such as turning lights on / off, light brightness, and voice announcement content.

[0061] Step S412: Receive custom data and forward it to the second terminal device.

[0062] Step S413: Encapsulate the custom data into a custom message.

[0063] Step S414: Receive the custom message and forward it to the IoT sensor sub-device.

[0064] Step S415: In response to custom data, adjust the operating parameters of the IoT sensor sub-device to the custom data.

[0065] and Figure 2 The implementation is consistent with the previous one; please refer to [link / reference]. Figure 6 , Figure 6 This is a functional unit block diagram of a smart home communication device based on the Internet of Things provided in an embodiment of this application, such as... Figure 6 As shown, the smart home communication device 600 is used in applications such as... Figure 1The smart home communication system 100 shown includes a smart home communication device 600 comprising: a receiving unit 610, configured to receive sensing messages sent by IoT sensor sub-devices, forward the sensing messages to a first terminal device, the sensing messages carrying sensing data; and to receive custom messages from the first terminal device and forward them to the IoT sensor sub-devices, the custom messages carrying custom data; a processing unit 620, the first terminal device having an IoT base station application installed, configured to extract sensing data based on sensing messages, perform logical processing on the sensing data, and send the sensing data to an IoT server; and to receive custom data forwarded by the IoT server, encapsulate the custom data into a custom message, the message format of which can be recognized by an IoT hub; an analysis unit 630, configured to analyze the sensing data and feed back the analysis results of the sensing data to a second terminal device; a display unit 640, configured to display the analysis results of the sensing data to a user, and to receive custom data input by the user and submit the custom data to the IoT server; and a collection unit 650, configured to collect sensing data, the sensing data including: environmental parameters, user behavior data, and device status data; and to adjust the operating parameters of the IoT sensor sub-devices to the custom data in response to the custom data.

[0066] In one possible example, the IoT hub also includes: a USB OTG interface, a microcontroller, and a wireless radio frequency module; the IoT hub communicates with at least one IoT sensor sub-device via the wireless radio frequency module; the IoT hub connects to a first terminal device via the USB OTG interface; the microcontroller is used to read sensing messages from the wireless radio frequency module and encapsulate the payload data carried by the sensing messages into a message format that can be recognized by the IoT base station application.

[0067] In one possible example, in terms of feeding back the analysis results of the sensed data to the second terminal device, the IoT server is specifically used to: send the analysis results of the sensed data to the second terminal device according to the MQTT communication protocol.

[0068] In one possible example, the second terminal device includes an electronic display screen; in receiving custom data input by the user, the second terminal device is specifically configured to: receive an adjustment data message from the user, the adjustment data message representing an input operation in which the user inputs custom data into the second terminal device, the input operation including: key input, and / or input via touching the electronic display screen; obtain the custom data configured by the user based on the adjustment data message; and generate a custom message based on the custom data.

[0069] In one possible example, in terms of displaying the analysis results of the perceived data to the user, the second terminal device is specifically used to: convert the analysis results of the perceived data into a graphical form and display it on an electronic display screen using a data visualization tool, which is an application installed on the second terminal device, and the graphical form includes at least one of the following: pattern mode, list mode, and chart mode.

[0070] In one possible example, the IoT server is also specifically used to: receive custom data sent by a second terminal device; Store custom data as device logs for IoT servers.

[0071] In one possible example, in receiving a custom message from a first terminal device and forwarding it to at least one IoT sensor sub-device, the IoT hub is further configured to: encode the custom message to obtain a first target message adapted to a radio frequency transmission format; modulate the first target message to obtain a second target message, the frequency of which allows it to be transmitted in a wireless channel, the modulation including at least one of the following behaviors: amplitude modulation, frequency modulation, and phase modulation; and transmit the second target message to the IoT sensor sub-device via the wireless radio frequency module of the IoT hub.

[0072] It is understood that since the method embodiments and the device embodiments are different presentations of the same technical concept, the content of the method embodiment section in this application should be adapted to the device embodiment section in a synchronous manner, and will not be repeated here.

[0073] Figure 7 This is a structural block diagram of an electronic device provided in an embodiment of this application. For example... Figure 7 As shown, electronic device 700 may include one or more components: a processor 701 and a memory 702 coupled to the processor 701, wherein the memory 702 may store one or more computer programs, which may be configured to implement the methods described in the examples above when executed by one or more processors 701. Electronic device 700 may be as follows: Figure 1 One or more components of the smart home communication system 100 shown.

[0074] Processor 701 may include one or more processing cores. Processor 701 connects to various parts within the electronic device 700 using various interfaces and lines, and performs various functions and processes data of the electronic device 700 by running or executing instructions, programs, code sets, or instruction sets stored in memory 702, and by calling data stored in memory 702. Optionally, processor 701 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 701 may integrate one or more of a Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. It is understood that the aforementioned modem may also not be integrated into processor 701, but may be implemented separately through a communication chip.

[0075] The memory 702 may include random access memory (RAM) or read-only memory (ROM). The memory 702 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 702 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as touch functionality, sound playback functionality, image playback functionality, etc.), and instructions for implementing the various method examples described above. The data storage area may also store data created during the use of the electronic device 700.

[0076] It is understood that the electronic device 700 may include more or fewer structural elements than those shown in the above block diagram, such as a power module, physical buttons, WiFi (Wireless Fidelity) module, speaker, Bluetooth module, sensor, etc., without limitation.

[0077] This application also provides a computer storage medium storing a computer program / instructions thereon, which, when executed by a processor, implements some or all of the steps of any of the methods described in the above method embodiments.

[0078] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments.

[0079] It should be understood that in the various embodiments of this application, the order of the above-mentioned processes does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0080] In the several embodiments provided in this application, it should be understood that the disclosed methods, apparatuses, and systems can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for example, the division of units is merely a logical functional division, and other division methods may exist in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0081] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0082] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can be physically comprised separately, or two or more units can be integrated into one unit. The integrated unit described above can be implemented in hardware or in the form of hardware plus software functional units.

[0083] The integrated units implemented as software functional units described above can be stored in a computer-readable storage medium. These software functional units, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute some steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, volatile memory, or non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous linked DRAM (SLDRAM), and direct rambus RAM (DR RAM), etc., which are various media capable of storing program code.

[0084] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can easily conceive of variations or substitutions without departing from the spirit and scope of the present invention, and various modifications and alterations can be made, including combinations of the different functions and implementation steps described above, as well as software and hardware implementation methods, all of which are within the protection scope of the present invention.

Claims

1. A smart home communication system based on the Internet of Things, characterized in that: include: IoT hub, IoT server, IoT sensor sub-device, first terminal device and second terminal device; wherein, The IoT hub is configured to receive a perception message sent by the IoT sensor sub-device, forward the perception message to the first terminal device, wherein the perception message carries perception data; and receive a custom message from the first terminal device and forward it to the IoT sensor sub-device, wherein the custom message carries custom data; The first terminal device is installed with an IoT base station application, which is used to extract the perception data according to the perception message, perform logical processing on the perception data, and send the perception data to the IoT server; and, is used to receive the custom data forwarded by the IoT server, encapsulate the custom data into the custom message, and the message format of the custom message can be recognized by the IoT hub; The IoT server is used to analyze the perception data and feed back the analysis result of the perception data to the second terminal device; The second terminal device is used to display the analysis result of the perception data to the user, receive the custom data input by the user, and submit the custom data to the IoT server; The IoT sensor sub-device is used to collect the perception data, which includes: environmental parameters, user behavior data, and device status data; and, in response to the custom data, adjust the working parameters of the IoT sensor sub-device to the custom data.

2. The smart home communication system according to claim 1, characterized in that: The IoT hub also includes: a USBOTG interface, a microcontroller and a wireless radio frequency module; The IoT hub is connected to at least one of the IoT sensor sub-devices through the wireless radio frequency module; the IoT hub is connected to the first terminal device through the USB OTG interface; The microcontroller is used to read the perception message in the wireless radio frequency module and encapsulate the payload data carried by the perception message into a message format that can be recognized by the IoT base station application.

3. The smart home communication system according to claim 2, characterized in that: In the aspect of feeding back the analysis result of the perception data to the second terminal device, the IoT server is specifically used for: The analysis result of the perception data is sent to the second terminal device according to the MQTT communication protocol.

4. The smart home communication system according to any one of claims 1 to 3, characterized in that: The second terminal device includes an electronic display screen; in the aspect of receiving the custom data input by the user, the second terminal device is specifically used for: receiving an adjustment data message from the user, wherein the adjustment data message is used to represent an input operation of the user inputting the custom data into the second terminal device, wherein the input operation includes: key input and / or completing input by touching the electronic display screen; Acquire the custom data configured by the user according to the adjustment data message; The custom message is generated according to the custom data.

5. The smart home communication system according to claim 4, characterized in that: In the aspect of presenting the analysis result of the perception data to the user, the second terminal device is specifically used for: The analysis results of the perception data are converted into a graphical form and displayed on the electronic display screen through a data visualization tool. The data visualization tool is an application installed on the second terminal device. The graphical form includes at least one of the following: a pattern form, a list form, and a chart form.

6. The smart home communication system according to claim 4, characterized in that: The IoT server is also specifically used for: Receiving the custom data sent by the second terminal device; The custom data is stored as a device log of the IoT server.

7. The smart home communication system according to claim 2, characterized in that: In the aspect of receiving the custom message of the first terminal device and forwarding it to the IoT sensor sub-device, the IoT hub is further configured to: Encoding the custom message to obtain a first target message adapted to a radio frequency transmission format; Modulating the first target message to obtain a second target message, wherein the frequency of the second target message allows it to be transmitted in a wireless channel, wherein the modulation includes at least one of the following actions: amplitude modulation, frequency modulation, and phase modulation; The second target message is transmitted to the IoT sensor sub-device through the wireless radio frequency module of the IoT hub.

8. A smart home communication method based on the Internet of Things, characterized in that: Applied to a smart home communication system, the system includes: an IoT hub, an IoT server, an IoT sensor sub-device, a first terminal device, and a second terminal device; the method includes: The IoT hub receives a perception message sent by the IoT sensor sub-device, and forwards the perception message to the first terminal device, wherein the perception message carries perception data; and receives a custom message from the first terminal device, and forwards the custom message to the IoT sensor sub-device, wherein the custom message carries custom data; The first terminal device is installed with an IoT base station application, which extracts the perception data according to the perception message, performs logical processing on the perception data, and sends the perception data to the IoT server; and is used to receive the custom data forwarded by the IoT server, encapsulate the custom data into the custom message, and the message format of the custom message can be recognized by the IoT hub; The IoT server analyzes the perception data and feeds back the analysis result of the perception data to the second terminal device; The second terminal device displays the analysis result of the perception data to the user, receives the custom data input by the user, and submits the custom data to the IoT server; The IoT sensor sub-device collects the perception data, which includes: environmental parameters, user behavior data, and device status data; and, in response to the custom data, adjusts the working parameters of the IoT sensor sub-device to the custom data.

9. A smart home communication device based on the Internet of Things, characterized in that: Applied to a smart home communication system, the system includes: an IoT hub, an IoT server, an IoT sensor sub-device, a first terminal device and a second terminal device; the device includes: A receiving unit, configured to receive a perception message sent by the IoT sensor sub-device, forward the perception message to the first terminal device, wherein the perception message carries perception data; and receive a custom message from the first terminal device, and forward the custom message to the IoT sensor sub-device, wherein the custom message carries custom data; A processing unit, wherein the first terminal device is installed with an IoT base station application, configured to extract the perception data according to the perception message, perform logical processing on the perception data, and send the perception data to the IoT server; and configured to receive the custom data forwarded by the IoT server, encapsulate the custom data into the custom message, and the message format of the custom message can be recognized by the IoT hub; an analyzing unit, configured to analyze the perception data and feed back the analysis result of the perception data to the second terminal device; a display unit, configured to display the analysis result of the perception data to the user, receive the custom data input by the user, and submit the custom data to the IoT server; The collecting unit is used to collect the perception data, wherein the perception data includes: environmental parameters, user behavior data, and device status data; and, in response to the custom data, adjust the working parameters of the IoT sensor sub-device to the custom data.

10. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute the method as claimed in claim 8.

Citation Information

Patent Citations

  • NB-IOT (narrow band-Internet of Things)-based agricultural IOT system

    CN107371131A

  • Wireless sensor network system based on smart phone terminal

    CN210518838U

  • A service system to support senior citizens who live alone

    KR102077594B1

  • Mobile terminal including notification application, system and method for managing living-alone elder using the same

    KR102305535B1