Method and device for configuring software of a robot vacuum cleaner, electronic device and storage medium
By acquiring modification data from the robotic vacuum cleaner client software and generating an environment configuration file, and parsing the target configuration data, the problem of low development efficiency in robotic vacuum cleaner software was solved, enabling dynamic configuration and diversified functional display, thus improving development efficiency.
Patent Information
- Application Number
- CN202210790027.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-06
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2042-07-06
AI Technical Summary
The low development efficiency of robot vacuum cleaner software is mainly due to the frequent code modifications and releases caused by frequent version updates.
By acquiring modified data from the robot vacuum cleaner's client software, a modified configuration file is generated. Based on environmental parameters, matching environmental configuration data is selected, and the target configuration data is parsed to complete the configuration, thus avoiding direct modification of the client software code and the release of new versions.
It improves the development efficiency of robot vacuum cleaner software, enables dynamic configuration and diversified product functions, and reduces the frequency of code modification and version release.
Smart Images

Figure CN115098191B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of robots, and in particular to a configuration method and device of robot software, an electronic device, and a computer readable storage medium. BACKGROUND
[0002] With the rapid development of technology, the update iteration of robot client software is also getting faster and faster. Currently, the update of robot client software or the modification of some configurations or the opening and closing of some functions needs to modify the code of the client software and publish a new version of the client software, and download the new version through the system installed with the robot client software. When the version update frequency is high, the modification of the code and the publication of the new version are too frequent, which causes the development of the robot software to be too many times, thereby reducing the development efficiency of the robot software. SUMMARY
[0003] The main purpose of the present application is to provide a configuration method and device of robot software, an electronic device, and a storage medium, which aims to solve the technical problem of low development efficiency of robot software in the prior art.
[0004] To achieve the above purpose, the present application provides a configuration method of robot software, which is applied to a configuration device of robot software. The configuration method of robot software comprises the following steps:
[0005] Obtaining modification data corresponding to the robot client software, and obtaining a modified configuration file according to the modification data;
[0006] According to the environment parameters corresponding to the modification data, selecting environment configuration data matching the environment parameters in the configuration file;
[0007] Analyzing target configuration data corresponding to the environment configuration data through the robot client software to complete the configuration of the modification data.
[0008] Optionally, the configuration file comprises a public configuration file and a redundant configuration file. Before the step of obtaining modification data corresponding to the robot client software and obtaining a modified configuration file according to the modification data, the method further comprises the following steps:
[0009] Obtaining configuration data of the robot client software;
[0010] Taking the data in the configuration data irrelevant to the environment as public data, and taking the data in the configuration data related to the environment as redundant data;
[0011] The public configuration file is generated according to the public data and a predefined parsing protocol, and the redundant configuration file is generated according to the redundant data and the predefined parsing protocol, wherein the predefined parsing protocol is a protocol predefined by a background developer.
[0012] Optionally, the step of selecting, in the configuration file, environment configuration data matching the environment parameter corresponding to the modification data comprises:
[0013] selecting, in the configuration file, correct configuration data matching the environment parameter corresponding to the modification data;
[0014] obtaining a protocol format of the predefined parsing protocol, and converting a data format of the correct configuration data into the protocol format to obtain environment configuration data matching the environment parameter.
[0015] Optionally, the configuration method is applied to a configuration system, and the configuration system comprises a configuration parsing module and an API module, and before the step of parsing, by the sweeping robot client software, target configuration data corresponding to the environment configuration data, the method further comprises:
[0016] reading and parsing, by the configuration parsing module, the environment configuration data to obtain parsed configuration data;
[0017] reading, by the API module, configuration data corresponding to the sweeping robot client software in the parsed configuration data to obtain the target configuration data.
[0018] Optionally, the step of reading and parsing, by the configuration parsing module, the environment configuration data to obtain parsed configuration data comprises:
[0019] reading and parsing, by the configuration parsing module, the environment configuration data to obtain a parsing result;
[0020] obtaining, according to a predefined parsing protocol, a model in the parsing result as a key and configuration of the model as a value to obtain the parsed configuration data.
[0021] Optionally, the step of reading, by the API module, configuration data corresponding to the sweeping robot client software in the parsed configuration data to obtain the target configuration data comprises:
[0022] obtaining, by the API module, a target model of the sweeping robot client software;
[0023] selecting, in the parsed configuration data, configuration corresponding to the target model to obtain the target configuration data.
[0024] Optionally, the step of parsing the target configuration data by the sweeping robot client software comprises:
[0025] The target configuration data is parsed by the sweeping robot client software according to the predefined parsing protocol, and the target configuration data is displayed.
[0026] To achieve the above object, the application further provides a sweeping robot software configuration device, which is applied to a sweeping robot software configuration apparatus, and comprises:
[0027] An acquisition module is configured to acquire modification data corresponding to the sweeping robot client software, and obtain a modified configuration file according to the modification data;
[0028] A selection module is configured to select environment configuration data matching an environment parameter corresponding to the modification data in the configuration file according to the environment parameter;
[0029] An analysis module is configured to parse target configuration data corresponding to the environment configuration data by the sweeping robot client software, so as to complete the configuration of the modification data.
[0030] Optionally, the configuration file comprises a common configuration file and a redundant configuration file, and before the step of acquiring the modification data corresponding to the sweeping robot client software and obtaining the modified configuration file according to the modification data, the sweeping robot software configuration device is further configured to:
[0031] Acquire configuration data of the sweeping robot client software;
[0032] Treat data irrelevant to the environment in the configuration data as common data, and treat data relevant to the environment in the configuration data as redundant data;
[0033] Generate the common configuration file according to the common data and a predefined parsing protocol, and generate the redundant configuration file according to the redundant data and the predefined parsing protocol, wherein the predefined parsing protocol is an agreement predefined by a background developer.
[0034] Optionally, the selection module is further configured to:
[0035] Select correct configuration data matching the environment parameter corresponding to the modification data in the configuration file;
[0036] Acquire a protocol format of the predefined parsing protocol, and convert a data format of the correct configuration data into the protocol format to obtain environment configuration data matching the environment parameter.
[0037] Optionally, the configuration method is applied to a configuration system, the configuration system comprising a configuration parsing module and an API module, before the step of parsing the target configuration data corresponding to the environment configuration data by the sweeping robot client software, the configuration device of the sweeping robot software is further configured to:
[0038] read and parse the environment configuration data by the configuration parsing module to obtain parsed configuration data;
[0039] read the configuration data corresponding to the sweeping robot client software in the parsed configuration data by the API module to obtain the target configuration data.
[0040] Optionally, the configuration device of the sweeping robot software is further configured to:
[0041] read and parse the environment configuration data by the configuration parsing module to obtain a parsing result;
[0042] obtain the parsed configuration data according to a predefined parsing protocol, taking the model in the parsing result as a key and the configuration of the model as a value.
[0043] Optionally, the configuration device of the sweeping robot software is further configured to:
[0044] obtain the target model of the sweeping robot client software by the API module;
[0045] select the configuration corresponding to the target model in the parsed configuration data to obtain the target configuration data.
[0046] Optionally, the parsing module is further configured to:
[0047] parse the target configuration data according to the predefined parsing protocol by the sweeping robot client software, and display the target configuration data.
[0048] The application also provides an electronic device, comprising a memory, a processor, and a program of the configuration method of the sweeping robot software stored in the memory and executable on the processor, when the program of the configuration method of the sweeping robot software is executed by the processor, the steps of the configuration method of the sweeping robot software as described above can be implemented.
[0049] The application also provides a computer readable storage medium, the computer readable storage medium storing a program of the configuration method of the sweeping robot software, when the program of the configuration method of the sweeping robot software is executed by the processor, the steps of the configuration method of the sweeping robot software as described above can be implemented.
[0050] The application further provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the configuration method of the robot sweeper software.
[0051] The application provides a configuration method and device of robot sweeper software, an electronic device and a storage medium. Compared with modifying the code of the client software and publishing a new version of the client software, and downloading the new version by installing the system of the robot sweeper client software to realize the update of the robot sweeper client software or the modification of some configurations or the opening and closing of some functions, the application obtains modification data corresponding to the robot sweeper client software, and obtains a modified configuration file according to the modification data. According to the environment parameters corresponding to the modification data, environment configuration data matching the environment parameters is selected in the configuration file. The target configuration data corresponding to the environment configuration data is parsed by the robot sweeper client software to complete the configuration of the modification data. The configuration file of the client software is generated. When the update of the client software or the modification of some configurations or the opening and closing of some functions is needed, the target configuration data is obtained and parsed according to the environment parameters of the modification data, so as to complete the configuration of the modification data, thereby realizing the dynamic configuration of the robot sweeper product and the dynamic display of the product function diversification, avoiding the technical defect that the modification of the code and the publication of the new version of the client software are too frequent, and the development of the robot sweeper software is too many, thereby improving the development efficiency of the robot sweeper software. BRIEF DESCRIPTION OF DRAWINGS
[0052] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and serve to explain the principles of the application together with the specification.
[0053] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without creative labor.
[0054] Figure 1 The flowchart of the first embodiment of the configuration method of the robot sweeper software of the application;
[0055] Figure 2 The structural diagram of the configuration device of the robot sweeper software of the application;
[0056] Figure 3 The device structure diagram of the hardware running environment involved in the configuration method of the robot sweeper software in the embodiment of the application.
[0057] The objectives, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0058] In order to make the above objectives, features and advantages of the present application more apparent, clear and complete, the technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0059] Embodiment one
[0060] The present application provides a method for configuring software of a sweeping robot. In a first embodiment of the method for configuring software of a sweeping robot, referring to Figure 1 , the method for configuring software of a sweeping robot is applied to a configuration system, which includes a sweeping robot client software, a database server, a configuration generation module, a configuration analysis module, a cache server and an API (Application Program Interface) module. The sweeping robot client software is in communication connection with the API module. The API module is in communication connection with the cache server. The cache server is in communication connection with the configuration analysis module. The configuration analysis module is in communication connection with the configuration generation module.
[0061] The method for configuring software of a sweeping robot includes:
[0062] Step S10: obtaining modification data corresponding to the sweeping robot client software, and obtaining a modified configuration file according to the modification data.
[0063] In the present embodiment, it should be noted that the modification data can be replacement data in the configuration file, can be deletion data in the configuration file, or can be new data in the configuration file.
[0064] Exemplarily, step S10 includes: the configuration system obtains modification data corresponding to the sweeping robot client software, modifies the configuration file according to the modification data and a predefined analysis protocol, obtains a modified configuration file, determines an environment parameter corresponding to the modification data, and sends the configuration file, the environment parameter and the modification data to the configuration generation module.
[0065] Step S20, selecting environment configuration data matching the environment parameter in the configuration file according to the environment parameter corresponding to the modification data;
[0066] Illustratively, step S20 includes that the configuration generation module receives the configuration file, the modification data and the environment parameter, the configuration generation module obtains the environment configuration data corresponding to the modification data by querying the environment parameter in the configuration file, and saves the environment configuration data to the database server.
[0067] Step S30, parsing target configuration data corresponding to the environment configuration data by the sweeping robot client software to complete the configuration of the modification data.
[0068] Illustratively, step S30 includes that the sweeping robot client software acquires the target configuration data sent by the configuration parsing module, reads and parses the target configuration data to complete the configuration of the modification data.
[0069] Before step S30, before the step of parsing the target configuration data corresponding to the environment configuration data by the sweeping robot client software, the method further includes:
[0070] Step A10, reading and parsing the environment configuration data by the configuration parsing module to obtain parsed configuration data;
[0071] Step A20, reading configuration data corresponding to the sweeping robot client software in the parsed configuration data by the API module to obtain the target configuration data.
[0072] Illustratively, steps A10 to A20 include that the configuration parsing module reads and parses the environment configuration data in the database server to obtain parsed configuration data, and sends the parsed configuration data to the cache server; the API module reads the parsed configuration data in the cache server, determines configuration data corresponding to the sweeping robot client software in the parsed configuration data to obtain the target configuration data, and sends the target configuration data to the sweeping robot client software, wherein the cache server can be a redis server.
[0073] In step A10, the step of reading and parsing the environment configuration data by the configuration parsing module to obtain parsed configuration data includes:
[0074] Step A11, reading and parsing the environment configuration data by the configuration parsing module to obtain a parsing result;
[0075] Step A12, according to a predefined parsing protocol, taking the model in the parsing result as a key and the configuration of the model as a value, obtaining the parsing configuration data.
[0076] In this embodiment, it should be noted that the model is the model of the robot cleaner.
[0077] Illustratively, steps A11 to A12 include: the configuration parsing module reading and parsing the environment configuration data in the database server to obtain a parsing result; according to a predefined parsing protocol, taking the model in the parsing result as a key and the configuration of the model as a value, obtaining the parsing configuration data, and saving the parsing configuration data to the cache server.
[0078] In step A20, the step of obtaining the target configuration data by reading the configuration data corresponding to the robot cleaner client software in the parsing configuration data through the API module includes:
[0079] Step A21, obtaining the target model of the robot cleaner client software through the API module.
[0080] Step A22, selecting the configuration corresponding to the target model in the parsing configuration data to obtain the target configuration data.
[0081] Illustratively, steps A21 to A22 include: the API module obtaining the target model sent by the robot cleaner client software; reading the parsing configuration data in the cache server and querying the target model in the parsing configuration data to obtain the corresponding configuration as the target configuration data, and sending the target configuration data to the robot cleaner client software.
[0082] The embodiment of the application provides a method for configuring software of a sweeping robot, compared with modifying the code of client software and publishing a new version of the client software, and downloading the new version by installing the system of the client software of the sweeping robot, to realize the update of the client software of the sweeping robot or the modification of some configurations or the opening and closing of some functions, the embodiment of the application obtains modification data corresponding to the client software of the sweeping robot, and obtains a modified configuration file according to the modification data; according to environment parameters corresponding to the modification data, environment configuration data matched with the environment parameters is selected in the configuration file; target configuration data corresponding to the environment configuration data is parsed by the client software of the sweeping robot, so that the configuration of the modification data is completed, the configuration file of the client software is generated, when the update of the client software or the modification of some configurations or the opening and closing of some functions is needed, target configuration data is obtained and parsed according to the environment parameters of the modification data, so that the configuration of the modification data is completed, so that the dynamic configuration of the sweeping robot product is realized, and the dynamic display of product functions is realized, and the technical defect that the code is easily modified and the new version is easily published too frequently is avoided, so that the development efficiency of the software of the sweeping robot is improved.
[0083] Embodiment two
[0084] Further, based on the first embodiment of the application, in another embodiment of the application, the same or similar contents as the above embodiment one can refer to the above introduction, and the following will not be repeated. On this basis, in step S10, the configuration file includes a public configuration file and a redundant configuration file, before the step of obtaining the configuration file of the client software of the sweeping robot, the method further includes:
[0085] Step S11, obtaining configuration data of the client software of the sweeping robot;
[0086] Step S12, regarding data irrelevant to the environment in the configuration data as public data, and regarding data relevant to the environment in the configuration data as redundant data;
[0087] Step S13, generating the public configuration file according to the public data and a predefined parsing protocol, and generating the redundant configuration file according to the redundant data and the predefined parsing protocol, wherein the predefined parsing protocol is a protocol predefined by a background developer.
[0088] Exemplarily, the steps S11 to S13 include: the configuration system obtaining published data of the robot cleaner client software to obtain configuration data; selecting environment-unrelated data in the configuration data as public data and selecting environment-related data in the configuration data as redundant data; generating the public configuration file according to the public data and a predefined parsing protocol and generating the redundant configuration file according to the redundant data and the predefined parsing protocol to obtain an unmodified configuration file.
[0089] In step S20, the step of selecting environment configuration data matching the environment parameter in the configuration file according to the modification data corresponding to the environment parameter includes:
[0090] In step C10, correct configuration data matching the environment parameter corresponding to the modification data is selected in the configuration file.
[0091] In step C20, a protocol format of the predefined parsing protocol is obtained, and a data format of the correct configuration data is converted into the protocol format to obtain environment configuration data matching the environment parameter.
[0092] Exemplarily, the steps C10 to C20 include: the configuration generation module queries the environment parameter corresponding to the modification data in the configuration file to obtain correct configuration data corresponding to the environment parameter; a protocol format of the predefined parsing protocol is obtained, and a data format of the correct configuration data is modified into the protocol format to obtain environment configuration data matching the environment parameter, and the environment configuration data is sent to a database server to save the environment configuration data into a corresponding field by the database server.
[0093] In step S30, the step of parsing the target configuration data by the robot cleaner client software includes:
[0094] In step S31, the target configuration data is parsed by the robot cleaner client software according to the predefined parsing protocol, and the target configuration data is displayed.
[0095] Exemplarily, the step S31 includes: the robot cleaner client software receives the target configuration data sent by the API module, parses configuration information corresponding to the target configuration data according to the predefined parsing protocol, and displays the configuration information.
[0096] The embodiment of the application provides a method for configuring software of a sweeping robot, compared with modifying the code of the client software and publishing a new version of the client software, and downloading the new version by installing the client software of the sweeping robot to realize the update of the client software of the sweeping robot or the modification of some configurations or the opening and closing of some functions, the embodiment of the application obtains modification data corresponding to the client software of the sweeping robot, and obtains a modified configuration file according to the modification data; according to environment parameters corresponding to the modification data, environment configuration data matched with the environment parameters is selected in the configuration file; target configuration data corresponding to the environment configuration data is parsed by the client software of the sweeping robot, so that the configuration of the modification data is completed, the configuration file of the client software is generated, when the update of the client software or the modification of some configurations or the opening and closing of some functions is needed, target configuration data is obtained and parsed according to the environment parameters of the modification data, so that the configuration of the modification data is completed, so that the dynamic configuration of the sweeping robot product is realized, and the dynamic display of the product function diversification is realized, and the technical defect that the code is easily modified and the new version is easily published too frequently when the code of the client software is modified and the new version of the client software is published is avoided, so that the development efficiency of the software of the sweeping robot is improved.
[0097] Embodiment three
[0098] The embodiment of the application further provides a configuration device of software of a sweeping robot, the configuration device of the software of the sweeping robot is applied to a configuration device of software of a sweeping robot, and the configuration device of the software of the sweeping robot comprises Figure 2 , and the configuration device of the software of the sweeping robot comprises:
[0099] The obtaining module is used for obtaining modification data corresponding to the client software of the sweeping robot, and obtaining a modified configuration file according to the modification data.
[0100] The selecting module is used for selecting environment configuration data matched with environment parameters in the configuration file according to the environment parameters corresponding to the modification data.
[0101] The parsing module is used for parsing target configuration data corresponding to the environment configuration data by the client software of the sweeping robot, so as to complete the configuration of the modification data.
[0102] Optionally, the configuration file comprises a public configuration file and a redundant configuration file, and before the step of obtaining the modification data corresponding to the client software of the sweeping robot and obtaining the modified configuration file according to the modification data, the configuration device of the software of the sweeping robot is further used for:
[0103] obtaining configuration data of the client software of the sweeping robot.
[0104] The data in the configuration data that is irrelevant to the environment is selected as common data, and the data in the configuration data that is relevant to the environment is selected as redundant data.
[0105] The common configuration file is generated according to the common data and a predefined resolution protocol, and the redundant configuration file is generated according to the redundant data and the predefined resolution protocol, wherein the predefined resolution protocol is a protocol predefined by a background developer.
[0106] Optionally, the selecting module is further configured to:
[0107] select correct configuration data that matches the environment parameter corresponding to the modification data in the configuration file;
[0108] obtain a protocol format of the predefined resolution protocol, and convert a data format of the correct configuration data into the protocol format to obtain environment configuration data that matches the environment parameter.
[0109] Optionally, the configuration method is applied to a configuration system, and the configuration system comprises a configuration resolution module and an API module, and before the step of resolving target configuration data corresponding to the environment configuration data by the sweeping robot client software, the configuration device of the sweeping robot software is further configured to:
[0110] read and resolve the environment configuration data by the configuration resolution module to obtain resolution configuration data;
[0111] read configuration data corresponding to the sweeping robot client software in the resolution configuration data by the API module to obtain the target configuration data.
[0112] Optionally, the configuration device of the sweeping robot software is further configured to:
[0113] read and resolve the environment configuration data by the configuration resolution module to obtain a resolution result;
[0114] according to a predefined resolution protocol, take a model in the resolution result as a key and take configuration of the model as a value to obtain the resolution configuration data.
[0115] Optionally, the configuration device of the sweeping robot software is further configured to:
[0116] obtain a target model of the sweeping robot client software by the API module;
[0117] select configuration corresponding to the target model in the resolution configuration data to obtain the target configuration data.
[0118] Optionally, the parsing module is further configured to:
[0119] The target configuration data is parsed by the sweeping robot client software according to the predefined parsing protocol, and the target configuration data is displayed.
[0120] The sweeping robot software configuration device provided in the application adopts the sweeping robot software configuration method in the above embodiments, and solves the technical problem of low development efficiency of sweeping robot software. Compared with the prior art, the sweeping robot software configuration device provided in the application has the same beneficial effects as the sweeping robot software configuration method provided in the above embodiments, and other technical features in the sweeping robot software configuration device are the same as the features disclosed in the above method embodiments, which will not be repeated here.
[0121] Embodiment Four
[0122] The application provides an electronic device, which includes at least one processor, and a memory connected with the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the sweeping robot software configuration method in the above embodiments.
[0123] Reference will now be made to the following description Figure 3 , which shows a structural schematic diagram of an electronic device suitable for implementing the embodiments of the present disclosure. The electronic device in the embodiments of the present disclosure can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Tablet Personal Computers), PMPs (Portable Multimedia Players), vehicle terminals (such as vehicle navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 3 The electronic device shown is only an example, and should not impose any limitation on the functions and use range of the embodiments of the present disclosure.
[0124] As shown in Figure 3 , the electronic device can include a processing device (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) or loaded into a random access memory (RAM) from a storage device. In the RAM, various programs and data required for the operation of the electronic device are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. An input / output (I / O) interface is also connected to the bus.
[0125] Generally, the following systems can be connected to the I / O interface: input devices including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices including, for example, a magnetic tape, a hard disk, etc.; and communication devices. The communication devices can allow the electronic device to communicate wirelessly or wiredly with other devices to exchange data. Although the electronic device is illustrated as having various systems, it is understood that all of the illustrated systems are not required to implement or have. More or less systems can be implemented or have instead.
[0126] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for performing the methods illustrated by the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via the communication device, or installed from the storage device, or installed from the ROM. When the computer program is executed by the processing device, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.
[0127] The electronic device provided in the present application adopts the configuration method of the sweeping robot software in the above-mentioned embodiments, and solves the technical problem of low development efficiency of the sweeping robot software. Compared with the prior art, the electronic device provided in the embodiments of the present application has the same beneficial effects as the configuration method of the sweeping robot software provided in the above-mentioned embodiments, and other technical features in the electronic device are the same as the features disclosed in the above-mentioned embodiment methods, which will not be described here.
[0128] It should be understood that parts of the present disclosure can be realized by hardware, software, firmware, or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0129] The above is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical range disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0130] Embodiment five
[0131] The present embodiment provides a computer readable storage medium having stored thereon computer readable program instructions for performing the method of the configuration method of the sweeping robot software in the above-mentioned embodiments.
[0132] The computer readable storage medium provided by the embodiments of the present application may, for example, be a U disk, but is not limited to an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the embodiments, the computer readable storage medium can be any tangible medium containing or storing a program that can be used or combined with an instruction execution system, system, or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0133] The above computer readable storage medium can be contained in an electronic device; or can exist separately without being assembled into an electronic device.
[0134] The above computer readable storage medium carries one or more programs, when the one or more programs are executed by the electronic device, the electronic device: obtains modification data corresponding to the sweeping robot client software, and obtains a modified configuration file according to the modification data; selects environment configuration data matching the environment parameter in the configuration file according to the environment parameter corresponding to the modification data; and parses target configuration data corresponding to the environment configuration data through the sweeping robot client software, to complete the configuration of the modification data.
[0135] Computer program code for carrying out operations of the present disclosure can be written in one or more programming languages or combinations of the above, including an object-oriented programming language such as Java, Smalltalk, C++, or a conventional procedural programming language such as "C" language or similar programming languages. Program code can be executed entirely on a user computer, partially on a user computer, as a separate software package, partially on a user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, through the Internet using an Internet service provider).
[0136] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0137] The modules described in the embodiments of the present disclosure can be implemented by software, or by hardware. In some cases, the name of the module does not limit the module itself.
[0138] The computer readable storage medium provided by the present application stores computer readable program instructions for executing the configuration method of the sweeping robot software, and solves the technical problem of low development efficiency of the sweeping robot software. Compared with the prior art, the computer readable storage medium provided by the embodiments of the present application has the same beneficial effects as the configuration method of the sweeping robot software provided by the above embodiments, and will not be described here.
[0139] Embodiment six
[0140] The present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the configuration method of the sweeping robot software as described above.
[0141] The computer program product provided by the present application solves the technical problem of low development efficiency of the sweeping robot software. Compared with the prior art, the computer program product provided by the embodiments of the present application has the same beneficial effects as the configuration method of the sweeping robot software provided by the above embodiments, and will not be described here.
[0142] The above is only the preferred embodiment of the present application, and does not limit the patent scope of the present application, and any equivalent structure or equivalent process transformation using the content of the specification and drawings, or direct or indirect application in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for configuring software of a robot vacuum cleaner, the method comprising: receiving a user input of a configuration parameter of the software; and configuring the software based on the user input. The configuration method of the sweeping robot software comprises: obtaining modification data corresponding to the sweeping robot client software, and obtaining a modified configuration file according to the modification data; selecting environment configuration data matching the environment parameters in the configuration file according to the environment parameters corresponding to the modification data; parsing target configuration data corresponding to the environment configuration data through the sweeping robot client software to complete the configuration of the modification data; wherein the configuration file comprises a public configuration file and a redundant configuration file, and before the step of obtaining the modification data corresponding to the sweeping robot client software and obtaining the modified configuration file according to the modification data, the method further comprises: obtaining configuration data of the sweeping robot client software; regarding data irrelevant to the environment in the configuration data as public data, and regarding data relevant to the environment in the configuration data as redundant data; generating the public configuration file according to the public data and a predefined parsing protocol, and generating the redundant configuration file according to the redundant data and the predefined parsing protocol, wherein the predefined parsing protocol is a protocol predefined by a background developer; wherein the step of selecting environment configuration data matching the environment parameters in the configuration file according to the environment parameters corresponding to the modification data comprises: selecting correct configuration data matching the environment parameters corresponding to the modification data in the configuration file; obtaining a protocol format of the predefined parsing protocol, and converting a data format of the correct configuration data into the protocol format to obtain environment configuration data matching the environment parameters; the configuration method is applied to a configuration system comprising a configuration parsing module and an API module, and before the step of parsing the target configuration data through the sweeping robot client software, the method further comprises: reading and parsing the environment configuration data through the configuration parsing module to obtain a parsing result; regarding a model in the parsing result as a key and configuration of the model as a value to obtain parsed configuration data according to a predefined parsing protocol; obtaining a target model of the sweeping robot client software through the API module; and selecting configuration corresponding to the target model in the parsed configuration data to obtain the target configuration data.
2. The method of claim 1, wherein the configuration of the software of the robotic cleaner is performed by a user. the step of parsing the target configuration data through the sweeping robot client software comprises: parsing the target configuration data according to the predefined parsing protocol through the sweeping robot client software, and displaying the target configuration data.
3. A configuration device of a software of a robot sweeper, applied to the configuration method of the software of the robot sweeper according to any one of claims 1 to 2, characterized in that, the configuration device of the sweeping robot software comprises: an obtaining module for obtaining modification data corresponding to the sweeping robot client software, and obtaining a modified configuration file according to the modification data; a selecting module for selecting environment configuration data matching the environment parameters in the configuration file according to the environment parameters corresponding to the modification data; The parsing module is configured to parse target configuration data corresponding to the environment configuration data by the sweeping robot client software to complete the configuration of the modification data.
4. An electronic device, comprising: The electronic device includes: at least one processor; and a memory connected with the at least one processor in communication; wherein The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the steps of the configuration method of the sweeping robot software according to any one of claims 1 to 2.
5. A computer readable storage medium, characterized in that, The computer readable storage medium stores a program for implementing the configuration method of the sweeping robot software, and the program is executed by the processor to implement the steps of the configuration method of the sweeping robot software according to any one of claims 1 to 2.
Citation Information
Patent Citations
Configuration data processing method and device
CN107800781A
Windows form application behavior simulation robot and working method thereof
CN111880897A
Operating environment configuration method and device, storage medium and electronic device
CN114090074A