Internet of Things Application Processing Method and System Based on Artificial Intelligence and Virtual Chips

Through the IoT application processing method based on artificial intelligence and virtual chips, the running code of IoT devices is automatically generated, which solves the problem of difficult and high cost of IoT application development in the existing technology, and improves the universality and applicability of IoT devices.

CN113903481BActive Publication Date: 2025-06-24安德鲁浚宇毛
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111149721.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-29
Publication Date
2025-06-24
Estimated Expiration
2041-09-29

AI Technical Summary

Technical Problem

The development of existing IoT applications requires users to have strong technical development capabilities, including studying chip characteristics, learning programming languages ​​and writing code, which leads to high development costs and long implementation cycles, which affects the popularization of IoT technology.

Method used

The IoT application processing method based on artificial intelligence and virtual chips is adopted. By obtaining user input data, the IoT device is abstractly described as a virtual chip, and the running code of the physical chip is automatically generated, reducing the difficulty of users to write programs.

Benefits of technology

It improves the versatility and applicability of IoT devices, reduces development and design difficulties, reduces development costs and cycles, and provides users with a simple and available IoT application development solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113903481B_ABST
    Figure CN113903481B_ABST
Patent Text Reader

Abstract

The embodiments of this specification provide an Internet of Things (IoT) application processing method and system based on artificial intelligence and virtual chips. Among them, the IoT application processing method includes: obtaining first input data of a user in an IoT platform, where the first input data includes data for the user to propose an IoT application task; obtaining a virtual chip corresponding to the first input data according to the first input data, where the virtual chip is an abstract description of an IoT device, the IoT device is a device entity for executing the IoT application task, and the abstract description at least includes physical pins and a workflow; obtaining the mapping relationship between virtual pins and physical pins by the user, where the physical pins are the pins of an entity chip in the IoT device; generating the running code corresponding to the entity chip according to the mapping relationship and the workflow; and loading the running code into the entity chip so that the entity chip executes the IoT application task. This method can reduce the development and design difficulty of IoT devices and improve the generality and applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the technical field of the Internet of Things, and particularly to an Internet of Things application processing method and system based on artificial intelligence and virtual chips. Background Art

[0002] The Internet of Things (IoT) is an important part of the new generation of information technology and also an important development stage in the information age. Its essence is to use communication technologies such as local area networks or the Internet to connect various machines, people, and things in a new way to form an information-based, remotely managed and controlled, and intelligent network.

[0003] In the Internet of Things, the function realization of various devices depends on different types of physical chips. There are a wide variety of chips on the market, with different pinouts, interface types, pins, and connection methods for the chips, and there are significant differences in the development tools and programming languages used. Therefore, users need to spend a lot of time studying chip characteristics, learning programming languages, writing code, etc. in order to carry out Internet of Things application development, resulting in high development costs and long implementation cycles, which affect the development, implementation, and application popularization of Internet of Things technology.

[0004] Based on the above, it is particularly necessary to provide an Internet of Things application solution with good generality and high applicability. Summary of the Invention

[0005] In view of this, the embodiments of this specification provide an Internet of Things application processing method and system based on artificial intelligence and virtual chips, providing a simple and usable Internet of Things application development solution for Internet of Things application users, reducing the development and design difficulty of users using Internet of Things devices, and improving the generality of Internet of Things devices in Internet of Things applications.

[0006] The embodiments of this specification provide the following technical solutions:

[0007] An Internet of Things application processing method based on artificial intelligence and virtual chips, comprising:

[0008] Obtaining first input data of a user in an Internet of Things platform, where the first input data includes data of an Internet of Things application task proposed by the user;

[0009] Obtaining a virtual chip corresponding to the first input data according to the first input data, where the virtual chip is an abstract description of an Internet of Things device, and the Internet of Things device is a device entity that executes the Internet of Things application task, and the abstract description at least includes the following abstract descriptions of the physical chip in the Internet of Things device for executing the Internet of Things application task: physical pins, workflow;

[0010] Obtain the mapping relationship between the virtual pins and physical pins of the virtual chip for the user, where the physical pins are the pins of the entity chip in the Internet of Things device;

[0011] Generate the running code corresponding to the entity chip according to the mapping relationship and the workflow;

[0012] Load the running code into the entity chip so that the entity chip executes the Internet of Things application task.

[0013] In one embodiment,

[0014] Obtain the first input data of the user in the Internet of Things platform, including obtaining the first input data of the user in the Internet of Things platform through at least one of the following methods:

[0015] Obtain the text data input by the user in the Internet of Things platform based on natural language;

[0016] Obtain the voice data input by the user in the Internet of Things platform;

[0017] Obtain the image data input by the user in the Internet of Things platform;

[0018] Obtain the Internet of Things device selected by the user in the Internet of Things platform.

[0019] In one embodiment, the Internet of Things application processing method based on artificial intelligence and virtual chips further includes:

[0020] Obtain the second input data of the user in the Internet of Things platform, where the second input data includes the working parameters of the Internet of Things application task.

[0021] In one embodiment, the working parameters include at least one of the following parameters: working mode, task interval time, task start and end time, data update interval.

[0022] In one embodiment, obtaining the virtual chip corresponding to the first input data according to the first input data includes:

[0023] Identify the target keyword in the first input data, where the target keyword is the keyword of the Internet of Things application task;

[0024] Obtain the virtual chip corresponding to the first input data according to the target keyword.

[0025] In one embodiment, the Internet of Things application processing method based on artificial intelligence and virtual chips further includes:

