CN113225698B - State information notification method, related device, system and medium - Google Patents

State information notification method, related device, system and medium Download PDF

Info

Publication number
CN113225698B
CN113225698B CN202110410917.9A CN202110410917A CN113225698B CN 113225698 B CN113225698 B CN 113225698B CN 202110410917 A CN202110410917 A CN 202110410917A CN 113225698 B CN113225698 B CN 113225698B
Authority
CN
China
Prior art keywords
change information
state change
unique identification
information
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110410917.9A
Other languages
Chinese (zh)
Other versions
CN113225698A (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.)
Shenzhen Chenbei Technology Co Ltd
Original Assignee
Shenzhen Chenbei Technology 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 Shenzhen Chenbei Technology Co Ltd filed Critical Shenzhen Chenbei Technology Co Ltd
Priority to CN202110410917.9A priority Critical patent/CN113225698B/en
Publication of CN113225698A publication Critical patent/CN113225698A/en
Application granted granted Critical
Publication of CN113225698B publication Critical patent/CN113225698B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a state information notification method, related equipment, system and medium. The method comprises the following steps: receiving state change information from electronic equipment, wherein the state change information carries a unique identification mark, and the unique identification mark is determined when the state of the electronic equipment is changed; detecting whether target state change information with the same unique identification exists in a preset time period or not, wherein the target state change information with the same unique identification is transmitted to the terminal equipment by the electronic equipment in different communication modes; if yes, merging and processing target state change information with the same unique identification identifier, and triggering a data request, wherein the data request is used for requesting the state information of the electronic equipment corresponding to the unique identification identifier from a server; the state information of the electronic equipment sent by the server is received, and the problem that the state data of the equipment cannot be updated accurately and timely by the APP at the current user side can be solved.

Description

