CN106888272B - Client message refreshing method based on third-party push platform - Google Patents

Client message refreshing method based on third-party push platform Download PDF

Info

Publication number
CN106888272B
CN106888272B CN201710233312.0A CN201710233312A CN106888272B CN 106888272 B CN106888272 B CN 106888272B CN 201710233312 A CN201710233312 A CN 201710233312A CN 106888272 B CN106888272 B CN 106888272B
Authority
CN
China
Prior art keywords
client
message
equipment
party
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
CN201710233312.0A
Other languages
Chinese (zh)
Other versions
CN106888272A (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.)
East China Jiaotong University
Original Assignee
East China Jiaotong University
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 East China Jiaotong University filed Critical East China Jiaotong University
Priority to CN201710233312.0A priority Critical patent/CN106888272B/en
Publication of CN106888272A publication Critical patent/CN106888272A/en
Application granted granted Critical
Publication of CN106888272B publication Critical patent/CN106888272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/53Network services using third party service providers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a client message refreshing method based on a third-party push platform, which is applied to an intelligent home system. The intelligent home system comprises bottom equipment, an intelligent host, a cloud server and a client, wherein the client is used for communicating with the cloud server and controlling the bottom equipment to work through the cloud server and the intelligent host. The client message refreshing method based on the third-party push platform comprises the following steps: when the state of the bottom layer equipment is changed, the intelligent home system sends an equipment state message to a third-party pushing platform; the third party pushing platform sends the equipment state message to a client message pushing server; and the client message pushing server pushes the equipment state message to the client. According to the message refreshing method for the client based on the third-party push platform, the real-time performance of state refreshing of the client device can be improved, and the pressure of a cloud server and a memory of the client can be reduced.

Description

