CN112291718B - Service scheduling method and system based on low-power-consumption Bluetooth broadcast - Google Patents

Service scheduling method and system based on low-power-consumption Bluetooth broadcast Download PDF

Info

Publication number
CN112291718B
CN112291718B CN202011110681.9A CN202011110681A CN112291718B CN 112291718 B CN112291718 B CN 112291718B CN 202011110681 A CN202011110681 A CN 202011110681A CN 112291718 B CN112291718 B CN 112291718B
Authority
CN
China
Prior art keywords
service
scheduled
priority
scene type
executed
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
CN202011110681.9A
Other languages
Chinese (zh)
Other versions
CN112291718A (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.)
Wuhan Biezhi Science & Technology Co ltd
Routon Electronic Co ltd
Original Assignee
Wuhan Biezhi Science & Technology Co ltd
Routon Electronic Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Biezhi Science & Technology Co ltd, Routon Electronic Co ltd filed Critical Wuhan Biezhi Science & Technology Co ltd
Priority to CN202011110681.9A priority Critical patent/CN112291718B/en
Publication of CN112291718A publication Critical patent/CN112291718A/en
Application granted granted Critical
Publication of CN112291718B publication Critical patent/CN112291718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/12Wireless traffic scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • H04W72/566Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient
    • H04W72/569Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient of the traffic information
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a service scheduling method and a system based on low-power-consumption Bluetooth broadcasting, wherein the method comprises the following steps: acquiring a service scene type of a service to be scheduled; determining the service priority of the service to be scheduled according to the service scene type; and acquiring a corresponding service scheduling scheme according to the service priority, and scheduling the service to be scheduled according to the service scheduling scheme. The embodiment of the invention classifies the broadcast service and schedules the broadcast service according to the service priority obtained by the classification result, so that the service system using BLE broadcast data as a carrier has higher real-time performance and flexibility when scheduling the service.

Description

