CN112731875B - Target device control method and device, nonvolatile storage medium and processor - Google Patents

Target device control method and device, nonvolatile storage medium and processor Download PDF

Info

Publication number
CN112731875B
CN112731875B CN202011522331.3A CN202011522331A CN112731875B CN 112731875 B CN112731875 B CN 112731875B CN 202011522331 A CN202011522331 A CN 202011522331A CN 112731875 B CN112731875 B CN 112731875B
Authority
CN
China
Prior art keywords
target
control
equipment
model
determining
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
Application number
CN202011522331.3A
Other languages
Chinese (zh)
Other versions
CN112731875A (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
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN202011522331.3A priority Critical patent/CN112731875B/en
Publication of CN112731875A publication Critical patent/CN112731875A/en
Application granted granted Critical
Publication of CN112731875B publication Critical patent/CN112731875B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total 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], computer integrated manufacturing [CIM]
    • G05B19/4185Total 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], computer integrated manufacturing [CIM] characterised by the network communication
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention discloses a target device control method and device, a nonvolatile storage medium and a processor. Wherein, the method comprises the following steps: detecting whether target communication data are received by target equipment within a preset time period, wherein the preset time period is a delay time period after the target equipment is initialized by powering on and is interrupted, and the target communication data comprise: Wi-Fi communication data; determining the equipment model of the target equipment based on the detection result; and determining the control logic corresponding to the equipment model. The invention solves the technical problems of higher development cost and poorer effect of determining the type of equipment by adopting a mode of installing a jumper cap in the prior art.

Description

