Electronic equipment, scrubber and working accessory identification method of electronic equipment
By arranging a driving circuit and a sampling unit in the main body of the electronic device, and using driving pulse and curve fitting technology to identify the type of working accessories, the problems of high structural complexity and cost of electronic equipment and working accessories, and poor versatility of the identification method are solved. Highly accurate and low-cost attachment identification.
Patent Information
- Application Number
- CN202310264675.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-17
- Publication Date
- 2024-09-27
AI Technical Summary
Electronic equipment and work accessories have high structural complexity and production costs, and traditional work accessory identification methods have poor versatility.
By setting up a drive circuit and a sampling unit in the main body of the device, the drive pulse is output in response to the accessory recognition command, and the working parameters are obtained to determine the accessory type. This avoids the need for additional communication interfaces and circuits, and uses curve fitting to improve recognition accuracy.
It reduces structural complexity and cost, improves the versatility and accuracy of accessory identification, and optimizes user experience and the service life of accessories.
Smart Images

Figure CN118697237A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology, and specifically relates to an electronic device, a floor scrubber, and a method for identifying working accessories of the electronic device. Background Art
[0002] At present, in order to expand the working capacity of electronic devices, multiple working accessories can be configured for the same electronic device, and different working accessories can be installed on the device body of the electronic device to perform different working tasks. For example, taking a floor scrubber as an example, the same floor scrubber can be configured with multiple floor brushes, and different floor brushes are used to perform different types of cleaning tasks, such as floor brush 1 is used to clean dust, floor brush 2 is used to clean stains, etc.
[0003] The working accessories are generally detachably connected to the device body of the electronic device. The device body includes: a control unit, and a driving circuit connected to the control unit. When the working accessories are connected to the device body, the working accessories are connected to the driving circuit. For different working accessories, the control unit controls the driving circuit to perform different driving actions to drive the working accessories to operate. Based on this, the electronic device needs to identify the currently installed working accessories.
[0004] In the traditional accessory identification method, after the working accessory is connected to the device body, an additional communication line is connected between the control unit and the working accessory. The working accessory transmits its own type information to the control unit through the communication line, and the control unit identifies the type of the working accessory based on the type information.
[0005] However, the method of adding a communication line requires adding a communication circuit that matches the communication line and an interface for the communication line both in the device body and the working accessory. In this case, the structural complexity and manufacturing cost of the electronic device and the working accessory are both high. At the same time, for electronic devices that do not have a communication circuit and a communication interface added to the device body, the working accessory cannot be identified by the above method, which also leads to the problem that the traditional working accessory identification method has poor versatility. Summary of the invention
[0006] The technical problems to be solved by the present application include the problems that the structural complexity and manufacturing cost of the electronic device and the working accessories are relatively high, and the identification method of the working accessories has poor universality.
[0007] In order to solve the above technical problems, on the one hand, the present application provides an electronic device, the electronic device comprising:
[0008] A device body, the device body being detachably connected to the working accessory;
[0009] a driving circuit disposed in the device body to provide a driving pulse to the working accessory when the device body is connected to the working accessory;
[0010] A sampling unit provided on the driving circuit to collect working parameters of the driving circuit;
[0011] A control unit connected to the driving circuit is used to control the driving circuit to output a first driving pulse in response to an accessory identification instruction; obtain the working parameters collected by the sampling unit; and determine the type of the working accessory based on the working parameters.
[0012] Optionally, determining the type of the working accessory based on the working parameter includes:
[0013] Performing curve fitting on the working parameters to obtain a fitting function curve;
[0014] Determine the index value of the preset comparison index according to the fitting function curve, and different types of work attachments have different corresponding index values;
[0015] The indicator value is compared with a preset value range to obtain the type of the working attachment.
[0016] Optionally, the operating parameter includes current data; the preset comparison index includes at least one of a current change rate, a current change amount, and a target current value at a target time point, or a combination thereof.
[0017] Optionally, drive motors with different inductances are provided in different working accessories; and the current change rate and the current change amount are both positively correlated with the inductance.
[0018] Optionally, controlling the driving circuit to output a first driving pulse includes:
[0019] Controlling the driving circuit to output the first driving pulse within a preset time period;
[0020] or,
[0021] The driving circuit is controlled to output a preset number of first driving pulses.
[0022] Optionally, the preset time duration or the preset number enables the working accessory to maintain a stationary state when being driven by the driving force of the driving circuit.
[0023] Optionally, the control unit is further used for:
[0024] Obtaining a static time duration for each working accessory to maintain a static state when driven by the first driving pulse;
[0025] The preset duration and the preset number are determined based on the static duration.
[0026] Optionally, the control unit is further used for:
[0027] In case of detecting that the working accessory is installed, generating the accessory identification instruction;
[0028] or,
[0029] When a work instruction is received, the attachment identification instruction is generated.
[0030] Optionally, after determining the type of the working accessory based on the working parameter, the control unit is further configured to:
[0031] The driving circuit is controlled to output a second driving pulse to drive the working accessory to operate.
[0032] On the other hand, the present application also provides a floor scrubber, comprising: a main body, which is detachably connected to a working accessory; a driving circuit arranged in the main body to provide a driving pulse to the working accessory when the main body is connected to the working accessory; a sampling unit arranged on the driving circuit to collect working parameters of the driving circuit; a control unit connected to the driving circuit, which is used to control the driving circuit to output a first driving pulse in response to an accessory identification instruction; obtain the working parameters collected by the sampling unit; and determine the type of the working accessory based on the working parameters.
[0033] On the other hand, the present application also provides a method for identifying a working accessory of an electronic device, the electronic device comprising a device body and a working accessory, the device body being provided with a driving circuit, the driving circuit being provided with a sampling unit, the electronic device comprising:
[0034] In response to the accessory identification instruction, controlling the driving circuit to output a first driving pulse;
[0035] Acquiring the working parameters collected by the sampling unit;
[0036] A type of the operating accessory is determined based on the operating parameters.
[0037] The technical solution provided in the present application has at least the following advantages: by controlling the drive circuit to output a first drive pulse in response to an accessory identification instruction; obtaining the working parameters collected by the sampling unit; and determining the type of the working accessory based on the working parameters, the problem that the electronic device and the working accessories have high structural complexity and high manufacturing cost, and the working accessory identification method has poor versatility can be solved; since the working parameters in the drive circuit collected by the sampling unit are obtained, the type of the working accessory can be determined based on the working parameters, and there is no need to add a communication interface and an additional communication circuit, thereby reducing the structural complexity and cost, and since no additional communication lines and communication interfaces are required, the versatility of the accessory identification method can also be improved.
[0038] In addition, the working parameters are curve-fitted to obtain a fitting function curve. Since the fitting function curve has strong visibility, it is more intuitive to obtain the preset comparison index through the fitting function curve, thereby reducing the complexity of obtaining the preset comparison index and facilitating user use.
[0039] In addition, fitting the working parameters can reduce the influence of abnormal parameters in the working parameters, so that a more accurate preset comparison value can be obtained, thereby improving the accuracy of the attachment identification method.
[0040] In addition, since the inductance is positively correlated with the current change rate and the current change amount, when the working parameter is current data, the type of working accessory can be accurately identified by using at least one of the current change rate, the current change amount and the target current value at the target time point as a preset comparison indicator.
[0041] In addition, when the working parameter is current data, at least one of the current change rate, the current change amount, and the target current value at the target time point is used as the preset comparison indicator. The preset comparison indicator can be flexibly selected according to the differences between the working accessories to improve the intelligence level of the electronic device and optimize the user experience.
[0042] In addition, the preset time length or preset number allows the working accessory to maintain a stationary state under the driving force of the driving circuit, which can avoid interference factors introduced by the working accessory performing different tasks, thereby improving the accuracy of the accessory identification method.
[0043] In addition, when a work instruction is received, the work accessory is identified so that the work component performs a work task that matches the identified type, avoiding damage to the work accessory by an incompatible work task. This not only improves the intelligence level of the electronic device, but also increases the service life of the work accessory. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the specific implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0045] Figure 1 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application;
[0046] Figure 2 is a schematic diagram of a driving circuit provided by an embodiment of the present application;
[0047] Figure 3is a flow chart of a method for identifying working accessories of an electronic device provided by an embodiment of the present application;
[0048] Figure 4 is a schematic diagram of an oscilloscope displaying a current waveform and a time waveform provided by an embodiment of the present application;
[0049] Figure 5 is a schematic diagram of current data and cumulative sum provided by an embodiment of the present application;
[0050] Figure 6 is a schematic diagram of a fitting function curve corresponding to Appendix 1 provided in one embodiment of the present application;
[0051] Figure 7 is a schematic diagram of a fitting function curve corresponding to Appendix 2 provided in one embodiment of the present application;
[0052] Figure 8 is a schematic diagram of a fitting function curve corresponding to Appendix 3 provided in one embodiment of the present application;
[0053] Fig. 9 It is a schematic diagram of a preset numerical range provided by an embodiment of the present application. DETAILED DESCRIPTION
[0054] The technical solution of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. The present application will be described in detail below with reference to the accompanying drawings and in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.
[0055] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0056] In the present application, unless otherwise specified, the directional words used, such as "up, down, top, bottom", usually refer to the directions shown in the drawings, or to the components themselves in the vertical, perpendicular or gravity directions; similarly, for ease of understanding and description, "inside and outside" refer to the inside and outside relative to the outline of each component itself, but the above-mentioned directional words are not used to limit the present application.
[0057] In this application, electronic equipment refers to equipment that is composed of electronic components such as integrated circuits, transistors, and electron tubes, and uses electronic technology software to function. Electronic equipment includes but is not limited to: floor scrubbers or lawn mowers. This embodiment does not limit the type of electronic equipment.
[0058] Figure 1is a schematic diagram of the structure of an electronic device 100 provided by an embodiment of the present application. Figure 1 As shown, the electronic device 100 at least includes: a device body 20 and a working accessory 10.
[0059] The device body 20 is used to support other components.
[0060] A driving circuit is disposed inside the device body 20 . When the device body 20 is connected to the working accessory 10 , the driving circuit can provide a driving pulse to the working accessory 10 to drive the working accessory 10 to run and perform a working task.
[0061] For example, when the electronic device 100 is a floor scrubber and the working attachment 10 is a roller brush, the roller brush can be driven to rotate to clean the surface to be cleaned.
[0062] Figure 2 is a schematic diagram of a driving circuit 200 provided by an embodiment of the present application. In the driving circuit 200, G7 ( Figure 2 21) is used to connect the control unit, CON2 ( Figure 2 22) is used to connect the working accessory 10. The control unit controls the driving circuit 200 to output a second driving pulse to drive the working accessory 10 to operate.
[0063] according to Figure 2 It can be known that the driving circuit 200 at least includes a sampling unit 23 .
[0064] When a circuit transmits an electrical signal, it usually transmits the analog signal through an analog circuit composed of operational amplifier transistors. Since the analog signal has weak anti-interference ability and will introduce noise, and the analog signal will attenuate with distance, the analog signal needs to be amplified in time during the transmission process, which will also cause the introduced noise to be amplified, thereby reducing the accuracy of the electrical signal; and the long-distance transmission rate of the analog signal is also low.
[0065] Moreover, the circuit involves a large number of complex operations, logic processing and signal processing when transmitting electrical signals, and the electrical signals transmitted by analog signals have low accuracy and too slow transmission rate to realize all circuit functions. Therefore, the circuit usually has a sampling unit 23, which samples the analog signal and converts the sampled model signal into a digital signal for transmission. The higher the sampling rate of the sampling unit 23, the more accurate the digital signal obtained.
[0066] Digital signals have strong anti-interference capabilities and are not easily introduced with noise, so the accuracy of the transmitted electrical signals is higher; and there will be no attenuation problem as the transmission distance increases, so it is also suitable for long-distance transmission, so the long-distance transmission rate is also higher.
[0067] The sampling unit 23 is also called an analog digital converter (ADC), or AD for short.
[0068] In this embodiment, the sampling unit 23 is also used to collect working parameters in the driving circuit 200 and return the working parameters to the control unit so that the driving circuit 200 can identify the type of the working accessory 10 through the working parameters. The working parameters include voltage data, current data, etc.
[0069] Optionally, since noise may be generated when the driving circuit 200 transmits a signal, a filtering unit 24 is further provided in the driving circuit 200 , and the filtering unit 24 is used to filter out the noise in the circuit.
[0070] The filter unit 24 includes but is not limited to: a π-type capacitor-resistor (RC) filter circuit; a π-type passive (LC filter, LC) filter circuit, etc. This embodiment does not limit the implementation method of the filter unit 24.
[0071] In this embodiment, two π-type RC filter circuits are used to form the filter unit 24 to eliminate noise in the driving circuit 200 and improve the accuracy of the collected working parameters.
[0072] Optionally, an electronic switch unit 25 is further provided in the driving circuit 200 to realize the on and off of the driving circuit 200 through the electronic switch unit 25 .
[0073] In this embodiment, a field effect transistor (Metal-Oxide-Semiconductor Field-Effect Transistor, MOS) is used as the electronic switch. In other embodiments, the electronic switch includes but is not limited to: a thyristor, a transistor, a field effect transistor, a thyristor, etc. This embodiment does not limit the implementation method of the electronic switch.
[0074] Since the load increases after adding the electronic switch to the circuit, the driving circuit 200 optionally further includes a pre-driving unit 26. The pre-driving unit 26 is used to amplify the driving force of the control unit to ensure that the control unit can drive the operation of the electronic switch.
[0075] Optionally, a circuit protection unit 27 is further provided in the driving circuit 200 , and the circuit protection unit 27 includes at least one protection circuit to prevent the electronic device 100 from being damaged.
[0076] In this embodiment, the circuit protection unit 27 includes a short-circuit protection circuit. When a short circuit is sensed in the driving circuit 200, the short-circuit protection unit is used to output a large current in time to cut off the power supply, thereby avoiding damage to the electronic device 100, thereby improving the safety of the electronic device 100.
[0077] In other embodiments, the circuit protection unit 27 may be a reverse connection protection circuit, an overvoltage protection circuit, or a combination of two or more protection circuits. This embodiment does not limit the implementation of the circuit protection unit 27.
[0078] The working attachment 10 is detachably connected to the device body 20, and the working attachment 10 is a component on the electronic device 100 used to perform a working task. The working attachment 10 is different based on the type of the electronic device 100. Specifically, the working attachment 10 of the lawn mower is a blade, and the working attachment 10 of the floor scrubber is a roller brush.
[0079] In order to expand the working range of the electronic device 100, the same electronic device 100 can also be equipped with a variety of working accessories 10 with different functions to perform different working tasks. Schematically, when the electronic device 100 is a floor scrubber, one working accessory 10 is used to clean stains, and another working accessory 10 is used to clean dust.
[0080] Different types of working accessories 10 have different inductances.
[0081] Among them, inductance is also called self-inductance coefficient. Inductance refers to the induced magnetic field generated in the coil due to the magnetic induction effect when current flows through the coil, and the induced magnetic field will generate induced current, which will resist the current passing through the coil. Therefore, it can be seen that inductance is proportional to both the rate of change of current and the amount of change of current.
[0082] In one example, the working attachment 10 is provided with a driving motor, and driving motors with different inductances are provided in different working attachments 10. Specifically, taking the electronic device 100 as a floor scrubber as an example, driving motors with different inductances are provided in different floor brushes.
[0083] In another example, different working accessories 10 have different structures, and thus different working accessories 10 have different loads, so that the inductances of different working accessories 10 are different.
[0084] According to the above principle, the type of the working accessory 10 can be determined based on different inductances. In this embodiment, the determination process of the type of the working accessory 10 is implemented by the control unit. Specifically, the control unit is connected to the drive circuit 200, and the control unit is used to: respond to the accessory identification instruction, control the drive circuit 200 to output the first drive pulse; obtain the working parameters collected by the sampling unit 23; and determine the type of the working accessory 10 based on the working parameters.
[0085] By outputting a first driving pulse to the driving circuit 200 and then using the sampling unit 23 to obtain the working parameters in the driving circuit 200 to determine the inductance, the type of the working accessory 10 can be determined based on the inductance.
[0086] The control unit includes a memory and a processor, and the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array).
[0087] The processor may also include a main processor and a coprocessor. The main processor is a processor used to process data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor used to process data in the standby state.
[0088] The memory may include one or more computer-readable storage media, which may be non-transitory. The memory may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices.
[0089] In other embodiments, the electronic device 100 may further optionally include: a peripheral device interface and at least one peripheral device. The processor, the memory and the peripheral device interface may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface via a bus, a signal line or a circuit board. Schematically, the peripheral devices include but are not limited to: a radio frequency circuit, an audio circuit, and a power supply.
[0090] Of course, the electronic device 100 may also include fewer or more components, which is not limited in this embodiment.
[0091] Optionally, the electronic device 100 is taken as a floor scrubber for example. The floor scrubber includes a main body and a working accessory, and the main body is detachably connected to the working accessory. A driving circuit is provided in the main body, and the driving circuit provides a driving pulse for the working accessory when the main body is connected to the working accessory. A sampling unit is provided on the driving circuit, and the sampling unit collects working parameters of the driving circuit. The control unit is connected to the driving circuit, and the control unit is used to control the driving circuit to output a first driving pulse in response to an accessory identification instruction. The control unit obtains the working parameters collected by the sampling unit, and determines the type of the working accessory based on the working parameters.
[0092] In this embodiment, the main body of the floor scrubber includes a body and a handle connected to the body. The body is used to support and connect other accessories of the floor scrubber, and the handle can help the user move the floor scrubber.
[0093] The handle is provided with a button for sending instructions to the floor scrubber. The user can send instructions to the floor scrubber by triggering the button of the handle, which can improve the use effect and convenience of the floor scrubber.
[0094] Different work attachments have different types, and different types of work attachments have different functions.
[0095] The working accessories of the floor scrubber include cleaning accessories, which include a roller and fluff arranged on the roller. After the fluff contacts the surface to be cleaned, the dirt on the surface to be cleaned can be adsorbed on the fluff surface to improve the cleaning ability of the cleaning accessory.
[0096] The working accessories also include a cleaning accessory, which includes a floor brush body and filamentous bristles arranged on the floor brush. The cleaning accessory is used to clean dust on the surface to be cleaned.
[0097] The user can replace the cleaning attachment with the sweeping attachment, or replace the sweeping attachment with the cleaning attachment as needed.
[0098] In other embodiments, the floor scrubber may further include other working accessories, such as a floor seam cleaning accessory, etc. This embodiment does not limit the type of working accessories.
[0099] Optionally, the floor scrubber is further provided with a self-cleaning accessory. After the floor scrubber completes the cleaning task, the self-cleaning accessory can be started to clean the cleaning accessory, thereby improving the cleaning effect of the floor scrubber.
[0100] Optionally, a water tank is provided on the body of the floor scrubber.
[0101] The water tank is used to hold cleaning fluid or clean water. When the floor scrubber is cleaning dirt, using the clean water or cleaning fluid in the water tank to wet the cleaning attachment can improve the cleaning effect of the floor scrubber.
[0102] Optionally, the floor scrubber is also provided with a sewage tank and a sewage suction attachment. The sewage tank is used to hold dirt, including but not limited to dust and dirt.
[0103] The dirt suction attachment is used to suck the dirt roll into the sewage tank. While the floor scrubber is cleaning the surface to be cleaned, the dirt suction attachment is activated to suck the dirt roll on the surface to be cleaned and the cleaning components into the sewage tank to prevent dirt from remaining on the ground.
[0104] Among them, the sewage suction accessories include a negative pressure generator.
[0105] Since wet cleaning accessories are prone to mold growth, optionally, the floor scrubber is also provided with a drying accessory to reduce the wetness (ie, water content) of the cleaning accessory, avoid the growth of mold, and improve the user experience.
[0106] The drying component includes but is not limited to a heating wire or a fan, etc. This embodiment does not limit the implementation method of the drying component.
[0107] In actual implementation, the floor scrubber may also include other accessories required for operation, such as power supply accessories, mobile accessories, etc., which are not listed one by one in this embodiment.
[0108] In other embodiments, the electronic device 100 may also be a lawn mower, and this embodiment does not limit the implementation method of the electronic device 100.
[0109] In this embodiment, by responding to the accessory identification instruction, controlling the drive circuit to output the first drive pulse; acquiring the working parameters collected by the sampling unit; and determining the type of the working accessory based on the working parameters, the problem that the electronic device and the working accessories have high structural complexity and high manufacturing cost, and the working accessory identification method has poor versatility can be solved; since the working parameters in the drive circuit collected by the sampling unit are acquired, the type of the working accessory can be determined based on the working parameters, and there is no need to add a communication interface and an additional communication circuit, thereby reducing the structural complexity and cost, and at the same time, since no additional communication lines are required, the versatility can be improved.
[0110] Next, based on the above embodiment, a working accessory identification method of an electronic device provided by the present application is described. Figure 1 In the electronic device shown, the method is specifically used in the control unit of the electronic device as an example for explanation. In actual implementation, the method can also be used in other devices that are communicatively connected to the cleaning device, such as: for user terminals, or servers, etc., wherein user terminals include but are not limited to: mobile phones, computers, tablet computers, wearable devices, etc. This embodiment does not limit the implementation methods of other devices and user terminals.
[0111] The communication connection method may be wired communication or wireless communication, and the wireless communication method may be short-distance communication or wireless communication, etc. This embodiment does not limit the communication method between the cleaning device and other devices.
[0112] Figure 3 This is a flow chart of a method for identifying working accessories of an electronic device provided by an embodiment of the present application, the method comprising at least the following steps:
[0113] Step 301, in response to an accessory identification instruction, controlling a driving circuit to output a first driving pulse.
[0114] Since the type of working accessory needs to be identified by inductance, the operation of the drive circuit needs to be controlled.
[0115] The attachment identification instruction is used to instruct the electronic device to identify the type of the working attachment. Optionally, the attachment identification instruction is obtained in the following three ways:
[0116] The first is to generate an accessory recognition instruction when the installation of a working accessory is detected.
[0117] Since the working accessory is detachably connected to the device body, it is possible to first detect whether the working accessory is installed. When it is detected that the working accessory is installed, the type of the working accessory is identified. When it is detected that the working accessory is not installed, the electronic device generates an alarm message to remind the user to install the working accessory.
[0118] The warning information may be flashing lights or voice reminders, etc. This embodiment does not limit the implementation method of the warning information.
[0119] When it is detected that a working accessory is installed, an accessory identification instruction is generated to identify the type of the working accessory, which can avoid the problem of a driving circuit short circuit caused by the working accessory not being installed, thereby improving the safety of the electronic device.
[0120] The second is to generate an attachment identification instruction when a work instruction is received.
[0121] Since different work attachments match different work tasks, when a work instruction is received, the type of the work attachment is identified to control the work attachment to perform the work task that matches the type of the work attachment.
[0122] The work instruction is used to instruct the electronic device to perform work. The work instruction may be pre-stored in the electronic device, or may be automatically generated after the electronic device is powered on. This embodiment does not limit the generation method of the work instruction.
[0123] The third type is that an attachment identification button is provided on the electronic device, and when a trigger operation acting on the attachment identification button is received, an attachment identification instruction is generated.
[0124] The attachment identification button may be a physical button, or may be a virtual button displayed on a touch screen. This embodiment does not limit the implementation method of the attachment identification button.
[0125] Users can identify accessories as needed to replace working accessories, thereby improving the applicability of electronic devices and enhancing user experience.
[0126] The first driving pulse is used to drive the driving circuit to operate so that the sampling unit can collect the working parameters of the driving circuit. The more working parameters the sampling unit collects, the more accurate the inductance determined based on the working parameters, and the higher the accuracy of accessory identification.
[0127] Different types of electronic devices have different drive pulses output by the drive circuit. For example, when the electronic device is a floor scrubber, the first drive pulse may be 19V, while when the electronic device is a lawn mower, the first drive pulse may be 40V.
[0128] Optionally, controlling the driving circuit to output the first driving pulse includes: controlling the driving circuit to output the first driving pulse within a preset time length;
[0129] Alternatively, the driving circuit is controlled to output a preset number of first driving pulses.
[0130] Outputting a preset number of first driving pulses refers to controlling the driving circuit to output the preset number of first driving pulses in sequence according to time.
[0131] The preset number and the preset duration may be pre-stored in the electronic device or acquired from other devices. This embodiment does not limit the method for acquiring the preset number and the preset duration.
[0132] By extending the output time of the first driving pulse or increasing the number of output first driving pulses to improve the working parameters collected by the sampling unit, the accuracy of accessory recognition can be improved.
[0133] It should be noted that when the driving pulse duration is too long, it will cause the working accessories to operate, thereby introducing other interference factors and reducing the accuracy of accessory recognition.
[0134] For example, when the electronic device is a floor scrubber, the working components for cleaning stains and the working components for cleaning dust will be subjected to different friction forces due to the different contact tightness with the surface to be cleaned. Therefore, the different loads generated will affect the inductance and thus affect the accuracy of accessory recognition.
[0135] Therefore, the preset time length or the preset number enables the working accessory to maintain a stationary state under the driving force of the driving circuit.
[0136] Optionally, the static time length during which each working accessory maintains a static state when driven by the first driving pulse is obtained; and a preset time length and a preset number are determined based on the static time length.
[0137] In one example, the electronic device stores the static time duration corresponding to each work accessory, selects the shortest static time duration as the preset time duration, or determines the preset number based on the shortest static time duration.
[0138] However, there may be situations where a certain type of working accessory is not stored in the electronic device.
[0139] Therefore, in another example, the working accessories are installed on the electronic device in sequence, and the various static time periods from the output of the first driving pulse by the driving circuit to the operation of the working accessories are recorded, and the shortest static time period among the various static time periods is selected as the preset time period; or, the preset number is determined based on the shortest static time period.
[0140] By setting the preset number and the preset duration, it is possible to avoid introducing other interference factors in the recognition process of the work attachments, thereby ensuring the accuracy of the attachment recognition.
[0141] Step 302: Acquire the working parameters collected by the sampling unit.
[0142] The working parameter may be calculated by the sampling unit, or may be calculated by the control unit after the sampling unit inputs the sampling data into the control unit. This embodiment does not limit the way of obtaining the working parameter.
[0143] Since the driving circuit is unstable when outputting the first driving pulse, the current may suddenly rise or fall. At this time, the collected working parameters are inaccurate, which will affect the accuracy of accessory recognition.
[0144] Optionally, obtaining the working parameters collected by the sampling unit includes: obtaining the working parameters collected by the sampling unit when a preset time reaches a sampling time.
[0145] The delay duration may be input by a user or obtained from other devices. This embodiment does not limit the method for obtaining the delay duration.
[0146] Specifically, Figure 4 As shown, the electronic device can be connected to an oscilloscope. The oscilloscope is used to obtain a current waveform 41 in the driving circuit, and when the current waveform 41 is observed to be stable, the delay time is determined in the time waveform 42.
[0147] For example, the delay time is 20us.
[0148] Step 303: Determine the type of the work attachment based on the work parameters.
[0149] Optionally, the type of the work attachment is determined based on the work parameter, including but not limited to the following two determination methods:
[0150] The first method is to compare the working parameters with the preset working parameters to obtain the type of working attachment.
[0151] The preset working parameters may be pre-stored in the electronic device or may be input by a user. This embodiment does not limit the method for obtaining the preset working parameters.
[0152] The second method is to perform curve fitting on the working parameters to obtain a fitting function curve; determine the index value of the preset comparison index based on the fitting function curve, and different types of working accessories correspond to different index values; compare the index value with the preset value range to obtain the type of the working accessory.
[0153] Wherein, when the working parameter is current data, the preset comparison index includes at least one of a current change rate, a current change amount and a target current value at a target time point or a combination thereof.
[0154] At this time, one or more preset comparison indicators may be selected based on the difference in inductance between the working accessories, thereby improving the accuracy and flexibility of identifying the electronic device.
[0155] Since the output waveform of the driving circuit contains glitches, which are any transitions that cross the logic threshold more than once between samples, the glitches will affect the reliability of the sampled data. The least squares method can eliminate the impact of glitches during the fitting process.
[0156] Optionally, taking the operating parameter as current data as an example, the operating parameter is fitted using the least square method.
[0157] The least squares method is also known as the least square method. It can find the best function matching for data by minimizing the sum of squares of errors, so that the sum of squares of errors between the obtained data and the actual data is minimized, so that the fitting object is infinitely close to the target object.
[0158] The formula for the least squares fitting straight line is:
[0159] y=k×x+b, where x is the sampling order (i.e., the number of samplings), y is the current value corresponding to each sampling, and b is the target current value when x is 0. In other embodiments, x can also be the sampling time, and accordingly, y is the current value corresponding to each sampling time. Then the calculation formula of k is:
[0160]
[0161] Among them, n is the total number of sampling times, i is the sampling number, is the sampling average obtained by adding all i and dividing by i, is the average value of n current values.
[0162] After obtaining k, the method of undetermined coefficients can be used to substitute x=0 and y=0 into formula (1) to solve for b.
[0163] At this time, k is the current change rate, b is the target current value at the target time point, and the current change is the cumulative sum of n current values.
[0164] Below, a specific embodiment is used to illustrate the working accessory identification method of the electronic device provided in the present application, taking the delay time of 20us, the first drive pulse of 19V, the working parameter as current data, the fitting method as the least squares method, the preset indicator value without the preset current change rate and the preset current change amount as an example.
[0165] Step 1, in response to the accessory identification instruction, control the driving circuit to output a first driving pulse of 19V.
[0166] Step 2: Obtain the current data collected by the sampling unit, as follows: Figure 5 shown.
[0167] In this embodiment, the sampling unit performs sampling 10 times.
[0168] Step 3, use the least square method to fit the current data, and obtain the fitting function curves of the three working accessories respectively. The fitting function curve corresponding to accessory 1 is as follows: Figure 6 As shown in Appendix 2, the corresponding fitting function curve is as follows Figure 7 As shown in Appendix 3, the corresponding fitting function curve is as follows Figure 8 shown.
[0169] Step 4: Determine the preset comparison index as the current change amount and the circuit change rate according to the fitting function curves of the three working accessories; then Figure 5-Figure 8 It can be seen that the current change of Attachment 1 is 952 and the circuit change rate is 5.503, the current change of Attachment 2 is 1974 and the circuit change rate is 17.964, and the current change of Attachment 1 is 2024 and the circuit change rate is -1.0545.
[0170] Step 5: Compare the indicator values with Fig. 9 By comparing the preset value range shown in the figure, it is found that Attachment 1 is type ②, Attachment 2 is type ③, and Attachment 3 is type ①.
[0171] In this embodiment, by responding to the accessory identification instruction, controlling the drive circuit to output the first drive pulse; acquiring the working parameters collected by the sampling unit; and determining the type of the working accessory based on the working parameters, the problem that the electronic device and the working accessories have high structural complexity and high manufacturing cost, and the working accessory identification method has poor versatility can be solved; since the working parameters in the drive circuit collected by the sampling unit are acquired, the type of the working accessory can be determined based on the working parameters, and there is no need to add a communication interface and an additional communication circuit, thereby reducing the structural complexity and cost, and at the same time, since no additional communication lines are required, the versatility can be improved.
[0172] In addition, the working parameters are curve-fitted to obtain a fitting function curve. Since the fitting function curve has strong visibility, it is more intuitive to obtain the preset comparison index through the fitting function curve, thereby reducing the complexity of obtaining the preset comparison index and facilitating user use.
[0173] In addition, fitting the working parameters can reduce the influence of abnormal parameters in the working parameters, so that a more accurate preset comparison value can be obtained, thereby improving the accuracy of the attachment identification method.
[0174] In addition, since the inductance is positively correlated with the current change rate and the current change amount, when the working parameter is current data, the type of working accessory can be accurately identified by using at least one of the current change rate, the current change amount and the target current value at the target time point or a combination thereof as the preset comparison index.
[0175] In addition, when the working parameter is current data, at least one of the current change rate, the current change amount, and the target current value at the target time point, or a combination thereof, is used as the preset comparison indicator. The preset comparison indicator can be flexibly selected according to the differences between the working accessories, thereby improving the intelligence level of the electronic device and optimizing the user experience.
[0176] In addition, the preset time length or preset number allows the working accessory to maintain a stationary state under the driving force of the driving circuit, which can avoid interference factors introduced by the working accessory performing different tasks, thereby improving the accuracy of the accessory identification method.
[0177] In addition, when a work instruction is received, the work accessory is identified so that the work component performs a work task that matches the identified type, avoiding damage to the work accessory by an incompatible work task. This not only improves the intelligence level of the electronic device, but also increases the service life of the work accessory.
[0178] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0179] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
[0180] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, ordinary technicians in this field can make other different forms of changes or modifications without making creative work, which should all fall within the scope of protection of the present application.
Claims
1. An electronic device, characterized in that: The electronic device comprises: A device body, the device body being detachably connected to the working accessory; a driving circuit disposed in the device body to provide a driving pulse to the working accessory when the device body is connected to the working accessory; A sampling unit provided on the driving circuit to collect working parameters of the driving circuit; A control unit connected to the driving circuit is used to control the driving circuit to output a first driving pulse in response to an accessory identification instruction; obtain the working parameters collected by the sampling unit; and determine the type of the working accessory based on the working parameters.
2. The electronic device according to claim 1, characterized in that: The determining the type of the working accessory based on the working parameter comprises: Performing curve fitting on the working parameters to obtain a fitting function curve; Determine the index value of the preset comparison index according to the fitting function curve, and different types of work attachments have different corresponding index values; The indicator value is compared with a preset value range to obtain the type of the working attachment.
3. The electronic device according to claim 2, characterized in that: The working parameters include current data; the preset comparison index includes at least one of a current change rate, a current change amount, and a target current value at a target time point, or a combination thereof.
4. The electronic device according to claim 3, characterized in that: Different working accessories are provided with driving motors with different inductances; the current change rate and the current change amount are both positively correlated with the inductance.
5. The electronic device according to claim 1, characterized in that: The controlling the driving circuit to output a first driving pulse comprises: Controlling the driving circuit to output the first driving pulse within a preset time period; or, The driving circuit is controlled to output a preset number of first driving pulses.
6. The electronic device according to claim 5, characterized in that: The preset time length or the preset number enables the working accessory to maintain a stationary state under the driving force of the driving circuit, and the control unit is further used for: Obtaining a static time duration for each working accessory to maintain a static state when driven by the first driving pulse; The preset duration and the preset number are determined based on the static duration.
7. The electronic device according to claim 1, characterized in that: The control unit is also used for: In case of detecting that the working accessory is installed, generating the accessory identification instruction; or, When a work instruction is received, the attachment identification instruction is generated.
8. The electronic device according to any one of claims 1 to 7, characterized in that: After determining the type of the working accessory based on the working parameter, the control unit is further configured to: The driving circuit is controlled to output a second driving pulse to drive the working accessory to operate.
9. A floor scrubber, characterized in that: include: A main body, the main body being detachably connected to the working attachment; A driving circuit disposed in the main body to provide a driving pulse for the working accessory when the main body is connected to the working accessory; A sampling unit provided on the driving circuit to collect working parameters of the driving circuit; A control unit connected to the driving circuit is used to control the driving circuit to output a first driving pulse in response to an accessory identification instruction; obtain the working parameters collected by the sampling unit; and determine the type of the working accessory based on the working parameters.
10. A method for identifying working accessories of an electronic device, characterized in that: The electronic device comprises a device body and working accessories, the device body is provided with a driving circuit, the driving circuit is provided with a sampling unit, and the electronic device comprises: In response to the accessory identification instruction, controlling the driving circuit to output a first driving pulse; Acquiring the working parameters collected by the sampling unit; A type of the operating accessory is determined based on the operating parameters.