Service scheduling method and system based on low-power-consumption Bluetooth broadcast
Technical Field
The invention relates to the technical field of wireless communication, in particular to a service scheduling method and system based on low-power-consumption Bluetooth broadcasting.
Background
Bluetooth Low Energy (BLE) is a commonly used technology in the current internet of things, and may also be called Bluetooth Low Energy (Low Energy), and is a standard configuration in current electronic products. Bluetooth low energy is intended to significantly reduce power consumption and cost while maintaining equivalent communication range compared to classical bluetooth.
The existing BLE router takes BLE broadcasting as a data communication carrier, and the BLE broadcasting is characterized in that a lot of data can be received at the same time, but only a certain number of broadcasting can be sent at the same time, which is a bottleneck of the BLE broadcasting; in addition, various terminal devices for managing communication with the BLE router have different real-time performance in traffic, so that the existing traffic system using BLE broadcast data as a bearer has lower real-time performance and flexibility in traffic scheduling.
Therefore, a service scheduling method and system based on bluetooth low energy broadcasting are needed to solve the above problems.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a service scheduling method and system based on low-power-consumption Bluetooth broadcasting.
In a first aspect, an embodiment of the present invention provides a service scheduling method based on bluetooth low energy broadcasting, including:
acquiring a service scene type of a service to be scheduled;
determining the service priority of the service to be scheduled according to the service scene type;
and acquiring a corresponding service scheduling scheme according to the service priority, and scheduling the service to be scheduled according to the service scheduling scheme.
Further, the acquiring the service scene type of the service to be scheduled includes:
and acquiring the service scene type of the service to be scheduled according to the equipment type and the service scene corresponding to the service to be scheduled, wherein the service scene type comprises a real-time service, an in-time service and a best-effort service.
Further, the determining the service priority of the service to be scheduled according to the service scene type includes:
and judging whether the broadcast channel at the current moment is idle, if not, acquiring the service being executed at the current moment, and sequencing the service priority of the service to be scheduled and the service being executed at the current moment according to the service scene type so as to acquire a corresponding service scheduling scheme according to a sequencing result.
Further, the determining the service priority of the service to be scheduled according to the service scene type further includes:
and judging whether the broadcast channel at the current moment is idle, and if the broadcast channel is idle, directly executing the service to be scheduled.
Further, the obtaining a corresponding service scheduling scheme according to the service priority and scheduling the service to be scheduled according to the service scheduling scheme includes:
when the service scene type of the service to be scheduled and the service scene type of the service being executed at the current moment are real-time services, directly terminating the service to be scheduled;
when the service scene type of the service to be scheduled is a real-time service and the service scene type of the service being executed at the current moment is an in-time service or a best-effort service, directly executing the service to be scheduled;
when the service scene type of the service to be scheduled is a timely service and the service scene type of the service being executed at the current moment is a timely service or a real-time service, caching the service to be scheduled, and executing the service to be scheduled after the service being executed at the current moment is completed;
when the service scene type of the service to be scheduled is an in-time service and the service scene type of the service being executed at the current moment is a best-effort service, directly executing the service to be scheduled;
when the service scene type of the service to be scheduled is the best-effort service, caching the service to be scheduled, and executing the service to be scheduled after the service which is executed at the current moment is completed.
Further, before determining the service priority of the service to be scheduled according to the service scene type, the method further includes:
setting service priority threshold values for the real-time service, the timely service and the best effort service so as to determine the service priority of the service to be scheduled according to the service priority threshold values.
In a second aspect, an embodiment of the present invention provides a service scheduling system based on bluetooth low energy broadcasting, including:
the service type acquisition module is used for acquiring the service scene type of the service to be scheduled;
a service priority determining module, configured to determine a service priority of the service to be scheduled according to the service scene type;
and the service scheduling module is used for acquiring a corresponding service scheduling scheme according to the service priority and scheduling the service to be scheduled according to the service scheduling scheme.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the method provided in the first aspect when executing the program.
In a fourth aspect, an embodiment of the present invention provides a non-transitory computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the steps of the method as provided in the first aspect.
According to the service scheduling method and system based on the low-power-consumption Bluetooth broadcast, provided by the embodiment of the invention, the broadcast services are classified and are scheduled according to the service priority obtained by the classification result, so that the service system using BLE broadcast data as a carrier has higher real-time performance and flexibility when the service scheduling is carried out.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a service scheduling method based on bluetooth low energy broadcasting according to an embodiment of the present invention;
fig. 2 is a communication diagram of a bluetooth low energy router according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service scheduling system based on bluetooth low energy broadcast according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Fig. 1 is a schematic flowchart of a service scheduling method based on bluetooth low energy broadcast according to an embodiment of the present invention, and as shown in fig. 1, the embodiment of the present invention provides a service scheduling method based on bluetooth low energy broadcast, including:
step 101, obtaining a service scene type of a service to be scheduled.
It should be noted that the traffic scheduling method provided in the embodiment of the present invention may be applied to a BLE router. In the embodiment of the present invention, first, a service scene type of BLE router broadcast data needs to be obtained, and referring to fig. 2, a schematic communication diagram of a bluetooth low energy router provided in the embodiment of the present invention is shown in fig. 2, a bluetooth low energy router (router) communicates with a cloud platform through a wifi/Ethernet network, receives an instruction, and reports a state. The ble router communicates with a card device (e.g., a bluetooth card device), a meter device (i.e., measuring instruments, such as a thermometer and an electricity meter) and a switch device (i.e., switches, such as a computer switch, a light switch and a fan switch) under jurisdiction through a ble broadcast, and is in the same space (e.g., a classroom and an office) as the card device, the meter device and the switch device. Bluetooth relay devices (e.g., ble relay devices) may also be added if the space is large.
And step 102, determining the service priority of the service to be scheduled according to the service scene type.
In the embodiment of the present invention, as shown in fig. 2, in a communication network based on bluetooth low energy, the card devices are generally the most in number, services have a certain interactivity relatively, and generally one service needs to be completed through multiple broadcasts, but the services are not high in requirement on timeliness (such as answering or voting), and of course, a small number of services need to be completed only through one broadcast; compared with card equipment, the meter equipment has the advantages of small quantity and simple service, but generally needs to be completed quickly and timely, the real-time performance is not high, and the timeliness is high (such as the online state of the equipment); the number of switch devices is not large, the service is relatively simple, but the requirement on real-time performance is high, and the instructions need to be executed immediately and return to the state when reaching the router.
Step 103, obtaining a corresponding service scheduling scheme according to the service priority, and scheduling the service to be scheduled according to the service scheduling scheme.
In the embodiment of the invention, the service scene types are established according to the types of different devices, the priority of the switch device with higher real-time requirement is set to be the highest, then the meter device is set, the priority is the card device, then the corresponding services are executed according to the sequence from the high priority to the low priority, and the execution is delayed as much as possible for the services with lower priority.
According to the service scheduling method based on the low-power-consumption Bluetooth broadcast, provided by the embodiment of the invention, the broadcast services are classified, and the broadcast services are scheduled according to the service priority obtained by the classification result, so that a service system using BLE broadcast data as a carrier has higher real-time performance and flexibility when service scheduling is carried out.
On the basis of the above embodiment, the acquiring the service scene type of the service to be scheduled includes:
and acquiring the service scene type of the service to be scheduled according to the equipment type and the service scene corresponding to the service to be scheduled, wherein the service scene type comprises a real-time service, an in-time service and a best-effort service.
In the embodiment of the present invention, the service scene type is not necessarily associated with the device, some card devices may have real-time services or timely services, and the services are classified into real-time services, timely services, and best-effort services according to the service scene and the device type by comprehensive consideration. The real-time service represents a service which cannot be seized and needs to be completed in a limited time; the timely service represents a service which can be seized and needs to be completed in a limited time; best effort traffic means traffic that can be preempted and has low time-limited requirements.
On the basis of the foregoing embodiment, the determining the service priority of the service to be scheduled according to the service scene type includes:
and judging whether the broadcast channel at the current moment is idle, if not, acquiring the service being executed at the current moment, and sequencing the service priority of the service to be scheduled and the service being executed at the current moment according to the service scene type so as to acquire a corresponding service scheduling scheme according to a sequencing result.
On the basis of the foregoing embodiment, the determining the service priority of the service to be scheduled according to the service scene type further includes:
and judging whether the broadcast channel at the current moment is idle, and if the broadcast channel is idle, directly executing the service to be scheduled.
On the basis of the above embodiment, the obtaining a corresponding service scheduling scheme according to the service priority, and scheduling the service to be scheduled according to the service scheduling scheme includes:
when the service scene type of the service to be scheduled and the service scene type of the service being executed at the current moment are real-time services, directly terminating the service to be scheduled;
when the service scene type of the service to be scheduled is a real-time service and the service scene type of the service being executed at the current moment is an in-time service or a best-effort service, directly executing the service to be scheduled;
when the service scene type of the service to be scheduled is a timely service and the service scene type of the service being executed at the current moment is a timely service or a real-time service, caching the service to be scheduled, and executing the service to be scheduled after the service being executed at the current moment is completed;
when the service scene type of the service to be scheduled is an in-time service and the service scene type of the service being executed at the current moment is a best-effort service, directly executing the service to be scheduled;
when the service scene type of the service to be scheduled is the best-effort service, caching the service to be scheduled, and executing the service to be scheduled after the service which is executed at the current moment is completed.
In the embodiment of the present invention, a service to be scheduled corresponding to three service scene types in the above embodiment is described, and when the service to be scheduled is a real-time service, the specific steps are as follows:
step S11, receiving a real-time service to be executed;
step S12, checking whether the broadcast channel is idle, if so, executing the real-time service to be executed, and starting a service timer until step S14; if not, checking whether the service executed at the current moment is a real-time service;
step S13, if the current executed service is a real-time service, terminating the real-time service to be executed, and directly returning the feedback information that the platform equipment is busy; if the current executed service is not the real-time service, switching the service, directly executing the real-time service to be executed, and starting a service timer;
step S14, if the real-time service to be executed is completed, the return value is replied to the cloud platform;
and step S15, if the service timer is overtime, replying the overtime equipment to the cloud platform.
Further, when the service to be scheduled is a timely service, the specific steps are as follows:
step S21, receiving a timely service to be executed;
step S22, checking whether the broadcast channel is idle, if so, executing the timely service to be executed, and starting a service timer until step S26; if not, checking the type of the service executed at the current moment;
step S23, if the current executed service is a real-time service or a timely service, caching the timely service to be executed, and starting a service timer;
step S24, after the service currently being executed at the current time is finished, acquiring the next service to be executed (including the timely service to be executed received in step S21) in the cache, and if there are multiple timely services in the cache, determining the next service to be executed according to the priority of the received service and the receiving time;
step S25, if the service executed at the current moment is the best-effort service, the service is switched, the timely service to be executed is directly executed, and a service timer is started;
step S26, if the timely service to be executed is completed, the return value is replied to the cloud platform;
and step S27, if the service timer is overtime, terminating the current service and replying the overtime equipment to the cloud platform.
Further, when the service to be scheduled is a best-effort service, the specific steps are as follows:
step S31, receiving a best effort service to be executed;
step S32, checking whether the broadcast channel is idle, if it is idle, executing the best-effort service to be executed, if the service request is completed on time, starting the service timer, and going to step S34; if the service is not idle, caching the best-effort service to be executed, and if the service requirement is finished at a preset time, starting a service timer;
step S33, after the service currently being executed at the current time is finished, acquiring the next service to be executed (including the best effort service to be executed received in step S31) in the cache, and if there are multiple timely services and best effort services in the cache, determining the next service to be executed according to the received service priority and the received time until the best effort task to be executed is started;
step S34, if the best effort service to be executed is completed, the return value is replied to the cloud platform;
and step S35, if the service timer is set and is overtime, replying the overtime of the equipment to the cloud platform.
On the basis of the above embodiment, before determining the service priority of the service to be scheduled according to the service scene type, the method further includes:
setting service priority threshold values for the real-time service, the timely service and the best effort service so as to determine the service priority of the service to be scheduled according to the service priority threshold values.
In the embodiment of the invention, the priority of different services can be judged more easily by setting the service priority value threshold, specifically, the service priority is represented by a number from 0 to 99, and the smaller the number is, the higher the priority is. For real-time services, which are usually short and fast services and cannot be preempted, low-priority services need to be preempted immediately, so that the priority of the real-time services is defined as 0 and the priority is highest; for the timely service, the service is usually short and short, but the real-time performance is not required to be high, the priority can be defined as 1-10, the priority of the timely service is generally set to 10, and for the service which needs to be preferentially executed in the timely service, the service with higher priority in the timely service can also be set to 1-9; for best effort traffic, the traffic is usually interactive, so the time may be long, therefore, each traffic is designed according to time slices, each time slice is defined as 100ms, in one time slice, the traffic with the highest priority is selected for BLE broadcast communication, and the priority is defined as 11-99. The priority of the general best effort service is set to 99, and the priority of the service which needs to be preferentially executed in the best effort service can be set to 11-98. In addition, as the real-time performance is not high due to the characteristic of best effort service delivery, the fairness of the service is considered in the best effort, and if the service is executed, the priority of the service is set to the priority of the initialization service (the default initialization is 99); the priority of other unexecuted traffic is decremented by 1 until the best effort traffic highest priority 11. In addition, if the timely services are concentrated in a time period, the best effort service cannot be executed, so that the embodiment of the invention adds a time slice of the best effort service after every three timely services are operated.
Fig. 3 is a schematic structural diagram of a service scheduling system based on bluetooth low energy broadcasting according to an embodiment of the present invention, and as shown in fig. 3, an embodiment of the present invention provides a service scheduling system based on bluetooth low energy broadcasting, which includes a service type obtaining module 301, a service priority determining module 302, and a service scheduling module 302, where the service type obtaining module 301 is configured to obtain a service scene type of a service to be scheduled; the service priority determining module 302 is configured to determine a service priority of the service to be scheduled according to the service scene type; the service scheduling module 303 is configured to obtain a corresponding service scheduling scheme according to the service priority, and schedule the service to be scheduled according to the service scheduling scheme.
According to the service scheduling system based on the low-power-consumption Bluetooth broadcast, provided by the embodiment of the invention, the broadcast services are classified, and the broadcast services are scheduled according to the service priority obtained by the classification result, so that the service scheduling system using BLE broadcast data as a carrier has higher real-time performance and flexibility when performing service scheduling.
The system provided by the embodiment of the present invention is used for executing the above method embodiments, and for details of the process and the details, reference is made to the above embodiments, which are not described herein again.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and referring to fig. 4, the electronic device may include: a processor (processor)401, a communication Interface (communication Interface)402, a memory (memory)403 and a communication bus 404, wherein the processor 401, the communication Interface 402 and the memory 403 complete communication with each other through the communication bus 404. Processor 401 may call logic instructions in memory 403 to perform the following method: acquiring a service scene type of a service to be scheduled; determining the service priority of the service to be scheduled according to the service scene type; and acquiring a corresponding service scheduling scheme according to the service priority, and scheduling the service to be scheduled according to the service scheduling scheme.
In addition, the logic instructions in the memory 403 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to, when executed by a processor, perform the service scheduling method based on bluetooth low energy broadcast provided in the foregoing embodiments, for example, the method includes: acquiring a service scene type of a service to be scheduled; determining the service priority of the service to be scheduled according to the service scene type; and acquiring a corresponding service scheduling scheme according to the service priority, and scheduling the service to be scheduled according to the service scheduling scheme.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, and not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (5)

