Building block type edge computing editor method for low-performance chip
Efficient edge computing is implemented on low-performance chips through the Blockly programming tool platform. Scripts and code block mappings are generated through the visual building block editor, which solves the problems of edge computing efficiency and scalability on low-performance chips and realizes resource-constrained environments. Smooth operation and improved user experience.
Patent Information
- Application Number
- CN202410735095.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-08-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology is difficult to implement efficient edge computing on low-performance chips and lacks scalability to cope with new technologies and hardware changes.
The Blockly programming tool platform is used to generate scripts through the visual building block editor to implement customized edge computing programs. It supports the mapping and nesting combination of code blocks, generates machine-understandable code, and automatically loads relevant modules when the chip starts.
It runs smoothly in a low-power, limited-storage environment, supports various mainstream browsers, has no server dependency, is scalable, adapts to new technologies and hardware changes, improves user experience and saves energy.
Smart Images

Figure CN118519625A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical fields of edge computing, building block programming and embedded systems, and in particular to a building block edge computing editor method for low-performance chips. Background Art
[0002] In the era of the Internet of Things, edge computing is a computing model that moves computing resources closer to the data source to reduce latency and reduce the load on cloud servers. As an innovative development tool, one of the advantages of the building block edge computing editor is intuitiveness and visual programming. By stitching together various functional modules, users can build complex edge computing applications graphically without in-depth coding. This makes the development process more intuitive and suitable for users without professional programming experience, improving development efficiency.
[0003] There are some problems with the current related technologies:
[0004] 1. Adaptability to low-performance chips. The editor needs to be able to run in a resource-constrained environment, so the technology behind it usually includes efficient optimization of algorithms and codes to ensure smooth operation on low-power, limited-memory chips;
[0005] 2. Scalability is to ensure the editor's ability to adapt to new technologies and hardware in the future. Support the introduction of new chip architectures, algorithms, and module types to keep the editor updated and respond to changing edge computing needs.
[0006] Therefore, those skilled in the art provide a method for a low-performance chip building block edge computing editor to solve the problems raised in the above background technology. Summary of the invention
[0007] In order to solve the problems raised in the above background technology, the present application provides a method for a low-performance chip building block edge computing editor.
[0008] The present application provides a low-performance chip building block edge computing editor method using the following technical solutions:
[0009] A building block edge computing editor method for low-performance chips, the method generates a script through a visual building block editor, and a low-performance chip device starts loading the generated script to implement a custom edge computing program, so that a defined physical model automatically generates a physical model calling module according to its function.
[0010] Preferably, the programming tool platform is based on Blockly, so as to generate the required script information. The principle of Blockly generating code is based on the code generator, the mapping of code blocks, and the nesting and combination of code blocks.
[0011] Preferably, the principle of Blockly code generation is based on the code generator, which is a key component in Blockly. It is responsible for converting the visual code block into actual code. This process can be simply divided into two steps: parsing and generating. In the parsing stage, Blockly will analyze the code block dragged by the user, identify the logic and structure, and convert it into an abstract syntax tree. In the generation stage, the code generator will generate the actual code based on the abstract syntax tree. This process ensures that even visual programming can eventually be converted into machine-understandable code.
[0012] Preferably, the principle of Blockly generating code also involves the mapping of code blocks. The mapping of code blocks means that each visual code block corresponds to a specific function or command, and these functions or commands are mapped into real codes. A "loop" code block can be mapped into a for loop statement, and a "conditional judgment" code block can be mapped into an if statement. This mapping relationship enables Blockly to accurately convert the code blocks dragged by the user into real codes, realizing the connection between visual programming and actual programming.
[0013] Preferably, the principle of Blockly code generation is also related to the nesting and combination of code blocks. In Blockly, different code blocks can be dragged and combined to build complex program logic. A "loop" code block can be nested inside another "conditional judgment" code block to achieve more complex programming functions. In the process of code generation, the code generator needs to take this nesting and combination relationship into account to ensure that the final generated code can accurately express the program logic expected by the user.
[0014] Preferably, the object model is composed of services, attributes, methods, and events, and the relevant information is defined according to the nature of the product.
[0015] Preferably, the object model editing interface includes function definition, configuration interface, module, library reference, and enumeration type. The function definition includes function, type, script, and variable. The configuration interface includes panel, property, selection, and time. The module includes main control module, port, and module. The library reference includes air105 and pao. The enumeration type includes system and GPIO.
[0016] Preferably, the visual editing of functions is achieved by dragging related blocks, such as setting variables, conditional judgment statements, etc.; further, by dragging and dropping the "statement" block, and then dragging and dropping the script block to embed it in the "statement" block, a custom edge computing program can be implemented.
[0017] Preferably, the defined physical model will automatically generate a physical model calling module according to its function, and automatically load and call the functions of the relevant modules when the chip is started.
[0018] Preferably, the edge computing program editing interface includes functions, enumerations, references, and products, and the functions include structures, functions, conditions, loops, scripts, variables, constants, logic, mathematics, text, styles, and lists.
[0019] In summary, this application includes the following beneficial technical effects:
[0020] 1. This building block edge computing editor method for low-performance chips has strong adaptability to low-performance chips. The editor has the ability to run in a resource-constrained environment. The technology behind it can achieve efficient optimization of algorithms and codes, ensuring smooth operation on low-power, limited-storage chips, supporting various mainstream browsers, and has no server-side dependence.
[0021] 2. This building block edge computing editor method for low-performance chips has scalability, which can ensure the editor's ability to adapt to new technologies and hardware in the future, support the introduction of new chip architectures, algorithms, and module types, keep the editor updated and respond to changing edge computing needs, improve user experience, and achieve energy savings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is a schematic diagram of the principle structure of a low-performance chip building block edge computing editor method in an embodiment of the present application;
[0023] Figure 2 It is a schematic diagram of the Blockly principle structure of a low-performance chip building block edge computing editor method in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following is combined with Figure 1-2 This application is described in further detail.
[0025] The present application embodiment discloses a method for low-performance chip building block edge computing editor. Figure 1-2 ,
[0026] Embodiment 1:
[0027] A building block edge computing editor method for low-performance chips, the method generates a script through a visual building block editor, and a low-performance chip device starts loading the generated script to implement a custom edge computing program, so that a defined physical model automatically generates a physical model calling module according to its function.
[0028] The editor has strong adaptability to low-performance chips and is capable of running in resource-constrained environments. The technology behind it can achieve efficient optimization of algorithms and codes, ensuring smooth operation on low-power, limited-storage chips, supporting various mainstream browsers, and has no server-side dependencies.
[0029] Comparative Example 1:
[0030] A visual programming tool system based on artificial intelligence and the Internet of Things, characterized in that the system includes an edge computing unit, a data acquisition execution module, and a cloud service module, wherein the edge computing unit is used to perform the inference process of artificial intelligence and the reasoning execution process of the Internet of Things logic program. The data acquisition execution module is used to collect the data set required for artificial intelligence model training and real-time environmental data and feed it back to the edge computing unit, and control the actuators including but not limited to stepper motors, DC motors, relays, and LED lights to make user-defined response actions according to the decision results of the edge computing unit. The cloud service module is used to enable users to build, train, and verify artificial intelligence models, and use the artificial intelligence models trained by users to build user-defined application scenario logic through block-based visual programming based on node flow.
[0031] Comparative Example 2:
[0032] A visual programming tool system based on artificial intelligence and the Internet of Things, comprising a logic unit block layout module, a unit module, a logic review module and a running code generation module, characterized in that the logic unit block layout module is used to perform the following steps: A-1): Run Visio software, create a new template, modify the template name to a logic unit block layout, the logic unit block layout is arranged in a block-shaped manner with multiple groups of independent component block diagrams, each group of independent block diagrams is connected, and each group of independent block diagrams is provided with nodes to form a flow chart; A-2): Insert a unit module into each independent component block diagram; the unit module includes data acquisition, data preparation, The unit module is used to perform the following steps: B-1): Data collection includes the collection of sound, light, heat, electricity, mechanics, chemistry, biology, and location information, as well as the analysis of human motion trajectory, recording data information, and transmitting and obtaining data information; B-2): Start preliminary processing of the data, first compress the stored data information, and then centrally store the recorded data; B-3): Analyze the recorded information, analyze the invalid data information, and clear the invalid data information, then mark each valid data information, enter the logic code, and The data information is simulated for training, the invalid data information is analyzed again, the invalid data information is deleted, and finally the trained data information is compressed and stored in a centralized manner; B-4): questions are raised for the nodes between each independent block diagram, and the answer data is divided into two parts through judgment, and questions are raised for the answer data again, and the optimal algorithm is planned. After the algorithm is tuned, the connection position and connection relationship of each node are adjusted according to the optimal algorithm to form a tree connection diagram, and the application is started; the unit module also includes a module for performing the following steps: each of the nodes is connected according to the data information to form a node connection; the logic review The core module is used to perform the following steps: C-1): From the unit module, read the node connection lines between all block diagrams, convert the block diagrams into directed graph vertices, convert the node connection lines into directed graph arcs, and generate an AOV network: C-2): Based on the adjacent relationship of the AOV network, generate an activity diagram between each of the block diagrams and perform a simulation operation; C-3): Read the validity of each group of simulation operation states: C-4): Repeat steps C-2 and C-3, determine the validity of each simulation operation state, delete invalid simulation operation activities, trace back to steps B-1, B-2, B-3 and B-4, and perform step C-2 again.
[0033] After comparative analysis, this application has strong adaptability to low-performance chips, and the editor has the ability to run in a resource-constrained environment. The technology behind it can achieve efficient optimization of algorithms and codes, ensuring smooth operation on low-power, limited storage chips, supporting various mainstream browsers, and has no server-side dependence. Moreover, the editor is scalable, which can ensure the editor's ability to adapt to new technologies and hardware in the future, support the introduction of new chip architectures, algorithms and module types, so that the editor can keep updated and respond to changing edge computing needs, improve user experience, and achieve energy savings.
[0034] Embodiment 2:
[0035] The programming tool platform is based on Blockly, which generates the required script information. The principle of Blockly generating code is based on the code generator, the mapping of code blocks, and the nesting and combination of code blocks.
[0036] The principle of Blockly code generation is based on the code generator, which is a key component in Blockly. It is responsible for converting visual code blocks into actual code. This process can be simply divided into two steps: parsing and generation. In the parsing stage, Blockly will analyze the code blocks dragged by the user, identify the logic and structure, and convert them into an abstract syntax tree. In the generation stage, the code generator will generate real code based on the abstract syntax tree. This process ensures that even visual programming can eventually be converted into machine-understandable code.
[0037] The principle of Blockly generating code also involves the mapping of code blocks. The mapping of code blocks means that each visual code block corresponds to a specific function or command, and these functions or commands are mapped into real codes. A "loop" code block can be mapped into a for loop statement, and a "conditional judgment" code block can be mapped into an if statement. This mapping relationship enables Blockly to accurately convert the code blocks dragged by users into real codes, realizing the connection between visual programming and actual programming.
[0038] The principle of Blockly code generation is also related to the nesting and combination of code blocks. In Blockly, different code blocks can be dragged and combined to build complex program logic. A "loop" code block can be nested inside another "conditional judgment" code block to achieve more complex programming functions. In the process of code generation, the code generator needs to take this nesting and combination relationship into account to ensure that the final generated code can accurately express the program logic expected by the user.
[0039] Embodiment three:
[0040] The object model is composed of services, attributes, methods, and events, and the relevant information is defined according to the nature of the product.
[0041] The object model editing interface includes function definition, configuration interface, module, library reference, and enumeration type. The function definition includes function, type, script, and variable. The configuration interface includes panel, property, selection, and time. The module includes main control module, port, and module. The library reference includes air105 and pao. The enumeration type includes system and GPIO.
[0042] By dragging related blocks, you can realize visual editing of functions, such as setting variables, conditional judgment statements, etc. You can further drag and drop the "statement" block, and then drag and drop the script block to embed it into the "statement" block to realize a custom edge computing program.
[0043] The defined physical model will automatically generate a physical model calling module according to its function, and automatically load and call the functions of the relevant modules when the chip is started.
[0044] The edge computing program editing interface includes functions, enumerations, references, and products, and the functions include structures, functions, conditions, loops, scripts, variables, constants, logic, mathematics, text, styles, and lists.
[0045] The above are all preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Therefore, any equivalent changes made according to the structure, shape, and principle of the present application should be included in the protection scope of the present application.
Claims
1. A method for low-performance chip building block edge computing editor, characterized by: The method generates a script through a visual building block editor, and the low-performance chip device starts loading the generated script to implement a custom edge computing program, so that the defined physical model automatically generates a physical model calling module according to its function.
2. A method for low-performance chip building block edge computing editor according to claim 1, characterized in that: The programming tool platform is based on Blockly, which generates the required script information. The principle of Blockly generating code is based on the code generator, the mapping of code blocks, and the nesting and combination of code blocks.
3. A method for low-performance chip building block edge computing editor according to claim 2, characterized in that: The principle of Blockly code generation is based on the code generator, which is a key component in Blockly. It is responsible for converting visual code blocks into actual code. This process can be simply divided into two steps: parsing and generation. In the parsing stage, Blockly will analyze the code blocks dragged by the user, identify the logic and structure, and convert them into an abstract syntax tree. In the generation stage, the code generator will generate real code based on the abstract syntax tree. This process ensures that even visual programming can eventually be converted into machine-understandable code.
4. A method for low-performance chip building block edge computing editor according to claim 3, characterized in that: The principle of Blockly generating code also involves the mapping of code blocks. The mapping of code blocks means that each visual code block corresponds to a specific function or command, and these functions or commands are mapped into real codes. A "loop" code block can be mapped into a for loop statement, and a "conditional judgment" code block can be mapped into an if statement. This mapping relationship enables Blockly to accurately convert the code blocks dragged by users into real codes, realizing the connection between visual programming and actual programming.
5. A method for low-performance chip building block edge computing editor according to claim 4, characterized in that: The principle of Blockly code generation is also related to the nesting and combination of code blocks. In Blockly, different code blocks can be dragged and combined to build complex program logic. A "loop" code block can be nested inside another "conditional judgment" code block to achieve more complex programming functions. In the process of code generation, the code generator needs to take this nesting and combination relationship into account to ensure that the final generated code can accurately express the program logic expected by the user.
6. A method for low-performance chip building block edge computing editor according to claim 5, characterized in that: The object model is composed of services, attributes, methods, and events, and the relevant information is defined according to the nature of the product.
7. A method for low-performance chip building block edge computing editor according to claim 6, characterized in that: The object model editing interface includes function definition, configuration interface, module, library reference, and enumeration type. The function definition includes function, type, script, and variable. The configuration interface includes panel, property, selection, and time. The module includes main control module, port, and module. The library reference includes air105 and pao. The enumeration type includes system and GPIO.
8. A method for low-performance chip building block edge computing editor according to claim 7, characterized in that: Visually edit functions by dragging related blocks. For example: setting variables, conditional judgment statements, etc.; further, by dragging and dropping the "statement" building block, and then dragging and dropping the script building block to embed it into the "statement" building block, you can implement a custom edge computing program.
9. A method for low-performance chip building block edge computing editor according to claim 8, characterized in that: The defined physical model will automatically generate a physical model calling module according to its function, and automatically load and call the functions of the relevant modules when the chip is started.
10. A method for low-performance chip building block edge computing editor according to claim 9, characterized in that: The edge computing program editing interface includes functions, enumerations, references, and products, and the functions include structures, functions, conditions, loops, scripts, variables, constants, logic, mathematics, text, styles, and lists.
Citation Information
Patent Citations
Graphical Python programming interaction method and system and electronic equipment
CN109634592A
Visual programming tool system based on artificial intelligence and Internet-of-things
CN110377278A
Programming building block conversion method and device, processing equipment and storage medium
CN112698825A
Method and terminal for realizing graphical programming
CN114168123A
Method, device, system and equipment for detecting access equipment and storage medium
CN117768399A