Client message refreshing method based on third-party push platform
Technical Field
The invention relates to the field of intelligent home furnishing, in particular to a client message refreshing method based on a third-party push platform.
Background
With the rapid development of information technology, smart home systems are increasingly popularized due to their convenience. Meanwhile, the rise of the internet of things technology drives the rapid development of the smart home industry. Some mobile client applications are successively marketed, and a user can operate household appliances such as lights, curtains, windows, sockets, televisions, air conditioners and the like in a home on the application only by installing application software to match with the bottom layer devices in the smart home system in the home, and the current state (on or off) of the bottom layer devices can be displayed on the application. A conventional smart home system updates a current state of a bottom device on an application program by using a timed refresh method, such as a remote timed refresh method based on the internet (Intemet).
The remote timing refreshing method based on the Internet requests a server (such as an Ali cloud server) to acquire the current states of all the underlying devices of the smart home through a client. The database of the server stores the latest state information of the bottom layer equipment, after the client starts the application program, the application program starts a new thread in the system background, and sends a POST request to the server at preset time intervals (such as 5 seconds) to acquire the current state of the bottom layer equipment. After receiving a request of a client, a server queries a local database, packages table information of storage device states into a data string and sends the data string to the client, an application program of the client receives data returned by the server, analyzes the data in batches, extracts fields related to the states of bottom layer devices from the analyzed data, saves the fields, and refreshes the current data, so that the latest state of the obtained bottom layer devices is displayed to a user.
Specifically, as shown in fig. 2, the internet-based client message refresh method includes the steps of:
the method comprises the following steps: and starting the client application program, and creating a new thread in the system background by the application program so as to acquire the state of the equipment at regular time.
Step two: the application sends a message refresh request to the server at a predetermined time interval (e.g., 5 seconds).
Step three: the server responds to the request of the client, queries a local database table, finds the equipment state table, packages all information in the table into a data string and sends the data string to the client.
Step four: after receiving the data returned by the server, the client analyzes the data, extracts and stores the information about the state of the bottom layer equipment in the data, meanwhile refreshes the state of the bottom layer equipment, and presents the latest state information of the bottom layer equipment in front of the user.
In the above internet-based client message refreshing method, the client acquires data from the server at predetermined time intervals, and the acquired state of the underlying device is not necessarily the latest state. If the user frequently clicks the state of the switch on the underlying device switch, the state of the underlying device is updated very quickly, and the client acquires the state of the underlying device at a preset time interval (for example, several seconds), which causes delay of device state information and poor user experience.
Secondly, the client acquires data from the server at preset time intervals, which increases the pressure of the server, and if many users acquire data from the server at the same time, the server is subjected to huge pressure and operation risk. In addition, when the client analyzes batch data returned by the server, pressure is brought to the memory of the client, and the memory leakage is easily caused for the client with a smaller memory. In summary, the above method for refreshing the message given to the internet client is not only poor in user experience, but also can increase stress and risk to the server, and meanwhile, can bring memory burden to the client.
Disclosure of Invention
The embodiment of the invention aims to provide a message refreshing method for a client based on a third-party push platform, which can improve the real-time performance of state refreshing display of client equipment and reduce the pressure of a server and a memory of the client so as to solve the technical problems.
A client message refreshing method based on a third-party push platform is applied to an intelligent home system, the intelligent home system comprises bottom layer equipment, an intelligent host, a cloud server and a client, and the client is used for communicating with the cloud server and controlling the bottom layer equipment to work through the cloud server and the intelligent host. The client message refreshing method based on the third-party push platform comprises the following steps: when the state of the bottom layer equipment is changed, the intelligent home system sends an equipment state message to a third-party pushing platform; the third party pushing platform sends the equipment state message to a client message pushing server; and the client message pushing server pushes the equipment state message to the client.
In one embodiment, before the smart home system sends the message, the device token of the client is registered and uploaded to the third-party push platform, so that the third-party push platform is allowed to associate the device state message with the corresponding client, and the message can be pushed to the corresponding client.
In one embodiment, the device token is registered with a server of the client at the time of application delegation of the client.
In one embodiment, the method further comprises the following steps: and the client receives the equipment state message, stores the equipment state message to a local database, and refreshes the equipment state of the corresponding bottom layer equipment.
In one embodiment, when the client receives the message, the client determines that the message is the device status message, and stores the device status message.
In one embodiment, the client obtains the device status message by calling an application programming interface function of the third-party push platform.
In one embodiment, before the smart home system sends the device status packet to the third-party push platform, the client registers, creates an application on the third-party push platform, obtains an application identifier, and establishes a connection between the client and the third-party push platform.
In one embodiment, when the client is connected with the third-party push platform, the installation package is downloaded in a third-party push platform developer center, and the installation package is imported into a post-project configuration file of the client.
In one embodiment, when the state of the underlying device changes, the underlying device sends a device state message to the smart host, the smart host sends the device state message to the cloud server, and the cloud server sends the device state message to the third-party push platform.
In one embodiment, the third-party pushing platform is a third-party cloud pushing platform.
Compared with the prior art, the message refreshing method for the client based on the third-party push platform provided by the embodiment of the invention receives the equipment state message of the bottom equipment in real time by means of the third-party push platform, and only carries out message push on certain bottom equipment with a changed state, so that the magnitude of data processing of the cloud server is small, the pressure of the cloud server is reduced, the real-time performance of state refreshing of the bottom equipment of the client is improved, and the user experience is improved. In addition, the state of the bottom layer equipment is refreshed through the third-party push platform, the memory pressure of the client during data analysis can be reduced, the probability of memory leakage is reduced to a certain extent, the running stability of the client is guaranteed, and meanwhile the compatibility of the client is improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a message refreshing method for a client based on a third-party push platform according to an embodiment of the present invention;
fig. 2 is a schematic diagram of the background art of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a client message refreshing method based on a third-party push platform, which is applied to an intelligent home system, so as to allow a user to refresh and acquire an equipment state of an intelligent home in real time on a client. The intelligent home system comprises a client, a cloud server, a home control center and a bottom layer device, wherein the client is used for receiving an operation instruction of a user and sending the control instruction to the cloud server; the cloud server is used for interacting with the home control center and sending the control instruction to the home control center; and the home control center is used for interacting with the bottom layer equipment and controlling the bottom layer equipment to work according to the control instruction.
The bottom layer equipment is intelligent household equipment, and comprises but is not limited to household appliances such as lamplight, curtains, windows, sockets, televisions, air conditioners and the like. In the embodiment of the invention, the home control center is an intelligent host, and the intelligent host is in communication connection with the bottom layer equipment and the cloud server. The intelligent host comprises hardware with a gateway function, and the hardware is used for sending and receiving signals of the bottom layer equipment. The client can be, but is not limited to, an intelligent portable terminal such as a mobile phone, a tablet computer, a wearable device, a remote controller and the like. The client side has a network communication function, and a user can control the bottom layer equipment through the client side.
In an embodiment of the present invention, the third-party push platform is a third-party cloud push platform (e.g., aurora push). The client is an electronic device supported by the IOS system, such as a mobile phone, a tablet computer, and the like. The client can be internally provided with an application program so as to allow a user to view the equipment state of the bottom layer equipment through the application program or control the bottom layer equipment and the like. The client message refreshing method based on the third-party push platform comprises the following steps:
the method comprises the following steps: and creating an application and acquiring an application identifier in the third-party push platform. Specifically, in the present embodiment, after an account is registered in a developer center of the third-party push platform by an application on the client, the application is registered and created, and an identifier (application Key) of the application is acquired. The identifier is a string that uniquely identifies the application information.
Step two: and downloading the installation package at a third-party push platform developer center, and importing the installation package into a configuration file after the project of the client. Specifically, in the present embodiment, after downloading the latest IOS SDK installation package at the developer center of the third party push platform and importing the installation package into the project of the client, a work architecture (frame) required by the third party push platform is added, such as cfnetwork frame, corefoundation frame, coreteleframe frame, system configuration frame, coregraphics frame, foundation frame, uit frame, security frame, libz frame, tbd (the version below Xcode7 is libz frame), support frame (the version below Xcode8 and above), library frame (the version below Xcode 2.2.0 and above, and the version below 7.26).
Step three: and registering the device token and uploading the device token to a third-party push platform server. Specifically, in this embodiment, a device token (DeviceToken) is registered from a server of a client in an implementation file (application delete.m) delegated by an application through an operating system of the client, and is uploaded to a third-party push platform server, so as to allow the third-party push platform to search for an object of message push, that is, to allow the third-party push platform to associate a device status message with a corresponding client, so as to push a message to the corresponding client.
Step four: and if the hardware equipment state of the intelligent home system is detected to change, searching a client needing to push the message, and sending an equipment state message. Specifically, if the state of the bottom layer equipment of the intelligent home system changes, the bottom layer equipment sends a message of the state change to the intelligent host, the intelligent host receives the message sent by the bottom layer equipment and then sends the message to the cloud server, and the cloud server sends the message to the third-party pushing platform; the third party pushing platform server receives the message and forwards the message to a pushing server (APNS server) of the client operating system, and the APNS server searches the client equipment needing pushing according to the equipment token uploaded by the equipment.
Step five: and the application program of the client monitors and receives the state message, and refreshes the hardware state of the bottom layer equipment. Specifically, the client operating system calls an Application Programming Interface (API) of the third-party message push platform to obtain a device status message, if the client detects that a message is pushed, the client determines a device type associated with the message, determines whether the message is a device status message of the underlying device, and if so, extracts the status of the device, inserts the status information of the underlying device into a local database, and meanwhile refreshes the current status of the underlying device.
According to the client message refreshing method based on the third-party pushing platform, the third-party pushing platform is used for receiving the state message of the bottom-layer equipment in real time, and message pushing is only carried out on certain bottom-layer equipment with a changed state, the magnitude of data processing of the cloud server is small, the pressure of the cloud server is reduced, meanwhile, the real-time performance of state refreshing of the bottom-layer equipment of the client is improved, and user experience is improved. In addition, the state of the bottom layer equipment is refreshed through the third-party push platform, the memory pressure of the client during data analysis can be reduced, the probability of memory leakage is reduced to a certain extent, the running stability of the client is guaranteed, and meanwhile the compatibility of the client is improved.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (5)