1. A service scheduling method based on low power consumption Bluetooth broadcasting is characterized by comprising the following steps:
acquiring a service scene type of a service to be scheduled;
determining the service priority of the service to be scheduled according to the service scene type;
acquiring a corresponding service scheduling scheme according to the service priority, and scheduling the service to be scheduled according to the service scheduling scheme;
the acquiring of the service scene type of the service to be scheduled includes:
acquiring the service scene type of the service to be scheduled according to the equipment type and the service scene corresponding to the service to be scheduled, wherein the service scene type comprises a real-time service, an in-time service and a best-effort service;
the determining the service priority of the service to be scheduled according to the service scene type includes:
judging whether a broadcast channel at the current moment is idle, if not, acquiring the service being executed at the current moment, and sequencing the service priority of the service to be scheduled and the service being executed at the current moment according to the service scene type so as to acquire a corresponding service scheduling scheme according to a sequencing result;
the obtaining a corresponding service scheduling scheme according to the service priority and scheduling the service to be scheduled according to the service scheduling scheme includes:
when the service scene type of the service to be scheduled and the service scene type of the service being executed at the current moment are real-time services, directly terminating the service to be scheduled;
when the service scene type of the service to be scheduled is a real-time service and the service scene type of the service being executed at the current moment is an in-time service or a best-effort service, directly executing the service to be scheduled;
when the service scene type of the service to be scheduled is a timely service and the service scene type of the service being executed at the current moment is a timely service or a real-time service, caching the service to be scheduled, and executing the service to be scheduled after the service being executed at the current moment is completed;
when the service scene type of the service to be scheduled is an in-time service and the service scene type of the service being executed at the current moment is a best-effort service, directly executing the service to be scheduled;
when the service scene type of the service to be scheduled is the best-effort service, caching the service to be scheduled, and executing the service to be scheduled after the service which is executed at the current moment is completed;
before determining the service priority of the service to be scheduled according to the service scene type, the method further includes:
setting service priority threshold values for the real-time service, the timely service and the best effort service so as to determine the service priority of the service to be scheduled according to the service priority threshold values;
the priority threshold comprises: the real-time service priority threshold is defined as 0; defining the timely service priority threshold value as 1-10; the best-effort service priority threshold is set to be 11-99, each service is designed according to time slices, each time slice is defined to be 100ms, and in one time slice, the service with the highest priority is selected for BLE broadcast communication;
wherein the priority of best effort traffic is variable, said priority of best effort traffic being set to the priority of initialization traffic if best effort traffic is executed; the priority of other non-executed best effort traffic is reduced by 1 until best effort traffic highest priority 11.
2. The method for scheduling services based on bluetooth low energy broadcast according to claim 1, wherein the determining the service priority of the service to be scheduled according to the service scene type further comprises:
and judging whether the broadcast channel at the current moment is idle, and if so, directly executing the service to be scheduled.
3. A service scheduling system based on low power consumption Bluetooth broadcasting is characterized by comprising:
the service type acquisition module is used for acquiring the service scene type of the service to be scheduled;
a service priority determining module, configured to determine a service priority of the service to be scheduled according to the service scene type; the service scheduling module is used for acquiring a corresponding service scheduling scheme according to the service priority and scheduling the service to be scheduled according to the service scheduling scheme;
the acquiring of the service scene type of the service to be scheduled includes:
acquiring the service scene type of the service to be scheduled according to the equipment type and the service scene corresponding to the service to be scheduled, wherein the service scene type comprises a real-time service, an in-time service and a best-effort service;
the determining the service priority of the service to be scheduled according to the service scene type includes:
judging whether a broadcast channel at the current moment is idle, if not, acquiring the service being executed at the current moment, and sequencing the service priority of the service to be scheduled and the service being executed at the current moment according to the service scene type so as to acquire a corresponding service scheduling scheme according to a sequencing result;
the obtaining a corresponding service scheduling scheme according to the service priority and scheduling the service to be scheduled according to the service scheduling scheme includes:
when the service scene type of the service to be scheduled and the service scene type of the service being executed at the current moment are real-time services, directly terminating the service to be scheduled;
when the service scene type of the service to be scheduled is a real-time service and the service scene type of the service being executed at the current moment is an in-time service or a best-effort service, directly executing the service to be scheduled;
when the service scene type of the service to be scheduled is a timely service and the service scene type of the service being executed at the current moment is a timely service or a real-time service, caching the service to be scheduled, and executing the service to be scheduled after the service being executed at the current moment is completed;
when the service scene type of the service to be scheduled is an in-time service and the service scene type of the service being executed at the current moment is a best-effort service, directly executing the service to be scheduled;
when the service scene type of the service to be scheduled is a best-effort service, caching the service to be scheduled, and executing the service to be scheduled after the service currently executed at the current moment is completed;
before determining the service priority of the service to be scheduled according to the service scene type, the method further includes:
setting service priority threshold values for the real-time service, the timely service and the best effort service so as to determine the service priority of the service to be scheduled according to the service priority threshold values;
the priority threshold comprises: defining the real-time service priority threshold value as 0; defining the timely service priority threshold value as 1-10; the best-effort service priority threshold is set to be 11-99, each service is designed according to time slices, each time slice is defined to be 100ms, and in one time slice, the service with the highest priority is selected for BLE broadcast communication;
wherein the priority of best effort traffic is variable, said priority of best effort traffic being set to the priority of initialization traffic if best effort traffic is executed; the priority of other non-executed best effort traffic is reduced by 1 until best effort traffic highest priority 11.
4. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for scheduling services based on bluetooth low energy broadcasting according to any of claims 1 to 2 when executing the program.
5. A non-transitory computer readable storage medium, having a computer program stored thereon, wherein the computer program, when being executed by a processor, implements the steps of the service scheduling method based on bluetooth low energy broadcasting according to any one of claims 1 to 2.
CN202011110681.9A 2020-10-16 2020-10-16 Service scheduling method and system based on low-power-consumption Bluetooth broadcast Active CN112291718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011110681.9A CN112291718B (en) 2020-10-16 2020-10-16 Service scheduling method and system based on low-power-consumption Bluetooth broadcast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011110681.9A CN112291718B (en) 2020-10-16 2020-10-16 Service scheduling method and system based on low-power-consumption Bluetooth broadcast