[0026] Obtain the task data returned by the Internet of Things device;

[0027] Display the task data.

[0028] In one embodiment, the Internet of Things application processing method based on artificial intelligence and virtual chips further includes:

[0029] Statistically analyze the task data according to a preset statistical strategy.

[0030] In one embodiment, loading the running code into the physical chip includes: loading the running code into the physical chip by means of remote control.

[0031] In one embodiment, the Internet of Things application processing method based on artificial intelligence and virtual chips further includes:

[0032] Generate the connection relationship between the physical pins;

[0033] Display the connection relationship to the user.

[0034] An embodiment of this specification further provides an Internet of Things application system based on artificial intelligence and virtual chips, including:

[0035] A data processing unit that obtains first input data of a user in an Internet of Things platform, where the first input data includes data of an Internet of Things application task proposed by the user;

[0036] A virtual chip unit that obtains a virtual chip corresponding to the first input data according to the first input data, where the virtual chip is an abstract description of an Internet of Things device, the Internet of Things device is a device entity that executes the Internet of Things application task, and the abstract description at least includes the following abstract descriptions used by the physical chip in the Internet of Things device to execute the Internet of Things application task: physical pins, workflow;

[0037] An editing unit that obtains the mapping relationship between the virtual pins and the physical pins, where the physical pins are the pins of the physical chip in the Internet of Things device;

[0038] A code automatic generation unit that generates the running code corresponding to the physical chip according to the mapping relationship and the workflow;

[0039] A code loading unit that loads the running code into the physical chip so that the physical chip executes the Internet of Things application task.

[0040] Compared with the prior art, the beneficial effects that can be achieved by at least one of the above technical solutions adopted in the embodiments of this specification at least include: by abstractly describing each Internet of Things device as a virtual chip, a set of general virtual pins are provided for Internet of Things application users to dock the configuration and connection of the physical chips in the Internet of Things device entities, which can facilitate users to submit the requirements of Internet of Things application tasks through the Internet of Things platform at any time and place, improving the generality and applicability of Internet of Things devices; automatically generating control codes for entity chips, eliminating the need for users to write programs, reducing the development and design difficulty of Internet of Things devices, and reducing development costs and development cycles; by inputting the first input data, users can more intuitively describe the problems to be solved. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0042] Figure 1 is a flowchart of an Internet of Things application processing method for artificial intelligence and virtual chips;

[0043] Figure 2 is a schematic diagram of establishing a mapping relationship between a virtual chip and a physical chip;

[0044] Figure 3 is a schematic diagram of a user inputting the text content of an execution task on a web page;

[0045] Figure 4 is a schematic diagram of a user inputting the voice of an execution task on a web page;

[0046] Figure 5 is a schematic diagram of an interface where a user uploads an image or photo containing Internet of Things device information on a web page;

[0047] Figure 6 is a schematic diagram of a user photographing an Internet of Things device and performing a confirmation operation on a web page;

[0048] Figure 7 is a schematic diagram of a user selecting an Internet of Things device and performing a confirmation operation on a web page;

[0049] Figure 8 is a schematic diagram of the structure of an Internet of Things application system based on artificial intelligence and virtual chips;

[0050] Figure 9 is a schematic diagram of the functional modules and connections of an Internet of Things application system based on artificial intelligence and virtual chips. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0051] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0052] The following specific examples illustrate the implementation manners of the present application. Those skilled in the art can easily understand other advantages and effects of the present application from the content disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The present application can also be implemented or applied through other different specific implementation manners. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that, without conflict, the following embodiments and the features in the embodiments can be combined with each other. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the scope of protection of the present application.

[0053] It should be noted that the following description relates to various aspects of embodiments within the scope of the appended claims. It should be apparent that the aspects described herein can be embodied in a wide variety of forms, and any specific structure and / or function described herein is illustrative only. Based on the present application, those skilled in the art should understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number and aspects described herein can be used to implement the device and / or practice the method. Additionally, this device can be implemented and this method can be practiced using other structures and / or functionality in addition to one or more of the aspects described herein.

[0054] It should also be noted that the drawings provided in the following embodiments only illustrate the basic concept of the present application schematically. Only the components related to the present application are shown in the drawings, rather than being drawn according to the number, shape, and size of the components in actual implementation. The type, quantity, and ratio of each component in its actual implementation can be arbitrarily changed, and the component layout type may also be more complex.

[0055] In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, those skilled in the art will understand that the described aspects can be practiced without these specific details.

[0056] The following describes the technical solutions provided by each embodiment of the present application with reference to the accompanying drawings.

[0057] The Internet of Things (IoT) refers to the connection of any object to a network through information sensing devices according to an agreed protocol. The object exchanges and communicates information through an information dissemination medium to achieve functions such as intelligent identification, positioning, tracking, and supervision. The IoT can connect all objects in a specific spatial environment for information perception and collaborative interaction, and has the ability to perform self-learning, processing, decision-making, and control behaviors, thus completing intelligent production and services. Currently, the IoT is driving the transformation of human society from "informationization" to "intelligence", promoting huge changes in information technology and industries, and today's society is entering an era of "everything connected".

[0058] The implementation of IoT technology relies on various IoT device entities. For example, physical chips (such as microcontrollers) are used to control the operation of various IoT devices to complete specific IoT application tasks. However, there are a large number of types and models of physical chips, with different interfaces, various wiring methods, diverse ways of combining these physical chips to form IoT devices, and complex design processes such as hardware development and operation program development for designing IoT devices using these physical chips. Due to these factors, when users use IoT applications, they not only need to be familiar with the characteristics of each chip, be able to combine various physical chips to design IoT devices, but also possess the ability to develop operation programs for the chips.

