CN104581615B - service providing method and device - Google Patents

service providing method and device Download PDF

Info

Publication number
CN104581615B
CN104581615B CN201410826892.0A CN201410826892A CN104581615B CN 104581615 B CN104581615 B CN 104581615B CN 201410826892 A CN201410826892 A CN 201410826892A CN 104581615 B CN104581615 B CN 104581615B
Authority
CN
China
Prior art keywords
service
terminal
providing device
service providing
distance
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
CN201410826892.0A
Other languages
Chinese (zh)
Other versions
CN104581615A (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 CN201410826892.0A priority Critical patent/CN104581615B/en
Publication of CN104581615A publication Critical patent/CN104581615A/en
Application granted granted Critical
Publication of CN104581615B publication Critical patent/CN104581615B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/02Access restriction performed under specific conditions
    • H04W48/04Access restriction performed under specific conditions based on user or terminal location or mobility data, e.g. moving direction, speed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Abstract

The disclosure belongs to field of computer technology on a kind of service providing method and device.The described method includes:Pass through the information on services for the service that service providing device described in Bluetooth broadcast is provided;Service request of the terminal by Bluetooth broadcast is received, the service request is used to ask the service indicated by the information on services;The distance between the terminal and the service providing device are calculated according to the service request;If the distance between the terminal and the service providing device are more than distance threshold, refuse to provide the service to the terminal.The disclosure can solve the problem of that the terminal outside place also has access to the Internet resources that WiFi network occupies WiFi network, can reach the effect for saving resource.

Description

Service providing method and device
Technical field
This disclosure relates to field of computer technology, more particularly to a kind of service providing method and device.
Background technology
In order to attract customer, the places such as most of coffee shops, dining room can provide free WiFi (Widely Fidelity, nothing Line fidelity) network, by WiFi network network service is provided for customer.
A kind of service providing method that correlation technique provides includes:Terminal sends WiFi connections to service providing device please It asks, service providing device obtains telephone number according to WiFi connection requests to terminal, is tested according to the telephone number to terminal transmission Demonstrate,prove code;The information to be verified inputted according to identifying code is sent to service providing device by terminal;Service providing device is being determined After information to be verified is identical with identifying code, establishes and connect with terminal, network service is provided the terminal with by WiFi network.
Publisher has found that at least there are following defects in correlation technique during the disclosure is realized:WiFi network Coverage is typically larger than the scope in place, and the terminal being located at outside place is caused also to have access to WiFi network, occupies WiFi nets The Internet resources of network.
The content of the invention
To solve the problem of that the terminal outside place also has access to the Internet resources that WiFi network occupies WiFi network, this It is open to provide a kind of service providing method and device.
According to the embodiment of the present disclosure in a first aspect, a kind of service providing method is provided, in service providing device, wrapping It includes:
Pass through the information on services for the service that service providing device described in Bluetooth broadcast is provided;
Service request of the terminal by Bluetooth broadcast is received, the service request is used to ask indicated by the information on services The service;
The distance between the terminal and the service providing device are calculated according to the service request;
If the distance between the terminal and the service providing device are more than distance threshold, refuse to carry to the terminal For the service.
Optionally, the method further includes:
Detect whether there is the terminal for asking the service;
If it is detected that there is no the terminals for asking the service, the service is closed.
Optionally, it is described to detect whether there is the terminal for asking the service, including:
If the service is predetermined network, detect whether to exist through the predetermined network and the service providing device Establish the terminal of connection;
If it is detected that there is no the terminal being connected is established with the service providing device by the predetermined network, really It is fixed that there is no the terminals for asking the service.
Optionally, the method further includes:
If it is detected that the end being connected is established with the service providing device by the predetermined network there are at least one End is then detected at least one terminal with the presence or absence of the terminal for asking the service;
If it is detected that there is no the terminals for asking the service at least one terminal, it is determined that there is no please Seek the terminal of the service.
It is optionally, described that the distance between the terminal and the service providing device are calculated according to the service request, Including:
The signal strength of the service request is obtained, calculate the terminal according to the signal strength provides with the service The distance between equipment;Or,
The terminal positional information carried in the service request is obtained, is believed according to the device location of the service providing device Breath and the terminal positional information calculate the distance between the terminal and the service providing device.
According to the second aspect of the embodiment of the present disclosure, a kind of service providing apparatus is provided, in service providing device, wrapping It includes:
Information broadcast module is configured as the service letter of the service provided by service providing device described in Bluetooth broadcast Breath;
Request receiving module is configured as receiving service request of the terminal by Bluetooth broadcast, and the service request is used for Ask the service indicated by the information on services of described information broadcast module broadcast;
Distance calculation module is configured as according to the service request calculating that the request receiving module receives The distance between terminal and the service providing device;
Service providing module, the distance being configured as between the terminal and the service providing device are more than apart from threshold During value, refuse to provide the service to the terminal.
Optionally, described device further includes:
Service detection module is configured as detecting whether there is the terminal for asking the service;
Closedown module is serviced, is configured as detecting that there is no the terminals for asking the service in the service detection module When, close the service.
Optionally, the service detection module, including:
Terminal detection sub-module is configured as when the service is predetermined network, detects whether exist by described pre- Determine network and establish the terminal being connected with the service providing device;
First determination sub-module is configured as detecting to be not present through the predetermined net in the terminal detection sub-module When network establishes the terminal being connected with the service providing device, determine that there is no the terminals for asking the service.
Optionally, the service detection module, further includes:
Service detection submodule is configured as detecting there are at least one by described in the terminal detection sub-module When predetermined network establishes the terminal being connected with the service providing device, detect at least one terminal with the presence or absence of just Asking the terminal of the service;
Second determination sub-module is configured as in the service detection submodule detects at least one terminal not During in the presence of the terminal for asking the service, determine that there is no the terminals for asking the service.
Optionally, the distance calculation module, including:
First computational submodule is configured as obtaining the signal strength of the service request, according to the signal strength meter Calculate the distance between the terminal and the service providing device;Or,
Second computational submodule is configured as obtaining the terminal positional information carried in the service request, according to described The device location information of service providing device and the terminal positional information calculate the terminal and the service providing device it Between distance.
According to the third aspect of the embodiment of the present disclosure, a kind of service providing apparatus is provided, in service providing device, wrapping It includes:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
Pass through the information on services for the service that service providing device described in Bluetooth broadcast is provided;
Service request of the terminal by Bluetooth broadcast is received, the service request is used to ask indicated by the information on services The service;
The distance between the terminal and the service providing device are calculated according to the service request;
If the distance between the terminal and the service providing device are more than distance threshold, refuse to carry to the terminal For the service.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Pass through the information on services for the service that Bluetooth broadcast service providing device is provided;It receives terminal and passes through Bluetooth broadcast Service request, the service request are used to ask the service indicated by information on services;It is carried according to service request computing terminal with service For the distance between equipment;If the distance between terminal and service providing device are more than distance threshold, refuse to carry to the terminal For service, can offer service be determined whether according to the distance between terminal and service providing device, solve the end outside place The problem of end also has access to WiFi network, occupies the Internet resources of WiFi network has achieved the effect that save resource.
It should be appreciated that above general description and following detailed description is only exemplary, this can not be limited It is open.
Description of the drawings
Attached drawing herein is merged in specification and forms a part for present disclosure specification, shows and meets the disclosure Embodiment, and for explaining the principle of the disclosure together with specification.
Fig. 1 is the flow chart according to a kind of service providing method shown in an exemplary embodiment.
Fig. 2 is a kind of flow chart of the service providing method shown according to another exemplary embodiment.
Fig. 3 is the block diagram according to a kind of service providing apparatus shown in an exemplary embodiment.
Fig. 4 is the block diagram according to a kind of service providing apparatus shown in an exemplary embodiment.
Fig. 5 is the block diagram according to a kind of device provided for service shown in an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the disclosure.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is according to a kind of flow chart of service providing method shown in an exemplary embodiment, the service providing method Applied in service providing device, as shown in Figure 1, the service providing method comprises the following steps.
In a step 101, the information on services of the service provided by Bluetooth broadcast service providing device.
In a step 102, service request of the terminal by Bluetooth broadcast is received, which is used to ask information on services Indicated service.
In step 103, according to the distance between service request computing terminal and service providing device.
At step 104, if the distance between terminal and service providing device are more than distance threshold, refuse to the terminal Service is provided.
In conclusion the service providing method that the disclosure provides, the clothes provided by Bluetooth broadcast service providing device The information on services of business;Service request of the terminal by Bluetooth broadcast is received, which is used to ask indicated by information on services Service;According to the distance between service request computing terminal and service providing device;If between terminal and service providing device Distance be more than distance threshold, then refuse to the terminal provide service, can according between terminal and service providing device away from From offer service is determined whether, the terminal solved outside place also has access to WiFi network, occupies the network money of WiFi network The problem of source, has achieved the effect that save resource.
Fig. 2 is a kind of flow chart of the service providing method shown according to another exemplary embodiment, the service provider Method is applied in service providing device, as shown in Fig. 2, the service providing method includes the following steps.
In step 201, the information on services of the service provided by Bluetooth broadcast service providing device.
Service providing device is for providing the equipment of service, which can be the service of WiFi network or other clothes Business, the service that the present embodiment does not provide service providing device are construed as limiting.
Information on services be for describing the information for the service that service providing device is provided, e.g., mark, the title of service Deng.
Service providing device has Bluetooth function so that service providing device can by bluetooth period outwards broadcast Information on services.Wherein, the bluetooth in service providing device can be low-power consumption bluetooth, such as iBeacon, and iBeacon technologies refer to The accurate micro- location technology carried out using low-power consumption bluetooth technology.
In step 202, service request of the terminal by Bluetooth broadcast is received, which is used to ask information on services Indicated service.
After the information on services for receiving service providing device broadcast in terminal, it can determine that service carries according to the information on services , can be with triggering terminal by Bluetooth broadcast service request if user is needed using the service for the service that equipment is provided, it should Service request is used to ask the service indicated by information on services.For example, when service is the service of WiFi network, service request is used In the service for the WiFi network that request service providing device provides.Wherein, terminal has Bluetooth function, which can be iBeacon。
In step 203, the signal strength of service request is obtained, terminal and service providing device are calculated according to signal strength The distance between;Or, the terminal positional information carried in service request is obtained, according to the device location information of service providing device With the distance between terminal positional information computing terminal and service providing device.
In order to avoid service providing device provides service for all terminals, cause resource scarcity, service quality are relatively low to ask Topic, can screen the terminal for using service, to ensure service quality.Due to having much to the screening conditions that terminal is set Kind, the present embodiment is service providing device with the distance between terminal less than being illustrated exemplified by distance threshold by screening conditions, Other screening conditions are not limited.
Service providing device needs to obtain the distance between service providing device and terminal, wherein, according to service request meter The distance between terminal and service providing device are calculated, including:The signal strength of service request is obtained, is calculated eventually according to signal strength The distance between end and service providing device;Or, the terminal positional information carried in service request is obtained, it is provided and set according to service Standby device location information and the distance between terminal positional information computing terminal and service providing device.
In the first realization method, since the transmission range of information is more remote, the attenuation of signal is more serious, therefore, can be with Determine the transmission range of information and the negatively correlated relation of signal quality, service providing device can obtain the clothes of terminal broadcast at this time The signal quality of business request, further according to the distance between the signal quality computing terminal and service providing device.Wherein, signal matter Amount can use the numerical value expression of RSSI (Received Signal Strength Indication, received signal strength indicator), It can also be not construed as limiting with other numerical identities, the present embodiment.
In second of realization method, service providing device can obtain respectively terminal terminal positional information and itself Device location information, according to terminal positional information and the distance between device location information computing terminal and service providing device. Wherein, terminal individually can send terminal positional information to service providing device, can also carry terminal positional information and take Service providing device is broadcast in business request, consumed resource is transmitted to save.
In step 204, if the distance between terminal and service providing device are more than distance threshold, refuse to the terminal Service is provided.
Service providing device get terminal and service provide set between distance after, it is also necessary to by the distance with Distance threshold is compared, if comparing the distance more than distance threshold, it is determined that terminal is outside the scope of distance threshold, refusal Provide the terminal with service;If the distance is compared less than distance threshold, it is determined that terminal is in the range of distance threshold, to terminal Service is provided.Terminal can stop after the service is used through Bluetooth broadcast service request, to save the resource of terminal.
It, can be with if service providing device refusal provides the terminal with service for example, when service is the service of WiFi network It is that service providing device refusal terminal accesses the WiFi network;Can be clothes if service providing device provides the terminal with service Business, which provides equipment, allows terminal to access the WiFi network.
It should be noted that when service providing device gets signal quality, signal quality can be converted into terminal The distance between setting is provided with service, then determines the distance and the size of distance threshold, determines whether to provide the terminal with Service;It can also directly be determined whether to provide the terminal with service according to signal quality.
For example, when can measure in advance at distance threshold to service providing device broadcast service request, service is provided and set The signal quality of the standby service request received, is determined as reference signal quality by the signal quality, then obtains some terminal The signal quality of the service request of broadcast, by the signal quality compared with reference signal quality, if comparing the signal matter Amount is less than reference signal quality, it is determined that the distance between terminal and service providing device are more than distance threshold;If compare this Signal quality is more than reference signal quality, it is determined that the distance between terminal and service providing device are less than distance threshold.
It needs to consume certain resource since service providing device provides service, if terminal need not use service and service Equipment is provided still in the service of offer, the wasting of resources can be caused, therefore, whether service providing device can also ask according to terminal Service is asked to determine whether the service of closing, to save resource.
Optionally, service providing method provided in this embodiment, further includes:
1) detect whether there is the terminal of request service;
2) if it is detected that there is no the terminal that request services, the service of closing.
Wherein, detect whether there is the terminal of request service, including:
If 1) service is predetermined network, detect whether to exist to establish with service providing device by predetermined network to be connected Terminal;
2) if it is detected that there is no the terminal being connected is established with service providing device by predetermined network, it is determined that do not deposit In the terminal of request service.
When detecting whether to have the terminal of request service, service providing device can detect whether that presence can ask to take The terminal of business, if there is no the terminals that can ask service, it is determined that there is no the terminals of request service.Wherein, can ask The terminal of service is that the terminal being connected is established with service providing device by predetermined network.For example, when predetermined network is WiFi During network, the terminal that can ask service is to establish the terminal that WiFi is connected with service providing device.
After being established with terminal and to be connected by predetermined network due to service providing device, service providing device can count Go out the quantity of these terminals, then when detecting, service providing device can detect whether the quantity is zero, if the quantity is zero, It then determines to be not present to establish the terminal being connected with service providing device by predetermined network, closes service at this time;If the quantity It is not zero, it is determined that exist and the terminal being connected is established with service providing device by predetermined network.
Optionally, service providing method provided in this embodiment, further includes:
1) if it is detected that establishing the terminal being connected with service providing device by predetermined network there are at least one, examine It surveys at least one terminal with the presence or absence of the terminal for asking service;
2) if it is detected that there is no the terminals for asking service at least one terminal, it is determined that there is no requests to service Terminal.
If there are at least one terminal that can ask service, service providing device also needs to detect at least one end With the presence or absence of the terminal for asking service in end, if there is the terminal for asking service at least one terminal, really It is fixed not close service;If there is no the terminal for asking service at least one terminal, the service of closing.
Optionally, service providing device can also first detect whether there is the terminal for asking service, if it is detected that not In the presence of the terminal for asking service, then detect whether to exist the end being connected established with service providing device by predetermined network End, if it is detected that there is no establishing the terminal being connected with service providing device by predetermined network, the service of closing.
Wherein, terminal can detect that, there is no service is closed immediately during the terminal of request service, one can also be detected It, can also be to detecting that there is no times of the terminal of request service there is no service is closed during the terminal of request service in the section time Number is counted, and is closed service when the statistics number is more than frequency threshold value, is serviced not caused by avoid service is frequently switched on The problem of stablizing, improves service quality.
After the service of closing, service providing device can also open after detecting in the presence of the terminal that can ask service Service, with the response speed for the service of improving.
It should be noted that since service providing device for the terminal in the range of distance threshold provides service, in order to Avoid terminal and the distance between service providing device too far, service providing device refusal the problem of providing the terminal with service, eventually End can also determine the distance between service providing device and terminal according to information on services, and determine whether to broadcast according to the distance Service request.
Optionally, the method for terminal acquisition service providing device and the distance between terminal includes:Obtain information on services Signal strength calculates the distance between service providing device and terminal according to signal strength;Or, obtain what is carried in information on services The device location information of service providing device calculates service offer according to the terminal positional information of device location information and terminal and sets It is standby the distance between with terminal.
Wherein, terminal calculates the side of the distance between service providing device and terminal according to the signal strength of information on services Method calculates terminal according to the signal strength of service request with, service providing device and provides with service the side the distance between set Method is identical;Terminal calculates the distance between service providing device and terminal according to device location information and terminal positional information, with, Service providing device is according to the distance between terminal positional information and device location information computing terminal and service providing device Method is identical, does not repeat herein.
In conclusion the service providing method that the disclosure provides, the clothes provided by Bluetooth broadcast service providing device The information on services of business;Service request of the terminal by Bluetooth broadcast is received, which is used to ask indicated by information on services Service;According to the distance between service request computing terminal and service providing device;If between terminal and service providing device Distance be more than distance threshold, then refuse to the terminal provide service, can according between terminal and service providing device away from From offer service is determined whether, the terminal solved outside place also has access to WiFi network, occupies the network money of WiFi network The problem of source, has achieved the effect that save resource.
In addition, pass through the terminal for detecting whether to have request service;If it is detected that there is no the terminals of request service, close The service of closing can actively close service when no terminal request provides service, solve the unwanted service of offer and cause to provide The problem of source is lost has achieved the effect that save resource.
In order to make it easy to understand, the present embodiment is that the service in place with Wi-Fi hotspot provides with service providing device Equipment, distance threshold are illustrated exemplified by the coverage in dining room, then service providing device is periodically outwards broadcasted IBeacon information on services, the iBeacon information on services are used to indicate the service that service providing device is capable of providing WiFi network, If the terminal in dining room receives the iBeacon information on services, iBeacon services can be outwards broadcasted under the triggering of user please It asks, service providing device is after iBeacon service requests are received, the distance between computing terminal and the service providing device, If determine that terminal in place, provides the terminal with the service of WiFi network according to the distance;If the terminal outside dining room receives The iBeacon information on services, can outwards broadcast iBeacon service requests under the triggering of user, and service providing device is connecing After receiving iBeacon service requests, the distance between computing terminal and the service providing device, if determining terminal according to the distance Outside place, then refusal provides the terminal with the service of WiFi network.
Optionally, whether service providing device can also be detected in dining room has terminal to establish WiFi with service providing device Connection if it is detected that no terminal establishes WiFi with service providing device and is connected in dining room, closes the service of WiFi network; It is connected if it is detected that there is terminal to establish WiFi with service providing device in dining room, detects whether the terminal is used WiFi Network, if it is detected that the terminal is not using WiFi network, service providing device can close the service of WiFi network, with section Save Internet resources and electricity.
Fig. 3 is according to a kind of block diagram of service providing apparatus shown in an exemplary embodiment, which should For in service providing device, as shown in figure 3, the service providing apparatus includes:Information broadcast module 301, request receiving module 302nd, distance calculation module 303 and service providing module 304.
The information broadcast module 301, is configured as the service of the service provided by Bluetooth broadcast service providing device Information;
The request receiving module 302 is configured as receiving service request of the terminal by Bluetooth broadcast, and service request is used for The service indicated by information on services that solicited message broadcast module 301 is broadcasted;
The distance calculation module 303 is configured as the service request computing terminal received according to request receiving module 302 The distance between service providing device;
The service providing module 304, the distance being configured as between terminal and service providing device are more than distance threshold When, refusal provides the terminal with service.
In conclusion the service providing apparatus that the disclosure provides, the clothes provided by Bluetooth broadcast service providing device The information on services of business;Service request of the terminal by Bluetooth broadcast is received, which is used to ask indicated by information on services Service;According to the distance between service request computing terminal and service providing device;If between terminal and service providing device Distance be more than distance threshold, then refuse to the terminal provide service, can according between terminal and service providing device away from From offer service is determined whether, the terminal solved outside place also has access to WiFi network, occupies the network money of WiFi network The problem of source, has achieved the effect that save resource.
Fig. 4 is according to a kind of block diagram of service providing apparatus shown in an exemplary embodiment, which should For in service providing device, as shown in figure 4, the service providing apparatus includes:Information broadcast module 401, request receiving module 402nd, distance calculation module 403 and service providing module 404.
The information broadcast module 401, is configured as the service of the service provided by Bluetooth broadcast service providing device Information;
The request receiving module 402 is configured as receiving service request of the terminal by Bluetooth broadcast, and service request is used for The service indicated by information on services that solicited message broadcast module 401 is broadcasted;
The distance calculation module 403 is configured as the service request computing terminal received according to request receiving module 402 The distance between service providing device;
The service providing module 404, the distance being configured as between terminal and service providing device are more than distance threshold When, refusal provides the terminal with service.
Optionally, service providing apparatus provided in this embodiment, further includes:Mould is closed in service detection module 405 and service Block 406;
The service detection module 405 is configured as detecting whether the terminal that there is request service;
The service closedown module 406 is configured as detecting that there is no the terminals of request service in service detection module 405 When, close service.
Optionally, service detection module 405, including:4051 and first determination sub-module 4052 of terminal detection sub-module;
The terminal detection sub-module 4051 is configured as when service is predetermined network, detects whether exist by predetermined Network establishes the terminal being connected with service providing device;
First determination sub-module 4052 is configured as detecting to be not present by predetermined in terminal detection sub-module 4052 Network establishes the terminal being connected with service providing device constantly, determines that there is no the terminals of request service.
Optionally, service detection module 405, further includes:4053 and second determination sub-module 4054 of service detection submodule;
The service detection submodule 4053 is configured as detecting in terminal detection sub-module 4051 at least one by pre- When determining network and establishing the terminal being connected with service providing device, detect at least one terminal with the presence or absence of asking to service Terminal;
Second determination sub-module 4054 is configured as in service detection submodule 4053 detects at least one terminal There is no during the terminal for asking service, determine that there is no the terminals of request service.
Optionally, distance calculation module 403, including:First computational submodule 4031 or the second computational submodule 4032;
First computational submodule 4031 is configured as obtaining the signal strength of service request, is calculated according to signal strength The distance between terminal and service providing device;Or,
Second computational submodule 4032 is configured as obtaining the terminal positional information carried in service request, according to clothes Business provides the device location information of equipment and the distance between terminal positional information computing terminal and service providing device.
In conclusion the service providing apparatus that the disclosure provides, the clothes provided by Bluetooth broadcast service providing device The information on services of business;Service request of the terminal by Bluetooth broadcast is received, which is used to ask indicated by information on services Service;According to the distance between service request computing terminal and service providing device;If between terminal and service providing device Distance be more than distance threshold, then refuse to the terminal provide service, can according between terminal and service providing device away from From offer service is determined whether, the terminal solved outside place also has access to WiFi network, occupies the network money of WiFi network The problem of source, has achieved the effect that save resource.
In addition, pass through the terminal for detecting whether to have request service;If it is detected that there is no the terminals of request service, close The service of closing can actively close service when no terminal request provides service, solve the unwanted service of offer and cause to provide The problem of source is lost has achieved the effect that save resource.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
One exemplary embodiment of the disclosure provides a kind of service providing apparatus, can realize that the service that the disclosure provides carries For method, which includes:Processor, the memory for storing processor-executable instruction;
Wherein, processor is configured as:
Pass through the information on services for the service that Bluetooth broadcast service providing device is provided;
Service request of the terminal by Bluetooth broadcast is received, which is used to ask the clothes indicated by information on services Business;
According to the distance between service request computing terminal and service providing device;
If the distance between terminal and service providing device are more than distance threshold, refuse to provide service to the terminal.
Fig. 5 is according to a kind of block diagram for service providing apparatus 500 shown in an exemplary embodiment.For example, device 500 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, and medical treatment is set It is standby, body-building equipment, personal digital assistant etc..
With reference to Fig. 5, device 500 can include following one or more assemblies:Processing component 502, memory 504, power supply Component 506, multimedia component 508, audio component 510, the interface 512 of input/output (I/O), sensor module 514 and Communication component 516.
The integrated operation of 502 usual control device 500 of processing component, such as with display, call, data communication, phase Machine operates and record operates associated operation.Processing component 502 can refer to including one or more processors 518 to perform Order, to perform all or part of the steps of the methods described above.In addition, processing component 502 can include one or more modules, just Interaction between processing component 502 and other assemblies.For example, processing component 502 can include multi-media module, it is more to facilitate Interaction between media component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support the operation in device 500.These data are shown Example includes the instruction of any application program or method that operate on device 500, contact data, and telephone book data disappears Breath, picture, video etc..Memory 504 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static RAM (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 can include power management system System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 500.
Multimedia component 508 is included in the screen of one output interface of offer between described device 500 and user.One In a little embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch-screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Border, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 508 includes a front camera and/or rear camera.When device 500 is in operation mode, such as screening-mode or During video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (MIC), when device 500 is in operation mode, during such as call model, logging mode and speech recognition mode, microphone by with It is set to reception external audio signal.The received audio signal can be further stored in memory 504 or via communication set Part 516 is sent.In some embodiments, audio component 510 further includes a loud speaker, for exports audio signal.
I/O interfaces 512 provide interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock Determine button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor module 514 can detect opening/closed state of device 500, and the relative positioning of component, for example, it is described Component is the display and keypad of device 500, and sensor module 514 can be with 500 1 components of detection device 500 or device Position change, the existence or non-existence that user contacts with device 500,500 orientation of device or acceleration/deceleration and device 500 Temperature change.Sensor module 514 can include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 514 can also include optical sensor, such as CMOS or ccd image sensor, for into As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation In example, communication component 516 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 516 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 500 can be believed by one or more application application-specific integrated circuit (ASIC), number Number 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 performing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided Such as include the memory 504 of instruction, above-metioned instruction can be performed to complete the above method by the processor 518 of device 500.For example, The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk With optical data storage devices etc..
Those skilled in the art will readily occur to this other implementations after considering specification and putting into practice disclosure herein Scheme.This application is intended to cover this any variations, uses, or adaptations, these modifications, purposes or adaptability become Change and follow general principle originally and including generally known common sense and conventional technological means in the art, which is not disclosed in this disclosure. Description and embodiments are considered only as illustratively, this true scope and spirit are pointed out by following claim.
It should be appreciated that the precision architecture for being described above and being shown in the drawings originally is not limited to, and can To carry out various modifications and change without departing from the scope.This scope is only limited by appended claim.

Claims (11)

1. a kind of service providing method, which is characterized in that in service providing device, including:
By the information on services for the service that service providing device described in Bluetooth broadcast is provided, the bluetooth is iBeacon, described Service is the service of Wireless Fidelity WiFi network;
Service request of the terminal by Bluetooth broadcast is received, the service request is used to ask the institute indicated by the information on services State service;
The distance between the terminal and the service providing device are calculated according to the service request;
If the distance between the terminal and the service providing device are more than distance threshold, refuse to provide institute to the terminal State service.
2. according to the method described in claim 1, it is characterized in that, the method, further includes:
Detect whether there is the terminal for asking the service;
If it is detected that there is no the terminals for asking the service, the service is closed.
3. according to the method described in claim 2, it is characterized in that, described detect whether there is the terminal for asking the service, Including:
If the service is predetermined network, detects whether to exist and be established by the predetermined network and the service providing device The terminal of connection;
If it is detected that there is no establish the terminal being connected with the service providing device by the predetermined network, it is determined that no In the presence of the terminal for asking the service.
4. according to the method described in claim 3, it is characterized in that, the method, further includes:
If it is detected that the terminal being connected is established with the service providing device by the predetermined network there are at least one, It detects at least one terminal with the presence or absence of the terminal for asking the service;
If it is detected that there is no the terminals for asking the service at least one terminal, it is determined that there is no request institutes State the terminal of service.
5. method according to any one of claims 1 to 4, which is characterized in that described that institute is calculated according to the service request The distance between terminal and the service providing device are stated, including:
The signal strength of the service request is obtained, the terminal and the service providing device are calculated according to the signal strength The distance between;Or,
Obtain the terminal positional information carried in the service request, according to the device location information of the service providing device and The terminal positional information calculates the distance between the terminal and the service providing device.
6. a kind of service providing apparatus, which is characterized in that in service providing device, including:
Information broadcast module is configured as the information on services of the service provided by service providing device described in Bluetooth broadcast, The bluetooth is iBeacon, and the service is the service of Wireless Fidelity WiFi network;
Request receiving module is configured as receiving service request of the terminal by Bluetooth broadcast, and the service request is used to ask The service indicated by the information on services of described information broadcast module broadcast;
Distance calculation module, the service request for being configured as being received according to the request receiving module calculate the terminal The distance between described service providing device;
Service providing module, the distance being configured as between the terminal and the service providing device are more than distance threshold When, refuse to provide the service to the terminal.
7. device according to claim 6, which is characterized in that described device further includes:
Service detection module is configured as detecting whether there is the terminal for asking the service;
Closedown module is serviced, is configured as when the service detection module detects that the terminal for asking the service is not present, Close the service.
8. device according to claim 7, which is characterized in that the service detection module, including:
Terminal detection sub-module is configured as when the service is predetermined network, detects whether exist through the predetermined net Network establishes the terminal being connected with the service providing device;
First determination sub-module, be configured as the terminal detection sub-module detect be not present by the predetermined network with When the service providing device establishes the terminal of connection, determine that there is no the terminals for asking the service.
9. device according to claim 8, which is characterized in that the service detection module further includes:
Service detection submodule is configured as detecting there are at least one by described predetermined in the terminal detection sub-module When network establishes the terminal being connected with the service providing device, detect to whether there is at least one terminal and ask Seek the terminal of the service;
Second determination sub-module is configured as detecting to be not present at least one terminal in the service detection submodule When asking the terminal of the service, determine that there is no the terminals for asking the service.
10. according to claim 6 to 9 any one of them device, which is characterized in that the distance calculation module, including:
First computational submodule is configured as obtaining the signal strength of the service request, and institute is calculated according to the signal strength State the distance between terminal and the service providing device;Or,
Second computational submodule is configured as obtaining the terminal positional information carried in the service request, according to the service The device location information and the terminal positional information for providing equipment are calculated between the terminal and the service providing device Distance.
11. a kind of service providing apparatus, which is characterized in that in service providing device, including:
Processor;
For storing the memory of processor-executable instruction;
Wherein, the processor is configured as:
By the information on services for the service that service providing device described in Bluetooth broadcast is provided, the bluetooth is iBeacon, described Service is the service of Wireless Fidelity WiFi network;
Service request of the terminal by Bluetooth broadcast is received, the service request is used to ask the institute indicated by the information on services State service;
The distance between the terminal and the service providing device are calculated according to the service request;
If the distance between the terminal and the service providing device are more than distance threshold, refuse to provide institute to the terminal State service.
CN201410826892.0A 2014-12-25 2014-12-25 service providing method and device Active CN104581615B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410826892.0A CN104581615B (en) 2014-12-25 2014-12-25 service providing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410826892.0A CN104581615B (en) 2014-12-25 2014-12-25 service providing method and device

Publications (2)

Publication Number Publication Date
CN104581615A CN104581615A (en) 2015-04-29
CN104581615B true CN104581615B (en) 2018-05-29

Family

ID=53096626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410826892.0A Active CN104581615B (en) 2014-12-25 2014-12-25 service providing method and device

Country Status (1)

Country Link
CN (1) CN104581615B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105827583A (en) * 2015-09-30 2016-08-03 维沃移动通信有限公司 Method and device for access to mobile data network
CN106102088A (en) * 2016-06-01 2016-11-09 上海斐讯数据通信技术有限公司 The connection control method of a kind of wireless router and wireless router
CN105848154A (en) * 2016-06-07 2016-08-10 醴陵恒茂电子科技有限公司 Method for carrying out wireless identity authentication based on RSSI ranging
CN107645789B (en) * 2016-07-14 2021-07-30 中兴通讯股份有限公司 Network access method, device and system
CN108207018A (en) * 2016-12-16 2018-06-26 中兴通讯股份有限公司 Wireless connection method and device
CN111770094B (en) * 2020-06-29 2022-12-13 Oppo广东移动通信有限公司 Access control method of wireless network and related device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1361766A2 (en) * 2002-05-06 2003-11-12 Nokia Corporation Service provision
EP1794951B1 (en) * 2004-09-29 2010-07-14 Symbol Technologies, Inc. Object location based security using rfid
CN101843146A (en) * 2007-09-26 2010-09-22 符号技术有限公司 Systems and methods for controlling mobile unit access to network services based on its location
CN103188023A (en) * 2013-03-19 2013-07-03 天脉聚源(北京)传媒科技有限公司 Distance measuring method and system, and application method
CN103546950A (en) * 2013-10-30 2014-01-29 深圳Tcl新技术有限公司 Method and device for automatically turning on and turning off WiFi module of wireless router

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1361766A2 (en) * 2002-05-06 2003-11-12 Nokia Corporation Service provision
EP1794951B1 (en) * 2004-09-29 2010-07-14 Symbol Technologies, Inc. Object location based security using rfid
CN101843146A (en) * 2007-09-26 2010-09-22 符号技术有限公司 Systems and methods for controlling mobile unit access to network services based on its location
CN103188023A (en) * 2013-03-19 2013-07-03 天脉聚源(北京)传媒科技有限公司 Distance measuring method and system, and application method
CN103546950A (en) * 2013-10-30 2014-01-29 深圳Tcl新技术有限公司 Method and device for automatically turning on and turning off WiFi module of wireless router

Also Published As

Publication number Publication date
CN104581615A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104581615B (en) service providing method and device
CN105407473B (en) WLAN finds method and device
CN105094957A (en) Video conversation window control method and apparatus
CN104902059A (en) Call reminding method and device
CN106028375A (en) Method and device for prompting network switching and terminal device
CN107608561A (en) Touch-screen control method and device
CN104601204B (en) trigger condition detection method and device
CN104361486A (en) Alarm clock reminding method and device
CN105301183B (en) Detection of Air Quality method and apparatus
CN105353901A (en) Method and apparatus for determining validity of touch operation
CN104010072A (en) Electric quantity prompt method and device
CN103888601A (en) Method, device and terminal for information warning
CN107743096A (en) Network optimized approach, device, terminal and storage medium
CN107135147A (en) Method, device and the computer-readable recording medium of sharing position information
CN106899869A (en) Adjust method, the apparatus and system of volume of electronic device
CN107846730A (en) Call transferring method and device
CN104703255A (en) Resident network adjustment method and device and electronic device
CN105487758A (en) Method and device for popup control of application software, and terminal equipment
CN105282867A (en) Network connection method and device
CN104539497B (en) Method for connecting network and device
CN104281431B (en) The method and device that audio plays
CN105657658A (en) Gathering event processing method and apparatuses
CN105635414A (en) Method and device for screening incoming calls
CN106792112A (en) Video broadcasting method and device
CN106331760A (en) Video playing control method and device

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