A method for identifying a toy functional module
By setting functional units for toy functional modules and analyzing these attributes in the main control module, the problem that the toy main control module in the prior art cannot recognize the functional module, the identification and control of the functional modules are realized, and compatibility and design simplification are improved.
Patent Information
- Application Number
- CN202010739644.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-07-28
- Publication Date
- 2025-02-28
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing toy main control module cannot identify the functional modules on different products, especially when the product is upgraded, the main control modules of the old products cannot be compatible and identify the newly designed functional modules.
By setting functional units for functional modules and setting a parsing method for functional units in the main control module, the main control module analyzes the properties of the functional units based on the analysis method, thereby identifying and controlling the functional module.
It realizes the identification and control of functional modules by the toy main control module, and improves compatibility. Even if the functional module has been updated, the old version of the main control module can recognize the functional module and provide design standards for the new functional modules to simplify the design of functional modules.
Smart Images

Figure CN111860675B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of toys, and in particular to a method for identifying a toy functional module. Background Art
[0002] In the field of toys, especially educational toys, the serialization and modularization of toys is a major development trend. On the one hand, modularization makes the production and design of toys serialized, simplifying the production and design process; on the other hand, it makes the combination and assembly of toys more diversified, which can improve the hands-on ability of people of the right age.
[0003] Standardized modules (especially functional modules) are widely used in a series of products, which means that the functional modules can be more widely used in the entire series of products. In this process, the main control module of the toy identifies these functional modules, identifies the properties and identification marks of the functional modules, and controls or operates the functional modules through the identification marks. However, when the functional modules are combined on different products, the main control modules of different products may not be able to recognize the functional modules. Especially when the products are constantly upgraded, the main control modules of the old products cannot be compatible with and recognize the newly designed functional modules. Summary of the invention
[0004] In view of the above problems in the prior art, the present invention provides a method for identifying a functional module of a toy, so that a main control module of the toy can identify the functional module.
[0005] The present invention discloses a method for identifying a functional module of a toy. The toy comprises a main control module and a functional module. The method comprises: setting a functional unit for the functional module based on the functional attributes of the functional module; setting a parsing method for the functional unit in the main control module; the main control module parsing the attributes of the functional unit based on the parsing method; and identifying and controlling the functional module based on the attributes of the functional unit.
[0006] Preferably, the attributes of the functional unit include functional attributes, identification attributes and operational attributes; the function of the functional unit is identified based on the functional attributes; the identification mark of the functional unit is identified based on the identification attributes; and the operation of the functional unit is identified based on the operational attributes.
[0007] Preferably, the attributes of the functional unit further include category attributes and grouping attributes, and the type of the functional unit is identified according to the category attributes; and the grouping of functional modules is identified according to the grouping attributes.
[0008] Preferably, the functional unit includes a switch type object, and the functional attributes of the switch type object include an on state attribute and an off state attribute; the operations of the switch type object include: query operation, report operation and switch state change operation; the elements of the operation include: ID, name and parameter value.
[0009] Preferably, the functional unit includes a data type object, and the functional attributes of the data type object include a maximum value, a minimum value and a step value; the operations of the data type object include: a query operation, a report operation, a current value increment operation, a current value decrement operation, and a current value assignment operation.
[0010] Preferably, the functional unit includes an enumeration type object, and the functional attributes of the enumeration type object include: an enumeration value range; the operations of the enumeration type object include: a query operation, a report operation and an operation of setting a current enumeration value.
[0011] Preferably, the functional unit includes a time type object, and the functional attributes of the time type object include: time data type and time range; the operations of the time type object include: query operation, report operation and time setting operation.
[0012] Preferably, the functional unit includes an event-type object, and the operations of the event-type object include: a query operation, a report operation, an event setting operation, and an event triggering operation.
[0013] Preferably, the functional unit includes a data file type object: the functional attributes of the data file type object include the file type; the operations of the data file type object include: sending transmission request operation, responding to transmission request operation, sending data operation, receiving data verification operation and data transmission completion operation.
[0014] Preferably, the functional unit comprises a combined functional unit, and the combined functional unit comprises at least two functions.
[0015] Compared with the prior art, the present invention has the following beneficial effects:
[0016] Functional units are set for functional modules according to functional attributes, so that the main control module of the toy can parse, identify and control each functional unit, thereby identifying and controlling the functional modules, thereby improving compatibility. Even if the functional modules are updated, the main control module of the old version can also identify the functional modules using the identification method of the present invention; providing design standards for new functional modules, which is convenient for simplifying the design of functional modules. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a flow chart of the identification method of the toy function module of the present invention. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0020] A method for identifying a toy functional module, such as Figure 1 As shown, the toy includes a main control module and a functional module, and the method includes:
[0021] Step 101: Based on the functional attributes of the functional module, a functional unit is set for the functional module. The functional unit is an abstraction and generalization of the functional module. In the present invention, the functional unit is divided into a basic functional unit and a combined functional unit. A functional module can be provided with one or more functional units.
[0022] Step 102: Setting a parsing method of the functional unit in the main control module so that the main control module can parse the functional unit.
[0023] Step 103: The main control module analyzes the attributes of the functional unit based on the analysis method. The attributes of the functional unit may include functional attributes, identification attributes and operation attributes.
[0024] Step 104: Identify and control the functional module based on the attributes of the functional unit. Identify the function of the functional unit based on the functional attributes; identify the identification mark of the functional unit based on the identification attributes; and identify the operation of the functional unit based on the operation attributes. The main control module identifies the function, identification mark and operation of the functional module, and generates a control instruction according to the operation, sends the control instruction to the functional unit through the identification mark, and the functional unit executes the control instruction of the main control module, so that the main body of the functional module generates a corresponding action.
[0025] Functional units are set for functional modules according to functional attributes, so that the main control module of the toy can parse, identify and control each functional unit, thereby identifying and controlling the functional modules and improving the compatibility of the functional modules. Even if the functional modules are updated, the main control module of the old version can also identify the functional modules using the identification method of the present invention; providing design standards for new functional modules is convenient for simplifying the design of functional modules.
[0026] A functional module can be composed of one or more functional units. When designing a functional module, the functional module is divided into functional units. The main control module identifies and controls the functional units through the properties of the functional units to make the functional units act or change. For a functional module containing multiple functional units, the composite action of the multiple functional units makes the functional module act, and the main control module does not need to consider the function and shape of the functional module, which is conducive to simplifying the design of the physical module.
[0027] The functional attributes can be described by functional parameters and their values or value ranges. The operation of the functional module can include setting operations and display operations. Setting operations refer to operations that can be actually operated, such as setting parameters or changing states; display operations refer to operations that display the state and information of the functional unit, such as query operations and report operations.
[0028] The identification identifier may be preset in the functional unit, or may be allocated by the main control module, and the identification identifier may include an address (ID). The main control module sends a control instruction to the functional module through the identification identifier. In a specific embodiment, the control instruction sent by the main control module includes an address (ID), and the functional module matches the control instruction according to the allocated ID and executes the control instruction.
[0029] The operational attributes of the functional unit can be described in the form of an operation set, and the main control module can generate control instructions based on the operation set. The operation set is a collection of functional unit operations, and the elements of the operation may include: instruction ID, name, description, type and parameter value. In a specific embodiment, the main control module sends a control instruction to the functional unit through the instruction ID. After the functional unit recognizes the ID, it generates an action by executing the operation corresponding to the ID; the name and description are used to explain the operation.
[0030] The functional unit may also include a category attribute and a grouping attribute. The category attribute is used to identify the type of the functional unit; the grouping attribute is used to identify the grouping of the functional unit. Functional units with similar functions or groups can be grouped, which is conducive to group management of the functional units. For example, when the toy has two left and right mechanical arms, the left mechanical arm is set as the first functional module and the right mechanical arm is set as the second functional module. The functional units of the left mechanical arm are set as one group, and the functional units of the right mechanical arm are set as another group, which is convenient for control and identification.
[0031] The attributes of the functional unit may be sent to the main control module in the form of an external file; or the attributes may be set in a storage medium inside the functional module, and the main control module obtains the attributes of the functional unit from the storage medium.
[0032] Example 1
[0033] Take the robot arm as an example to illustrate. The robot arm changes the angle of the robot arm through the steering gear drive. Therefore, the robot arm is taken as a functional module and each steering gear is taken as a data type object. When the control end of the functional module is connected to the main control module, the main control module may not be able to identify the properties of the steering gear and provide the properties of the steering gear to the main control module. The main control module identifies the steering gear as a data type object according to the property, and identifies the function, identification mark and operation set of the data type object. The function may include the maximum rotation angle, the minimum rotation angle and the step angle. The maximum rotation angle and the minimum rotation angle can be set according to the actual movement angle of the mechanism arm; the operation instruction of the steering gear is identified according to the operation attribute, and the control instruction is generated according to the operation instruction, such as rotating 10 degrees; the main control module assigns an ID (as an identification mark) to the steering gear, and sends a control instruction to the steering gear through the ID. After receiving the control instruction, the steering gear executes the control instruction, such as rotating 10 degrees, thereby changing the angle of the robot arm and making the robot arm swing.
[0034] Example 2
[0035] The types of the basic functional units include switch-type objects, such as power switches and state switching switches. The functional attributes of the switch-type objects include on state attributes and off state attributes. The operations of the switch-type objects include: query operations, report operations, and switch state change operations. The elements of the operation include: ID, name, and parameter value.
[0036] The description code is as follows:
[0037]
[0038]
[0039] Example 3
[0040] The types of the basic functional units include data objects, such as stepper motors and servos, and the functional attributes of the data objects include maximum value, minimum value and step value; the operations of the data objects include: query operation, report operation, current value increment operation, current value decrement operation, and current value assignment operation. For example, the maximum value and the minimum value are used to describe the maximum angle and the minimum angle of rotation of the servo, and the step value is used to describe the angle step value of the servo, and the rotation angle of the servo is changed by the current value assignment operation.
[0041] The description code is as follows:
[0042]
[0043]
[0044]
[0045] Example 4
[0046] The basic functional unit includes an enumeration type object, such as a numeric keyboard, and the attribute description of the enumeration type object includes: an enumeration value range; the operations of the enumeration type object include: a query operation, a report operation, and an operation of setting the current enumeration value.
[0047] The description code is as follows:
[0048]
[0049]
[0050] Example 5
[0051] The basic functional unit includes time-type objects, such as clocks and timers. The attribute description of the time-type object includes: time data type and time range; the operation of the time-type object includes: query operation, report operation and set time operation. The type of time data can include current time or duration.
[0052] The description code is as follows:
[0053]
[0054]
[0055]
[0056] Example 6
[0057] The basic functional unit includes an event-type object, which refers to a unit that generates an operation due to a certain event trigger. The operations of the event-type object include: query operation, report operation, event setting operation and event trigger operation. The event operation is used to set the preceding event, and the event trigger operation is used to set the operation to be performed after the preceding event is triggered. For example, when a clicker receives an event of an incorrect answer, it pushes an error alert.
[0058] The description code is as follows:
[0059]
[0060]
[0061] Example 7
[0062] The basic functional unit includes a data file type object, such as a storage device for receiving images or music, and the attribute description of the data file type object includes the file type; the operations of the data file type object include: sending a transmission request operation, responding to a transmission request operation, sending data operation, receiving data verification operation and data transmission completion operation.
[0063]
[0064]
[0065]
[0066] Example 8
[0067] The above embodiments describe the basic functional unit. The combined functional unit may include multiple basic functions. The included basic functions share a category attribute, an identification attribute, and a classification attribute.
[0068] For example, an associated functional object refers to a functional unit that triggers internal operations by receiving external events, and includes a first function of generating external events and a second function of triggering internal operation functions.
[0069] The functional attributes of the association-type functional object include triggering events; the operations of the association-type functional object include checking operations, reporting operations and executing operations.
[0070]
[0071]
[0072] Example 9
[0073] The combined function unit includes a simple combined function object, which includes at least two basic functions. The functional attributes of the simple combined function object include each basic function; the operation of the simple combined function object includes the operation of each basic function, and multiple functions in the simple combined function object share the same category attribute, identification attribute and grouping attribute.
[0074] Example 10
[0075] The combined functional unit includes a state trigger object, which refers to a functional unit whose task is triggered by an internal action of the functional unit. The attribute description of the state trigger object includes a trigger action and a task; the operation of the state trigger object includes a query operation, a report operation and a setting operation.
[0076]
[0077]
[0078] Each functional module of a toy has its own attributes, such as motor operation, indicator light output, obstacle avoidance sensor module, etc., and the applications of each functional module are also very different, such as being used for collecting status, outputting voltage, and being used for both input and output. Therefore, by unifying the identification method of functional modules and the description of functional unit attributes, the compatibility between different products and even products from different manufacturers can be improved.
[0079] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for identifying a toy functional module, characterized in that: The toy includes a main control module and a functional module, and the method includes: Based on the functional attributes of the functional modules, setting functional units for the functional modules; A parsing method for setting a functional unit in the main control module; The main control module analyzes the attributes of the functional unit based on the analysis method; the attributes of the functional unit include functional attributes, identification attributes and operation attributes; Identify the function of the functional unit based on the functional attribute; identify the identification mark of the functional unit based on the identification attribute; identify the operation of the functional unit based on the operation attribute; identifying and controlling the functional modules based on the attributes of the functional units, The main control module generates a control instruction according to the operation attribute, and sends the control instruction to the functional unit through the identification mark. The functional unit executes the control instruction of the main control module to make the main body of the functional module produce corresponding actions.
2. The method for identifying a toy function module according to claim 1, characterized in that: The attributes of the functional unit further include a category attribute and a grouping attribute. The type of the functional unit is identified according to the category attribute; and the grouping of functional modules is identified according to the grouping attribute.
3. The method for identifying a toy function module according to claim 1, characterized in that: The functional unit includes a switch type object, The functional attributes of the switch type object include an on state attribute and an off state attribute; The operations of switch objects include: query operation, report operation and switch state change operation; The elements of an operation include: ID, name, and parameter value.
4. The method for identifying a toy function module according to claim 1, characterized in that: The functional unit includes a data type object, The functional attributes of the data type object include maximum value, minimum value and step value; The operations of the data type object include: query operation, report operation, current value increment operation, current value decrement operation, and current value assignment operation.
5. The method for identifying a toy functional module according to claim 1, characterized in that: The functional unit includes an enumeration type object, The functional attributes of the enumeration type object include: enumeration value range; The operations of the enumeration type object include: query operation, report operation and setting current enumeration value operation.
6. The method for identifying a toy functional module according to claim 1, characterized in that: The functional unit includes a time type object, The functional attributes of the time type object include: time data type and time range; The operations of the time type object include: query operation, report operation and time setting operation.
7. The method for identifying a toy functional module according to claim 1, characterized in that: The functional unit includes an event type object, The operations of the event-type object include: query operation, report operation, event setting operation and event triggering operation.
8. The method for identifying a toy function module according to claim 1, characterized in that: The functional unit includes a data file type object: The functional attributes of the data file type object include file type; The operations of the data file type object include: sending a transmission request operation, responding to a transmission request operation, sending data operation, receiving data verification operation and data transmission completion operation.
9. The method for identifying a toy function module according to any one of claims 1 to 8, characterized in that: The functional unit includes a combined functional unit including at least two functions.
Citation Information
Patent Citations
Intelligent electronic toy
CN108107753A