Target device control method and device, nonvolatile storage medium and processor
Technical Field
The present invention relates to the field of target device control, and in particular, to a target device control method and apparatus, a non-volatile storage medium, and a processor.
Background
In the related art, home appliances are generally control devices designed by using an embedded single chip microcomputer, but users have more and more requirements on intelligent products and also have requirements on non-intelligent products, so that the control devices which are only intelligent cannot be used universally, the maintenance cost of the control devices and the inventory management cost are increased, the models of the home appliances need to be distinguished, but the models of the home appliances are generally distinguished in the prior art by installing jumper caps, the development cost is high, and the distinguishing effect is poor.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a target device control method and device, a nonvolatile storage medium and a processor, which are used for solving the technical problems of high development cost and poor effect of determining the type of a device by adopting a jumper cap installation mode in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a target device control method including: detecting whether target communication data are received by target equipment within a preset time period, wherein the preset time period is a delay time period after the target equipment is initialized by powering on and is interrupted, and the target communication data comprise: Wi-Fi communication data; determining the equipment model of the target equipment based on the detection result; and determining the control logic corresponding to the equipment model.
Optionally, the detecting whether the target device receives the target communication data within the predetermined time period includes: and detecting whether a control device of the target equipment receives the target communication data, wherein the control device comprises a main control panel, a display panel, a WiFi communication module, a load control module and an input peripheral.
Optionally, before detecting whether the target device receives the target communication data within a predetermined time period, the method further includes: controlling a control device of the target device to perform power-on initialization, wherein the power-on initialization includes: and initializing a communication port, wherein the communication port is initialized to set the sending port as an output port and set the receiving port as an input port.
Optionally, before detecting whether the target device receives the target communication data within a predetermined time period, the method further includes: controlling the control device to start an interrupt after the power-on initialization is completed, wherein the interrupt includes: an interruption to the target communication device; the delay period is determined after the interrupt is turned on.
Optionally, determining the device model of the target device based on the detection result includes: if the detection result indicates that the control device receives the target communication data, determining that the equipment model is a first model, wherein the first model is a model of the target equipment supporting a WiFi communication function; and if the detection result indicates that the control device does not receive the target communication data, determining that the equipment type is a second type, wherein the second type is a type that the target equipment does not support a WiFi communication function.
Optionally, determining the control logic corresponding to the device model includes: if the equipment model is a first model, determining that a control logic corresponding to the first model is a WiFi-based control logic; if the equipment model is a second model, determining that the control logic corresponding to the second model is a control logic not based on WiFi; the WiFi-based control logic and the non-WiFi-based control logic are both realized by adopting the same main control board of the control device.
Optionally, after determining the control logic corresponding to the device model, the method further includes: after the preset time period is finished, controlling the target equipment to execute the control logic corresponding to the equipment model; if the control logic is the WiFi-based control logic, outputting communication status information during the execution of the WiFi-based control logic, wherein the communication status information includes at least one of: connection is in progress, connection is successful, connection is disconnected, and communication fails.
According to another aspect of the embodiments of the present invention, there is also provided a target device control apparatus, including: the system comprises a detection module and a processing module, wherein the detection module is used for detecting whether target communication data are received by target equipment within a preset time period, the preset time period is a delay time period after the target equipment is initialized by powering on and is interrupted by starting, and the target communication data comprise: Wi-Fi communication data; the first determining module is used for determining the equipment model of the target equipment based on the detection result; and the second determining module is used for determining the control logic corresponding to the equipment model.
According to another aspect of the embodiments of the present invention, there is also provided a non-volatile storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor and to execute any one of the above target device control methods.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program is configured to execute any one of the above target device control methods when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic apparatus, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the computer program to perform any one of the above-mentioned target device control methods.
In the embodiment of the present invention, whether target communication data is received by target equipment within a predetermined time period is detected, where the predetermined time period is a delay time period after the target equipment is initialized when powered on and is turned on for interruption, and the target communication data includes: Wi-Fi communication data; determining the equipment model of the target equipment based on the detection result; the control logic corresponding to the equipment model is determined, the purpose of determining the equipment model by adopting a software control mode is achieved, the technical effect of improving the control effect of the equipment is achieved, and the technical problems that the equipment model is determined by adopting a mode of installing a jumper wire cap, the development cost is high, and the effect is poor in the prior art are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flowchart of a target device control method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative target device control method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a target device control apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection 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.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a target device control method, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a target device control method according to an embodiment of the present invention, and as shown in fig. 1, the method includes the steps of:
step S102, detecting whether target communication data are received by target equipment within a preset time period, wherein the preset time period is a delay time period after the target equipment is initialized by powering on and is started to be interrupted, and the target communication data comprise: Wi-Fi communication data;
step S104, determining the equipment model of the target equipment based on the detection result;
and step S106, determining the control logic corresponding to the equipment model.
In the embodiment of the present invention, whether target communication data is received by target equipment within a predetermined time period is detected, where the predetermined time period is a delay time period after the target equipment is initialized when powered on and is turned on for interruption, and the target communication data includes: Wi-Fi communication data; determining the equipment model of the target equipment based on the detection result; the control logic corresponding to the equipment model is determined, the purpose of determining the equipment model by adopting a software control mode is achieved, the technical effect of improving the control effect of the equipment is achieved, and the technical problems that the equipment model is determined by adopting a mode of installing a jumper wire cap, the development cost is high, and the effect is poor in the prior art are solved.
Alternatively, the target device may be a home appliance, such as an air conditioner, a washing machine, a humidifier, a refrigerator, a television, or the like.
In the embodiment of the application, whether target communication data, such as Wi-Fi communication data, is received or not is detected within a delay time period after the target device is initialized at power-on and interrupted, a device model of the target device is determined based on a detection result, and the target device is controlled by adopting control logic corresponding to the device model.
Through the embodiment of the application, software control is adopted, the control device in the universal target equipment of the machine type supporting the WiFi communication function and the machine type not supporting the WiFi communication function can be realized, hardware setting does not need to be changed, but distinguishing control is carried out based on control logic, dependence of the jumper cap on equipment machine type selection can be reduced, software and hardware universality of the control device is completely realized, and through generalization of the control device, the development quantity of the control device is reduced, the inventory cost of the control device is maintained, the use quantity of the jumper cap is reduced, the development cost of target equipment control is saved, and meanwhile, the performance can meet the requirements of different functions.
In an alternative embodiment, as shown in fig. 2, the detecting whether the target device receives the target communication data within the predetermined time period includes:
step S202, detecting whether the control device of the target device receives the target communication data.
Optionally, the control device includes a main control panel, a display panel, a WiFi communication module, a load control module, and an input peripheral.
Optionally, in this embodiment of the application, detecting whether the target device receives the target communication data is substantially detecting whether a control device in the target device receives the target communication data, for example, the control device may receive the target communication data through a WiFi communication module.
Optionally, in this embodiment of the application, a main control board (i.e., a control unit) in the control device is responsible for communication with the WiFi module, including receiving data sent by the WiFi communication module and sending data to the WiFi communication module, a communication interface of the WiFi communication module may select whether to connect the WiFi communication module externally, and a display panel (i.e., a display unit) is used for prompting a current WiFi communication state of the target device of the user.
In an alternative embodiment, as also shown in fig. 2, before the detecting whether the target device receives the target communication data within a predetermined time period, the method further includes:
step S302, controlling the control device of the target device to perform power-on initialization.
Wherein, the power-on initialization includes: initializing a communication port, wherein the communication port is initialized to set a sending port as an output port and set a receiving port as an input port.
Optionally, in this embodiment of the application, before the target device detects whether the target communication data is received within a predetermined time period, the control device of the target device is controlled to perform power-on initialization, for example, communication port initialization.
In an alternative embodiment, as also shown in fig. 2, before the detecting whether the target device receives the target communication data within a predetermined time period, the method further includes:
step S402, controlling the control device to start an interrupt after the power-on initialization is completed, where the interrupt includes: an interruption to the target communication device;
step S404, determining the delay time period after the interruption is turned on.
Optionally, in this embodiment of the application, after the control device completes the power-on initialization, an interrupt is turned on, and the delay time period is determined after the interrupt is turned on.
In an alternative embodiment, as also shown in fig. 2, determining the device model of the target device based on the detection result includes:
step S502, if the detection result indicates that the control device receives the target communication data, determining that the equipment model is a first model, wherein the first model is a model of the target equipment supporting a WiFi communication function;
step S504, if the detection result indicates that the control device does not receive the target communication data, determining that the equipment model is a second model, where the second model is a model in which the target equipment does not support a WiFi communication function.
Optionally, the model that does not support the WiFi communication function includes: the support control panel is used for receiving the model of the control instruction data, the support display panel is used for receiving the model of the control instruction data, the support input peripheral is used for receiving the model of the control instruction data, and the support control panel is used for simultaneously supporting the models of the functions.
In the embodiment of the application, after the target device is powered on, the control unit performs MCU initialization, including initialization of a communication port with a WiFi module, sets a transmission port as an output port, and sets a reception port as an input port, and starts an interrupt after controlling the control device to complete the power-on initialization, including an interrupt of communication with WiFi, and according to the different types of the selected MCUs, only one communication interrupt completes data transmission and reception, and some are classified into transmission interrupt and reception interrupt.
Optionally, after the control device is powered on for initialization and turned on for interruption, delaying a time period T1 (i.e., a delay time period), and during the delay time period T1, determining whether the control device has received WiFi communication data, and if the control device has successfully received a set of correct WiFi communication data, for example, WiFi communication command data; determining the model of the target equipment as the model supporting the WiFi communication function, and executing the control logic supporting the WiFi communication function after electrifying; if no WiFi communication command data is received, the model of the target equipment is determined to be a model which does not support the WiFi communication function, and the control logic which does not support the WiFi communication function is executed after the target equipment is powered on.
In an alternative embodiment, as also shown in fig. 2, determining the control logic corresponding to the device model includes:
step S602, if the equipment model is a first model, determining that a control logic corresponding to the first model is a WiFi-based control logic;
and step S604, if the equipment model is a second model, determining that the control logic corresponding to the second model is a non-WiFi-based control logic.
The WiFi-based control logic and the non-WiFi-based control logic are realized by the same main control board (such as an MCU) of the control device, and the model selection and the distinguishing processing are performed without additionally adding peripheral devices such as jumper caps, so that the development cost can be effectively saved.
In an optional embodiment, after determining the control logic corresponding to the device model, the method further includes:
step S702, after the predetermined time period ends, controlling the target device to execute the control logic corresponding to the device model;
step S704, if the control logic is the WiFi-based control logic, outputting communication status information during the process of executing the WiFi-based control logic, where the communication status information includes at least one of the following: connection, successful connection, disconnection and communication failure.
In an embodiment of the present invention, after determining a control logic corresponding to the device model and after the predetermined time period ends, the target device is controlled to execute the control logic corresponding to the device model, and if the control logic is the WiFi-based control logic, communication state information is output during the execution of the WiFi-based control logic, and is displayed on a display panel (i.e., a display unit), for example, where the communication state information includes at least one of: connection, successful connection, disconnection and communication failure.
If the control logic is the non-WiFi based control logic, the communication status information is not output during the execution of the WiFi based control logic, i.e., the display unit does not display the information about the communication status.
Example 2
According to an embodiment of the present invention, there is also provided an apparatus embodiment for implementing the target device control method, and fig. 3 is a schematic structural diagram of a target device control apparatus according to an embodiment of the present invention, as shown in fig. 3, the target device control apparatus includes: a detection module 300, a first determination module 302, and a second determination module 304, wherein:
the detecting module 300 is configured to detect whether a target device receives target communication data within a predetermined time period, where the predetermined time period is a delay time period after the target device is initialized when powered on and is turned on for interruption, and the target communication data includes: Wi-Fi communication data; a first determining module 302, configured to determine, based on the detection result, an equipment model of the target equipment; and a second determining module 304, configured to determine a control logic corresponding to the device model.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; alternatively, the modules may be located in different processors in any combination.
It should be noted here that the detection module 300, the first determination module 302, and the second determination module 304 correspond to steps S102 to S106 in embodiment 1, and the modules are the same as the corresponding steps in implementation examples and application scenarios, but are not limited to the disclosure in embodiment 1. It should be noted that the modules described above may be implemented in a computer terminal as part of an apparatus.
It should be noted that, reference may be made to the relevant description in embodiment 1 for alternative or preferred embodiments of this embodiment, and details are not described here again.
The target device control apparatus may further include a processor and a memory, where the detection module 300, the first determination module 302, the second determination module 304, and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory, and the kernel can be set to be one or more. The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
According to an embodiment of the present application, there is also provided an embodiment of a non-volatile storage medium. Optionally, in this embodiment, the nonvolatile storage medium includes a stored program, and the device in which the nonvolatile storage medium is located is controlled to execute the any one of the target device control methods when the program runs.
Optionally, in this embodiment, the nonvolatile storage medium may be located in any one of a group of computer terminals in a computer network, or in any one of a group of mobile terminals, and the nonvolatile storage medium includes a stored program.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: detecting whether target communication data are received by target equipment within a preset time period, wherein the preset time period is a delay time period after the target equipment is initialized by powering on and is interrupted, and the target communication data comprise: Wi-Fi communication data; determining the equipment model of the target equipment based on the detection result; and determining the control logic corresponding to the equipment model.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: and detecting whether a control device of the target equipment receives the target communication data, wherein the control device comprises a main control panel, a display panel, a WiFi communication module, a load control module and an input peripheral.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: controlling a control device of the target device to perform power-on initialization, wherein the power-on initialization includes: and initializing a communication port, wherein the communication port is initialized to set the sending port as an output port and set the receiving port as an input port.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: controlling the control device to start an interrupt after the power-on initialization is completed, wherein the interrupt includes: an interruption to the target communication device; the delay period is determined after the interrupt is turned on.
Optionally, the apparatus in which the non-volatile storage medium is controlled to perform the following functions when the program is executed: if the detection result indicates that the control device receives the target communication data, determining that the equipment model is a first model, wherein the first model is a model of the target equipment supporting a WiFi communication function; and if the detection result indicates that the control device does not receive the target communication data, determining that the equipment type is a second type, wherein the second type is a type that the target equipment does not support a WiFi communication function.
Optionally, the apparatus in which the nonvolatile storage medium is controlled when the program is running performs the following functions: if the equipment model is a first model, determining that a control logic corresponding to the first model is a WiFi-based control logic; if the equipment model is a second model, determining that the control logic corresponding to the second model is a control logic not based on WiFi; the WiFi-based control logic and the non-WiFi-based control logic are both realized by adopting the same main control board of the control device.
Optionally, the apparatus in which the nonvolatile storage medium is controlled when the program is running performs the following functions: after the preset time period is finished, controlling the target equipment to execute the control logic corresponding to the equipment model; if the control logic is the WiFi-based control logic, outputting communication status information during the execution of the WiFi-based control logic, wherein the communication status information includes at least one of: connection, successful connection, disconnection and communication failure.
According to the embodiment of the application, the embodiment of the processor is also provided. Optionally, in this embodiment, the processor is configured to execute a program, where the program executes the any one target device control method when running.
According to an embodiment of the present application, there is also provided an embodiment of an electronic apparatus, including a memory and a processor, where the memory stores therein a computer program, and the processor is configured to run the computer program to execute any one of the above-mentioned target device control methods.
According to an embodiment of the present application, there is also provided an embodiment of a computer program product, which, when executed on a data processing device, is adapted to execute a program that initializes the steps of the target device control method of any of the above.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable non-volatile storage medium. Based on such understanding, the technical solution of the present invention, which is substantially or partly contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a non-volatile storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned nonvolatile storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (9)

