CN113900414B - Switch configuration method and device and intelligent switch - Google Patents
Switch configuration method and device and intelligent switch Download PDFInfo
- Publication number
- CN113900414B CN113900414B CN202010575828.5A CN202010575828A CN113900414B CN 113900414 B CN113900414 B CN 113900414B CN 202010575828 A CN202010575828 A CN 202010575828A CN 113900414 B CN113900414 B CN 113900414B
- Authority
- CN
- China
- Prior art keywords
- working mode
- intelligent switch
- external panel
- switch
- list
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 238000013507 mapping Methods 0.000 claims description 82
- 238000004590 computer program Methods 0.000 claims description 10
- 230000006870 function Effects 0.000 description 17
- 238000012545 processing Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 9
- 230000008859 change Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000001514 detection method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 239000003086 colorant Substances 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 241000699670 Mus sp. Species 0.000 description 1
- 230000005856 abnormality Effects 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/418—Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B15/00—Systems controlled by a computer
- G05B15/02—Systems controlled by a computer electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/26—Pc applications
- G05B2219/2642—Domotique, domestic, home control, automation, smart house
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Manufacturing & Machinery (AREA)
- Quality & Reliability (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a switch configuration method, a device and an intelligent switch, wherein the method is applied to a base of the intelligent switch, the intelligent switch comprises an external panel, and the method comprises the following steps: determining whether a base of the intelligent switch and the external panel are connected; if the base of the intelligent switch is connected with the external panel, acquiring equipment parameters of the external panel; acquiring a target working mode corresponding to the equipment parameter; and switching the working mode of the intelligent switch into a target working mode. According to the method, the working mode of the intelligent switch is quickly and effectively switched according to the equipment parameters of the external panel.
Description
Technical Field
The application relates to the technical field of intelligent home, in particular to a switch configuration method and device and an intelligent switch.
Background
Along with the continuous development of electronic technology, intelligent switches play an increasingly important role in life, so that the life of people is greatly facilitated, and meanwhile, the intelligent switches are easy to install, convenient to network and rapid in debugging, and are trends of the development of intelligent home in the future. The appearance of intelligent switch has improved traditional wall switch's use experience, and intelligent switch can avoid complicated wiring promptly, can easily realize functions such as remote control, intelligent linkage. In addition, the intelligent switch can link various intelligent devices to complete intelligent control, so that the complexity of the installation and operation of the traditional household appliance is greatly simplified, but the phenomenon of delayed response exists when the intelligent switch is used, and the user experience effect is reduced.
Disclosure of Invention
In view of the above, the present application provides a switch configuration method, device and intelligent switch to improve the above-mentioned drawbacks.
In a first aspect, an embodiment of the present application provides a switch configuration method, which is applied to a base of an intelligent switch, where the intelligent switch includes an external panel, including: determining whether a base of the intelligent switch and the external panel are connected; if the base of the intelligent switch is connected with the external panel, acquiring equipment parameters of the external panel; acquiring a target working mode corresponding to the equipment parameter; and switching the working mode of the intelligent switch into a target working mode.
In a second aspect, an embodiment of the present application provides a switch configuration device, which is applied to a base of an intelligent switch, where the intelligent switch further includes an external panel, and the device includes: and the connection determining module is used for determining whether the base of the intelligent switch is connected with the external panel. And the parameter acquisition module is used for acquiring the equipment parameters of the external panel if the base of the intelligent switch is connected with the external panel. And the working mode acquisition module is used for acquiring a target working mode corresponding to the equipment parameter. And the mode switching module is used for switching the working mode of the intelligent switch into a target working mode.
In a third aspect, an embodiment of the present application provides an intelligent switch, including: the device comprises a base and an external panel, wherein the base is connected with the external panel and comprises one or more processors; a memory for storing one or more programs; one or more applications; wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more program configured to perform the method of switch configuration provided by any embodiment of the present application.
In a fourth aspect, embodiments of the present application provide a computer system, a computer readable storage medium having stored therein program code that is executable by a processor to invoke a method of performing the switch configuration provided by any of the embodiments of the present application.
Compared with the prior art, the embodiment of the application provides a switch configuration method, a device and an intelligent switch, wherein the switch configuration method can determine whether a base of the intelligent switch is connected with an external panel or not, if the base of the intelligent switch is connected with the external panel, equipment parameters of the external panel are acquired, then a target working mode corresponding to the equipment parameters of the external panel is acquired, and then the working mode of the intelligent switch is switched to the target working mode. According to the application, the working mode of the intelligent switch is switched by acquiring the equipment parameters of the external panel, so that the controllability of the intelligent switch can be improved to a certain extent, and the operation complexity of the intelligent switch can be reduced.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic structural diagram of a network system according to the present application;
FIG. 2 is a flow chart illustrating a method of configuring a switch according to an embodiment of the present application;
FIG. 3 is a schematic diagram of an intelligent switch in a switch configuration method according to an embodiment of the present application;
FIG. 4 is a flowchart showing a step S140 in a flowchart of a switch configuration method according to an embodiment of the present application;
FIG. 5 is a flow chart of a method for configuring a switch according to another embodiment of the present application;
Fig. 6 is a flowchart showing a step S230 in a switch configuration method according to another embodiment of the present application;
fig. 7 is a schematic diagram showing color information acquisition in a switch configuration method according to another embodiment of the present application;
fig. 8 is a flowchart showing other steps of step S230 in a switch configuration method according to another embodiment of the present application;
Fig. 9 is a flowchart showing other steps of step S230 in a switch configuration method according to another embodiment of the present application;
FIG. 10 is a schematic diagram showing component parameter acquisition in a switch configuration method according to another embodiment of the present application;
fig. 11 is a block diagram showing a switch configuration device according to an embodiment of the present application;
Fig. 12 shows a block diagram of a smart switch for performing a switch configuration method according to an embodiment of the present application;
Fig. 13 is a schematic diagram of a hardware structure of a user terminal in a switch configuration method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be noted that: like reference numerals or letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
Referring to fig. 1, a network system 10 according to an embodiment of the present application is provided, where the network system 10 includes: an electronic terminal 11, a server 12, a gateway 13, an intelligent switch 14, and a router 15. The electronic terminal 11 may be any device having communication and storage functions, for example: smart phones, desktop computers, notebook computers, tablet computers, or other intelligent communication devices with network connection functions. The server 12 may be a network access server, database server, cloud server, or the like. Alternatively, the gateway 13 may be set up based on the ZigBee protocol, and the intelligent switch 14 may be a device that is added to the gateway 13 in advance, for example, the intelligent switch may be a device in a suite to which the gateway belongs when the gateway leaves the factory; or may be a device that is subsequently connected to the gateway 13 by user operation.
Optionally, a client capable of managing the smart home is installed in the electronic terminal 11, where the client may be an application client (such as a mobile phone APP) or a web client, which is not limited herein.
Alternatively, the intelligent switch 14 may establish a network connection with the gateway 13 based on the ZigBee protocol, thereby joining the ZigBee network.
The gateway 13 and the electronic terminal 11 can be connected with the router 15, and the router 15 is connected to the ethernet, and the router 15 can be connected to the server through wired or wireless communication connection. For example, the gateway 13 and the electronic terminal 11 may store the acquired information in the server 12. Optionally, the electronic terminal 11 may also establish a network connection with the server 12 through 2G/3G/4G/5G, WIFI or the like, so as to obtain data issued by the server 12.
Alternatively, the lan path as shown in fig. 1 indicates that the electronic terminal 11 is in the same lan as the router 15 and the gateway 13, and the wan path indicates that the electronic terminal 11 is in the same lan as the router 15 and the gateway 13. When the electronic terminal 11, the router 15 and the gateway 13 are in the same lan, the electronic terminal 11 may interact with the gateway 13 and the intelligent switch 14 connected to the gateway 13 through the lan path as shown in fig. 1; interaction with gateway 13 and intelligent switch 14 connected to gateway 13 may also be through a wide area network path as shown in fig. 1. When the electronic terminal 11 is not in the same local area network as the router 15 and the gateway 13, the electronic terminal 11 may interact with the gateway 13 and the intelligent switch 14 connected to the gateway 13 through a wide area network path as shown in fig. 1.
The existing intelligent switch achieves multifunctional identification and simultaneously solves the problem of delayed response of part of equipment, and experience effect of users is reduced. Therefore, people set the intelligent switch to be in a working mode which is configured by the user, so that the contradiction between timely response of equipment and the multifunction of the wireless switch can be well solved. At present, the change mode of the working mode of the switch is that a user changes the structural form of the equipment by himself or configures the working mode through the client, so that the cost of switching the switch is increased to a certain extent and the operation is complex.
Therefore, in order to overcome the above-mentioned drawbacks, as shown in fig. 2, an embodiment of the present application provides a switch configuration method, which is applied to a base of an intelligent switch, where the intelligent switch further includes an external panel, and the method may include steps S110 to S140.
Step S110: and determining whether the base of the intelligent switch and the external panel are connected.
In the embodiment of the application, the intelligent switch can be a wireless intelligent switch, and mainly comprises a base and an external panel, an example diagram shown in fig. 3 is provided for more clearly understanding the composition of the intelligent switch, and it can be seen from fig. 3 that the base of the intelligent switch can comprise an intelligent control chip and a connection panel interface, the connection panel interface is used for connecting the base and the external panel, and the intelligent control chip is used for acquiring the equipment parameters of the external panel and analyzing and identifying the equipment parameters. In addition, the external panel of the intelligent switch can comprise preset patterns and/or electrical parameters, wherein the patterns can comprise colors, shapes, models or the like of the external panel. The electrical parameters refer to parameters corresponding to electrical components on the external panel, and in the embodiment of the application, the external interface board can comprise a plurality of electrical components, and the electrical components are different in corresponding parameters. For example, the electrical component is a resistor, and the corresponding parameter is a resistance value.
In one embodiment, the base and the external panel are connected in a wired or wireless manner, and the base and the external panel are detachable. In other words, in the embodiment of the application, the external panel is replaceable, and when the external panel is damaged or the external panel does not meet the actual requirement of a user, the external panel can be replaced. For example, the intelligent switch a includes a base a and an external panel b, and the user is dissatisfied with the external panel b, purchases the external panel c, and then replaces the external panel b with the external panel c, and at this time, the intelligent switch a includes the base a and the external panel b.
The intelligent switch can detect whether the base is connected with the external panel in real time, and if the base is connected with the external panel, the intelligent switch obtains the equipment parameters of the external panel, namely, the intelligent switch enters step S120. If the base and the external panel of the intelligent switch are in a disconnection state, whether the disconnection state is normal or not is determined, if the disconnection state is normal, whether the base and the external panel are connected or not is continuously detected, and normal disconnection means that the base and the external panel are disconnected by user input disconnection operation. If the base and the external panel are disconnected abnormally, the intelligent switch can send out abnormal acousto-optic alarm, or the intelligent switch can also send abnormal prompt information to the user terminal, and the user is informed of the occurrence of the abnormality of the intelligent switch through the abnormal prompt information.
Step S120: and if the base of the intelligent switch is connected with the external panel, acquiring the equipment parameters of the external panel.
In an embodiment, if the base of the intelligent switch is connected with the external panel, the device parameter of the external panel is obtained, and in the embodiment of the application, the device parameter of the external panel may include the color, shape or model of the external panel, and the device parameter of the external panel may be obtained through a color sensor or an image acquisition device. As one way, obtaining the device parameter of the external panel may include: sending a parameter acquisition instruction to a gateway, and indicating the gateway to acquire the equipment parameters of the external panel according to the parameter acquisition instruction; and receiving the equipment parameters of the external panel sent by the gateway.
In another embodiment, after determining that the base of the intelligent switch and the external panel are connected, the intelligent switch may first obtain the data processing capability of the base, determine whether the data processing capability of the base is greater than or equal to a preset capability threshold, and if the data processing capability of the base is greater than or equal to the preset capability threshold, obtain the device parameter of the external panel by using the base of the intelligent switch. In addition, if the data processing capacity of the base is smaller than a preset capacity threshold, the gateway is utilized to acquire the equipment parameters of the external panel, namely the intelligent switch acquires the first parameters of the external panel, the first parameters are then sent to the gateway, the gateway is utilized to analyze and identify the first parameters to acquire the equipment parameters of the external panel, and then the gateway sends the equipment parameters to the intelligent switch and the user terminal respectively.
In another embodiment, if the data processing capability of the base is smaller than the preset capability threshold, the server may be used to obtain the device parameter of the external panel, that is, the intelligent switch may obtain the first parameter of the external panel, then the first parameter is sent to the server through the gateway, the server is used to analyze and identify the first parameter to obtain the device parameter of the external panel, and then the server sends the device parameter to the intelligent switch and the user terminal respectively.
Step S130: and acquiring a target working mode corresponding to the equipment parameter.
In order to conveniently acquire the working modes of the intelligent switch, the device parameters and the working modes of the intelligent switch are set according to a one-to-one correspondence relationship, and the target working modes corresponding to the device parameters can be acquired by acquiring the device parameters. In the embodiment of the application, the working modes of the intelligent switch can be divided into a single control mode and an intelligent mode, wherein the use experience of a user in the single control mode is consistent with that of a traditional switch, the intelligent switch receives a trigger signal, and the intelligent switch is used for connecting/disconnecting the loop where the controlled household equipment is located once. The intelligent switch has more functions in the intelligent mode, namely, the action of controlling the intelligent switch can comprise double clicking, multi clicking, long pressing and the like, and different switch functions can be realized through different actions of the intelligent switch.
In one embodiment, the target operation modes corresponding to the different device parameters may be the same or different, mainly because the device parameters in the embodiment of the present application may be divided into multiple types, and each type of device parameter may correspond to a different operation mode. For example, when the device parameter is color information, the operation mode corresponding to red is a single control mode, and the operation mode corresponding to blue is an intelligent mode. For another example, when the device parameter is color information and shape information, the working mode corresponding to the color red and the shape square is a single control mode, and the working mode corresponding to the color blue and the shape oval is an intelligent mode. The specific correspondence between the device parameters and the target operation modes is not limited explicitly, and may be set according to actual situations.
Step S140: and switching the working mode of the intelligent switch into a target working mode.
As a way, the working mode of the intelligent switch may refer to a factory working mode of the intelligent switch, or may refer to an adjusted working mode, and the working modes of the intelligent switch are different when the application scenes of the intelligent switch are different. As an example, when the intelligent switch is installed and used for the first time, the operation mode of the intelligent switch is a preset operation mode of a manufacturer, and in general, the preset operation mode of the manufacturer is an intelligent mode. Optionally, after the user purchases the intelligent switch and uses the intelligent switch for a period of time, the working mode of the intelligent switch is considered to be not in accordance with the requirements of the user, and the user can replace the working mode of the intelligent switch for a plurality of times by replacing the external panel. At this time, the working mode of the intelligent switch is the working mode of the intelligent switch before the external panel is replaced. For example, after purchasing the intelligent switch, the user changes the external panel for three times, the first change is to change the working mode of the intelligent switch from the intelligent mode to the single control mode, the second change is to change the working mode of the intelligent switch from the single control mode to the intelligent mode, the user changes the external panel for the third time on the basis of the second change, and at the moment, the working mode of the intelligent switch is the working mode 'intelligent mode' after the second change. In summary, the working mode of the intelligent switch is the working mode of the intelligent switch before the base is connected with the external panel, whether the working mode is a factory working mode or an adjusted working mode. Through the above description, it can be known that when the data processing capacity of the base of the intelligent switch is greater than or equal to the preset capacity threshold, the base of the intelligent switch is used to obtain the equipment parameter of the external panel, the intelligent switch is used to obtain the target working mode corresponding to the equipment parameter, then the intelligent switch can replace the stored working mode of the intelligent switch with the target working mode, and meanwhile, the intelligent switch can report the obtained target working mode to the server and the terminal equipment in a wired or wireless mode and instruct the server and the terminal equipment to replace the stored working mode of the intelligent switch with the target working mode.
In another embodiment, when the data processing capacity of the intelligent switch base is smaller than a preset capacity threshold, the intelligent switch obtains a first parameter of the external panel, then the first parameter is sent to the gateway, the gateway is utilized to analyze and identify the first parameter to obtain a device parameter of the external panel, then the gateway can obtain a target working mode corresponding to the device parameter, and switch the stored working mode of the intelligent switch to the target working mode, and meanwhile, a mode switching instruction is issued to the intelligent switch to instruct the intelligent switch to switch the stored working mode to the target working mode. In addition, the gateway can report the acquired target working mode to the server and the terminal equipment, and instruct the server and the terminal equipment to switch the stored working mode into the target working mode. After the terminal equipment switches the stored working mode into the target working mode, the terminal equipment can also send prompt information of successful switching to the server, so that the purpose of reverse verification is achieved.
In another embodiment, when the data processing capacity of the intelligent switch base is smaller than a preset capacity threshold, the intelligent switch obtains a first parameter of the external panel, then the first parameter is sent to a server through a gateway, the server is utilized to analyze and identify the first parameter to obtain a device parameter of the external panel, then the server can obtain a target working mode corresponding to the device parameter, and switch the stored working mode of the intelligent switch to the target working mode, and meanwhile, a mode switching instruction is issued to the gateway and the intelligent switch to instruct the gateway and the intelligent switch to switch the stored working mode to the target working mode.
It should be noted that, in the embodiment of the present application, after the intelligent switch acquires the device parameter, the mode switching instruction sent by the terminal device may also be directly acquired, that is, the terminal device sends the mode switching instruction to the intelligent switch through the server and the gateway, and instructs the intelligent switch to switch the stored working mode of the intelligent switch to the target working mode.
As shown in fig. 4, step S140 may include steps S141 to S142.
Step S141: judging whether the working mode of the intelligent switch is matched with the target working mode;
In one embodiment, after the base of the intelligent switch acquires the working mode and the target working mode, it may first determine whether the working mode of the intelligent switch and the target working mode are matched, if the working mode of the intelligent switch and the target working mode are matched, the working mode of the intelligent switch is not switched, and if the working mode of the intelligent switch and the target working mode are not matched, the working mode of the intelligent switch is switched to the target working mode, that is, step S142 is performed. For example, the working mode of the intelligent switch is an intelligent mode, and the target working mode is a single control mode, and obviously, the working mode of the intelligent switch is not matched with the intelligent mode, at this time, the working mode of the intelligent switch is switched to the target working mode, and after the switching, the working mode of the intelligent switch is changed to the single control mode.
Step S142: and if the working mode of the intelligent switch is not matched with the target working mode, switching the working mode of the intelligent switch into the target working mode.
The embodiment of the application provides a switch configuration method, which is used for switching the working mode of an intelligent switch by acquiring the equipment parameters of an external panel, namely acquiring the target working mode by the equipment parameters of the external panel and replacing the working mode of the intelligent switch with the target working mode.
Referring to fig. 5, another embodiment of the present application provides a switch configuration method applied to a base of an intelligent switch, where the intelligent switch further includes an external panel, and the method may include steps S210 to S240.
Step S210: and determining whether the base of the intelligent switch and the external panel are connected.
Step S220: and if the base of the intelligent switch is connected with the external panel, acquiring the equipment parameters of the external panel.
Step S230: and determining a mapping list corresponding to the equipment parameters, and acquiring a target working mode corresponding to the equipment parameters based on the mapping list.
In the embodiment of the application, the equipment parameters of the external panel and the working modes of the intelligent switch are stored in the mapping list in a one-to-one correspondence manner, so that after the equipment parameters of the external panel of the equipment are obtained, the target working modes can be obtained by combining the equipment parameters with the mapping list. In the embodiment of the application, the mapping list can be stored in the intelligent switch or on the gateway or the server, namely, when the data processing capacity of the intelligent switch base is greater than or equal to the preset capacity threshold value, the preset mapping list can be stored in the intelligent switch; when the data processing capacity of the intelligent switch base is smaller than the preset capacity threshold, a preset mapping list can be stored on the gateway or the server.
In one embodiment, the mapping list includes a color mapping sub-list, the base of the intelligent switch includes a color sensor, and the device parameter of the external panel may include color information of the external panel, and step S230 may include steps S231 to S232 as shown in fig. 6.
Step S231: and acquiring the color information by using the color sensor.
In the embodiment of the application, the external panel of the intelligent switch is preset with the identification image, and the corresponding identification images of the external panel are different when the external panels are different, wherein the identification image can be a color plate uniquely identified by a color sensor, as shown in fig. 7, the color plate is arranged on the external panel and can be connected with the color sensor of the switch base, and the color of the color plate can be determined through the color sensor, so that the color of the identification image of the external panel is obtained. Optionally, the color sensor may be a color sensor with a white LED light source, where the color sensor in the embodiment of the present application mainly collects the color of the identification image, where the collected color is the ratio of RGB of three primary colors in the collected color, that is, R: g: B. for example, if the color of the identification image is white, the three primary color ratio collected by the color sensor is 255:255:255, for example, if the color of the identification image is blue, the ratio of the three primary colors collected by the color sensor is 0:0:255. after the base of the intelligent switch obtains the color ratio of the identification image by using the color sensor, the color of the identification image can be determined according to the color ratio, and then the determined result is used as color information.
Step S232: and determining a color mapping sub-list corresponding to the color information, and acquiring a target working mode corresponding to the color information based on the color mapping sub-list.
Through the above description, it can be known that the base of the intelligent switch can obtain the color information of the external panel according to the built-in color sensor, and then the base can obtain the corresponding color mapping sub-list according to the color information. The embodiment of the application can comprise a plurality of mapping sub-lists, and the mapping lists corresponding to the different types of the equipment parameters acquired by the base are different. For example, the device parameter is color, then its corresponding mapping list is a color mapping sub-list; the equipment parameter is an image, and the corresponding mapping list is an image mapping sub-list; the device parameter is a component parameter of the electrical component, and the corresponding mapping list is a component mapping sub-list.
In the embodiment of the application, the color information of the external panel and the working mode of the intelligent switch are stored in the color mapping sub-list in a one-to-one correspondence. For example, when the color information is red, the corresponding operation mode is a single control mode, and when the color information is blue, the corresponding operation mode is an intelligent mode. The specific color information and the specific operation mode are not limited explicitly, and can be selected according to actual situations. In addition, the color mapping sub-list can be stored in the intelligent switch or on the gateway or the server, and when the color mapping sub-list is stored in the intelligent switch, the base can directly acquire the working mode of the intelligent switch according to the stored color mapping sub-list after acquiring the color information. When the color mapping sub-list is stored in the server or the gateway, after the base acquires the color information, the base may first send the color information to the gateway or the server, and acquire the working mode of the intelligent switch according to the color mapping sub-list stored on the gateway or the server, and then the gateway or the server may replace the stored working mode of the intelligent switch with the acquired working mode, and send the acquired working mode to the intelligent switch at the same time, so as to instruct the intelligent gateway to execute the working mode switching operation, i.e. enter step S240.
In other embodiments, the mapping list includes an image mapping word list, and the device parameter of the external panel may include image information of the external panel, as shown in step S233 to step S234 in fig. 8.
Step S233: and acquiring the image information of the external panel, and identifying the image information to obtain an image identification result.
In one embodiment, the external panel of the intelligent switch can be distinguished by color, shape or model, and the information can be obtained directly by identifying the image of the external panel, the image of the external panel comprises the front image of the external panel, the color, shape or model of the external panel can be obtained by identifying the image of the external panel, and the information can be collectively called as image information. The embodiment of the application can acquire the image of the external panel by using the external image acquisition device, the external image acquisition device can send the acquired image of the external panel to the intelligent switch through a wired or wireless network, the intelligent switch takes the received image as the image information of the external panel, and the image information received by the intelligent switch can be identified by using the built-in deep learning model, so that an image identification result is obtained.
In another embodiment, after the external image acquisition device acquires the image information of the external panel, the external image acquisition device can send the image information to the gateway or the server, the gateway or the server is utilized to identify the image information, at this time, a deep learning network model is stored on the gateway or the server, and the deep learning network model is mainly used for identifying the image information of the external panel, namely, identifying the color, the shape or the model and the like of the external panel in the image, so as to obtain an image identification result, and then the gateway or the server can acquire the target working mode of the intelligent switch according to the acquired image identification result, namely, step S234 is entered.
Step S234: and determining an image mapping sub-list corresponding to the image recognition result, and acquiring a target working mode corresponding to the image recognition result based on the image mapping sub-list.
It can be known from the above description that, in the embodiment of the present application, the mapping list may include a plurality of mapping sub-lists, and if the types of the device parameters acquired by the base are different, the mapping lists corresponding to the device parameters are also different. Specifically, when the device parameter is an image, the corresponding mapping list is an image mapping sub-list, that is, the image information of the external panel and the working mode of the intelligent switch are stored in the image mapping sub-list through a one-to-one correspondence. For example, when the image information is red and rectangular in shape, the corresponding operation mode is a single control mode, and when the image information is blue and elliptical in shape, the corresponding operation mode is an intelligent mode. The specific color, shape, etc. corresponding to the specific operation mode is not specifically limited, and may be selected according to actual conditions. In addition, the image mapping sub-list can be stored in the intelligent switch or on the gateway or the server, when the image mapping sub-list is stored in the intelligent switch, after the base acquires the image information, the base can identify the image information to acquire an image identification result, and then the working mode of the intelligent switch can be acquired according to the stored image mapping sub-list. When the image mapping sub-list is stored in the server or the gateway, after the base acquires the image information, the base can firstly send the image information to the gateway or the server, the gateway or the server is utilized to identify the image information, an image identification result is obtained, the working mode of the intelligent switch is acquired according to the image mapping sub-list stored on the gateway or the server, then the gateway or the server can replace the working mode of the intelligent switch stored by the gateway or the server with the acquired working mode, and simultaneously the acquired working mode is sent to the intelligent switch to instruct the intelligent gateway to execute the working mode switching operation, namely, the step S240 is entered.
In other embodiments, the mapping list includes a component mapping sub-list, and the external panel includes a plurality of electrical components, as shown in step S235 to step S237 of fig. 9.
Step S235: and searching the electrical components meeting the preset conditions in the electrical components, and taking the electrical components meeting the preset conditions as target electrical components.
In one embodiment, the external panel of the intelligent switch may include a plurality of electrical components, where the electrical components may be resistors, capacitors, inductors, or an erasable programmable read-only memory, and after the base is connected with the external panel, the base may determine which electrical components are included in the external panel, and then search for an electronic component that meets a preset condition in the plurality of electrical components. Specifically, the base can determine whether the electric appliance component is related to the working mode of the intelligent switch, if so, the related electric appliance component can be used as a target electric appliance component, wherein whether the electric appliance component is related is preset. For example, there are four resistors in the external panel, where the resistor a is related to the working mode of the intelligent switch, and then the resistor a may be used as the target electrical component. In the embodiment of the present application, the target electrical component may be at least one of a resistor or RPROM (Erasable Programmable Read Only Memory, erasable programmable read-only memory), and the external panel is provided with a resistor or EPROM as shown in fig. 10, where at least one of the resistor or EPROM may be used as the target electrical component.
Step S236: and acquiring component parameters of the target electrical component.
In the embodiment of the application, after the base of the intelligent switch determines the target electrical component, the base can be used for acquiring the component parameters of the target electrical component, and when the target electrical component is a resistor as shown in fig. 10, the base can be used for detecting the current value, the voltage value, the resistance value or the like of the external panel resistor by using the detection circuit, and the values can be collectively called as the component parameters. In addition, when the target electrical appliance component is an EPROM, the module parameters related to the external panel stored in the EPROM can be acquired first, and the module parameters serve as information for identifying the related parameters of the external panel and the working mode, and the module parameters are taken as component parameters. The embodiment of the application can acquire the working mode of the intelligent switch according to the resistor, can acquire the working mode of the intelligent switch according to the parameter corresponding to the EPROM, or acquire the working mode of the intelligent switch by combining the resistor and the EPROM, and particularly how to select the working mode is not limited explicitly.
Step S237: and determining a component mapping sub-list corresponding to the component parameters of the target electrical component, and acquiring a target working mode corresponding to the component parameters based on the component mapping sub-list.
It can be known from the above description that, in the embodiment of the present application, the mapping list may include a plurality of mapping sub-lists, and if the types of the device parameters acquired by the base are different, the mapping lists corresponding to the device parameters are also different. Specifically, when the device parameter is a component parameter, the corresponding mapping list is a component mapping sub-list, that is, the component parameter of the external panel and the working mode of the intelligent switch are stored in the component mapping sub-list through a one-to-one correspondence. For example, the operation mode corresponding to the resistance value 10 of the target electrical component resistance a is a single control mode, and the operation mode corresponding to the resistance value 20 of the target electrical component resistance a is an intelligent mode. In addition, the component mapping sub-list can be stored in the intelligent switch or on a gateway or a server, and when the component mapping sub-list is stored in the intelligent switch, the base can acquire the working mode of the intelligent switch according to the stored component mapping sub-list after acquiring the component parameters of the target electrical component. When the component mapping sub-list is stored in the server or the gateway, after the base acquires the component parameters of the target electrical component, the base may first send the component parameters to the gateway or the server, acquire the working mode of the intelligent switch according to the component mapping sub-list stored on the gateway or the server, and then the gateway or the server may replace the working mode of the intelligent switch stored in the gateway or the server with the acquired working mode, and send the acquired working mode to the intelligent switch at the same time, so as to instruct the intelligent gateway to execute the working mode switching operation, i.e. enter step S240.
It should be noted that, in the embodiment of the present application, the color information, the image information and the component parameters of the external panel may be combined to obtain the target working mode of the intelligent switch, specifically, the first target working mode is obtained according to the color information, the second target working mode is obtained according to the image information, then, whether the first target working mode is identical to the second target working mode is determined, and if the first target working mode is identical to the second target working mode, the first target working mode or the second target working mode is used as the target working mode. If the first target working mode is different from the second target working mode, a third target working mode is obtained according to the component parameters, the third target working mode is compared with the first target working mode and the second target working mode respectively, and then the working mode which is the same as the third target working mode is used as the target working mode, so that the accuracy of obtaining the target working mode can be ensured to a certain extent.
Step S240: and switching the working mode of the intelligent switch into a target working mode.
The embodiment of the application provides a switch configuration method, which is used for switching the working mode of an intelligent switch by acquiring different equipment parameters of an external panel. In addition, the application can acquire the target working mode in different ways to ensure the accuracy of data switching to a certain extent, and can be realized on the intelligent switch, the gateway or the server, and the user can complete the switching of the working mode under the conditions of network fault state, gateway external network disconnection state, incapability of controlling the intelligent switch by a mobile phone and the like, and the delay response problem of the intelligent switch can be improved, so that the use experience of the user is improved.
Referring to fig. 11, a switch configuration device 300 according to an embodiment of the present application is applied to a base of an intelligent switch, and the intelligent switch further includes an external panel, where the device includes a connection determining module 310, a parameter obtaining module 320, a working mode obtaining module 330, and a position obtaining module 340.
The connection determining module 310 is configured to determine whether the base of the intelligent switch and the external panel are connected.
And the parameter obtaining module 320 is configured to obtain an equipment parameter of the external panel if the base of the intelligent switch and the external panel are connected.
Further, the parameter obtaining module 320 is further configured to send a parameter obtaining instruction to a gateway, and instruct the gateway to obtain the device parameter of the external panel according to the parameter obtaining instruction; and receiving the equipment parameters of the external panel sent by the gateway.
And the working mode obtaining module 330 is configured to obtain a target working mode corresponding to the device parameter.
Further, the working mode obtaining module 330 is further configured to determine a mapping list corresponding to the device parameter, and obtain a target working mode corresponding to the device parameter based on the mapping list.
Further, the working mode obtaining module 330 is further configured to obtain the color information by using the color sensor, determine a color mapping sub-list corresponding to the color information, and obtain a target working mode corresponding to the color information based on the color mapping sub-list.
Further, the working mode obtaining module 330 is further configured to obtain image information of the external panel, identify the image information, obtain an image identification result, determine an image mapping sub-list corresponding to the image identification result, and obtain a target working mode corresponding to the image identification result based on the image mapping sub-list.
Further, the operation mode obtaining module 330 is further configured to search for an electrical component that meets a preset condition from the plurality of electrical components, obtain component parameters of the target electrical component by using the electrical component that meets the preset condition as a target electrical component, determine a component mapping sub-list corresponding to the component parameters of the target electrical component, and obtain a target operation mode corresponding to the component parameters based on the component mapping sub-list. Wherein the target electrical component is at least one of a resistor or an erasable programmable read-only memory.
And a mode switching module 340, configured to switch the working mode of the intelligent switch to a target working mode.
Further, the mode switching module 340 is further configured to determine whether the working mode of the intelligent switch is matched with the target working mode, and if the working mode of the intelligent switch is not matched with the target working mode, switch the working mode of the intelligent switch to the target working mode.
The embodiment of the invention provides an intelligent switch, which comprises a base and an external panel, wherein the base is connected with the external panel, the base can comprise a processor and a memory, at least one instruction, at least one section of program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the switch configuration method provided by the embodiment of the method.
The memory may be used to store software programs and modules that the processor executes to perform various functional applications and switch configurations by running the software programs and modules stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, application programs required for functions, and the like; the storage data area may store data created according to the use of the device, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory may also include a memory controller to provide access to the memory by the processor.
Fig. 12 is a block diagram of a hardware structure of a base in a switch configuration method according to an embodiment of the present invention. As shown in fig. 12, the base 1100 may vary considerably in configuration or performance and may include one or more processors (ProcessingUnits, CPU) 1110 (the processor 1110 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA), a memory 1130 for storing data, one or more storage mediums 1120 (e.g., one or more mass storage devices) for storing applications 1123 or data 1122. Wherein the memory 1130 and the storage medium 1120 may be transitory or persistent storage. The program stored on the storage medium 1120 may include one or more modules, each of which may include a series of instruction operations on a server. Still further, the processor 1110 may be configured to communicate with a storage medium 1120 to execute a series of instruction operations in the storage medium 1120 on the base 1100. The base 1100 may also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input/output interfaces 1140, and/or one or more operating systems 1121, such as WindowsserverTM, macOSXTM, unixTM, linuxTM, freeBSDTM, and the like.
The input-output interface 1140 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the cradle 1100. In one example, the input/output interface 1140 includes a network adapter (NetworkInterfaceController, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the input-output interface 1140 may be a radio frequency (RadioFrequency, RF) module for communicating wirelessly with the internet.
It will be appreciated by those skilled in the art that the configuration shown in fig. 12 is merely illustrative and is not intended to limit the configuration of the base. For example, the base 1100 may also include more or fewer components than shown in fig. 12, or have a different configuration than shown in fig. 12.
Fig. 13 is a schematic hardware structure of a user terminal for implementing various embodiments of the present invention.
The user terminal 1200 includes, but is not limited to: radio frequency unit 1210, network module 1220, audio output unit 1230, input unit 1240, sensor 1250, display unit 1260, user input unit 1270, user input unit 1280, memory 1290, processor 1300, and power supply 1310. It will be appreciated by those skilled in the art that the user terminal structure shown in fig. 13 is not limiting of the user terminal and that the user terminal may comprise more or less components than shown, or may combine certain components, or may have a different arrangement of components. In the embodiment of the invention, the user terminal comprises, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted user terminal, a wearable device, a pedometer and the like.
The processor 1300 is configured to obtain an image to be identified, input the image to be identified to a first network model, identify the image to be identified by using the first network model to obtain a first identification result, determine a second network model according to the first identification result, identify the image to be identified by using the second network model to obtain a second identification result, and obtain a second identification result, wherein the image identification algorithms of the first network model and the second network model are different, and if the first identification result is matched with the second identification result, obtain a switch configuration result according to the first identification result or the second identification result, and output the switch configuration result.
It should be understood that, in the embodiment of the present invention, 1210 may be used for receiving and transmitting signals during the process of receiving and transmitting information or communication, specifically, after receiving downlink data from a base station, processing the downlink data by the processor 1300; and, the uplink data is transmitted to the base station. Typically, 1210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, 1210 may communicate with networks and other devices through a wireless communication system.
The user terminal provides wireless broadband internet access to the user through the network module 1220, such as helping the user to send and receive e-mail, browse web pages, access streaming media, etc.
The audio output unit 1230 may convert audio data received by the 1210 or the network module 1220 or stored in the memory 1290 into an audio signal and output as sound. Also, the audio output unit 1230 may also provide audio output (e.g., a call signal reception sound, a message reception sound, etc.) related to a specific function performed by the user terminal 1200. The audio output unit 1230 includes a speaker, a buzzer, a receiver, and the like.
The input unit 1240 is used to receive an audio or video signal. The input unit 1240 may include a graphics processor (GraphicsProcessingUnit, GPU) 1041 and a microphone 1242, the graphics processor 1241 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 1260. The image frames processed by graphics processor 1241 may be stored in memory 1290 (or other storage medium) or transmitted via 1210 or network module 1220. The microphone 1242 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output that may be transmitted to the mobile communication base station via 1210 in the case of a phone call mode.
The user terminal 1200 also includes at least one sensor 1250, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 1261 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1261 and/or the backlight when the user terminal 1200 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the acceleration in all directions (generally three axes), and can detect the gravity and direction when stationary, and can be used for identifying the gesture of the user terminal (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration identification related functions (such as pedometer and knocking), and the like; the sensor 1250 may further include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described again.
The display unit 1260 is used to display information input by a user or information provided to the user. The display unit 1260 may include a display panel 1261, and the display panel 1261 may be configured in the form of a liquid crystal display (LiquidCrystalDisplay, LCD), an organic light-emitting diode (organic light-EmiTTingDiode, OLED), or the like.
The user input unit 1270 may be used to receive input numerical or character information and to generate key signal inputs related to user settings and function control of the user terminal. In particular, the user input unit 1270 includes a touch panel 1271 and other input devices 1272. Touch panel 1271, also referred to as a touch screen, may collect touch operations thereon or thereabout by a user (such as operations of the user on touch panel 1271 or thereabout using any suitable object or accessory such as a finger, stylus, or the like). Touch panel 1271 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1300, and receives and executes commands sent by the processor 1300. In addition, the touch panel 1271 may be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1271, the user input unit 1270 may also include other input devices 1272. In particular, other input devices 1272 may include, but are not limited to, physical keyboards, function keys (e.g., volume control keys, switch keys, etc.), trackballs, mice, joysticks, and so forth, which are not described in detail herein.
Further, the touch panel 1271 may be overlaid on the display panel 1261, and when the touch panel 1271 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 1300 to determine the type of touch event, and then the processor 1300 provides a corresponding visual output on the display panel 1261 according to the type of touch event. Although in fig. 13, the touch panel 1271 and the display panel 1261 are two independent components for implementing the input and output functions of the user terminal, in some embodiments, the touch panel 1271 may be integrated with the display panel 1261 to implement the input and output functions of the user terminal, which is not limited herein.
The user input unit 1280 is an interface through which an external device is connected to the user terminal 1200. For example, the external devices may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The user input unit 1280 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the user terminal 1200 or may be used to transmit data between the user terminal 1200 and an external device.
Memory 1290 may be used to store software programs as well as various data. The memory 1290 may mainly include a storage program area that may store an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a storage data area; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. Further, memory 1290 may include high speed random access memory and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1300 is a control center of the user terminal, connects various parts of the entire user terminal using various interfaces and lines, and performs various functions of the user terminal and processes data by running or executing software programs and/or modules stored in the memory 1290 and calling data stored in the memory 1290, thereby performing overall monitoring of the user terminal. Processor 1300 may include one or more processing units; preferably, the processor 1300 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 1300.
The user terminal 1200 may further include a power supply 1310 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 1310 may be logically connected to the processor 1300 through a power management system, so as to perform functions of managing charging, discharging, and power consumption management through the power management system.
In addition, the user terminal 1200 includes some functional modules, which are not shown, and will not be described herein.
The embodiment of the present invention further provides a user terminal, which includes a processor 1300, a memory 1290, and a computer program stored in the memory 409 and capable of running on the processor 1300, where the computer program when executed by the processor 410 implements the processes of the above information method embodiment, and can achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the processes of the switch configuration method embodiment described above, and can achieve the same technical effects, so that repetition is avoided and no further description is given here. Wherein, the computer readable storage medium is Read-only memory (ROM), random Access Memory (RAM), magnetic disk or optical disk, etc.
It should be noted that, in this document, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present invention and the scope of the claims, which are to be protected by the present invention.
Claims (11)
1. A switch configuration method, characterized in that the switch configuration method is applied to a base of an intelligent switch, the intelligent switch further comprises an external panel, and the method comprises:
Determining whether a base of the intelligent switch and the external panel are connected;
If the base of the intelligent switch is connected with the external panel, acquiring equipment parameters of the external panel;
Determining a mapping list corresponding to the equipment parameters, and acquiring a target working mode corresponding to the equipment parameters based on the mapping list;
Judging whether the working mode of the intelligent switch is matched with the target working mode;
And if the working mode of the intelligent switch is not matched with the target working mode, switching the working mode of the intelligent switch into the target working mode.
2. The method of claim 1, wherein the mapping list comprises a color mapping sub-list, the base of the smart switch comprises a color sensor, and the device parameter of the external panel comprises color information of the external panel;
The obtaining the target working mode corresponding to the equipment parameter comprises the following steps:
acquiring the color information by using the color sensor;
And determining a color mapping sub-list corresponding to the color information, and acquiring a target working mode corresponding to the color information based on the color mapping sub-list.
3. The method of claim 1, wherein the mapping list comprises an image mapping sub-list, and wherein the device parameters of the external panel comprise image information of the external panel;
The obtaining the target working mode corresponding to the equipment parameter comprises the following steps:
acquiring image information of the external panel, and identifying the image information to obtain an image identification result;
And determining an image mapping sub-list corresponding to the image recognition result, and acquiring a target working mode corresponding to the image recognition result based on the image mapping sub-list.
4. The method of claim 1, wherein the mapping list comprises a component mapping sub-list, the add-on panel comprising a plurality of electrical components;
The obtaining the target working mode corresponding to the equipment parameter comprises the following steps:
searching for an electric appliance component meeting preset conditions from the plurality of electric appliance components, and taking the electric appliance component meeting the preset conditions as a target electric appliance component;
Acquiring component parameters of the target electrical component;
and determining a component mapping sub-list corresponding to the component parameters of the target electrical component, and acquiring a target working mode corresponding to the component parameters based on the component mapping sub-list.
5. The method of claim 4, wherein the target appliance component is at least one of a resistor or an erasable programmable read only memory.
6. The method of any one of claims 1 to 5, wherein the obtaining device parameters of the add-on panel comprises:
Sending a parameter acquisition instruction to a gateway, and indicating the gateway to acquire the equipment parameters of the external panel according to the parameter acquisition instruction;
And receiving the equipment parameters of the external panel sent by the gateway.
7. A switch configuration device, characterized in that is applied to the base of intelligent switch, intelligent switch still includes external panel, and the device includes:
the connection determining module is used for determining whether the base of the intelligent switch and the external panel are connected;
the parameter acquisition module is used for acquiring equipment parameters of the external panel if the base of the intelligent switch is connected with the external panel;
the working mode acquisition module is used for determining a mapping list corresponding to the equipment parameters and acquiring a target working mode corresponding to the equipment parameters based on the mapping list;
The mode switching module is used for judging whether the working mode of the intelligent switch is matched with the target working mode; and if the working mode of the intelligent switch is not matched with the target working mode, switching the working mode of the intelligent switch into the target working mode.
8. The apparatus of claim 7, wherein the operating mode obtaining module is further configured to determine a mapping list corresponding to the device parameter, and obtain the target operating mode corresponding to the device parameter based on the mapping list.
9. An intelligent switch, comprising a base and an external panel, wherein the base is connected to the external panel, and wherein the base comprises a processor, a memory, and a computer program stored on the memory and executable on the processor, the computer program implementing the steps of the switch configuration method according to any one of claims 1 to 6 when executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, implements the steps of the switch configuration method according to any one of claims 1 to 6.
11. A computer program product, characterized in that the computer program product is stored in a computer-readable storage medium, which computer program product, when being executed by a processor, implements the steps of the switch configuration method according to any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010575828.5A CN113900414B (en) | 2020-06-22 | 2020-06-22 | Switch configuration method and device and intelligent switch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010575828.5A CN113900414B (en) | 2020-06-22 | 2020-06-22 | Switch configuration method and device and intelligent switch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113900414A CN113900414A (en) | 2022-01-07 |
CN113900414B true CN113900414B (en) | 2024-08-06 |
Family
ID=79186413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010575828.5A Active CN113900414B (en) | 2020-06-22 | 2020-06-22 | Switch configuration method and device and intelligent switch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113900414B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114531441B (en) * | 2022-01-11 | 2024-03-12 | 南京博联智能科技有限公司 | Method and system for converting form of multifunctional intelligent panel based on dynamic configuration |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296523A (en) * | 2007-04-24 | 2008-10-29 | 松下电工株式会社 | Switch device |
CN102710296A (en) * | 2011-03-28 | 2012-10-03 | 索尼爱立信移动通讯有限公司 | Working mode switching method, working mode switching module and terminal equipment |
Family Cites Families (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2676496Y (en) * | 2003-10-01 | 2005-02-02 | 郑祥波 | Intelligent digital switch |
RU2561494C2 (en) * | 2009-04-09 | 2015-08-27 | Конинклейке Филипс Электроникс Н.В. | Smart lighting control system |
DE102010026494A1 (en) * | 2010-07-07 | 2012-01-12 | Abb Ag | Method for configuring a control device |
CN102801209A (en) * | 2012-09-03 | 2012-11-28 | 无锡金桥自动化技术有限公司 | Intelligent dual-power switch controller |
CN203503918U (en) * | 2013-09-05 | 2014-03-26 | 安徽理工大学 | A new type of smart socket |
CN105739327A (en) * | 2014-12-08 | 2016-07-06 | 中兴通讯股份有限公司 | Work state adjusting method and device, and control panel |
US10191614B2 (en) * | 2015-02-25 | 2019-01-29 | Htc Corporation | Panel displaying method, portable electronic device and recording medium using the method |
CN105354275A (en) * | 2015-10-29 | 2016-02-24 | 努比亚技术有限公司 | Information processing method and apparatus, and terminal |
CN105635878B (en) * | 2016-02-03 | 2018-01-26 | 深圳市汇顶科技股份有限公司 | The switching method and a kind of earphone of a kind of earphone mode of operation |
CN105826135B (en) * | 2016-04-22 | 2017-10-10 | 浙江科能达电气有限公司 | Intelligent controller panel device |
CN206370985U (en) * | 2016-08-15 | 2017-08-01 | 慧锐通智能科技股份有限公司 | Switch panel device |
CN206002898U (en) * | 2016-08-25 | 2017-03-08 | 安吉越力搬运设备有限公司 | A kind of key-press input formula display device |
CN106292323A (en) * | 2016-09-20 | 2017-01-04 | 深圳广田智能科技有限公司 | Switch panel is configured to the system and method for Multifunctional control panel |
CN207132300U (en) * | 2017-06-05 | 2018-03-23 | 南京嘉宏汇科技股份有限公司 | A kind of intelligent lighting controller |
CN207317190U (en) * | 2017-08-31 | 2018-05-04 | 四川酷比特科技有限公司 | Multifunctional intelligent air conditioner control panel |
CN107942715A (en) * | 2017-12-29 | 2018-04-20 | 深圳市欧瑞博科技有限公司 | Intelligent control panel and its control method and control device |
CN109729631B (en) * | 2018-12-27 | 2021-04-20 | 深圳市德帮能源科技有限公司 | Control method and system of intelligent induction lamp, storage medium and controller |
CN109581938B (en) * | 2019-01-08 | 2020-11-10 | 广州小鹏汽车科技有限公司 | Remote control method, device, terminal equipment and medium |
-
2020
- 2020-06-22 CN CN202010575828.5A patent/CN113900414B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101296523A (en) * | 2007-04-24 | 2008-10-29 | 松下电工株式会社 | Switch device |
CN102710296A (en) * | 2011-03-28 | 2012-10-03 | 索尼爱立信移动通讯有限公司 | Working mode switching method, working mode switching module and terminal equipment |
Also Published As
Publication number | Publication date |
---|---|
CN113900414A (en) | 2022-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210181923A1 (en) | Always on Display Method and Electronic Device | |
US9697622B2 (en) | Interface adjustment method, apparatus, and terminal | |
CN110049476B (en) | Equipment pushing method, device, mobile terminal and storage medium | |
CN108513347B (en) | Data transmission method and electronic equipment | |
CN107665697A (en) | The adjusting method and mobile terminal of a kind of screen intensity | |
CN110488692B (en) | Device control method, device, system, electronic device and storage medium | |
CN105094501B (en) | Method, device and system for displaying messages in mobile terminal | |
CN108762814A (en) | Screen lightening method and related equipment | |
CN109002245B (en) | Application interface operation method and mobile terminal | |
CN109495769B (en) | Video communication method, terminal, smart television, server and storage medium | |
CN110691168B (en) | Screen control method and device of mobile terminal and storage medium | |
CN109933196B (en) | Screen control method and device and terminal equipment | |
CN113900414B (en) | Switch configuration method and device and intelligent switch | |
CN109068000B (en) | Sensor control method, mobile terminal, and computer-readable storage medium | |
CN108089935B (en) | Application program management method and mobile terminal | |
CN108170310B (en) | Touch screen control method and mobile terminal | |
CN210894629U (en) | Electric meter assembly and electronic equipment | |
CN108021315A (en) | A kind of control method and mobile terminal | |
CN109450508B (en) | Antenna determination method and device and mobile terminal | |
CN110609482A (en) | Electric equipment control method and device and electronic equipment | |
CN115118636B (en) | Method and device for determining network jitter state, electronic equipment and storage medium | |
CN110673761A (en) | Detection method of touch key and terminal equipment thereof | |
CN112867171B (en) | WIFI connection method and device, storage medium and mobile terminal | |
CN111954193B (en) | Bluetooth equipment connection detection method and device and mobile terminal | |
CN110347047B (en) | Method, device and system for deleting equipment, electronic equipment 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 |