[0059] Therefore, current IoT application solutions require users to have strong technology development capabilities, making it impossible for users to use the IoT for IoT applications in their own lives or production, which undoubtedly hinders the popularization and promotion of IoT technology.

[0060] Through in-depth investigation, it is found that today, with the increasing popularity of the IoT, ordinary people have the idea of using IoT technology to build application tasks that meet their own needs, such as remotely knowing the status of their own residences and caring for the plants they grow. However, for ordinary people to realize these ideas, they first need to overcome technical thresholds such as designing IoT devices by combining physical chips with different functions and developing operation programs for the chips using programming platforms.

[0061] In view of this, with the vision of "Everyone can do IoT", the present invention aims to improve the versatility of IoT devices in IoT applications and provides an IoT application processing solution based on a virtual chip that can establish a connection relationship with any physical chip. This makes it convenient for users to develop IoT application tasks based on this virtual chip through the IoT platform at any time and place, without the need for developers (i.e., users) to have extremely professional technical development capabilities, such as designing IoT devices using physical chips and developing the operating programs of the chips using programming skills. Instead, users only need to submit a requirement description of the IoT application task through the IoT platform, such as describing the task based on natural language in text, voice, etc., uploading pictures related to the IoT device, uploading sensor image information related to the IoT application task, etc., and then an IoT application solution will be automatically built, such as connecting various sensors or controllers, assembling IoT devices, automatically generating the chip operating program, automatically loading the operating program into the IoT device, etc. This enables IoT application users (i.e., users) to focus on how to better solve practical social application problems and realize their ideas, rather than being trapped in learning programming languages and how to write programs.

[0062] Now in combination with Figure 1 and Figure 2 it is described as follows. The present invention provides an IoT application processing method based on artificial intelligence and virtual chips, including the following steps:

[0063] Step S1, obtain the first input data of the user in the IoT platform, where the first input data includes the data of the IoT application task proposed by the user;

[0064] Humans have various ways of expressing their ideas, such as writing, speaking, taking pictures, selecting favorite items, etc. For example, by writing or speaking, one can express: I hope to test the humidity level of plants and display it on the monitor; open the window to ventilate the greenhouse. Another example: taking a picture of the temperature probe to remind oneself to use the probe to test the soil humidity. One can also use data or forms to record what one needs to do, such as watering one's plants according to the time and watering amount described in the database; ventilating one's room according to the time and ventilation time described in the database. The inventor summarized the ways of expressing human thoughts and submitted application tasks to the IoT platform through the first input data. The first input data includes structured data and unstructured data. The structured data is data logically expressed and implemented by a two-dimensional table structure and strictly follows the data format and length specifications, such as the data in a database. The unstructured data is data that cannot be logically expressed and implemented by a two-dimensional table structure, such as the data contained in the aforementioned text, images, voices, etc.

[0065] The first input data can be obtained in various ways. For example, the Internet of Things platform provides an online form, and users input the tasks they hope the Internet of Things devices to execute in natural language in this form; or, the Internet of Things platform collects the voice input and uploaded by customers, and the content described by the voice is the task that the Internet of Things devices are expected to execute; the Internet of Things platform provides an upload path, and users upload the drawings or photos containing the text of the demand information to the Internet of Things platform; the Internet of Things platform provides an upload path, and users upload the drawings or photos containing the information of the Internet of Things devices they hope to use. The way for the Internet of Things platform to collect the first input data can be any data input and recognition method that can be applied. The recognition methods include artificial intelligence algorithms or machine learning methods such as neural network algorithms, clustering learning algorithms, Matlab simulations, etc.; the data transmission method can be submitting data from the client to the network server through the https protocol; it can also be submitting data from the mobile client to the network server through GPRS, CDMA, WCDMA; it can also be submitting data to the cloud platform using cloud technology; it can also use data transmission methods such as Bluetooth, NFC, etc.; or other data transmission methods based on data transmission protocols.

[0066] Step S2: Obtain a virtual chip corresponding to the first input data according to the first input data. The virtual chip is an abstract description of the Internet of Things device. The Internet of Things device is a device entity that executes the Internet of Things application task. The abstract description at least includes the following abstract descriptions of the entity chip in the Internet of Things device for executing the Internet of Things application task: physical pins, workflow.

[0067] After the first input data containing the task description is submitted to the Internet of Things platform, the Internet of Things platform processes the information therein based on the processing algorithm to obtain a virtual chip corresponding to the first input data. The virtual chip is provided by the Internet of Things platform and is an abstract description of the Internet of Things device. This abstract description at least includes the description of physical pins and the description of workflow.

[0068] In implementation, for the abstract description of physical pins, the physical pins and the peripheral devices connected to the pins can be described. For example, physical pin D8 is connected to a light-emitting diode (LED), physical pin D5 is connected to a fan, physical pin A0 is connected to a temperature sensor, and physical pin I2C is used for serial data communication transmission, etc.

[0069] In implementation, the description of the workflow includes: an LED light blinks 3 times every 1 minute; water the flowers for 30 seconds at 9 am every day.

[0070] In implementation, a workflow is an abstract and general description of the rules between various operation steps, where the operation steps are the steps executed by an entity chip when performing Internet of Things (IoT) application tasks. Therefore, the workflow may include the process content and / or logical relationships of the step actions executed by IoT devices to reflect the overall working process of completing a user application task.

