CN115174297A - Attribute information updating method and device, storage medium and electronic device - Google Patents

Attribute information updating method and device, storage medium and electronic device Download PDF

Info

Publication number
CN115174297A
CN115174297A CN202210603443.4A CN202210603443A CN115174297A CN 115174297 A CN115174297 A CN 115174297A CN 202210603443 A CN202210603443 A CN 202210603443A CN 115174297 A CN115174297 A CN 115174297A
Authority
CN
China
Prior art keywords
attribute information
control command
node
information
client
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.)
Pending
Application number
CN202210603443.4A
Other languages
Chinese (zh)
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
Qingdao Haier Intelligent Home Appliance Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Qingdao Haier Intelligent Home Appliance 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, Qingdao Haier Intelligent Home Appliance Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202210603443.4A priority Critical patent/CN115174297A/en
Publication of CN115174297A publication Critical patent/CN115174297A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses an attribute information updating method and device, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the attribute information updating method comprises the following steps: determining whether notification information sent by the M2M node is received, wherein the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, and the packet device includes: a plurality of home devices; and updating the attribute information of the grouped devices according to attribute information to be controlled in the control command under the condition that notification information sent by the M2M node is received and the notification information is used for indicating the M2M node to successfully send the control command to the device access gateway, wherein the attribute information to be controlled is information for controlling the attribute information of the plurality of household electrical appliances according to the control command.

Description

