CN108093060A - A kind of method for pushing of Intelligent housing background system message - Google Patents
A kind of method for pushing of Intelligent housing background system message Download PDFInfo
- Publication number
- CN108093060A CN108093060A CN201711432768.6A CN201711432768A CN108093060A CN 108093060 A CN108093060 A CN 108093060A CN 201711432768 A CN201711432768 A CN 201711432768A CN 108093060 A CN108093060 A CN 108093060A
- Authority
- CN
- China
- Prior art keywords
- message
- mobile terminal
- cloud server
- push
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1859—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast adapted to provide push services, e.g. data channels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
- H04W4/08—User group management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of method for pushing of Intelligent housing background system message.This method is:Mobile terminal needs beyond the clouds registered by server, obtains corresponding account, and itself unique identifier realizes that same time, the account can only carry out register on a mobile terminal according to each mobile terminal;After mobile terminal is using above-mentioned Account Logon mobile terminal, when server carries out message push beyond the clouds, the push of each message can open association's journey, and the push of message and main thread are relatively independent, and main thread still performs original task.In terms of existing technologies, the information push method that the present invention uses is handled high concurrent in terms of another kind.It, to realize the function of building the server more than the comparison that few server can realize that other systems build, has saved manpower and materials cost using the information push method processing high concurrent of server.
Description
Technical field
The present invention relates to intelligent household management system technical field, more particularly to a kind of Intelligent housing background system disappears
The method for pushing of breath.
Background technology
With the development of science and technology, the improvement of people's living standards, smart home is slowly begun to appear in people’s lives.
Present smart home is to control home appliance by specific application (APP) login service device using mobile terminal, each
User establishes binding relationship by app and intelligent fixture.But in smart home various smart machines increase, use user
Increase, when background system message of smart home push, is present with " high concurrent " situation.
The high concurrent is an internet noun, refers to that many access in the progress of same time, is internet
The technical barrier in epoch.Existing common smart home background system message push reply high concurrent has the defects of certain, than
As said, the background server of smart home can only shunt visit capacity by building many servers at present.Although this is
A kind of method, but additional manpower and materials can be wasted.The early big tide for having been enter into internet now, at a certain moment, is visited simultaneously
It asks that a website already belongs to normal phenomenon, such as day cat " double 11 ", Jingdone district " 618 " shopping Carnival ", buys on the net on New Year's Day or other festivals
These are all million to ticket etc., ten million concurrency, if still only tackling high concurrent by carrying more multiserver, are shown
It is not so long-term plan.
In view of the above problems, present inventors have proposed following technical schemes.
The content of the invention
The technical problems to be solved by the invention, which are that, overcomes the deficiencies of the prior art and provide a kind of Intelligent housing
The method for pushing of background system message.
In order to solve the above technical problems, present invention employs following technical solutions:A kind of Intelligent housing background system
Information push method, including:One cloud server, a mobile terminal that can be connected with cloud server foundation communication, one pass through
Gateway establishes the intelligence home equipment of communication connection with cloud server, and mobile terminal is established by cloud server and smart home
Communication, while cloud server carries out the push of message as the control of smart home to mobile terminal from the background;Carrying out message
Before push, mobile terminal needs beyond the clouds registered by server, obtains corresponding account, and according to each mobile terminal
Itself unique identifier realizes that same time, the account can only carry out register on a mobile terminal;In mobile terminal
After above-mentioned Account Logon mobile terminal, when server carries out message push beyond the clouds, the push of each message can be held
Association's journey is opened, the push of message and main thread are relatively independent, and main thread still performs original task.
Furthermore, in above-mentioned technical proposal, the mass-sending which carries out message by binding gateway pushes,
Comprise the following steps:First, mobile terminal sends binding by corresponding Account Logon cloud server, and to cloud server
Specify the request of gateway;Secondly, after cloud server receives above-mentioned request, specified gateway is sent an instruction to;Then, net is specified
Pass carries out gateway binds after receiving cloud server instruction;Then, after gateway binds success, cloud server will be binding success
Message cluster transmition user all under gateway is specified to this;Finally, cloud server would cycle through use all under the gateway
Family carries out message push to each user.
Furthermore, in above-mentioned technical proposal, continue beyond the clouds in login process, if there is more mobile terminals successively
Using same Account Logon cloud server, then cloud server by according to the unique identifier of itself in each mobile terminal into
Row judges, if same mobile terminal, then push without message;If different mobile terminals, then to logging in before
Mobile terminal push offline message, the mobile terminal in rear login is made to login successfully.
In terms of existing technologies, the information push method that the present invention uses carries out high concurrent in terms of another kind
Processing., using the information push method processing high concurrent of server, other can be realized by building few server with realization for it
The function of server more than the comparison of system building has saved manpower and materials cost.Compared with prior art, the present invention has following
Advantageous effect:
1st, the present invention has the significant advantage for handling high concurrent using server message method for pushing;
2nd, information push method of the present invention can effectively alleviate server high concurrent pressure;
3rd, the speed for accessing background server can be improved, enhances user experience;
4th, the manpower and materials cost for safeguarding background server is reduced, is reduced expenses.
Description of the drawings
Various aspects for a better understanding of the present invention make into one the present invention below according to attached drawing and example embodiment
Step is described in detail.
Fig. 1 process charts when different mobile terminal is used to log in cloud server for the present invention;
Fig. 2 is flow chart of present invention when by gateway binds pocket transmission news.
Specific embodiment
The present invention is described in detail referring now to some embodiments as shown in the drawings.In order to more thoroughly understand this
Invention, elaborates many concrete details in the following description.But those skilled in the art it is clear that, lacking
The present invention can also be realized in the case of small part or all these details.In other cases, in order not to this hair can be made
It is bright there are unnecessary unclear part, do not specifically describe well known processing step and/or structure.In addition, it although combines special
Present invention is described for fixed embodiment, it is understood that, which is not intended to limit the invention to described
Embodiment.It may include on the contrary, the description is intended to covering in the spirit and scope of the present invention being defined by the appended claims
Interior replacement, improvement and equivalent program.
The present invention is a kind of Intelligent housing background system information push method.It has in this way
Including:One cloud server, a mobile terminal that can be connected with cloud server foundation communication, one pass through gateway and cloud service
Device establishes the intelligence home equipment of communication connection.Mobile terminal is established by cloud server and smart home and communicated, while high in the clouds
Server carries out the push of message as the control of smart home to mobile terminal from the background.
The cloud server is to provide data processing, data storage, the server of Communications service;It is included at least:
Central processing unit, memory, wired or wireless communication interface.
The mobile terminal at least wraps for that can establish the communicating terminal of communication connection by network and cloud server
It includes:Communication unit, processing unit etc..In general, mobile terminal can be smart mobile phone, tablet computer or removable computer etc..
The smart home device typically refers to the household electrical appliance in smart home, this smart home household electrical appliance
Communication unit, processing unit are at least provided in control circuit.In order to establish Communications service by network and control terminal.
For example, smart home can be intelligent switch, intelligent socket, intelligent lighting etc..
The information push method of the present invention is specifically described below.
Before message push is carried out, mobile terminal needs beyond the clouds registered by server, obtains corresponding account, and
And realize that same time, the account can only be enterprising in a mobile terminal according to each mobile terminal itself unique identifier (ID)
Row register;
After mobile terminal is using above-mentioned Account Logon mobile terminal, when server carries out message push beyond the clouds, often
The push of secondary message can open association's journey, and the push of message and main thread are relatively independent, and main thread still performs original
Business.
In simple terms, one client (APP) is installed in mobile terminal first, is sent out using the client to cloud server
Go out registration request, obtain corresponding logon account, then logged in.As shown in Figure 1, during subsequent use, if
It needs in an other mobile terminal using this Account Logon cloud server, then cloud server can be by each mobile whole
The unique identifier ID having in end is judged, if same mobile terminal, then push without message.If not
Same mobile terminal, cloud server will push a piece of news to the mobile terminal formerly logged in, such as:Your account is at it
He logs in mobile phone, you have been forced offline.
In the code level of above-mentioned message push, the present invention uses icomet Push Services.Icomet method for pushing
Principle is as follows:App ends can carry out long connection with cloud server terminal, and each message can have a unique UID to disappear to identify this
Is ceased when there is message arrival, and message content can keep in channel passages and (be similar to a pipe, follow the original of first in first out
In then), the message in passage is first entered, when needing to send message, preferential can be sent out, to ensure the instantaneity of message
In icomet passages (channel), a message can be uniquely determined, thus, the transmission and receiving of message are all
There is the of target when cloud server terminal needs to send out PUSH message to app, cloud server terminal can go to search according to unique ID of this message
The content push of the message after finding, will be given app ends by this message, and what app ends can be instant receives this message
When there is request to reach, method for pushing of the invention can open association's journey (being similar to thread) every time;
So message push has just carried out opposite independence with main thread, but can be with shared resource so the present invention can
Individually to go to send message to user, and, without this is waited to assist, Cheng Zhihang is complete just to perform next step, main line to main thread
Journey can directly perform remaining code so, when multiple requests access simultaneously, can increase exponentially code and perform effect
Rate, it is possible to which the effective pressure alleviated multi-user and access server simultaneously effectively alleviates what high concurrent generated server
Pressure.This is the mechanism of synchronized push message in information push method of the present invention.
In order to further illustrate the present invention, with reference to Fig. 2, illustrated with a pocket transmission news.
The mass-sending that the system message of the present invention carries out message by binding gateway pushes, and comprises the following steps:
First, mobile terminal is by corresponding Account Logon cloud server, and sends binding to cloud server and specify
The request of gateway;
Secondly, after cloud server receives above-mentioned request, specified gateway is sent an instruction to;
Then, specified gateway carries out gateway binds after receiving cloud server instruction;
Then, after gateway binds success, the message cluster transmition of binding success will be specified institute under gateway by cloud server to this
Some users;
Finally, cloud server would cycle through user all under the gateway, and message push is carried out to each user.
In brief, pocket transmission news step of the invention is as follows:
①:Cloud service end would cycle through user under gateway;
②:PUSH message is carried out to each user, how many user just pushes how many message;
③:The present invention information push method be:When multiple requests reach simultaneously, a plurality of association's journey is opened.Present invention clothes
Device pocket transmission news be engaged in using channel passage mechanism, it is each for caching multiple messages since channel can attach caching
Assist journey all there are one channel provide communication service, with ensure communication be it is man-to-man communication in this way, message sender and
Recipient has certain correspondence, to ensure the accuracy of message transmission, improves efficiency of code execution.
By the above, two purposes can be achieved in the present invention:
1st, the association Cheng Buhui opened excessively occupies main thread resource, improves efficiency of code execution;
2nd, message communication much sooner, improves user's access speed.
Certainly, the above is only a specific embodiment of the present invention, be not to limit the scope of the present invention, it is all according to
The equivalent change or modification that construction, feature and principle described in scope of the present invention patent are done, should all be included in Shen of the present invention
It please be in the scope of the claims.
Claims (3)
1. a kind of Intelligent housing background system information push method, including:One cloud server, one can be with cloud server
The mobile terminal for communicating connection, an intelligence home equipment connected by gateway with cloud server foundation communication are established, it is mobile whole
End is established by cloud server and smart home and communicated, at the same cloud server as smart home control from the background to movement
Terminal carries out the push of message, it is characterised in that:
Before message push is carried out, mobile terminal needs beyond the clouds registered by server, obtains corresponding account, and root
It can only be stepped on according to each mobile terminal itself unique identifier (ID) realization same time, the account on a mobile terminal
Record operation;
After mobile terminal is using above-mentioned Account Logon mobile terminal, when server carries out message push beyond the clouds, disappear every time
The push of breath can open association's journey, and the push of message and the main thread of cloud server are relatively independent, and main thread still performs
Original task.
2. a kind of method for pushing of Intelligent housing background system message according to claim 1, it is characterised in that:System
The mass-sending that message of uniting carries out message by binding gateway pushes, and comprises the following steps:
First, mobile terminal is by corresponding Account Logon cloud server, and sends binding to cloud server and specify gateway
Request;
Secondly, after cloud server receives above-mentioned request, specified gateway is sent an instruction to;
Then, specified gateway carries out gateway binds after receiving cloud server instruction;
Then, gateway binds success after, cloud server by the message cluster transmition of binding success to this specify it is all under gateway
User;
Finally, cloud server would cycle through user all under the gateway, and message push is carried out to each user;
When above-mentioned cloud server carries out message push, when multiple requests reach simultaneously, while a plurality of association's journey is opened, high in the clouds clothes
The pocket transmission news of business device attach caching using passage mechanism, and by caching multiple messages, journey is each assisted to have, and there are one passages
Communications service is provided.
3. a kind of method for pushing of Intelligent housing background system message according to claim 1, it is characterised in that:
High in the clouds continues in login process, successively uses same Account Logon cloud server if there is more mobile terminals, then high in the clouds takes
Business device will be judged according to the unique identifier of itself in each mobile terminal, if same mobile terminal, then without
Message pushes;If different mobile terminals, then offline message is pushed to the mobile terminal logged in before, is made in rear login
Mobile terminal login successfully.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711432768.6A CN108093060A (en) | 2017-12-26 | 2017-12-26 | A kind of method for pushing of Intelligent housing background system message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711432768.6A CN108093060A (en) | 2017-12-26 | 2017-12-26 | A kind of method for pushing of Intelligent housing background system message |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108093060A true CN108093060A (en) | 2018-05-29 |
Family
ID=62179442
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711432768.6A Pending CN108093060A (en) | 2017-12-26 | 2017-12-26 | A kind of method for pushing of Intelligent housing background system message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108093060A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109714249A (en) * | 2018-12-28 | 2019-05-03 | 武汉斗鱼网络科技有限公司 | A kind of method for pushing and relevant apparatus of small routine message |
CN112732088A (en) * | 2021-01-18 | 2021-04-30 | 海信视像科技股份有限公司 | Virtual reality equipment and monocular screen capturing method |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973748A (en) * | 2013-02-04 | 2014-08-06 | 珠海格力电器股份有限公司 | Intelligent household system and monitoring method thereof |
CN105992306A (en) * | 2015-03-02 | 2016-10-05 | 海信集团有限公司 | Binding method of terminal and home gateway |
CN106209927A (en) * | 2015-04-29 | 2016-12-07 | 中国科学院声学研究所 | The interaction relation of a kind of multiple terminals safeguards system and method |
CN106968525A (en) * | 2017-03-27 | 2017-07-21 | 深圳市华盈联创数字技术有限公司 | The remote control exchange method and system of a kind of intelligent door lock |
CN107395767A (en) * | 2017-08-31 | 2017-11-24 | 北京奇虎科技有限公司 | Message push system and method based on long connection |
-
2017
- 2017-12-26 CN CN201711432768.6A patent/CN108093060A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103973748A (en) * | 2013-02-04 | 2014-08-06 | 珠海格力电器股份有限公司 | Intelligent household system and monitoring method thereof |
CN105992306A (en) * | 2015-03-02 | 2016-10-05 | 海信集团有限公司 | Binding method of terminal and home gateway |
CN106209927A (en) * | 2015-04-29 | 2016-12-07 | 中国科学院声学研究所 | The interaction relation of a kind of multiple terminals safeguards system and method |
CN106968525A (en) * | 2017-03-27 | 2017-07-21 | 深圳市华盈联创数字技术有限公司 | The remote control exchange method and system of a kind of intelligent door lock |
CN107395767A (en) * | 2017-08-31 | 2017-11-24 | 北京奇虎科技有限公司 | Message push system and method based on long connection |
Non-Patent Citations (1)
Title |
---|
陈叶皓: "用Go语言实现推送服务器", 《URL:HTTP://BOS.ITDKS.COM/8EF648F12E71496B813218DC635CF2AD.PDF》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109714249A (en) * | 2018-12-28 | 2019-05-03 | 武汉斗鱼网络科技有限公司 | A kind of method for pushing and relevant apparatus of small routine message |
CN109714249B (en) * | 2018-12-28 | 2021-09-07 | 武汉斗鱼网络科技有限公司 | Method and related device for pushing applet messages |
CN112732088A (en) * | 2021-01-18 | 2021-04-30 | 海信视像科技股份有限公司 | Virtual reality equipment and monocular screen capturing method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105553836B (en) | A method of household electrical appliances are manipulated based on wechat | |
CN104899325A (en) | APP (application) acquired data collection method, terminal, server and system | |
CN102761864A (en) | Data transmission method, system and device | |
CN104168294B (en) | Instant communication method, system and device between across open platform user | |
CN103581966A (en) | Real-time monitoring optimizing configuration method for smart phone | |
CN107636722A (en) | For the management method and management server using multiple SIM card | |
CN105657710A (en) | Wireless network authentication method and system | |
CN103812900A (en) | Data synchronization method, device and system | |
CN102355509A (en) | Method and device for transmitting and receiving message according to mobile number in contact list | |
CN107580011A (en) | A kind of data sharing method and desktop cloud server terminal | |
CN103347084A (en) | Multi-account unifying interacted system and interacted method | |
CN108093060A (en) | A kind of method for pushing of Intelligent housing background system message | |
CN1595890B (en) | Virtual connectivity with subscribe-notify service | |
CN105812460A (en) | Mobile Internet message push technology for enterprise customers | |
CN104335620A (en) | System and method for virtual replication of a mobile phone | |
CN108055653A (en) | cloud broadcasting method and system | |
CN101599857A (en) | Detect method, device and the network measuring system that inserts number of host of sharing | |
CN103685485A (en) | Mobile terminal VoIP (voice over internet protocol) communication audio management system | |
CN103442028A (en) | Mobile application data pushing method based on XMPP | |
CN101510895A (en) | System and method for managing mobile address book based on internet | |
CN103973827A (en) | Domain name resolution method and device | |
CN101360034B (en) | Digital family data interchanging middleware | |
CN101242412A (en) | A transmission method, device and system for multi-dimension data instance | |
CN105245564B (en) | WAP method for processing business and WAP gateway | |
US9992638B1 (en) | System and method of facilitating management of common channel based services |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180529 |
|
RJ01 | Rejection of invention patent application after publication |