CN105704208B - Serving starting method and device - Google Patents

Serving starting method and device Download PDF

Info

Publication number
CN105704208B
CN105704208B CN201511031039.0A CN201511031039A CN105704208B CN 105704208 B CN105704208 B CN 105704208B CN 201511031039 A CN201511031039 A CN 201511031039A CN 105704208 B CN105704208 B CN 105704208B
Authority
CN
China
Prior art keywords
service
data
packets
requests
client
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201511031039.0A
Other languages
Chinese (zh)
Other versions
CN105704208A (en
Inventor
李政
陈勇
陈维扬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201511031039.0A priority Critical patent/CN105704208B/en
Publication of CN105704208A publication Critical patent/CN105704208A/en
Application granted granted Critical
Publication of CN105704208B publication Critical patent/CN105704208B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets

Abstract

The disclosure is directed to serving starting method and devices, start service item according to demand to realize, to reduce occupying system resources.The described method includes: monitoring and receiving the requests of packets of data of client transmission;The service of the client request is determined according to the requests of packets of data;When the service of the client request is destination service, start the destination service;Wherein, the destination service is the service that default does not start.The requests of packets of data that disclosed technique scheme is sent by monitoring and receiving client determines that the service of client request starts the destination service when service of client request is the destination service that default does not start according to requests of packets of data.Start service item according to demand to realize, unwanted service item operation is reduced, to reduce occupying system resources.

Description

Serving starting method and device
Technical field
The present invention relates to the communications field more particularly to a kind of serving starting methods and device.
Background technique
With the continuous development of computer technology, service providing device can provide media service to terminal device, Service providing device may run the service item that terminal device is not supported, if service providing device operation terminal device is not The service item of support, can occupying system resources.
Summary of the invention
The embodiment of the present invention provides a kind of serving starting method and device.
The embodiment of the present invention adopts the following technical scheme that
According to the first aspect of the embodiments of the present disclosure, a kind of serving starting method is provided, comprising:
Monitor and receive the requests of packets of data of client transmission;
The service of the client request is determined according to the requests of packets of data;
When the service of the client request is destination service, start the destination service;Wherein, the destination service is Default the service not started.
The technical scheme provided by this disclosed embodiment can include the following benefits: by monitoring and receiving client The requests of packets of data of transmission determines the service of client request, the service of client request according to requests of packets of data When to default the destination service not started, start the destination service.Start service item according to demand to realize, reduces not The service item operation needed, to reduce occupying system resources.
In one embodiment, the service that the client request is determined according to the requests of packets of data, packet It includes:
Parse the format of the requests of packets of data;
According to the format of the requests of packets of data, the protocol type of the client request is determined;
The service of the client request is determined according to the protocol type.
The technical scheme provided by this disclosed embodiment can include the following benefits: according to the format of data packet, really The protocol type of client request is determined to obtain the service of client end request, so as to accurately obtain the clothes of client request Business provides the service of request faster for client.
In one embodiment, the requests of packets of data monitoring client and sending, comprising:
It detects the client and passes through the requests of packets of data that Simple Service Discovery Protocol SSDP agreement is sent.
The technical scheme provided by this disclosed embodiment can include the following benefits: detection client is assisted by SSDP The requests of packets of data sent is discussed, is easy to implement and monitors the requests of packets of data that client is sent.
In one embodiment, the destination request comprises at least one of the following: Digital Life Network Alliance DLNA request With request of televising.
In one embodiment, the requests of packets of data monitored and receive client transmission, comprising:
Determine that the destination service corresponds to the port of preset monitored;
The requests of packets of data is received by the port;
The service of the client request is determined according to the requests of packets of data, comprising:
According to the port for receiving the requests of packets of data, the service of the client request is determined.
The technical scheme provided by this disclosed embodiment can include the following benefits: by the port of preset monitored with It obtains the service of client end request, so as to accurately obtain the service of client request, provides ask for client faster The service asked.
In one embodiment, the port includes: the port of information service block SAMBA;The service includes that SAMBA takes Business.
In one embodiment, after the starting destination service further include:
The destination service is provided to the client.
According to the second aspect of an embodiment of the present disclosure, a kind of service starter is provided, comprising:
Module is monitored, for monitoring and receiving the requests of packets of data of client transmission;
Determining module, for determining the service of the client request according to the requests of packets of data;
Starting module, for the service in the client request be destination service when, start the destination service;Its In, the destination service is the service that default does not start.
The technical scheme provided by this disclosed embodiment can include the following benefits: by monitoring and receiving client The requests of packets of data of transmission determines the service of client request, the service of client request according to requests of packets of data When to default the destination service not started, start the destination service.Start service item according to demand to realize, reduces not The service item operation needed, to reduce occupying system resources.
In one embodiment, the determining module includes:
Analyzing sub-module, for parsing the format of the requests of packets of data;
First determines that submodule determines the client request for the format according to the requests of packets of data Protocol type;
Second determines submodule, for determining the service of the client request according to the protocol type.
In one embodiment, monitoring module includes:
First monitors submodule, passes through the institute that Simple Service Discovery Protocol SSDP agreement is sent for detecting the client State requests of packets of data.
The technical scheme provided by this disclosed embodiment can include the following benefits: according to the format of data packet, really The protocol type of client request is determined to obtain the service of client end request, so as to accurately obtain the clothes of client request Business provides the service of request faster for client.
In one embodiment, the destination request comprises at least one of the following: Digital Life Network Alliance DLNA request With request of televising.
In one embodiment, the monitoring module includes:
Third determines submodule, for determining that the destination service corresponds to the port of preset monitored;
Receiving submodule, for receiving the requests of packets of data by the port;
The determining module includes:
4th determines submodule, for determining that the client is asked according to the port for receiving the requests of packets of data The service asked.
In one embodiment, the port includes: the port of information service block SAMBA;The service includes that SAMBA takes Business.
The technical scheme provided by this disclosed embodiment can include the following benefits: by the port of preset monitored with It obtains the service of client end request, so as to accurately obtain the service of client request, provides ask for client faster The service asked.
In one embodiment, further includes:
Service module, for providing the destination service to the client.
According to the third aspect of an embodiment of the present disclosure, a kind of service starter is provided, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Monitor and receive the requests of packets of data of client transmission;
The service of the client request is determined according to the requests of packets of data;
When the service of the client request is destination service, start the destination service;Wherein, the destination service is Default the service not started.
The technical scheme provided by this disclosed embodiment can include the following benefits:
By monitoring and receiving the requests of packets of data of client transmission, client is determined according to requests of packets of data The service of request starts the destination service when service of client request is the destination service that default does not start.To realize Start service item according to demand, unwanted service item operation is reduced, to reduce occupying system resources.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is one of the flow chart according to the service starting shown in an exemplary embodiment 1.
Fig. 2 is the two of the flow chart started according to the service shown in an exemplary embodiment 1.
Fig. 3 is the three of the flow chart started according to the service shown in an exemplary embodiment 1.
Fig. 4 is the four of the flow chart started according to the service shown in an exemplary embodiment 1.
Fig. 5 is the flow chart according to the service starting shown in an exemplary embodiment 2.
Fig. 6 is the flow chart according to the service starting shown in an exemplary embodiment 3.
Fig. 7 is one of the block diagram according to the service starter shown in an exemplary embodiment 4.
Fig. 8 is two according to the block diagram of the service starter shown in an exemplary embodiment 4.
Fig. 9 is three according to the block diagram of the service starter shown in an exemplary embodiment 4.
Figure 10 is four according to the block diagram of the service starter shown in an exemplary embodiment 4.
Figure 11 is four according to the block diagram of the service starter shown in an exemplary embodiment 4.
Figure 12 is according to one of the block diagram for being suitable for servicing starter shown in an exemplary embodiment 5.
Figure 13 is two according to the block diagram for being suitable for servicing starter shown in an exemplary embodiment 5.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended The example of device and method being described in detail in claims, some aspects of the invention are consistent.
With the continuous development of computer technology, service providing device can provide media service to terminal device, Service providing device may run the service item that terminal device is not supported, if service providing device operation terminal device is not The service item of support, meeting occupying system resources, causes the necessary wasting of resources, influences user experience.Embodiment of the present disclosure root According to the service request of terminal device, start related service automatically, utmostly saves system resource and occupy, preferably used with obtaining Family experience.
Embodiment 1
Fig. 1 is a kind of flow chart of serving starting method shown according to an exemplary embodiment, as shown in Figure 1, the party Method is used to provide in the equipment such as router, server of service or in application program, includes the following steps S11-S13:
In step s 11, monitor and receive the requests of packets of data of client transmission.
Wherein, client can be the equipment such as mobile phone, computer.
In one embodiment, requests of packets of data can come from particular port, can be used for requesting specifically taking Business.
In step s 12, the service of client request is determined according to requests of packets of data.
In one embodiment, the service that client request can be determined according to the format of requests of packets of data, can also The service that information determines client request is carried with requests of packets of data.
In step s 13, when the service of client request is destination service, start destination service;Wherein, destination service is Default the service not started.
Wherein, destination service can be preset service.
In the present embodiment, in the non-targeted service of the service of client request, the service request number of release client transmission According to packet, subsequent processing is terminated;When the service of client request is destination service, client is sent after starting destination service Requests of packets of data be sent to destination service.
The above method of the embodiment of the present disclosure, by monitoring and receiving the requests of packets of data of client transmission, according to Requests of packets of data determines the service of client request, when the service of client request is the destination service that default does not start, Start destination service.Start service item according to demand to realize, reduces unwanted service item operation, occupied with reducing System resource.
In one embodiment, as shown in Fig. 2, above-mentioned steps S12 includes:
The format of S121, analysis service request data package.
For example, the format of analysis service request data package are as follows:
M-SEARCH*HTTP/1.1
HOST:239.255.255.250:1900
MAN:"ssdp:discover"
MX:5
ST:ssdp:all
S122, the format according to requests of packets of data, determine the protocol type of client request.
For example, being determined as SSDP agreement according to data packet format, so that the service of client request is obtained, if there is SSDP When service, reply are as follows:
HTTP/1.1 200OK
CACHE-CONTROL:max-age=100
DATE:
EXT:
LOCATION:http://miwifi.com/third-party/service1/
SERVER:OS/Version UPNP/1.0product/version
ST:urn:schemas-upnp-org:device:Server:1
USN:UUID1
S123, the service that client request is determined according to protocol type.
For example, if protocol type is DLNA (Digital Living Network Alliance, digital living network Alliance) agreement, determine that client request DLNA is serviced.
The above method of the embodiment of the present disclosure determines client request by the format of analysis service request data package Protocol type, so that protocol type of the subsequent step according to client request, provides destination service to realize to client.
In one embodiment, above-mentioned steps S11 includes:
It detects client and passes through SSDP (Simple Service Discovery Protocol, simple services discovery association View) agreement send requests of packets of data.
In one embodiment, destination request comprises at least one of the following: Digital Life Network Alliance DLNA request and electricity Depending on playing request.
In one embodiment, as shown in figure 3, above-mentioned steps S11 includes:
S111, determine that destination service corresponds to the port of preset monitored.
S112, requests of packets of data is received by port.
In one embodiment, above-mentioned steps S12 includes:
According to the port for receiving requests of packets of data, the service of client request is determined.
In one embodiment, port includes: the end of SAMBA (Server Messages Block, information service block) Mouthful;Service includes that SAMBA is serviced.
In one embodiment, as shown in figure 4, after above-mentioned steps S13 further include:
S14, destination service is provided to client.
In one embodiment, the association obtained according to requests of packets of data can be sent to the module for providing destination service View packet provides destination service from the module of offer destination service to client.
For example, destination service (the example after obtaining client request destination service, after protocol package can be transmitted to starting Such as, DLNA service, broadcasting service of televising, SAMBA service), destination service sends data packet to client and realizes to client End provides corresponding service.
The above method of the embodiment of the present disclosure, by monitoring and receiving the requests of packets of data of client transmission, according to Requests of packets of data determines the service of client request, when the service of client request is the destination service that default does not start, Start destination service.Start service item according to demand to realize, reduces unwanted service item operation, occupied with reducing System resource.
Embodiment 2
The above method provided using the embodiment of the present disclosure, the present embodiment provides a kind of specific application scenarios to carry out in detail It introduces, the scene of the present embodiment is that the above method application router that the embodiment of the present disclosure provides, router is by monitoring client The requests of packets of data sent is held, determines the service of client request.
As shown in figure 5, the serving starting method of the present embodiment includes:
The requests of packets of data that client is sent by SSDP agreement is monitored and received to S51, router.
The format of S52, router analysis service request data package.
For example, the format of router analysis service request data package are as follows:
M-SEARCH*HTTP/1.1
HOST:239.255.255.250:1900
MAN:"ssdp:discover"
MX:5
ST:ssdp:all
S53, router obtain the protocol type of client request according to the format of requests of packets of data.
For example, subsequent processing is carried out when the protocol type obtained is the agreement that DLNA agreement is either televised, it is no Person ignores corresponding data packet.
S54, router obtain the service of client request according to the protocol type of client request.
For example, showing that client request DLNA is serviced when protocol type is DLNA agreement;For another example protocol type is yes When the agreement televised, the client request service of televising is obtained.
For example, router is determined as SSDP agreement according to data packet format, thus obtain the service of client request, if When having SSDP service, reply are as follows:
HTTP/1.1 200OK
CACHE-CONTROL:max-age=100
DATE:
EXT:
LOCATION:http://miwifi.com/third-party/service1/
SERVER:OS/Version UPNP/1.0product/version
ST:urn:schemas-upnp-org:device:Server:1
USN:UUID1
S55, router start the destination service when the service of client request is destination service.
Wherein, destination service is defaulted as not starting on router, and destination service can be according to pre-seting determination.
For example, destination service can be prestored, show whether the service of client request is mesh according to the destination service prestored Mark service.
For example, destination service may include DLNA service, the service of televising etc..
In the present embodiment, router is in the non-targeted service of service of client request, service that release client is sent Request data package terminates subsequent processing.
The protocol package for belonging to destination service is sent to destination service and provides module by S56, router, and destination service provides mould Block provides destination service to client.
For example, router is when the service of client request is destination service, after starting destination service, router can be with Protocol package is transmitted to the destination service after starting (for example, DLNA or broadcasting service of televising), destination service is to client End sends data packet and realizes to the corresponding service of client offer.
The above method of the embodiment of the present disclosure, router are monitored and receive the requests of packets of data of client transmission, root The protocol type that client request is obtained according to the format of requests of packets of data obtains visitor according to the protocol type of client request The service of family end request starts the destination service when service of client request is the destination service that default does not start.To real Now start service item according to demand, unwanted service item operation is reduced, to reduce occupying system resources.
Embodiment 3
The above method provided using the embodiment of the present disclosure, the present embodiment provides a kind of specific application scenarios to carry out in detail It introduces, the scene of the present embodiment is that the above method application router that the embodiment of the present disclosure provides, router is by monitoring client The port for holding the requests of packets of data sent, determines the service of client request.
As shown in fig. 6, the serving starting method of the present embodiment includes:
S61, router are monitored by particular port and receive the requests of packets of data of client transmission.
For example, the particular port can be the port of SAMBA.
S62, router analysis service request data package, obtain the agreement of requests of packets of data.
S63, router obtain the service of client request according to the agreement of requests of packets of data.
For example, requests of packets of data is SAMBA agreement, show that client request SAMBA is serviced.
S64, router start the destination service when the service of client request is destination service.
Wherein, destination service is defaulted as not starting on router, and destination service can be according to pre-seting determination.
For example, destination service can be prestored, show whether the service of client request is mesh according to the destination service prestored Mark service.
In the present embodiment, router is in the non-targeted service of service of client request, service that release client is sent Request data package terminates subsequent processing.
The protocol package for belonging to destination service is sent to destination service and provides module by S65, router, and destination service provides mould Block provides destination service to client.
For example, router the service for determining client request be destination service when, start destination service after, router Destination service (for example, SAMBA is serviced) after protocol package can be transmitted to starting, destination service sends data packet to client It realizes to client and corresponding service is provided.
The above method of the embodiment of the present disclosure, router are monitored by particular port and receive the service that client is sent and asked Data packet is sought, the protocol type of client request is obtained according to the format of requests of packets of data, according to the association of client request View type show that the service of client request starts the mesh when service of client request is the destination service that default does not start Mark service.Start service item according to demand to realize, reduce unwanted service item operation, to reduce occupancy system money Source.
Embodiment 4
Fig. 7 is a kind of service starter shown according to an exemplary embodiment, comprising:
Module 71 is monitored, for monitoring and receiving the requests of packets of data of client transmission;
Determining module 72, for determining the service of client request according to requests of packets of data;
Starting module 73, for the service in client request be destination service when, start destination service;Wherein, target The service that service does not start for default.
In one embodiment, as shown in figure 8, determining module 72 includes:
Analyzing sub-module 721, the format for analysis service request data package;
First determines that submodule 722 determines the protocol class of client request for the format according to requests of packets of data Type;
Second determines submodule 723, for determining the service of client request according to protocol type.
In one embodiment, as shown in figure 9, monitoring module 71 includes:
First monitors submodule 711, passes through the clothes that Simple Service Discovery Protocol SSDP agreement is sent for detecting client Business request data package.
In one embodiment, destination request comprises at least one of the following: Digital Life Network Alliance DLNA request and electricity Depending on playing request.
In one embodiment, as shown in figure 9, monitoring module 71 includes:
Third determines submodule 712, for determining that destination service corresponds to the port of preset monitored;
Receiving submodule 713, for receiving requests of packets of data by port;
As shown in Figure 10, above-mentioned determining module 72 includes:
4th determines submodule 724, for determining the clothes of client request according to the port for receiving requests of packets of data Business.
In one embodiment, port includes: the port of information service block SAMBA;Service includes that SAMBA is serviced.
In one embodiment, as shown in figure 11, above-mentioned apparatus further include:
Service module 74, for providing destination service to client.
The device of the present embodiment, wherein modules execute the concrete mode of operation in the embodiment in relation to this method In be described in detail, no detailed explanation will be given here.
The above-mentioned apparatus of the embodiment of the present disclosure, by monitoring and receiving the requests of packets of data of client transmission, according to Requests of packets of data determines the service of client request, when the service of client request is the destination service that default does not start, Start destination service.Start service item according to demand to realize, reduces unwanted service item operation, occupied with reducing System resource.
Embodiment 5
Figure 12 is a kind of block diagram for servicing starter 1200 shown according to an exemplary embodiment, which is suitable for Service providing device.For example, device 1200 can be router, computer, digital broadcasting terminal, messaging device, game Console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig.1 2, device 1200 may include following one or more components: processing component 1202, memory 1204, Power supply module 1206, multimedia component 1208, audio component 1210, the interface 1212 of input/output (I/O), sensor module 1214 and communication component 1216.
The integrated operation of the usual control device 1200 of processing component 1202, such as with display, telephone call, data communication, Camera operation and record operate associated operation.Processing component 1202 may include one or more processors 1220 to execute Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1202 may include one or more moulds Block, convenient for the interaction between processing component 1202 and other assemblies.For example, processing component 1202 may include multi-media module, To facilitate the interaction between multimedia component 1208 and processing component 1202.
Memory 1204 is configured as storing various types of data to support the operation in equipment 1200.These data Example includes the instruction of any application or method for operating on device 1200, contact data, telephone book data, Message, picture, video etc..Memory 1204 can by any kind of volatibility or non-volatile memory device or they Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory Reservoir, disk or CD.
Electric power assembly 1206 provides electric power for the various assemblies of device 1200.Electric power assembly 1206 may include power management System, one or more power supplys and other with for device 1200 generate, manage, and distribute the associated component of electric power.
Multimedia component 1208 includes the screen of one output interface of offer between device 1200 and user.Some In embodiment, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen It may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensors To sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, But also detection duration and pressure relevant to touch or slide.In some embodiments, multimedia component 1208 Including a front camera and/or rear camera.When equipment 1200 is in operation mode, such as screening-mode or video mode When, front camera and/or rear camera can receive external multi-medium data.Each front camera and postposition camera shooting Head can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1210 is configured as output and/or input audio signal.For example, audio component 1210 includes a wheat Gram wind (MIC), when device 1200 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt It is configured to receive external audio signal.The received audio signal can be further stored in memory 1204 or via communication Component 1216 is sent.In some embodiments, audio component 1210 further includes a loudspeaker, is used for output audio signal.
I/O interface 1212 provides interface, above-mentioned peripheral interface module between processing component 1202 and peripheral interface module It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and Locking press button.
Sensor module 1214 includes one or more sensors, and the state for providing various aspects for device 1200 is commented Estimate.For example, sensor module 1214 can detecte the state that opens/closes of equipment 1200, the relative positioning of component, such as group Part is the display and keypad of device 1200, and sensor module 1214 can be with 1,200 1 groups of detection device 1200 or device The position change of part, the existence or non-existence that user contacts with device 1200,1200 orientation of device or acceleration/deceleration and device 1200 temperature change.Sensor module 1214 may include proximity sensor, be configured to connect in not any physics It is detected the presence of nearby objects when touching.Sensor module 1214 can also include optical sensor, as CMOS or ccd image are sensed Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1216 is configured to facilitate the communication of wired or wireless way between device 1200 and other equipment.Dress The wireless network based on communication standard, such as WiFi can be accessed by setting 1200,2G or 3G or their combination.It is exemplary at one In embodiment, communication component 1216 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel Information.In one exemplary embodiment, communication component 1216 further includes near-field communication (NFC) module, to promote short range communication. For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) skill can be based in NFC module Art, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1200 can be by one or more application specific integrated circuit (ASIC), number Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 1204 of instruction, above-metioned instruction can be executed by the processor 820 of device 1200 to complete the above method.Example Such as, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and Optical data storage devices etc..
The present embodiment provides a kind of service starters, comprising:
Processor;
Memory for storage processor executable instruction;
Wherein, processor is configured as:
Monitor and receive the requests of packets of data of client transmission;
The service of client request is determined according to requests of packets of data;
When the service of client request is destination service, start destination service;Wherein, destination service default does not start Service.
The service of client request is determined according to requests of packets of data, comprising:
The format of analysis service request data package;
According to the format of requests of packets of data, the protocol type of client request is determined;
The service of client request is determined according to protocol type.
Monitor the requests of packets of data that client is sent, comprising:
It detects client and passes through the requests of packets of data that Simple Service Discovery Protocol SSDP agreement is sent.
Destination request comprises at least one of the following: Digital Life Network Alliance DLNA request and request of televising.
Monitor and receive the requests of packets of data of client transmission, comprising:
Determine that destination service corresponds to the port of preset monitored;
Requests of packets of data is received by port;
The service of client request is determined according to requests of packets of data, comprising:
According to the port for receiving requests of packets of data, the service of client request is determined.
Port includes: the port of information service block SAMBA;Service includes that SAMBA is serviced.
After starting destination service further include:
Destination service is provided to client.
The present embodiment provides a kind of non-transitorycomputer readable storage mediums, when the instruction in the storage medium is by taking When the processor that business provides equipment (such as router) executes, so that service providing device is able to carry out a kind of serving starting method, The described method includes:
Monitor and receive the requests of packets of data of client transmission;
The service of client request is determined according to requests of packets of data;
When the service of client request is destination service, start destination service;Wherein, destination service default does not start Service.
Instruction in the storage medium can also include:
The format of analysis service request data package;
According to the format of requests of packets of data, the protocol type of client request is determined;
The service of client request is determined according to protocol type.
Instruction in the storage medium can also include:
It detects client and passes through the requests of packets of data that Simple Service Discovery Protocol SSDP agreement is sent.
Destination request comprises at least one of the following: Digital Life Network Alliance DLNA request and request of televising.
Instruction in the storage medium can also include:
Determine that destination service corresponds to the port of preset monitored;
Requests of packets of data is received by port;
Instruction in the storage medium can also include:
According to the port for receiving requests of packets of data, the service of client request is determined.
Port includes: the port of information service block SAMBA;Service includes that SAMBA is serviced.
After starting destination service further include:
Figure 13 is shown according to an exemplary embodiment a kind of for servicing the block diagram of starter 1800.For example, dress Setting 1800 may be provided as a computer.Referring to Fig.1 3, it further comprises one that device 1800, which includes processing component 1822, Or multiple processors, and the memory resource as representated by memory 1832, it can holding by processing component 1822 for storing Capable instruction, such as application program.The application program stored in memory 1832 may include one or more each A module for corresponding to one group of instruction.In addition, processing component 1822 is configured as executing instruction, to execute above method selection figure Piece.
Device 1800 can also include that a power supply module 1826 be configured as the power management of executive device 1800, and one Wired or wireless network interface 1850 is configured as device 1800 being connected to network and input and output (I/O) interface 1858.Device 1800 can be operated based on the operating system for being stored in memory 1832, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
The above-mentioned apparatus of the embodiment of the present disclosure, by monitoring and receiving the requests of packets of data of client transmission, according to Requests of packets of data determines the service of client request, when the service of client request is the destination service that default does not start, Start destination service.Start service item according to demand to realize, reduces unwanted service item operation, occupied with reducing System resource.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein 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 following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (14)