[0071] In some embodiments, the workflow description may further include parameter content such as execution actions and time frequencies. The workflow description is not limited to a fixed number of executions and can perform loop operations or start operations based on trigger conditions.

[0072] It should also be noted that the IoT device is a device entity for implementing application tasks, such as: temperature testing devices, humidity testing devices or sensors, pulse / heart rate testing devices or sensors, devices such as fans, lights, displays, routers, etc. In this way, by abstractly describing the device entity that implements the IoT application task as a virtual chip and presenting the virtual pins of the virtual chip to the user, it is convenient for the user to define the connection relationship between the virtual pins and the physical pins in the device entity according to their own application task requirements.

[0073] Step S3: Obtain the mapping relationship between the virtual pins and physical pins of the virtual chip by the user, where the physical pins are the pins of the entity chip in the IoT device.

[0074] The virtual chip defines a set of general virtual pins that can be docked with the physical pins of various entity chips in the real world to establish a mapping relationship between the virtual pins and the physical pins, so as to define the physical pins of the entity chip and further control the execution actions of the IoT device. For example: virtual pin C1 is mapped to physical pin D8, and physical pin D8 is connected to an LED light; virtual pin C2 is mapped to physical pin D5, and physical pin D5 is connected to a fan, etc.

[0075] In some embodiments, according to the content described by the user, the virtual chips provided to the user may include template-type virtual chips, custom-type virtual chips, etc., which are convenient for the user to build their own application tasks based on the virtual chips.

[0076] In some embodiments, virtual pins of various virtual chips are provided to the user. The number of virtual pins can be increased or decreased according to the user's application task requirements, or can be redefined according to the user's application task requirements to flexibly meet the user's needs for defining pins.

[0077] For example: The user adds a virtual pin CA0, maps the virtual pin CA0 to the corresponding physical pin A0, and the physical pin A0 is connected to a temperature sensor; the user redefines a virtual pin CX, maps the virtual pin CX to the corresponding physical pin I2C, and the physical pin I2C is connected to the pin corresponding to the I2C interface of the chip ESP8266.

[0078] It should also be noted that the virtual pin can include an initial pin mode and an initial value. The user can set the initial pin mode and the initial value, and the user can also use the "reset method" to restore the virtual pin to the initial pin mode and the initial value.

[0079] Step S4, generate the running code corresponding to the entity chip according to the mapping relationship and the workflow.

[0080] In implementation, the mapping relationship includes the connection relationship information between the virtual pin and the physical pin; the workflow includes the sequence and relationship information of the job steps. These information are all the basis for generating the running code. Therefore, the mapping relationship and the workflow can be used as the basic information of the code template, so that the automatic code generator can use technologies such as RulesEngine or Natural Language Processing according to these basic information to automatically generate the running code.

[0081] The rules engine can use forward chaining, backward chaining, or a combination of both to perform the derivation process.

[0082] The natural language processing can include: converting natural language into machine language, and then generating running code through the machine language; converting natural language into vectors that can be operated and calculated (such as: word2vec method, Skip-Grams prediction model), and then generating running code, that is, generating the code data executable by the entity chip.

[0083] Step S5, load the running code into the entity chip so that the entity chip executes the Internet of Things application task.

[0084] In implementation, according to the data transmission specified or defaulted by the user through the Internet of Things platform, such as any network device capable of transmitting data such as a network server, a shared disk, a cloud disk, a cloud platform, and social software, the running code corresponding to the entity chip can be loaded into the entity chip, so that after the entity chip obtains the running code, it can execute the Internet of Things application task according to the relevant instructions of the running code.

[0085] The method of loading the running code can include: using the stc-isp software to load the code into the entity chip through the communication interface of the entity chip; using the arduino software to load the code into the entity chip; or other ways that can load or burn the code into the entity chip.

[0086] In the Internet of Things application processing method based on artificial intelligence and virtual chips in the present invention, an Internet of Things application instance can be automatically built according to the input demand information of the user. That is, by setting up virtual chips in the Internet of Things platform, the first input data is analyzed through technologies such as artificial intelligence and machine learning to obtain the virtual chips corresponding to the first input data, and a set of general virtual pins are provided by the virtual chips to dock with the physical chips. In the virtual chips, the user can input data such as defining workflows and work contents according to needs, enabling the user to get rid of the trouble of writing programs. According to the needs of the customer, the Internet of Things platform automatically generates the running code of the physical chips, reducing the development and design difficulty of Internet of Things devices, reducing the development cost and development cycle, and providing an intelligent input method based on the Internet of Things platform for Internet of Things application users to process Internet of Things application tasks in a "foolproof" manner, realizing the vision of "everyone can make Internet of Things devices".

[0087] In some embodiments, the process of abstractly describing the Internet of Things device as a virtual chip may include:

[0088] Step P1, define virtual pins and Internet of Things devices;

[0089] Step P2, define working hours and workflows;

[0090] Step P3, define pin rules.

[0091] In some embodiments, the step P1 may include:

[0092] Step P1a, the user describes the requirements using natural language;

[0093] Optionally, the user describes the requirements using natural language through an online system, and the requirements refer to the tasks that the user needs the Internet of Things device to perform. For example: I hope to know the humidity level of the plant and display it on the screen.

[0094] Step P1b, extract key test methods and / or output methods;

[0095] Optionally, the extraction operation includes using NLTK Python software.

[0096] Optionally, the output methods include: turning on the LED light, displaying on the screen, etc.