1. A client message refreshing method based on a third-party push platform is applied to an intelligent home system, the intelligent home system comprises bottom layer equipment, an intelligent host, a cloud server and a client, and the client is used for communicating with the cloud server and controlling the bottom layer equipment to work through the cloud server and the intelligent host; the client message refreshing method based on the third-party push platform comprises the following steps:
registering, creating an application and acquiring an application identifier on the third-party push platform through the client;
downloading an installation package at a third-party push platform developer center, importing the installation package into a project engineering post-configuration file of a client, and establishing connection between the client and the third-party push platform;
registering the device token of the client, uploading the device token to the third-party pushing platform, and allowing the third-party pushing platform to associate the device state message with the corresponding client, so that a message can be pushed to the corresponding client;
when the state of the bottom layer equipment is changed, the intelligent home system sends an equipment state message to a third-party pushing platform through an intelligent host and a cloud server;
the third party pushing platform sends the equipment state message to a client message pushing server; and
the client message pushing server searches a client to be pushed according to the equipment token and pushes an equipment state message to the client;
an application program of a client monitors and receives an equipment state message, and acquires an equipment type corresponding to the equipment state message;
determining whether the equipment state message is the equipment state message of the bottom layer equipment or not by using the equipment state message and the equipment type;
and when the equipment state message is the equipment state message of the bottom equipment, extracting the state of the bottom equipment, inserting the state information of the bottom equipment into a local database, and refreshing the current hardware state of the bottom equipment.
2. The method of claim 1, wherein the device token is registered when an implementation file delegated by an application of the client is registered from a server of the client.
3. The method of claim 1, wherein the client obtains the device status message by calling an application programming interface function of the third party push platform.
4. The method of claim 1, wherein when the underlying device state changes, it sends a device state message to the smart host, and the smart host sends the device state message to a cloud server, and the cloud server sends the device state message to the third-party push platform.
5. The method of claim 1, wherein the third party push platform is a third party cloud push platform.
CN201710233312.0A 2017-04-11 2017-04-11 Client message refreshing method based on third-party push platform Active CN106888272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710233312.0A CN106888272B (en) 2017-04-11 2017-04-11 Client message refreshing method based on third-party push platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710233312.0A CN106888272B (en) 2017-04-11 2017-04-11 Client message refreshing method based on third-party push platform