Attribute information updating method and device, storage medium and electronic device
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for updating attribute information, a storage medium, and an electronic apparatus.
Background
With the development of the internet, home appliances become indispensable articles in people's lives, and in recent years, intelligent home appliances are also emerging, and the operation of the intelligent home appliances is often dependent on the application and processing of modern technologies such as the internet of things, the internet, electronic chips and the like.
In the prior art, attribute information of intelligent household appliances is generally maintained in the internet of things, and an existing attribute information maintenance strategy is generally based on attribute information report of an equipment end, but in the case of network abnormality, the attribute information report of the equipment end cannot be received, so that the attribute of equipment cannot be updated.
In the related art, an effective solution is not provided for the problem that the attribute information report of the device end cannot be received under the condition of network abnormality, so that the attribute of the device cannot be updated and the like.
Disclosure of Invention
The embodiment of the application provides an attribute information updating method and device, a storage medium and an electronic device, so as to at least solve the problems that in the related art, in the case of network abnormality, the attribute information report of a device end cannot be received, and the attribute of a device cannot be updated.
According to an embodiment of the present application, a method for updating attribute information is provided, including: determining whether notification information sent by the M2M node is received, wherein the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, and the packet device includes: a plurality of home devices; and updating the attribute information of the grouped devices according to attribute information to be controlled in the control command under the condition that notification information sent by the M2M node is received and the notification information is used for indicating that the M2M node successfully sends the control command to the device access gateway, wherein the attribute information to be controlled is information for controlling the attribute information of the plurality of household appliances according to the control command.
In one exemplary embodiment, before determining whether the notification information sent by the M2M node is received, the method further includes: dividing a plurality of household appliances into a group device according to a first device identification of the household appliances in the group device request; acquiring first attribute information corresponding to the multiple household electrical appliances respectively through the first equipment identification; and generating the attribute information of the grouping equipment according to the first attribute information.
In one exemplary embodiment, generating the attribute information of the grouping device according to the first attribute information includes: acquiring the device types of the plurality of household electrical appliances, wherein the device types of the plurality of household electrical appliances are consistent; acquiring second attribute information preset by the equipment type according to the equipment type; and determining the intersection of the first attribute information and the second attribute information, and generating the attribute information of the grouped equipment according to the intersection.
In an exemplary embodiment, after updating the attribute information of the grouping device according to the attribute information to be controlled in the control command, the method further includes: determining a first client side which sends the control command; and sending a first control result to the first client, wherein the first control result is used for indicating that the M2M node successfully sends the control command to the device access gateway, so that the first client updates the attribute information of the packet device stored in the first client according to the first control result.
In an exemplary embodiment, after updating the attribute information of the grouping device according to the attribute information to be controlled in the control command, the method further includes: receiving response information sent by the plurality of household electrical appliances; determining a second client end which is in communication connection with the cloud end of the Internet of things under the condition that the response information is used for indicating that the plurality of household appliances successfully respond to the control command, wherein the second client end is a client end which does not send the control command; and sending a second control result to the second client, wherein the second control result is used for indicating the plurality of household appliances to successfully respond to the control command, so that the second client updates the attribute information of the grouped devices stored in the second client according to the second control result.
In an exemplary embodiment, after updating the attribute information of the grouping device according to the attribute information to be controlled in the control command, the method further includes one of: refusing to send the second control result to the second client under the condition that the response information is used for indicating that the plurality of home appliances do not successfully respond to the control command; and refusing to send the second control result to the second client under the condition that the response information sent by the plurality of household appliances is not received within a preset time length.
In one exemplary embodiment, after determining whether the notification information sent by the M2M node is received, the method further includes: and when notification information sent by the M2M node is received and the notification information is used for indicating that the M2M node does not successfully send the control command to the device access gateway, refusing to update the attribute information of the grouped device according to the attribute information to be controlled in the control command.
According to another embodiment of the present application, there is also provided an apparatus for updating attribute information, including: a determining module, configured to determine whether notification information sent by the M2M node is received, where the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, where the packet device includes: a plurality of home devices; and the updating module is used for updating the attribute information of the grouped equipment according to the attribute information to be controlled in the control command under the condition that the notification information sent by the M2M node is received and is used for indicating the M2M node to successfully send the control command to the equipment access gateway, wherein the attribute information to be controlled is the information for controlling the attribute information of the plurality of household appliances according to the control command.
According to another aspect of the embodiments of the present application, there is also provided a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the method for updating attribute information when running.
According to another aspect of the embodiments of the present application, there is also provided an electronic apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for updating attribute information through the computer program.
In this embodiment of the present application, it is determined whether notification information sent by the M2M node is received, where the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, where the packet device includes: a plurality of home devices; updating attribute information of the grouped devices according to attribute information to be controlled in the control command when notification information sent by the M2M node is received and the notification information is used for indicating that the M2M node successfully sends the control command to the device access gateway, wherein the attribute information to be controlled is information for controlling the attribute information of the plurality of household appliances according to the control command; by adopting the technical scheme, the problem that the attribute information report of the equipment end cannot be received under the condition of network abnormality, so that the attribute of the equipment cannot be updated and the like is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a diagram of a hardware environment of an attribute information updating method according to an embodiment of the present application;
fig. 2 is a flowchart of an update method of attribute information according to an embodiment of the present application;
fig. 3 is a schematic diagram of an update method of attribute information according to an embodiment of the present application;
fig. 4 is a block diagram (one) of a device for updating attribute information according to an embodiment of the present application;
fig. 5 is a block diagram (ii) of a device for updating attribute information according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiment of the application, a method for updating attribute information is provided. The method for updating the attribute information is widely applied to full-House intelligent digital control application scenes such as Smart homes (Smart Home), intelligent homes, intelligent Home equipment ecology, intelligent residence (Intelligent House) ecology and the like. Alternatively, in the present embodiment, the above-described method for updating attribute information may be applied to a hardware environment formed by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be configured to provide a service (e.g., an application service) for the terminal or a client installed on the terminal, provide a database on or independent of the server for providing a data storage service for the server 104, and configure a cloud computing and/or edge computing service on or independent of the server for providing a data operation service for the server 104.
The network may include, but is not limited to, at least one of: wired networks, wireless networks. The wired network may include, but is not limited to, at least one of: wide area networks, metropolitan area networks, local area networks, which may include, but are not limited to, at least one of the following: WIFI (Wireless Fidelity ), bluetooth. Terminal equipment 102 can be but not limited to be PC, the cell-phone, the panel computer, intelligent air conditioner, intelligent cigarette machine, intelligent refrigerator, intelligent oven, intelligent kitchen range, intelligent washing machine, intelligent water heater, intelligent washing equipment, intelligent dish washer, intelligent projection equipment, intelligent TV, intelligent clothes hanger, intelligent (window) curtain, intelligence audio-visual, smart jack, intelligent stereo set, intelligent audio amplifier, intelligent new trend equipment, intelligent kitchen guarding equipment, intelligent bathroom equipment, intelligence robot of sweeping the floor, intelligence robot of wiping the window, intelligence robot of mopping the ground, intelligent air purification equipment, intelligent steam ager, intelligent microwave oven, intelligent kitchen is precious, intelligent clarifier, intelligent water dispenser, intelligent lock etc..
In this embodiment, an attribute information updating method is provided, which is applied to an internet of things terminal, and fig. 2 is a flowchart of an attribute information updating method according to an embodiment of the present application, where the flowchart includes the following steps:
step S202, determining whether notification information sent by the M2M node is received, where the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, where the packet device includes: a plurality of home devices;
it should be noted that the M2M node is located at the cloud end of the internet of things, and the M2M node is configured to simulate a device to receive a response (equivalent to notification information), and send the simulated device to receive the response to the domain model.
Step S204, when receiving notification information sent by the M2M node, where the notification information is used to indicate that the M2M node successfully sends the control command to the device access gateway, updating attribute information of the grouped devices according to attribute information to be controlled in the control command, where the attribute information to be controlled is information for controlling attribute information of the multiple home devices according to the control command.
Through the above steps, it is determined whether notification information sent by the M2M node is received, where the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, where the packet device includes: a plurality of home devices; updating attribute information of the grouped devices according to attribute information to be controlled in the control command when notification information sent by the M2M node is received and the notification information is used for indicating that the M2M node successfully sends the control command to the device access gateway, wherein the attribute information to be controlled is information for controlling the attribute information of the plurality of household appliances according to the control command; the method and the device solve the problems that in the related art, the attribute information report of the device end cannot be received under the condition of network abnormality, so that the attribute of the device cannot be updated and the like.
In an exemplary embodiment, before determining whether the notification information sent by the M2M node is received, the method further includes:
step 1: dividing a plurality of household appliances into a group device according to a first device identification of the household appliances in the group device request;
step 2: acquiring first attribute information corresponding to the plurality of household electrical appliances respectively through the first equipment identification;
and 3, step 3: and generating the attribute information of the grouping equipment according to the first attribute information.
That is, in the case of establishing the grouping device, determining first attribute information of the plurality of home devices according to first device identifications of the plurality of home devices in the grouping device request; and determining the attribute information of the grouped equipment according to the intersection of the first attribute information.
In one exemplary embodiment, generating the attribute information of the grouping device according to the first attribute information includes: acquiring the device types of the plurality of household electrical appliances, wherein the device types of the plurality of household electrical appliances are consistent; acquiring second attribute information preset by the equipment type according to the equipment type; and determining the intersection of the first attribute information and the second attribute information, and generating the attribute information of the grouped equipment according to the intersection.
It should be noted that the device functions of the devices added to the group device are consistent (for example, only lamp devices with consistent device functions in one group device, only air-conditioning devices with consistent device functions in one group device, and the like), and the terminal of the internet of things may obtain second attribute information corresponding to the device type of the household appliance device from the database, where the second attribute information is preset for the target object; and determining an intersection of the first attribute information and the second attribute information, and using the intersection as the attribute information of the grouped devices, that is, the attribute information of the grouped devices can at least determine the attribute information of the home devices.
For example, the attribute information of the device 1 is "temperature", "wind speed"; the attribute information of the device 2 is "temperature" and "wind speed", and the attribute information of the grouping device is "temperature" and "wind speed".
In an exemplary embodiment, after updating the attribute information of the grouping device according to the attribute information to be controlled in the control command, the method further includes:
step 1: determining a first client side which sends the control command;
step 2: and sending a first control result to the first client, wherein the first control result is used for indicating that the M2M node successfully sends the control command to the device access gateway, so that the first client updates the attribute information of the packet device stored in the first client according to the first control result.
It should be noted that, when the M2M node successfully sends the control command to the device access gateway, the first client directly sends the first control result to the first client without waiting for response information returned by the home appliance device, so that the first client updates the attribute information of the group device according to the first control result and the control command.
For example, in the case where the control command is for controlling the temperature and wind speed of the air-conditioning apparatus; and under the condition that the first client receives a control result that the M2M node successfully sends the control command to the equipment access gateway, the first client updates the attribute information of the grouped equipment according to the specific information corresponding to the temperature and the wind speed in the control command, and optionally, according to the updated attribute information of the grouped equipment, the attribute information corresponding to a plurality of household appliances can be determined.
In an exemplary embodiment, after updating the attribute information of the grouping device according to the attribute information to be controlled in the control command, the method further includes: receiving response information sent by the plurality of household electrical appliances; determining a second client end which is in communication connection with the cloud end of the Internet of things under the condition that the response information is used for indicating that the plurality of household appliances successfully respond to the control command, wherein the second client end is a client end which does not send the control command; and sending a second control result to the second client, wherein the second control result is used for indicating the plurality of household appliances to successfully respond to the control command, so that the second client updates the attribute information of the grouped devices stored in the second client according to the second control result.
And under the condition of receiving the response information sent by the multiple household appliances, creating an asynchronous thread, and pushing a second control result to an online second client side which is in communication connection with the cloud side of the Internet of things, so that the second client side updates the attribute information of the grouped devices stored in the second client side according to the received second control result.
Optionally, it is determined whether response information sent by the multiple home devices and used for indicating that the multiple home devices successfully respond to the control command is received within a preset time period; and if response information which is sent by the household appliances and used for indicating that the household appliances successfully respond to the control command is not received within a preset time length, sending a second control result to the second client, wherein the second control result is used for indicating that the household appliances successfully respond to the control command, so that the second client updates the attribute information of the grouped devices stored in the second client according to the second control result.
By the embodiment, under the condition that the response information which is sent by the household appliances and used for indicating that the household appliances successfully respond to the control command is not received within the preset time length, the control result which is used for indicating that the household appliances successfully respond to the control command is also sent to the second client; the problem that in the related art, under the condition of network abnormity, attribute information report of the equipment terminal cannot be received, so that other client terminals cannot update the attribute of the equipment and the like is solved.
In an exemplary embodiment, after updating the attribute information of the grouping device according to the attribute information to be controlled in the control command, the method further includes one of: refusing to send the second control result to the second client under the condition that the response information is used for indicating that the plurality of home appliances do not successfully respond to the control command; and refusing to send the second control result to the second client under the condition that the response information sent by the plurality of household appliances is not received within a preset time length.
That is, when response information sent by the plurality of home appliances and not successfully responding to the control command is received, the second control result is not sent to the second client, so that the second client does not need to update the attribute information of the group device stored in the second client.
Optionally, determining whether response information sent by the multiple home appliances and used for indicating that the multiple home appliances successfully respond to the control command is received within a preset time length; and if response information which is sent by the household appliances and used for indicating that the household appliances successfully respond to the control command is not received within a preset time length, refusing to send a second control result to the second client, wherein the second control result is used for indicating that the household appliances successfully respond to the control command.
That is, in the case that response information, which is sent by the multiple household electrical appliances and used for indicating that the multiple household electrical appliances successfully respond to the control command, is not received within a preset time period, the target object may autonomously select whether to send the second control result to the second client.
In an exemplary embodiment, after determining whether the notification information sent by the M2M node is received, the method further includes: and refusing to update the attribute information of the grouped equipment according to the attribute information to be controlled in the control command when receiving the notification information sent by the M2M node and the notification information is used for indicating that the M2M node does not successfully send the control command to the equipment access gateway.
In order to better understand the process of the attribute information updating method, the following describes a flow of the attribute information updating method with reference to an optional embodiment, but the flow is not limited to the technical solution of the embodiment of the present application.
In this embodiment, an updating method of attribute information is provided, and fig. 3 is a schematic diagram of an updating method of attribute information according to an embodiment of the present application, as shown in fig. 3, the following steps are specifically provided:
step S301: creating attribute information of the grouped devices according to the device group creation request;
it should be noted that, when creating attribute information of a grouping device, it is not necessary to automatically synchronize the actual states of devices in a group, and an entry for manually synchronizing the actual states of devices in a group can be provided for a user;
step S302: under the condition of receiving a control instruction of a user, sending the control instruction to the equipment access gateway through the M2M node so that the equipment access gateway sends the control instruction to gateway equipment;
step S303: receiving notification information sent by the M2M node;
step S304: updating the attribute information of the grouped equipment according to attribute information to be controlled in the control command when notification information sent by the M2M node is received and the notification information is used for indicating the M2M node to successfully send the control command to the equipment access gateway;
step S305: sending a first control result used for indicating that the M2M node successfully sends the control command to the device access gateway to the first client, so that the first client updates the attribute information of the packet device stored in the first client according to the first control result;
step S306: receiving response information sent by the plurality of household electrical appliances;
step S307: under the condition that the response information is used for indicating that the plurality of household appliances successfully respond to the control command, determining a second client end in communication connection with the cloud end of the Internet of things;
step S308: and sending a second control result used for indicating that the plurality of household appliances successfully respond to the control command to the second client so that the second client updates the attribute information of the grouped devices stored in the second client according to the second control result.
According to the method and the device, the attributes of the equipment are uniformly maintained by the cloud of the Internet of things, the last command is issued, the attribute report of the equipment end is not relied on, and therefore even under the condition that the network is abnormal, the attribute information of the equipment end can be updated.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (such as a ROM/RAM, a magnetic disk, and an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the method of the embodiments of the present application.
Fig. 4 is a block diagram (one) of the structure of an attribute information updating apparatus according to an embodiment of the present application; as shown in fig. 4, includes:
a determining module 42, configured to determine whether notification information sent by the M2M node is received, where the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, where the packet device includes: a plurality of home devices;
an updating module 44, configured to update the attribute information of the grouped device according to attribute information to be controlled in the control command when notification information sent by the M2M node is received and the notification information is used to indicate that the M2M node successfully sends the control command to the device access gateway, where the attribute information to be controlled is information for controlling the attribute information of the multiple household electrical appliances according to the control command.
By the above apparatus, it is determined whether notification information sent by the M2M node is received, where the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, where the packet device includes: a plurality of home devices; and updating the attribute information of the grouped equipment according to the attribute information to be controlled in the control command when the notification information sent by the M2M node is received and is used for indicating the M2M node to successfully send the control command to the equipment access gateway, wherein the attribute information to be controlled is information for controlling the attribute information of the plurality of household appliances according to the control command, so that the problems that in the related technology, the attribute information report of the equipment end cannot be received under the condition of network abnormality, the attribute of the equipment cannot be updated and the like are solved, the attribute of the equipment is uniformly maintained by the cloud of the Internet of things, the last time of command issuing is taken as the criterion, the attribute report of the equipment end is not relied on, and the attribute information of the equipment end can be updated even under the condition of network abnormality.
In an exemplary embodiment, fig. 5 is a block diagram (ii) of a device for updating attribute information according to an embodiment of the present application; as shown in fig. 5, the above apparatus further includes: a generating module 52, configured to divide the multiple home devices into one grouped device according to the first device identifiers of the multiple home devices in the grouped device request; acquiring first attribute information corresponding to the plurality of household electrical appliances respectively through the first equipment identification; and generating the attribute information of the grouping equipment according to the first attribute information.
In an exemplary embodiment, the generating module 52 is configured to obtain device types of the multiple home devices, where the device types of the multiple home devices are consistent; acquiring second attribute information preset by the equipment type according to the equipment type; and determining the intersection of the first attribute information and the second attribute information, and generating the attribute information of the grouped equipment according to the intersection.
In an exemplary embodiment, fig. 5 is a block diagram (two) of a structure of an apparatus for updating attribute information according to an embodiment of the present application; as shown in fig. 5, the above apparatus further includes: a sending module 54, configured to determine a first client that sends the control command; and sending a first control result to the first client, wherein the first control result is used for indicating that the M2M node successfully sends the control command to the device access gateway, so that the first client updates the attribute information of the packet device stored in the first client according to the first control result.
In an exemplary embodiment, the sending module 54 is configured to receive response information sent by the plurality of home devices; determining a second client end which is in communication connection with the cloud end of the Internet of things under the condition that the response information is used for indicating that the plurality of household appliances successfully respond to the control command, wherein the second client end is a client end which does not send the control command; and sending a second control result to the second client, wherein the second control result is used for indicating the plurality of household appliances to successfully respond to the control command, so that the second client updates the attribute information of the grouped devices stored in the second client according to the second control result.
In an exemplary embodiment, the sending module 54 is further configured to: if the response information is used for indicating that the plurality of household appliances do not successfully respond to the control command, refusing to send the second control result to the second client; and refusing to send the second control result to the second client under the condition that the response information sent by the plurality of household appliances is not received within a preset time length.
In an exemplary embodiment, the updating module 44 is further configured to refuse to update the attribute information of the packet device according to the attribute information to be controlled in the control command, when receiving the notification information sent by the M2M node and the notification information is used to indicate that the M2M node has not successfully sent the control command to the device access gateway.
Embodiments of the present application also provide a storage medium including a stored program, where the program performs any one of the methods described above when executed.
Alternatively, in this embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, determining whether notification information sent by the M2M node is received, where the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, where the packet device includes: a plurality of home devices;
and S2, updating the attribute information of the grouped devices according to the attribute information to be controlled in the control command under the condition that the notification information sent by the M2M node is received and is used for indicating the M2M node to successfully send the control command to the device access gateway, wherein the attribute information to be controlled is the information for controlling the attribute information of the plurality of household appliances according to the control command.
Embodiments of the present application further provide an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining whether notification information sent by the M2M node is received, where the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, where the packet device includes: a plurality of home devices;
and S2, updating the attribute information of the grouped devices according to attribute information to be controlled in the control command under the condition that the notification information sent by the M2M node is received and the notification information is used for indicating the M2M node to successfully send the control command to the device access gateway, wherein the attribute information to be controlled is the information for controlling the attribute information of the plurality of household appliances according to the control command.
Optionally, in this embodiment, the storage medium may include but is not limited to: various media capable of storing program codes, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Optionally, for a specific example in this embodiment, reference may be made to the examples described in the above embodiment and optional implementation, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a memory device and executed by a computing device, and in some cases, the steps shown or described may be executed out of order, or separately as integrated circuit modules, or multiple modules or steps thereof may be implemented as a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The foregoing is only a preferred embodiment of the present application and it should be noted that those skilled in the art can make several improvements and modifications without departing from the principle of the present application, and these improvements and modifications should also be considered as the protection scope of the present application.

Claims (10)

1. A method for updating attribute information, comprising:
determining whether notification information sent by the M2M node is received, wherein the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, and the packet device includes: a plurality of home devices;
and updating the attribute information of the grouped devices according to attribute information to be controlled in the control command under the condition that notification information sent by the M2M node is received and the notification information is used for indicating the M2M node to successfully send the control command to the device access gateway, wherein the attribute information to be controlled is information for controlling the attribute information of the plurality of household electrical appliances according to the control command.
2. The method for updating attribute information according to claim 1, wherein before determining whether the notification information sent by the M2M node is received, the method further comprises:
dividing a plurality of household appliances into a group device according to a first device identification of the household appliances in the group device request;
acquiring first attribute information corresponding to the multiple household electrical appliances respectively through the first equipment identification;
and generating the attribute information of the grouping equipment according to the first attribute information.
3. The method for updating attribute information according to claim 2, wherein generating attribute information of the group device based on the first attribute information includes:
acquiring the device types of the plurality of household electrical appliances, wherein the device types of the plurality of household electrical appliances are consistent;
acquiring second attribute information preset by the equipment type according to the equipment type;
and determining the intersection of the first attribute information and the second attribute information, and generating the attribute information of the grouped equipment according to the intersection.
4. The method for updating attribute information according to claim 1, wherein after the attribute information of the grouping device is updated according to the attribute information to be controlled in the control command, the method further comprises:
determining a first client side for sending the control command;
and sending a first control result to the first client, wherein the first control result is used for indicating that the M2M node successfully sends the control command to the device access gateway, so that the first client updates the attribute information of the packet device stored in the first client according to the first control result.
5. The method according to claim 1, wherein after the attribute information of the group device is updated according to the attribute information to be controlled in the control command, the method further comprises:
receiving response information sent by the plurality of household electrical appliances;
determining a second client end which is in communication connection with the cloud end of the Internet of things under the condition that the response information is used for indicating that the plurality of household appliances successfully respond to the control command, wherein the second client end is a client end which does not send the control command;
and sending a second control result to the second client, wherein the second control result is used for indicating the plurality of household appliances to successfully respond to the control command, so that the second client updates the attribute information of the grouped devices stored in the second client according to the second control result.
6. The method for updating attribute information according to claim 5, wherein after updating the attribute information of the grouping device according to the attribute information to be controlled in the control command, the method further comprises one of:
refusing to send the second control result to the second client under the condition that the response information is used for indicating that the plurality of home appliances do not successfully respond to the control command;
and refusing to send the second control result to the second client under the condition that the response information sent by the plurality of household appliances is not received within a preset time length.
7. The method for updating attribute information according to claim 1, wherein after determining whether notification information sent by the M2M node is received, the method further comprises:
and when notification information sent by the M2M node is received and the notification information is used for indicating that the M2M node does not successfully send the control command to the device access gateway, refusing to update the attribute information of the grouped device according to the attribute information to be controlled in the control command.
8. An apparatus for updating attribute information, comprising:
a determining module, configured to determine whether notification information sent by the M2M node is received, where the notification information is used to indicate whether the M2M node successfully sends the control command to the device access gateway, and the control command is used to control a packet device, where the packet device includes: a plurality of home devices;
and the updating module is used for updating the attribute information of the grouped equipment according to the attribute information to be controlled in the control command under the condition that the notification information sent by the M2M node is received and the notification information is used for indicating that the M2M node successfully sends the control command to the equipment access gateway, wherein the attribute information to be controlled is the information for controlling the attribute information of the plurality of household electrical appliances according to the control command.
9. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 7 by means of the computer program.
CN202210603443.4A 2022-05-30 2022-05-30 Attribute information updating method and device, storage medium and electronic device Pending CN115174297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210603443.4A CN115174297A (en) 2022-05-30 2022-05-30 Attribute information updating method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210603443.4A CN115174297A (en) 2022-05-30 2022-05-30 Attribute information updating method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115174297A true CN115174297A (en) 2022-10-11

Family

ID=83482756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210603443.4A Pending CN115174297A (en) 2022-05-30 2022-05-30 Attribute information updating method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115174297A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899464A (en) * 2017-02-28 2017-06-27 杭州古北电子科技有限公司 Intelligent home furnishing control method
CN107018165A (en) * 2016-01-28 2017-08-04 阿里巴巴集团控股有限公司 The method and device of control internet of things equipment, server, mobile device
CN107094102A (en) * 2017-06-08 2017-08-25 生迪智慧科技有限公司 The transmission method and equipment of information
CN109976173A (en) * 2019-03-18 2019-07-05 中国联合网络通信集团有限公司 Control method, device, equipment and the readable storage medium storing program for executing of smart home device
CN111447200A (en) * 2020-03-24 2020-07-24 湖南兴天电子科技有限公司 Data processing method, device, system, electronic equipment and storage medium
CN112068451A (en) * 2020-09-03 2020-12-11 东北林业大学 Household electrical appliance intelligent control system based on Aliyun Internet of things
CN112737849A (en) * 2020-12-29 2021-04-30 青岛海尔科技有限公司 Equipment information processing method and device
CN113760581A (en) * 2021-09-09 2021-12-07 四川虹美智能科技有限公司 MQTT-based method and system for synchronizing attribute information of intelligent terminal
CN113835347A (en) * 2021-09-15 2021-12-24 深圳Tcl新技术有限公司 Equipment state management method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107018165A (en) * 2016-01-28 2017-08-04 阿里巴巴集团控股有限公司 The method and device of control internet of things equipment, server, mobile device
CN106899464A (en) * 2017-02-28 2017-06-27 杭州古北电子科技有限公司 Intelligent home furnishing control method
CN107094102A (en) * 2017-06-08 2017-08-25 生迪智慧科技有限公司 The transmission method and equipment of information
CN109976173A (en) * 2019-03-18 2019-07-05 中国联合网络通信集团有限公司 Control method, device, equipment and the readable storage medium storing program for executing of smart home device
CN111447200A (en) * 2020-03-24 2020-07-24 湖南兴天电子科技有限公司 Data processing method, device, system, electronic equipment and storage medium
CN112068451A (en) * 2020-09-03 2020-12-11 东北林业大学 Household electrical appliance intelligent control system based on Aliyun Internet of things
CN112737849A (en) * 2020-12-29 2021-04-30 青岛海尔科技有限公司 Equipment information processing method and device
CN113760581A (en) * 2021-09-09 2021-12-07 四川虹美智能科技有限公司 MQTT-based method and system for synchronizing attribute information of intelligent terminal
CN113835347A (en) * 2021-09-15 2021-12-24 深圳Tcl新技术有限公司 Equipment state management method and device

Similar Documents

Publication Publication Date Title
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115174297A (en) Attribute information updating method and device, storage medium and electronic device
CN115457955A (en) Distributed awakening decision method and device, storage medium and electronic device
CN114900826A (en) Equipment binding method and device, storage medium and electronic device
CN115309062A (en) Device control method, device, storage medium, and electronic apparatus
CN115174512A (en) Message pushing method and device, storage medium and electronic device
CN114697345B (en) Information updating method and device, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115314332B (en) Equipment theme setting method and device, storage medium and electronic device
CN115469638A (en) Interface test method and device, storage medium and electronic device
CN115473752A (en) Control command transmission method and device, storage medium and electronic device
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
CN115312048A (en) Equipment awakening method and device, storage medium and electronic device
CN115907356A (en) Enabling resource delivery method and device, storage medium and electronic device
CN115296946A (en) Control request decomposition method and device, storage medium and electronic device
CN115616930A (en) Control instruction sending method and device, storage medium and electronic device
CN115174383A (en) Device updating method, storage medium and electronic device
CN115484163A (en) System switching method and device, storage medium and electronic device
CN115390467A (en) Voice interaction method and device, storage medium and electronic device
CN115296958A (en) Distribution method and device of equipment control task, storage medium and electronic device
CN115032917A (en) Device control method, storage medium, and electronic apparatus
CN115686603A (en) Control method and device of terminal equipment, storage medium and electronic equipment
CN115174296A (en) Equipment function access method, device, storage medium and electronic device

Legal Events

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