[0097] Step P1c, require the customer to confirm whether the key test methods and / or output methods are correct;

[0098] Step P1d: Determine the Internet of Things (IoT) device according to the key test methods and / or output methods confirmed by the customer; generate virtual pins based on the key test methods, output methods, and IoT device; convert the virtual pins into Python dictionary data, and store the Python dictionary data as a Json data stream.

[0099] Optionally, each IoT device may correspond to a virtual chip.

[0100] Optionally, each virtual chip is described in the Python dictionary data format and the Python dictionary data is stored as a Json data stream.

[0101] In some embodiments, step P2 includes:

[0102] Step P2a: The user selects a working time template and inputs a time interval or a scheduled time;

[0103] Specifically, the time interval includes "every 60 minutes"; the scheduled times include "9:00 every day" or "17:00 every day".

[0104] Step P2b: The IoT platform updates the time definition of the virtual chip.

[0105] In some embodiments, step P3 includes:

[0106] Step P3a: The user adds, reduces, or updates virtual pins, and the IoT platform updates the information of the virtual pins in the Python dictionary.

[0107] Step P3b: The user defines the action rules for each virtual pin and / or IoT device.

[0108] The action rules include the action behaviors, action frequencies, action times, etc. of the IoT device. For example: when activated, the LED turns on / off 3 times; when the humidity level is below 30%, the water pump waters for 5 seconds.

[0109] In some embodiments, the process of converting the virtual chip into a physical chip and generating the running code includes:

[0110] Step T1: Establish a mapping relationship between the virtual chip and the physical chip;

[0111] Step T2: Convert natural language into machine language to generate code;

[0112] Step T3: Generate the wiring guide for each IoT device.

[0113] In some embodiments, step T1 includes:

[0114] Step T1a, obtain chip model information;

[0115] Optionally, the user defines the chip model to be used. For example, use an ESP8266 chip.

[0116] Step T1b, establish the mapping relationship between virtual pins and physical pins, and store the mapping relationship information in the pin information dictionary.

[0117] Optionally, the pin information dictionary includes a Python dictionary. For example, it is described in the Python dictionary that virtual pin C1 maps to physical pin D1.

[0118] Optionally, when using I2C connection or analog connection, special mapping relationships need to be established between virtual pins and physical pins. For example, when using analog connection, virtual pins need to be mapped to analog physical pins; when using I2C connection, SDA pins or SCL pins need to be used. If an ESP8266 NodeMCU chip is used, only pins D1 and D2 of the ESP8266 chip can be used.

[0119] In some embodiments, step T2 includes:

[0120] Step T2a, import the pin information dictionary into the code template;

[0121] Step T2b, delete invalid pins;

[0122] It should be noted that the remaining pins are divided into three categories: ordinary digital pins, I2C pins, and analog pins.

[0123] Step T2c, according to the information input or selected by the user, specify different templates:

[0124] Optionally, if the customer inputs "My First Project", specify "Template 1".

[0125] Optionally, if the customer selects "Standard Template", re-specify other templates, specifically including:

[0126] When the customer selects "No Time Plan", re-specify "Template 2";

[0127] When the customer selects "Every X Minutes", re-specify "Template 2_t_1_1_1";

[0128] When the customer selects "Fixed Time", re-specify "Template 2_t_1_2_1";

[0129] When the customer selects "Trigger when reaching the limit value", re-specify "Template 2_t_2_1_0".

[0130] Step T2d: In the template of step T2c, generate the running code according to the pin information dictionary and the Internet of Things device.

[0131] In some embodiments, the generation of wiring guidance includes generating wiring guidance for three types of pins: ordinary digital pins, I2C pins, and analog pins. Among them, the wiring guidance for ordinary digital pins, I2C pins, and analog pins includes basic SVG images. If the Internet of Things device includes detailed features, the detailed features are dynamically displayed in the SVG image.

[0132] In some embodiments, the Internet of Things application processing method based on artificial intelligence and virtual chips further includes a data collection and data sending process. The data collection and data sending process includes: the physical chip sends data; the web page replies to the virtual information submitted by the user.

[0133] Specifically, the physical chip uses the Http post method to send data. For example: through an online form, use the Json data stream to send sensor readings. It should be noted that the sensor readings can be stored in the database.

[0134] Specifically, the web page uses the HttpResponse method to reply to the virtual information submitted by the user. It should be noted that the web page cannot actively contact the physical chip. Only after the physical chip first executes HttpPost, the web page can reply to the virtual information through the HttpResponse method; the web page can send a Json data stream containing dynamic data, and the dynamic data includes: weather condition data obtained from a meteorological information website; or, the date and time consistent with the user's time zone.

[0135] In some embodiments, the Internet of Things application processing method based on artificial intelligence and virtual chips further includes a remote control process.

[0136] Specifically, an LED lamp and an Internet of Things device are connected to dedicated remote control pins. It should be noted that the virtual pin C1 on the virtual chip is a dedicated virtual remote control pin and is universal, and can establish a mapping relationship with the physical pins of any physical chip to make the physical pins become dedicated physical remote control pins.

[0137] Specifically, when the physical remote control pin is activated, the physical chip can connect to the web page. It should be noted that the user can set the delay time for the physical chip to connect to the web page (the default delay time is 3 seconds). The physical chip sends a request to the web page in the HttpPost manner according to the delay time set by the user to obtain the status information of the two devices (LED lamp and Internet of Things device) under remote control.