Publications (2)

Publication Number Publication Date
CN106888272A CN106888272A (en) 2017-06-23
CN106888272B true CN106888272B (en) 2020-05-19

Family

ID=59182726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710233312.0A Active CN106888272B (en) 2017-04-11 2017-04-11 Client message refreshing method based on third-party push platform

Country Status (1)

Country Link
CN (1) CN106888272B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247786A (en) * 2018-03-08 2019-09-17 佛山市顺德区美的电热电器制造有限公司 Household appliance, Cloud Server, client, control method and storage medium based on NB-IoT
CN108804279A (en) * 2018-03-30 2018-11-13 阿里巴巴集团控股有限公司 Change the method and application apparatus of daily record printing grade
CN110099111A (en) * 2019-04-26 2019-08-06 深圳智链物联科技有限公司 A kind of display system and its display methods of PUSH message
CN110955465A (en) * 2019-12-16 2020-04-03 宁波奥克斯电气股份有限公司 Equipment state acquisition method
CN113064753B (en) * 2019-12-30 2023-03-14 深圳Tcl新技术有限公司 Host state acquisition method, system, intelligent terminal and storage medium
CN111541772A (en) * 2020-04-29 2020-08-14 四川虹美智能科技有限公司 Intelligent reminding method and system and cloud server
CN115208957A (en) * 2022-06-22 2022-10-18 北京旋极信息技术股份有限公司 Communication method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468819A (en) * 2014-12-24 2015-03-25 福建江夏学院 Message pushing system and method for internet of things
CN204719430U (en) * 2015-05-13 2015-10-21 李崇平 A kind of intelligent domestic system
CN105005201A (en) * 2015-06-04 2015-10-28 广东康宝电器股份有限公司 Multi-mobile-terminal data synchronization and push system for intelligent household
CN205247087U (en) * 2015-12-12 2016-05-18 山西时代云科技有限公司 Intelligent home control system
CN106412111A (en) * 2016-11-14 2017-02-15 南京物联传感技术有限公司 Cloud-based whole house intelligent system
CN106453657A (en) * 2016-12-07 2017-02-22 海信集团有限公司 Status information update method and device of smart home equipment
CN106453648A (en) * 2016-11-29 2017-02-22 海信集团有限公司 Device state determining method and device of smart home devices

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106371333A (en) * 2015-07-20 2017-02-01 阿里巴巴集团控股有限公司 Controlling method, apparatus, and system for intelligent device
CN106533925A (en) * 2016-12-23 2017-03-22 郑州微领控科技有限公司 Method and system for automatically sending WeChat friend circle content based on third party push platform

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104468819A (en) * 2014-12-24 2015-03-25 福建江夏学院 Message pushing system and method for internet of things
CN204719430U (en) * 2015-05-13 2015-10-21 李崇平 A kind of intelligent domestic system
CN105005201A (en) * 2015-06-04 2015-10-28 广东康宝电器股份有限公司 Multi-mobile-terminal data synchronization and push system for intelligent household
CN205247087U (en) * 2015-12-12 2016-05-18 山西时代云科技有限公司 Intelligent home control system
CN106412111A (en) * 2016-11-14 2017-02-15 南京物联传感技术有限公司 Cloud-based whole house intelligent system
CN106453648A (en) * 2016-11-29 2017-02-22 海信集团有限公司 Device state determining method and device of smart home devices
CN106453657A (en) * 2016-12-07 2017-02-22 海信集团有限公司 Status information update method and device of smart home equipment

