CN110300071A - The server resource acquisition methods and relevant device of internet of things equipment - Google Patents

The server resource acquisition methods and relevant device of internet of things equipment Download PDF

Info

Publication number
CN110300071A
CN110300071A CN201910477945.5A CN201910477945A CN110300071A CN 110300071 A CN110300071 A CN 110300071A CN 201910477945 A CN201910477945 A CN 201910477945A CN 110300071 A CN110300071 A CN 110300071A
Authority
CN
China
Prior art keywords
server
internet
things
things equipment
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910477945.5A
Other languages
Chinese (zh)
Inventor
延吉宝
沈方添
朱洁乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Midea Group Co Ltd
Guangdong Midea Kitchen Appliances Manufacturing Co Ltd
Original Assignee
Midea Group Co Ltd
Guangdong Midea Kitchen Appliances Manufacturing 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 Midea Group Co Ltd, Guangdong Midea Kitchen Appliances Manufacturing Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201910477945.5A priority Critical patent/CN110300071A/en
Publication of CN110300071A publication Critical patent/CN110300071A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/74Admission control; Resource allocation measures in reaction to resource unavailability
    • H04L47/746Reaction triggered by a failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/78Architectures of resource allocation
    • H04L47/783Distributed allocation of resources, e.g. bandwidth brokers
    • 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/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer And Data Communications (AREA)

Abstract

Present disclose provides the server resource acquisition methods and relevant device of a kind of internet of things equipment, are related to internet of things field, which comprises when internet of things equipment and first server carry out Internet of Things Network Communication, detect the first server out-of-service;Server assignment request is sent to the dispatch server for carrying out server resource distribution;Based on the response of the dispatch server, the second server for continuing Internet of Things Network Communication is determined;Internet of Things communication request is sent to determining second server.Internet of things equipment obtains the efficiency of server resource when the embodiment of the present disclosure can be improved Internet of Things communication abnormality.

Description