State information notification method, related device, system and medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, a related device, a system, and a medium for notifying status information.
Background
With the rapid development of mobile communication technology and the improvement of the living standard of people, various intelligent devices have been widely applied to the daily work and life of people. The terminal device is used as a client side, such as an Application (APP) installed in a mobile phone, so that a user can conveniently control and query the state of the intelligent device. WiFi type intelligent equipment sets up the polling of timer through the interface and obtains equipment status data usually, obtains the equipment state at specific cycle, and the equipment status data update of customer end is accurate in time inadequately.
Disclosure of Invention
The present application mainly aims to provide a method, an apparatus, an electronic device, and a storage medium for notifying status information, which can solve the problem that the current user side APP cannot update the device status data accurately and timely.
In one aspect, the present application provides a method for notifying status information, where the method is applied to a terminal device, and the method includes:
receiving state change information from electronic equipment, wherein the state change information carries a unique identification mark, and the unique identification mark is determined when the state of the electronic equipment is changed;
detecting whether target state change information with the same unique identification exists in a preset time period or not, wherein the target state change information with the same unique identification is transmitted to the terminal equipment by the electronic equipment in different communication modes;
if yes, merging and processing target state change information with the same unique identification identifier, and triggering a data request, wherein the data request is used for requesting the state information of the electronic equipment corresponding to the unique identification identifier from a server;
and receiving the state information of the electronic equipment sent by the server.
Optionally, the different communication modes include a short-range wireless communication mode or a long-range wireless communication mode.
Optionally, after receiving the state change information from the electronic device, the method further includes:
when the state change information is not the first piece of state change information of the electronic equipment received by the terminal equipment, acquiring a current timestamp corresponding to the state change information;
obtaining a request time difference according to the current time stamp and the time stamp of the historical data request corresponding to the previous strip state change information;
under the condition that the request time difference is not smaller than a preset time difference threshold value, triggering a data request corresponding to the state change information; and under the condition that the request time difference is smaller than a preset time difference threshold value, judging that the data request corresponding to the state change information is a redundant request and not processing the redundant request.
Optionally, the terminal device includes a common distribution module and a plurality of single-product modules, where the single-product modules are software function modules that process information of different types of electronic devices; the state change information also carries an equipment identifier of the electronic equipment;
and distributing the state change information to a single-item module corresponding to the equipment identification for processing through the public distribution module according to the equipment identification of the electronic equipment.
On the other hand, the present application further provides a status information notification method, applied to an electronic device, including:
reporting the state information of the electronic equipment and state change information corresponding to the state information to a server in a long-distance wireless communication mode, wherein the state change information and the state information carry a unique identification mark of the electronic equipment, and the unique identification mark is determined when the state of the electronic equipment is changed, so that the server pushes the state change information to the terminal equipment;
and transmitting the state change information to the terminal equipment in a near field communication mode so that the terminal equipment triggers a data request aiming at the merging processing of the target state change information with the same unique identification mark, wherein the data request is used for requesting the state information of the electronic equipment corresponding to the unique identification mark from the server.
On the other hand, the application also provides a state information notification method, which is applied to a state information notification system, wherein the system comprises electronic equipment, terminal equipment and a server; the method comprises the following steps:
the electronic equipment reports state information and state change information corresponding to the state information to a server in a long-distance wireless communication mode, wherein the state change information and the state information carry a unique identification mark of the electronic equipment, and the unique identification mark is determined when the state of the electronic equipment is changed;
the electronic equipment transmits the state change information to the terminal equipment in a near field communication mode; and/or the presence of a gas in the gas,
the server pushes the state change information to the terminal equipment;
the terminal equipment detects whether target state change information with the same unique identification exists in a preset time period, and the target state change information with the same unique identification is transmitted to the terminal equipment by the electronic equipment in different communication modes;
if yes, merging and processing target state change information with the same unique identification identifier by the terminal equipment, and triggering a data request, wherein the data request is used for requesting the server for the state information of the electronic equipment corresponding to the unique identification identifier;
and the server sends the state information of the electronic equipment to the terminal equipment.
In another aspect, a terminal device is provided, including:
the transmission module is used for receiving state change information from the electronic equipment, wherein the state change information carries a unique identification mark, and the unique identification mark is determined when the state of the electronic equipment is changed;
the processing module is used for detecting whether the target state change information with the same unique identification exists in a preset time period or not, and the target state change information with the same unique identification is transmitted to the terminal equipment by the electronic equipment in different communication modes;
the processing module is further configured to, if target state change information with the same unique identification exists in the preset duration period, perform merging processing on the target state change information with the same unique identification, and trigger a data request, where the data request is used to request, from a server, the state information of the electronic device corresponding to the unique identification.
In another aspect, an electronic device is provided, including:
the first communication module is used for reporting the state information of the electronic equipment and the state change information corresponding to the state information to a server in a long-distance wireless communication mode, wherein the state change information and the state information carry a unique identification mark of the electronic equipment, and the unique identification mark is determined when the state of the electronic equipment is changed, so that the server pushes the state change information to terminal equipment;
and the second communication module is used for transmitting the state change information to the terminal equipment in a near field communication mode so that the terminal equipment triggers a data request aiming at the merging processing of the target state change information with the same unique identification mark, and the data request is used for requesting the state information of the electronic equipment corresponding to the unique identification mark from the server.
In another aspect, a status information notification system is provided, which includes an electronic device, a terminal device, and a server; wherein:
the electronic equipment is used for reporting state information and state change information corresponding to the state information to a server in a long-distance wireless communication mode, wherein the state change information and the state information carry a unique identification mark of the electronic equipment, and the unique identification mark is determined when the state of the electronic equipment is changed;
the electronic equipment is also used for transmitting the state change information to the terminal equipment in a short-distance wireless communication mode;
the server is used for pushing the state change information to the terminal equipment;
the terminal device is configured to:
detecting whether target state change information with the same unique identification exists in a preset time period or not, wherein the target state change information with the same unique identification is transmitted to the terminal equipment by the electronic equipment in different communication modes;
if yes, merging and processing target state change information with the same unique identification identifier, and triggering a data request, wherein the data request is used for requesting the server for state information of the electronic equipment corresponding to the unique identification identifier;
the server is further configured to send the state information of the electronic device to the terminal device.
In another aspect, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the method of any of the above aspects and any possible implementation thereof.
In another aspect, a computer storage medium is provided, which stores one or more instructions adapted to be loaded by a processor and to perform the steps of the method of any of the above aspects and any possible implementation thereof.
The application provides a state information notification method, wherein terminal equipment receives state change information from electronic equipment, and the state change information carries a unique identification mark determined when the state of the electronic equipment is changed; detecting whether target state change information with the same unique identification exists in a preset time period or not, wherein the target state change information with the same unique identification is transmitted to terminal equipment by electronic equipment in different communication modes; if yes, merging and processing the target state change information with the same unique identification mark, and triggering a data request, wherein the data request is used for requesting the server for the state information of the electronic equipment corresponding to the unique identification mark; the method comprises the steps of receiving state information of the electronic equipment sent by a server, timely notifying the terminal equipment of obtaining updated state information of the equipment when the equipment state is changed, notifying the terminal equipment of the equipment state change in a multi-channel mode, and under the condition that the terminal equipment is notified in the multi-channel mode, achieving information combination and sending of a data request to the same unique identification through the unique identification of the equipment state change, and saving flow and data processing capacity of the terminal equipment side.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flowchart of a status information notification method according to an embodiment of the present application;
fig. 2A is a schematic structural diagram of a status information notification system according to an embodiment of the present application;
fig. 2B is a schematic structural diagram of another status information notification system according to an embodiment of the present application;
fig. 3 is a schematic diagram of a client APP module according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another status information notification method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another status information notification method according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of another electronic device in the embodiment of the present application.
Detailed Description
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 a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
An Application (APP) referred to in the embodiments of the present Application refers to a business program running on an operating system.
Fig. 1 is a schematic flowchart of a status information notification method provided in an embodiment of the present application, where as shown in fig. 1, the method is applied to a terminal device, and the method includes:
101. receiving state change information from electronic equipment, wherein the state change information carries a unique identification mark, and the unique identification mark is used for indicating the state change of the electronic equipment to be determined.
The above-described terminal devices in embodiments of the present application include, but are not limited to, other portable devices such as mobile phones, laptop computers, or tablet computers having touch sensitive surfaces (e.g., touch screen displays and/or touch pads). It should also be understood that in some embodiments, the devices described above are not portable communication devices, but rather are desktop computers having touch-sensitive surfaces (e.g., touch screen displays and/or touch pads).
In this embodiment of the application, the terminal device serves as a client, and can query the state update data of the electronic device, and specifically, information from the electronic device can be processed by installing a corresponding client APP. The electronic equipment can be various intelligent household equipment, office equipment, robots and the like, and the embodiment of the application does not limit the intelligent household equipment, the office equipment, the robots and the like.
Embodiments of the present application relate to a server that may provide computing or application services to other devices in a network.
The device server is a background server of the electronic device, and the electronic device can report various device information to the device server. The terminal server is a server for providing services for a client (here, a terminal device APP), and as a corresponding server of the client, the terminal server can communicate with the client. The servers can be cloud servers, so that the economy is guaranteed and the pressure of the cloud servers is reduced.
In the embodiment of the application, the connection between the electronic device and the server adopts a Message Queue Telemetry Transport (MQTT) protocol to maintain long connection, the long connection established by using the MQTT protocol is bidirectional, and both the electronic device and the server can actively initiate requests; a Hypertext transfer protocol (HTTP) is used between the server and the terminal device. The HTTP protocol is a simple request-response protocol, which usually runs on top of TCP, and specifies what messages the client may send to the server and what responses it gets, i.e. the terminal device sends a request get response to the server as the client on its own initiative.
Specifically, when the state of the electronic device changes, the electronic device may send corresponding state change information to the terminal device as a notification, and may upload the state update data of the current state change to the device server for storage.
The terminal device may perform multi-channel information transmission with the electronic device, and may include a short-range wireless communication mode, such as bluetooth, infrared ray, TCP connection, and the like, which is not limited herein.
In one embodiment, when the terminal device and the electronic device establish the short-distance wireless communication connection, the state change information from the electronic device can be received through the short-distance wireless communication mode, and the method is simple and fast.
The state change information carries a unique identification mark, and the unique identification mark is determined when the state of the electronic equipment is changed and is used for identifying and distinguishing different state change information. The unique identifier in this embodiment may be a time identifier, that is, a time indicating a state change of the electronic device, for example, a traceID. The state change information can also carry the equipment identifier of the electronic equipment, and the terminal equipment distinguishes the electronic equipment. The terminal equipment can request to acquire the state updating data of the corresponding electronic equipment from the equipment server through the received state changing information, and the equipment state is refreshed timely.
In an alternative embodiment, after the step 101, the method further includes:
when the state change information is not the first piece of state change information of the electronic equipment received by the terminal equipment, acquiring a current timestamp corresponding to the state change information;
obtaining a request time difference according to the current time stamp and the time stamp of the data request corresponding to the previous strip state change information;
under the condition that the request time difference is not smaller than a preset time difference threshold value, triggering a data request corresponding to the state change information; and under the condition that the request time difference is smaller than a preset time difference threshold value, judging that the data request corresponding to the state change information is a redundant request and not processing the redundant request.
Specifically, when receiving device change information of different channels, the terminal device APP may record a unique identification of current information, send an HTTP request to obtain corresponding state update data, and record a timestamp for sending the HTTP request; optionally, when the APP receives the next piece of device change information, it first determines whether the device change information is the same as the unique identification of the previous piece of device change information; if the two pieces of equipment change information are the same and are transmitted to the terminal equipment through the same communication mode, the information (repeatedly sent) of the same type is judged not to be processed, and if the two pieces of equipment change information are the same and are transmitted to the terminal equipment through different communication modes, the two pieces of equipment change information can be combined and processed, which is shown in step 102 and step 103; if the time difference is different, the current time stamp is obtained first, and the current time stamp is subtracted from the last time stamp (the time stamp of the HTTP request sent last time) recorded locally to obtain the request time difference; the preset time difference threshold may be set as needed, for example, 0.5 second, that is, if the request time difference is less than 0.5 second, it is determined as a redundant request, and no processing is performed, that is, the current device change information may not trigger a request and refresh device status data; otherwise, the APP requests the state updating data of the electronic equipment corresponding to the unique identification mark from the equipment server through an HTTP protocol.
Through the steps, the terminal equipment side can be prevented from repeatedly requesting the state updating data in a short time, and the data transmission and processing amount is reduced.
102. And detecting whether target state change information with the same unique identification exists in a preset time period, wherein the state change information with the same unique identification is transmitted to the terminal equipment by the electronic equipment in a communication mode.
Specifically, since the terminal device may receive the same state change information sent by different communication methods, the unique identification of the state change information may be checked first, and it is detected whether the state change information with the same unique identification exists within a preset time period, and if so, the state change information may be merged, that is, step 103 may be executed. The preset time period can be set as required, such as 8s or 30 s.
The communication method may include a short-range wireless communication method, or a long-range wireless communication method, the short-range wireless communication method may include Bluetooth (Bluetooth), Zigbee, WiFi, and the like, and the long-range wireless communication method may include a wireless local area network technology, a mobile communication technology (e.g., 2G, 3G, 4G, 5G), and the like. The electronic device in the embodiment of the application can transmit the state change information to the terminal device through a short-distance wireless communication mode. The above-mentioned remote wireless communication mode may be implemented by the server, the electronic device, and the terminal device, that is, the state change information of the electronic device is pushed to the terminal device through the server, which may refer to the detailed description in step 101, and is not described herein again.
103. Merging the state change information with the same unique identification mark, and triggering a data request, wherein the data request is used for requesting the state update data of the electronic equipment corresponding to the unique identification mark from an equipment server.
In the embodiment of the application, the APP at the terminal equipment side receives the state change information, the state update data of the electronic equipment can be requested to the server through the HTTP, the requested data is the state update data of the electronic equipment corresponding to the unique identification mark in the state change information, and the server sends the corresponding state update data to the terminal equipment, so that the APP can refresh the state of the electronic equipment in time. In an alternative embodiment, the implementation may be implemented by at least two servers, which is not limited herein. For example, a device server and a terminal server may be provided, where the device server is a background server of the electronic device, and the electronic device may report various device information to the device server. The terminal server is a server for providing services for a client (here, a terminal device APP), and as a corresponding server of the client, the terminal server can communicate with the client.
Specifically, the data request of the terminal device can be forwarded to the device server through the terminal server, so that the device server sends corresponding state updating data to the terminal device through the terminal server, and the APP can refresh the state of the electronic device in time.
Specifically, if the terminal device receives state change information with the same unique identification identifier within a preset time period, that is, it is determined that the state change information is the same and is used for acquiring state update data of the electronic device of this time, the state change information with the same unique identification identifier is merged, only one data request is triggered, and the state update data of the electronic device corresponding to the unique identification identifier is requested to the device server. Therefore, the state updating information of the unique identification mark can be ensured to be merged and trigger an HTTP request in the set time, and the APP flow and the data processing amount are saved.
In this embodiment of the present application, under the condition that the terminal device receives the state change information to be processed, at least two pieces of state change information with the same unique identification may exist, and may be merged and processed, and only one corresponding data request is triggered, and similarly, for the data request triggered after merging, the step of determining the redundancy request mentioned in step 101 may also be performed, which is not described herein again.
In the embodiment of the application, when the terminal device establishes the short-distance wireless communication connection with the electronic device, the state change information may be directly transmitted, in addition, the electronic device may also send the state change information of the electronic device to the server in the form of an HTTP request, and then the state change information is sent to the terminal device APP in the form of a push notification by the terminal server, and then, the terminal device may request the server for corresponding state update data, and step 102 and step 103 may also be executed, which is not described herein again.
Through the steps, the state updating data of the electronic equipment can be timely acquired by the terminal equipment APP under different conditions or environments (when short-distance communication with the electronic equipment cannot be achieved), and the state of the electronic equipment is refreshed.
In the embodiment of the present application, a status information notification system is provided, as shown in fig. 2A, the status information notification system may include an electronic device 10, a terminal device 20, and a server 30; wherein:
the electronic device 10 is configured to report status information and status change information corresponding to the status information to the server 30 via a long-distance wireless communication manner, where the status change information and the status information carry a unique identification of the electronic device 10, and the unique identification is determined when the status of the electronic device 10 changes;
the electronic device 10 is further configured to transmit the state change information to the terminal device 20 by a short-range wireless communication method;
the server 30 is configured to push the state change information to the terminal device 20;
the terminal device 20 is configured to:
detecting whether target state change information with the same unique identification exists in a preset time period, wherein the target state change information with the same unique identification is transmitted to the terminal device 20 by the electronic device 10 through different communication modes;
if yes, merging the target state change information with the same unique identification mark, and triggering a data request for requesting the server 30 for the state information of the electronic device 10 corresponding to the unique identification mark;
the server 30 is further configured to transmit the status information of the electronic device 10 to the terminal device 20.
The related inter-device communication method and processing method steps may refer to the specific description in the embodiment shown in fig. 1, and are not described herein again.
Optionally, the terminal device may periodically and actively poll to obtain the device status information from the server.
For example, the device status change information of the humidifier is changed or not changed, and the device status information includes a switch, a gear, a water amount, a light status, humidity, and the like; by means of the scheme, the condition update data of the humidifier can be timely acquired by the terminal device APP under different conditions or environments. Due to the fact that the humidifier has more equipment state data, the server only pushes the state change information to the terminal equipment and does not push the equipment state data, and the data pushing amount of the server can be reduced.
In a specific embodiment, refer to a schematic structural diagram of a state information notification system shown in fig. 2B, as shown in fig. 2B, where the device is the electronic device 1, the mobile phone is the terminal device 2, a client APP for acquiring information of the electronic device is installed, and the server includes a background server and a Google server.
The electronic device 1 and the background server are kept in long connection by adopting an MQTT protocol, the Google server 10 and the terminal device 2 are kept in long connection by adopting an HTTP protocol, specifically, an APP is installed in the terminal device 2 to serve as a client, and the two servers are kept in long connection by adopting the MQTT protocol.
When the equipment is connected with the mobile phone Bluetooth and the state of the equipment changes, the equipment can send state change information to the mobile phone APP through the Bluetooth, wherein the state change information comprises the time traceID of the state change as a unique identification mark; and simultaneously, the equipment reports the equipment updating data to the background server through an MQTT protocol, and at the moment, the equipment updating data also comprises the time traceID with the changed state as a unique identification mark, namely the traceID and the traceID transmitted by the Bluetooth are the same value. After receiving the device change information, the mobile phone APP may request the corresponding state update data of the device from the background server through the HTTP protocol according to the traceID.
When the device is disconnected with the Bluetooth of the mobile phone and the state of the device changes, the device reports the device change information to the background server through an MQTT protocol, the background server sends the device change information to the Google server through an HTTP request, and the Google server can push the device change information to the mobile phone with a designated token according to the token transmitted by the background server; and the APP receives the pushed equipment change information, and then requests the corresponding state update data of the equipment from the background server through the HTTP protocol according to the traceID.
In one embodiment, the terminal device may include a common distribution module and a plurality of single-product modules, wherein the plurality of single-product modules are software function modules for processing information of different types of electronic devices; the state change information also carries an equipment identifier of the electronic equipment;
and the public distribution module distributes the state change information to a single-item module corresponding to the equipment identifier for processing according to the equipment identifier of the electronic equipment.
Optionally, the information of the electronic device may further carry a medium identifier, where the medium identifier is used to indicate a communication mode between the terminal device and the electronic device. In a specific embodiment, the device sends information to APP (such as bluetooth, TCP long connection) through different communication modes, and the specific information data can be identified by Medium identification Medium and configModel.
Fig. 3 is a schematic diagram of a client APP module provided in an embodiment of the present application, and as shown in fig. 3, an APP public processing distribution center of the client is a public distribution module of the APP, which is a unified port of APP processing cloud pushing, bluetooth receiving device information, and infrared receiving device information, and each piece of electronic device information received through different communication modes may be collected to the module first. The single module is a module for specifically processing information of different types of electronic devices, such as the fryer module and the oven module included in fig. 3, and may also have a function module corresponding to other electronic devices, such as an inbox module, and the like, which is not limited herein. After receiving the equipment change information, the APP processes the information in the APP public processing distribution center, classifies the information according to the equipment identification, and distributes the information to the corresponding single module for processing. The processing of the state change information by the singleness module may also include steps 102 to 103 in the embodiment shown in fig. 1, and is not described here again. Optionally, the APP module in this embodiment of the application may process not only the state change information, but also distribute other information sent by the electronic device to the corresponding single-product module for processing, which is not limited here.
The client single product modules are divided, information of different electronic devices can be classified, new electronic devices are added only by adding corresponding single product modules in order to supervise state data of more types of electronic devices at the client, and operation is simplified.
Fig. 4 is a flowchart of another status information notification method provided in this embodiment, where the method shown in fig. 4 is applied to an electronic device, and the method includes:
401. reporting state information of the electronic equipment and state change information corresponding to the state information to a server in a long-distance wireless communication mode, wherein the state change information and the state information carry a unique identification mark of the electronic equipment, and the unique identification mark is determined when the state of the electronic equipment is changed, so that the server pushes the state change information to the terminal equipment;
402. and transmitting the state change information to the terminal equipment through a near field communication mode, so that the terminal equipment triggers a data request for requesting the state information of the electronic equipment corresponding to the unique identification mark from the server aiming at the merging processing of the target state change information with the same unique identification mark.
In the specific implementation of the embodiment of the application, the electronic device can be various smart home devices, office equipment, robots and the like, and the embodiment of the application does not limit the electronic device.
The server can be a cloud server, optionally, the connection between the electronic device and the server adopts an MQTT protocol to maintain long connection, and an HTTP protocol is adopted between the server and the terminal device.
Under the condition that the electronic equipment and the terminal equipment establish close range wireless communication connection, state change information can be transmitted to the terminal equipment in a close range wireless communication mode, and the state change information carries the unique identification mark, so that the terminal equipment can request the server for state update data of the electronic equipment corresponding to the unique identification mark; meanwhile, the electronic equipment can also adopt a remote wireless communication mode, the server forwards the pushed state change information to the terminal equipment, and the terminal equipment side can refresh the state of the electronic equipment in time, so that the state data of the electronic equipment can be timely updated in different conditions and environments.
The steps executed by the electronic device may also refer to specific descriptions related to the electronic device in the embodiment shown in fig. 1, and are not described herein again.
Fig. 5 is a flowchart of another status information notification method provided in this embodiment, which is applied to a status information notification system, where the system may include an electronic device, a terminal device, a device server, and a terminal server, such as the status information notification system shown in fig. 2B. The method comprises the following steps:
501. the electronic equipment reports state information and state change information corresponding to the state information to a server in a long-distance wireless communication mode, wherein the state change information and the state information carry a unique identification mark of the electronic equipment, and the unique identification mark is determined when the state of the electronic equipment is changed;
502. the electronic device transmits the state change information to the terminal device through a short-distance wireless communication mode;
503. the electronic equipment uploads the state change information to an equipment server;
504. the equipment server forwards the equipment state information to the terminal server;
505. the terminal server pushes the state change information to the terminal equipment;
506. the terminal device detects whether target state change information with the same unique identification exists in a preset time period, and the target state change information with the same unique identification is transmitted to the terminal device by the electronic device through different communication modes;
507. the terminal equipment triggers a data request aiming at the merging processing of the target state change information with the same unique identification mark, wherein the data request is used for requesting the state information of the electronic equipment corresponding to the unique identification mark from the server;
508. the device server transmits the status update data to the terminal device through the terminal server.
For the above-mentioned communication method and processing method steps between the devices, reference may be made to the related detailed description in the embodiment shown in fig. 1, and details are not described here again.
Based on the description of the above status information notification method embodiment, the embodiment of the present application further discloses a terminal device. Referring to fig. 6, the terminal apparatus 600 includes:
a transmission module 610, configured to receive state change information from an electronic device, where the state change information carries a unique identification identifier, and the unique identification identifier is determined when a state of the electronic device changes;
the processing module 620 is configured to detect whether target state change information with the same unique identification exists within a preset time period, where the target state change information with the same unique identification is transmitted to the terminal device by the electronic device through different communication methods;
the processing module 620 is further configured to, if the target state change information with the same unique identification exists in the preset time period, perform merging processing on the target state change information with the same unique identification, and trigger a data request, where the data request is used to request, from a server, the state information of the electronic device corresponding to the unique identification.
According to an embodiment of the present application, each step performed by the terminal device related to the methods shown in fig. 1 to fig. 5 may be performed by each module in the terminal device 600 shown in fig. 6, and is not described herein again.
Based on the description of the above status information notification method embodiment, the embodiment of the present application further discloses an electronic device. Referring to fig. 7, the electronic device 700 includes:
a first communication module 710, configured to report state information of the electronic device and state change information corresponding to the state information to a server in a long-distance wireless communication manner, where the state change information and the state information carry a unique identification of the electronic device, and the unique identification is determined when the state of the electronic device changes, so that the server pushes the state change information to the terminal device;
the second communication module 720 transmits the state change information to the terminal device through a short-range wireless communication manner, so that the terminal device merges and processes the target state change information with the same unique identification identifier to trigger a data request, where the data request is used to request the server for the state information of the electronic device corresponding to the unique identification identifier.
According to an embodiment of the present application, steps performed by the electronic device related to the methods shown in fig. 1 to fig. 5 may be performed by various modules in the electronic device 700 shown in fig. 7, and are not described herein again.
Based on the description of the foregoing state information notification method embodiment, an embodiment of the present application further discloses a server, and according to an embodiment of the present application, some or all steps performed by each server related to the method shown in fig. 1 to fig. 5 may be performed, which is not described herein again.
Based on the description of the method embodiment and the device embodiment, the embodiment of the application further provides an electronic device. Referring to fig. 8, the electronic device 800 includes at least a processor 801, an input device 802, an output device 803, and a computer storage medium 804. The processor 801, the input device 802, the output device 803, and the computer storage medium 804 within the electronic device may be connected by a bus or other means.
A computer storage medium 804 may be stored in the memory of the electronic device, the computer storage medium 804 being configured to store a computer program comprising program instructions, the processor 801 being configured to execute the program instructions stored by the computer storage medium 804. The processor 801 (or CPU) is a computing core and a control core of the electronic device, and is adapted to implement one or more instructions, and in particular, is adapted to load and execute the one or more instructions so as to implement a corresponding method flow or a corresponding function; in one embodiment, the processor 801 according to the embodiment of the present application may be configured to perform a series of processes, including various steps performed by an electronic device or a terminal device according to the method shown in fig. 1 to fig. 5.
An embodiment of the present application further provides a computer storage medium (Memory), which is a Memory device in an electronic device and is used to store programs and data. It is understood that the computer storage medium herein may include both a built-in storage medium in the electronic device and, of course, an extended storage medium supported by the electronic device. The computer storage medium provides a storage space that stores an operating system of the electronic device. Also stored in this memory space are one or more instructions, which may be one or more computer programs (including program code), suitable for loading and execution by processor 801. It should be noted that the computer storage medium herein may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; and optionally at least one computer storage medium located remotely from the processor.
In one embodiment, one or more instructions stored in a computer storage medium may be loaded and executed by a processor to perform the corresponding steps in the above embodiments; in a specific implementation, one or more instructions in the computer storage medium may be loaded by the processor and execute steps performed by the electronic device or the terminal device related to the methods shown in fig. 1 to fig. 5, and so on, which are not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the division of the module is only one logical division, and other divisions may be possible in actual implementation, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not performed. The shown or discussed mutual coupling, direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some interfaces, and may be in an electrical, mechanical or other form.
Modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)), or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a read-only memory (ROM), or a Random Access Memory (RAM), or a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape, a magnetic disk, or an optical medium, such as a Digital Versatile Disk (DVD), or a semiconductor medium, such as a Solid State Disk (SSD).

