CN114265343A - 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
CN114265343A
CN114265343A CN202111375369.7A CN202111375369A CN114265343A CN 114265343 A CN114265343 A CN 114265343A CN 202111375369 A CN202111375369 A CN 202111375369A CN 114265343 A CN114265343 A CN 114265343A
Authority
CN
China
Prior art keywords
state
target
target equipment
target device
current state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111375369.7A
Other languages
Chinese (zh)
Other versions
CN114265343B (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

Images

Abstract

The invention provides a target device processing method, a device, equipment, a storage medium and a product, wherein the method comprises the following steps: acquiring a state code sent by target equipment; determining the current state of the target device according to the state code, wherein the current state is any one 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 situation that the target equipment jumps back to the initial state after being processed can be effectively avoided, inconvenience brought to the user can be avoided, and 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 processing equipment, storage media and a product.
Background
In the using process of the electronic equipment, often, a user needs to correspondingly control the electronic equipment 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, when the electronic device is controlled, the use state of the electronic device may be restored to the initial state, which may cause inconvenience to the user. For example, after the user performs fault recovery on the electronic device, the electronic device may jump back to the initial state, and the user needs to re-distribute the network and authenticate login to be able to use the electronic device normally. The operation is often complicated, and inconvenience is brought to the use of a user.
Disclosure of Invention
The invention provides a washing machine water inlet control method, a washing machine water inlet control device, a washing machine and a storage medium, and solves the technical problem that the electronic equipment directly jumps back to an initial state after the electronic equipment is controlled and operated by using the existing electronic equipment processing method.
The 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 device according to the state code, wherein the current state is any one 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, including:
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 device according to the state code, wherein the current state is any one 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 a target state adjacent to the current state in the life cycle.
A third aspect 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;
wherein the processor is configured to invoke program instructions in the memory to perform the target device processing method of the first aspect.
A fourth aspect of the present invention provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the target device processing method according to the first aspect when the computer-executable instructions are executed by a processor.
A fifth aspect of the invention is to provide a computer program product comprising a computer program which, when executed by a processor, implements the target device processing method as described in the first aspect.
According to the washing machine water inlet control method, the washing machine water inlet control device, the washing machine and the storage medium, the life cycle is set for the target equipment, the current state of the target equipment in the life cycle is determined according to the state code of the target equipment, and corresponding state processing operation is performed 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 target equipment can be effectively prevented from jumping back to the initial state after processing, further inconvenience brought to users can be avoided, and user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a system architecture on which the present invention is based;
fig. 2 is a schematic flowchart of a target device processing method according to an 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 flowchart illustrating 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 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.
The water inlet control method of the washing machine provided by the invention is suitable for a roller washing machine or a pulsator washing machine,
the water inlet control process of the washing machine will be explained and explained in detail with reference to the specific embodiments.
In view of the above-mentioned technical problem that the electronic device directly jumps back to the initial state after the electronic device is controlled by the conventional electronic device processing method, the present invention provides a target device processing method, apparatus, device, storage medium, and product.
It should be noted that the target device processing method, apparatus, device, storage medium, and product provided by the present invention can be applied to a scenario for controlling various electronic devices.
Although the conventional electronic device processing method can implement operations such as fault recovery and control on the electronic device, the use state of the electronic device may be restored to the initial state when the electronic device is controlled, which may cause inconvenience to a user.
In the process of solving the technical problem, the inventor finds, through research, that a complete life cycle can be set for the electronic device, when the electronic device is subjected to fault repairing and control operations, the current state of the electronic device can be determined at first, and corresponding state processing operations are performed on the electronic device according to the current state, so that the electronic device can return to a target state adjacent to the current state in the life cycle after processing. Thereby can guarantee normal operation and the use of electronic equipment.
Fig. 1 is a schematic diagram of a system architecture based on the present invention, and as shown in fig. 1, the system architecture based on the present invention at least includes: the system comprises a control terminal 1 and target equipment 2, wherein the control terminal 1 is provided with a target equipment processing device which can be written by languages such as C/C + +, Java, Shell or Python. The control terminal 1 may be any device capable of implementing control, such as a remote controller and a user terminal device. The control terminal 1 is in communication connection with the target device 2, so that the two can perform information interaction.
Fig. 2 is a schematic flowchart of a target device processing method according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
step 201, acquiring the current state code of the target device.
Step 202, determining the current state of the target device according to the state code, where the current state is any one state in a preset life cycle.
Step 203, performing state processing on the target device according to the current state of the target device, so that the target device after state processing can be switched to a target state adjacent to the current state in the lifecycle.
The execution subject of this embodiment is a target device processing apparatus, which 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 user's terminal device, 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 achieve effective control of 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 to one. For example, the status code may be a six-bit number, with different data bits 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 as being in the configurable state, and the status code 0x0101 is used to characterize the target device as being in the in-configuration state.
Specifically, the target device processing apparatus may obtain a current status code of the target device, and determine a current status of the target device according to the status code.
After the current state of the target device is determined, the current state of the target device can be adjusted, so that the target state adjacent to the current state in the life cycle can be recovered after adjustment. Thereby can guarantee normal operation and the use of electronic equipment.
Further, on the basis of the first embodiment, the step 201 includes:
acquiring a current state code sent by the target equipment; alternatively, the first and second electrodes may be,
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 in a broadcast manner. Optionally, the target device may send the status code according to a preset time period, where the time period may be set according to actual needs of the user. Accordingly, the control terminal may obtain the current status code sent by the target device.
Or, the control terminal may send a status query instruction to the target device, and obtain the current status code fed back by the target device according to the status query instruction. Optionally, the state query instruction may be initiated by the user through the control terminal according to an actual requirement, and specifically, the control terminal may send the state 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 according to an actual requirement of the user.
Further, on the basis of the first embodiment, before the step 201, the method further includes:
and searching target equipment in a preset range by adopting a preset communication protocol, wherein the preset communication protocol at least comprises a coach 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 may be used to search for a target device within a preset range. The number of the target devices may be at least one, and the preset communication protocol at least includes a coach protocol, or any other protocol capable of implementing target device search may be adopted to search for the target devices, which is not limited in this disclosure.
In the target device processing method provided by this embodiment, a life cycle is set for the target device, a state in the life cycle in which the target device is currently located is determined according to a state code of the target device, and corresponding state processing operation is performed on the electronic device according to the current state, so that the electronic device can return to a target state adjacent to the current state in the life cycle after processing, thereby effectively avoiding a jump back to an initial state after processing the target device, further avoiding inconvenience brought to a user, and improving user experience.
Further, on the basis of the first embodiment, step 203 specifically includes:
and according to the current state of the target equipment, performing target operation corresponding to the current state of the target equipment on the target equipment, and after the target operation is completed, adjusting the current state of the target equipment.
In this embodiment, when determining the current state of the target device, the target device may perform a target operation corresponding to the state 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, and thus, the state of the target device may be adjusted accordingly.
Specifically, on the basis of any of the above 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 after the target operation is completed, adjusting 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 after the authentication login operation is completed, switching the state of the target equipment to a configurable state;
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, sending a control instruction to the target equipment to realize the control operation of the target equipment;
when the current state of the target equipment is a restarting state, restarting the target equipment, and switching the state of the target equipment into a control state after restarting;
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 to 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 the configurable state, the system parameter corresponding to the target device is configured, and the state of the target device is switched to the in-configuration state, where the configuration state includes the in-configuration state and the configurable state. The configuration operation may specifically be to configure content 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 no longer control the target device.
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 to realize the control operation of the target device. The control operation includes, but is not limited to, turning on, turning off, gear adjustment, etc. of the control target device. When the target device is in the control state, after the control operation is performed on the target device, the current state of the target device may not be changed, and thus, the current state of the target device may not be adjusted.
And the target operation corresponding to the restart state is the restart operation. Therefore, when the current state of the target device is the restart state, the target device is restarted, and after the restart 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 to a control state after the fault repairing operation is completed.
Further, on the basis of the first embodiment, after the configuring operation is performed on the system parameter corresponding to the target device and the state of the target device is switched to the in-configuration state, the method further includes:
after the configuration operation is completed, the state of the target device is switched from a configuration in-state to a control state.
And the configuration middle state is used for enabling any other control terminal not to perform control operation and configuration operation on the target equipment any more.
In this embodiment, in an actual application process, when the target device is in the configuration state, and another control terminal performs a control operation or a configuration operation on the target device again, a failure of the target device may be caused. Therefore, different authorities can be set for different control terminals, a control terminal with high authority can perform configuration operation and control operation on the target device, and a control terminal with low authority can only perform control operation on the target device.
Based on different control terminal authorities, when configuring the target equipment, the control terminal with high authority can switch the state of the target equipment to the state in configuration, and when the target terminal is in the state in configuration, any other control terminal can not perform configuration operation and control operation on the target terminal. After the control terminal completes the configuration operation of the target device, the state of the target device can be switched from the in-configuration state to the control state. So that other control terminals can control and use the target equipment.
Fig. 3 is a schematic view of an application scenario provided in an embodiment of the present invention, and as shown in fig. 3, the control terminal 31, the control terminal 32, and the control terminal 33 are three control terminals corresponding to the target device 34, and all of the three can implement a control operation on the target device 34. The control terminal 31 has a high authority, and can perform configuration operation on the target device 34, the control terminal 32 has a lower authority than the control terminal 31, and does not have the control authority on the target device 34, and the control terminal 33 and the control terminal 31 have the same authority, and can perform configuration operation on the target device 34. When the control terminal 31 configures the target device 34, the state of the target device 34 may be switched to the in-configuration state. In this configuration-in 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.
In the target device processing method provided in this embodiment, corresponding state processing operation is performed on the electronic device according to the current state of the target device, so that the electronic device can revert to the target state adjacent to the current state in the lifetime after processing. In addition, different authorities are set for different control terminals, and when the control target equipment is in the configuration state, other arbitrary control terminals cannot perform configuration operation and control operation on the target terminal, so that the problem that the target equipment fails due to the fact that the target equipment is configured by a plurality of control terminals at the same time can be prevented on the basis of avoiding jumping back to the initial state after the target equipment is processed.
Fig. 4 is a flowchart illustrating a target device processing method according to a second embodiment of the present invention, where on the basis of the first embodiment, step 202 specifically includes:
step 401, identifying data corresponding to each data bit in the status code, and obtaining an identification result.
Step 402, determining the current state of the target device according to the corresponding relationship among the identification result, the life cycle state and the data bit.
In this embodiment, each state in the lifecycle corresponds to a plurality of preset data bits in the status code, so after the status code is obtained, the data corresponding to each data bit in the status code may be first identified 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 of the above embodiments, when the current state of the target device is a failure state, performing a failure 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.
In this embodiment, when the target device fails, any state in the life cycle can be switched to the failure state, for example, when the target device is in the control state, when it fails, it can be switched to the failure state. Alternatively, when the target device is in a configurable state, it may also switch to a failed state when it fails. The target equipment may correspond to different fault types, and part of fault target equipment can be automatically repaired, for example, when a cabinet door of the target equipment is not closed, the cabinet door can be automatically closed by controlling the cabinet door; and partial fault target devices cannot repair themselves, for example, program faults of the target devices and the like. Therefore, in order to implement accurate fault repair on 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 repairing the target equipment in a targeted manner according to the fault type, so that the processing efficiency of the target equipment can be improved.
Further, on the basis of any of the above 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, performing repair operation on the fault of the target equipment;
and if the fault type is an 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 the target equipment is restarted.
In this embodiment, the failure types may specifically be classified into a repairable type and an unrepairable type, where the repairable type indicates that the target device can automatically complete the repair of the failure, and the unrepairable type indicates that the target device cannot automatically complete the repair of the failure.
When the fault type is detected to be a repairable type according to the status code, the target device can be controlled to repair the fault by itself. For example, if the target device is a washing machine, if the current fault is detected that the cabinet door of the washing machine cannot be closed, the washing machine can be controlled to automatically close the cabinet door of the washing machine, and the fault is repaired.
And when the fault type is detected to be the unrepairable type according to the state code, the target device can be controlled to restart. After the target device is restarted, the state of the target device may be controlled to be switched to a state in a preset life cycle. For example, if the current fault is detected that the washing machine is always in the spin-drying state, the washing machine may be controlled to restart, and after the restart, the state of the washing machine may be switched to a preset controllable state. Optionally, the user may set a state that the target device needs to be switched after being restarted according to an actual requirement, or the state that the target device needs to be switched after being restarted may also be set by default, which is not limited by the present disclosure.
According to the target device processing method provided by the embodiment, the fault code is identified, so that the current state of the target device and the current fault of the target device can be accurately determined, accurate control and fault repair of the target device can be subsequently realized, and the control efficiency of the target device is improved.
Fig. 5 is a schematic structural diagram of a target device processing apparatus according to a third embodiment of the present invention, and as shown in fig. 5, the apparatus includes: the device comprises an obtaining module 51, a determining module 52 and a processing module 53, wherein the obtaining module 51 is configured to obtain a current status code of a target device. A determining module 52, configured to determine, according to the status code, a current status of the target device, where the current status is any one status in a preset life cycle. The processing module 53 is configured to perform state processing on the target device according to the 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 lifecycle.
Further, on the basis of the third embodiment, the obtaining module is configured to:
acquiring a current state code sent by the target equipment; alternatively, the first and second electrodes may be,
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 failure state, and each state corresponds to a plurality of data bits preset in the state code one to 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 corresponding relation among the identification result, the life cycle state and the data bit.
Further, on the basis of the third embodiment, the processing module is configured to: and according to the current state of the target equipment, performing target operation corresponding to the current state of the target equipment on the target equipment, and after the target operation is completed, adjusting the current state of the target equipment.
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 after the authentication login operation is completed, switching the state of the target equipment to a configurable state; 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, sending a control instruction to the target equipment to realize the control operation of the target equipment; when the current state of the target equipment is a restarting state, restarting the target equipment, and switching the state of the target equipment into a control state after restarting; 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 to a control state after the fault repairing operation is completed.
Further, on the basis of any one of the above 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 of the above embodiments, the state in configuration is used to enable any other control terminal not to perform control operation and configuration operation on the target device any more.
Further, on the basis of any of the above 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 of the above embodiments, the processing module is configured to: if the fault type is a repairable type, performing repair operation on the fault of the target equipment; and if the fault type is an 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 the target equipment is restarted.
Further, on the basis of any one of the above embodiments, the apparatus further includes: the device comprises a searching module and a processing module, wherein the searching module is used for searching target equipment in a preset range by adopting a preset communication protocol, and the preset communication protocol at least comprises a coach protocol.
Another embodiment of the present invention further provides a target device processing device, including: a memory, a processor;
a memory; a memory for storing the processor-executable instructions;
wherein the processor is configured to call the program instructions in the memory to execute the target device processing method according to any of the above embodiments.
Yet another embodiment of the present invention further provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, the computer-executable instructions are used to implement the target device processing method according to any one of the above embodiments.
Yet another embodiment of the present invention further provides a computer program product, which includes a computer program, and the computer program realizes the target device processing method according to any one of the above embodiments when being executed by a processor.
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, an exercise device, a personal digital assistant, or the like.
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 a portion 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 can 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 operation 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 so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile 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 disks.
A 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 that provides an output interface between the device 600 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating 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 a focal length and optical zoom capability.
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 signal may further be 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 keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the device 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the device 600, the sensor component 614 may also detect a change in the position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, orientation or acceleration/deceleration of the device 600, and a change in the temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the device 600 and other devices in a wired or wireless manner. The device 600 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an 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 device 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 comprising instructions, such as the memory 604 comprising instructions, executable by the processor 620 of the device 600 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of 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, devices or units, and may be in an electrical, mechanical 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 network 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, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made 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 used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (15)

1. A target device processing method is applied to a control terminal and is characterized by comprising the following steps:
acquiring a current state code of target equipment;
determining the current state of the target device according to the state code, wherein the current state is any one 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.
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; alternatively, the first and second electrodes may be,
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 the life cycle includes an initial state, a configuration state, a control state, a restart state, and a failure state, and each of the states corresponds to a plurality of data bits preset in the status code.
4. The method of claim 3, wherein the determining the current state of the target device according to 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 corresponding relation among the identification result, the life cycle state and the data bit.
5. The method according to claim 3 or 4, wherein the performing state processing on the target device according to the current state of the target device comprises:
and according to the current state of the target equipment, performing target operation corresponding to the current state of the target equipment on the target equipment, and after the target operation is completed, adjusting the current state of the target equipment.
6. The method according to claim 5, wherein the performing, according to the current state of the target device, a target operation corresponding to the current state of the target device, and after the target operation is completed, adjusting the current state of the target device comprises:
when the current state of the target equipment is an initial state, performing authentication login operation on the target equipment, and after the authentication login operation is completed, switching the state of the target equipment to a configurable state;
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, sending a control instruction to the target equipment to realize the control operation of the target equipment;
when the current state of the target equipment is a restarting state, restarting the target equipment, and switching the state of the target equipment into a control state after restarting;
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 to a control state after the fault repairing operation is completed.
7. The method according to claim 6, wherein after the configuring the system parameter corresponding to the target device and switching the state of the target device to the in-configuration state, further comprising:
after the configuration operation is completed, the state of the target device is switched from a configuration in-state to a control state.
8. The method according to claim 6, wherein the configuration middle state is used for enabling any other control terminal to perform no control operation and configuration operation on the target device.
9. The method according to claim 6, wherein when the current state of the target device is a failure state, performing a failure 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.
10. The method of claim 9, wherein performing a failover operation on the target device according to the failure type comprises:
if the fault type is a repairable type, performing repair operation on the fault of the target equipment;
and if the fault type is an 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 the target equipment is restarted.
11. The method according to any one of claims 1-3, wherein before obtaining the status code sent by the target device, the method further comprises:
and searching target equipment in a preset range by adopting a preset communication protocol, wherein the preset communication protocol at least comprises a coach protocol.
12. 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 device according to the state code, wherein the current state is any one 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 a target state adjacent to the current state in the life cycle.
13. 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 program instructions in the memory to perform the target device processing method of any of claims 1-11.
14. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the target device processing method of any one of claims 1-11.
15. A computer program product, characterized in that it comprises a computer program which, when being executed by a processor, implements the target device processing method according to any one of claims 1-11.
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 true CN114265343A (en) 2022-04-01
CN114265343B 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 (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170034072A1 (en) * 2015-07-31 2017-02-02 Xiaomi Inc. Methods, devices, and systems for accessing network
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170034072A1 (en) * 2015-07-31 2017-02-02 Xiaomi Inc. Methods, devices, and systems for accessing network
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
CN114265343B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
US10241857B2 (en) Method, apparatus and system for automatically repairing device
EP3136793B1 (en) Method and apparatus for awakening electronic device
EP3301856B1 (en) Router management method, router and mobile terminal
CN108123855B (en) Terminal control method and device
WO2018040063A1 (en) Device control method and apparatus
EP3116165B1 (en) Method and device for testing a terminal
CN107608561B (en) Touch screen control method and device
WO2017071078A1 (en) Communication module firmware and plug-in generation method and apparatus
US20160255521A1 (en) Method and apparatus for testing a smart device
US11432142B2 (en) Multi-device wireless connection method and device
EP3099017A1 (en) A method and a device for controlling a smart home power supply
CN105553963A (en) Control method and device of positioning services
CN105163290B (en) roaming prompting method and device
CN107272427B (en) Control method and device of intelligent equipment
CN105426210A (en) Method and device for upgrading system
CN106325454B (en) Power supply control device and method and electronic equipment
US20160128106A1 (en) Communication method and terminal
CN114885322A (en) Switch module, terminal control method and device, equipment and storage medium
CN104461358A (en) Method and device for lightening screen
CN104486486A (en) Method and device for treating faults
CN107070707B (en) Method and device for determining initialization mode of router
US20170180148A1 (en) Method, device and system for intelligent household appliance to access multiple servers
CN104410900A (en) A method and apparatus for controlling an indicator light installed on an intelligent apparatus
CN104965746B (en) The method and device of quick start
CN114265343B (en) Target equipment processing method, device, equipment, storage medium and product

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