1. A target device control method, characterized by comprising:
detecting whether target communication data are received by target equipment within a preset time period, wherein the preset time period is a delay time period after the target equipment is initialized by powering on and is interrupted, and the target communication data comprise: Wi-Fi communication data;
determining the equipment model of the target equipment based on the detection result;
determining control logic corresponding to the equipment model;
the method for detecting whether the target device receives the target communication data in the preset time period includes: detecting whether a control device of the target equipment receives the target communication data or not, wherein the control device comprises a main control panel, a display panel, a WiFi communication module, a load control module and an input peripheral;
wherein the determining the device model of the target device based on the detection result includes: if the detection result indicates that the control device receives the target communication data, determining that the equipment type is a first type, wherein the first type is a type that the target equipment supports a WiFi communication function; if the detection result indicates that the control device does not receive the target communication data, determining that the equipment type is a second type, wherein the second type is a type that the target equipment does not support a WiFi communication function; wherein, the model that does not support the WiFi communication function includes: the control panel is supported to receive control instruction data, the display panel is supported to receive control instruction data, the input peripheral is supported to receive control instruction data, and the control panel, the display panel and the input peripheral are simultaneously supported to receive control instruction data, control instruction data and control instruction data.
2. The method of claim 1, wherein prior to detecting whether the target device receives the target communication data within a predetermined time period, the method further comprises:
controlling a control device of the target device to perform power-on initialization, wherein the power-on initialization includes: a communication port initialization for setting a transmission port as an output port and a reception port as an input port.
3. The method of claim 2, wherein prior to detecting whether the target device receives the target communication data within a predetermined time period, the method further comprises:
controlling the control device to start an interrupt after the power-on initialization is completed, wherein the interrupt comprises: an interruption to the target communication device;
determining the delay period after turning on the interrupt.
4. The method of claim 1, wherein determining the control logic corresponding to the device model comprises:
if the equipment model is a first model, determining that a control logic corresponding to the first model is a WiFi-based control logic;
if the equipment model is a second model, determining that a control logic corresponding to the second model is a non-WiFi-based control logic; the WiFi-based control logic and the non-WiFi-based control logic are both realized by adopting the same main control board of the control device.
5. The method of claim 4, wherein after determining the control logic corresponding to the device model, the method further comprises:
after the preset time period is finished, controlling the target equipment to execute the control logic corresponding to the equipment model;
if the control logic is the WiFi-based control logic, communication state information is output in the process of executing the WiFi-based control logic, wherein the communication state information comprises at least one of the following: connection, successful connection, disconnection and communication failure.
6. A target device control apparatus characterized by comprising:
the detection module is used for detecting whether target communication data are received by target equipment within a preset time period, wherein the preset time period is a delay time period after the target equipment is initialized by powering on and is started to be interrupted, and the target communication data comprise: Wi-Fi communication data;
the first determining module is used for determining the equipment model of the target equipment based on the detection result;
the second determining module is used for determining the control logic corresponding to the equipment model;
the detection module is further used for detecting whether a control device of the target equipment receives the target communication data, wherein the control device comprises a main control panel, a display panel, a WiFi communication module, a load control module and an input peripheral;
wherein the first determining module is further configured to: if the detection result indicates that the control device receives the target communication data, determining that the equipment model is a first model, wherein the first model is a model of the target equipment supporting a WiFi communication function; if the detection result indicates that the control device does not receive the target communication data, determining that the equipment type is a second type, wherein the second type is a type that the target equipment does not support a WiFi communication function; wherein, the model that does not support the WiFi communication function includes: the control panel is supported to receive control instruction data, the display panel is supported to receive control instruction data, the input peripheral is supported to receive control instruction data, and the control panel, the display panel and the input peripheral are simultaneously supported to receive control instruction data, control instruction data and control instruction data.
7. A non-volatile storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the target device control method of any one of claims 1 to 5.
8. A processor for running a program, wherein the program is arranged to perform the target device control method of any one of claims 1 to 5 when run.
9. An electronic apparatus comprising a memory and a processor, wherein the memory has stored therein a computer program, and the processor is configured to execute the computer program to perform the target device control method of any one of claims 1 to 5.
CN202011522331.3A 2020-12-21 2020-12-21 Target device control method and device, nonvolatile storage medium and processor Active CN112731875B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011522331.3A CN112731875B (en) 2020-12-21 2020-12-21 Target device control method and device, nonvolatile storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011522331.3A CN112731875B (en) 2020-12-21 2020-12-21 Target device control method and device, nonvolatile storage medium and processor

Publications (2)

Publication Number Publication Date
CN112731875A CN112731875A (en) 2021-04-30
CN112731875B true CN112731875B (en) 2022-09-13

Family

ID=75604518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011522331.3A Active CN112731875B (en) 2020-12-21 2020-12-21 Target device control method and device, nonvolatile storage medium and processor

Country Status (1)

Country Link
CN (1) CN112731875B (en)

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070204089A1 (en) * 2006-02-27 2007-08-30 Microsoft Corporation Multi-protocol removable storage device
CN102665177A (en) * 2012-04-20 2012-09-12 北京慧创新盈科技有限公司 Method, system and device for pushing application program information based on machine type matching information
CN105812385A (en) * 2016-05-06 2016-07-27 上海庆科信息技术有限公司 Data communication method, device and system based on Wi-Fi device
JP6839846B2 (en) * 2017-03-30 2021-03-10 パナソニックIpマネジメント株式会社 Information processing equipment, information processing methods and programs
CN207380484U (en) * 2017-06-07 2018-05-18 石家庄赛塔普科技有限公司 A kind of universal Wi-Fi Intelligence Remote Controllers
CN109036046A (en) * 2018-09-05 2018-12-18 南京阿波罗机器人科技有限公司 A kind of STEM touch screen programmable electronic building blocks controller
CN109450750A (en) * 2018-11-30 2019-03-08 广东美的制冷设备有限公司 Sound control method, device, mobile terminal and the household appliance of equipment
CN109803360A (en) * 2019-02-13 2019-05-24 Oppo广东移动通信有限公司 WiFi dormancy control method, device, electronic equipment and storage medium
CN110488976A (en) * 2019-08-20 2019-11-22 广东小天才科技有限公司 Function management method, apparatus, equipment and storage medium
CN211577683U (en) * 2020-03-17 2020-09-25 珠海格力电器股份有限公司 Intelligent household equipment and intelligent household system
CN111694687A (en) * 2020-06-05 2020-09-22 中国第一汽车股份有限公司 Vehicle software fault detection method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112731875A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN104216777B (en) Dual system electronic installation and terminal
CN101452435B (en) USB terminal mode switching method and terminal
CN102799484B (en) The method and device of running of mobile terminal multiple operating system
US20160191267A1 (en) Information Processing Method and Central Control Device
CN108228374B (en) Equipment fault processing method, device and system
CN104866333A (en) Upgrading system and upgrading method for software in household appliances
EP2372491B1 (en) Power lock-up setting method and electronic apparatus using the same
CN111506283B (en) Image display method, device and system
CN109462699B (en) Method for controlling Doze mode of mobile terminal
CN109062842B (en) Communication method and device for remote controller and mobile terminal and remote controller
CN109067734B (en) Dynamic configuration method of communication protocol, wireless communication device and household appliance
CN111240753A (en) Loading method of bootstrap program, storage medium and embedded terminal
CN112134765A (en) WIFI (Wireless Fidelity) back-connection test method and device, test terminal and readable storage medium
CN108965019B (en) Dynamic configuration method of communication protocol, wireless communication device and related equipment
CN109257652B (en) Configuration information switching method and device, electronic device, system and storage medium
CN109067735B (en) Dynamic configuration method of communication protocol, wireless communication device and intelligent equipment
CN112731875B (en) Target device control method and device, nonvolatile storage medium and processor
CN105653304A (en) Method for switching operation mode, device for switching operation mode, and terminal
CN106293851A (en) A kind of firmware upgrade method and equipment
CN108874410B (en) Patch management method and device
CN110162389B (en) Application program starting method and device and intelligent interaction equipment
CN111758088A (en) Method for downloading firmware by chip and chip
CN111753309A (en) Display card switching method, server and storage medium
CN115469964A (en) Method and device for determining mapping relation between block device and virtual machine disk character
CN111147400B (en) Method and device for command line configuration synchronization and electronic equipment

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