Claims (10)

1. A state information notification method is applied to terminal equipment and is characterized by comprising the following steps:
receiving state change information from electronic equipment, wherein the state change information carries a unique identification mark, and the unique identification mark is determined when the state of the electronic equipment is changed;
detecting whether target state change information with the same unique identification exists in a preset time period or not, wherein the target state change information with the same unique identification is transmitted to the terminal equipment by the electronic equipment in different communication modes;
if yes, merging and processing target state change information with the same unique identification identifier, and triggering a data request, wherein the data request is used for requesting the state information of the electronic equipment corresponding to the unique identification identifier from a server;
and receiving the state information of the electronic equipment sent by the server.
2. The method according to claim 1, wherein the different communication method includes a short-range wireless communication method or a long-range wireless communication method.
3. The method of notifying status information of claim 2, wherein after said receiving status change information from an electronic device, said method further comprises:
when the state change information is not the first piece of state change information of the electronic equipment received by the terminal equipment, acquiring a current timestamp corresponding to the state change information;
obtaining a request time difference according to the current time stamp and the time stamp of the historical data request corresponding to the previous strip state change information;
under the condition that the request time difference is not smaller than a preset time difference threshold value, triggering a data request corresponding to the state change information; and under the condition that the request time difference is smaller than a preset time difference threshold value, judging that the data request corresponding to the state change information is a redundant request and not processing the redundant request.
4. A state information notification method according to any one of claims 1 to 3, wherein said terminal device includes a common distribution module and a plurality of single-item modules, said plurality of single-item modules being software function modules that process information of different types of electronic devices; the state change information also carries an equipment identifier of the electronic equipment;
and distributing the state change information to a single item module corresponding to the equipment identification for processing through the public distribution module according to the equipment identification of the electronic equipment.
5. A state information notification method is applied to electronic equipment and is characterized by comprising the following steps:
reporting the state information of the electronic equipment and state change information corresponding to the state information to a server in a long-distance wireless communication mode, wherein the state change information and the state information carry a unique identification mark of the electronic equipment, and the unique identification mark is determined when the state of the electronic equipment is changed, so that the server pushes the state change information to terminal equipment;
and transmitting the state change information to the terminal equipment in a near field communication mode so that the terminal equipment triggers a data request aiming at the target state change information with the same unique identification mark in a combined processing mode, wherein the data request is used for requesting the state information of the electronic equipment corresponding to the unique identification mark from the server.
6. A terminal device, comprising:
the transmission module is used for receiving state change information from the electronic equipment, wherein the state change information carries a unique identification mark, and the unique identification mark is determined when the state of the electronic equipment is changed;
the processing module is used for detecting whether target state change information with the same unique identification exists in a preset time period or not, and the target state change information with the same unique identification is transmitted to the terminal equipment by the electronic equipment in different communication modes;
the processing module is further configured to, if target state change information with the same unique identification exists in the preset time period, perform merging processing on the target state change information with the same unique identification, and trigger a data request, where the data request is used to request a server for state information of the electronic device corresponding to the unique identification;
the transmission module is further configured to receive the status information of the electronic device sent by the server.
7. An electronic device, comprising:
the first communication module is used for reporting the state information of the electronic equipment and state change information corresponding to the state information to a server in a long-distance wireless communication mode, wherein the state change information and the state information carry a unique identification mark of the electronic equipment, and the unique identification mark is determined when the state of the electronic equipment is changed, so that the server pushes the state change information to terminal equipment;
and the second communication module is used for transmitting the state change information to the terminal equipment in a near field communication mode so that the terminal equipment triggers a data request aiming at the merging processing of the target state change information with the same unique identification mark, and the data request is used for requesting the state information of the electronic equipment corresponding to the unique identification mark from the server.
8. A state information notification system is characterized by comprising electronic equipment, terminal equipment and a server; wherein:
the electronic equipment is used for reporting state information and state change information corresponding to the state information to a server in a long-distance wireless communication mode, wherein the state change information and the state information carry a unique identification mark of the electronic equipment, and the unique identification mark is determined when the state of the electronic equipment is changed;
the electronic equipment is also used for transmitting the state change information to the terminal equipment in a near field communication mode; and/or the server is used for pushing the state change information to the terminal equipment;
the terminal device is configured to:
detecting whether target state change information with the same unique identification exists in a preset time period or not, wherein the target state change information with the same unique identification is transmitted to the terminal equipment by the electronic equipment in different communication modes;
if yes, merging and processing target state change information with the same unique identification identifier, and triggering a data request, wherein the data request is used for requesting the server for state information of the electronic equipment corresponding to the unique identification identifier;
the server is further configured to send the state information of the electronic device to the terminal device.
9. A computer arrangement, characterized by comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to carry out the steps of the status information notification method according to any one of claims 1 to 4; alternatively, the computer program, when being executed by the processor, causes the processor to carry out the steps of the status information notification method as claimed in claim 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the status information notification method according to any one of claims 1 to 4; alternatively, the computer program, when being executed by a processor, causes the processor to carry out the steps of the status information notification method as claimed in claim 5.
CN202110410917.9A 2021-04-16 2021-04-16 State information notification method, related device, system and medium Active CN113225698B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110410917.9A CN113225698B (en) 2021-04-16 2021-04-16 State information notification method, related device, system and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110410917.9A CN113225698B (en) 2021-04-16 2021-04-16 State information notification method, related device, system and medium