[0138] In some embodiments, the first input data of the user on the Internet of Things platform can be obtained through one or more intelligent input methods based on artificial intelligence processing, such as text, voice, image or picture, user definition, etc., to provide the user with intelligent and "idiot-proof" input means, facilitating the user to input the aforementioned first input data through the intelligent input method.

[0139] Optionally, as Figure 3 shown, the user inputs the text of the job that the Internet of Things device is desired to execute on the Internet of Things platform. For example: in a text input box, input the text "Monitor the soil humidity of my home plants" to describe the job that the Internet of Things device is desired to execute, that is, monitor the soil humidity of the home plants.

[0140] In implementation, based on natural language processing, the description related to the Internet of Things application task in the data input by the user can be obtained, such as the aforementioned soil humidity.

[0141] Optionally, as Figure 4 shown, the user records or uploads voice on the Internet of Things platform to describe the job that the Internet of Things device is desired to execute. For example: on a web page, click the recording button to record a voice to describe the job that the Internet of Things device is desired to execute.

[0142] In implementation, based on natural language processing, the description related to the Internet of Things application task in the voice data input by the user can be obtained, such as the aforementioned soil humidity.

[0143] Optionally, as Figure 5 and Figure 6 shown, the user inputs an image or a photo on the Internet of Things platform, and the image or photo may include an image (such as a video, a photo) or a picture with information about the Internet of Things device and / or sensor device, etc. For example: on a web page, upload an image of a temperature sensor; on a web page, click the shooting button to take a picture of a humidity sensor.

[0144] Optionally, as Figure 7 shown, the user can select an Internet of Things device on the Internet of Things platform. For example, on a web page, select the Internet of Things device to be used according to the selectable devices.

[0145] It should be noted that the above methods can be combined and used, and are not limited to only using one of the methods. When combined, there is no front-back relationship or logical order between the various methods.

[0146] It should also be noted that if the acquisition fails, the Internet of Things platform provides a second solution, that is, when one method fails to be implemented, the Internet of Things platform recommends that the customer adopt other methods. For example: when the voice information of the customer cannot be obtained, it is recommended that the customer use text input; or, when the image uploaded by the customer cannot be recognized, it is recommended that the customer use text input.

[0147] It should also be noted that the input text can support multiple languages, such as Chinese, English, and French; the input or uploaded voice can support multiple languages, such as Chinese and English.

[0148] In some embodiments, after the IoT platform obtains the first input data, the user can also submit second input data to enable the IoT platform to obtain the second input data, and the second input data includes the working parameters of the IoT application task.

[0149] The working parameters of the IoT application task include more specific task content, sequence, conditions, or connection relationships of IoT devices, such as: pin rules, working hours, work processes, etc. The user submits the working parameters to the IoT platform through the IoT platform, such as through a text input box, or through a voice input section, or through a comparison wiring diagram of a virtual chip and a physical chip.

[0150] Optionally, the customer first selects a working time template, and then enters an interval time or a scheduled time.

[0151] Optionally, in the comparison diagram of the virtual chip and the physical chip, the user adds, or reduces, or updates pins.

[0152] Optionally, the user selects a specific pin and defines the pin rule through a text input box.

[0153] It should be noted that the acquisition method and data transmission method of the second input data are not limited to the methods involved in the above content, and the methods described in step S1 can also be referred to or adopted, which will not be elaborated here.

[0154] By further setting the second input data, the user can, on the basis of the first input data describing the requirements of the IoT device, set the working conditions of the IoT device and the connection relationship between devices more specifically, in detail, and flexibly, more clearly reflect the user's requirements, and can further reflect the customer's preferences, so as to more accurately implement the customer's intentions.

[0155] In some embodiments, the working parameters include at least one of the following parameters: working mode, task interval time, task start and end time, data update interval. By setting the working mode, the user can adjust or set the working state of the IoT device; by setting the task interval time or the task start and end time, the user can specify the working frequency and working time of the IoT device; by setting the data update interval, the user can regularly provide real-time data updates for the IoT device, so as to better meet the needs of various specific tasks.

[0156] In some embodiments, obtaining a virtual chip corresponding to the first input data according to the first input data includes:

[0157] Step S2a, identifying a target keyword in the first input data, where the target keyword is a keyword of an Internet of Things application task;

[0158] Step S2b, obtaining a virtual chip corresponding to the first input data according to the target keyword.

[0159] Based on artificial intelligence processing, the target keyword in the first input data can be intelligently and accurately identified, the user's needs can be determined more quickly and accurately, and then a virtual chip corresponding to the first input data can be obtained more quickly and accurately. Here, the artificial intelligence processing can correspond to the intelligent input method used by the user. For example, when the user inputs text, language, etc. based on natural language, the artificial intelligence processing can be natural language processing. For example, when the user inputs an image, the artificial intelligence processing can be image recognition processing, such as image recognition processing based on a neural network, etc. This is not limited here.

[0160] Specifically, in step S2a, the process of identifying the target keyword in the first input data includes:

[0161] Step S2a-1, extracting keywords using NLTK Python according to the natural language description input by the user, where the keywords include a test method and / or an output method;

[0162] Step S2a-2, asking the user whether the extracted key test method and / or output method is correct;

[0163] Step S2a-3, determining an Internet of Things device according to the key test method and / or output method confirmed by the customer; generating virtual pins according to the key test method, output method, and Internet of Things device; and storing the virtual pins in a database.

[0164] It should be noted that the database includes a Python dictionary, and the data of the virtual pins includes a Json data stream.

[0165] It should also be noted that for the keyword extraction method in step S2a-1, the TF-IDF extraction method and the TextRank extraction method can also be used.

