CN112489411B - Method and device for acquiring information of electric appliance, storage medium and processor - Google Patents

Method and device for acquiring information of electric appliance, storage medium and processor Download PDF

Info

Publication number
CN112489411B
CN112489411B CN201910860791.8A CN201910860791A CN112489411B CN 112489411 B CN112489411 B CN 112489411B CN 201910860791 A CN201910860791 A CN 201910860791A CN 112489411 B CN112489411 B CN 112489411B
Authority
CN
China
Prior art keywords
target
information
electric appliance
data frame
instruction
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
CN201910860791.8A
Other languages
Chinese (zh)
Other versions
CN112489411A (en
Inventor
苏玉海
赖东锋
颜辉
叶铁英
玉维友
张光旭
杨都
陈丽媚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910860791.8A priority Critical patent/CN112489411B/en
Publication of CN112489411A publication Critical patent/CN112489411A/en
Application granted granted Critical
Publication of CN112489411B publication Critical patent/CN112489411B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infrared
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/50Receiving or transmitting feedback, e.g. replies, status updates, acknowledgements, from the controlled devices
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/70Device selection

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Selective Calling Equipment (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses an information acquisition method and device of an electric appliance, a storage medium and a processor. The method comprises the following steps: when the target electric appliance is detected to receive the request instruction, generating a feedback instruction, wherein the request instruction is used for requesting information of the target electric appliance, and the feedback instruction comprises the information of the target electric appliance; analyzing the feedback instruction, and converting the analyzed information into a target graphic code; and displaying the target graphic code on the target remote controller. Through the method and the device, the problem that in the related art, when a user is far away from the air conditioner, the two-dimensional code on the air conditioner cannot be scanned to obtain the information of the air conditioner, so that the utilization rate of the two-dimensional code is low is solved.

Description

Method and device for acquiring information of electric appliance, storage medium and processor
Technical Field
The present invention relates to the field of home control appliances, and in particular, to a method and apparatus for acquiring information of an appliance, a storage medium, and a processor.
Background
In the related art, the two-dimensional code is a coding mode which is very popular in recent years, and is a very convenient short data transmission and storage solution. In air conditioning applications, two-dimensional codes are commonly used to store data such as air conditioner models and production information, and a user can easily obtain relevant information of home air conditioners and some services from air conditioner operators by scanning the two-dimensional codes with a mobile phone. In some applications, technicians can also debug and diagnose faults of the air conditioner through the two-dimensional code. In summary, two-dimensional codes play a very important role in air conditioning applications.
In air conditioner applications, such as patio machines, air duct machines, wall-mounted machines, etc., the two-dimensional code image information is generally installed above a room, and is far away from a user, so that the two-dimensional code image information is not suitable for being transmitted to the user. Meanwhile, some two-dimensional codes used for storing information of the air conditioner are paper two-dimensional codes, but because the service life of the air conditioner is very long, the paper two-dimensional codes are easy to lose and dirty, so that the related information of the air conditioner is difficult to acquire at any time.
In view of the above problems in the related art, no effective solution has been proposed at present.
Disclosure of Invention
The main purpose of the application is to provide a method and a device for acquiring information of an electric appliance, a storage medium and a processor, so as to solve the problem that in the related art, when a user is far away from the electric appliance, the information of the electric appliance cannot be acquired by scanning a two-dimensional code on the electric appliance, and the utilization rate of the two-dimensional code is low.
To achieve the above object, according to one aspect of the present application, there is provided a method of acquiring information of an electric appliance. The method comprises the following steps: when the target remote controller is detected to receive a target key instruction, generating a request data frame based on the target key instruction; transmitting the request data frame to the target electric appliance; identifying the request data frame, and calling the information of the target electric appliance according to the identified result; and generating a target graphic code according to the information of the target electrical appliance.
Further, when the target remote controller is detected to receive the target key instruction, generating the request data frame based on the target key instruction includes: judging the attribute of the target key instruction, wherein the attribute is divided into a first attribute and a second attribute; if the attribute of the target key instruction is the first attribute, the generated request data frame contains key information; if the attribute of the target key instruction is the second attribute, the generated request data frame contains key information and verification information.
Further, after generating the target graphic code according to the information of the target electrical appliance, the method further comprises: displaying the graphic code on the target remote controller; and/or displaying the graphic code on the target appliance.
Further, after transmitting the request data frame to the target appliance, the method further comprises: verifying the request data frame, wherein the verification comprises verifying the integrity and the correctness of the request data frame; if the request data frame does not pass the verification, controlling the target electric appliance to send a retransmission request to the target remote controller, wherein the retransmission request is a retransmission data frame, and the frame head of the retransmission data frame is used for representing the attribute of the retransmission data frame; and after detecting that the target electric appliance receives the first byte of the request data frame in a first preset time after the control target electric appliance transmits the retransmission request, the control target electric appliance stops transmitting the retransmission request.
Further, after transmitting the request data frame to the target appliance, the method further comprises: according to the request data frame, the target electric appliance is controlled to return a feedback data frame, wherein after the target electric appliance receives the request data frame, the target electric appliance analyzes the request data frame, and generates a feedback data frame according to an analysis result, and the feedback data frame contains information of the target electric appliance; and the control target remote controller receives the feedback data frame and generates a graphic code according to the feedback data frame.
Further, after the target appliance is controlled to return the feedback data frame according to the request data frame, the method further comprises: detecting whether the target remote controller receives a retransmission request within a second preset time, wherein the retransmission request is a request sent under the condition that the request data frame does not pass the verification of the target electric appliance, the retransmission request is a retransmission data frame, and the frame head of the retransmission data frame is used for representing the attribute of the retransmission data frame; when the target remote controller is detected to receive the retransmission request, the target remote controller is controlled to send a request data frame to the target electric appliance again; when the target remote controller is detected to display the graphic code, the target remote controller is controlled to stop sending the request data frame to the target electric appliance; or when the target appliance is detected to display the data transmission failure information, controlling the target remote controller to stop sending the request data frame to the target remote controller.
Further, the controlling the target remote controller to receive the feedback data frame and generating the graphic code according to the feedback data frame includes: the control target remote controller analyzes the feedback data frame and acquires information of the target electric appliance contained in the feedback data frame; judging whether the type of the first information is consistent with the type of the second information, wherein the first information is the information of the target electric appliance analyzed by the feedback data frame, and the second information is the information of the target electric appliance corresponding to the target key; and if the type of the first information is consistent with the type of the second information, converting the information of the target electric appliance contained in the data frame into a graphic code.
In order to achieve the above object, according to another aspect of the present application, there is provided an apparatus for acquiring information of an electric appliance. The device comprises: the first generation unit is used for generating a request data frame based on the target key instruction when the target remote controller is detected to receive the target key instruction; a transmitting unit for transmitting the request data frame to the target electric appliance; the calling unit is used for identifying the request data frame and calling the information of the target electric appliance according to the identified result; and the second generation unit is used for generating a target graphic code according to the information of the target electrical appliance.
In order to achieve the above object, according to another aspect of the present application, there is provided a storage medium including a stored program, wherein the program performs a method of acquiring information of an electric appliance of any one of the above.
In order to achieve the above object, according to another aspect of the present application, there is provided a processor, a storage medium including a stored program, wherein the program performs a method of acquiring information of an electric appliance of any one of the above.
Through the application, the following steps are adopted: when the target electric appliance is detected to receive the request instruction, generating a feedback instruction, wherein the request instruction is used for requesting information of the target electric appliance, and the feedback instruction comprises the information of the target electric appliance; analyzing the feedback instruction, and converting the analyzed information into a target graphic code; the target graphic code is displayed on the target remote controller, so that the problem that the utilization rate of the two-dimensional code is low because the two-dimensional code on the electric appliance cannot be scanned to obtain the information of the electric appliance when a user is far away from the electric appliance in the related art is solved, and the effect of improving the information obtaining efficiency of the air conditioner is further achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application, illustrate and explain the application and are not to be construed as limiting the application. In the drawings:
fig. 1 is a flowchart of a method for acquiring information of an electric appliance according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a remote control in an embodiment provided herein; and
fig. 3 is a schematic diagram of an apparatus for acquiring information of an electric appliance according to an embodiment of the present application.
Detailed Description
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the present application described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the application, a method for acquiring information of an electric appliance is provided.
Fig. 1 is a flowchart of a method for acquiring information of an electric appliance according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, when a request instruction is received by a target electric appliance, generating a feedback instruction, wherein the request instruction is used for requesting information of the target electric appliance, and the feedback instruction comprises the information of the target electric appliance.
Above, the electric appliances referred to in the present application refer to all electric appliances in the home life, wherein the electric appliances include a washing machine, an electric fan, an air conditioner, a microwave oven refrigerator, and the like.
In the embodiment of the present application, an air conditioner is taken as an example for explanation.
In the foregoing, in the embodiment of the present application, a remote controller or a mobile terminal application is provided, where a key set provided on the remote controller includes a key capable of acquiring information of an air conditioner in addition to a conventional key for controlling an operation mode of the air conditioner used in daily life.
When a key for acquiring the air conditioner of the remote controller or a key for acquiring the air conditioner in an application program of a terminal is pressed, the air conditioner receives a request instruction for acquiring the information of the air conditioner and generates a feedback instruction according to the request instruction.
Step S102, analyzing the feedback instruction, and converting the analyzed information into a target graphic code.
Specifically, based on the feedback instruction returned by the air conditioner, the information contained in the feedback instruction is analyzed and converted to generate the graphic code, and it should be noted that the graphic code herein is all the graphic codes which can contain the information of the air conditioner, preferably two-dimensional codes.
Step S103, displaying the target graphic code on the target remote controller.
Specifically, the generated two-dimensional code may be displayed on a remote controller or in an application of the terminal.
Optionally, before the feedback instruction is generated when the target electrical appliance is detected to receive the request instruction, the method further comprises: calling information of a target electric appliance; converting information of the target electric appliance into a target graphic code, wherein the information of the target electric appliance is at least one of the following: the method comprises the steps of generating unit information of a target electric appliance, operating parameter information of the target electric appliance and operator information of the target electric appliance; and displaying the target graphic code on a display screen of the target electrical appliance and/or a display screen of the wire controller.
Optionally, after parsing the feedback instruction and converting the parsed information into the target graphic code, the method further includes: and displaying the target graphic code on a display screen of the target terminal.
Specifically, two methods are provided in the embodiments of the present application, one is that a paper two-dimensional code is attached to an air conditioner for a user to scan to obtain information of the air conditioner, and the two-dimensional code is a fixed two-dimensional code, which includes operator information of the air conditioner and some hardware information of the air conditioner.
The other is to display the obtained two-dimension code of the air conditioner on the display screen of the air conditioner in the form of a dynamic two-dimension code, wherein the two-dimension code comprises the information of an air conditioner operator and the information of real-time operation parameters of an air conditioner unit, so that the two-dimension code is a dynamic two-dimension code, and the two-dimension code can also comprise the information of operation faults of the air conditioner.
It should be noted that, the dynamic two-dimensional code of the air conditioner may be displayed on a line controller of the air conditioner in addition to the display screen of the air conditioner.
Optionally, before the feedback instruction is generated when the target electrical appliance is detected to receive the request instruction, the method further comprises: when the target remote controller is detected to receive the target key instruction, generating a request instruction based on the target key instruction; and sending the request instruction to the target electric appliance.
Above-mentioned ground, when detecting that the air conditioner received the request instruction, at first discern the button type of sending the instruction, the button type on the remote controller is divided into multiple, and fig. 2 is the schematic diagram of a remote controller in this application in the embodiment that provides, and the remote controller includes "acquire two-dimensional code", "engineering parameter", "debugging", "inquiry trouble" several buttons, and these several buttons are the target button in this application.
As shown in the remote controller in fig. 2, the "acquire two-dimensional code" is a key that can be used by any user who uses the air conditioner, and by pressing the "acquire two-dimensional code" key, the user can correspondingly send a request instruction containing key information to the air conditioner, where the information of the air conditioner requested by the request instruction includes operation parameter information of the air conditioner, operator information of the air conditioner, and unit hardware information of the air conditioner.
Correspondingly, the information of the request corresponding to the engineering parameter key is engineering parameter information of the air conditioner unit, such as temperature information of each temperature sensing bulb, related information of a compressor, opening of an electronic expansion valve and the like.
Correspondingly, the information of the corresponding request of the debugging key is the unit information such as the number of the internal machine, the capacity of the internal machine and the like which are required to be used when the unit debugging is carried out on the air conditioner.
Correspondingly, the information of the request corresponding to the 'query fault' key is mainly the fault information of the unit currently occurring, and the information can provide corresponding guidance for air conditioner maintenance personnel.
Further, based on the different request instruction of each key, the generated request instruction is sent to the air conditioner.
It should be noted that, if the air conditioner receives a request instruction of the terminal application, because of different request keys included in the terminal application, a request instruction for requesting different information is also generated.
Optionally, before sending the request instruction to the target appliance, the method further comprises: analyzing the request instruction to obtain a request data frame contained in the request instruction; verifying the request data frame, wherein the verification comprises verification of the integrity and the correctness of the request data frame; if the request data frame does not pass the verification, a retransmission request is sent to the target remote controller, wherein the retransmission request is a first retransmission data frame, and the frame head of the first retransmission data frame is used for representing the attribute of the first retransmission data frame; and stopping sending the retransmission request to the target remote controller when the target appliance is detected to successfully receive the request command.
Specifically, the present embodiment provides a data error retransmission mechanism, when an air conditioner receives a request command from a remote controller or a terminal application, the air conditioner parses the request command and obtains a data frame included in the request command, and first needs to verify the integrity and correctness of the data frame. If the verification is not passed, the air conditioner fails to receive the request data frame, and the air conditioner sends a retransmission request to the remote controller or the terminal application.
Further, the retransmission request uses a retransmission frame, which uses a different frame header flag from the data frame, so that both communication parties can transmit the retransmission request only when the reception of the data frame fails, in order to ensure that the communication order is not disordered.
After the remote controller or the terminal application receives the retransmission request, the first byte of the last data frame needs to be sent within a preset time, otherwise, the remote controller or the terminal application can send the retransmission request again until the air conditioner is detected to successfully receive the request data frame or try n times. The mechanism mainly aims to solve the problem that the infrared communication is easy to be interfered by various factors to cause data errors or transmission interruption, and improves the communication success rate.
The air conditioner verifies the requested data frame, including verifying the integrity and correctness of the requested data frame, mainly aims to emphasize that the infrared communication is easily broken to lose part of data, and is also easily interfered to cause data errors. The manner of verifying the correctness of one frame of data can be written here as an example: the frame header of each frame starts with fixed pilot data (e.g., a frame must begin with 0xaa,0 xaa) and when the receiver receives these fixed pilot data, it starts to save the data received later. When receiving frame header information, firstly judging whether each information of the frame header is in an effective range, for example, the frame length information in the frame header cannot exceed the defined maximum frame length, if the information exceeds the effective range, discarding the frame data and recapturing the frame header fixed guide data 0xAA,0xAA. If the frame header passes the verification, receiving data with the specified length of the frame length information, discarding the excess part if the data exceeds the specified length, and considering that the data is lost if the data is shorter than the specified length. After receiving a frame, the correctness of the data of the frame needs to be verified through CRC. (if the frame type is a data frame and the length is lost or the CRC check fails, the receiver needs to send a retransmission request.)
Optionally, analyzing the feedback instruction and converting the analyzed information into the target graphic code further includes: analyzing the feedback instruction and obtaining the information of the target electric appliance; verifying the integrity of the information of the target electric appliance; and if the information of the target electric appliance is complete, converting the information of the target electric appliance into a target graphic code and displaying the target graphic code on the target remote controller.
Specifically, after the air conditioner feeds back the information of the air conditioner to generate a feedback instruction, the feedback instruction is firstly analyzed to obtain a feedback data frame, the feedback data frame comprises information of the request air conditioner, the technical means adopted for verifying the information of the air conditioner is to verify the integrity of the feedback data frame, and if all character strings in the feedback data frame are complete, the obtained information is indicated to be not interfered. Conversely, if the received feedback data frame is detected to contain incomplete character strings, the received data frame is considered to be incomplete, and the data is partially lost due to interference of other signals received in the transmission process.
Optionally, after parsing the feedback instruction and obtaining the information of the target electrical appliance, the method further includes: verifying the integrity of the information of the target electric appliance; if the information of the target electric appliance is incomplete, retransmitting a request instruction to the target electric appliance; based on the resent request instruction, receiving a feedback instruction returned by the target electric appliance based on the request instruction again.
Specifically, when the feedback command fails the integrity verification, the feedback data frame is refused to be received, and the retransmission data frame is sent to the target air conditioner, so that the target air conditioner is required to retransmit the feedback data frame.
The retransmission mechanism here is identical to the retransmission mechanism described above and will not be described here again.
According to the method for acquiring the information of the electric appliance, when the target remote controller is detected to receive the target key instruction, a request data frame is generated based on the target key instruction; transmitting the request data frame to the target electric appliance; identifying the request data frame, and calling the information of the target electric appliance according to the identified result; according to the information of the target electric appliance, a target graphic code is generated, the problem that the information of the air conditioner cannot be acquired at any time because the information of the air conditioner is stored in the paper two-dimensional code in the related art is solved, and the paper two-dimensional code is easy to pollute and destroy and difficult to store because the service life of the air conditioner is long is solved, and the technical effect of monitoring the state and the information of the air conditioner at any time is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
The embodiment of the application also provides a device for acquiring the information of the electric appliance, and the device for acquiring the information of the electric appliance can be used for executing the method for acquiring the information of the electric appliance provided by the embodiment of the application. The following describes a device for acquiring information of an electric appliance provided in an embodiment of the present application.
Fig. 3 is a schematic diagram of an apparatus for acquiring information of an electric appliance according to an embodiment of the present application. As shown in fig. 3, the apparatus includes: the first generating unit 301 is configured to generate a feedback instruction when detecting that the target appliance receives a request instruction, where the request instruction is used to request information of the target appliance, and the feedback instruction includes the information of the target appliance; the first conversion unit 302 is configured to parse the feedback instruction and convert the parsed information into a target graphic code; a first display unit 303 for displaying the target graphic code on the target remote controller.
The device for acquiring information of an electrical appliance provided by the embodiment of the application is used for generating, through a first generating unit 301, a feedback instruction when a target electrical appliance is detected to receive a request instruction, where the request instruction is used for requesting information of the target electrical appliance, and the feedback instruction includes information of the target electrical appliance; the first conversion unit 302 is configured to parse the feedback instruction and convert the parsed information into a target graphic code; the first display unit 303 is configured to display a target graphic code on a target remote controller, so that the problem that in the related art, when a user is far away from an electric appliance, the user cannot scan a two-dimensional code on the electric appliance to obtain information of the electric appliance, and the utilization rate of the two-dimensional code is low is solved, and the effect of improving the efficiency of obtaining information of an air conditioner is further achieved.
Optionally, the apparatus further comprises: the calling unit is used for calling the information of the target electric appliance before generating a feedback instruction when detecting that the target electric appliance receives the request instruction; the second conversion unit is used for converting the information of the target electric appliance into a target graphic code, wherein the information of the target electric appliance is at least one of the following: the method comprises the steps of generating unit information of a target electric appliance, operating parameter information of the target electric appliance and operator information of the target electric appliance; and the second display unit is used for displaying the target graphic code on a display screen of the target electric appliance and/or a display screen of the wire controller.
Optionally, the apparatus further comprises: the second generation unit is used for generating a request instruction based on the target key instruction when the target remote controller is detected to receive the target key instruction before generating a feedback instruction when the target remote controller is detected to receive the request instruction; and the first sending unit is used for sending the request instruction to the target electrical appliance.
Optionally, the apparatus further comprises: the analyzing unit is used for analyzing the request instruction before sending the request instruction to the target electric appliance to obtain a request data frame contained in the request instruction; a first verification unit, configured to verify a request data frame, where the verification includes verification of integrity and correctness of the request data frame; a second transmitting unit configured to transmit a retransmission request to the target remote controller in a case where the request data frame does not pass the verification, wherein the retransmission request is a first retransmission data frame, and a frame header of the first retransmission data frame is used for characterizing an attribute of the first retransmission data frame; and the detection unit is used for stopping sending the retransmission request to the target remote controller when the target electrical appliance is detected to successfully receive the request instruction.
Optionally, the first conversion unit 302 further includes: the analysis subunit is used for analyzing the feedback instruction and obtaining the information of the target electric appliance; the verification subunit is used for verifying the integrity of the information of the target electrical appliance; and the conversion subunit is used for converting the information of the target electric appliance into the target graphic code under the condition that the information of the target electric appliance is complete.
Optionally, the apparatus further comprises: the second verification unit is used for verifying the integrity of the information of the target electric appliance after analyzing the feedback instruction and obtaining the information of the target electric appliance; the third sending unit is used for resending the request instruction to the target electric appliance under the condition that the information of the target electric appliance is incomplete; and the receiving unit is used for receiving a feedback instruction returned by the target electric appliance based on the re-sent request instruction.
Optionally, the apparatus further comprises: and the third display unit is used for displaying the target graphic code on a display screen of the target terminal after analyzing the feedback instruction and converting the analyzed information into the target graphic code.
The apparatus for acquiring information of an electric appliance includes a processor and a memory, wherein the first generating unit 301, the first converting unit 302, the first display unit 303, etc. are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the problem that the utilization rate of the two-dimension code is low because the two-dimension code on the electric appliance cannot be scanned to obtain the information of the electric appliance when a user is far away from the electric appliance in the related art is solved by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a storage medium, on which a program is stored, which when executed by a processor implements a method of acquiring information of an appliance.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program runs for executing a method for acquiring information of an electric appliance.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes the following steps when executing the program: when the target remote controller is detected to receive a target key instruction, generating a request data frame based on the target key instruction; transmitting the request data frame to the target electric appliance; identifying the request data frame, and calling the information of the target electric appliance according to the identified result; and generating a target graphic code according to the information of the target electrical appliance.
Optionally, when the target remote controller is detected to receive the target key instruction, generating the request data frame based on the target key instruction includes: judging the attribute of the target key instruction, wherein the attribute is divided into a first attribute and a second attribute; if the attribute of the target key instruction is the first attribute, the generated request data frame contains key information; if the attribute of the target key instruction is the second attribute, the generated request data frame contains key information and verification information.
Optionally, after generating the target graphic code according to the information of the target appliance, the method further includes: displaying the graphic code on the target remote controller; and/or displaying the graphic code on the target appliance.
Optionally, after sending the request data frame to the target appliance, the method further comprises: verifying the request data frame, wherein the verification comprises verifying the integrity and the correctness of the request data frame; if the request data frame does not pass the verification, controlling the target electric appliance to send a retransmission request to the target remote controller, wherein the retransmission request is a retransmission data frame, and the frame head of the retransmission data frame is used for representing the attribute of the retransmission data frame; and after detecting that the target electric appliance receives the first byte of the request data frame in a first preset time after the control target electric appliance transmits the retransmission request, the control target electric appliance stops transmitting the retransmission request.
Optionally, after sending the request data frame to the target appliance, the method further comprises: according to the request data frame, the target electric appliance is controlled to return a feedback data frame, wherein after the target electric appliance receives the request data frame, the target electric appliance analyzes the request data frame, and generates a feedback data frame according to an analysis result, and the feedback data frame contains information of the target electric appliance; and the control target remote controller receives the feedback data frame and generates a graphic code according to the feedback data frame.
Optionally, after the target appliance is controlled to return the feedback data frame according to the request data frame, the method further comprises: detecting whether the target remote controller receives a retransmission request within a second preset time, wherein the retransmission request is a request sent under the condition that the request data frame does not pass the verification of the target electric appliance, the retransmission request is a retransmission data frame, and the frame head of the retransmission data frame is used for representing the attribute of the retransmission data frame; when the target remote controller is detected to receive the retransmission request, the target remote controller is controlled to send a request data frame to the target electric appliance again; when the target remote controller is detected to display the graphic code, the target remote controller is controlled to stop sending the request data frame to the target electric appliance; or when the target appliance is detected to display the data transmission failure information, controlling the target remote controller to stop sending the request data frame to the target remote controller.
Optionally, the controlling the target remote controller to receive the feedback data frame and generating the graphic code according to the feedback data frame includes: the control target remote controller analyzes the feedback data frame and acquires information of the target electric appliance contained in the feedback data frame; judging whether the type of the first information is consistent with the type of the second information, wherein the first information is the information of the target electric appliance analyzed by the feedback data frame, and the second information is the information of the target electric appliance corresponding to the target key; and if the type of the first information is consistent with the type of the second information, converting the information of the target electric appliance contained in the data frame into a graphic code.
The device herein may be a server, PC, PAD, cell phone, etc.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: when the target remote controller is detected to receive a target key instruction, generating a request data frame based on the target key instruction; transmitting the request data frame to the target electric appliance; identifying the request data frame, and calling the information of the target electric appliance according to the identified result; and generating a target graphic code according to the information of the target electrical appliance.
Optionally, when the target remote controller is detected to receive the target key instruction, generating the request data frame based on the target key instruction includes: judging the attribute of the target key instruction, wherein the attribute is divided into a first attribute and a second attribute; if the attribute of the target key instruction is the first attribute, the generated request data frame contains key information; if the attribute of the target key instruction is the second attribute, the generated request data frame contains key information and verification information.
Optionally, after generating the target graphic code according to the information of the target appliance, the method further includes: displaying the graphic code on the target remote controller; and/or displaying the graphic code on the target appliance.
Optionally, after sending the request data frame to the target appliance, the method further comprises: verifying the request data frame, wherein the verification comprises verifying the integrity and the correctness of the request data frame; if the request data frame does not pass the verification, controlling the target electric appliance to send a retransmission request to the target remote controller, wherein the retransmission request is a retransmission data frame, and the frame head of the retransmission data frame is used for representing the attribute of the retransmission data frame; and after detecting that the target electric appliance receives the first byte of the request data frame in a first preset time after the control target electric appliance transmits the retransmission request, the control target electric appliance stops transmitting the retransmission request.
Optionally, after sending the request data frame to the target appliance, the method further comprises: according to the request data frame, the target electric appliance is controlled to return a feedback data frame, wherein after the target electric appliance receives the request data frame, the target electric appliance analyzes the request data frame, and generates a feedback data frame according to an analysis result, and the feedback data frame contains information of the target electric appliance; and the control target remote controller receives the feedback data frame and generates a graphic code according to the feedback data frame.
Optionally, after the target appliance is controlled to return the feedback data frame according to the request data frame, the method further comprises: detecting whether the target remote controller receives a retransmission request within a second preset time, wherein the retransmission request is a request sent under the condition that the request data frame does not pass the verification of the target electric appliance, the retransmission request is a retransmission data frame, and the frame head of the retransmission data frame is used for representing the attribute of the retransmission data frame; when the target remote controller is detected to receive the retransmission request, the target remote controller is controlled to send a request data frame to the target electric appliance again; when the target remote controller is detected to display the graphic code, the target remote controller is controlled to stop sending the request data frame to the target electric appliance; or when the target appliance is detected to display the data transmission failure information, controlling the target remote controller to stop sending the request data frame to the target remote controller.
Optionally, the controlling the target remote controller to receive the feedback data frame and generating the graphic code according to the feedback data frame includes: the control target remote controller analyzes the feedback data frame and acquires information of the target electric appliance contained in the feedback data frame; judging whether the type of the first information is consistent with the type of the second information, wherein the first information is the information of the target electric appliance analyzed by the feedback data frame, and the second information is the information of the target electric appliance corresponding to the target key; and if the type of the first information is consistent with the type of the second information, converting the information of the target electric appliance contained in the data frame into a graphic code.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, the device includes one or more processors (CPUs), memory, and a bus. The device may also include input/output interfaces, network interfaces, and the like.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (9)

1. The method for acquiring the information of the electric appliance is characterized by comprising the following steps of:
when a target electric appliance is detected to receive a request instruction, generating a feedback instruction, wherein the request instruction is used for requesting information of the target electric appliance, and the feedback instruction contains the information of the target electric appliance;
analyzing the feedback instruction, and converting the analyzed information into the target graphic code;
displaying the target graphic code on a target remote controller;
analyzing the feedback instruction, converting the analyzed information into the target graphic code, and further comprising: analyzing the feedback instruction and obtaining the information of the target electric appliance; verifying the integrity of the information of the target electric appliance; if the information of the target electric appliance is complete, converting the information of the target electric appliance into the target graphic code and displaying the target graphic code on the target remote controller;
verifying the integrity of the information of the target electrical appliance, including: acquiring a feedback data frame obtained by analyzing the feedback instruction, and verifying the integrity of the feedback data frame; if the characters in the feedback data frame are complete, determining that the information of the target electric appliance is complete; and if the feedback data frame contains incomplete character strings, determining that the information of the target electric appliance is incomplete.
2. The method of claim 1, wherein upon detecting that the target appliance received the request command, prior to generating the feedback command, the method further comprises:
calling information of the target electric appliance;
converting the information of the target electric appliance into the target graphic code, wherein the information of the target electric appliance is at least one of the following: the unit information of the target electric appliance, the operation parameter information of the target electric appliance and the operator information of the target electric appliance;
and displaying the target graphic code on a display screen of the target electrical appliance and/or a display screen of a wire controller.
3. The method of claim 1, wherein upon detecting that the target appliance received the request command, prior to generating the feedback command, the method further comprises:
when the target remote controller is detected to receive a target key instruction, generating the request instruction based on the target key instruction;
and sending the request instruction to the target electric appliance.
4. The method of claim 3, wherein prior to sending the request instruction to the target appliance, the method further comprises:
analyzing the request instruction to obtain a request data frame contained in the request instruction;
verifying the request data frame, wherein the verification comprises verification of the integrity and correctness of the request data frame;
if the request data frame does not pass the verification, a retransmission request is sent to the target remote controller, wherein the retransmission request is a first retransmission data frame, and a frame head of the first retransmission data frame is used for representing the attribute of the first retransmission data frame;
and stopping sending the retransmission request to the target remote controller when the target electrical appliance is detected to successfully receive the request instruction.
5. The method of claim 1, wherein after parsing the feedback command and obtaining information of the target appliance, the method further comprises:
verifying the integrity of the information of the target electric appliance;
if the information of the target electric appliance is incomplete, retransmitting a request instruction to the target electric appliance;
and receiving a feedback instruction returned by the target electric appliance based on the request instruction again based on the resent request instruction.
6. The method of claim 1, wherein after parsing the feedback instruction and converting the parsed information into the target graphic code, the method further comprises: and displaying the target graphic code on a display screen of the target terminal.
7. An apparatus for acquiring information of an electric appliance, comprising:
the first generation unit is used for generating a feedback instruction when detecting that a target electric appliance receives a request instruction, wherein the request instruction is used for requesting information of the target electric appliance, and the feedback instruction comprises the information of the target electric appliance;
the first conversion unit is used for analyzing the feedback instruction and converting the analyzed information into the target graphic code;
the first display unit is used for displaying the target graphic code on a target remote controller;
the apparatus further comprises: the second verification unit is used for verifying the integrity of the information of the target electric appliance after analyzing the feedback instruction and obtaining the information of the target electric appliance; the third sending unit is used for resending the request instruction to the target electric appliance under the condition that the information of the target electric appliance is incomplete; the receiving unit is used for receiving a feedback instruction returned by the target electrical appliance based on the re-sent request instruction;
the second verification unit is used for obtaining a feedback data frame obtained by analyzing the feedback instruction and verifying the integrity of the feedback data frame; if the characters in the feedback data frame are complete, determining that the information of the target electric appliance is complete; and if the feedback data frame contains incomplete character strings, determining that the information of the target electric appliance is incomplete.
8. A storage medium comprising a stored program, wherein the program performs the method of acquiring information of an electric appliance according to any one of claims 1 to 6.
9. A processor for running a program, wherein the program runs to perform the method for acquiring information of an electric appliance according to any one of claims 1 to 6.
CN201910860791.8A 2019-09-11 2019-09-11 Method and device for acquiring information of electric appliance, storage medium and processor Active CN112489411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910860791.8A CN112489411B (en) 2019-09-11 2019-09-11 Method and device for acquiring information of electric appliance, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910860791.8A CN112489411B (en) 2019-09-11 2019-09-11 Method and device for acquiring information of electric appliance, storage medium and processor

Publications (2)

Publication Number Publication Date
CN112489411A CN112489411A (en) 2021-03-12
CN112489411B true CN112489411B (en) 2023-06-06

Family

ID=74920398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910860791.8A Active CN112489411B (en) 2019-09-11 2019-09-11 Method and device for acquiring information of electric appliance, storage medium and processor

Country Status (1)

Country Link
CN (1) CN112489411B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009163720A (en) * 2007-12-14 2009-07-23 National Institute Of Advanced Industrial & Technology Two-dimensional code generating device
CN104408502A (en) * 2014-10-22 2015-03-11 全联斯泰克科技有限公司 Two-dimension code generation method, two-dimension code generation device, two-dimension code verification method and two-dimension code verification device based on CPK (Combined Public Key)
CN104899537A (en) * 2014-03-03 2015-09-09 联想(北京)有限公司 Data transmission method and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012163242A (en) * 2011-02-04 2012-08-30 Mitsubishi Electric Corp Air conditioner
CN103281460A (en) * 2013-06-20 2013-09-04 天脉聚源(北京)传媒科技有限公司 Method and system for remotely controlling displaying device by mobile terminal
CN103631556A (en) * 2013-11-06 2014-03-12 天脉聚源(北京)传媒科技有限公司 Method, mobile terminal and system for remote control over display device
WO2016033033A1 (en) * 2014-08-29 2016-03-03 Alibaba Group Holding Limited Method and system for presenting information
WO2016162952A1 (en) * 2015-04-07 2016-10-13 三菱電機株式会社 Air conditioner maintenance support system
CN106303090A (en) * 2016-09-30 2017-01-04 佛山市顺德区美的电热电器制造有限公司 The methods of exhibiting of description and display systems and smart machine
CN208172828U (en) * 2018-05-25 2018-11-30 厦门高卓立光电有限公司 A kind of intelligence two dimensional code LCD MODULE
CN109034332A (en) * 2018-07-23 2018-12-18 珠海格力电器股份有限公司 Two-dimensional code generation method and device, electrical equipment and control device
CN109493860A (en) * 2018-11-15 2019-03-19 珠海格力电器股份有限公司 Two-dimensional code pattern display method, device and system and household appliance

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009163720A (en) * 2007-12-14 2009-07-23 National Institute Of Advanced Industrial & Technology Two-dimensional code generating device
CN104899537A (en) * 2014-03-03 2015-09-09 联想(北京)有限公司 Data transmission method and electronic equipment
CN104408502A (en) * 2014-10-22 2015-03-11 全联斯泰克科技有限公司 Two-dimension code generation method, two-dimension code generation device, two-dimension code verification method and two-dimension code verification device based on CPK (Combined Public Key)

Also Published As

Publication number Publication date
CN112489411A (en) 2021-03-12

Similar Documents

Publication Publication Date Title
CN110657557B (en) Method and device for acquiring information of electric appliance, storage medium and processor
WO2019091171A1 (en) Voice control method, device, system, and electronic apparatus for smart home appliance
CN103078904B (en) Household electric appliance control method and household electrical appliances thereof and server
CN107800791B (en) Debugging method and device
CN112055082B (en) Checking method and device of access equipment and computer equipment
CN109831362A (en) A kind of electronic equipment control method and system
CN110119350A (en) Software Development Kit test method, device and equipment and computer storage medium
CN108471343B (en) Method and device for determining communication check code, and communication check method and system
CN111736938B (en) Information display method and device, storage medium and electronic device
CN112346425A (en) Factory automation test method, system, projection equipment and storage medium
CN113596832A (en) Network connection establishing method and device, storage medium and electronic device
CN111079383A (en) Data interaction method, device and system for cloud platform and equipment of Internet of things
CN112489411B (en) Method and device for acquiring information of electric appliance, storage medium and processor
CN110634276A (en) Household appliance, mobile terminal and fault information feedback method thereof
US20180191467A1 (en) Method for transmitting data through system bus between main controller and node of robot, and device thereof
KR20120071175A (en) Mobile phone loading web-platform, method for offering log information using the same mobile phone, verification system and method for web-platform
CN113825191B (en) Subscription method and device for equipment information
CN112312386A (en) Equipment binding method and device and electronic equipment
CN112118162B (en) Communication system and communication method thereof
CN114221862A (en) Network configuration method and device of equipment, electronic equipment and storage medium
CN108199918B (en) Method and system for testing washing machine
CN113300920A (en) Intelligent household appliance control method and control equipment based on household appliance control group
CN210832434U (en) Remote controller, electric appliance and control system of electric appliance
CN103024667B (en) The method of reporting information and device
CN112152888A (en) Information writing method and device for household appliance and equipment

Legal Events

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