Publications (2)

Publication Number Publication Date
CN113225698A CN113225698A (en) 2021-08-06
CN113225698B true CN113225698B (en) 2022-07-05

Family

ID=77087848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110410917.9A Active CN113225698B (en) 2021-04-16 2021-04-16 State information notification method, related device, system and medium

Country Status (1)

Country Link
CN (1) CN113225698B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811393A (en) * 2014-01-27 2015-07-29 中兴通讯股份有限公司 Multicasting message duplicating handling method and device and open flow controller (OFC)
WO2018164714A1 (en) * 2017-03-06 2018-09-13 Google Llc Notification permission management
CN108989062A (en) * 2018-07-25 2018-12-11 北京达佳互联信息技术有限公司 Update method, apparatus, terminal, system and the storage medium of group members data
CN110889710A (en) * 2019-12-04 2020-03-17 腾讯科技(深圳)有限公司 Device information management method, server, and storage medium
CN111443844A (en) * 2020-03-26 2020-07-24 维沃移动通信有限公司 Information processing method and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101772155B (en) * 2009-01-05 2016-06-29 中兴通讯股份有限公司 The cancellation method of IP Multimedia System centralized traffic
WO2019084391A1 (en) * 2017-10-26 2019-05-02 Noon Home, Inc. Intelligent lighting control system transaction identification apparatuses, systems, and methods
CN111913980A (en) * 2019-05-09 2020-11-10 杭州海康威视数字技术股份有限公司 Equipment management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104811393A (en) * 2014-01-27 2015-07-29 中兴通讯股份有限公司 Multicasting message duplicating handling method and device and open flow controller (OFC)
WO2018164714A1 (en) * 2017-03-06 2018-09-13 Google Llc Notification permission management
CN108989062A (en) * 2018-07-25 2018-12-11 北京达佳互联信息技术有限公司 Update method, apparatus, terminal, system and the storage medium of group members data
CN110889710A (en) * 2019-12-04 2020-03-17 腾讯科技(深圳)有限公司 Device information management method, server, and storage medium
CN111443844A (en) * 2020-03-26 2020-07-24 维沃移动通信有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN113225698A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
US11805441B2 (en) Method and system for group communication, group server, and group member device
CN106487928B (en) Message pushing method and device
CN102891891A (en) Method and system for cross-device file transmission
CN110505618B (en) Service processing method and server
CN108337308B (en) Data communication method, device and system for LWM2M client and upper computer
CN110650203B (en) Data transmission method, device and system, computer storage medium and electronic equipment
CN112995239B (en) Data processing method and device
US20200169480A1 (en) Setting device, system, and setting method for cloud service
CN112714426B (en) Intelligent upgrading method and device of Bluetooth equipment, electronic equipment and medium
CN114205762A (en) Short message flow control method, equipment and storage medium
CN112630557A (en) Equipment state detection method, device, equipment and medium
CN113038090A (en) Transmission link management method and system
CN113225698B (en) State information notification method, related device, system and medium
CN104168145B (en) A kind of system and method that radio upgrade is carried out to wireless communication unit
CN104270432A (en) Real-time data service system and data interaction method based on drilling industry
CN110213155B (en) Communication processing method, communication processing device, related equipment and storage medium
US11095566B2 (en) Embedded device interaction restrictions
WO2022068564A1 (en) Device abnormality monitoring method and device
US20110264763A1 (en) Method for retrieving object from device management client and associated device management system
CA2902388C (en) Underlying message method and system
CN113542424A (en) Data processing method, device, equipment and computer program product
CN107256261B (en) Electronic information transmission system and method thereof
CN115333917A (en) CDN anomaly detection method and device
CN109688432B (en) Information transmission method, device and system
CN108076116B (en) Intelligent reading method and system based on cloud storage data

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