1. a kind of serving starting method characterized by comprising
Monitor and receive the requests of packets of data of client transmission;
The service of the client request is determined according to the requests of packets of data;
When the service of the client request is destination service, start the destination service;Wherein, the destination service is default The service not started;
The service that the client request is determined according to the requests of packets of data, comprising:
Parse the format of the requests of packets of data;
According to the format of the requests of packets of data, the protocol type of the client request is determined;
The service of the client request is determined according to the protocol type.
2. the method according to claim 1, wherein the service request number monitored and receive client transmission According to packet, comprising:
It detects the client and passes through the requests of packets of data that Simple Service Discovery Protocol SSDP agreement is sent.
3. according to the method described in claim 2, it is characterized in that, the service request comprises at least one of the following: number is raw Network alliance DLNA request living and request of televising.
4. according to the method in any one of claims 1 to 3, which is characterized in that the monitoring simultaneously receives client transmission Requests of packets of data, comprising:
Determine that the destination service corresponds to the port of preset monitored;
The requests of packets of data is received by the port;
The service of the client request is determined according to the requests of packets of data, comprising:
According to the port for receiving the requests of packets of data, the service of the client request is determined.
5. according to the method described in claim 4, it is characterized in that, the port includes: the port of information service block SAMBA; The service includes that SAMBA is serviced.
6. according to claim 1, method described in 2,3 or 5, which is characterized in that after the starting destination service also Include:
The destination service is provided to the client.
7. a kind of service starter characterized by comprising
Module is monitored, for monitoring and receiving the requests of packets of data of client transmission;
Determining module, for determining the service of the client request according to the requests of packets of data;
Starting module, for the service in the client request be destination service when, start the destination service;Wherein, institute Stating destination service is the service that default does not start;
The determining module includes:
Analyzing sub-module, for parsing the format of the requests of packets of data;
First determines that submodule determines the agreement of the client request for the format according to the requests of packets of data Type;
Second determines submodule, for determining the service of the client request according to the protocol type.
8. device according to claim 7, which is characterized in that the monitoring module includes:
First monitors submodule, passes through the clothes that Simple Service Discovery Protocol SSDP agreement is sent for detecting the client Business request data package.
9. device according to claim 8, which is characterized in that the service request comprises at least one of the following: number is raw Network alliance DLNA request living and request of televising.
10. device according to any one of claims 7 to 9, which is characterized in that the monitoring module includes:
Third determines submodule, for determining that the destination service corresponds to the port of preset monitored;
Receiving submodule, for receiving the requests of packets of data by the port;
The determining module includes:
4th determines submodule, for determining the client request according to the port for receiving the requests of packets of data Service.
11. device according to claim 10, which is characterized in that the port includes: the end of information service block SAMBA Mouthful;The service includes that SAMBA is serviced.
12. according to device described in claim 7,8,9 or 11, which is characterized in that further include:
Service module, for providing the destination service to the client.
13. a kind of service starter characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to:
Monitor and receive the requests of packets of data of client transmission;
The service of the client request is determined according to the requests of packets of data;
When the service of the client request is destination service, start the destination service;Wherein, the destination service is default The service not started;
The service that the client request is determined according to the requests of packets of data, comprising:
Parse the format of the requests of packets of data;
According to the format of the requests of packets of data, the protocol type of the client request is determined;
The service of the client request is determined according to the protocol type.
14. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, which is characterized in that the journey The step of any one of claims 1 to 6 the method is realized when sequence is executed by processor.
CN201511031039.0A 2015-12-31 2015-12-31 Serving starting method and device Active CN105704208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511031039.0A CN105704208B (en) 2015-12-31 2015-12-31 Serving starting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511031039.0A CN105704208B (en) 2015-12-31 2015-12-31 Serving starting method and device