Publications (2)

Publication Number Publication Date
CN112291718A CN112291718A (en) 2021-01-29
CN112291718B true CN112291718B (en) 2022-08-23

Family

ID=74496373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011110681.9A Active CN112291718B (en) 2020-10-16 2020-10-16 Service scheduling method and system based on low-power-consumption Bluetooth broadcast

Country Status (1)

Country Link
CN (1) CN112291718B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113423098B (en) * 2021-04-28 2022-12-02 广州芯之联科技有限公司 Bluetooth scanning event scheduling method and device and Bluetooth equipment
CN113498049B (en) * 2021-04-28 2023-11-14 广州芯之联科技有限公司 Bluetooth data transmission event scheduling method and device and Bluetooth equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938297A (en) * 2009-06-29 2011-01-05 上海易狄欧电子科技有限公司 Data transmission method of Bluetooth link and Bluetooth master device
CN103560814B (en) * 2013-10-31 2019-01-25 宇龙计算机通信科技(深圳)有限公司 A kind of method and bluetooth equipment for matching bluetooth equipment
CN105873223A (en) * 2015-01-20 2016-08-17 中兴通讯股份有限公司 Service scheduling method, service scheduling device, wireless network controller and base station
CN104601725B (en) * 2015-02-03 2018-05-22 腾讯科技(深圳)有限公司 The response method and device of service request
CN108738156B (en) * 2017-04-21 2021-09-24 展讯通信(上海)有限公司 Bluetooth service scheduling method, device, equipment and computer readable storage medium
CN110475373B (en) * 2018-05-10 2021-05-18 华为技术有限公司 Method and related device for maintaining contention window parameters

