Cleaning brush type identification method, unit and circuit and cleaning equipment
The method enhances cleaning brush type identification by scanning conductivity between contacts on the device and brush, addressing delays and misjudgment in existing technologies, improving efficiency and accuracy without additional costs.
Patent Information
- Application Number
- CN202310729050.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-19
- Publication Date
- 2024-12-20
AI Technical Summary
Existing methods for identifying cleaning brush types in cleaning devices suffer from delayed responses, low efficiency, and high misjudgment due to the need to wait for motor speed stabilization and small current differences between brush types, especially for electric brushes, while distinguishing non-electric brushes requires additional resistance, increasing costs.
A method involving a set number of first contacts on the device body and at least two second contacts on the cleaning brush, where the correspondence between contacts differs by brush type, allowing for quick identification by scanning conductivity without waiting for motor stabilization, applicable to both electric and non-electric brushes.
Improves brush type recognition efficiency and accuracy by detecting conductivity between contacts, reducing the need for additional resistance and costs, suitable for various brush types.
Smart Images

Figure CN119167153A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of smart home technology, and more particularly to a method for identifying a cleaning brush type. The present invention also relates to a cleaning brush type identification unit, a cleaning brush type identification circuit, a cleaning device, a computing device, and a computer-readable storage medium. Background Art
[0002] With the rapid development of computer technology, Internet technology and artificial intelligence technology, various smart home devices are gradually applied to all aspects of work and life. For example, after years of development, cleaning equipment has shown a trend of automation, functionality, diversification and specialization, and has been widely used in daily life. People can use cleaning equipment to complete the corresponding cleaning operations, such as floor cleaning machines, fabric cleaning machines, etc. With the further upgrade of cleaning equipment, it can meet the needs of users in a variety of scenarios, but different cleaning brushes are required for different usage scenarios. How to quickly distinguish cleaning brushes to avoid users using the wrong cleaning brushes is particularly important.
[0003] In the prior art, the current is often sampled after the cleaning brush is connected to the cleaning device, and the type of the cleaning brush connected to the cleaning device is determined by using the obtained current. However, in the above method, when distinguishing the types of electric cleaning brushes, it is necessary to wait for the motor speed to stabilize before detection, which results in a delayed response and low cleaning brush detection efficiency. In addition, the current difference between different types of cleaning brushes is small and difficult to distinguish, resulting in a high probability of misjudgment and low cleaning brush identification accuracy. When distinguishing the types of non-electric cleaning brushes, it is necessary to add resistance for distinction, which is costly. Summary of the invention
[0004] In view of this, the embodiment of this specification provides a method for identifying the type of cleaning brush. This specification also relates to a cleaning brush type identification unit, a cleaning brush type identification circuit, a cleaning device, a computing device, and a computer-readable storage medium to solve the technical defects existing in the prior art.
[0005] According to a first aspect of an embodiment of the present specification, a method for identifying a type of cleaning brush is provided, which is applied to a cleaning device, wherein a set number of first contacts are provided on a device body of the cleaning device, and at least two second contacts are provided on the cleaning brush, wherein the second contacts correspond to any first contacts, and the corresponding relationships between contacts of different types of cleaning brushes are different, and the method comprises:
[0006] When the cleaning brush is connected to the device body of the cleaning device, a first electrical level is output to a target contact on the device body, wherein the target contact is any first contact provided on the device body;
[0007] Detecting a second level of other contacts on the device body except the target contact, and determining a conductive contact according to the first level and the second level;
[0008] According to the conductive contacts and the contact correspondence, the type of the target cleaning brush connected to the device body is determined.
[0009] According to a second aspect of an embodiment of the present specification, a cleaning brush type identification unit is provided, which is applied to a cleaning device, wherein a set number of first contacts are provided on a device body of the cleaning device, and at least two second contacts are provided on the cleaning brush, wherein the second contacts correspond to any first contacts, and the corresponding relationships between the contacts of different types of cleaning brushes are different, and the identification unit comprises:
[0010] an output module, configured to output a first electrical level to a target contact on the device body when the cleaning brush is connected to the device body of the cleaning device, wherein the target contact is any first contact provided on the device body;
[0011] A first determination module is configured to detect a second level of other contacts on the device body except the target contact, and determine a conductive contact according to the first level and the second level;
[0012] The second determination module is configured to determine the type of the target cleaning brush connected to the device body according to the conductive contact and the contact correspondence.
[0013] According to a third aspect of the embodiments of this specification, there is provided a cleaning brush type identification circuit, the identification circuit comprising an identification unit and at least one connection plug-in, the at least one connection plug-in being provided with a set value of contacts, the identification unit being provided with a set value of contact detection pins, the set value of contacts being respectively connected to contact detection pins corresponding to the identification unit;
[0014] The identification unit is used for:
[0015] When the cleaning brush is connected to the device body of the cleaning device, a first level is output to the target contact detection pin, wherein the target contact detection pin is a pin corresponding to the target contact, and the target contact is any contact set on the connecting plug;
[0016] Detecting the second level of other contact detection pins except the target contact detection pin, and determining the conductive contact according to the first level and the second level;
[0017] The target cleaning brush type connected to the device body is determined according to the conductive contact and the stored contact correspondence.
[0018] According to a fourth aspect of the embodiments of the present specification, a cleaning device is provided, wherein a device body of the cleaning device is provided with a circuit for identifying the type of cleaning brush in the cleaning device described above.
[0019] According to a fifth aspect of an embodiment of this specification, a computing device is provided, including:
[0020] Memory and processor;
[0021] The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions to implement the steps of the above-mentioned method for identifying the type of cleaning brush.
[0022] According to a sixth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions, and when the instructions are executed by a processor, the steps of the method for identifying the type of cleaning brush are implemented.
[0023] The method for identifying the type of cleaning brush provided in the embodiments of the present specification is applied to a cleaning device, wherein a set number of first contacts are provided on the device body of the cleaning device, and at least two second contacts are provided on the cleaning brush, wherein the second contacts correspond to any first contacts, and the correspondence between contacts of different types of cleaning brushes is different. The method comprises: when the cleaning brush is connected to the device body of the cleaning device, outputting a first level to a target contact on the device body, wherein the target contact is any first contact provided on the device body; detecting the second level of other contacts on the device body except the target contact, and determining a conductive contact according to the first level and the second level; and determining the type of the target cleaning brush connected to the device body according to the correspondence between the conductive contact and the contacts.
[0024] An embodiment of the present specification realizes setting a set value of first contacts on the device body of the cleaning device, and setting corresponding at least two second contacts on the cleaning brush. The corresponding relationship of the contacts of different types of cleaning brushes is different. Therefore, when the cleaning brush is connected to the cleaning device body, a first level can be output to a first contact on the device body, and then the second levels of other first contacts are detected in sequence. Based on the first level and the second level, it can be determined whether the two first contacts are conductive, so as to determine the type of the currently connected target cleaning brush based on the conductive contacts and the contact correspondence. In this way, the second contact corresponds to at least two first contacts. After the second contact contacts the corresponding first contact, the corresponding first contacts are conductive. Therefore, by detecting the conductive state between the contacts, the type of the currently connected cleaning brush can be quickly identified in combination with the contact correspondence of the cleaning brush, without waiting for the motor speed to stabilize, thereby improving the recognition efficiency of the cleaning brush type, avoiding misjudgment, and improving the recognition accuracy. It is suitable for the recognition of various types of cleaning brushes such as electric and non-electric, and there is no need to increase resistance for identification of a separate non-electric cleaning brush, thereby reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a flow chart of a method for identifying a cleaning brush type provided in an embodiment of this specification;
[0026] Figure 2 is a distribution diagram of a first contact and a second contact provided in an embodiment of this specification;
[0027] Figure 3 It is a processing flow chart of a method for identifying the type of cleaning brush applied to a fabric cleaning machine provided in an embodiment of this specification;
[0028] Figure 4 It is a structural schematic diagram of a cleaning brush type identification unit provided in an embodiment of this specification;
[0029] Figure 5a It is a structural schematic diagram of a cleaning brush type identification circuit provided in an embodiment of this specification;
[0030] Figure 5b is a circuit diagram of a cleaning brush type identification circuit provided in one embodiment of the present disclosure;
[0031] Figure 6 It is a structural block diagram of a computing device provided in one embodiment of this specification. DETAILED DESCRIPTION
[0032] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.
[0033] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0034] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0035] It should be noted that with the further upgrade of cleaning equipment, it can meet the needs of users in a variety of scenarios such as kitchen, sofa, ironing clothes, etc., but different cleaning brushes are required for different usage scenarios. Among them, according to statistics, there are more than a dozen electric and non-electric cleaning brushes. How to quickly distinguish cleaning brushes to avoid users using the wrong cleaning brush is particularly important.
[0036] At present, the current is often sampled after the cleaning brush is connected to the cleaning device, and the type of cleaning brush connected to the cleaning device is determined by using the obtained current. However, in the above method, when distinguishing the type of electric cleaning brush, it is necessary to wait for the motor speed to stabilize before detection, which has a delayed response and low cleaning brush detection efficiency. In addition, the current difference between different types of cleaning brushes is small and difficult to distinguish, resulting in a high probability of misjudgment and low cleaning brush identification accuracy. When distinguishing the type of non-electric cleaning brush, it is necessary to add resistance for distinction, which is costly.
[0037] Therefore, in the embodiment of the present specification, a set number of first contacts are set on the device body of the cleaning device, and corresponding at least two second contacts are set on the cleaning brush. When the user connects the cleaning brush to the cleaning device and presses the start button, the conductivity between the contacts can be scanned by the identification unit. Combined with the set contact correspondence of the cleaning brush, the type of the currently connected cleaning brush can be quickly identified without waiting for the motor speed to stabilize, thereby improving the efficiency of identifying the cleaning brush type, avoiding misjudgment, and improving the recognition accuracy. It is suitable for the identification of various types of cleaning brushes such as electric and non-electric, and there is no need to increase resistance for identification of a separate non-electric cleaning brush, thereby reducing costs.
[0038] In this specification, a method for identifying the type of cleaning brush is provided. This specification also involves a cleaning brush type identification unit, a cleaning brush type identification circuit, a cleaning device, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0039] Figure 1 A flow chart of a method for identifying a type of cleaning brush provided according to an embodiment of the present specification is shown, which is applied to a cleaning device, wherein a set number of first contacts are provided on the device body of the cleaning device, and at least two second contacts are provided on the cleaning brush, wherein the second contacts correspond to any first contacts, and the corresponding relationships of the contacts of different types of cleaning brushes are different. The method specifically includes the following steps 102-106:
[0040] Step 102: When the cleaning brush is connected to the device body of the cleaning device, a first electrical level is output to a target contact on the device body, wherein the target contact is any first contact provided on the device body.
[0041] It should be noted that cleaning equipment refers to intelligent equipment with cleaning functions, such as floor cleaning machines, fabric cleaning machines, sweeping and mopping machines, window cleaning robots, etc. Cleaning brushes refer to brush heads that need to be connected to the main body of the cleaning equipment to clean the corresponding media. Different cleaning brushes need to be connected in different usage scenarios. According to statistics, there are as many as a dozen electric and non-electric cleaning brushes corresponding to a type of cleaning equipment. It is particularly important to quickly distinguish cleaning brushes to prevent users from using the wrong cleaning brushes.
[0042] In an embodiment of the present specification, a set number of first contacts can be set on the device body of the cleaning device and at the connection position with the cleaning brush, and then at least two second contacts can be set at the connection position between the cleaning brush and the device body of the cleaning device. Among the at least two second contacts, two second contacts correspond to any first contact position, and the remaining contact positions may not correspond, so that the corresponding two first contacts can be conductive. The correspondence between the second contacts on different types of cleaning brushes and the first contacts on the device body is different, that is, different types of cleaning brushes can detect different conductive contacts, so that the type of cleaning brush currently connected can be quickly identified through the conductive contacts.
[0043] In actual applications, when the cleaning brush is connected to the device body, the two first contacts corresponding to the second contact can be turned on, so that the identification unit can determine the turned-on first contacts by scanning the levels of the various first contacts, thereby identifying and determining the target cleaning brush type of the currently connected cleaning brush. In specific implementation, after the user connects the cleaning brush to the device body of the cleaning device and presses the start button, the identification unit can detect the corresponding access signal and determine that the cleaning brush is connected to the device body of the cleaning device. At this time, the identification unit can output the first level to the target contact on the device body, and subsequently determine whether there are other first contacts that are turned on by detecting the second levels of other first contacts on the device body, thereby identifying the type of the cleaning brush.
[0044] The target contact may be any first contact provided on the device body, and each first contact on the device body may serve as the target contact, so as to detect whether other first contacts are connected to the target contact based on the target contact.
[0045] In addition, the first level can be a level of any voltage value, that is, a high level, such as 3.3V, 5.5V, etc., and subsequently, it is only necessary to detect whether other first contacts are also at the first level to determine whether other first contacts are connected to the target contact.
[0046] For example, Figure 2 is a schematic diagram of the distribution of a first contact and a second contact provided in an embodiment of this specification, such as Figure 2 As shown, six first contacts are arranged on the device body of the cleaning device, namely contacts X1, X2, X3, X4, X5 and X6; two second contacts are arranged on the first type of cleaning brush, namely contacts Y1 and Y2, and the positions of Y1 and Y2 correspond to those of X1 and X2; two second contacts are arranged on the second type of cleaning brush, namely contacts Y3 and Y5, and the positions of Y3 and Y5 correspond to those of X3 and X5; two second contacts are arranged on the third type of cleaning brush, namely contacts Y2 and Y6, and the positions of Y2 and Y6 correspond to those of X2 and X6.
[0047] When the cleaning brush is connected to the device body of the cleaning device, assuming that contact X1 is used as the target contact, the identification unit can output a high level to contact X1; assuming that contact X2 is used as the target contact, the identification unit can output a high level to contact X2, and so on.
[0048] In the embodiment of the present specification, the number of contacts that need to be set on the device body can also be predetermined, that is, when the cleaning brush is connected to the device body of the cleaning device, before the first level is output to the target contact on the device body, the method further includes:
[0049] Determining the number of candidate cleaning brush types for the cleaning device;
[0050] The setting value is determined according to the number of types, wherein the setting value is the number of contacts to be set.
[0051] It should be noted that, for a certain type of cleaning equipment, the number of contacts set on the equipment body of the cleaning equipment, and the number of combination relationships obtained after combining two by two and excluding repeated combinations, need to meet the number of types of cleaning brushes corresponding to this type of cleaning equipment, so that the corresponding cleaning brush type can be indicated by combining two by two contacts.
[0052] In practical applications, the number of candidate cleaning brush types of the cleaning device can be determined first, that is, the number of cleaning brushes that the cleaning device has for the user to choose from, and then based on the number of types, the number of contacts that need to be set on the device body can be determined, that is, the set value. In specific implementation, the number of combination relationships obtained by combining two by two can satisfy the minimum value of the number of candidate cleaning brush types, and the minimum value is used as the set value, and the set value of first contacts is set on the device body of the cleaning device. The position of the set value of first contacts can be set arbitrarily, as long as the position of the second contact on the cleaning brush corresponds to the position of any two of the first contacts.
[0053] In actual implementation, the number of combination relationships that can be obtained by combining two target values can be calculated using the following formula (1):
[0054]
[0055] Here, C refers to combination, which is a mathematical term. Generally speaking, taking any two elements from m different elements as a group is called a combination of two elements from m different elements.
[0056] In addition, "!" represents factorial, P represents the obtained combination relationship number, and m represents the target value. The minimum target value m that satisfies the combination relationship number P greater than or equal to the number of candidate cleaning brush types is used as the set value.
[0057] For example, taking a fabric washing machine as an example, there are twelve optional cleaning brushes, that is, the number of candidate cleaning brush types is 12. When m is 3, the combination relationship number P is 3, which is less than 12; when m is 4, the combination relationship number P is 6, which is less than 12; when m is 5, the combination relationship number P is 10, which is less than 12; when m is 6, the combination relationship number P is 15, which is greater than 12. Therefore, it can be determined that the minimum number of candidate cleaning brush types that satisfies the combination relationship number P greater than or equal to 12 is 6. At this time, the set value can be determined to be 6, and 6 contacts can be set on the device body.
[0058] In the embodiments of the present specification, the number of contacts that need to be set on the device body can be determined based on the number of types of candidate cleaning brushes, so that the number of combination relationships of the first contacts set on the device body in pairs can meet the requirements for indicating the types of candidate cleaning brushes without setting too many contacts, thereby ensuring that various types of cleaning brushes can be indicated by corresponding contact combination relationships, thereby ensuring the success rate of cleaning brush type detection, and without setting and detecting too many contacts, saving costs and improving detection efficiency.
[0059] In an optional implementation of this embodiment, a contact correspondence table between the cleaning brush type and the contact conduction relationship of the first contact may be pre-configured and stored, that is, when the cleaning brush is connected to the device body of the cleaning device, before the first level is output to the target contact on the device body, the method further includes:
[0060] Determine various combination relationships corresponding to the set values, and use the contact point combination corresponding to the combination relationship as the contact point conduction relationship;
[0061] For the first cleaning brush type, a corresponding first contact conduction relationship is selected from various contact conduction relationships, and the first cleaning brush type and the first contact conduction relationship are stored correspondingly, wherein the first cleaning brush type is any candidate cleaning brush type;
[0062] Based on the types of cleaning brushes and the corresponding contact conduction relationships, a contact correspondence relationship table is generated, wherein the contact correspondence relationship table is used to indicate that the second contact corresponding to the contact conduction relationship is set on the cleaning brush of the corresponding type.
[0063] In practical applications, various combination relationships corresponding to the set values can be determined, and the contact combinations corresponding to the combination relationships are used as contact conduction relationships. Then, corresponding cleaning brush types are configured for various contact conduction relationships, and the contact conduction relationships and cleaning brush types are stored in correspondence to obtain a contact correspondence relationship table of contact conduction relationships and cleaning brush types. Then, based on the contact correspondence relationship table, second contacts at corresponding positions can be set on various types of cleaning brushes.
[0064] In specific implementation, when configuring corresponding cleaning brush types for various contact conduction relationships, the configuration may be random or in accordance with set rules, and different cleaning brush types need to be configured with different contact conduction relationships.
[0065] Using the above example, the value is set to 6, and the corresponding combinations include: 12, 13, 14, 15, 16, 23, 24, 25, 26, 34, 35, 36, 45, 46, 56, which means that the contact conduction relationships include: the first contact and the second contact are conductive, the first contact and the third contact are conductive, the first contact and the fourth contact are conductive, the first contact and the fifth contact are conductive, and the first contact is conductive. The 2nd contact is connected to the 3rd contact, the 2nd contact is connected to the 4th contact, the 2nd contact is connected to the 5th contact, the 2nd contact is connected to the 6th contact, the 3rd contact is connected to the 4th contact, the 3rd contact is connected to the 5th contact, the 3rd contact is connected to the 6th contact, the 4th contact is connected to the 5th contact, the 4th contact is connected to the 6th contact, and the 5th contact is connected to the 6th contact. Assuming that there are 12 types of cleaning brushes, a contact conduction relationship is randomly selected from type 1 to type 12, and different types of contact conduction relationships are selected. The contact correspondence table shown in Table 1 below can be obtained.
[0066] Table 1 Contact correspondence table
[0067]
[0068]
[0069] Based on Table 1 above, two second contacts corresponding to the positions of the first contact and the second contact on the device body are set on the cleaning brush of type 1; two second contacts corresponding to the positions of the first contact and the third contact on the device body are set on the cleaning brush of type 2; two second contacts corresponding to the positions of the first contact and the fourth contact on the device body are set on the cleaning brush of type 3, and so on, and corresponding second contacts are set at corresponding positions on each type of cleaning brush.
[0070] In the embodiments of the present specification, corresponding contact conduction relationships can be pre-configured for each cleaning brush type, and a contact correspondence table can be generated and stored so that after a subsequent identification unit detects the first conductive contact, the contact correspondence table can be queried to quickly and accurately determine the target cleaning brush type of the currently connected cleaning brush.
[0071] In an optional implementation of this embodiment, outputting a first level to a target contact on the device body includes:
[0072] A first level is output to the i-th contact of the device body, where i is a positive integer.
[0073] It should be noted that one of the first contacts set on the device body can be selected as the target contact. In specific implementation, the i-th contact on the device body can be selected as the target contact, and the i-th contact is used as a reference to detect whether other contacts on the device body are connected to the i-th contact, where i is a positive integer.
[0074] In an optional implementation of this embodiment, before outputting the first level to the i-th contact of the device body, the method further includes:
[0075] According to the position of the first contact of the set value, number the first contact of the set value;
[0076] The starting number of the first contact of the set value is used as the initial value of i.
[0077] It should be noted that each first contact can be numbered according to the position of the set value of first contacts and the pre-configured numbering rule. The numbering rule can be a pre-configured rule for numbering the set value of first contacts, such as numbering from left to right, from top to bottom, or from top to bottom, from left to right. In addition, in a specific implementation, the set value of first contacts can be numbered randomly instead of based on the position, and this specification does not limit this.
[0078] In practical applications, after numbering the first contact of a set value, the starting number of the first contact of the set value can be used as the initial value of i. For example, if the contacts of the set value are numbered starting from 1, the initial value of i is 1; if the contacts of the set value are numbered starting from 5, the initial value of i is 5.
[0079] In the embodiment of the present specification, starting from the contact indicated by the starting number among the set number of contacts, it is possible to detect in sequence whether the subsequent contacts are connected to the contact, thereby quickly and accurately identifying the target cleaning brush type of the currently connected cleaning brush.
[0080] Step 104: Detect the second level of other contacts on the device body except the target contact, and determine the conductive contact according to the first level and the second level.
[0081] It should be noted that after the identification unit outputs the first level to the target contact, the second levels of other contacts on the device body except the target contact can be detected in turn. If the second level of another contact is consistent with the first level, it means that the other contact is connected to the target contact; if the second level of each other contact is inconsistent with the first level, the next first contact set on the device body can be selected as the target contact, and then the second levels of other contacts on the device body except the target contact can be detected based on the target contact to determine whether other contacts are connected to the target contact.
[0082] In actual applications, each first contact point may be traversed, and the process ends after the traversal is completed; or, if it is detected that some other contact point is connected to the current target contact point, the process ends directly.
[0083] In an optional implementation of this embodiment, detecting the second level of other contacts on the device body except the target contact, and determining the conductive contact according to the first level and the second level includes:
[0084] Detecting the second level of other contacts after the i-th contact on the device body, and determining whether there is a conductive contact according to the first level and the second level;
[0085] If there is no conducting contact, i is incremented by 1, and the process returns to the step of outputting the first level to the i-th contact of the device body until there is a conducting contact or i is equal to the set value.
[0086] It should be noted that i is initially the starting number of the first contact with a set value. The identification unit can output a first level to the i-th contact of the device body, and then detect the second levels of other contacts after the i-th contact through the I / O (Input / Output) port, and determine whether there is a conductive contact based on whether the first level and the second level are consistent.
[0087] In actual applications, if there is a conductive contact, the process can end directly, and then query the corresponding target cleaning brush type based on the conductive contact. If there is no conductive contact, i can be incremented by 1. If i is not equal to the set value, the process returns to the step of outputting the first level to the i-th contact of the device body until there is a conductive contact. Then, based on the conductive contact, query the corresponding target cleaning brush type; if i is equal to the set value, it means that all the first contacts on the device body have been detected as target contacts, and no other first contacts are conductive with the target contact. It is possible that the currently connected cleaning brush is not compatible, or the contact position does not correspond due to damage, and the target cleaning brush type cannot be detected. At this time, an alarm message can be returned, so that the user can judge whether the cleaning brush is connected incorrectly or whether the cleaning brush is damaged based on the alarm message.
[0088] In the embodiment of the present specification, after the identification unit outputs the first level to the ith contact of the device body, the second level of other contacts after the ith contact on the device body can be detected in sequence to determine whether there are other contacts after the ith contact that are conductive with the ith contact. If not, the next first contact is used as the ith contact, and the detection continues until a conductive contact is detected or the traversal ends. In this way, it is possible to detect which two contacts are conductive among the set value of first contacts set on the device body, so as to facilitate the subsequent query of the corresponding target cleaning brush type. By detecting the conductivity between the contacts, the type of cleaning brush currently connected can be quickly identified in combination with the corresponding relationship of the contacts of the cleaning brush, without waiting for the motor speed to stabilize, thereby improving the recognition efficiency of the cleaning brush type, avoiding misjudgment, and improving the recognition accuracy. It is suitable for the recognition of various types of cleaning brushes such as electric and non-electric, and there is no need to increase resistance for identification of a separate non-electric cleaning brush, thereby reducing costs.
[0089] In an optional implementation of this embodiment, detecting the second level of other contacts after the i-th contact on the device body, and determining whether there is a conductive contact according to the first level and the second level, includes:
[0090] detecting a second level of a j-th contact on the device body, wherein j is greater than i;
[0091] If the second level of the j-th contact is consistent with the first level, it is determined that the i-th contact and the j-th contact are conductive, and the conductive contacts are recorded as the i-th contact and the j-th contact;
[0092] If the second level of the jth contact is inconsistent with the first level, it is determined that the ith contact and the jth contact are not conductive, j is incremented by 1, and the step of detecting the second level of the jth contact on the device body is returned until j is equal to the set value.
[0093] In actual applications, the identification unit can output a first level to the i-th contact of the device body, and then detect the second level of the j-th contact on the device body, where j is greater than i. If the second level of the j-th contact is consistent with the first level, it means that the i-th contact and the j-th contact are conducting. At this time, the conducting contacts can be recorded as the i-th contact and the j-th contact, and the process ends. If the second level of the j-th contact is inconsistent with the first level, it means that the i-th contact and the j-th contact are not conducting. At this time, let j increase by 1. If j is not equal to the set value, return to the step of executing the second level of the j-th contact on the device body, and continue to judge whether the next contact is conducting with the i-th contact, until j is equal to the set value, indicating that all other contacts after the i-th contact have been detected. At this time, i can be incremented by 1, and the next contact on the device body is continued as the i-th contact, and continue to detect whether there are other contacts conducting thereafter.
[0094] For example, assuming that there are 6 contacts on the device body, the identification unit outputs a high level to the first contact on the device body, detects whether the second contact on the device body is at a high level, and if so, records the conductive contacts as the first and second contacts, and ends the process; if not, continues to detect whether the third contact is at a high level, and so on, until the sixth contact is still not at a high level. Then, output a high level to the second contact, detect whether the third contact on the device body is at a high level, and if so, records the conductive contacts as the second and third contacts, and ends the process; if not, continues to detect whether the fourth contact is at a high level, and so on, until the sixth contact is still not at a high level. After that, continue to output a high level to the third contact, and so on, until the conductive contact is determined, or a high level is output to the fifth contact, and the sixth contact is still not at a high level. At this time, since i+1 is 6, which is equal to the set value, the process ends and an alarm message is issued.
[0095] In the embodiments of the present specification, the other contacts after the ith contact are traversed in sequence to detect whether there are other contacts that are conductive with the ith contact, so that the type of the currently connected cleaning brush can be quickly identified based on the detected conductive contacts and the contact correspondence of the cleaning brush. There is no need to wait for the motor speed to stabilize, which improves the efficiency of identifying the cleaning brush type and avoids misjudgment, thereby improving the recognition accuracy. It is suitable for the identification of various types of cleaning brushes, such as electric and non-electric, and there is no need to increase resistance for identification of a separate non-electric cleaning brush, thereby reducing costs.
[0096] Step 106: Determine the target cleaning brush type connected to the device body according to the conductive contacts and the contact correspondence.
[0097] It should be noted that the contact correspondence refers to the correspondence between the contact conduction relationship and the cleaning brush type. Therefore, after the conduction contacts are determined, the conduction contacts and the contact correspondence can be combined to determine the target cleaning brush type connected to the device body.
[0098] In an optional implementation of this embodiment, determining the type of a target cleaning brush connected to the device body according to the corresponding relationship between the conductive contacts and the contacts includes:
[0099] In the contact correspondence table of contact conduction relationships and cleaning brush types, query the target cleaning brush type corresponding to the conduction contact.
[0100] It should be noted that the target cleaning brush type corresponding to the determined conductive contact may be queried in a pre-stored contact correspondence table of contact conductive relationships and cleaning brush types.
[0101] Continuing with the above example, the contact correspondence table stored in the identification unit is shown in Table 1 above. Assuming that the conductive contacts determined are the 2nd and 5th contacts, the corresponding target cleaning brush type can be queried through Table 1 above to be type 8, that is, the device body currently connected to the cleaning device is a type 8 cleaning brush.
[0102] The method for identifying the type of cleaning brush provided in the embodiment of the present specification realizes setting a set value of first contacts on the device body of the cleaning device, and setting corresponding at least two second contacts on the cleaning brush. The corresponding relationship of the contacts of different types of cleaning brushes is different. Therefore, when the cleaning brush is connected to the cleaning device body, a first level can be output to a first contact on the device body, and then the second levels of other first contacts are detected in sequence. Based on the first level and the second level, it can be determined whether the two first contacts are conductive, so as to determine the type of the currently connected target cleaning brush based on the conductive contacts and the contact correspondence. In this way, the second contact corresponds to at least two first contacts. After the second contact contacts the corresponding first contact, the corresponding first contacts are conductive. Therefore, by detecting the conductive state between the contacts, the type of the currently connected cleaning brush can be quickly identified in combination with the contact correspondence of the cleaning brush, without waiting for the motor speed to stabilize, thereby improving the efficiency of the identification of the cleaning brush type, avoiding misjudgment, and improving the identification accuracy. It is suitable for the identification of various types of cleaning brushes such as electric and non-electric, and there is no need to increase the resistance of the non-electric cleaning brush for identification, thereby reducing the cost.
[0103] It should be noted that fabric cleaning machines are generally used to clean fabric sofas, curtains and other fabric products. They spray water or cleaning liquid on the dirty surface, then clean the dirty surface with a handheld cleaning brush and suck the cleaned sewage into the sewage tank through the suction port to achieve local cleaning of fabric products, which is relatively convenient to use. With the further upgrade of fabric cleaning machines, they can meet the needs of users in a variety of scenarios such as kitchens, sofas, and ironing clothes. However, different cleaning brushes are required for different usage scenarios. How to quickly distinguish cleaning brushes to avoid users using the wrong cleaning brushes is particularly important.
[0104] The following combination Figure 3 Taking the application of the cleaning brush type identification method provided in this specification in a fabric cleaning machine as an example, the cleaning brush type identification method is further described. Figure 3 A processing flow chart of a method for identifying the type of cleaning brush applied to a fabric cleaning machine provided in an embodiment of the present specification is shown, which specifically includes the following steps:
[0105] Step 302: The identification unit determines the number of candidate brush head types for the fabric cleaning machine, determines a set value based on the number of types, and a staff member sets a first contact point of the set value at a location connected to the brush head on the equipment body of the fabric cleaning machine.
[0106] Step 304: The identification unit determines various combination relationships corresponding to the set value, and takes the contact combination corresponding to the combination relationship as the contact conduction relationship; for each brush head type, the corresponding contact conduction relationship is selected respectively, and a contact correspondence table is generated. Different brush head types have different corresponding contact conduction relationships; the user sets the second contact on the corresponding type of brush head based on the contact position indicated by the corresponding contact conduction relationship.
[0107] Step 306: The identification unit detects the connection position of the brush head connected to the fabric cleaning machine.
[0108] Step 308: Output a high level to the i-th contact of the device body.
[0109] Step 310: Detect the second level of the j-th contact on the device body.
[0110] Step 312: Determine whether the second level is consistent with the first level. If they are consistent, execute the following step 314; if they are inconsistent, execute the following step 316.
[0111] Step 314: Record the conductive contacts as the i-th contact and the j-th contact, and execute the following step 320.
[0112] Step 316: Increment j by 1. If j is not equal to the set value, return to step 310; if j is equal to the set value, execute the following step 318.
[0113] Step 318: Increment i by 1. If i is not equal to the set value, return to step 308 and execute the following step 320 until there is a conductive contact. Alternatively, if i is equal to the set value, the process ends.
[0114] Step 320: Determine the type of brush head connected to the device body according to the conductive contacts and the contact correspondence.
[0115] The method for identifying the type of cleaning brush provided in the embodiment of this specification realizes setting a set value of first contacts on the device body of the fabric cleaning machine, and setting corresponding at least two second contacts on the brush head. The corresponding relationship of the contacts of different types of brush heads is different. Therefore, when the brush head is connected to the device body of the fabric cleaning machine, a first level can be output to a first contact on the device body, and then the second levels of other first contacts are detected in sequence. Based on the first level and the second level, it can be determined whether the two first contacts are conductive, so as to determine the type of brush head currently connected based on the conductive contacts and the contact correspondence. In this way, the second contact corresponds to at least two first contacts. After the second contact contacts the corresponding first contact, the corresponding first contacts are conductive. Therefore, by detecting the conductive state between the contacts, the type of brush head currently connected can be quickly identified in combination with the contact correspondence of the brush head, without waiting for the motor speed to stabilize, thereby improving the recognition efficiency of the brush head type, avoiding misjudgment, and improving the recognition accuracy. It is suitable for the recognition of various types of brush heads such as electric and non-electric, and there is no need to increase resistance for identification of a single non-electric brush head, thereby reducing costs.
[0116] Corresponding to the above method embodiment, this specification also provides a cleaning brush type identification unit embodiment, Figure 4 The schematic diagram of the structure of a cleaning brush type identification unit provided in an embodiment of the present specification is shown, which is applied to a cleaning device. A set number of first contacts are arranged on the device body of the cleaning device, and at least two second contacts are arranged on the cleaning brush. The second contacts correspond to any first contacts, and the corresponding relationships of the contacts of different types of cleaning brushes are different. Figure 4 As shown, the identification unit includes:
[0117] The output module 402 is configured to output a first electrical level to a target contact on the device body when the cleaning brush is connected to the device body of the cleaning device, wherein the target contact is any first contact set on the device body;
[0118] A first determination module 404 is configured to detect a second level of other contacts on the device body except the target contact, and determine a conductive contact according to the first level and the second level;
[0119] The second determination module 406 is configured to determine the type of the target cleaning brush connected to the device body according to the conductive contacts and the contact correspondence.
[0120] Optionally, the output module 402 is further configured to:
[0121] Outputting a first level to the i-th contact of the device body, where i is a positive integer;
[0122] Accordingly, the first determining module 404 is further configured to:
[0123] Detecting a second level of another contact point after the i-th contact point on the device body, and determining whether there is a conductive contact point according to the first level and the second level;
[0124] If there is no conducting contact, i is incremented by 1, and the process returns to the step of outputting the first level to the i-th contact of the device body until there is a conducting contact or i is equal to the set value.
[0125] Optionally, the first determining module 404 is further configured to:
[0126] detecting a second level of a j-th contact on the device body, wherein j is greater than i;
[0127] If the second level of the j-th contact is consistent with the first level, it is determined that the i-th contact and the j-th contact are conductive, and the conductive contacts are recorded as the i-th contact and the j-th contact;
[0128] If the second level of the jth contact is inconsistent with the first level, it is determined that the ith contact and the jth contact are not conductive, j is incremented by 1, and the step of detecting the second level of the jth contact on the device body is returned until j is equal to the set value.
[0129] Optionally, the identification unit further includes a numbering module configured to:
[0130] According to the position of the first contact of the set value, number the first contact of the set value;
[0131] The starting number of the first contact of the set value is used as the initial value of i.
[0132] Optionally, the identification unit further includes a third determination module configured to:
[0133] Determining the number of candidate cleaning brush types for the cleaning device;
[0134] The setting value is determined according to the number of types, wherein the setting value is the number of contacts to be set.
[0135] Optionally, the identification unit further includes a storage unit configured to:
[0136] Determine various combination relationships corresponding to the set values, and use the contact point combination corresponding to the combination relationship as the contact point conduction relationship;
[0137] For the first cleaning brush type, a corresponding first contact conduction relationship is selected from various contact conduction relationships, and the first cleaning brush type and the first contact conduction relationship are stored correspondingly, wherein the first cleaning brush type is any candidate cleaning brush type;
[0138] Based on the types of cleaning brushes and the corresponding contact conduction relationships, a contact correspondence relationship table is generated, wherein the contact correspondence relationship table is used to indicate that the second contact corresponding to the contact conduction relationship is set on the cleaning brush of the corresponding type.
[0139] Optionally, the second determining module 406 is further configured to:
[0140] In the contact correspondence table of contact conduction relationships and cleaning brush types, query the target cleaning brush type corresponding to the conduction contact.
[0141] The cleaning brush type identification unit provided in the embodiment of the present specification realizes setting a set value of first contacts on the device body of the cleaning device, and setting corresponding at least two second contacts on the cleaning brush. The corresponding relationship of the contacts of different types of cleaning brushes is different. Therefore, when the cleaning brush is connected to the cleaning device body, a first level can be output to a first contact on the device body, and then the second levels of other first contacts are detected in sequence. Based on the first level and the second level, it can be determined whether the two first contacts are conductive, so as to determine the type of the currently connected target cleaning brush based on the conductive contacts and the contact correspondence. In this way, the second contact corresponds to at least two first contacts. After the second contact contacts the corresponding first contact, the corresponding first contacts are conductive. Therefore, by detecting the conductive state between the contacts, the type of the currently connected cleaning brush can be quickly identified in combination with the contact correspondence of the cleaning brush, without waiting for the motor speed to stabilize, thereby improving the recognition efficiency of the cleaning brush type, avoiding misjudgment, and improving the recognition accuracy. It is suitable for the recognition of various types of cleaning brushes such as electric and non-electric, and there is no need to increase resistance for identification of a single non-electric cleaning brush, thereby reducing costs.
[0142] The above is a schematic scheme of a cleaning brush type identification unit of this embodiment. It should be noted that the technical scheme of the cleaning brush type identification unit and the technical scheme of the cleaning brush type identification method described above belong to the same concept, and the details of the technical scheme of the cleaning brush type identification unit that are not described in detail can all be referred to the description of the technical scheme of the cleaning brush type identification method described above.
[0143] Corresponding to the above method embodiment, this specification also provides a cleaning brush type identification circuit embodiment, Figure 5a A schematic diagram of the structure of a cleaning brush type identification circuit provided in an embodiment of the present specification is shown, the identification circuit comprises an identification unit 501 and at least one connecting plug 502, at least one connecting plug 502 is provided with a set value of contacts 5021, the identification unit 501 is provided with a set value of contact detection pins 5011, and the set value of contacts 5021 are respectively connected to the contact detection pins 5011 corresponding to the identification unit 501;
[0144] The identification unit 501 is used for:
[0145] When the cleaning brush is connected to the device body of the cleaning device, a first level is output to the target contact detection pin, wherein the target contact detection pin is a pin corresponding to the target contact, and the target contact is any contact set on the connection plug-in;
[0146] Detecting the second level of other contact detection pins except the target contact detection pin, and determining the conductive contact according to the first level and the second level;
[0147] According to the correspondence between the conductive contacts and the stored contacts, the target cleaning brush type connected to the device body is determined.
[0148] Specifically, the identification unit may refer to a functional module with control, detection, and analysis functions, such as a single chip microcomputer, an MCU (Micro Control Unit), and the like.
[0149] It should be noted that a connecting plug-in can be set in the identification circuit of the cleaning brush type, and a set number of first contacts can be set on the connecting plug-in. The connecting plug-in can be set at the connection position between the device body and the cleaning brush, and a corresponding second contact is set at the connection position between the cleaning brush and the device body. After the cleaning brush is connected to the device body, the second contacts at the corresponding positions are in contact with the first contacts, so that the corresponding two first contacts are turned on. The identification unit can determine the two contacts that are turned on by scanning the electrical level of the contact detection pin, thereby determining the type of the connected cleaning brush.
[0150] In addition, a plurality of connection plug-ins may be provided in the identification circuit of the cleaning brush type, and a plurality of connection plug-ins are dispersedly provided with a set value of first contacts, and the sum of the number of first contacts on each connection plug-in is the set value. For example, the connection plug-in may be provided at the connection position between the device body and the cleaning brush, and two rows are provided in parallel from top to bottom, and the first connection plug-in is provided with contact 1, contact 2 and contact 3, and the second connection plug-in is provided with contact 4, contact 5 and contact 6, and contact 1, contact 2 and contact 3 are respectively connected to contact detection pin 1, contact detection pin 2 and contact detection pin 3 on the identification unit, and contact 4, contact 5 and contact 6 are respectively connected to contact detection pin 4, contact detection pin 5 and contact detection pin 6 on the identification unit.
[0151] Figure 5b is a circuit diagram of a cleaning brush type identification circuit provided in one embodiment of the present disclosure, such as Figure 5bAs shown, taking the cleaning brush type identification circuit including two connection plug-ins JP1 and JP2 as an example, pin 1, pin 2, and pin 3 in JP1 correspond to contact 1, contact 2, and contact 3 respectively, pin 1 is connected to protection resistor R1, and protection resistor R1 is connected to contact detection pin CONN1 of the single-chip computer, pin 2 is connected to protection resistor R2, and protection resistor R2 is connected to contact detection pin CONN2 of the single-chip computer, and pin 3 is connected to protection resistor R3, and protection resistor R3 is connected to contact detection pin CONN3 of the single-chip computer.
[0152] Pin 1, pin 2, and pin 3 in JP2 correspond to contact 4, contact 5, and contact 6 respectively. Pin 1 is connected to protection resistor R4, which is connected to the contact detection pin CONN4 of the microcontroller. Pin 2 is connected to protection resistor R5, which is connected to the contact detection pin CONN5 of the microcontroller. Pin 3 is connected to protection resistor R6, which is connected to the contact detection pin CONN6 of the microcontroller. The microcontroller CONN1 to CONN6 outputs high level in turn, and the other ports are in input detection mode to determine which contacts of CONN1 to CONN6 are connected, so as to identify the type of the currently connected cleaning brush in combination with the contact correspondence of the cleaning brush.
[0153] Among them, the protection resistors R1-R6 are used to protect the contact detection pins of the microcontroller to prevent excessive pulses from damaging the microcontroller. In addition, the protection resistors R1-R6 are respectively connected to bidirectional electronic components ESD1-ESD6 that prevent pulse voltage breakdown. The other end of ESD1-ESD6 is grounded to filter the pulse voltage and further prevent the pulse voltage from breaking through the microcontroller.
[0154] The single path for identifying the type of cleaning brush provided in the embodiment of this specification can quickly identify the type of cleaning brush currently connected by detecting the conduction status between the contacts combined with the contact correspondence of the cleaning brush, without waiting for the motor speed to stabilize, thereby improving the efficiency of identifying the type of cleaning brush, avoiding misjudgment, and improving the recognition accuracy. It is suitable for identifying various types of cleaning brushes such as electric and non-electric, and there is no need to increase resistance for identification of a separate non-electric cleaning brush, thereby reducing costs.
[0155] An embodiment of the present specification further provides a cleaning device, wherein a device body of the cleaning device is provided with an identification circuit for the type of cleaning brush in the above-mentioned cleaning device.
[0156] The above is a schematic scheme of a cleaning device of this embodiment. It should be noted that the technical scheme of the cleaning device and the technical scheme of the above-mentioned method for identifying the type of cleaning brush in the cleaning device and the technical scheme of the above-mentioned circuit for identifying the type of cleaning brush in the cleaning device are of the same concept. For details not described in detail in the technical scheme of the cleaning device, please refer to the description of the above-mentioned method for identifying the type of cleaning brush and the technical scheme of the circuit for identifying the type of cleaning brush in the cleaning device.
[0157] Figure 6 The block diagram of a computing device according to an embodiment of the present specification is shown. The components of the computing device 600 include but are not limited to a memory 610 and a processor 620. The processor 620 is connected to the memory 610 via a bus 630, and the database 650 is used to store data.
[0158] The computing device 600 also includes an access device 640, which enables the computing device 600 to communicate via one or more networks 660. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 640 may include one or more of any type of network interface (e.g., a network interface card (NIC)) of wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a world-wide interoperability for microwave access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.
[0159] In one embodiment of the present specification, the above components of the computing device 600 and Figure 6 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 6 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.
[0160] The computing device 600 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 600 may also be a mobile or stationary server.
[0161] The processor 620 is used to execute the following computer executable instructions to implement the steps of the above-mentioned method for identifying the type of cleaning brush.
[0162] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the above-mentioned method for identifying the type of cleaning brush belong to the same concept, and the details not described in detail in the technical scheme of the computing device can be referred to the description of the technical scheme of the above-mentioned method for identifying the type of cleaning brush.
[0163] An embodiment of the present specification further provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, are used to implement the steps of the above-mentioned method for identifying the type of cleaning brush.
[0164] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned method for identifying the type of cleaning brush belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned method for identifying the type of cleaning brush.
[0165] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0166] Computer instructions include computer program codes, which may be in source code form, object code form, executable files, or some intermediate form, etc. Computer readable media may include: any entity or device capable of carrying computer program codes, recording media, USB flash drives, mobile hard disks, magnetic disks, optical disks, computer memories, read-only memories (ROM), random access memories (RAM), electrical carrier signals, telecommunication signals, and software distribution media, etc.
[0167] It should be noted that, for the convenience of description, the aforementioned method embodiments are all described as a series of action combinations, but those skilled in the art should be aware that this specification is not limited by the order of the actions described, because according to this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this specification.
[0168] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0169] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A method for identifying the type of cleaning brush, characterized in that: Applied to a cleaning device, the device body of the cleaning device is provided with a set number of first contacts, the cleaning brush is provided with at least two second contacts, the second contacts correspond to any first contacts, and the corresponding relationships of the contacts of different types of cleaning brushes are different, and the method includes: When the cleaning brush is connected to the device body of the cleaning device, a first electrical level is output to a target contact on the device body, wherein the target contact is any first contact provided on the device body; Detecting a second level of other contacts on the device body except the target contact, and determining a conductive contact according to the first level and the second level; According to the conductive contacts and the contact correspondence, the type of the target cleaning brush connected to the device body is determined.
2. The method for identifying the type of cleaning brush according to claim 1, characterized in that: The step of outputting a first level to a target contact on the device body comprises: Outputting a first level to the i-th contact of the device body, wherein i is a positive integer; Correspondingly, detecting the second level of other contacts on the device body except the target contact, and determining the conductive contact according to the first level and the second level includes: Detecting the second level of other contacts after the i-th contact on the device body, and determining whether there is a conducting contact according to the first level and the second level; If there is no conducting contact, the i is incremented by 1, and the process returns to the step of outputting the first level to the i-th contact of the device body until there is a conducting contact or the i is equal to the set value.
3. The method for identifying the type of cleaning brush according to claim 2, characterized in that: The detecting the second level of other contacts after the i-th contact on the device body, and determining whether there is a conducting contact according to the first level and the second level, comprises: Detecting a second electrical level of a j-th contact on the device body, wherein j is greater than i; If the second level of the j-th contact is consistent with the first level, it is determined that the i-th contact and the j-th contact are conductive, and the conductive contacts are recorded as the i-th contact and the j-th contact; If the second level of the j-th contact is inconsistent with the first level, it is determined that the ith contact and the j-th contact are not conductive, j is incremented by 1, and the step of detecting the second level of the j-th contact on the device body is returned to execute until j is equal to the set value.
4. The method for identifying the type of cleaning brush according to claim 2, characterized in that: Before outputting the first level to the i-th contact of the device body, the method further includes: According to the positions of the set number of first contacts, number the set number of first contacts; The starting number of the set value of first contacts is used as the initial value of i.
5. The method for identifying the type of cleaning brush according to any one of claims 1 to 4, characterized in that: In the case where the cleaning brush is connected to the device body of the cleaning device, before outputting the first electrical level to the target contact on the device body, the method further includes: Determining the number of candidate cleaning brush types of the cleaning device; The set value is determined according to the number of types, wherein the set value is the number of contacts to be set.
6. The method for identifying the type of cleaning brush according to any one of claims 1 to 4, characterized in that: In the case where the cleaning brush is connected to the device body of the cleaning device, before outputting the first electrical level to the target contact on the device body, the method further includes: Determine various combination relationships corresponding to the set values, and use the contact point combinations corresponding to the combination relationships as contact point conduction relationships; For a first cleaning brush type, a corresponding first contact conduction relationship is selected from various contact conduction relationships, and the first cleaning brush type and the first contact conduction relationship are stored in correspondence, wherein the first cleaning brush type is any candidate cleaning brush type; The contact point correspondence table is generated based on each cleaning brush type and the corresponding contact point conduction relationship, wherein the contact point correspondence table is used to indicate that the second contact corresponding to the contact point conduction relationship is set on the cleaning brush of the corresponding type.
7. The method for identifying the type of cleaning brush according to claim 6, characterized in that: The step of determining the type of a target cleaning brush connected to the device body according to the conductive contact and the contact correspondence relationship includes: In the contact point correspondence table of the contact point conduction relationship and the cleaning brush type, the target cleaning brush type corresponding to the conductive contact is searched.
8. A cleaning brush type identification unit, characterized in that: Applied to a cleaning device, the device body of the cleaning device is provided with a set number of first contacts, the cleaning brush is provided with at least two second contacts, the second contacts correspond to any first contacts, and the corresponding relationships of the contacts of different types of cleaning brushes are different, and the identification unit includes: An output module is configured to output a first electrical level to a target contact on the device body when the cleaning brush is connected to the device body of the cleaning device, wherein the target contact is any first contact provided on the device body; A first determination module is configured to detect a second level of other contacts on the device body except the target contact, and determine a conductive contact according to the first level and the second level; The second determination module is configured to determine the type of the target cleaning brush connected to the device body according to the conductive contact and the contact correspondence.
9. A cleaning brush type identification circuit, characterized in that: The identification circuit comprises an identification unit and at least one connection plug-in, the at least one connection plug-in is provided with a set value of contacts, the identification unit is provided with a set value of contact detection pins, and the set value of contacts are respectively connected to the contact detection pins corresponding to the identification unit; The identification unit is used for: When the cleaning brush is connected to the device body of the cleaning device, a first level is output to the target contact detection pin, wherein the target contact detection pin is a pin corresponding to the target contact, and the target contact is any contact set on the connecting plug; Detecting the second level of other contact detection pins except the target contact detection pin, and determining the conductive contact according to the first level and the second level; The target cleaning brush type connected to the device body is determined according to the conductive contact and the stored contact correspondence.
10. A cleaning device, characterized in that: The device body of the cleaning device is provided with a circuit for identifying the type of cleaning brush in the cleaning device according to claim 9.
11. A computing device, characterized in that: include: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions to implement the steps of the method for identifying the type of cleaning brush according to any one of claims 1 to 7.
12. A computer-readable storage medium, characterized in that: It stores computer instructions, which, when executed by a processor, implement the steps of the method for identifying the type of cleaning brush described in any one of claims 1 to 7.
Citation Information
Patent Citations
Floor brush type identification method, dust collection equipment and storage medium
CN111938508A
Floor brush identification method of cleaning equipment and cleaning equipment
CN114680745A
Detection circuit and detection method for cleaning brush in cleaning equipment
CN115980858A
Electric toothbrush capable of automatically identifying toothbrush head
CN214549695U
Optimally interconnectable terminal matrix with circuit identification
US11296437B1