Publications (2)

Publication Number Publication Date
CN105704208A CN105704208A (en) 2016-06-22
CN105704208B true CN105704208B (en) 2019-02-15

Family

ID=56226686

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511031039.0A Active CN105704208B (en) 2015-12-31 2015-12-31 Serving starting method and device

Country Status (1)

Country Link
CN (1) CN105704208B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669679B (en) * 2018-12-28 2022-04-29 北京微播视界科技有限公司 Service detection and processing method and device and electronic equipment
CN111143069A (en) * 2019-12-27 2020-05-12 杭州数梦工场科技有限公司 Service management method, device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038536A (en) * 2014-05-23 2014-09-10 小米科技有限责任公司 Plug-in communication method and device
CN104539548A (en) * 2014-12-15 2015-04-22 小米科技有限责任公司 Method and device for starting application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100739715B1 (en) * 2005-07-12 2007-07-13 삼성전자주식회사 Method and apparatus for performing an agreement of web services policy

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038536A (en) * 2014-05-23 2014-09-10 小米科技有限责任公司 Plug-in communication method and device
CN104539548A (en) * 2014-12-15 2015-04-22 小米科技有限责任公司 Method and device for starting application

Also Published As

Publication number Publication date
CN105704208A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN104765990B (en) The setting method and device of intelligent device management account
CN105933899B (en) The cut-in method and device of wireless access point
CN104993981B (en) Control the method and device of equipment access
KR101755589B1 (en) Method and apparatus, program and recording medium for network access
US10098166B2 (en) Method and device for wireless connection establishment
CN105163366B (en) Wireless network connecting method and device
WO2017008399A1 (en) Smart device control method, terminal, and server
KR102339713B1 (en) Device network configuration method and apparatus, and medium
JP2017525067A (en) Method, apparatus, system, program and recording medium for managing control relationship between account and device
JP6154964B2 (en) Router setting interface display method, apparatus, program, and recording medium
JP2017521968A (en) Device binding method, apparatus, program, and recording medium
EP3200421B1 (en) Method, apparatus and system for accessing wireless local area network
CN105049416A (en) Method and apparatus for accessing to wifi network
CN109496439A (en) Based on the direct-connected method and device for establishing unicast connection of object object
CN109644460A (en) Dispatch requesting method, device and the storage medium of sidelinks resource
WO2017166761A1 (en) Method and device for sharing media data between terminals
CN111031002B (en) Broadcast discovery method, broadcast discovery device, and storage medium
CN106371327A (en) Control right sharing method and device
CN104301308B (en) Call control method and device
CN104184668A (en) Networking method, networking device, router and third-party device of Internet of things
WO2019024053A1 (en) Unmanned aerial vehicle control method and device, unmanned aerial vehicle and remote control device
CN105307288B (en) The method and apparatus disconnected
CN105704208B (en) Serving starting method and device
CN104618987B (en) Access the method and device of network
CN106358064A (en) Method and equipment for controlling television

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant