CN114265343B - Target equipment processing method, device, equipment, storage medium and product - Google Patents

Target equipment processing method, device, equipment, storage medium and product Download PDF

Info

Publication number
CN114265343B
CN114265343B CN202111375369.7A CN202111375369A CN114265343B CN 114265343 B CN114265343 B CN 114265343B CN 202111375369 A CN202111375369 A CN 202111375369A CN 114265343 B CN114265343 B CN 114265343B
Authority
CN
China
Prior art keywords
state
target equipment
target
target device
current
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
CN202111375369.7A
Other languages
Chinese (zh)
Other versions
CN114265343A (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202111375369.7A priority Critical patent/CN114265343B/en
Publication of CN114265343A publication Critical patent/CN114265343A/en
Application granted granted Critical
Publication of CN114265343B publication Critical patent/CN114265343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a target device processing method, a device, a storage medium and a product, wherein the method comprises the following steps: acquiring a status code sent by target equipment; determining the current state of the target equipment according to the state code, wherein the current state is any state in a preset life cycle; and carrying out state processing on the target equipment according to the current state of the target equipment, so that the target equipment after the state processing can be switched to a target state adjacent to the current state in the life cycle. Therefore, the jump back to the initial state after the target equipment is processed can be effectively avoided, inconvenience brought to the use of the user can be avoided, and the user experience is improved.

Description

Target equipment processing method, device, equipment, storage medium and product
Technical Field
The invention belongs to the technical field of household appliances, and particularly relates to a target equipment processing method, a target equipment processing device, target equipment, a target equipment storage medium and a target equipment product.
Background
In the use process of the electronic equipment, a user often needs to control the electronic equipment correspondingly according to actual requirements. For example, when an electronic device fails, the failure needs to be repaired, or when the electronic device is in an abnormal state, the abnormal state needs to be adjusted. However, the use state of the electronic device may be restored to the initial state when the electronic device is controlled, and thus the user may be inconvenienced. For example, after the user performs fault repair on the electronic device, the electronic device may jump back to the initial state directly, and the user needs to reconfigure the network and authenticate and log in to enable normal use of the electronic device. Often, the operation is complicated, and inconvenience is brought to the use of the user.
Disclosure of Invention
The invention provides a water inlet control method and device for a washing machine, the washing machine and a storage medium, and solves the technical problem that an electronic device directly jumps back to an initial state after the electronic device is controlled and operated by the existing electronic device processing method.
A first aspect of the present invention provides a target device processing method, including:
acquiring a current state code of target equipment;
determining the current state of the target equipment according to the state code, wherein the current state is any state in a preset life cycle;
and carrying out state processing on the target equipment according to the current state of the target equipment, so that the target equipment after the state processing can be switched to a target state adjacent to the current state in the life cycle.
A second aspect of the present invention provides a target device processing apparatus, comprising:
the acquisition module is used for acquiring the current state code of the target equipment;
the determining module is used for determining the current state of the target equipment according to the state code, wherein the current state is any state in a preset life cycle;
And the processing module is used for carrying out state processing on the target equipment according to the current state of the target equipment, so that the target equipment after the state processing can be switched to the target state adjacent to the current state in the life cycle.
A third aspect of the present invention provides a target device processing device, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to invoke the program instructions in the memory to perform the target device processing method according to the first aspect.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, are adapted to carry out the target device processing method according to the first aspect.
A fifth aspect of the invention provides a computer program product comprising a computer program which, when executed by a processor, implements the target device processing method according to the first aspect.
According to the water inlet control method and device for the washing machine, the washing machine and the storage medium, the life cycle is set for the target equipment, the state in the life cycle of the target equipment is determined according to the state code of the target equipment, and corresponding state processing operation is carried out on the electronic equipment according to the current state, so that the electronic equipment can return to the target state adjacent to the current state in the life cycle after processing, the jump to the initial state after processing the target equipment can be effectively avoided, inconvenience brought to a user can be avoided, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings which are used in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings can be obtained according to these drawings without inventive faculty for a person skilled in the art.
FIG. 1 is a schematic diagram of a system architecture on which the present invention is based;
fig. 2 is a flowchart of a target device processing method according to a first embodiment of the present invention;
fig. 3 is a schematic view of an application scenario provided in an embodiment of the present invention;
fig. 4 is a flow chart of a target device processing method according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a target device processing apparatus according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a target device processing device according to a fourth embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The water inlet control method of the washing machine provided by the invention can be applied to a roller washing machine or a pulsator washing machine,
the water inlet control process of the washing machine will be explained and illustrated in detail with reference to specific embodiments.
The invention provides a target device processing method, a device, equipment, a storage medium and a product, aiming at the technical problem that the electronic device directly jumps back to an initial state after the control operation is carried out on the electronic device in the prior electronic device processing method.
It should be noted that the present invention provides a target device processing method, apparatus, device, storage medium, and product, which can be applied to a scenario for controlling various electronic devices.
In the conventional electronic device processing method, although operations such as fault repair and control of the electronic device can be realized, when the electronic device is controlled, the use state of the electronic device may be restored to the initial state, and thus inconvenience may be brought to the use of a user.
In the process of solving the technical problems, the inventor finds that a complete life cycle can be set for the electronic equipment, when the fault repair and control operation is performed on the electronic equipment, the current state of the electronic equipment can be determined, and corresponding state processing operation is performed on the electronic equipment according to the current state, so that the electronic equipment can return to a target state adjacent to the current state in the life cycle after processing. Thus ensuring the normal operation and use of the electronic equipment.
Fig. 1 is a schematic diagram of a system architecture according to the present invention, as shown in fig. 1, where the system architecture according to the present invention at least includes: the control terminal 1 and the target device 2, wherein the control terminal 1 is provided with a target device processing device, and the target device processing device can be written in languages such as C/C++, java, shell or Python. The control terminal 1 may specifically be any device capable of realizing control, such as a remote controller or a terminal device of a user. The control terminal 1 is communicatively connected to the target device 2 so that both can interact with information.
Fig. 2 is a flowchart of a target device processing method according to an embodiment of the present invention, as shown in fig. 2, where the method includes:
step 201, a current state code of the target device is obtained.
Step 202, determining a current state of the target device according to the state code, wherein the current state is any state in a preset life cycle.
And 203, performing state processing on the target equipment according to the current state of the target equipment, so that the target equipment after the state processing can be switched to a target state adjacent to the current state in the life cycle.
The execution body of the embodiment is a target device processing apparatus, and the target device processing apparatus may be coupled to a control terminal, where the control terminal may specifically be any device capable of implementing control, such as a remote controller, a terminal device of a user, and the like. The number of the control terminals can be multiple, and each control terminal is respectively in communication connection with at least one target device, so that the configuration, control and other operations of the target devices can be realized.
In this embodiment, in order to realize effective control over the target device, a complete life cycle may be set for the electronic device, where the life cycle includes an initial state, a configuration state, a control state, a restart state, and a failure state, and each state corresponds to a plurality of data bits preset in the state code one by one. For example, the status code may be a six-bit number, with different data bits being used to characterize different states of the target device. For example, the last two bits of the status code may be used to characterize the configuration state of the target device, the status code 0x0100 is used to characterize the target device in the configurable state, and the status code 0x0101 is used to characterize the target device in the in-configuration state.
Specifically, the target device processing apparatus may acquire a current status code of the target device, and determine, according to the status code, a current status of the target device.
After determining the current state of the target device, the current state of the target device can be adjusted according to the current state of the target device, so that the adjusted state can be restored to the target state adjacent to the current state in the life cycle. Thus ensuring the normal operation and use of the electronic equipment.
Further, on the basis of the first embodiment, step 201 includes:
acquiring a current state code sent by the target equipment; or alternatively, the process may be performed,
and sending a state inquiry instruction to the target equipment, and acquiring the current state code fed back by the target equipment according to the state inquiry instruction.
In this embodiment, the target device may send the current status code by broadcasting. Optionally, the target device may send the status code according to a preset time period, where the time period may be set by the user according to an actual requirement. Accordingly, the control terminal may acquire the current status code sent by the target device.
Or the control terminal can send a state inquiry command to the target equipment and acquire the current state code fed back by the target equipment according to the state inquiry command. Alternatively, the status query instruction may be initiated by the user through the control terminal according to actual requirements, and specifically, the control terminal may send the status query instruction to the target device in response to a control operation of the user. Optionally, the control terminal may further send a status query instruction to the target device according to a preset time interval, where the preset time interval may be set by the user according to an actual requirement.
Further, on the basis of the first embodiment, before step 201, the method further includes:
searching target equipment in a preset range by adopting a preset communication protocol, wherein the preset communication protocol at least comprises a Coap protocol.
In this embodiment, before acquiring the status code sent by the target device, the target device needs to be discovered first. Specifically, a preset communication protocol can be adopted to search for target devices within a preset range. The number of the target devices may be at least one, and the preset communication protocol at least includes a Coap protocol, or any other protocol capable of implementing target device searching may be used to perform target device searching, which is not limited in this disclosure.
According to the target device processing method, the life cycle is set for the target device, the state of the target device in the life cycle is determined according to the state code of the target device, and corresponding state processing operation is performed on the electronic device according to the state of the target device, so that the electronic device can return to the target state adjacent to the state of the target device in the life cycle after processing, the jump back to the initial state after processing the target device can be effectively avoided, inconvenience brought to a user can be avoided, and user experience is improved.
Further, on the basis of the first embodiment, step 203 specifically includes:
and carrying out target operation corresponding to the current state of the target equipment according to the current state of the target equipment, and adjusting the current state of the target equipment after the target operation is completed.
In this embodiment, when determining the state in which the target device is currently located, the target operation corresponding to the state may be performed on the target device according to the state. Wherein each state corresponds to a different target operation.
After the target operation is completed on the target device, the current state of the target device may change, so that the state of the target device may be adjusted accordingly.
Specifically, on the basis of any one of the foregoing embodiments, the performing, according to the current state of the target device, a target operation corresponding to the current state of the target device, and adjusting, after the target operation is completed, the current state of the target device includes:
when the current state of the target equipment is an initial state, performing authentication login operation on the target equipment, and switching the state of the target equipment to a configurable state after the authentication login operation is completed;
When the current state of the target equipment is a configurable state, performing configuration operation on system parameters corresponding to the target equipment, and switching the state of the target equipment to a configuration state, wherein the configuration state comprises the configuration state and the configurable state;
when the current state of the target equipment is a control state, a control instruction is sent to the target equipment so as to realize the control operation of the target equipment;
when the current state of the target equipment is in a restarting state, restarting the target equipment, and switching the state of the target equipment into a control state after restarting the operation;
and when the current state of the target equipment is a fault state, performing fault repairing operation on the target equipment, and switching the state of the target equipment into a control state after the fault repairing operation is completed.
In this embodiment, the target operation corresponding to the initial state may be an authentication login operation. Therefore, when the current state of the target device is the initial state, the target device is subjected to authentication login operation, and after the authentication login operation is completed, the state of the target device is switched to the configurable state.
The target operation corresponding to the configurable state may be a configuration operation. Therefore, when the current state of the target device is a configurable state, the configuration operation is performed on the system parameters corresponding to the target device, and the state of the target device is switched to a configuration state, wherein the configuration state comprises the configuration state and the configurable state. The configuration operation may specifically be configuring contents such as system parameters of the target device. It should be noted that, when the target device is in the configuration state, any other control terminal may not control the target device any more.
The target operation corresponding to the control state may be a control operation. Therefore, when the current state of the target device is the control state, a control instruction is sent to the target device so as to realize the control operation of the target device. The control operation includes, but is not limited to, controlling the target device to be turned on, turned off, gear adjustment, and the like. When the target device is in the control state, after the control operation is performed on the target device, the state in which the target device is currently located may not be changed, and thus, the adjustment operation may not be performed on the state in which the target device is currently located.
The target operation corresponding to the restarting state is the restarting operation. Therefore, when the current state of the target device is in the restarting state, the restarting operation is performed on the target device, and after the restarting operation, the state of the target device is switched to the control state. And when the current state of the target equipment is a fault state, performing fault repairing operation on the target equipment, and switching the state of the target equipment into a control state after the fault repairing operation is completed.
Further, on the basis of the first embodiment, after performing the configuration operation on the system parameter corresponding to the target device and switching the state of the target device to the in-configuration state, the method further includes:
after the configuration operation is completed, the state of the target device is switched from the in-configuration state to the control state.
The in-configuration state is used for enabling any other control terminal to not perform control operation and configuration operation on the target equipment.
In this embodiment, in the actual application process, when the target device is in the configuration state, the other control terminals may cause the target device to fail when performing the control operation or the configuration operation on the target device. Therefore, different authorities can be set for different control terminals, the high-authority control terminal can perform configuration operation and control operation on the target equipment, and the low-authority control terminal can only perform control operation on the target equipment.
Based on different control terminal authorities, the high-authority control terminal can switch the state of the target equipment to the configuration state when configuring the target equipment, and any other control terminal can not perform configuration operation and control operation on the target terminal when the target terminal is in the configuration state. After the control terminal completes the configuration operation on the target device, the state of the target device may be switched from the in-configuration state to the control state. So that other control terminals can control and use the target device.
Fig. 3 is a schematic view of an application scenario provided in the embodiment of the present invention, as shown in fig. 3, the control terminal 31, the control terminal 32, and the control terminal 33 are respectively three control terminals corresponding to the target device 34, and all the three control terminals can implement control operation on the target device 34. The control terminal 31 has high authority, which can perform configuration operation on the target device 34, the authority of the control terminal 32 is lower than that of the control terminal 31, the control terminal 33 does not have control authority on the target device 34, and the control terminal 33 and the control terminal 31 have the same authority, so that configuration operation on the target device 34 can be realized. The state of the target device 34 may be switched to the in-configuration state while the control terminal 31 configures the target device 34. In this configuration state, the control terminal 32 cannot perform a control operation on the target device 34, and the control terminal 33 cannot perform a configuration operation on the target device.
According to the target equipment processing method, the electronic equipment is subjected to corresponding state processing operation according to the current state of the target equipment, so that the electronic equipment can return to the target state adjacent to the current state in the life cycle after processing. In addition, by setting different authorities for different control terminals and controlling the target equipment to be in a configuration state, any other control terminal can not perform configuration operation and control operation on the target terminal, so that the problem that the target equipment is failed due to the fact that a plurality of control terminals perform configuration operation on the target equipment simultaneously can be prevented on the basis of avoiding jumping back to an initial state after processing the target equipment.
Fig. 4 is a flow chart of a target device processing method provided in the second embodiment of the present invention, and step 202 specifically includes:
and step 401, identifying the data corresponding to each data bit in the state code to obtain an identification result.
Step 402, determining the current state of the target device according to the identification result, the corresponding relation between the life cycle state and the data bit.
In this embodiment, since each state in the life cycle corresponds to a plurality of data bits preset in the state code, after the state code is acquired, the data corresponding to each data bit in the state code may be first identified, so as to obtain an identification result. And determining the current state of the target equipment according to the identification result corresponding to the data bit and the life cycle state corresponding to the data bit.
Further, on the basis of any one of the above embodiments, when the current state of the target device is a fault state, performing a fault repairing operation on the target device, including:
when the current state of the target equipment is a fault state, identifying the current fault type of the target equipment according to the state code;
and performing fault repairing operation on the target equipment according to the fault type.
In this embodiment, any state in the life cycle can be switched to a failure state when the target device fails, for example, when the target device is in a control state, it can be switched to a failure state when it fails. Alternatively, when the target device is in a configurable state, it may also switch to a failed state when it fails. The target equipment can correspond to different fault types, and part of fault target equipment can be repaired by itself, for example, when the cabinet door of the target equipment is not closed, the cabinet door can be closed by itself through controlling the cabinet door; and part of the failed target device cannot be repaired by itself, for example, the program of the target device fails. Therefore, in order to achieve accurate fault repair of the target device, the fault code may also carry the current fault type. Specifically, when the current state of the target device is a fault state, the data bit corresponding to the fault state in the state code may be identified to determine the current fault type of the target device. And carrying out targeted repair on the target equipment according to the fault type, so that the processing efficiency of the target equipment can be improved.
Further, on the basis of any one of the foregoing embodiments, the performing, according to the fault type, a fault repairing operation on the target device includes:
if the fault type is a repairable type, repairing the fault of the target equipment;
and if the fault type is the unrepairable type, restarting the target equipment, and controlling the state of the target equipment to be switched to a state in a preset life cycle after restarting the target equipment.
In this embodiment, the fault types may specifically be classified into a repairable type and an unrepairable type, where the repairable type characterizes that the target device may finish repairing the fault by itself, and the unrepairable type characterizes that the target device cannot finish repairing the fault by itself.
When the fault type is detected to be the repairable type according to the state code, the target equipment can be controlled to repair the fault by itself. Taking target equipment as a washing machine, for example, if the current fault is detected as that the door of the washing machine cabinet cannot be closed, the washing machine can be controlled to automatically close the door of the washing machine, and the fault is repaired.
When the fault type is detected to be the unrepairable type according to the state code, the target device can be controlled to perform restarting operation. After the target device is restarted, the state of the target device may be controlled to switch to a state in a preset life cycle. Still taking the target equipment as the washing machine, for example, if the current fault is detected to be that the washing machine is always in a spin-drying state, the washing machine can be controlled to restart, and after restarting, the state of the washing machine is switched to a preset controllable state. Optionally, the user may set the state that the target device needs to be switched after restarting according to the actual requirement, or the state that the target device needs to be switched after restarting may also be set by default for the system, which is not limited in this disclosure.
According to the target equipment processing method, the fault code is identified, so that the current state of the target equipment and the current fault of the target equipment can be accurately determined, the accurate control and fault repair of the target equipment can be realized subsequently, and the control efficiency of the target equipment is improved.
Fig. 5 is a schematic structural diagram of a target device processing apparatus according to a third embodiment of the present invention, as shown in fig. 5, where the apparatus includes: the device comprises an acquisition module 51, a determination module 52 and a processing module 53, wherein the acquisition module 51 is used for acquiring the current state code of the target device. And the determining module 52 is configured to determine, according to the status code, a current status of the target device, where the current status is any status in a preset life cycle. And the processing module 53 is configured to perform state processing on the target device according to a current state of the target device, so that the target device after the state processing can be switched to a target state adjacent to the current state in the life cycle.
Further, on the basis of the third embodiment, the obtaining module is configured to:
acquiring a current state code sent by the target equipment; or alternatively, the process may be performed,
And sending a state inquiry instruction to the target equipment, and acquiring the current state code fed back by the target equipment according to the state inquiry instruction.
Further, on the basis of the third embodiment, the life cycle includes an initial state, a configuration state, a control state, a restart state and a fault state, where each state corresponds to a plurality of data bits preset in the state code one by one.
Further, on the basis of the third embodiment, the determining module is configured to: identifying data corresponding to each data bit in the state code to obtain an identification result; and determining the current state of the target equipment according to the identification result, the corresponding relation between the life cycle state and the data bit.
Further, on the basis of the third embodiment, the processing module is configured to: and carrying out target operation corresponding to the current state of the target equipment according to the current state of the target equipment, and adjusting the current state of the target equipment after the target operation is completed.
Further, on the basis of the third embodiment, the processing module is configured to: when the current state of the target equipment is an initial state, performing authentication login operation on the target equipment, and switching the state of the target equipment to a configurable state after the authentication login operation is completed; when the current state of the target equipment is a configurable state, performing configuration operation on system parameters corresponding to the target equipment, and switching the state of the target equipment to a configuration state, wherein the configuration state comprises the configuration state and the configurable state; when the current state of the target equipment is a control state, a control instruction is sent to the target equipment so as to realize the control operation of the target equipment; when the current state of the target equipment is in a restarting state, restarting the target equipment, and switching the state of the target equipment into a control state after restarting the operation; and when the current state of the target equipment is a fault state, performing fault repairing operation on the target equipment, and switching the state of the target equipment into a control state after the fault repairing operation is completed.
Further, on the basis of any one of the foregoing embodiments, the apparatus further includes: and the switching module is used for switching the state of the target equipment from the in-configuration state to the control state after the configuration operation is completed.
Further, on the basis of any one of the above embodiments, the in-configuration state is used to enable any other control terminal to no longer perform control operation and configuration operation on the target device.
Further, on the basis of any one of the foregoing embodiments, the processing module is configured to: when the current state of the target equipment is a fault state, identifying the current fault type of the target equipment according to the state code; and performing fault repairing operation on the target equipment according to the fault type.
Further, on the basis of any one of the foregoing embodiments, the processing module is configured to: if the fault type is a repairable type, repairing the fault of the target equipment; and if the fault type is the unrepairable type, restarting the target equipment, and controlling the state of the target equipment to be switched to a state in a preset life cycle after restarting the target equipment.
Further, on the basis of any one of the foregoing embodiments, the apparatus further includes: the searching module is used for searching the target equipment within a preset range by adopting a preset communication protocol, wherein the preset communication protocol at least comprises a Coap protocol.
Still another embodiment of the present invention provides a target device processing device, including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
the processor is configured to invoke the program instructions in the memory to execute the target device processing method according to any of the foregoing embodiments.
Still another embodiment of the present invention provides a computer readable storage medium, where computer executable instructions are stored, where the computer executable instructions are executed by a processor to implement a target device processing method according to any one of the above embodiments.
Yet another embodiment of the present invention provides a computer program product comprising a computer program which, when executed by a processor, implements a target device processing method as described in any of the above embodiments.
Fig. 6 is a schematic structural diagram of a target device processing device according to a fourth embodiment of the present invention, and as shown in fig. 6, the device may be a home appliance, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
The device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
The multimedia component 608 includes a screen between the device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 600 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the device 600. For example, the sensor assembly 614 may detect the on/off state of the device 600, the relative positioning of the components, such as the display and keypad of the device 600, the sensor assembly 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the device 600 and other devices, either wired or wireless. The device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), control terminals, micro-control terminals, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of device 600 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium, and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to perform part of the steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional modules is illustrated, and in practical application, the above-described functional allocation may be performed by different functional modules according to needs, i.e. the internal structure of the apparatus is divided into different functional modules to perform all or part of the functions described above. The specific working process of the above-described device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (12)