[0166] In some embodiments, after step S5, the Internet of Things application processing method based on artificial intelligence and virtual chips further includes:

[0167] Step S6, obtaining task data returned by the Internet of Things device;

[0168] Optionally, the IoT platform further includes an online management system, which obtains the task data returned by the IoT devices. The obtained task data may be, for example: The LED light has completed flashing 3 times; The humidity sensor reading is 70%.

[0169] Step S7: Display the task data.

[0170] The display method can adopt various common display media or methods. For example: Connect to a network server through terminals such as mobile phones, tablets, and personal computers to display the task data; Or log in to the cloud platform through the aforementioned various terminals to display the task data; Or through the network server, use a one-to-one or one-to-many data transmission method to display the task data.

[0171] In some embodiments, after step S5, the IoT application processing method based on artificial intelligence and virtual chips further includes: According to a preset statistical strategy, statistically analyze the task data.

[0172] Optionally, the IoT platform generates a watering statistics result of watering time, soil humidity, and air humidity based on the soil humidity data, the air humidity data in the weather forecast, and the data of watering time. Specifically, the watering statistics result includes: A relationship graph of watering time, soil humidity, and air humidity; A text description of the range intervals of watering time, soil humidity, and air humidity.

[0173] Further, when receiving a watering instruction proposed by a user, the IoT platform receives the soil humidity data of the humidity sensor, receives the air humidity data in the current day's weather forecast, displays the soil humidity data and the air humidity data to the user, and provides a suggestion on whether to water, so as to help the user judge whether to perform a watering operation.

[0174] Statistically analyzing the task data can help users make decisions.

[0175] In some embodiments, step S5: Loading the operating code into the physical chip includes: Loading the operating code into the physical chip through a remote control method.

[0176] Loading the operating code into the physical chip using the remote control method includes: When the remote control method is activated, the physical chip directly downloads the operating code from the network, or directly burns the operating code into the physical chip through a web page.

[0177] Optionally, connect the IoT device to a dedicated remote control pin; When activating the remote control pin, the physical chip connects to the web page; Through the web page, load the operating code into the physical chip.

[0178] Specifically, for the general virtual pin C1 of the virtual chip, the virtual pin C1 is a dedicated virtual remote control pin. By establishing the mapping relationship between the virtual pin C1 and the physical pin, any physical pin of any entity chip can be matched and connected, so that the physical pin becomes a dedicated physical remote control pin. By activating the physical remote control pin, the entity chip can connect to the web page; through the web page, the running code can be loaded into the entity chip.

[0179] By remotely loading the running code into the entity chip, during the process of building the Internet of Things device, the operations of downloading the running code and loading the running code through the port of the entity chip are omitted, simplifying the steps of building the Internet of Things device and improving the convenience of the building process. Moreover, by using an entity chip that can be overwritten and rewritten again, and remotely loading new running code into the entity chip, the purpose of changing the control code at any time can be achieved, thereby changing the control actions for the Internet of Things device, providing changeable operations for controlling the Internet of Things device, and improving flexibility.

[0180] It should be noted that the user can set the delay time for the entity chip to connect to the web page (the default delay time is 3 seconds) to overcome the network delay problem. When the remote control pin is activated, the physical chip sends a request to the web page according to the delay time set by the user to obtain the status information of the device under remote control.

[0181] Optionally, the physical chip sends a request to the web page, including using the HttpPost method.

[0182] In some embodiments, while generating the running code corresponding to the entity chip according to the mapping relationship and the workflow, the Internet of Things application processing method based on artificial intelligence and virtual chips further includes:

[0183] Generating the connection relationship between the physical pins;

[0184] Showing the connection relationship to the user.

[0185] Optionally, generating the connection relationship between the physical pins includes: generating a correspondence table between the physical pins; generating a wiring diagram or wiring guide for the Internet of Things device, and the wiring diagram or wiring guide includes the connection relationship between the physical pins.

[0186] Optionally, showing the connection relationship to the user includes: sending a description file of the connection relationship by email; storing the description file of the connection relationship in an online folder for the user to download, and the folder can include the running program of the entity chip; storing the description file of the connection relationship in the Internet of Things cloud platform for the customer to download.

[0187] In some embodiments, the connection relationship is the connection relationship of an SVG format picture.

[0188] Optionally, an SVG picture is used to display the connection relationship between physical pins.

[0189] Optionally, an SVG dynamic picture is used to display the detailed features of the connection relationship between physical pins.

[0190] Based on the same inventive concept, the embodiments of this specification also provide an Internet of Things application system based on artificial intelligence and virtual chips. The device can be implemented by software, or by hardware or a combination of software and hardware. Taking software implementation as an example, as a logically meaningful system, it is formed by a processor reading the corresponding computer program instructions into the memory and running them.

[0191] As Figure 8 shown, the Internet of Things application system 100 based on artificial intelligence and virtual chips includes:

[0192] A data processing unit 101 that obtains first input data of a user in the Internet of Things platform, where the first input data includes data of an Internet of Things application task proposed by the user;

[0193] A virtual chip unit 102 that obtains a virtual chip corresponding to the first input data according to the first input data, where the virtual chip is an abstract description of an Internet of Things device, the Internet of Things device is a device entity that executes the Internet of Things application task, and the abstract description at least includes the following abstract descriptions of the physical pins and workflows used by the entity chip in the Internet of Things device to execute the Internet of Things application task;

[0194] An editing unit 103 that obtains the mapping relationship between the virtual pins and the physical pins, where the physical pins are the pins of the entity chip in the Internet of Things device;