The server resource acquisition methods and relevant device of internet of things equipment
Technical field
This disclosure relates to internet of things field, and in particular to a kind of the server resource acquisition methods and correlation of internet of things equipment Equipment.
Background technique
With stepping up for mobile communications network coverage rate, the quantity of internet of things equipment is also increasing sharply.Existing skill In art, most internet of things equipment when leaving the factory, just will be responsible for providing the clothes of Internet of Things communication service for the internet of things equipment The IP or domain name of business device, are fixed in the hardware of the internet of things equipment, and this relationship has just been tied up when internet of things equipment dispatches from the factory It is fixed, it can not flexible allocation.Cause due to bad or other communication network quality binding server can not normally to When internet of things equipment provides Internet of Things communication service, it is necessary to manually be that the internet of things equipment distributes new service by staff Device continues Internet of Things Network Communication so that the internet of things equipment can continue to obtain server resource.But during this Since the process that internet of things equipment reacquires server resource is cumbersome, slow, results in internet of things equipment and obtain server money The inefficiency in source.
Summary of the invention
One purpose of the disclosure is to propose the server resource acquisition methods and relevant device of a kind of internet of things equipment, Internet of things equipment obtains the efficiency of server resource when can be improved Internet of Things communication abnormality.
According to the one side of the embodiment of the present disclosure, a kind of server resource acquisition methods of internet of things equipment, institute are disclosed The method of stating includes:
When internet of things equipment and first server carry out Internet of Things Network Communication, detect in the first server service Only;
Server assignment request is sent to the dispatch server for carrying out server resource distribution;
Based on the response of the dispatch server, the second server for continuing Internet of Things Network Communication is determined;
Internet of Things communication request is sent to determining second server.
According to the one side of the embodiment of the present disclosure, a kind of server resource distribution method of internet of things equipment, institute are disclosed The method of stating includes:
Receive internet of things equipment detect the first server out-of-service communicated with the internet of things equipment and The server assignment request of sending;
Response is sent to the internet of things equipment, so that the internet of things equipment determines for continuing Internet of Things Network Communication Two servers.
According to the one side of the embodiment of the present disclosure, a kind of internet of things equipment is disclosed, the internet of things equipment includes:
Detection device, for detecting described first when internet of things equipment and first server carry out Internet of Things Network Communication Server service stops;
First transmitter, for sending server assignment request to the dispatch server for carrying out server resource distribution;
First receiver, for receiving the response of the dispatch server,
Wherein, first transmitter also is used to continue the second of Internet of Things Network Communication to what is determined from the response Server sends Internet of Things communication request.
According to the one side of the embodiment of the present disclosure, a kind of dispatch server is disclosed, the dispatch server includes:
Second receiver detects the communicated with the internet of things equipment first clothes for receiving internet of things equipment Business device out-of-service and the server assignment request that issues;
Second transmitter, for the internet of things equipment send response, so as to the internet of things equipment determine for after The second server of continuous Internet of Things Network Communication.
According to the one side of the embodiment of the present disclosure, a kind of computer-readable medium is disclosed, being stored thereon with computer can It executes instruction, when the computer executable instructions are executed by the processor of computer, so that computer executes Internet of Things and sets Standby server resource acquisition methods, which comprises
When internet of things equipment and first server carry out Internet of Things Network Communication, detect in the first server service Only;
Server assignment request is sent to the dispatch server for carrying out server resource distribution;
Based on the response of the dispatch server, the second server for continuing Internet of Things Network Communication is determined;
Internet of Things communication request is sent to determining second server.
According to the one side of the embodiment of the present disclosure, a kind of computer-readable medium is disclosed, being stored thereon with computer can It executes instruction, when the computer executable instructions are executed by the processor of computer, so that computer executes Internet of Things and sets Standby server resource acquisition methods, which comprises
Receive internet of things equipment detect the first server out-of-service communicated with the internet of things equipment and The server assignment request of sending;
Response is sent to the internet of things equipment, so that the internet of things equipment determines for continuing Internet of Things Network Communication Two servers.
In the embodiment of the present disclosure, it is individually used for the dispatch server of distribution server resource by establishing, works as Internet of Things When equipment can not normally receive the Internet of Things communication service of first server offer, server distribution is sent to dispatch server and is asked It asks.It is that the internet of things equipment distributes the second server for continuing Internet of Things Network Communication by dispatch server, so that the Internet of Things Equipment continues Internet of Things Network Communication.It by this method, can be with higher so that internet of things equipment is in Internet of Things communication abnormality Efficiency obtains server resource.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
Its example embodiment is described in detail by reference to attached drawing, above and other target, feature and the advantage of the disclosure will It becomes more fully apparent.
Fig. 1 shows the system structure of the server resource acquisition methods according to the internet of things equipment of an embodiment of the present disclosure Frame figure.
Fig. 2 shows the flow charts obtained according to the server resource of the internet of things equipment of an embodiment of the present disclosure.
Fig. 3 shows the response based on the dispatch server according to an embodiment of the present disclosure, determines for continuing The flow chart of the second server of Internet of Things Network Communication.
Fig. 4 shows the terminal that candidate communication server list is shown according to the internet of things equipment of an embodiment of the present disclosure Surface chart.
Fig. 5 shows the terminal that candidate dispatch server list is shown according to the internet of things equipment of an embodiment of the present disclosure Surface chart.
Fig. 6 shows the flow chart distributed according to the server resource of the internet of things equipment of an embodiment of the present disclosure.
Fig. 7 shows the flow chart obtained according to the server resource of the internet of things equipment of an embodiment of the present disclosure.
Fig. 8 shows the electronic equipment figure according to the internet of things equipment of an embodiment of the present disclosure.
Fig. 9 shows the electronic equipment figure according to the dispatch server of an embodiment of the present disclosure.
Figure 10 shows the hardware structure diagram of the internet of things equipment according to an embodiment of the present disclosure.
Figure 11 shows the hardware structure diagram of the dispatch server according to an embodiment of the present disclosure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, providing these example embodiments makes the disclosure Description will be more full and complete, and the design of example embodiment is comprehensively communicated to those skilled in the art.Attached drawing The only schematic illustrations of the disclosure are not necessarily drawn to scale.Identical appended drawing reference indicates same or like in figure Part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more examples in any suitable manner In embodiment.In the following description, many details are provided to provide filling to the example embodiment of the disclosure Sub-argument solution.It will be appreciated, however, by one skilled in the art that the specific detail can be omitted with technical solution of the disclosure In it is one or more, or can be using other methods, constituent element, step etc..In other cases, it is not shown in detail or retouches Known features, method, realization or operation are stated to avoid a presumptuous guest usurps the role of the host and all aspects of this disclosure is made to thicken.
Some block diagrams shown in the drawings are functional entitys, not necessarily must be with physically or logically independent entity phase It is corresponding.These functional entitys can be realized using software form, or in one or more hardware modules or integrated circuit in fact These existing functional entitys, or these functions reality is realized in heterogeneous networks and/or processor device and/or microcontroller device Body.
The architecture of the embodiment of the present disclosure is described with reference to Fig. 1 first below.
With reference to shown in Fig. 1: in the embodiment of the present disclosure, internet of things equipment 210 is in carrying out Internet of Things on Internet of Things communication network It communicates, includes first server 111, second server 112 in Internet of Things communication network.Wherein, first server 111 refers to pair One specific internet of things equipment 210, the internet of things equipment 210 enter one connected first when Internet of Things communication network and are capable of providing object The communication server of connected network communication service;Second server 112 refers to the communication service that the internet of things equipment 210 is again coupled to Device.First server 111 and second server 112 are intended merely to distinguish whether it is that internet of things equipment 210 enters Internet of Things Netcom The communication server connected for the first time when communication network is equivalent in the two substantial function.
In the embodiment of the present disclosure, dispatch server 110 is connected to multiple internet of things equipment 210, internet of things equipment 210 into It is that internet of things equipment 210 distributes the energy communication server by dispatch server 110, Internet of Things is set before entering Internet of Things communication network Standby 210 therefrom further determine that its first server 111 or second server 112.
In one embodiment, Internet of Things communication service can be provided for it for the distribution of internet of things equipment 210 there are multiple The dispatch server 110 of server, internet of things equipment 210 voluntarily can therefrom select a dispatch server 110 to distribute energy for it The server of Internet of Things communication service is enough provided.
The advantages of embodiment, is, by arranging multiple dispatch servers, improves the stability of the architecture, makes Even if the distribution of server resource can not be carried out by obtaining partial scheduling server, it is also possible that internet of things equipment takes from other scheduling It is engaged in obtaining the service that server distributes at device.
In one embodiment, dispatch server 110 and a communication server are same server, and the two passes through virtual machine Form coexists on the same server.
The advantages of embodiment is, in isolating tune on the server where the communication server by way of virtual machine Server is spent, the utilization rate of server resource is improved.
The process obtained below to the server resource of the internet of things equipment of the embodiment of the present disclosure is described in detail.
Refering to what is shown in Fig. 2, the server resource for providing a kind of internet of things equipment obtains according to an embodiment of the present disclosure Method, which comprises
Step 310: when internet of things equipment and first server carry out Internet of Things Network Communication, detecting the first server Out-of-service;
Step 320: the dispatch server of Xiang Jinhang server resource distribution sends server assignment request;
Step 330: the response based on the dispatch server determines the second server for continuing Internet of Things Network Communication;
Step 340: sending Internet of Things communication request to determining second server.
First server refers to internet of things equipment when entering Internet of Things communication network, the communication service connected first Device.
Second server refers to the communication server that internet of things equipment is again coupled to.
In the embodiment of the present disclosure, the executing subject of the server resource acquisition methods of the internet of things equipment sets for Internet of Things It is standby.When internet of things equipment and first server carry out Internet of Things Network Communication, if internet of things equipment detects the first server Out-of-service, that is, the first server no longer provides Internet of Things communication service for the internet of things equipment, sends to dispatch server Server assignment request, request scheduling server are that the internet of things equipment distributes second server.The internet of things equipment is based on adjusting The response for spending server is determined to continue the second server of Internet of Things Network Communication, sends Internet of Things Netcom to the second server Letter request, to continue Internet of Things Network Communication.
In the step 310, when internet of things equipment and first server carry out Internet of Things Network Communication, first clothes are detected Business device out-of-service.
In one embodiment, described to detect the first server out-of-service, including detecting in following at least One:
Trial connection request number with first server is more than pre-determined number threshold value;
Receive the out-of-service notice of first server transmission.
In one embodiment, the frequency threshold value for attempting connection request number is preset, when internet of things equipment and first server During establishing connection or during receiving the Internet of Things communication service that first server provides, and if first server Trial connection request number be more than frequency threshold value, it is determined that the out-of-service of the first server.Such as: it is default to attempt connection The frequency threshold value of request number of times is 10, when the trial connection request number of internet of things equipment and first server is more than 10, then Determine the out-of-service of the first server.
In one embodiment, continuous trial connection request is referred to the trial connection request number of first server Number.
For example, one counter of setting, initial value are set to 0.Since attempting connection request with the first time of first server It counts, per connection request is once attempted, the value of counter adds 1, once establishing connection with first server, then counter is clear Zero.
The advantages of embodiment, is, avoids the case where can not establishing connection always with first server, can examine in time Measure the out-of-service of first server.
In one embodiment, refer to that the trial in preset period of time connects with the trial connection request number of first server Connect request number of times.
For example, preset period of time is 1 hour, a counter is set, initial value is set to 0.From with first server Primary connection request of attempting starts counting, and the time point for attempting connection request with the first time of first server is determined as working as The starting point of preceding time cycle.As long as it is every once to attempt connection request in 1 hour after the starting point of current time period, The value of counter adds 1, even if establishing connection with first server, counter is not also reset.Only after current time period, Counter can just be reset.
The advantages of embodiment is, when bad with the quality of connection of first server, although not being not connect always, But when always continually interrupting, equally will cause the plenty of time be wasted in first server attempt connection on.Pass through the implementation Example, can effectively avoid inefficiency caused by such case.
In one embodiment, when internet of things equipment receives the out-of-service notice of first server transmission, first is determined Server service stops.Such as: when internet of things equipment receives " stopping Internet of Things communication service " of first server transmission, really Determine first server out-of-service.
The advantages of embodiment, is that it is possible to reduce the computational burden of internet of things equipment, saves the calculation power of internet of things equipment Consumption.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
The detailed process that internet of things equipment sends server assignment request is described below.
In step 320, the dispatch server of Xiang Jinhang server resource distribution sends server assignment request.
In one embodiment, the dispatch server of Xiang Jinhang server resource distribution sends server assignment request, comprising: According to the mark of the dispatch server built in the internet of things equipment, server is sent to the corresponding dispatch server of the mark Distribution request.
In the embodiment, internet of things equipment is built-in with the mark (for example, address of dispatch server) of dispatch server, from And the corresponding server of the mark can be determined as to dispatch server, and then send server distribution to dispatch server and ask It asks.Wherein, the mark of built-in dispatch server can be what internet of things equipment was just set when leaving the factory, can also be by user Self-setting.
The advantages of embodiment is, internet of things equipment can quickly determine the mark of dispatch server, and then can be Server assignment request is sent to dispatch server at the first time.
In one embodiment, dispatch server and first server are different server, that is, dispatch server and first Server is physically separation.
The advantages of embodiment, is, by separating dispatch server in physically with first server, reduces Influencing each other between the two.
In one embodiment, dispatch server and first server are same servers, that is, dispatch server and the first clothes Business device is located on same physical equipment, but can functionally be separated the two by way of virtual machine.
The advantages of embodiment is, in isolating tune on the server where first server by way of virtual machine Server is spent, the utilization rate of server resource is improved.
In one embodiment, the server assignment request that internet of things equipment is sent describes what the internet of things equipment to be requested It is the mark (for example, address of the communication server) of the communication server, wherein can also include Internet of Things in server assignment request The sequence number SN of net equipment.
For example, the SN of internet of things equipment is 190500001, it is as follows to send server assignment request to dispatch server:
{“SN”:“190500001”,“METHOD”:“ADDR”}。
By the server assignment request, first server can therefrom be learnt: the internet of things equipment that SN is 190500001 The address of the request distribution communication server.
The advantages of embodiment, is that the server for enabling dispatch server quickly to determine that internet of things equipment is sent divides Content with request.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
It is described below after detecting first server out-of-service and sending server assignment request, determines and use In the detailed process for the second server for continuing Internet of Things Network Communication.
In a step 330, the response based on the dispatch server determines the second service for continuing Internet of Things Network Communication Device.
In one embodiment, dispatch server and second server are different server, that is, dispatch server and second Server is physically separation.
The advantages of embodiment, is, by separating dispatch server in physically with second server, reduces Influencing each other between the two.
In one embodiment, dispatch server and second server are same server, and the two is by way of virtual machine It coexists.
The advantages of embodiment is, in isolating tune on the server where second server by way of virtual machine Server is spent, the utilization rate of server resource is improved.
In one embodiment, the response of dispatch server includes that the specified second server of dispatch server identifies, and second The mark of server is to refer to the mark of unique identification second server, can be the address of second server.
For example, dispatch server receives the server assignment request of internet of things equipment transmission:
{“SN”:“190500001”,“METHOD”:“ADDR”}。
The response that dispatch server is returned to the internet of things equipment are as follows:
{"SN":"190500001","METHOD":"ADDR","RESULT":"api2.company.com"}.The response The specified second server address of the dispatch server for including is api2.company.com.
In the embodiment, based on the response of the dispatch server, the second service for continuing Internet of Things Network Communication is determined Device, comprising: will there is the second server of specified second server mark, be determined as second for continuing Internet of Things Network Communication Server.After internet of things equipment receives the response of dispatch server, it is used for according to the second server mark determination in response Continue the second server of Internet of Things Network Communication.
For example, after detecting first server out-of-service and receiving the response of dispatch server, dispatch server The address for the second server specified in response is api2.company.com, and address is by internet of things equipment The server of api2.company.com is determined as second server.
The advantages of embodiment, is that internet of things equipment can quickly determine the second clothes from the response of dispatch server Business device.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
In one embodiment, the response of dispatch server includes candidate communication server list.
Candidate communication server list, which refers to, describes the list of the candidate communication server, carries out object with internet of things equipment The communication server of connected network communication can be selected from candidate communication server list.
For example, dispatch server receives the server assignment request of internet of things equipment transmission:
{“SN”:“190500001”,“METHOD”:“ADDR”}。
The response that dispatch server is returned to the internet of things equipment are as follows:
{“SN”:“190500001”,“METHOD”:“ADDR”,“RESULT”:“api1.company.com, api2.company.com,api3.company.com”}。
The content for the candidate server list for including in the response are as follows: api1.company.com, api2.company.com,api3.company.com.Internet of things equipment can be determined from the candidate communication server list Can be attached thereto, the communication server that carries out Internet of Things Network Communication has: address is the server of api1.company.com, address For the server of api2.company.com, address is the server of api3.company.com.
In the embodiment, based on the response of the dispatch server, the second service for continuing Internet of Things Network Communication is determined Device, comprising: select a candidate communication server from candidate communication server list, be determined as continuing Internet of Things Network Communication Second server.
In the embodiment, after detecting first server out-of-service and receiving the response of dispatch server, Internet of Things Equipment can voluntarily select a candidate communication server from candidate communication server list, be determined as continuing Internet of Things Netcom The second server of letter.
The advantages of embodiment, is that Internet of Things can neatly determine second service in candidate communication server list Device.
In the embodiment, as shown in figure 4, step 330 includes:
Step 3301: display candidate communication server list;
Step 3302: the candidate communication server that user is selected from the candidate communication server list is determined as For continuing the second server of Internet of Things Network Communication.
In the embodiment, as shown in figure 5, detecting first server out-of-service and receiving answering for dispatch server After answering, candidate communication server list: api1.company.com is shown on the terminal interface of internet of things equipment 210, api2.company.com,api3.company.com.User can select (void as shown in the figure by the circle to server address Wire frame) and confirming button is clicked, to select to continue the second server of Internet of Things Network Communication.
The advantages of embodiment, is, determines second server by user, enable the second server determined more Relevantly meet the needs of users.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
It should be noted that there is no tight between the step 310 and step 320 before implementation steps 330 in the embodiment The context of lattice.Internet of things equipment can detect first server out-of-service and then send to dispatch server Server assignment request, and then the candidate communication server list in the response based on dispatch server are determined for continuing object The second server of connected network communication;Server assignment request first can also be sent to dispatch server, detect first server Candidate communication server list in out-of-service and then response based on dispatch server is determined for continuing Internet of Things The second server of communication.
The detailed process that Internet of Things communication request is sent to determining second server is described below.
In step 340, Internet of Things communication request is sent to determining second server.
In one embodiment, after internet of things equipment determines second server, Internet of Things is sent to determining second server Communication request, to continue Internet of Things Network Communication by second server.
For example, SN is that 190500001, ID for the internet of things equipment of 00000000AA897F01 needs server to provide for it Authentication functions, that is, first server or second server are authentication service for its Internet of Things communication service provided.When the object Networked devices determine the address of second server are as follows: when api2.company.com, internet of things equipment is first to the clothes of the address Business device sends handshaking information: { " SN ": " 190500001 ", " METHOD ": " HELLO " }.
When the internet of things equipment receives response of the server to handshaking information:
After { " SN ": " 190500001 ", " METHOD ": " HELL0 ", " RESULT ": " OK " }, the internet of things equipment to this The server of address sends following information:
{ " SN ": " 190500001 ", " METHOD ": " AUTH ", " ID ": " 00000000AA897F01 " }, with to the service Device requests authentication service.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
Internet of things equipment is described below and second server establishes the detailed process after Internet of Things Network Communication.
In one embodiment, in the response based on the dispatch server, second for continuing Internet of Things Network Communication is determined After server, further includes: save the candidate communication server list.
After sending Internet of Things communication request to determining second server, further includes:
When internet of things equipment and second server carry out Internet of Things Network Communication, detect in the second server server Only;
The candidate communication server list saved is shown, for selection by the user for continuing the third service of Internet of Things Network Communication Device.
After third server refers to that internet of things equipment detects second server out-of-service, Internet of Things Network Communication is again continued to When establish a server of connection therewith.
In one embodiment, internet of things equipment protects the candidate communication server list in dispatch server response It deposits, if the Internet of Things communication disruption of internet of things equipment and second server, internet of things equipment can be voluntarily from candidate's Internet of Things The third server for continuing Internet of Things Network Communication is selected in communication list.
The advantages of embodiment, is that internet of things equipment voluntarily can select third to take according to candidate communication server list Business device, improves the flexibility ratio of internet of things equipment operation.
In one embodiment, internet of things equipment protects the candidate communication server list in dispatch server response It deposits, if the Internet of Things communication disruption of internet of things equipment and second server, internet of things equipment can show that the candidate communication takes Business device list, so that user therefrom selects the third server for continuing Internet of Things Network Communication.
The advantages of embodiment, is, by user's manually identifying third server, so that third server is determined to It meets the needs of users.
In one embodiment, the response of dispatch server also includes candidate dispatch server list, is being based on the scheduling The response of server, after determining second server for continuing Internet of Things Network Communication, further includes: save the candidate scheduling clothes Business device list.
After sending Internet of Things communication request to determining second server, further includes:
When internet of things equipment and second server carry out Internet of Things Network Communication, detect in the second server service Only;
Show the candidate dispatch server list saved, dispatch server is asked for selection by the user to send server distribution It asks.
Candidate dispatch server list, which refers to, describes the list of candidate dispatch server, can be from candidate dispatch server The dispatch server that server resource distribution is carried out for internet of things equipment is selected in list.
In one embodiment, internet of things equipment protects the candidate dispatch server list in dispatch server response It deposits, if internet of things equipment detects that the out-of-service of second server, internet of things equipment voluntarily can therefrom select a new tune Server is spent, then sends server assignment request to the new dispatch server, requests the dispatch server to distribute one for it and leads to Telecommunications services device.
The advantages of embodiment, is, improves the flexibility ratio of internet of things equipment operation.
In one embodiment, internet of things equipment protects the candidate dispatch server list in dispatch server response It deposits, if internet of things equipment detects that the out-of-service of second server, internet of things equipment can show candidate's dispatch service Device list, so that user therefrom selects a new dispatch server.Internet of things equipment sends clothes to the new dispatch server again Business device distribution request, the dispatch server for requesting this new are that it distributes a communication server.
As shown in fig. 6, the internet of things equipment is in terminal circle when internet of things equipment detects the out-of-service of second server Face shows the candidate dispatch server list that store the address of each candidate dispatch server: D.server1.com, D.server2.com,D.server3.com.User can select (dotted line as shown in the figure by the circle to scheduling server address The choosing of frame circle) and " determination " button is clicked, to select corresponding dispatch server.If user selected address for The dispatch server of D.server2.com as new dispatch server, then internet of things equipment to address be D.server2.com Dispatch server send server assignment request, request the dispatch server for its distribute a communication server.
The advantages of embodiment, is, so that the dispatch server determined can satisfy the demand of user.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
Internet of things equipment is described below and establishes the detailed process communicated with first server.
In one embodiment, when internet of things equipment and first server carry out Internet of Things Network Communication, described first is detected Before server service stops, the method also includes:
In internet of things equipment booting, according to the mark of the dispatch server built in the internet of things equipment, to institute It states the corresponding dispatch server of mark and sends server assignment request;
Based on the response of the dispatch server, the first server for carrying out Internet of Things Network Communication is determined;
Internet of Things Network Communication is carried out with determining first server.
In the embodiment, internet of things equipment is built-in with the mark (for example, address of dispatch server) of dispatch server, In, the mark of dispatch server can be set when internet of things equipment dispatches from the factory, by user's manual setting after can also dispatching from the factory And it is stored in internet of things equipment.
Whenever internet of things equipment is switched on, in order to enter Internet of Things communication network, internet of things equipment takes according to built-in scheduling The mark of business device sends server assignment request to the corresponding dispatch server of the mark.Receiving answering for dispatch server After answering, the first server for carrying out Internet of Things Network Communication is determined, carry out Internet of Things Network Communication with the first server.
For example, the internet of things equipment that SN is 190500001 is built-in with the address of dispatch server: D.server1.com;It should After internet of things equipment booting, according to the address of built-in dispatch server, the dispatch server for being D.server1.com to address Send server assignment request:
{“SN”:“190500001”,“METHOD”:“ADDR”}。
The response of the dispatch server:
{“SN”:“190500001”,“METHOD”:“ADDR”,“RESULT”:“api1.company.com”}。
To which the internet of things equipment can determine that the address of first server is api1.company.com, so with this One server carries out Internet of Things Network Communication.
The advantages of embodiment, is, is identified by built-in dispatch server, can quickly establish with dispatch server Connection.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
In another embodiment, when internet of things equipment and first server carry out Internet of Things Network Communication, described the is detected Before one server service stops, further includes:
In internet of things equipment booting, according to the mark of the first server built in the internet of things equipment, with this It identifies corresponding first server and carries out Internet of Things Network Communication.
In the embodiment, internet of things equipment is built-in with the mark (for example, address of first server) of first server, In, the mark of first server can be set when internet of things equipment dispatches from the factory, by user's manual setting after can also dispatching from the factory And it is stored in internet of things equipment.
Whenever internet of things equipment is switched on, in order to enter Internet of Things communication network, internet of things equipment is according to the first built-in clothes The mark of business device, first server corresponding with the mark carry out Internet of Things Network Communication.
For example, the internet of things equipment that SN is 190500001 is built-in with the address of first server: api1.company.com.After internet of things equipment booting, it may thereby determine that the address of first server is Api1.company.com, and then first server corresponding with the address carries out Internet of Things Network Communication.
The advantages of embodiment, is, is identified by built-in first server, can directly establish with first server Connection, without the distribution by dispatch server.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
The detailed process of the server resource distribution of internet of things equipment in the embodiment of the present disclosure is described below, more specifically, Describing dispatch server is the detailed process that internet of things equipment distributes second server.
As shown in figure 5, according to an embodiment of the present disclosure, a kind of server resource distribution method of internet of things equipment, packet It includes:
Step 410: receiving internet of things equipment and detect the first server clothes communicated with the internet of things equipment Business stops and the server assignment request of sending;
Step 420: Xiang Suoshu internet of things equipment sends response, so that the internet of things equipment is determined for continuing Internet of Things The second server of communication.
In the embodiment of the present disclosure, dispatch server is used to be capable of providing Internet of Things communication service to internet of things equipment distribution The communication server (for example, first server, second server, third server etc.).When dispatch server receives Internet of Things Equipment detect the first server out-of-service communicated with the internet of things equipment and issue server assignment request when, Dispatch server sends response to the internet of things equipment, which is determined based on the response for continuing object The second server of connected network communication.
In one embodiment, response includes candidate communication server list, so that the internet of things equipment end is from the time Select second server described in communication server list.
In the embodiment, dispatch server is sent in the response of internet of things equipment, includes candidate communication server column Table.Each communication clothes of Internet of Things communication service can be provided for the internet of things equipment by describing in candidate communication server list The mark of business device, enables internet of things equipment to determine second server according to the candidate communication server list.
The advantages of embodiment, is that candidate communication server list enables internet of things equipment flexibly to determine the second clothes Business device.
In one embodiment, response includes the second server mark that dispatch server is specified.
In the embodiment, dispatch server is sent in the response of internet of things equipment, the specified comprising dispatch server Two server identifications enable internet of things equipment directly to be identified according to the second server and determine second server.
The advantages of embodiment, is that internet of things equipment can quickly determine second server.
In one embodiment, second server mark is response speed of the dispatch server according to candidate communication server Degree and the candidate communication server to the internet of things equipment distance at least one come it is specified.
In one embodiment, dispatch server determines the response speed of each candidate communication server, will wherein respond speed It spends most fast candidate communication server and is determined as second server, and the mark of the candidate communication server is determined as the second clothes The mark of business device.
For example, reading of the dispatch server by the performance parameter to each candidate communication server, determines that address is The response speed of the communication server of api1.company.com is 1.2s, and address is the communication service of api2.company.com The response speed of device is 0.5s, and the response speed for the communication server that address is api3.company.com is 0.9s.Then dispatch The communication server that address is api2.company.com is determined as second server by server, and by the communication server Mark is determined as second server mark.
The advantages of embodiment, is that the second server determined by this method can quickly respond Internet of Things Equipment.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
In one embodiment, dispatch server determines that each candidate communication server, will to the distance of the internet of things equipment It is determined as second server apart from nearest candidate communication server, and the mark of the candidate communication server is determined as second The mark of server.
For example, dispatch server is believed by transferring the positioning of the location information, each candidate communication server of internet of things equipment Breath, determines that the communication server that address is api1.company.com is 5km at a distance from internet of things equipment, address is The communication server of api2.company.com is 20km at a distance from internet of things equipment, and address is api3.company.com's The communication server is 50km at a distance from internet of things equipment.The then communication that address is api1.company.com by dispatch server Server is determined as second server, and the mark of the communication server is determined as second server mark.
The advantages of embodiment is, the second server determined by this method can more stably with Internet of Things Equipment establishes connection.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
In one embodiment, response speed is greater than predetermined speed threshold value by dispatch server and distance is less than preset distance The candidate communication server of threshold value is determined as second server, and the mark of the candidate communication server is determined as second service The mark of device.
For example, predetermined speed threshold value is 1.0s, predetermined distance threshold 40km.Dispatch server has determined that address is The response speed of the communication server of api1.company.com is 1.2s, at a distance from internet of things equipment is 5km, and address is The response speed of the communication server of api2.company.com is 0.5s, at a distance from internet of things equipment is 20km, and address is The response speed of the communication server of api3.company.com is 0.9s, at a distance from internet of things equipment is 50km.Then dispatch The communication server that address is api2.company.com is determined as second server by server, and by the communication server Mark is determined as second server mark.
The advantages of embodiment, is that the second server determined by this method can either be rung with enough speed Internet of things equipment is answered, it is also sufficiently stable.
In one embodiment, dispatch server is based on determining each candidate communication to response speed, apart from preset weight The highest candidate communication server of weight score is determined as second server by the weight score of server.
For example, being 1.5 to the preset weight of response speed, the 0.8 of preset weight is adjusted the distance.Predetermined speed threshold value is 1.0s, predetermined distance threshold 40km.Dispatch server has determined that address is the communication server of api1.company.com Response speed is 1.2s, at a distance from internet of things equipment is 5km, and address is the sound of the communication server of api2.company.com To answer speed be 0.5s, at a distance from internet of things equipment is 20km, and address is the sound of the communication server of api3.company.com To answer speed be 0.9s, at a distance from internet of things equipment is 50km.
Then address is the weight score of the communication server of api1.company.com are as follows: 1.5 × 1.0/1.2+0.8 × 40/5=7.65, the weight score for the communication server that address is api2.company.com be 1.5 × 1.0/0.5+0.8 × 40/20=4.6, the weight score for the communication server that address is api3.company.com be 1.5 × 1.0/0.9+0.8 × 40/50=2.31.Then the communication server that address is api1.company.com is determined as second server by dispatch server, And the mark of the communication server is determined as second server mark.
The advantages of embodiment, is that determining second server balances response speed and stabilization by this method Property, connection can be established with more balanced performance and internet of things equipment.
In one embodiment, second server mark is the dispatch server according to the IP of the internet of things equipment Location is specified from candidate communication server.
In the embodiment, if internet of things equipment scope of activities is very big, due to the communication server be it is relatively fixed, this just leads The communication server has been caused to response to which speed, the communication server and its distance in dynamic variation.In this case, according to The IP address of internet of things equipment specifies second server from candidate communication server: when internet of things equipment is to dispatch server Server assignment request is sent, when determining second server, dispatch server obtains the current IP address of internet of things equipment, will The communication server nearest apart from its current IP address is determined as second server, and the mark of the communication server is determined as Two server identifications.
The advantages of embodiment is, the internet of things equipment very big in face of scope of activities, the determined by this method Two servers are more targeted.
It should be noted that in the embodiment of the present disclosure, as long as dispatch server will distribute communication service for internet of things equipment Device, can by include candidate communication server list or the communication server mark response be sent to internet of things equipment, Internet of things equipment is enabled to determine the communication server for carrying out Internet of Things Network Communication based on response.It is clear that the communication server Do not limit to second server, first server, third server or any communication server can be by dispatch servers It being distributed accordingly, this process and above-mentioned dispatch server are that internet of things equipment distributes the process of second server similarly, Therefore details are not described herein.
In one embodiment, receive internet of things equipment detect communicated with the internet of things equipment first clothes Business device out-of-service and before the server assignment request that issues, further includes:
Receive the server assignment request issued when internet of things equipment booting;
Response is sent to the internet of things equipment, so that the internet of things equipment determines for carrying out Internet of Things Network Communication One server.
In the embodiment, when dispatch server receives the server assignment request issued when internet of things equipment booting, root According to the information for the candidate communication server that can provide Internet of Things communication service for the internet of things equipment, sent out to the internet of things equipment Response is sent, so that the internet of things equipment can determine the first service for carrying out Internet of Things Network Communication from candidate communication server Device.
In the embodiment of the present disclosure, first server, second server, third server etc. be relative to internet of things equipment and Speech, for dispatch server, first server, second server, third server can be equal regard as communicate Server.When dispatch server receives the server assignment request of internet of things equipment transmission, it may not be necessary to determine that Internet of Things is set Standby is to carry out Internet of Things Network Communication with first server or to carry out Internet of Things Network Communication with second server, can be by it What is regarded will carry out Internet of Things Network Communication with the communication server as internet of things equipment, and Internet of Things Netcom then can be provided for it for its distribution The communication server of telecommunications services.
The detailed process that server resource is obtained, distributed is briefly described referring initially to Fig. 6.
It is as shown in Figure 6: after device power-up/wake-up/networking, to use " the address specified services " of dispatch server.Obtain energy The address of enough communication servers that " conventional communication services " are provided, and then use " conventional communication services ".If the communication server is not Normal to reply, error count is cumulative, counts and reports an error when overflowing, reuses the address specified services of dispatch server ".
If in error count cumulative process and counting is not yet overflowed, " the general communication clothes of the communication server are continued to use Business ";If in error count cumulative process and counting the midway not yet overflowed, the communication server is normally replied, then by error count It resets, continues to use " conventional communication services " of the communication server.
Wherein, " address specified services " refer to dispatch server be the distribution communication server that provides of internet of things equipment this One service;" conventional communication services " refer to that the communication server is the Internet of Things communication service that internet of things equipment provides.
Below with reference to a concrete application scene, obtained with showing server resource in more detail, the detailed process of distribution.
In one embodiment, a company has launched 30 in the city A and has communicated containing GPRS network communication function and RFID near field The Intelligent storage cabinet of function, SN sequence number range are 190500001~190500030.The locker is through employee's brush RFID card It could open, and the authentication for permission of swiping the card is carried out by server.
In order to guarantee that locker is enable to respond quickly the operation of employee, the said firm through test, it is found that the city B computer room to these The network response speed of locker location is most fast.Therefore this is registered in No. 1 of the city B computer room and No. 2 servers The information such as the SN of 30 equipment and corresponding authentication functions.As backup, also registered on No. 3 servers of the city C computer room The information such as the SN of this 30 equipment and corresponding authentication functions.The function of above-mentioned No. 1, No. 2, No. 3 server is exactly " normal Communication service ".In addition, by the contrast relationship of above-mentioned 3 servers and 190500001~190500031 this 30 equipment, registration Onto No. 4 servers of the city C computer room, the function of No. 4 servers is exactly " address specified services ".
After the device power-up of Serial No. 190500001, it is connected to No. 4 servers first, that is, has used " the specified clothes in address Business ".It is as follows that it sends content:
{“SN”:“190500001”,“METHOD”:“ADDR”}。
And the response content of server is as follows:
{“SN”:“190500001”,“METHOD”:“ADDR”,“RESULT”:“api1.company.com, api2.company.com,api3.company.com”}。
Then, the equipment of Serial No. 190500001 is sent to the 1st recommended server api1.company.com Handshaking information, content citing:
{“SN”:“190500001”,“METHOD”:“HELLO”}。
The response of server is as follows:
{“SN”:“190500001”,“METHOD”:“HELLO”,“RESULT”:“OK”}。
When swipe the card record when, equipment sends following information to server:
{“SN”:“190500001”,“METHOD”:“AUTH”,“ID”:“00000000AA897F01”}。
If server receives, return:
{“SN”:“190500001”,“METHOD”:“AUTH”,“ID”:“00000000AA897F01”,“RESULT”: "ACCEPT"};
If server is refused, return:
{“SN”:“190500001”,“METHOD”:“AUTH”,“ID”:“00000000AA897F01”,“RESULT”: “REFUSE”}。
Aforesaid operations, referred to as " normal communication service ".
If the 1st server is working properly, equipment 190500001 can be always maintained at closes with the communication of the 1st server System.If the 1st server is no longer replied, equipment will attempt the 2nd server of connection " address specified services " return.If last time The Servers-all that " address specified services " return can not connect, then reuse " address specified services ", can with acquisition The address of the server of available " normal communication service " is provided.
In the embodiment, if the 1st server in course of normal operation, needs maintenance shut-downs, server (the 1st clothes Business device or dispatch server) address of new alternative server (the 2nd server) directly can be replied into equipment.
For example, response of shaking hands:
{“SN”:“190500001”,“METHOD”:“HELLO”,“RESULT”:“NG”,“EXT”: "api2.company.com"};
It swipes the card response:
{“SN”:“190500001”,“METHOD”:“AUTH”,“ID”:“00000000AA897F01”,“RESULT”: “NG”,“EXT”:“api2.company.com”}。
It when equipment receives the result of " NG ", and attached EXT field in the reply content of server, then use EXT word The value of section is attached.When all devices are switched to the 2nd server, No. 1 server enters idle state, can be normal Execute attended operation.
It should be noted that the embodiment is only exemplary explanation, should not function to the disclosure and range cause to limit System.
According to the embodiment of the present disclosure, as shown in figure 8, providing a kind of internet of things equipment 210, comprising:
Detection device 2101, for detecting described when internet of things equipment and first server carry out Internet of Things Network Communication First server out-of-service;
First transmitter 2102 is asked for sending server distribution to the dispatch server for carrying out server resource distribution It asks;
First receiver 2103, for receiving the response of the dispatch server, wherein first transmitter is also Internet of Things communication request is sent to the second server for continuing Internet of Things Network Communication determined from the response.
According to the embodiment of the present disclosure, as shown in figure 9, providing a kind of dispatch server 110, comprising:
Second receiver 1101 detects communicated with the internet of things equipment for receiving internet of things equipment One server service stops and the server assignment request of sending;
Second transmitter 1102 is used for sending response to the internet of things equipment so that the internet of things equipment determines In the second server for continuing Internet of Things Network Communication.
The server resource acquisition methods of the internet of things equipment of the embodiment of the present disclosure can internet of things equipment as shown in Figure 1 210 realize.Internet of things equipment 210 according to the embodiment of the present disclosure is described below with reference to Figure 10.The Internet of Things that Figure 10 is shown is set Standby 210 be only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in Figure 10, internet of things equipment 210 is showed in the form of universal computing device.The component of internet of things equipment 210 Can include but is not limited to: at least one above-mentioned processing unit 510, connects not homologous ray at least one above-mentioned storage unit 520 The bus 530 of component (including storage unit 520 and processing unit 510).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 510 Row, so that the processing unit 510 executes described in the description section of this specification above-mentioned example method according to the present invention The step of various illustrative embodiments.For example, the processing unit 510 can execute each step as shown in Figure 2.
Storage unit 520 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 5201 and/or cache memory unit 5202, it can further include read-only memory unit (ROM) 5203.
Storage unit 520 can also include program/utility with one group of (at least one) program module 5205 5204, such program module 5205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 530 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Internet of things equipment 210 can also be with one or more external equipments 600 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the internet of things equipment 210 communicate, and/or with make The internet of things equipment 210 can with it is one or more of the other calculating equipment be communicated any equipment (such as router, modulation Demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 550.Also, internet of things equipment 210 Network adapter 560 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public affairs can also be passed through Common network network, such as internet) communication.As shown, network adapter 560 passes through the other of bus 530 and internet of things equipment 210 Module communication.It should be understood that although not shown in the drawings, other hardware and/or software mould can be used in conjunction with internet of things equipment 210 Block, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape Driver and data backup storage system etc..
The server resource distribution method of the internet of things equipment of the embodiment of the present disclosure can dispatch server as shown in Figure 1 110 realize.Dispatch server 110 according to the embodiment of the present disclosure is described below with reference to Figure 11.The dispatch service that Figure 11 is shown Device 110 is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in figure 11, dispatch server 110 is showed in the form of universal computing device.The component of dispatch server 110 Can include but is not limited to: at least one above-mentioned processing unit 510 ', connects not homology at least one above-mentioned storage unit 520 ' The bus 530 ' of system component (including storage unit 520 ' and processing unit 510 ').
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 510 ' Row, so that the processing unit 510 ' executes described in the description section of this specification above-mentioned example method according to the present invention The step of various illustrative embodiments.For example, the processing unit 510 ' can execute each step as shown in Figure 6.
Storage unit 520 ' may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 5201 ' and/or cache memory unit 5202 ', it can further include read-only memory unit (ROM) 5203 '.
Storage unit 520 ' can also include program/utility with one group of (at least one) program module 5205 ' 5204 ', such program module 5205 ' includes but is not limited to: operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.
Bus 530 ' can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Dispatch server 110 can also (such as keyboard, sensing equipment, bluetooth be set with one or more external equipments 600 ' It is standby etc.) communication, the equipment interacted with the dispatch server 110 can be also enabled a user to one or more to be communicated, and/or with Enable the dispatch server 110 with it is one or more of the other calculating equipment communicated any equipment (such as router, adjust Modulator-demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 550 '.Also, dispatch server 110 can also by network adapter 560 ' and one or more network (such as local area network (LAN), wide area network (WAN) and/ Or public network, such as internet) communication.As shown, network adapter 560 ' passes through bus 530 ' and dispatch server 110 Other modules communication.It should be understood that although not shown in the drawings, can in conjunction with dispatch server 110 using other hardware and/or Software module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system System, tape drive and data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of computer program medium is additionally provided, computer is stored thereon with Readable instruction makes computer execute above-mentioned Internet of Things and sets when the computer-readable instruction is executed by the processor of computer In standby server resource acquisition methods embodiment or the server resource distribution method of above-mentioned internet of things equipment implements middle part Divide the method for description.
According to one embodiment of the disclosure, a kind of server resource for realizing above-mentioned internet of things equipment is additionally provided The program of method in acquisition methods embodiment or in the server resource distribution method embodiment of above-mentioned internet of things equipment produces Product, can be using portable compact disc read only memory (CD-ROM) and including program code, and can be in terminal device, example As run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing be can be It is any to include or the tangible medium of storage program, the program can be commanded execution system, device or device using or with It is used in combination.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RGM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-JGvG, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (KGN) or wide area network (WGN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment Method.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by appended Claim is pointed out.

Claims (13)

1. a kind of server resource acquisition methods of internet of things equipment, which is characterized in that the described method includes:
When internet of things equipment and first server carry out Internet of Things Network Communication, the first server out-of-service is detected;
Server assignment request is sent to the dispatch server for carrying out server resource distribution;
Based on the response of the dispatch server, the second server for continuing Internet of Things Network Communication is determined;
Internet of Things communication request is sent to determining second server.
2. the method according to claim 1, wherein the dispatch server and first server are same services Device.
3. the method according to claim 1, wherein the response of the dispatch server includes candidate communication service Device list,
The response based on the dispatch server determines the second server for continuing Internet of Things Network Communication, comprising:
Show candidate communication server list;
The candidate communication server that user is selected from the candidate communication server list, is determined as continuing Internet of Things The second server of communication.
4. the method according to claim 1, wherein carrying out Internet of Things Netcom in internet of things equipment and first server When letter, before detecting the first server out-of-service, the method also includes:
In internet of things equipment booting, according to the mark of the dispatch server built in the internet of things equipment, to the mark Know corresponding dispatch server and sends server assignment request;
Based on the response of the dispatch server, the first server for carrying out Internet of Things Network Communication is determined;
Internet of Things Network Communication is carried out with determining first server.
5. according to the method described in claim 3, it is characterized in that, determination is used in the response based on the dispatch server After the second server for continuing Internet of Things Network Communication, the method also includes: save the candidate communication server list;
After sending Internet of Things communication request to determining second server, the method also includes:
When internet of things equipment and second server carry out Internet of Things Network Communication, the second server out-of-service is detected;
The candidate communication server list saved is shown, for selection by the user for continuing the third server of Internet of Things Network Communication.
6. according to the method described in claim 3, it is characterized in that, the response of the dispatch server also includes candidate scheduling clothes Business device list,
In the response based on the dispatch server, after determining the second server for continuing Internet of Things Network Communication, the side Method further include: save the candidate dispatch server list;
After sending Internet of Things communication request to determining second server, the method also includes:
When internet of things equipment and second server carry out Internet of Things Network Communication, the second server out-of-service is detected;
Show the candidate dispatch server list saved, dispatch server is for selection by the user to send server assignment request.
7. a kind of server resource distribution method of dispatch server, which is characterized in that the described method includes:
Internet of things equipment is received to detect the first server out-of-service communicated with the internet of things equipment and issue Server assignment request;
Response is sent to the internet of things equipment, the second clothes for continuing Internet of Things Network Communication are determined so as to the internet of things equipment Business device.
8. the method according to the description of claim 7 is characterized in that second server mark is the dispatch server root According to candidate communication server response speed and the candidate communication server to the internet-of-things terminal distance at least One specifies.
9. the method according to the description of claim 7 is characterized in that second server mark is the dispatch server root According to the IP address of the internet of things equipment, specified from candidate communication server.
10. a kind of internet of things equipment, which is characterized in that the internet of things equipment includes:
Detection device, for detecting the first service when internet of things equipment and first server carry out Internet of Things Network Communication Device out-of-service;
First transmitter, for sending server assignment request to the dispatch server for carrying out server resource distribution;
First receiver, for receiving the response of the dispatch server,
Wherein, first transmitter is also to the second server hair for continuing Internet of Things Network Communication determined from the response Send Internet of Things communication request.
11. a kind of dispatch server, which is characterized in that the dispatch server includes:
Second receiver detects the first server communicated with the internet of things equipment for receiving internet of things equipment Out-of-service and the server assignment request issued;
Second transmitter, for sending response to the internet of things equipment, so that the internet of things equipment is determined for continuing object The second server of connected network communication.
12. a kind of computer-readable medium, is stored thereon with computer executable instructions, when the computer executable instructions quilt When the processor of computer executes, so that computer executes the server resource acquisition methods of internet of things equipment, the method packet It includes:
When internet of things equipment and first server carry out Internet of Things Network Communication, the first server out-of-service is detected;
Server assignment request is sent to the dispatch server for carrying out server resource distribution;
Based on the response of the dispatch server, the second server for continuing Internet of Things Network Communication is determined;
Internet of Things communication request is sent to determining second server.
13. a kind of computer-readable medium, is stored thereon with computer executable instructions, when the computer executable instructions quilt When the processor of computer executes, so that computer executes the server resource acquisition methods of internet of things equipment, the method packet It includes:
Internet of things equipment is received to detect the first server out-of-service communicated with the internet of things equipment and issue Server assignment request;
Response is sent to the internet of things equipment, the second clothes for continuing Internet of Things Network Communication are determined so as to the internet of things equipment Business device.
CN201910477945.5A 2019-06-03 2019-06-03 The server resource acquisition methods and relevant device of internet of things equipment Pending CN110300071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910477945.5A CN110300071A (en) 2019-06-03 2019-06-03 The server resource acquisition methods and relevant device of internet of things equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910477945.5A CN110300071A (en) 2019-06-03 2019-06-03 The server resource acquisition methods and relevant device of internet of things equipment

Publications (1)

Publication Number Publication Date
CN110300071A true CN110300071A (en) 2019-10-01

Family

ID=68027426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910477945.5A Pending CN110300071A (en) 2019-06-03 2019-06-03 The server resource acquisition methods and relevant device of internet of things equipment

Country Status (1)

Country Link
CN (1) CN110300071A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111263470A (en) * 2020-03-04 2020-06-09 郑州智利信信息技术有限公司 Mobile terminal network connection method
CN111552570A (en) * 2020-04-29 2020-08-18 章稳建 Self-adaptive distribution method of data processing resources of Internet of things and cloud computing server

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945085A (en) * 2009-07-07 2011-01-12 中兴通讯股份有限公司 Detection method and device of soft-switch server based on session initial protocol
CN102075380A (en) * 2010-12-16 2011-05-25 中兴通讯股份有限公司 Method and device for detecting server state
CN102960029A (en) * 2011-06-21 2013-03-06 华为技术有限公司 Method, device, user equipment and system for repeated access detection and restriction
CN103067206A (en) * 2012-12-28 2013-04-24 无锡博欧节能科技有限公司 Internet of things across-machine room distributed type full automatic hot standby server switching system
CN103813368A (en) * 2012-11-12 2014-05-21 中国移动通信集团公司 Method, device and system for monitoring network running states
CN105050118A (en) * 2015-07-31 2015-11-11 腾讯科技(深圳)有限公司 Wi-Fi hotspot connecting method and device
CN105207840A (en) * 2015-08-18 2015-12-30 上海斐讯数据通信技术有限公司 Network terminal user offline frequency detection system and method
CN105306288A (en) * 2014-06-27 2016-02-03 中兴通讯股份有限公司 WebSocket server monitoring method and device
CN106101171A (en) * 2016-05-24 2016-11-09 中国联合网络通信集团有限公司 Server method of attachment and device
CN106411585A (en) * 2016-09-21 2017-02-15 深圳市智物联网络有限公司 Server switching method, adapter, server and scheduling device
CN108063790A (en) * 2017-10-31 2018-05-22 北京康得新创科技股份有限公司 Server switching method and device, communication system, terminal device
CN108306763A (en) * 2018-01-05 2018-07-20 广东美的暖通设备有限公司 Household appliance and its network connection processing method, computer readable storage medium
CN109245974A (en) * 2018-11-30 2019-01-18 广东美的制冷设备有限公司 Household electrical appliance distribution method, apparatus and computer readable storage medium
CN109660593A (en) * 2018-11-05 2019-04-19 深圳绿米联创科技有限公司 Platform of internet of things access management method, apparatus and system

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101945085A (en) * 2009-07-07 2011-01-12 中兴通讯股份有限公司 Detection method and device of soft-switch server based on session initial protocol
CN102075380A (en) * 2010-12-16 2011-05-25 中兴通讯股份有限公司 Method and device for detecting server state
CN102960029A (en) * 2011-06-21 2013-03-06 华为技术有限公司 Method, device, user equipment and system for repeated access detection and restriction
CN103813368A (en) * 2012-11-12 2014-05-21 中国移动通信集团公司 Method, device and system for monitoring network running states
CN103067206A (en) * 2012-12-28 2013-04-24 无锡博欧节能科技有限公司 Internet of things across-machine room distributed type full automatic hot standby server switching system
CN105306288A (en) * 2014-06-27 2016-02-03 中兴通讯股份有限公司 WebSocket server monitoring method and device
CN105050118A (en) * 2015-07-31 2015-11-11 腾讯科技(深圳)有限公司 Wi-Fi hotspot connecting method and device
CN105207840A (en) * 2015-08-18 2015-12-30 上海斐讯数据通信技术有限公司 Network terminal user offline frequency detection system and method
CN106101171A (en) * 2016-05-24 2016-11-09 中国联合网络通信集团有限公司 Server method of attachment and device
CN106411585A (en) * 2016-09-21 2017-02-15 深圳市智物联网络有限公司 Server switching method, adapter, server and scheduling device
CN108063790A (en) * 2017-10-31 2018-05-22 北京康得新创科技股份有限公司 Server switching method and device, communication system, terminal device
CN108306763A (en) * 2018-01-05 2018-07-20 广东美的暖通设备有限公司 Household appliance and its network connection processing method, computer readable storage medium
CN109660593A (en) * 2018-11-05 2019-04-19 深圳绿米联创科技有限公司 Platform of internet of things access management method, apparatus and system
CN109245974A (en) * 2018-11-30 2019-01-18 广东美的制冷设备有限公司 Household electrical appliance distribution method, apparatus and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111263470A (en) * 2020-03-04 2020-06-09 郑州智利信信息技术有限公司 Mobile terminal network connection method
CN111552570A (en) * 2020-04-29 2020-08-18 章稳建 Self-adaptive distribution method of data processing resources of Internet of things and cloud computing server
CN111552570B (en) * 2020-04-29 2020-11-10 重庆浙大网新科技有限公司 Self-adaptive distribution method of data processing resources of Internet of things and cloud computing server

Similar Documents

Publication Publication Date Title
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
WO2020103360A1 (en) Device network configuration method and apparatus, and household appliance and server
US9229762B2 (en) Host providing system and host providing method
NO20083952L (en) Communication system and method of communication in this, and core network node having switching function in the communication system
CN107920138A (en) A kind of user's unifying identifier generation method, apparatus and system
US8606908B2 (en) Wake-up server
CN109379742A (en) A kind of cut-in method of WLAN, device and storage medium
CN110300071A (en) The server resource acquisition methods and relevant device of internet of things equipment
CN108600399A (en) Information-pushing method and Related product
CN111858050B (en) Server cluster hybrid deployment method, cluster management node and related system
CN106603594A (en) Distributed service management method and system
CN106993286A (en) Radio reception device accesses high in the clouds AC method and system in a kind of wireless network
CN109788325A (en) Video task distribution method and server
CN112087401A (en) Method and device for realizing service quality in distributed storage
CN105071965A (en) Management system of network equipment
CN103812788B (en) Method, apparatus and system that control user accesses
CN103248654A (en) Negotiation method, device and system for virtual desktop service parameters
CN110235155A (en) Take out the control method and device of shared vehicle
CN107113615A (en) A kind of authentication method, system and relevant device to access point AP
CN106469091B (en) For distributing the method and apparatus of available area
CN104253702B (en) A kind of terminal management method and system
CN106330492B (en) A kind of method, apparatus and system configuring user equipment forwarding table
US20130260804A1 (en) Apparatus and method for wireless network connection
US20080082664A1 (en) Resource selection
CN108289086A (en) Request processing method and device, server

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191001