1. A target device processing method applied to a control terminal, comprising:
acquiring a current state code of target equipment;
determining the current state of the target equipment according to the state code, wherein the current state is any state in a preset life cycle; the life cycle comprises an initial state, a configuration state, a control state, a restarting state and a fault state, and each state corresponds to a plurality of data bits preset in a state code one by one;
performing state processing on the target equipment according to the current state of the target equipment, so that the target equipment after the state processing can be switched to a target state adjacent to the current state in the life cycle;
The processing the state of the target equipment according to the current state of the target equipment comprises the following steps:
when the current state of the target equipment is an initial state, performing authentication login operation on the target equipment, and switching the state of the target equipment to a configurable state after the authentication login operation is completed;
when the current state of the target equipment is a configurable state, performing configuration operation on system parameters corresponding to the target equipment, and switching the state of the target equipment to a configuration state, wherein the configuration state comprises the configuration state and the configurable state;
when the current state of the target equipment is a control state, a control instruction is sent to the target equipment so as to realize the control operation of the target equipment;
when the current state of the target equipment is in a restarting state, restarting the target equipment, and switching the state of the target equipment into a control state after restarting the operation;
and when the current state of the target equipment is a fault state, performing fault repairing operation on the target equipment, and switching the state of the target equipment into a control state after the fault repairing operation is completed.
2. The method of claim 1, wherein the obtaining the current status code of the target device comprises:
acquiring a current state code sent by the target equipment; or alternatively, the process may be performed,
and sending a state inquiry instruction to the target equipment, and acquiring the current state code fed back by the target equipment according to the state inquiry instruction.
3. The method of claim 1, wherein said determining the current state of the target device based on the state code comprises:
identifying data corresponding to each data bit in the state code to obtain an identification result;
and determining the current state of the target equipment according to the identification result, the corresponding relation between the life cycle state and the data bit.
4. The method according to claim 1, wherein after performing the configuration operation on the system parameter corresponding to the target device and switching the state of the target device to the in-configuration state, the method further comprises:
after the configuration operation is completed, the state of the target device is switched from the in-configuration state to the control state.
5. The method according to claim 1, wherein the in-configuration state is used to make any other control terminal no longer perform control operations and configuration operations on the target device.
6. The method according to claim 1, wherein when the current state of the target device is a fault state, performing a fault repair operation on the target device includes:
when the current state of the target equipment is a fault state, identifying the current fault type of the target equipment according to the state code;
and performing fault repairing operation on the target equipment according to the fault type.
7. The method of claim 6, wherein performing a failover operation on the target device according to the failure type comprises:
if the fault type is a repairable type, repairing the fault of the target equipment;
and if the fault type is the unrepairable type, restarting the target equipment, and controlling the state of the target equipment to be switched to a state in a preset life cycle after restarting the target equipment.
8. The method according to any one of claims 1-2, further comprising, prior to the obtaining the status code sent by the target device:
searching target equipment in a preset range by adopting a preset communication protocol, wherein the preset communication protocol at least comprises a Coap protocol.
9. A target device processing apparatus, comprising:
the acquisition module is used for acquiring the current state code of the target equipment;
the determining module is used for determining the current state of the target equipment according to the state code, wherein the current state is any state in a preset life cycle; the life cycle comprises an initial state, a configuration state, a control state, a restarting state and a fault state, and each state corresponds to a plurality of data bits preset in a state code one by one;
the processing module is used for carrying out state processing on the target equipment according to the current state of the target equipment, so that the target equipment after the state processing can be switched to a target state adjacent to the current state in the life cycle;
the processing module is specifically configured to perform an authentication login operation on the target device when the current state of the target device is an initial state, and switch the state of the target device to a configurable state after the authentication login operation is completed; when the current state of the target equipment is a configurable state, performing configuration operation on system parameters corresponding to the target equipment, and switching the state of the target equipment to a configuration state, wherein the configuration state comprises the configuration state and the configurable state; when the current state of the target equipment is a control state, a control instruction is sent to the target equipment so as to realize the control operation of the target equipment; when the current state of the target equipment is in a restarting state, restarting the target equipment, and switching the state of the target equipment into a control state after restarting the operation; and when the current state of the target equipment is a fault state, performing fault repairing operation on the target equipment, and switching the state of the target equipment into a control state after the fault repairing operation is completed.
10. A target device processing apparatus, comprising: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to invoke program instructions in the memory to perform the target device processing method of any of claims 1-8.
11. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to implement the target device processing method of any of claims 1-8.
12. A computer program product comprising a computer program which, when executed by a processor, implements the target device processing method according to any of claims 1-8.
CN202111375369.7A 2021-11-19 2021-11-19 Target equipment processing method, device, equipment, storage medium and product Active CN114265343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111375369.7A CN114265343B (en) 2021-11-19 2021-11-19 Target equipment processing method, device, equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111375369.7A CN114265343B (en) 2021-11-19 2021-11-19 Target equipment processing method, device, equipment, storage medium and product

Publications (2)

Publication Number Publication Date
CN114265343A CN114265343A (en) 2022-04-01
CN114265343B true CN114265343B (en) 2023-09-15

Family

ID=80825274

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111375369.7A Active CN114265343B (en) 2021-11-19 2021-11-19 Target equipment processing method, device, equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN114265343B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389815A (en) * 2018-04-18 2019-10-29 阿里巴巴集团控股有限公司 Task processing method, apparatus and system
CN111131490A (en) * 2019-12-30 2020-05-08 北京三快在线科技有限公司 State updating method and device, computer equipment and storage medium
CN112888028A (en) * 2021-01-26 2021-06-01 北京树米网络科技有限公司 Method and device for switching traffic service by switching life cycle state
JP6883898B1 (en) * 2020-09-03 2021-06-09 上海姜歌机器人有限公司Django Robotics Shanghai Co.,Ltd. Robot status notification system, robot status notification method, robot status notification device, electronic device and storage medium
CN112953796A (en) * 2021-02-03 2021-06-11 北京小米移动软件有限公司 Equipment state judgment method and device and storage medium
CN113660149A (en) * 2021-08-13 2021-11-16 Oppo广东移动通信有限公司 Device control method and apparatus, storage medium, and electronic device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162728B (en) * 2015-07-31 2018-07-31 小米科技有限责任公司 Method for network access, equipment and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110389815A (en) * 2018-04-18 2019-10-29 阿里巴巴集团控股有限公司 Task processing method, apparatus and system
CN111131490A (en) * 2019-12-30 2020-05-08 北京三快在线科技有限公司 State updating method and device, computer equipment and storage medium
JP6883898B1 (en) * 2020-09-03 2021-06-09 上海姜歌机器人有限公司Django Robotics Shanghai Co.,Ltd. Robot status notification system, robot status notification method, robot status notification device, electronic device and storage medium
CN112888028A (en) * 2021-01-26 2021-06-01 北京树米网络科技有限公司 Method and device for switching traffic service by switching life cycle state
CN112953796A (en) * 2021-02-03 2021-06-11 北京小米移动软件有限公司 Equipment state judgment method and device and storage medium
CN113660149A (en) * 2021-08-13 2021-11-16 Oppo广东移动通信有限公司 Device control method and apparatus, storage medium, and electronic device

Also Published As

Publication number Publication date
CN114265343A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
EP3136793B1 (en) Method and apparatus for awakening electronic device
US10241857B2 (en) Method, apparatus and system for automatically repairing device
EP2991275B1 (en) Making router management application compatible with router firmware
CN108123855B (en) Terminal control method and device
EP3116165B1 (en) Method and device for testing a terminal
RU2627940C2 (en) Method and device for controlling intelligent home power source
KR101715801B1 (en) Methods, apparatuses, program and recording medium for controlling wireless access point
US11457479B2 (en) Method and apparatus for configuring random access occasion, method and apparatus for random access
JP7204680B2 (en) METHOD, APPARATUS, PROGRAM, AND STORAGE MEDIUM FOR CONTROLLING DOOR GUARD
CN106792937B (en) Method and device for processing call request
CN107272427B (en) Control method and device of intelligent equipment
US9723639B2 (en) Communication method and terminal
CN112201242A (en) Method and device for waking up equipment, electronic equipment and storage medium
CN106292316B (en) Working mode switching method and device
US11510253B2 (en) Random access control method and random access control apparatus
CN111277984A (en) Wireless local area network access method and device
CN104461358A (en) Method and device for lightening screen
CN106933111B (en) Method and device for controlling equipment
CN105227426B (en) Application interface switching method and device and terminal equipment
CN114265343B (en) Target equipment processing method, device, equipment, storage medium and product
CN104965746A (en) Method and device for quick start
JP6901591B2 (en) Methods and equipment for accessing base stations
CN109040220B (en) Remote control method and device of intelligent equipment and readable storage medium
CN108897553B (en) Chip programming tool, system, chip programming method and device
CN108539823B (en) Charging method and device

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