[0195] A code automatic generation unit 104 that generates the running code corresponding to the entity chip according to the mapping relationship and the workflow;

[0196] A code loading unit 105 that loads the running code into the entity chip so that the entity chip executes the Internet of Things application task.

[0197] The technical effects that can be brought by the device provided in the above embodiments can refer to the technical effects provided in the embodiments of the foregoing pile foundation data extraction method, which will not be elaborated here.

[0198] In some embodiments, as Figure 9In the illustrated Internet of Things (IoT) application scenario, the IoT application system based on artificial intelligence and virtual chips can provide interactions to users with the IoT cloud platform as the core platform. At this time, the IoT cloud platform can also perform at least one of the following operations:

[0199] Provide basic operating facilities and operating environment;

[0200] Receive, send, or store data;

[0201] Run a program, where the program includes implementing at least one of the following functions: obtaining data, extracting keywords, generating code;

[0202] Provide security measures.

[0203] In some embodiments, the data processing unit 101 can be software or a human-machine interaction interface running on a personal terminal, facilitating users to submit IoT application tasks anytime and anywhere. Here, the personal terminal can be a personal computer, tablet, mobile terminal, etc., which is not limited here.

[0204] In some embodiments, the IoT application system based on artificial intelligence and virtual chips can perform data connection through wireless communication methods to transmit data. The wireless communication methods include Wifi, Bluetooth, Zigbee, NFC, etc.

[0205] Each embodiment in this specification is described in a progressive manner. The same or similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the method embodiments described later, since they correspond to the system, the description is relatively simple, and the relevant parts can be referred to the description of the system embodiments.

[0206] As described above, the above are only the specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by those skilled in the art within the technical scope disclosed by the present application should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An Internet of Things application processing method based on artificial intelligence and virtual chips, characterized in that, Including: Obtain the first input data of the user in the Internet of Things platform, where the first input data includes data of the Internet of Things application task proposed by the user; Obtain a virtual chip corresponding to the first input data according to the first input data, where the virtual chip is an abstract description of an Internet of Things device, the Internet of Things device is a device entity that executes the Internet of Things application task, and the abstract description at least includes the following abstract descriptions used by the physical chip in the Internet of Things device to execute the Internet of Things application task: physical pins, workflow; Obtain the mapping relationship set by the user between the virtual pins and the physical pins of the virtual chip, where the physical pins are the pins of the physical chip in the Internet of Things device; Generate the running code corresponding to the physical chip according to the mapping relationship and the workflow; Load the running code into the physical chip so that the physical chip executes the Internet of Things application task.

2. The Internet of Things application processing method based on artificial intelligence and virtual chips according to claim 1, characterized in that, Obtain the first input data of the user in the Internet of Things platform, including obtaining the first input data of the user in the Internet of Things platform through at least one of the following methods: Obtain the text data input by the user in the Internet of Things platform based on natural language; Obtain the voice data input by the user in the Internet of Things platform; Obtain the image data input by the user in the Internet of Things platform; Obtain the Internet of Things device selected by the user in the Internet of Things platform.

3. The Internet of Things application processing method based on artificial intelligence and virtual chips according to claim 1, wherein, The method further includes: Obtain the second input data of the user in the Internet of Things platform, where the second input data includes the working parameters of the Internet of Things application task.

4. The Internet of Things application processing method based on artificial intelligence and virtual chips according to claim 3, wherein, The working parameters include at least one of the following parameters: working mode, task interval time, task start and end time, data update interval.

5. The Internet of Things application processing method based on artificial intelligence and virtual chips according to claim 1, wherein, Obtain a virtual chip corresponding to the first input data according to the first input data, including: Identify the target keyword in the first input data, where the target keyword is the keyword of the Internet of Things application task; Obtain a virtual chip corresponding to the first input data according to the target keyword.

6. The Internet of Things application processing method based on artificial intelligence and virtual chips according to claim 1, characterized in that The method further includes: Obtain the task data returned by the Internet of Things device; Display the task data.

7. The Internet of Things application processing method based on artificial intelligence and virtual chips according to claim 6, characterized in that, The method further includes: statistically analyze the task data according to a preset statistical strategy.

8. The Internet of Things application processing method based on artificial intelligence and virtual chips according to claim 1, wherein Load the running code into the physical chip, including: loading the running code into the physical chip through a remote control method.

9. The Internet of Things application processing method based on artificial intelligence and virtual chips according to claim 1, characterized in that The method further includes: Generate the connection relationship between the physical pins; Display the connection relationship to the user.

10. An Internet of Things application processing system based on artificial intelligence and virtual chips, characterized in that, Including: A data processing unit that obtains the first input data of the user in the Internet of Things platform, where the first input data includes data of the Internet of Things application task proposed by the user; A virtual chip unit that obtains a virtual chip corresponding to the first input data according to the first input data, where the virtual chip is an abstract description of an Internet of Things device, the Internet of Things device is a device entity that executes the Internet of Things application task, and the abstract description at least includes the following abstract descriptions used by the physical chip in the Internet of Things device to execute the Internet of Things application task: physical pins, workflow; An editing unit that obtains the mapping relationship between the virtual pins and physical pins of the virtual chip, where the physical pins are the pins of the physical chip in the Internet of Things device; A code automatic generation unit that generates the running code corresponding to the physical chip according to the mapping relationship and the workflow; A code loading unit that loads the running code into the physical chip so that the physical chip executes the Internet of Things application task.