[go: up one dir, main page]

CN108632791B - Bluetooth master device and service configuration method - Google Patents

Bluetooth master device and service configuration method Download PDF

Info

Publication number
CN108632791B
CN108632791B CN201710177367.4A CN201710177367A CN108632791B CN 108632791 B CN108632791 B CN 108632791B CN 201710177367 A CN201710177367 A CN 201710177367A CN 108632791 B CN108632791 B CN 108632791B
Authority
CN
China
Prior art keywords
service
bluetooth
sub
preset
master device
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
CN201710177367.4A
Other languages
Chinese (zh)
Other versions
CN108632791A (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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201910797312.2A priority Critical patent/CN110460985B/en
Priority to CN201710177367.4A priority patent/CN108632791B/en
Publication of CN108632791A publication Critical patent/CN108632791A/en
Application granted granted Critical
Publication of CN108632791B publication Critical patent/CN108632791B/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/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

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

Abstract

A Bluetooth master device and a service configuration method are provided, the method comprises: when detecting that the Bluetooth master device carries out Bluetooth multi-service, equally dividing a communication cycle of a preset service of the Bluetooth master device into N sub-cycles, wherein the sub-cycles are related to a scanning cycle of the preset service of a Bluetooth slave device, and N is a natural number greater than 1; and distributing the preset service and the non-preset service in an alternative mode in each sub-period, wherein the services distributed at the starting positions of the adjacent sub-periods are different. By adopting the scheme, the probability of successful data receiving of the Bluetooth slave equipment can be improved when the Bluetooth master equipment carries out Bluetooth multi-service.

Description

Bluetooth master device and service configuration method
Technical Field
The embodiment of the invention relates to the technical field of Bluetooth, in particular to Bluetooth master equipment and a service configuration method.
Background
When the Bluetooth equipment carries out multi-service, the Bluetooth equipment is the Bluetooth master equipment. For example, when the bluetooth master device performs a Page/Inquiry (Page/Inquiry) service and there are other non-Page/Inquiry services, time division multiplexing is required at this time.
However, when the bluetooth master device performs bluetooth multi-service, because a time division multiplexing manner is adopted to process multiple services, it often happens that the bluetooth slave device cannot receive an ID data packet sent by the bluetooth master device in the Page/Inquiry service, so that the bluetooth slave device and the bluetooth master device cannot be queried or cannot be successfully paired.
For example, in the protocol of Bluetooth 4.0 and beyond, two parts, namely, Classic (Classic) Bluetooth and Bluetooth Low Energy (BLE) are included. When dual-mode search is performed, classic bluetooth Inquiry and BLE Scan (Scan) are performed simultaneously, at this time, time division multiplexing is performed on classic bluetooth Inquiry service and BLE Scan, and it often happens that a bluetooth slave device cannot receive an ID data packet sent by a bluetooth master device through the classic bluetooth Inquiry.
Disclosure of Invention
One of the technical problems solved by the embodiment of the invention is how to improve the probability of successful data reception of the Bluetooth slave equipment when the Bluetooth master equipment carries out Bluetooth multi-service.
To solve the foregoing technical problem, an embodiment of the present invention provides a method for service configuration of a bluetooth master device, including: when detecting that the Bluetooth master device carries out Bluetooth multi-service, equally dividing a communication cycle of a preset service of the Bluetooth master device into N sub-cycles, wherein the sub-cycles are related to a scanning cycle of the preset service of a Bluetooth slave device, and N is a natural number greater than 1; and distributing the preset service and the non-preset service in an alternative mode in each sub-period, wherein the services distributed at the starting positions of the adjacent sub-periods are different.
Optionally, the allocating the preset service and the non-preset service in each sub-period in an alternating manner respectively includes: according to a preset time slice division rule, dividing each sub-period into M time slices respectively, wherein M is a natural number greater than 1; and respectively distributing the preset service and the non-preset service into M time slices corresponding to each sub-period in an alternating mode.
Optionally, the preset time slice division rule is set according to the bluetooth service type.
Optionally, M is an even number.
Optionally, the sub-period is 1.28 s.
Optionally, the preset service is a paging service or an inquiry service.
An embodiment of the present invention further provides a bluetooth master device, including: detection unit, partition unit and distribution unit, wherein: the detection unit is suitable for detecting whether the Bluetooth main equipment carries out Bluetooth multi-service or not; the dividing unit is suitable for dividing a communication cycle of a preset service of the Bluetooth master device into N sub-cycles when the detecting unit detects that the Bluetooth master device carries out Bluetooth multi-service, wherein the sub-cycles are related to a scanning cycle of the preset service of the Bluetooth slave device, and N is a natural number greater than 1; the distribution unit is suitable for distributing the preset service and the non-preset service in an alternating mode in each sub-period, and the services distributed at the starting positions of the adjacent sub-periods are different.
Optionally, the allocation unit is adapted to divide each sub-period into M time slices according to a preset time slice division rule, where M is a natural number greater than 1; and respectively distributing the preset service and the non-preset service into the time slices corresponding to the sub-periods in an alternating mode.
Optionally, the preset time slice division rule is set according to a bluetooth service type.
Optionally, M is an even number.
Optionally, the sub-period is 1.28 s.
Optionally, the preset service is a paging service or an inquiry service.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
when the Bluetooth master device carries out Bluetooth multi-service, a communication cycle of a preset service is equally divided into N sub-cycles, the preset service and a non-preset service are respectively arranged in each sub-cycle in an alternating mode, the services arranged at the starting positions of adjacent sub-cycles are different, and the sub-cycles are related to a scanning cycle of the preset service of the Bluetooth slave device. Therefore, when the bluetooth master device is in the bluetooth multi-service, since the services arranged at the start of the adjacent sub-periods are different, even if the bluetooth slave device cannot receive the data corresponding to the preset service sent by the bluetooth master device in the scanning period of the current preset service, the data may be received in the next scanning period, so that the probability that the bluetooth slave device receives the data sent by the bluetooth master device in the preset service as a whole can be improved.
Furthermore, due to the fact that the time slices occupied by different Bluetooth services are different, the preset time slice division rule is set according to the type of the Bluetooth service, the flexibility of setting the preset time slice division rule can be improved, and the actual requirements of the Bluetooth services are met better.
Drawings
Fig. 1 is a flowchart of a service configuration method of a bluetooth master device in an embodiment of the present invention;
fig. 2 is a schematic diagram of frequency point usage of a bluetooth master device in paging service or inquiry service according to an embodiment of the present invention;
fig. 3 is a schematic diagram of service allocation in two adjacent sub-periods of a communication period of a preset service according to an embodiment of the present invention;
fig. 4 is a schematic diagram of service allocation in two adjacent sub-periods in a communication period of another preset service according to an embodiment of the present invention;
fig. 5 is a flowchart of a service configuration method of a bluetooth slave device in an embodiment of the present invention;
FIG. 6 is a flowchart of a method for calculating a starting time of a next scanning period according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a bluetooth master device in an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a bluetooth slave device in the embodiment of the present invention.
Detailed Description
When the bluetooth device performs multiple services, for example, performs a paging (Page) service or an Inquiry (Inquiry) service, and there are other non-paging/Inquiry services at the same time, time division multiplexing is required at this time. However, when the bluetooth master device performs bluetooth multi-service, because a time division multiplexing manner is used to process multiple services, it often happens that the bluetooth slave device cannot receive an ID packet sent by the bluetooth master device during a certain service, and when the service is Page or Inquiry service, the bluetooth master device and the bluetooth slave device cannot be queried or cannot be successfully paired. For example, when an Inquiry Scan (Inquiry Scan) period of the bluetooth slave device is in an integral multiple relationship with a period of other non-paging/Inquiry services of the bluetooth master device, it may happen that the bluetooth slave device cannot receive an ID packet sent by the bluetooth master device through a classic bluetooth Inquiry, so that the bluetooth master device and the bluetooth slave device cannot be inquired or cannot be successfully paired.
In order to solve the above problem, when the bluetooth master device performs bluetooth multi-service, a communication cycle of a preset service is equally divided into N sub-cycles, and the preset service and a non-preset service are respectively arranged in an alternating manner in each sub-cycle, and services arranged at the start of adjacent sub-cycles are different, and the sub-cycles are related to a scanning cycle of the preset service of the bluetooth slave device. Therefore, even if the bluetooth slave device does not receive the data corresponding to the preset service sent by the bluetooth master device in the scanning period of the current preset service, the data may be received in the next scanning period, so that the probability that the bluetooth slave device receives the data sent by the bluetooth master device in the preset service as a whole can be improved.
In order to make the aforementioned objects, features and advantages of the embodiments of the present invention more comprehensible, specific embodiments accompanied with figures are described in detail below.
Referring to fig. 1, a flowchart of a service configuration method of a bluetooth master device in an embodiment of the present invention is shown, and details are described below through specific steps.
Step 11, when detecting that the bluetooth master device performs bluetooth multi-service, equally dividing the communication cycle of the preset service of the bluetooth master device into N sub-cycles.
In the specific implementation, when the bluetooth master device performs multiple services, multiple services need to be arranged in a time division multiplexing manner. For example, when the bluetooth master device performs dual mode search, that is, when a classic bluetooth polling (Inquiry) service and a low power consumption bluetooth scanning (BLE Scan) service are performed simultaneously, the classic bluetooth Inquiry service and the BLE Scan service are time division multiplexed, and when an Inquiry Scan cycle of the bluetooth slave device is exactly an integral multiple of a BLE Scan cycle of the bluetooth master device, an ID data packet sent by the bluetooth master device Inquiry service cannot be received by the bluetooth slave device, so that a blind area occurs.
In order to avoid the occurrence of the blind area, in a specific implementation, a communication cycle of a preset service of the bluetooth master device may be equally divided into N sub-cycles, where N is a natural number greater than 1. The sub-period is related to a scanning period of the preset service of the Bluetooth slave device.
In a specific implementation, the preset service may be a Page service or an Inquiry service. For example, when performing a Page service or an Inquiry service, 32 frequency points are generally allocated to the Page service or the Inquiry service, and the 32 frequency points are divided into two sequences (Train), which can be denoted as a-Train and B-Train for convenience of description, each Train includes 16 frequency points.
Referring to fig. 2, a schematic diagram of frequency point usage of a bluetooth master device in paging service or inquiry service in the embodiment of the present invention is shown. When performing bluetooth data transmission, each Train may include a plurality of transmission time slots 21 and reception time slots 22, each transmission time slot 21 transmits two ID data packets using different frequency points, and the reception time slot 22 monitors using the frequency point of the previous transmission time slot. The Train comprises 16 frequency points which are f1, f2, … …, f15 and f16 in sequence. Each Train takes 1.25ms 8 to 10ms, and the bluetooth protocol requires at least 256 repetitions of each Train, so that a total of 10ms 256 to 2.56s is consumed per Train.
In a specific implementation, the communication cycle of the Inquiry service may be 10.24s, that is, each time the Inquiry service needs to execute the following sequence of a-Train, B-Train, a-Train, and B-Train. And starting timing when the Bluetooth master device starts to enter the Inquiry state, finishing timing after 10.24s, and reporting to inform the Bluetooth master device that the Inquiry service is finished. The communication period of the Page service can be 5.12 s. The bluetooth protocol requires that the scan period of the Page service or the Inquiry service is at least 2.56s, while the scan period of the Page service or the Inquiry service of the current conventional bluetooth slave device is generally 1.28 s.
Therefore, in an embodiment of the present invention, when the bluetooth master device performs a bluetooth multi-service, in order to enable the bluetooth slave device to receive an ID packet sent by the bluetooth master device, especially when a Page service or an Inquiry service is performed, the probability that the bluetooth master device and the bluetooth slave device are queried and successfully paired is increased, where the sub-period is 1.28 s.
In the implementation, each Train is divided into two parts, so that the communication period of the preset service can be divided into a plurality of sub-periods. For example, when the communication cycle of the Page service is 5.26s, the Page service can be divided into 4 sub-cycles. For another example, when the communication cycle of the Inquiry service is 10.24s, it may be equally divided into 8 sub-cycles. It can be understood that, according to different scanning periods of preset services of the bluetooth slave device, the number of the divided sub-periods is different, and the specific number is not limited.
And step 12, distributing the preset service and the non-preset service in an alternative mode in each sub-period.
In a specific implementation, when the preset service and the non-preset service are allocated in an alternating manner in each sub-period, the services allocated at the start of adjacent sub-periods are different. For example, if the preset service is allocated at the beginning of the first sub-period, the non-preset service is allocated at the beginning of the second sub-period. If the non-preset service is allocated at the beginning of the first sub-period, the preset service is allocated at the beginning of the second sub-period.
In a specific implementation, each sub-period may be divided into M time slices according to a preset time slice division rule, where M is a natural number greater than 1. And respectively distributing the preset service and the non-preset service into M time slices corresponding to each sub-period in an alternating mode.
In a specific implementation, the time slice allocated by the non-default service may include one non-default service or may include multiple non-default services.
In an embodiment of the present invention, the bluetooth services performed by the bluetooth master device are a default service a and a non-default service B, respectively. Referring to fig. 3, a schematic diagram of service allocation in two adjacent sub-periods in a communication period of a preset service in the embodiment of the present invention is shown. The traffic distribution conditions in the first sub-period 31 are A, B, A, B, … …, A, B. The traffic distribution conditions in the second sub-period 32 are B, A, B, A, … …, B, A. The first sub-period and the second sub-period are adjacent sub-periods.
In another embodiment of the present invention, the bluetooth services performed by the bluetooth master device are a default service a, a non-default service B, and a non-default service C, respectively. Referring to fig. 4, a schematic diagram of service allocation in two adjacent sub-periods in a communication period of another preset service in the embodiment of the present invention is shown. The traffic allocation cases in the first sub-period 41 are a, BC, … …, A, BC. The traffic allocation case in the second sub-period 42 is BC, a, … …, BC, a. The first sub-period and the second sub-period are adjacent sub-periods.
It can be understood that the sequence and type of the non-default services allocated in the time slice allocated by the non-default service may be configured according to the actual service requirement of the bluetooth master device. For example, the preset service a, the non-preset service B, and the non-preset service C may also be allocated as follows: the service allocation conditions in a certain sub-period are A, BC, … … and A, BC, and the service allocation conditions in the adjacent sub-periods are C, A, BC, A, … … and B, A.
In a specific implementation, the preset time slice division rule may be determined according to different factors.
In an embodiment of the present invention, the preset time slice division rule is set according to a bluetooth service type. For example, according to whether the currently performed service is a Page service, an Inquiry service, a call service, a song listening service, a file transfer service, or the like, a time slice division rule is determined to obtain the time length of a time slice occupied by the preset service and a time slice not occupied by the preset service.
In another embodiment of the present invention, the time slice division rule is determined according to a scanning cycle type of the preset service, for example, a standard type, an alternate type, and the like. Wherein the standard type time window is 11.25ms, and one of the 32 frequency points of the Page service or the Inquiry service is used for monitoring. The size of the alternating type window is 22.5ms, the alternating type window is divided into two small windows, the time of each small window is 11.25ms, and different frequency points are used for monitoring.
In order to further improve the data, which is received by the bluetooth slave device and sent by the bluetooth master device during the preset service, when the bluetooth master device is in the bluetooth multi-service state, in an embodiment of the present invention, the sub-period may be divided into an even number of time slices on average.
As can be seen from the above, when the bluetooth master device performs multiple bluetooth services, a communication cycle of a preset service is equally divided into N sub-cycles, and the preset service and the non-preset service are respectively arranged in an alternating manner in each sub-cycle, and services arranged at the start of adjacent sub-cycles are different, where the sub-cycles are related to a scanning cycle of the preset service of the bluetooth slave device. Therefore, when the bluetooth master device is in the bluetooth multi-service, because the services arranged at the start of the adjacent sub-periods are different, even if the bluetooth slave device cannot receive the data corresponding to the preset service sent by the bluetooth master device in the scanning period of the current preset service, the bluetooth slave device may receive the data corresponding to the preset service sent by the bluetooth master device in the next scanning period, so that the probability that the bluetooth slave device receives the data sent by the bluetooth master device in the preset service as a whole is greatly improved, and the probability that the bluetooth master device and the bluetooth slave device are inquired or successfully paired can be improved.
In a specific implementation, when the bluetooth master device is in the bluetooth multi-service, and when a scanning period of a preset service of the bluetooth slave device is in an integral multiple relationship with a communication period of a non-preset service of the bluetooth master device, the bluetooth slave device may not receive an ID packet sent by the bluetooth master device under some services, so that a blind zone occurs. When the bluetooth master device transmits data by using the service configuration method provided in the above embodiment of the present invention, the probability that the bluetooth slave device receives the ID data packet transmitted by the bluetooth master device is improved. However, if the bluetooth master device adopts a conventional service configuration manner and does not adopt the service configuration method of the bluetooth master device provided in the above embodiment of the present invention, the problem that the bluetooth slave device cannot receive data sent by the bluetooth master device is still not solved effectively.
To solve the above problem, referring to fig. 5, an embodiment of the present invention further provides a flowchart of a service configuration method of a bluetooth slave device, which is described in detail below with reference to specific steps.
And step 51, after detecting that the current scanning period of the preset service is finished, shifting the next scanning period of the preset service by a corresponding offset according to a preset offset rule.
In a specific implementation, the offset may include: offset value and offset direction. The offset value may be determined by taking a modulo p operation of a random function, p being a natural number greater than 1. The offset direction may be determined using a modulo-2 operation of a random function.
In a specific implementation, the size of the modulo p taken by the random function may be determined according to a scanning type of a preset service. When the offset direction is determined by modulo-2 operation of a random function, the sign may be set to be positive, i.e., the offset value is added, when the modulo result is an odd number, and the sign may be set to be negative, i.e., the offset value is subtracted, when the modulo result is an even number. It is understood that, when the modulo result is an odd number, the sign may be regarded as negative, i.e. the offset value is subtracted; when the modulo result is even, the sign is taken to be positive, i.e. the offset value is added.
And step 52, calculating the starting time of the next scanning period of the preset service.
In specific implementation, a current clock is acquired, and the starting time of the next scanning period of the preset service is calculated by combining the calculated offset value and offset direction corresponding to the next scanning period of the preset service and the period of the preset service.
In a specific implementation, an internal system clock is set in the bluetooth device, and when it is detected that the calculated starting time of the next scanning period is reached, the preset service may be started to receive the data sent by the master device.
According to the above, the scanning period of the preset service of the bluetooth slave device is shifted according to the preset shifting rule, so that the situation that the scanning period is overlapped with the non-preset service period of the bluetooth master device can be avoided, and the probability of successfully receiving the data sent by the bluetooth master device can be improved even if the bluetooth master device is in the bluetooth multi-service state.
In a specific implementation, the preset service may be a paging scanning service or an inquiry scanning service. By adopting the service configuration method of the Bluetooth slave device provided by the embodiment of the invention, the success rate of the inquiry and pairing between the Bluetooth slave device and the Bluetooth master device can be improved.
In a specific implementation, the calculation of the start time of the next scan period in step 52 may be performed in the following manner, referring to fig. 6, which is a flowchart of a method for calculating the start time of the next scan period according to an embodiment of the present invention.
And step 61, calculating the offset and the starting time of the next scanning period before the offset.
In a specific implementation, under the condition that no offset is made, the starting time of the next scanning period of the preset service is calculated by adopting a formula (1):
Next_scan_time=Scan_interval+Current_clk; (1)
wherein, Next _ Scan _ time represents the starting time of the Next scanning period, Scan _ interval represents the period of the preset service, and Current _ clk represents the Current clock.
And calculating by adopting a random function modulo n to obtain an offset, wherein the offset is random ()% n. Wherein n is a positive integer, and the operation result obtained by adopting the random function modulo n operation is any integer between 0 and n. In one implementation, the Bluetooth clock period is 312.5 μ s and the maximum offset is offsetmax312.5 μ s n, minimum offsetmin0. For example, when n is 32, the offset value ranges from 0ms to 10 ms.
In a specific implementation, the offset value is determined according to a scanning period type of a preset service, that is, the value of n is determined. The scanning cycle type of the preset service may be a standard type or an alternate type. When the preset service is a Page service or an Inquiry service, the standard type time window is 11.25ms, and one of the 32 frequency points of the Page service or the Inquiry service is used for monitoring. The size of the alternating type window is 22.5ms, the alternating type window is divided into two small windows, the time of each small window is 11.25ms, and different frequency points are used for monitoring. Therefore, the offset value corresponding to the standard type adopted by the scanning period type of the preset service may be greater than the offset value corresponding to the alternate type. The value of the specific offset value may also be determined with reference to a preset service communication period of the bluetooth master device or a bluetooth service type of the bluetooth slave device. After the scanning period of the preset service of the Bluetooth slave device is shifted, the length of the whole scanning period still floats near 1.28s, so that the requirement of a Bluetooth protocol can be met, and meanwhile, the occurrence of a blind area can be avoided.
In step 62, it is determined whether or not Random ()% 2 is 0.
If yes, executing step 63; when the judgment result is negative, step 64 is executed.
Step 63 subtracts the offset time from the calculated start time of the next scanning cycle, and takes the calculation result as the start time of the next scanning cycle.
In the implementation, the starting time of the next scanning period is calculated by using the formula (2):
Next_scan_time-=offset; (2)
the Next _ scan _ time represents the start time of the Next scanning period, the offset represents the offset, and the difference between the Next _ scan _ time and the offset is newly given to the Next _ scan _ time.
Step 64, adding the offset time to the next scanning period starting time obtained by calculation, and using the calculation result as the next scanning period starting time.
In the implementation, the starting time of the next scanning period is calculated by using the formula (3):
Next_scan_time+=offset; (3)
wherein, the Next _ scan _ time represents the start time of the Next scanning period, the offset represents the offset, and the sum of the Next _ scan _ time and the offset is newly given to the Next _ scan _ time.
In order to facilitate better understanding and implementation of the embodiments of the present invention for those skilled in the art, the embodiments of the present invention further provide a bluetooth master device.
Referring to fig. 7, a schematic structural diagram of a bluetooth master device in the embodiment of the present invention is shown. The bluetooth master device 70 may include: a detection unit 71, a dividing unit 72, and an assigning unit 73, wherein:
the detection unit 71 is adapted to detect whether the bluetooth master device performs bluetooth multi-service;
the dividing unit 72 is adapted to, when the detecting unit detects that the bluetooth master device performs multiple bluetooth services, equally divide a communication cycle of a preset service of the bluetooth master device into N sub-cycles, where the sub-cycles are related to a scanning cycle of the preset service of the bluetooth slave device, and N is a natural number greater than 1;
the allocating unit 73 is adapted to allocate the preset service and the non-preset service in an alternating manner in each sub-period, and the services allocated at the start of adjacent sub-periods are different.
In a specific implementation, the allocating unit 73 is adapted to divide each sub-period into M time slices according to a preset time slice division rule, where M is a natural number greater than 1; and respectively distributing the preset service and the non-preset service into M time slices corresponding to each sub-period in an alternating mode.
In a specific implementation, the preset time slice division rule is set according to a bluetooth service type.
In a specific implementation, M is an even number.
In an embodiment of the present invention, the sub-period is 1.28 s.
In a specific implementation, the preset service may be a paging service or an inquiry service.
In the detailed description, the working principle and the working process of the bluetooth master device 70 may refer to the related description in the service configuration method of the bluetooth master device provided in the foregoing embodiment of the present invention, and are not described herein again.
Referring to fig. 8, a bluetooth slave device in an embodiment of the present invention is shown. The bluetooth slave device 80 may include: an offset unit 81 and a calculation unit 82, wherein:
the shifting unit 81 is adapted to shift, according to a preset shifting rule, a next scanning period of a preset service by a corresponding shift amount after detecting that a current scanning period of the preset service is ended;
the calculating unit 82 is adapted to calculate a starting moment of a next scanning period of the preset service.
In a specific implementation, the offset includes: the offset unit is suitable for determining the offset value by adopting modulo p operation of a random function, wherein p is a natural number greater than 1; the offset direction is determined using a modulo-2 operation of a random function.
In a specific implementation, the calculating unit 82 is adapted to calculate a starting time of a next scanning period of the preset service according to an offset value corresponding to the next scanning period of the preset service, an offset direction, a current clock, and the scanning period of the preset service.
The offset unit 81 is adapted to determine the offset value according to a scanning cycle type of a preset service.
The preset service may be a paging scanning service or an inquiry scanning service.
In a specific implementation, the preset service scanning period type may be a standard type or an alternate type.
In the detailed description, the working principle and the working process of the bluetooth device 80 may refer to the related description in the service configuration method of the bluetooth slave device provided in the foregoing embodiment of the present invention, and are not described herein again.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A service configuration method of a Bluetooth master device is characterized by comprising the following steps:
when detecting that the Bluetooth master device carries out Bluetooth multi-service, equally dividing a communication cycle of a preset service of the Bluetooth master device into N sub-cycles, wherein the sub-cycles are the same as a scanning cycle of the preset service of a Bluetooth slave device, and N is a natural number greater than 1;
distributing the preset service and the non-preset service in an alternating mode in each sub-period, wherein the services distributed at the starting positions of adjacent sub-periods are different;
wherein, the allocating the preset service and the non-preset service in each sub-period according to an alternative mode respectively comprises:
according to a preset time slice division rule, dividing each sub-period into M time slices respectively, wherein M is a natural number greater than 1;
and respectively distributing the preset service and the non-preset service into M time slices corresponding to each sub-period in an alternating mode.
2. The method of claim 1, wherein the preset time slice division rule is set according to a bluetooth service type.
3. The service configuration method of the bluetooth master device as claimed in claim 1, wherein M is an even number.
4. The method of claim 1, wherein the sub-period is 1.28 s.
5. The method of claim 1, wherein the predetermined service is a paging service or an inquiry service.
6. A bluetooth master device, comprising: detection unit, partition unit and distribution unit, wherein:
the detection unit is suitable for detecting whether the Bluetooth main equipment carries out Bluetooth multi-service or not;
the dividing unit is suitable for dividing a communication cycle of a preset service of the Bluetooth master device into N sub-cycles when the detecting unit detects that the Bluetooth master device carries out Bluetooth multi-service, wherein the sub-cycles are the same as a scanning cycle of the preset service of the Bluetooth slave device, and N is a natural number greater than 1;
the distribution unit is suitable for distributing the preset service and the non-preset service in an alternative mode in each sub-period, and the services distributed at the starting positions of adjacent sub-periods are different;
the distribution unit is suitable for dividing each sub-period into M time slices according to a preset time slice division rule, wherein M is a natural number greater than 1; and respectively distributing the preset service and the non-preset service into the time slices corresponding to the sub-periods in an alternating mode.
7. The bluetooth master device according to claim 6, wherein the preset time slice division rule is set according to a bluetooth service type.
8. The Bluetooth master of claim 6, wherein M is an even number.
9. The Bluetooth master device of claim 6, wherein the sub-period is 1.28 s.
10. The Bluetooth master device of claim 6, wherein the predetermined service is a paging service or an inquiry service.
CN201710177367.4A 2017-03-23 2017-03-23 Bluetooth master device and service configuration method Active CN108632791B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910797312.2A CN110460985B (en) 2017-03-23 2017-03-23 Bluetooth slave equipment and service configuration method
CN201710177367.4A CN108632791B (en) 2017-03-23 2017-03-23 Bluetooth master device and service configuration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710177367.4A CN108632791B (en) 2017-03-23 2017-03-23 Bluetooth master device and service configuration method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910797312.2A Division CN110460985B (en) 2017-03-23 2017-03-23 Bluetooth slave equipment and service configuration method

Publications (2)

Publication Number Publication Date
CN108632791A CN108632791A (en) 2018-10-09
CN108632791B true CN108632791B (en) 2021-06-08

Family

ID=63707524

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710177367.4A Active CN108632791B (en) 2017-03-23 2017-03-23 Bluetooth master device and service configuration method
CN201910797312.2A Active CN110460985B (en) 2017-03-23 2017-03-23 Bluetooth slave equipment and service configuration method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910797312.2A Active CN110460985B (en) 2017-03-23 2017-03-23 Bluetooth slave equipment and service configuration method

Country Status (1)

Country Link
CN (2) CN108632791B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112825572B (en) 2019-11-20 2025-01-17 联发科技(新加坡)私人有限公司 Bluetooth inquiry/paging method and communication equipment
CN113841441B (en) * 2021-03-23 2022-11-18 华为技术有限公司 Communication method and device
CN113676881B (en) * 2021-08-06 2024-05-07 Oppo广东移动通信有限公司 Equipment control method, device, electronic equipment and storage medium
CN116528209B (en) * 2023-05-05 2023-11-24 荣耀终端有限公司 Bluetooth scanning method, equipment, chip system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103392370A (en) * 2011-01-20 2013-11-13 高通股份有限公司 Method and apparatus to facilitate support for multi-radio coexistence
CN105050033A (en) * 2015-07-01 2015-11-11 惠州Tcl移动通信有限公司 Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth
CN106162531A (en) * 2016-08-16 2016-11-23 科立讯通信股份有限公司 The operation method of Bluetooth communication system
CN106375939A (en) * 2016-08-29 2017-02-01 山东康威通信技术股份有限公司 Dual-mode Bluetooth-based data transmission system and method in underground tunnel

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6795421B1 (en) * 2002-02-12 2004-09-21 Nokia Corporation Short-range RF access point design enabling services to master and slave mobile devices
CN101304606B (en) * 2008-06-30 2011-10-05 上海华为技术有限公司 Method and device for adjusting adjacent cell frame offset
US20100027510A1 (en) * 2008-08-04 2010-02-04 Qualcomm Incorporated Enhanced idle handoff to support femto cells
KR101642309B1 (en) * 2008-11-06 2016-07-25 엘지전자 주식회사 A method for monitoring a downlink control channel
CN103385016B (en) * 2011-02-24 2016-08-10 三菱电机株式会社 Radio communication device, wireless communication system and frequency allocation method
US9641239B2 (en) * 2012-06-22 2017-05-02 Fitbit, Inc. Adaptive data transfer using bluetooth
US9173190B2 (en) * 2012-06-29 2015-10-27 Qualcomm Incorporated System and method for controlling paging delay
US9445222B2 (en) * 2012-10-30 2016-09-13 Nokia Technologies Oy Using Bluetooth low energy
US9668297B2 (en) * 2013-05-29 2017-05-30 Texas Instruments Incorporated BLE scatternet system and method
KR102094505B1 (en) * 2013-10-04 2020-03-27 삼성전자주식회사 Method and device for broadcasting a ble packet, and method and device for adjusting operation mode of an application processor
CN103781158A (en) * 2013-11-30 2014-05-07 北京智谷睿拓技术服务有限公司 Wireless network access method and access apparatus
US10547418B2 (en) * 2014-06-10 2020-01-28 Qualcomm Incorporated Coordinated operations of millimeter wavelength wireless access networks
US9998867B2 (en) * 2014-09-29 2018-06-12 Apple Inc. Content discovery using beacons
CN105592493A (en) * 2014-10-24 2016-05-18 中兴通讯股份有限公司 Detection method and apparatus of scrambling code conflict cell, and network element
JP6784675B2 (en) * 2014-12-09 2020-11-11 マイリオタ ピーティーワイ エルティーディーMyriota Pty Ltd Multi-carrier communication system
WO2016149940A1 (en) * 2015-03-26 2016-09-29 华为技术有限公司 Message modification processing method, device and system
CN104811895B (en) * 2015-04-01 2018-04-20 石姗姗 Connection method and device of low-power-consumption Bluetooth
CN106055175B (en) * 2016-05-31 2019-01-25 青岛海信电器股份有限公司 Infrared touch panel scan method and device, touch-screen system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103392370A (en) * 2011-01-20 2013-11-13 高通股份有限公司 Method and apparatus to facilitate support for multi-radio coexistence
CN105050033A (en) * 2015-07-01 2015-11-11 惠州Tcl移动通信有限公司 Piconet networking interconnection method and system based on low-power-dissipation Bluetooth and traditional Bluetooth
CN106162531A (en) * 2016-08-16 2016-11-23 科立讯通信股份有限公司 The operation method of Bluetooth communication system
CN106375939A (en) * 2016-08-29 2017-02-01 山东康威通信技术股份有限公司 Dual-mode Bluetooth-based data transmission system and method in underground tunnel

Also Published As

Publication number Publication date
CN110460985A (en) 2019-11-15
CN108632791A (en) 2018-10-09
CN110460985B (en) 2022-09-16

Similar Documents

Publication Publication Date Title
US10999782B2 (en) Method and apparatus for transmitting and receiving resource allocation information in a wireless communication system
CN108632791B (en) Bluetooth master device and service configuration method
EP3404991B1 (en) Random access method, communication node and non-transitory computer-readable medium
EP2568729B1 (en) Method and apparatus for sounding reference signal resource allocation in long term evolution system
DK3105988T3 (en) USER DEVICES, NETWORKS AND PROCEDURES THEREOF TO MANAGE PRAMBEL TRANSMISSIONS ON A RANDOM ACCESS CHANNEL IN A RADIO COMMUNICATION NETWORK
CN103748942B (en) Accidental access method, base station and terminal
US20190045525A1 (en) A method and apparatus for determining the scheduling gap
US10212573B2 (en) Coverage-deficient terminal connection procedures
CN106453181B (en) Information processing method, device and system
CN106992804A (en) The sending method and device of a kind of detection reference signal
KR102034529B1 (en) Method for collision avoidance in synchronized wireless communication system
CN111385075B (en) Side link information transmission method, user terminal and computer readable storage medium
CN105281864B (en) A kind of data transmission method and device
US8724569B2 (en) Radio base station and mobile communication method
KR20160019538A (en) Air interface synchronization method, base station, control apparatus and wireless communication system
CN108632982B (en) Base station, synchronization signal block configuration method, user equipment and synchronization method thereof
CN106060931A (en) Information processing method and user equipment
KR102396735B1 (en) Transmission method and device, computer readable storage medium
CN108207027A (en) A kind of accidental access method and equipment
CN107623652B (en) Data transmission method and device
US20120093123A1 (en) Radio base station and mobile communication method
CN105850078A (en) Channel access control method and apparatus, and related device
WO2008018745A2 (en) Method and apparatus for transmitting signals according to the segmented access
WO2012089174A1 (en) Method and device for selecting a reference signal root sequence group

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