Device processing method and system, and electronic device and storage medium
By configuring a standardized communication link between the device and the gateway in the Internet of Things platform, the problems of long development cycle and high cost caused by inconsistent protocols of equipment suppliers are solved, and flexible access to devices and rich functions are achieved to meet users' intelligent needs.
Patent Information
- Application Number
- PCT/CN2024/139287
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-22
- Filing Date
- 2024-12-13
- Publication Date
- 2025-08-28
AI Technical Summary
The way the IoT platform connects to IoT devices adopts integrated embedded development, resulting in inconsistent agreements between various device suppliers, increasing the cycle and cost of the IoT platform connecting to IoT devices, which is not conducive to the rapid launch and promotion of products.
Through platform functions or services configuration communication links between the device and the gateway, the standardization of the communication links is realized, and the platform functions or services configuration communication links between the device and the gateway are realized, and the communication links are flexibly accessed to the device.
It shortens the development cycle, improves the flexibility of the Internet of Things platform and the convenience of device access, enriches the functions of the Internet of Things platform, and meets the intelligent and diversified needs of users.
Smart Images

Figure CN2024139287_28082025_PF_FP_ABST
Abstract
Description
Device processing method, system, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on February 22, 2024, with application number 202410199063.8, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of Internet of Things technology, and specifically to a device processing method, system, electronic device and storage medium. Background Art
[0003] With the rise of the Internet of Things (IoT), IoT platforms are increasingly demanding differentiated IoT devices, and users are increasingly interested in IoT's intelligence and diverse functionality. Currently, IoT platforms connect to IoT devices through integrated embedded development. Device vendors complete development according to their respective protocols and then conduct joint development and debugging with the IoT platform. Because each device vendor implements inconsistent protocols, IoT platforms must connect to each vendor individually, significantly increasing the time and cost of connecting IoT platforms with IoT devices, hindering the rapid launch and promotion of products.
[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Technical issues
[0005] In response to the above technical problems, the present application provides a device processing method, system, electronic device and storage medium, which utilizes platform functions or services to configure the communication link between the device and the gateway, realizes the standardization of the communication link, can flexibly access the device, and shortens the development cycle. Technical Solutions
[0006] This application provides a device processing method, which is applied to a server and includes the following steps:
[0007] Obtaining device information of the first device;
[0008] Binding the device information of the first device with the user information;
[0009] Based on the platform function or service, configure a first communication link between the first device and the first gateway;
[0010] Send control information to the first gateway, so that the first gateway sends the control information to the first device for processing through the first communication link.
[0011] In one embodiment, the method further includes:
[0012] configuring a second communication link between the second device and the first gateway based on the platform function or service;
[0013] Send control information to the first gateway, so that the first gateway sends the control information to the second device for processing through the second communication link.
[0014] In one embodiment, the method further comprises at least one of the following:
[0015] configuring a third communication link between the second device and the second gateway based on the platform function or service;
[0016] Based on the platform function or service, a fourth communication link between the first device and the second gateway is configured.
[0017] In one embodiment, the method further comprises:
[0018] The device information of the first device and / or the second device is sent to a gateway or a designated gateway that has not established a communication link with the first device and / or the second device.
[0019] In one embodiment, the control information is obtained by at least one of the following methods:
[0020] The server is generated when a first preset condition is met;
[0021] Terminal sends;
[0022] Control information from the terminal forwarded by the first gateway and / or the second gateway;
[0023] The first gateway and / or the second gateway forwards control information from the first device and / or the second device.
[0024] In one embodiment, the sending of control information includes:
[0025] Obtain control information;
[0026] encrypting the control information;
[0027] The encrypted control information is sent.
[0028] A device processing method, applied to a gateway, comprising the steps of:
[0029] receiving control information;
[0030] The control information is sent to the device via a communication link configured based on platform functions or services, so as to be processed by the device.
[0031] In one embodiment, the sending of the control information to the device via a communication link configured based on a platform function or service includes:
[0032] encrypting the control information;
[0033] The encrypted control information is sent to the device via a communication link based on platform functions or service configurations
[0034] A device processing method, applied to a terminal, comprising the steps of:
[0035] In response to satisfying a second preset condition, generating control information for the device based on the platform function or service;
[0036] The control information is sent to a gateway and / or a server, wherein a communication link is configured between the gateway and the device based on platform functions or services.
[0037] In one embodiment, the method further comprises:
[0038] Displaying a first interface, wherein the first interface is used to display information of at least one gateway;
[0039] In response to an operation of selecting a gateway, displaying a list of devices that have established the communication link with the gateway;
[0040] In response to an operation of selecting a device, a device control interface is displayed.
[0041] In one embodiment, displaying the first interface includes at least one of the following:
[0042] Displaying information of gateways bound to the terminal in order on the first interface according to the frequency of use of the gateways;
[0043] Displaying information of gateways bound to the terminal in order on the first interface according to the local area network where the terminal is located;
[0044] Displaying information of gateways bound to the terminal in order on the first interface according to the security of the gateways;
[0045] According to the scenario information, information of the gateways bound to the terminal is displayed in sequence in the first interface.
[0046] In one embodiment, satisfying the second preset condition includes:
[0047] The near field communication mode between the terminal and the gateway changes;
[0048] The working scenario of the device does not match the device priority;
[0049] The power consumption of the device exceeds a preset power consumption threshold;
[0050] The current scene is the preset scene.
[0051] A device processing method, applied to a device, comprising the steps of:
[0052] Receiving first control information via a communication link configured based on platform functions or services;
[0053] Calling platform functions or services to process the first control information and execute corresponding instructions.
[0054] In one embodiment, the method further comprises:
[0055] receiving a preset operation and generating second control information of another device based on the platform function or service;
[0056] The second control information is sent to the gateway.
[0057] A device processing system includes: a server, a terminal, a gateway, and a device, wherein the gateway and the device are connected by a communication link based on a platform function or service configuration;
[0058] The server is configured to obtain device information of a device, bind the device information of the device with user information, and send control information to the gateway;
[0059] The gateway is configured to receive control information and send the control information to the device via the communication link;
[0060] The terminal is used to generate control information of the device based on the platform function or service, and send the control information to the gateway and / or server;
[0061] The device is used to receive the control information, call platform functions or services to process the control information and execute corresponding instructions.
[0062] An electronic device, the server comprising: a memory and a processor, wherein the memory stores a processing program, and when the processing program is executed by the processor, the steps of the device processing method as described in any one of the above items are implemented.
[0063] A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the device processing method as described in any one of the above items. Beneficial effects
[0064] As described above, the device processing method of the present application, applied to a server, includes the following steps: obtaining device information of a first device; binding the device information of the first device with user information; configuring a first communication link between the first device and a first gateway based on a platform function or service; and sending control information to the first gateway, so that the first gateway sends the control information to the first device via the first communication link for processing. The technical solution of the present application utilizes platform functions or services to configure the communication link between the device and the gateway, achieving standardization of the communication link, enabling flexible device access, and shortening the development cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for describing the embodiments. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without inventive work.
[0066] FIG1 is an architecture diagram of a device processing system provided in an embodiment of the present application;
[0067] FIG2 is an architecture diagram of a device processing system provided by another embodiment of the present application;
[0068] FIG3 is a schematic flow chart of a device processing method according to an embodiment;
[0069] FIG4 is a schematic flow chart of a device processing method according to another embodiment;
[0070] FIG5 is a schematic flow chart of a device processing method according to yet another embodiment;
[0071] FIG6 is a schematic flow chart of a device processing method according to yet another embodiment.
[0072] The purpose of this application, its features, and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings. The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and the accompanying text are not intended to limit the scope of the present application in any way, but rather to illustrate the concepts of this application to those skilled in the art by reference to specific embodiments. Modes for Carrying Out the Invention
[0073] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
[0074] It should be noted that, in this document, the terms "comprises", "includes" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element, and / or, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.
[0075] It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are used solely to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the term "if," as used herein, may be interpreted as "upon," "when," or "in response to a determination." Furthermore, as used herein, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It should be further understood that the terms "comprising" and "including" indicate the presence of the recited features, steps, operations, elements, components, items, types, and / or groups, but do not preclude the presence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups. The terms "or," "and / or," "including at least one of the following," etc., as used herein, may be interpreted as inclusive, meaning any one or any combination. For example, “comprising at least one of the following: A, B, C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”; and for another example, “A, B or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A and B and C”. An exception to this definition will occur only when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.
[0076] Although the various steps in the flowchart in the embodiment of the present application are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless clearly stated herein, the execution of these steps is not strictly limited in order and can be performed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0077] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to the determination" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)," depending on the context.
[0078] It should be noted that in this article, step codes such as S1 and S2 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial restriction on the order. When implementing the step, those skilled in the art may execute S2 first and then S1, etc., but these should all be within the scope of protection of this application.
[0079] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.
[0080] In the subsequent description, the use of suffixes such as "module", "component" or "unit" to represent elements is only for the purpose of facilitating the description of the present application and has no specific meaning. Therefore, "module", "component" or "unit" can be used interchangeably.
[0081] Please refer to Figure 1, a device processing system includes: a server, a terminal, a gateway and a device, and the gateway and the device are connected by a communication link based on platform functions or service configurations.
[0082] The server is used to obtain the device information of the device, bind the device information with the user information, and send control information to the gateway.
[0083] The gateway is used to receive control information and send the control information to the device through the communication link.
[0084] The terminal is used to generate control information of the device based on the platform function or service and send the control information to the gateway and / or server.
[0085] Device, used to receive control information, call platform functions or services to process the control information and execute corresponding instructions.
[0086] Platform-based functions or services are implemented as plug-in software development kits (SDKs), enabling rapid integration into devices, gateways, terminal applications, or services. Leveraging platform-based functions or services, new platform-based protocols can be constructed on top of communication protocols for data communication, providing unified communication ports and standardizing communication links. This allows devices integrating platform-based functions or services to flexibly connect to IoT systems. This eliminates or reduces device commissioning for IoT platforms and device vendors, shortening development cycles. Users can flexibly select devices to implement their desired functions, meeting their needs for rich, intelligent use.
[0087] In one embodiment, the platform functions or services are implemented in the form of SDK, and their function upgrades can be performed through Over-the-Air Technology (OTA), eliminating the need to manually upgrade terminal applications and devices, which is more convenient.
[0088] In one embodiment, a platform-based protocol of a platform-based function or service architecture is used to ensure data and link security using a triple authentication method of a key, a national secret algorithm, and a chip.
[0089] In one embodiment, the gateway serving as the IoT platform may be one or more, for example, a first gateway and a second gateway. The first gateway and the second gateway may be configured in different application spaces, for example, the first gateway is a vehicle-mounted gateway (TCAM) and the second gateway is a home gateway (Home GW).
[0090] In one embodiment, the terminal may be one or more, for example, including a first terminal and a second terminal. The first terminal and the second terminal may be different types of terminals. For example, the first terminal is a vehicle-mounted terminal DHU, or digital cockpit system, and the second terminal is a mobile terminal. The first terminal and the second terminal may be one or more.
[0091] In one embodiment, the device is an Internet of Things device, which may be one or more, for example, including a first device and a second device. Based on platform functions or services, the devices can access different gateways. For example, the first device can access the first gateway and / or the second gateway, and the second device can also access the first gateway and / or the second gateway. The same device can also switch connections between the first gateway and the second gateway. In this way, the first device and the second device can be the same device. Utilizing platform functions or services and gateways configured in different application spaces can facilitate users to use the same device in different scenarios. For example, the same Bluetooth speaker can be taken to home to listen to music, and can also be taken to the car to listen to music or answer calls.
[0092] Please refer to Figure 2, taking the automotive Internet of Things scenario as an example, to introduce the various modules of the system architecture of this application.
[0093] The vehicle side includes a first gateway and a first terminal. The first gateway exchanges data with the first terminal through an Ethernet gateway module (ETH).
[0094] The first gateway (e.g., TCAM) is a communication module, including a Wi-Fi module, a Bluetooth Low Energy (BLE) module, a 4G / 5G communication module, an SE security module, a platform-based function or service SDK, and a remote control controller. The first terminal (e.g., DHU) includes a Wi-Fi module, a Bluetooth Low Energy (BLE) module, an SE security module, and a platform-based function or service SDK.
[0095] Among them, the WI-FI module is the WI-FI hardware unit, and the platform function or service SDK architecture is implemented on the WI-FI module.
[0096] The BLE module is a BLE hardware unit. BLE is a dual-mode device consisting of classic Bluetooth and low-power Bluetooth. It transmits big data applications (such as Bluetooth music) through classic Bluetooth and performs low-power interactions (such as RPA) through low-power Bluetooth. The platform function or service SDK architecture is based on the BLE module and can implement the BLE MESH protocol, BLE protocol, and ZIBBEE protocol.
[0097] The 4G / 5G communication module is a cellular network communication hardware unit that includes 4G and 5G communication modules.
[0098] The SE is a security module. In one embodiment, the security chips used in the security module all implement the national secret algorithm (SM1). Furthermore, all encryption algorithms used in the security module all adopt national secret algorithms, ensuring link and data security while achieving localization. In one embodiment, the security module can also use other encryption algorithms suitable for IoT data encryption, such as RSA or ECC.
[0099] The server includes device management services, key management services, message management services, command management services, user management services, and OTA management services.
[0100] The device management service processes device information bound to user information; processes information related to device vendors' devices, manages user device information, and manages device bindings; performs device authentication and ownership management, and provides a visual UI information management interface and data reporting services. The key management service provides key download, authentication, encryption, and decryption. In one embodiment, all encryption and decryption functions utilize national encryption technologies, but this is not limited to this; international encryption technologies may also be used. The message management service provides message access, push, message link management, and message channel management. The command management service leverages the message management service to manage commands. Commands are categorized as near-field commands and remote commands, including command types and command sets. The user management service manages user information and is responsible for user login, logout, and authentication. The OTA management service performs remote OTA upgrades for devices, TCAM gateways, terminal DHUs, and applications, and includes installation package management, file system management, version management, and load balancing.
[0101] The first terminal is loaded with an application program, including a device management module, a key authentication module, a message management module, an instruction management module, and an OTA management module.
[0102] Among them, the device management module is used to enter device information, bind, and configure the protocol network. The key authentication module is used to authenticate the user identity of the logged-in user, encrypt and decrypt information, and download and identify certificates. The message management module is used to receive and manage messages from the server, the first gateway, the second gateway, and the device, and to push and manage messages, encrypt and decrypt messages, and establish a secure channel. The instruction management module is used to send and receive instructions and display instructions in the UI. The user management module is used for device user management and sharing management. The OTA management module is used to upgrade the first gateway and device via BLE / WI-FI, and at the same time receive upgrade packages from the server to upgrade itself.
[0103] The second gateway, Home GW, is configured with platform functions or service SDKs and has the ability to access the network. This gateway can realize long-distance IoT functions.
[0104] The device includes a device that establishes a communication link with the first gateway and / or the second gateway. This device is an IoT device that accesses a platform-based function or service SDK, such as a speaker, light, air conditioner, or air purifier. The device uses Bluetooth Low Energy (BLE) or Wi-Fi protocols, and the cellular network can integrate either 4G or 5G. After receiving the message, the device calls the platform-based function or service SDK to decrypt and execute the instruction.
[0105] The above system is realized through platform functions or service SDK, a collection of protocols, encryption algorithms, and a unified communication port. Car owners and sharers can control and operate IoT devices in a near-field or remote manner through mobile terminal applications and DHU applications.
[0106] The following embodiments introduce a device processing method implemented based on the system architecture shown in FIG1 or FIG2 .
[0107] Please refer to FIG3 , a device processing method, applied to a server, includes the following steps:
[0108] S1, obtaining device information of a first device;
[0109] S2, binding the device information of the first device with the user information;
[0110] S3, configuring a first communication link between the first device and the first gateway based on the platform function or service;
[0111] S4: Send control information to the first gateway, so that the first gateway sends the control information to the first device for processing through the first communication link.
[0112] In one embodiment, after the first device integrates the platform function or service, the user can scan the QR code on the first device or enter the VIN code through the device management function on the terminal application. The terminal then submits the information to the device management module on the server to bind the user information to the device information. Alternatively, the user information and device information can be bound by manually entering the information through the management platform interface of the device management function on the server.
[0113] After that, the first communication link between the first device and the first gateway is configured, i.e., network configuration of the devices is performed. During network configuration, the terminal application's message management module pulls device and gateway information, and the device management module analyzes and determines the hardware of the first device and the first gateway, selects the most appropriate link, and then configures the link based on platform functions or services. If the first device only supports BLE, the BLE link is selected; if the first device only supports Wi-Fi, the Wi-Fi link is selected; if the first device supports both Wi-Fi and BLE, the BLE link is prioritized. After link selection, the relevant configuration is uploaded to the server, completing the configuration of the first communication link.
[0114] Taking the first gateway as TCAM as an example, the user can scan the QR code on the first device or enter the VIN code through the application on the mobile terminal, upload it to the server to bind the device information with the user information (for example, the car owner), and then the message management module of the application pulls the device information and gateway information and sends it to the server, and configures the communication link between the first device and the first gateway based on the device information and gateway information.
[0115] After that, after the user successfully logs in to the App on the mobile terminal or the App on the vehicle terminal DHU, he can operate the first device, such as the message management function based on the App of the mobile terminal, and communicate through one of HTTPS / BLE / WI-FI / MQTT. The communication link is selected as follows: if the mobile terminal is within the near-field communication range of the first gateway, the near-field communication link will be selected; if it exceeds the near-field communication range, 4G / 5G will be used for network communication.
[0116] In one embodiment, in step S4, sending control information includes:
[0117] Obtain control information;
[0118] Encrypting control information;
[0119] Send encrypted control information.
[0120] In one embodiment, control information is encrypted before being sent, ensuring link and data security while achieving platformization. In one embodiment, upon receiving information, the server invokes a key management service to decrypt the information, perform calculations, and then encrypt it. The server transmits the information to the vehicle-side TCAM gateway via the MQTT protocol and to the terminal application via the HTTPS protocol. In one embodiment, control information is encrypted using the national encryption algorithm (SM1), ensuring link and data security while achieving localization. In one embodiment, other encryption algorithms suitable for IoT data encryption, such as RSA or ECC, may also be used.
[0121] In one embodiment, the method further comprises:
[0122] configuring a second communication link between the second device and the first gateway based on the platform function or service;
[0123] The control information is sent to the first gateway, so that the first gateway sends the control information to the second device for processing via the second communication link.
[0124] In one embodiment, the first gateway may also establish a communication link with the second device to control the second device, thereby enriching the functionality of the IoT platform. The process of establishing the second communication link between the first gateway and the second device is similar to the process of establishing the first communication link described above and will not be repeated here.
[0125] In one embodiment, the method further comprises at least one of the following:
[0126] configuring a third communication link between the second device and the second gateway based on the platform function or service;
[0127] Based on the platform function or service, a fourth communication link between the first device and the second gateway is configured.
[0128] In one embodiment, before or after the first device and the second device establish a communication link with the first gateway, they can also establish a communication link with the second gateway. Since the communication link between the device and the gateway is configured based on platform functions or services, the device can be flexibly connected between different gateways, thereby improving the convenience of using IoT devices.
[0129] In one embodiment, the method further comprises:
[0130] The device information of the first device and / or the second device is sent to a gateway or a designated gateway that has not established a communication link with the first device and / or the second device.
[0131] In one embodiment, after the first device and / or the second device accesses the current gateway, the device information can be sent to a gateway or a designated gateway that has not established a communication link with the first device and / or the second device, so that the first device and / or the second device can subsequently access other gateways more quickly. The gateway that has not established a communication link with the first device and / or the second device can be the first gateway or the second gateway, or it can be a third gateway. The designated gateway can be specified by the user or determined based on the application scenario of the device. For example, if the device accessing the current gateway is a car refrigerator, the application scenario of the device is car-mounted, and the designated gateway can be determined to be the car gateway that has been bound to the user information.
[0132] In one embodiment, the control information is obtained by at least one of the following methods:
[0133] The server is generated when a first preset condition is met;
[0134] Terminal sends;
[0135] Control information from the terminal forwarded by the first gateway and / or the second gateway;
[0136] The first gateway and / or the second gateway forwards control information from the first device and / or the second device.
[0137] In one embodiment, satisfying the first preset condition may include at least one of the following:
[0138] The time is the preset time;
[0139] The equipment's operating data meets the control conditions.
[0140] In one embodiment, control information is generated when the time is a preset time, for example, when powering on or off, adjusting temperature or humidity, warming up the vehicle, or adjusting seat temperature at a specified time. Control information is generated when the device's operating data meets the control conditions, for example, when the device's operating hours reach a preset time, a fault occurs, or data download is complete.
[0141] In one embodiment, when the control information is sent by the terminal, in one scenario, the mobile terminal and the gateway communicate over a 4G / 5G network. The mobile terminal encrypts the control information and sends the control information to the server through a message management function. After receiving the information from the terminal, the message management service of the server calls the key management service to decrypt the message, performs calculations, and then encrypts it, and sends it to the first gateway or the second gateway through the MQTT or HTTPS protocol.
[0142] In one scenario, when a mobile terminal and a gateway conduct near-field communication, the mobile terminal encrypts the control information and then calls the application's message management function through the TCAM link to send the control information to the server. After the server's message management service receives the control message, it calls the server's key management service to decrypt the message and perform calculations, then encrypts it and sends it to the first gateway or the second gateway via the MQTT or HTTPS protocol.
[0143] In one scenario, the terminal is an in-vehicle terminal DHU. The DHU application calls platform functions or services and uses the ETH link to forward messages to the in-vehicle network TCAM. The TCAM gateway then encrypts the message through the security module and sends it to the device. After receiving the message, the device calls the platform functions or services to decrypt and execute the instructions.
[0144] When a user inputs control information through the first device or the second device, the first gateway and / or the second gateway forwards the control information from the first device and / or the second device, and the other device can be controlled through this control information. For example, a user inputs control information through a speaker at home, and this control information can be used to control devices in the vehicle, such as charging and warming up the vehicle.
[0145] In one embodiment, the device supports at least one of BLE and Wi-Fi. If the device does not support 4G / 5G, the device communicates with the gateway using either BLE or Wi-Fi. The gateway forwards instructions to the device via BLE or Wi-Fi, and the device invokes platform-based functions or services to decrypt and execute the instructions. If the device supports 4G / 5G, it can exchange information with the server via MQTT. In one embodiment, instructions from the terminal are forwarded to the device via the gateway. Only network configuration is performed between the terminal and the device, and instruction execution via near-field communication (BLE / Wi-Fi) is not performed.
[0146] As described above, the device processing method of the present application utilizes platform functions or services to configure the communication link between the device and the gateway, thereby achieving standardization of the communication link, enabling flexible access to devices, enriching the functionality of the IoT platform, and shortening the development cycle.
[0147] Please refer to FIG4 , a device processing method, applied to a gateway, includes the following steps:
[0148] S10, receiving control information;
[0149] S20, sending control information to the device via a communication link configured based on the platform function or service, so as to process the device.
[0150] The gateway and the device configure platform functions or services, and pre-configure communication links based on the platform functions or services. The manner of configuring the communication links is the same as that of the previous embodiment and will not be repeated here.
[0151] The device is an IoT device. In one embodiment, the control information comes from a terminal, a server, or another IoT device. In one embodiment, the terminal can be a mobile terminal or a vehicle-mounted terminal. For a mobile terminal, if the mobile terminal and the gateway communicate over a 4G / 5G network, the mobile terminal encrypts the control information and sends it to the server via the message management function. After receiving the information from the terminal, the server's message management service calls the key management service to decrypt the message, performs calculations, and then encrypts it, and sends it to the gateway via the MQTT or HTTPS protocol. If the mobile terminal and the gateway communicate over near-field communication, the mobile terminal encrypts the control information and sends it to the server via the gateway. After receiving the control message, the server's message management service calls the server's key management service to decrypt the message, performs calculations, and then encrypts it and sends it to the gateway via the MQTT or HTTPS protocol.
[0152] In one embodiment, sending control information to a device via a communication link configured based on platform functions or services includes:
[0153] Encrypting control information;
[0154] The encrypted control information is sent to the device via a communication link configured based on platform functions or services.
[0155] By encrypting control information before sending it, link and data security can be guaranteed while achieving platformization. In one embodiment, control information is encrypted based on the national encryption algorithm (SM1), ensuring link and data security while achieving localization. In one embodiment, other encryption algorithms suitable for IoT data encryption can also be used, such as RSA or ECC.
[0156] Please refer to FIG5 , a device processing method, applied to a terminal, includes the following steps:
[0157] S100, in response to satisfying a second preset condition, generating control information of the device based on the platform function or service;
[0158] S200 , sending control information to a gateway and / or server, wherein a communication link is configured between the gateway and the device based on platform functions or services.
[0159] In one embodiment, satisfying the second preset condition includes:
[0160] The near-field communication method between the terminal and the gateway has changed;
[0161] The device's working scenario does not match the device priority;
[0162] The power consumption of the device exceeds the preset power consumption threshold;
[0163] The current scene is the preset scene.
[0164] In one embodiment, if the near-field communication mode between a terminal and a gateway changes, including switching the gateway communicating with the terminal, the control information may be used to wake up a device connected to the new gateway, put a device connected to the previous gateway to sleep, or change monitoring conditions (such as monitoring intervals) for devices connected to the previous and next gateways. A change in the near-field communication mode between a terminal and a gateway may also include a change in the communication link between the terminal and the gateway, such as switching from BLE to Wi-Fi. In this case, the control information may be used to switch the communication link between the device and the gateway to Wi-Fi.
[0165] In one embodiment, the working scenario of the device does not match the device priority. For example, when answering a call from a specific contact, earphone A has a higher priority than speaker B. Therefore, when speaker B is used to answer the call, control information is sent to switch the call to earphone A for answering or to control speaker B not to respond to the call.
[0166] In one embodiment, when the device's power consumption exceeds a preset threshold, the control information can be used, for example, to switch the device's operating mode or information transmission mode to save power. In one embodiment, when the current scenario is a preset scenario, for example, in a navigation scenario, a higher-volume voice prompt is provided for important intersections, and in low-temperature scenarios, the vehicle is controlled to warm up at intervals.
[0167] In one embodiment, the method further comprises:
[0168] Displaying a first interface, the first interface is used to display information of at least one gateway;
[0169] In response to an operation of selecting a gateway, displaying a list of devices that have established communication links with the gateway;
[0170] In response to an operation of selecting a device, a device control interface is displayed.
[0171] In one embodiment, users can switch bound gateways on the operation interface to control devices connected to each gateway. The interface corresponding to each gateway displays a list of devices connected to that gateway. Then, users can select the device control interface of the corresponding device to view messages, check status, and perform control operations.
[0172] In one embodiment, displaying the first interface includes at least one of the following:
[0173] The information of the gateways bound to the terminal is displayed in order on the first interface according to the frequency of use of the gateways;
[0174] According to the local area network where the terminal is located, the information of the gateways bound to the terminal is displayed in order on the first interface;
[0175] According to the security of the gateway, the information of the gateway bound to the terminal is displayed in order on the first interface;
[0176] According to the scenario information, the information of the gateways bound to the terminal is displayed in order on the first interface.
[0177] In one embodiment, in the first interface, gateways that are used more frequently, gateways located in the local area network where the terminal is located, gateways with higher security, and gateways that match the current scenario are arranged in a higher order to facilitate user operation and improve the safety of operation. In one embodiment, for gateways whose security is lower than a threshold, an inoperable mark can be hidden or displayed. In one embodiment, the current scenario can be determined based on the location of the terminal, the current time, and user habits. For example, if the current time is off-duty time and the terminal is close to home, it is determined to be a homecoming scenario, and the home gateway is arranged in the front to facilitate user control of home devices.
[0178] Please refer to FIG6 , a device processing method is applied to the device, and the method includes the following steps:
[0179] S1000, receiving first control information via a communication link configured based on a platform function or service;
[0180] S2000: Calling a platform function or service to process the first control information and execute corresponding instructions.
[0181] The gateway and the device configure platform functions or services, and pre-configure communication links based on the platform functions or services. The manner of configuring the communication links is the same as that of the previous embodiment and will not be repeated here.
[0182] In one embodiment, the method further comprises:
[0183] receiving a preset operation and generating second control information of another device based on the platform function or service;
[0184] The second control information is sent to the gateway.
[0185] In one embodiment, a user can operate a device to generate second control information for another device. This second control information is then sent via a gateway to the other device with which a communication link has been established for execution. For example, a user can input commands to control a car air purifier at home through a speaker to turn it on or off. Thus, based on platform-based functions or services, the integration of in-car scenarios with home and mobile scenarios is achieved, making the IoT more convenient and richer in functionality.
[0186] An electronic device, the server comprising: a memory and a processor, wherein the memory stores a processing program, and when the processing program is executed by the processor, the steps of the device processing method as described in any one of the above items are implemented.
[0187] A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the device processing method as described in any one of the above items.
[0188] In the embodiments of the electronic device and storage medium provided in this application, all technical features of any of the above-mentioned device processing method embodiments may be included. The expanded and explained contents of the specification are basically the same as those of the embodiments of the above-mentioned methods and will not be repeated here.
[0189] An embodiment of the present application further provides a computer program product, which includes computer program code. When the computer program code runs on a computer, the computer executes the methods in the various possible implementation modes described above.
[0190] An embodiment of the present application also provides a chip, including a memory and a processor, wherein the memory is used to store computer programs, and the processor is used to call and run the computer programs from the memory, so that a device equipped with the chip executes the methods in the various possible implementation modes as described above.
[0191] The above scenarios are merely examples and do not limit the application scenarios of the technical solutions provided in the embodiments of this application. The technical solutions of this application can also be applied to other scenarios. For example, those skilled in the art will appreciate that, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are equally applicable to similar technical problems.
[0192] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0193] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.
[0194] The units in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.
[0195] In this application, the same or similar terminology, technical solutions and / or application scenario descriptions are generally only described in detail the first time they appear. When they appear again later, they are generally not repeated for the sake of brevity. When understanding the technical solutions and other contents of this application, for the same or similar terminology, technical solutions and / or application scenario descriptions that are not described in detail later, you can refer to the previous relevant detailed descriptions.
[0196] In this application, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0197] The various technical features of the technical solution of this application can be combined arbitrarily. In order to make the description concise, not all possible combinations of the various technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0198] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the existing technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, controlled terminal, or network device, etc.) to execute the method of each embodiment of the present application.
[0199] The above embodiments can be implemented in whole or in part through software, hardware, firmware, or any combination thereof. When implemented using software, they can be implemented in whole or in part in the form of a computer program product. A computer program product comprises one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that integrates one or more available media. Available media can include magnetic media (e.g., floppy disks, storage disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks (SSDs)).
[0200] The above are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A device processing method, applied to a server, wherein: The device processing method comprises the steps of: Obtaining device information of the first device; Binding the device information of the first device with the user information; Based on the platform function or service, configure a first communication link between the first device and the first gateway; Send control information to the first gateway, so that the first gateway sends the control information to the first device for processing through the first communication link.
2. The method according to claim 1, wherein The method further comprises: configuring a second communication link between the second device and the first gateway based on the platform function or service; Send control information to the first gateway, so that the first gateway sends the control information to the second device for processing through the second communication link.
3. The method according to claim 2, wherein: The method further comprises at least one of the following: configuring a third communication link between the second device and the second gateway based on the platform function or service; Based on the platform function or service, a fourth communication link between the first device and the second gateway is configured.
4. The method according to claim 3, wherein: The method further comprises: The device information of the first device and / or the second device is sent to a gateway or a designated gateway that has not established a communication link with the first device and / or the second device.
5. The method according to claim 3, wherein: The control information is obtained in at least one of the following ways: The server is generated when a first preset condition is met; Terminal sends; Control information from the terminal forwarded by the first gateway and / or the second gateway; The first gateway and / or the second gateway forwards control information from the first device and / or the second device.
6. The method according to claim 1 or 2, wherein: The sending control information includes: Obtain control information; encrypting the control information; The encrypted control information is sent.
7. A device processing method, applied to a gateway, wherein: The method comprises the steps of: receiving control information; The control information is sent to the device via a communication link configured based on platform functions or services, so as to be processed by the device.
8. The method according to claim 7, wherein: The sending of the control information to the device via a communication link configured based on platform functions or services includes: encrypting the control information; The encrypted control information is sent to the device via a communication link configured based on platform functions or services.
9. A device processing method, applied to a terminal, wherein: The method comprises the steps of: In response to satisfying a second preset condition, generating control information for the device based on the platform function or service; The control information is sent to a gateway and / or a server, wherein a communication link is configured between the gateway and the device based on platform functions or services.
10. The method according to claim 9, wherein: The method further comprises: Displaying a first interface, wherein the first interface is used to display information of at least one gateway; In response to an operation of selecting a gateway, displaying a list of devices that have established the communication link with the gateway; In response to an operation of selecting a device, a device control interface is displayed.
11. The method according to claim 10, wherein: The display of the first interface includes at least one of the following: Displaying information of gateways bound to the terminal in order on the first interface according to the frequency of use of the gateways; Displaying information of gateways bound to the terminal in order on the first interface according to the local area network where the terminal is located; Displaying information of gateways bound to the terminal in order on the first interface according to the security of the gateways; According to the scenario information, information of the gateways bound to the terminal is displayed in sequence in the first interface.
12. The method according to claim 9, wherein The second preset condition is satisfied, including: The near field communication mode between the terminal and the gateway changes; The working scenario of the device does not match the device priority; The power consumption of the device exceeds a preset power consumption threshold; The current scene is the preset scene.
13. A device processing method, applied to a device, wherein: The method comprises the steps of: Receiving first control information via a communication link configured based on platform functions or services; Calling platform functions or services to process the first control information and execute corresponding instructions.
14. The method according to claim 11, wherein The method further comprises: receiving a preset operation and generating second control information of another device based on the platform function or service; The second control information is sent to the gateway.
15. A device processing system, wherein: The device processing system includes: a server, a terminal, a gateway and a device, wherein the gateway and the device are connected by a communication link based on a platform function or service configuration; The server is configured to obtain device information of a device, bind the device information of the device with user information, and send control information to the gateway; The gateway is configured to receive control information and send the control information to the device via the communication link; The terminal is used to generate control information of the device based on the platform function or service, and send the control information to the gateway and / or server; The device is used to receive the control information, call platform functions or services to process the control information and execute corresponding instructions.
16. An electronic device, wherein: The server includes: a memory and a processor, wherein a processing program is stored in the memory, and when the processing program is executed by the processor, the steps of the device processing method according to any one of claims 1 to 14 are implemented.
17. A storage medium, wherein: The storage medium stores a computer program, which, when executed by a processor, implements the steps of the device processing method according to any one of claims 1 to 14.
Citation Information
Patent Citations
Equipment processing method and system, electronic equipment and storage medium
CN118200375A
Internet of Things equipment model based on MQTT protocol and data penetration method thereof
CN112738042A
Communication security car networking system
CN115664691A
Home gateway device, in-vehicle communication device, home electric appliance control system, home electric appliance control method, information communication method and program
JP2016019135A
Cloud platform-based internet-of-things terminal communication management and control system and method
WO2018121572A1