Also Published As

Publication number Publication date
CN112291718A (en) 2021-01-29

Similar Documents

Publication Publication Date Title
CN112291718B (en) Service scheduling method and system based on low-power-consumption Bluetooth broadcast
US10178240B2 (en) Multi-card resource management method, device and multi-card terminal
CN104540176B (en) Wireless network access method, device and terminal
CN110336885B (en) Edge node distribution method, device, scheduling server and storage medium
CN106851799B (en) Method and device for sending heartbeat packet in long connection
US20180220396A1 (en) Method and device for communication based on trunking system
CN102314408B (en) Method, device, equipment and system for acquiring configuration information and configuring
CN108650667B (en) Terminal scheduling method and device
CN115278648B (en) Service carrier switching method and device
CN104052779A (en) Information recommendation method, system thereof and intelligent terminal
CN102624634A (en) Method and device for controlling network bandwidth on client side
CN110830964A (en) Information scheduling method, Internet of things platform and computer readable storage medium
WO2017071567A1 (en) Connection control method and device for wireless fidelity (wi-fi) hotspot
CN108933675B (en) Conference resource allocation method, device and storage medium
US8416930B2 (en) Apparatus and method for controlling an amount of concurrent calls
US20160112525A1 (en) Distribution control device and method for same, push distribution system, and storage medium
CN105634931A (en) Messaging service processing method and instant messaging server
CN114501053B (en) Live stream acquisition method and device
CN100421378C (en) A system and method for change of individual image
CN112449301B (en) Broadcast method of positioning auxiliary information, positioning server and RAN node
CN105978853B (en) Session scheduling method, scheduling server and terminal
CN110166368B (en) Cloud storage network bandwidth control system and method
CN116155829A (en) Network traffic processing method and device, medium and electronic equipment
CN112954744A (en) Access control method and device for mobile terminal
CN105553692A (en) Interactive voice response system, telephone customer service system and data processing method thereof

Legal Events

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