Also Published As

Publication number Publication date
CN106888272A (en) 2017-06-23

Similar Documents

Publication Publication Date Title
CN106888272B (en) Client message refreshing method based on third-party push platform
US11888644B2 (en) Network configuration method for home appliance, home appliance, mobile terminal, and storage medium
US10893094B2 (en) System and method for appliance detection and app configuration
CN108683574B (en) Equipment control method, server and intelligent home system
RU2602982C2 (en) Method, apparatus and system for intelligently controlling device and plug-and-play device
US20190312747A1 (en) Method, apparatus and system for controlling home device
US10193971B2 (en) Method, server and system for application synchronization
EP3640849B1 (en) Electronic device and method of registering personal cloud apparatus in user portal server thereof
US10581993B2 (en) Method for forwarding traffic in application on mobile intelligent terminal
US11310066B2 (en) Method and apparatus for pushing information
US20160249321A1 (en) Method of synchronizing notification messages for electronic devices and electronic devices
CN106789470B (en) Terminal resource sharing method, device and system
AU2013388030B2 (en) Method, apparatus, and system for intelligently controlling device, and plug-and-play device
CN105302535A (en) Method and apparatus for generating man-machine interaction interface
CN103607454A (en) Method for setting private proxy server for Android system browser
CN115175152A (en) Intelligent device binding method and device, storage medium and electronic device
WO2015196656A1 (en) Notification message processing method, terminal and computer storage medium
WO2015171479A1 (en) Method,apparatus, and system for managing invitations for multi-device participation in an application program
CN109981546B (en) Method and device for acquiring remote call relation between application modules
WO2018000686A1 (en) Method and system for establishing call
CN103793459B (en) Webpage opening method and device
US20190190740A1 (en) Home automation system including cloud server based maintenance operation communication and related methods
KR101669561B1 (en) Control method of target terminal using mobile terminal
CN103269360A (en) Method and device capable of controlling electrical device
CN107277132B (en) DLNA (digital Living network alliance) pushing processing method, multimedia receiving end and storage medium

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