CN112413826A - Device configuration method and device, electronic device and storage medium - Google Patents

Device configuration method and device, electronic device and storage medium Download PDF

Info

Publication number
CN112413826A
CN112413826A CN202011268169.7A CN202011268169A CN112413826A CN 112413826 A CN112413826 A CN 112413826A CN 202011268169 A CN202011268169 A CN 202011268169A CN 112413826 A CN112413826 A CN 112413826A
Authority
CN
China
Prior art keywords
equipment
configuration
data
communication module
coded data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011268169.7A
Other languages
Chinese (zh)
Other versions
CN112413826B (en
Inventor
晏章章
陈志扬
卢杰
刘洪钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Zhuhai Lianyun Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai, Zhuhai Lianyun Technology Co Ltd filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011268169.7A priority Critical patent/CN112413826B/en
Publication of CN112413826A publication Critical patent/CN112413826A/en
Application granted granted Critical
Publication of CN112413826B publication Critical patent/CN112413826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/52Indication arrangements, e.g. displays
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/54Control or safety arrangements characterised by user interfaces or communication using one central controller connected to several sub-controllers
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/50Control or safety arrangements characterised by user interfaces or communication
    • F24F11/56Remote control
    • F24F11/58Remote control using Internet communication
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F24HEATING; RANGES; VENTILATING
    • F24FAIR-CONDITIONING; AIR-HUMIDIFICATION; VENTILATION; USE OF AIR CURRENTS FOR SCREENING
    • F24F11/00Control or safety arrangements
    • F24F11/88Electrical aspects, e.g. circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Combustion & Propulsion (AREA)
  • Mechanical Engineering (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Small-Scale Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a device configuration method, a device, electronic equipment and a storage medium, wherein the method comprises the following steps: under the condition of triggering a device configuration request, determining a device corresponding to the device configuration request; acquiring coded data corresponding to the equipment from a communication module, wherein the coded data is acquired by the equipment at an equipment installation stage and is sent to the communication module for storage; and searching configuration data corresponding to the coded data, and configuring the equipment based on the configuration data, wherein the configuration data comprises equipment identification and/or equipment position. Therefore, the equipment acquires the coded data in the equipment installation stage and sends the coded data to the communication module for storage, so that the coded data corresponding to the equipment is acquired in the equipment configuration stage, the configuration data corresponding to the coded data is searched, the automatic configuration of the equipment can be realized based on the configuration data, the operation is simplified, and the user experience is improved.

Description

Device configuration method and device, electronic device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a device configuration method and device, electronic equipment and a storage medium.
Background
The multi-split central air conditioner is a type of central air conditioner for users, commonly called as 'one driving more', and refers to a primary refrigerant air conditioning system in which one outdoor unit is connected with two or more indoor units through a pipe, the outdoor side adopts an air cooling heat exchange mode, and the indoor side adopts a direct evaporation heat exchange mode. The multi-split central air conditioner is applied to small and medium-sized buildings and partial public buildings increasingly and widely at present due to the convenient distribution network of the multi-split central air conditioner.
In the related art, after the configuration terminal is finished for the distribution network of the multi-split central air conditioner, the same equipment name and the same position are displayed on the configuration terminal for the indoor units of the same type, and a user cannot distinguish the indoor units. Therefore, the currently adopted approach is: the user is required to come to the specific position of the indoor unit, the state of the indoor unit is changed through the wired control terminal such as the display, the indoor unit with the changed state is observed on the configuration terminal, the position of the indoor unit is modified on the configuration terminal, and the equipment name of the indoor unit is renamed.
Because the current adopted mode needs a user to come to a specific position of the indoor unit, the state of the indoor unit is changed through a display and a wired control terminal, the indoor unit with the state change is observed on a configuration terminal, the position of the indoor unit is modified on the configuration terminal, and the equipment name of the indoor unit is renamed, so that the operation is complicated and the experience is poor for the user.
Disclosure of Invention
In order to solve the technical problems that in the currently adopted mode, a user needs to come to a specific position of an indoor unit, the state of the indoor unit is changed through a display and a wired control terminal, the indoor unit with the state change is observed on a configuration terminal, the position of the indoor unit is modified on the configuration terminal, and the equipment name of the indoor unit is renamed, so that the operation is complicated and the experience is poor for the user, the embodiment of the invention provides an equipment configuration method, an equipment configuration device, electronic equipment and a storage medium.
In a first aspect of the embodiments of the present invention, a device configuration method is first provided, where the method includes:
under the condition of triggering a device configuration request, determining a device corresponding to the device configuration request;
acquiring coded data corresponding to the equipment from a communication module, wherein the coded data is acquired by the equipment at an equipment installation stage and is sent to the communication module for storage;
and searching configuration data corresponding to the coded data, and configuring the equipment based on the configuration data, wherein the configuration data comprises equipment identification and/or equipment position.
In an optional embodiment, the searching for the configuration data corresponding to the encoded data includes:
and searching the configuration data corresponding to the coded data according to the preset mapping relation between the coded data and the configuration data.
In an optional embodiment, the determining, under the condition that the device configuration request is triggered, a device corresponding to the device configuration request includes:
under the condition of finishing the equipment distribution network, triggering an equipment configuration request;
under the condition of triggering the equipment configuration request, analyzing an address identifier carried in the equipment configuration request;
and determining the equipment corresponding to the address identification.
In an optional embodiment, the determining, under the condition that the device configuration request is triggered, a device corresponding to the device configuration request includes:
under the condition of receiving a configuration notification sent by a communication module, triggering an equipment configuration request;
the communication module triggers and sends a configuration notification under the condition of acquiring the coded data of the equipment;
under the condition of triggering the equipment configuration request, analyzing an address identifier carried in the equipment configuration request;
and determining the equipment corresponding to the address identification.
In an optional embodiment, the method further comprises:
the equipment acquires an address identifier at the equipment installation stage, creates an incidence relation between the address identifier and the coded data, and sends the incidence relation to the communication module for storage;
the obtaining of the encoded data corresponding to the device from the communication module includes:
determining an address identifier of the device;
and acquiring the coded data corresponding to the address identifier from a communication module according to the association relation.
In an optional embodiment, the sending to the communication module for storage includes:
determining a first storage area of the coded data, and storing the coded data in the first storage area;
and under the condition that a preset condition is triggered, the coded data is sent to the communication module through a bus network for storage.
In an optional embodiment, the method further comprises:
under the condition of triggering a reconfiguration request, analyzing reconfiguration data carried in the reconfiguration request;
and sending the reconfiguration data to the equipment through the communication module so as to enable the equipment to determine a second storage area of the reconfiguration data and store the reconfiguration data in the second storage area.
In a second aspect of embodiments of the present invention, there is provided an apparatus for configuring a device, the apparatus including:
the device configuration module is used for determining a device corresponding to the device configuration request under the condition of triggering the device configuration request;
the data acquisition module is used for acquiring coded data corresponding to the equipment from a communication module, wherein the coded data are acquired by the equipment in an equipment installation stage and are sent to the communication module for storage;
the data searching module is used for searching the configuration data corresponding to the coded data;
a device configuration module, configured to configure the device based on the configuration data, where the configuration data includes a device identifier and/or a device location.
In a third aspect of the embodiments of the present invention, there is further provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the device configuration method according to the first aspect when executing a program stored in a memory.
In a fourth aspect of the embodiments of the present invention, there is also provided a storage medium, in which instructions are stored, and when the storage medium is run on a computer, the storage medium causes the computer to execute the device configuration method described in the first aspect.
In a fifth aspect of the embodiments of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to perform the device configuration method described in the first aspect above.
According to the technical scheme provided by the embodiment of the invention, under the condition of triggering the equipment configuration request, the equipment corresponding to the equipment configuration request is determined, the coded data corresponding to the equipment is obtained from the communication module, wherein the coded data is obtained by the equipment at the equipment installation stage and is sent to the communication module for storage, the configuration data corresponding to the coded data is searched, the configuration data comprises the equipment identification and/or the equipment position, and the equipment is configured based on the configuration data. Therefore, the equipment acquires the coded data in the equipment installation stage and sends the coded data to the communication module for storage, so that the coded data corresponding to the equipment is acquired in the equipment configuration stage, the configuration data corresponding to the coded data is searched, the automatic configuration of the equipment can be realized based on the configuration data, the operation is simplified, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a device configuration method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an application scenario when encoded data is stored according to an embodiment of the present invention;
FIG. 3 is an interaction flow diagram of another device configuration method shown in the embodiment of the present invention;
fig. 4 is a schematic diagram of an application scenario for searching for encoded data according to an embodiment of the present invention;
fig. 5 is a schematic view of an application scenario when reconfiguration is performed on configuration data according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of an apparatus configuration device shown in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device shown in the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As shown in fig. 1, an implementation flow diagram of an apparatus configuration method provided in an embodiment of the present invention is shown, where the method may be used for configuring a terminal, and specifically may include the following steps:
s101, under the condition of triggering the equipment configuration request, determining the equipment corresponding to the equipment configuration request.
In the embodiment of the present invention, a user may trigger a configuration request through a configuration terminal, so that the configuration terminal may determine a device corresponding to the device configuration request under the condition that the device configuration request is triggered. Here, the configuration terminal may be a mobile phone, a tablet, a PDA, a notebook, and the like, which is not limited in this embodiment of the present invention.
Under the condition of triggering the device configuration request, the configuration terminal can analyze the address identifier carried in the device configuration request and determine the device corresponding to the address identifier, so that the device corresponding to the device configuration request is determined. Here, the device may be an indoor unit (air conditioner), and may also be other devices, which is not limited in the embodiment of the present invention.
For example, in the embodiment of the present invention, a user may click a certain button on a mobile phone APP to trigger an indoor unit configuration request, so that when the indoor unit configuration request is triggered, an address identifier carried in the indoor unit configuration request is analyzed, and an indoor unit corresponding to the address identifier is determined, as shown in table 1 below.
Address identification Indoor machine
Address identification 1 Indoor machine A
Address identification 2 Indoor machine B
…… ……
TABLE 1
It should be noted that, the address identifier may be a MAC address of the device, or may be an IP address of the device, which is not limited in this embodiment of the present invention.
S102, obtaining the coded data corresponding to the equipment from a communication module, wherein the coded data are obtained by the equipment in an equipment installation stage and are sent to the communication module for storage.
In an embodiment of the invention, for the device, the location has been substantially determined during the device installation phase, and the device identification and/or the device location may be entered by an installer via the device display during the device installation phase, in case the device has completed commissioning. Here, the device identifier may be a name of the device, may be an ID of the device, and the device location may be a number of a floor where the device is located, a number of a room where the device is located, and a type of the room where the device is located, which is not limited in this embodiment of the present invention.
At present, most of device displays are not embedded with input methods, so that the device identification and/or the device position cannot be directly recorded, and the device identification and/or the device position can be subjected to preset coding. For example, the room types may be numbered with numbers 0-9, specifying which room type each number represents, e.g., 0 for the living room, 1 for the bedroom, etc.
Based on the idea, the device can acquire the encoded data at the device installation stage and send the encoded data to the communication module for storage, so that at the device configuration stage, the configuration terminal can acquire the encoded data corresponding to the device from the communication module. The device can send the coded data to the communication module to be stored through the bus network.
For example, as shown in fig. 2, an installer inputs encoded data through a device display in a device installation stage, and the meaning of each part in the encoded data is shown in table 2 below, the device may obtain the encoded data input by the installer and send the encoded data to the communication module through the bus network for storage, so that in a device configuration stage, the configuration terminal may obtain the encoded data corresponding to the device from the communication module.
Figure BDA0002776753720000071
TABLE 2
It should be noted that, the communication module may be a wireless communication module or a wired communication module, which is not limited in the embodiment of the present invention. The bus Network may be a serial communication protocol bus applied in real time, and specifically may be a CAN (Controller Area Network), RS-485, and the like, which is not limited in the embodiment of the present invention.
S103, searching configuration data corresponding to the coded data, and configuring the equipment based on the configuration data, wherein the configuration data comprises equipment identification and/or equipment position.
For the obtained encoded data corresponding to the device, the configuration terminal in the embodiment of the present invention may search for configuration data corresponding to the encoded data, so as to configure the device based on the configuration data. The configuration data may be stored locally in the configuration terminal, and specifically may include a device identifier and/or a device location.
For example, for encoded data: "0001001200010000", "0002001200020001", … …, the configuration terminal can locally search the configuration data corresponding to the encoded data, as shown in table 3 below, so as to configure the indoor unit a, the indoor unit B, … … based on the configuration data, and thus the name, the number of the floor, the number of the room, and the type of the room of each of the indoor units a, the indoor units B, … … will be changed.
Figure BDA0002776753720000081
TABLE 3
Through the above description of the technical solution provided by the embodiment of the present invention, in the case of triggering the device configuration request, determining the device corresponding to the device configuration request, and acquiring the encoded data corresponding to the device from the communication module, where the encoded data is acquired by the device at the device installation stage and is sent to the communication module for storage, searching for the configuration data corresponding to the encoded data, where the configuration data includes the device identifier and/or the device location, and configuring the device based on the configuration data.
Therefore, the equipment acquires the coded data in the equipment installation stage and sends the coded data to the communication module for storage, so that the coded data corresponding to the equipment is acquired in the equipment configuration stage, the configuration data corresponding to the coded data is searched, the automatic configuration of the equipment can be realized based on the configuration data, the operation is simplified, and the user experience is improved.
As shown in fig. 3, an interaction flow diagram of another device configuration method provided in the embodiment of the present invention is shown, where the method specifically includes the following steps:
s301, the device acquires the address identification and the coded data in the device installation stage.
In the embodiment of the present invention, for a device, an address identifier and encoded data may be acquired at a device installation stage, where the address identifier and the encoded data correspond to the device.
For example, in the device installation stage, the indoor unit a, the indoor unit B, and the indoor unit … … may respectively obtain the corresponding address identifier and the coded data, as shown in table 4 below.
Figure BDA0002776753720000082
Figure BDA0002776753720000091
TABLE 4
S302, the device creates the association relation between the address identification and the coded data.
In the device installation phase, for the acquired address identifier and the encoded data, the device may create an association relationship between the address identifier and the encoded data.
For example, as the address label and the encoded data shown in table 4 above, the indoor unit a, the indoor unit B, and the indoor unit … … may create an association between the address label and the encoded data, respectively, as shown in table 5 below.
Association creator Address identification Encoding data
Indoor machine A MAC address of indoor unit A 0001001200010000
Indoor machine B MAC address of indoor unit B 0002001200020001
…… …… ……
TABLE 5
And S303, the equipment sends the association relation and the coded data to the communication module for storage.
For the created association relationship and the encoded data of the device, the device may send the association relationship and the encoded data to the communication module for storage.
Before the communication module is sent to the communication module for storage, the device can determine the association relation and a first storage area of the coded data, store the association relation and the coded data in the first storage area, and send the association relation and the coded data to the communication module for storage under the condition that a preset condition is triggered.
For example, the indoor unit a may determine the association between the address identifier "MAC address of the indoor unit a" and the encoded data "0001001200010000" and the encoded data "0001001200010000", store the association and the encoded data in the first storage area, and transmit the association and the encoded data to the communication module for storage when a predetermined condition is triggered. The processing of the indoor unit B and the indoor units C and … … are similar, and the embodiments of the present invention are not described in detail herein.
In addition, in the embodiment of the present invention, when the current time reaches the preset time, that is, the preset condition is triggered, so that the device sends the association relationship and the encoded data to the communication module for storage under the condition that the preset condition is triggered.
For example, for the indoor unit a, when the current time reaches 12:00, the indoor unit a transmits the association between the address mark "MAC address of the indoor unit a" and the encoded data "0001001200010000" and the encoded data "0001001200010000" to the communication module for storage. The processing of the indoor unit B and the indoor units C and … … are similar, and the embodiments of the present invention are not described in detail herein.
S304, the configuration terminal determines the equipment corresponding to the equipment configuration request under the condition of triggering the equipment configuration request.
In the embodiment of the invention, when the equipment normally works, a user can carry out network distribution on the equipment through the configuration terminal, and the data interaction is carried out between the configuration terminal and the communication module according to a network distribution protocol.
The device configuration request can be triggered when the device distribution network is completed, so that the configuration terminal can analyze the address identifier carried in the device configuration request and determine the device corresponding to the address identifier when the device configuration request is triggered.
For example, in the embodiment of the present invention, when the distribution network is completed for the indoor unit a, the indoor unit B, and the indoor unit … …, the indoor unit configuration request may be triggered, so that when the indoor unit configuration request is triggered, the configuration terminal analyzes the address identifier carried in the indoor unit configuration request, and determines the indoor unit corresponding to the address identifier, as shown in table 1 above.
In addition, in the embodiment of the present invention, the communication module triggers a configuration notification and sends the configuration notification to the configuration terminal when receiving the encoded data and the association relationship of the device, so that the configuration terminal can receive the configuration notification sent by the communication module, and when receiving the configuration notification sent by the communication module, the configuration terminal triggers a device configuration request, and can analyze an address identifier carried in the device configuration request and determine a device corresponding to the address identifier.
For example, the communication module may trigger the configuration notification and send the configuration notification to the configuration terminal when receiving … … the encoded data and the association relationship of the indoor unit a sent by the indoor unit a, the encoded data and the association relationship of the indoor unit B sent by the indoor unit B, so that the configuration terminal may receive the configuration notification sent by the communication module, and when receiving the configuration notification sent by the communication module, the configuration terminal triggers the device configuration request, and may analyze the address identifier carried in the device configuration request and determine the device corresponding to the address identifier, as shown in table 1 above.
S305, the configuration terminal determines the address identifier of the equipment and acquires the coded data corresponding to the address identifier from the communication module according to the association relation.
For the configuration terminal, the address identifier of the device can be determined, so that the coded data corresponding to the address identifier can be obtained from the communication module according to the association relationship between the address identifier and the coded data.
For example, the configuration terminal identifies the MAC address of the indoor unit a, the MAC address of the indoor unit B, and … …, and searches for encoded data "0001001200010000", "0002001200020001", and … …, which correspond to the MAC address of the indoor unit a, the MAC address of the indoor unit B, and … …, respectively, from the communication module as shown in fig. 4, based on the association between the address identifier and the encoded data shown in table 4.
S306, the configuration terminal searches the configuration data corresponding to the coded data and configures the equipment based on the configuration data.
In the embodiment of the invention, the mapping relation between the coded data and the configuration data is preset, so that the configuration data corresponding to the coded data can be searched according to the preset mapping relation between the coded data and the configuration data, and the equipment is configured based on the configuration data.
For example, in the embodiment of the present invention, a mapping relationship between encoded data and configuration data is set in advance, and as shown in table 5, the configuration data "air conditioner in living room (indoor unit a), floor 12, room 1, and living room" corresponding to encoded data "0001001200010000" is searched for based on the preset mapping relationship between encoded data and configuration data, and the indoor unit a is configured based on the configuration data. The processing of other indoor units is similar, and the embodiment of the invention does not limit this.
In addition, if the user is not satisfied with the configuration result, a reconfiguration request may be triggered, and in the case of triggering the reconfiguration request, the reconfiguration data carried in the reconfiguration request is analyzed, and the reconfiguration data is sent to the device through the communication module, so that the device determines a second storage area of the reconfiguration data, and stores the reconfiguration data in the second storage area. Here the reconfiguration data may be the reconfigured device identity and/or device location.
For example, as shown in fig. 5, a user may click a button on a mobile phone APP to trigger an indoor unit a reconfiguration request, and when the indoor unit a reconfiguration request is triggered, the mobile phone may analyze reconfiguration data carried in the indoor unit a reconfiguration request, and send the reconfiguration data to the communication module, and the communication module receives the reconfiguration data, so that the reconfiguration data may be sent to the corresponding indoor unit a, and the indoor unit a determines a second storage area of the reconfiguration data and stores the reconfiguration data in the second storage area.
Corresponding to the foregoing method embodiment, an embodiment of the present invention further provides an apparatus configuration device, as shown in fig. 6, where the apparatus may include: the device comprises a device determining module 610, a data obtaining module 620, a data searching module 630 and a device configuring module 640.
The device determining module 610 is configured to determine a device corresponding to a device configuration request when the device configuration request is triggered;
a data obtaining module 620, configured to obtain, from a communication module, encoded data corresponding to the device, where the encoded data is obtained by the device at a device installation stage, and is sent to the communication module for storage;
a data searching module 630, configured to search configuration data corresponding to the encoded data;
a device configuration module 640, configured to configure the device based on the configuration data, where the configuration data includes a device identifier and/or a device location.
In a specific implementation manner of the embodiment of the present invention, the data search module 630 is specifically configured to:
and searching the configuration data corresponding to the coded data according to the preset mapping relation between the coded data and the configuration data.
In a specific implementation manner of the embodiment of the present invention, the device determining module 610 is specifically configured to:
under the condition of finishing the equipment distribution network, triggering an equipment configuration request;
under the condition of triggering the equipment configuration request, analyzing an address identifier carried in the equipment configuration request;
and determining the equipment corresponding to the address identification.
In a specific implementation manner of the embodiment of the present invention, the device determining module 610 is specifically configured to:
under the condition of receiving a configuration notification sent by a communication module, triggering an equipment configuration request;
the communication module triggers and sends a configuration notification under the condition of acquiring the coded data of the equipment;
under the condition of triggering the equipment configuration request, analyzing an address identifier carried in the equipment configuration request;
and determining the equipment corresponding to the address identification.
In a specific implementation manner of the embodiment of the present invention, the apparatus further includes: the equipment acquires an address identifier at the equipment installation stage, creates an incidence relation between the address identifier and the coded data, and sends the incidence relation to the communication module for storage;
the data obtaining module 620 is specifically configured to:
determining an address identifier of the device;
and acquiring the coded data corresponding to the address identifier from a communication module according to the association relation.
In a specific implementation manner of the embodiment of the present invention, the sending to the communication module for storage includes:
determining a first storage area of the coded data, and storing the coded data in the first storage area;
and under the condition that a preset condition is triggered, the coded data is sent to the communication module through a bus network for storage.
In a specific implementation manner of the embodiment of the present invention, the apparatus further includes:
the data reconfiguration module is used for analyzing reconfiguration data carried in the reconfiguration request under the condition of triggering the reconfiguration request;
and sending the reconfiguration data to the equipment through the communication module so as to enable the equipment to determine a second storage area of the reconfiguration data and store the reconfiguration data in the second storage area.
The embodiment of the present invention further provides an electronic device, as shown in fig. 7, which includes a processor 71, a communication interface 72, a memory 73 and a communication bus 74, where the processor 71, the communication interface 72, and the memory 73 complete mutual communication through the communication bus 74,
a memory 73 for storing a computer program;
the processor 71, when executing the program stored in the memory 73, implements the following steps:
under the condition of triggering a device configuration request, determining a device corresponding to the device configuration request; acquiring coded data corresponding to the equipment from a communication module, wherein the coded data is acquired by the equipment at an equipment installation stage and is sent to the communication module for storage; and searching configuration data corresponding to the coded data, and configuring the equipment based on the configuration data, wherein the configuration data comprises equipment identification and/or equipment position.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a storage medium is further provided, where instructions are stored, and when the storage medium is run on a computer, the instructions cause the computer to execute the device configuration method in any one of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the device configuration method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a storage medium or transmitted from one storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for device configuration, the method comprising:
under the condition of triggering a device configuration request, determining a device corresponding to the device configuration request;
acquiring coded data corresponding to the equipment from a communication module, wherein the coded data is acquired by the equipment at an equipment installation stage and is sent to the communication module for storage;
and searching configuration data corresponding to the coded data, and configuring the equipment based on the configuration data, wherein the configuration data comprises equipment identification and/or equipment position.
2. The method according to claim 1, wherein the searching for the configuration data corresponding to the encoded data comprises:
and searching the configuration data corresponding to the coded data according to the preset mapping relation between the coded data and the configuration data.
3. The method according to claim 1, wherein the determining, in the case that the device configuration request is triggered, a device to which the device configuration request corresponds includes:
under the condition of finishing the equipment distribution network, triggering an equipment configuration request;
under the condition of triggering the equipment configuration request, analyzing an address identifier carried in the equipment configuration request;
and determining the equipment corresponding to the address identification.
4. The method according to claim 1, wherein the determining, in the case that the device configuration request is triggered, a device to which the device configuration request corresponds includes:
under the condition of receiving a configuration notification sent by a communication module, triggering an equipment configuration request;
the communication module triggers and sends a configuration notification under the condition of acquiring the coded data of the equipment;
under the condition of triggering the equipment configuration request, analyzing an address identifier carried in the equipment configuration request;
and determining the equipment corresponding to the address identification.
5. The method of claim 1, further comprising:
the equipment acquires an address identifier at the equipment installation stage, creates an incidence relation between the address identifier and the coded data, and sends the incidence relation to the communication module for storage;
the obtaining of the encoded data corresponding to the device from the communication module includes:
determining an address identifier of the device;
and acquiring the coded data corresponding to the address identifier from a communication module according to the association relation.
6. The method of claim 1, wherein sending to the communication module for storage comprises:
determining a first storage area of the coded data, and storing the coded data in the first storage area;
and under the condition that a preset condition is triggered, the coded data is sent to the communication module through a bus network for storage.
7. The method according to any one of claims 1 to 6, further comprising:
under the condition of triggering a reconfiguration request, analyzing reconfiguration data carried in the reconfiguration request;
and sending the reconfiguration data to the equipment through the communication module so as to enable the equipment to determine a second storage area of the reconfiguration data and store the reconfiguration data in the second storage area.
8. An apparatus for device configuration, the apparatus comprising:
the device configuration module is used for determining a device corresponding to the device configuration request under the condition of triggering the device configuration request;
the data acquisition module is used for acquiring coded data corresponding to the equipment from a communication module, wherein the coded data are acquired by the equipment in an equipment installation stage and are sent to the communication module for storage;
the data searching module is used for searching the configuration data corresponding to the coded data;
a device configuration module, configured to configure the device based on the configuration data, where the configuration data includes a device identifier and/or a device location.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 7 when executing a program stored on a memory.
10. A storage medium on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202011268169.7A 2020-11-13 2020-11-13 Device configuration method and device, electronic device and storage medium Active CN112413826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011268169.7A CN112413826B (en) 2020-11-13 2020-11-13 Device configuration method and device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011268169.7A CN112413826B (en) 2020-11-13 2020-11-13 Device configuration method and device, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN112413826A true CN112413826A (en) 2021-02-26
CN112413826B CN112413826B (en) 2021-12-14

Family

ID=74831913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011268169.7A Active CN112413826B (en) 2020-11-13 2020-11-13 Device configuration method and device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN112413826B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660645A (en) * 2021-08-06 2021-11-16 珠海格力电器股份有限公司 Device configuration method and device, electronic device and storage medium
CN113757950A (en) * 2021-09-14 2021-12-07 北京小米移动软件有限公司 Program upgrading method and device for air conditioner, air conditioner and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010651A1 (en) * 2008-08-22 2011-01-13 Lennox Industries, Incorporated Display apparatus and method having parameter display toggle capability for an environmental control system
CN102170375A (en) * 2011-03-28 2011-08-31 福建星网锐捷网络有限公司 Method, device and system for obtaining configuration information of correspondence node, and node equipment
CN104574697A (en) * 2015-02-13 2015-04-29 中国农业银行股份有限公司 Data processing method, data processing device, accessing platform and counter equipment
CN108386965A (en) * 2018-03-08 2018-08-10 上海物麒科技有限公司 Pass through the PLC network-building methods of the pairing of equipment unique encodings and identification card pairing
CN109974206A (en) * 2019-03-21 2019-07-05 广东美的制冷设备有限公司 Air-conditioning system and its control method, controlling terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110010651A1 (en) * 2008-08-22 2011-01-13 Lennox Industries, Incorporated Display apparatus and method having parameter display toggle capability for an environmental control system
CN102170375A (en) * 2011-03-28 2011-08-31 福建星网锐捷网络有限公司 Method, device and system for obtaining configuration information of correspondence node, and node equipment
CN104574697A (en) * 2015-02-13 2015-04-29 中国农业银行股份有限公司 Data processing method, data processing device, accessing platform and counter equipment
CN108386965A (en) * 2018-03-08 2018-08-10 上海物麒科技有限公司 Pass through the PLC network-building methods of the pairing of equipment unique encodings and identification card pairing
CN109974206A (en) * 2019-03-21 2019-07-05 广东美的制冷设备有限公司 Air-conditioning system and its control method, controlling terminal and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113660645A (en) * 2021-08-06 2021-11-16 珠海格力电器股份有限公司 Device configuration method and device, electronic device and storage medium
CN113660645B (en) * 2021-08-06 2022-09-16 珠海格力电器股份有限公司 Device configuration method and device, electronic device and storage medium
CN113757950A (en) * 2021-09-14 2021-12-07 北京小米移动软件有限公司 Program upgrading method and device for air conditioner, air conditioner and storage medium

Also Published As

Publication number Publication date
CN112413826B (en) 2021-12-14

Similar Documents

Publication Publication Date Title
US9787782B2 (en) System and method for managing events associated with the detection of wireless devices
CN112413826B (en) Device configuration method and device, electronic device and storage medium
CN111800462B (en) Micro service instance processing method, micro service instance processing device, computer equipment and storage medium
EP2854378A1 (en) Method, device and network equipment for acquiring feature information
JP5711439B1 (en) Information management method
WO2014119255A1 (en) Information management method, control system, and method for controlling display device
CN113672441B (en) Method and device for testing intelligent equipment
CN106403188A (en) Air conditioner maintenance method and maintenance device thereof
CN111123388A (en) Detection method and device for room camera device and detection equipment
JP6665660B2 (en) Device control system and device control method
CN110928984A (en) Knowledge graph construction method and device, terminal and storage medium
CN114153153A (en) Device control method, system, apparatus, electronic device, and storage medium
CN114201301A (en) Equipment control method, device and system and electronic equipment
WO2018158939A1 (en) Communication test device, communication test method, and program
CN112181794A (en) Page monitoring method and device, computer equipment and storage medium
CN111737084A (en) Information monitoring method and device, intelligent equipment, computer equipment and medium
CN113556255B (en) Method and device for configuring smart home
CN114189402A (en) Network switching method, device, equipment and storage medium
WO2017041558A1 (en) Analyzing and processing method, device and system
US10432465B2 (en) Automatic provisioning of a network access point
CN111125223A (en) Database connection pool updating method and device
CN114244882B (en) Control method and device of intelligent equipment, terminal and storage medium
CN106155731B (en) System and method for automatically replacing peripheral device
WO2023155732A1 (en) Area information processing method and apparatus, storage medium, and electronic device
CN114205803A (en) Network distribution method and device of intelligent device, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant