Service discovery method and device and computer equipment
By adjusting the Bluetooth communication time interval between the vehicle terminal and the mobile terminal, the problem of long service discovery time caused by too many vehicle terminal services is solved, and faster service discovery efficiency is achieved.
Patent Information
- Application Number
- CN202510970334.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-14
- Publication Date
- 2025-09-30
AI Technical Summary
When there are too many in-vehicle terminal services, the service discovery process of the mobile terminal takes too long, resulting in poor efficiency.
The vehicle terminal sends a Bluetooth adjustment request to the mobile terminal, instructing it to perform Bluetooth communication according to the target time interval and receive a service discovery request for service discovery, where the target time interval is less than or equal to the preset time interval upper limit.
By shortening the Bluetooth communication time interval, the mobile terminal can perform service discovery more quickly, thereby improving the efficiency of service discovery.
Smart Images

Figure CN120730281A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to Bluetooth communication technology, and relate to but are not limited to a service discovery method and apparatus, device, and storage medium. Background Art
[0002] In a scenario where an in-vehicle terminal and a mobile terminal interact with each other, such as a service discovery scenario, the mobile terminal is usually required to traverse all services in the in-vehicle terminal to achieve service discovery.
[0003] However, when there are too many services in the vehicle-mounted terminal, the process of service discovery by the mobile terminal may take too long, resulting in poor efficiency of service discovery. Summary of the Invention
[0004] In view of this, the service discovery method, apparatus, and computer device provided in the embodiments of the present application are implemented as follows:
[0005] In one aspect of an embodiment of the present application, a service discovery method is provided, which is applied to a vehicle-mounted terminal, the vehicle-mounted terminal including a Bluetooth module, and the method includes:
[0006] When a Bluetooth connection is established with a mobile terminal, a Bluetooth adjustment request is sent to the mobile terminal, where the Bluetooth adjustment request is used to instruct the mobile terminal to perform Bluetooth communication according to a target time interval, where the target time interval is less than or equal to a preset time interval upper limit;
[0007] When the mobile terminal performs Bluetooth communication according to the target time interval, a service discovery request sent by the mobile terminal is received, and the mobile terminal is enabled to perform service discovery based on the service discovery request.
[0008] Another aspect of an embodiment of the present application provides a service discovery method, which is applied to a mobile terminal, wherein the mobile terminal includes a Bluetooth module. The method includes:
[0009] When a Bluetooth connection is established with the vehicle-mounted terminal, receiving a Bluetooth adjustment request sent by the vehicle-mounted terminal;
[0010] Based on the Bluetooth adjustment request, Bluetooth communication is performed with the vehicle terminal according to the target time interval, and a service discovery request is sent to the vehicle terminal for service discovery, where the target time interval is less than or equal to the preset time interval upper limit.
[0011] In another aspect of the embodiment of the present application, a service discovery device is provided, which is applied to a vehicle-mounted terminal, wherein the vehicle-mounted terminal includes a Bluetooth module. The device includes: an interval adjustment module and a discovery permission module;
[0012] An interval adjustment module is configured to send a Bluetooth adjustment request to the mobile terminal when a Bluetooth connection is established with the mobile terminal, the Bluetooth adjustment request being used to instruct the mobile terminal to perform Bluetooth communication according to a target time interval, where the target time interval is less than a preset time interval upper limit;
[0013] The discovery enabling module is configured to receive a service discovery request sent by the mobile terminal when the mobile terminal performs Bluetooth communication according to a target time interval, and enable the mobile terminal to perform service discovery based on the service discovery request.
[0014] In another aspect of the embodiment of the present application, a service discovery device is provided, which is applied to a mobile terminal, wherein the mobile terminal includes a Bluetooth module. The device includes: a request receiving module, a service discovery module;
[0015] The request receiving module is used to receive the Bluetooth adjustment request sent by the vehicle terminal when a Bluetooth connection is established with the vehicle terminal;
[0016] The service discovery module is used to perform Bluetooth communication with the vehicle terminal according to the target time interval based on the Bluetooth adjustment request, and send a service discovery request to the vehicle terminal for service discovery, where the target time interval is less than the preset time interval upper limit.
[0017] The computer device provided in the embodiment of the present application includes a memory and a processor. The memory stores a computer program that can be run on the processor. When the processor executes the program, the method of the embodiment of the present application is implemented.
[0018] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.
[0019] In the service discovery method, apparatus, and computer device provided in the embodiments of the present application, when a Bluetooth connection is established with a mobile terminal, the vehicle-mounted terminal can send a Bluetooth adjustment request to the mobile terminal, and the Bluetooth adjustment request is used to instruct the mobile terminal to perform Bluetooth communication according to a target time interval, and the target time interval is less than or equal to the upper limit of the preset time interval; when the mobile terminal performs Bluetooth communication according to the target time interval, the vehicle-mounted terminal receives the service discovery request sent by the mobile terminal, and based on the service discovery request, enables the mobile terminal to perform service discovery. Among them, since the target time interval is less than the upper limit of the preset time interval, the mobile terminal can perform service discovery according to a shorter time interval. In the process of performing service discovery according to a shorter time interval, service discovery can be performed at a faster speed, which shortens the time consumed by service discovery and improves the efficiency of service discovery. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0022] Figure 2 A flow chart of a service discovery method applied to a vehicle-mounted terminal provided in an embodiment of the present application;
[0023] Figure 3 This is another flowchart of the service discovery method applied to the vehicle-mounted terminal provided in an embodiment of the present application;
[0024] Figure 4 This is another flow chart of a service discovery method applied to a vehicle-mounted terminal provided in an embodiment of the present application;
[0025] Figure 5 A schematic diagram of a process for implementing time interval recovery of Bluetooth communication in the service discovery method provided in an embodiment of the present application;
[0026] Figure 6 A schematic diagram of the process of performing Bluetooth broadcasting in the service discovery method provided in an embodiment of the present application;
[0027] Figure 7 This is a schematic diagram of the overall process of the service discovery method applied to the vehicle terminal provided in an embodiment of the present application;
[0028] Figure 8 A flow chart of a service discovery method applied to a mobile terminal provided in an embodiment of the present application;
[0029] Figure 9 A schematic diagram of the interaction between the mobile terminal and the vehicle-mounted terminal provided in an embodiment of the present application;
[0030] Figure 10 This is a schematic diagram of the structure of a service discovery device applied to a vehicle-mounted terminal provided in an embodiment of the present application;
[0031] Figure 11 This is a schematic diagram of the structure of a service discovery device applied to a mobile terminal provided in an embodiment of the present application;
[0032] Figure 12 This is a schematic diagram of the structure of the computer device provided in the embodiment of the present application. DETAILED DESCRIPTION
[0033] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.
[0034] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0035] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0036] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0037] In order to more clearly explain the service discovery method provided in the embodiments of the present application, one of the feasible application scenarios during the implementation of the method is explained below.
[0038] Figure 1 This is a schematic diagram of the application scenario provided in the embodiment of this application, please refer to Figure 1 , this scenario may include: a mobile terminal 110 and a vehicle-mounted terminal 120.
[0039] The mobile terminal 110 may include, but is not limited to, a mobile phone, a wearable device (such as a smart watch, a smart bracelet, smart glasses, etc.), a tablet computer, a laptop computer, a PC (Personal Computer), etc. The functions implemented by the method can be implemented by calling program code by a processor in the mobile terminal. Of course, the program code can be stored in a computer storage medium. Therefore, the mobile terminal includes at least a processor and a storage medium.
[0040] The vehicle-mounted terminal 120 may be an intelligent terminal provided inside the vehicle, for example, it may be a part of the vehicle computer, or it may be an independent vehicle-mounted computer device, etc., and no specific limitation is given here.
[0041] When using the vehicle-mounted terminal 120, users usually need to use it in conjunction with the mobile terminal 110. For example, the mobile terminal 110 can be used as a vehicle key, and the mobile terminal 110 can be verified through the corresponding service in the vehicle-mounted terminal 120, thereby realizing the process of starting the vehicle through the mobile terminal 110.
[0042] In addition to the above-mentioned example scenarios, in the actual implementation process, the mobile terminal 110 can also control the speakers, display, etc. on the vehicle terminal 120 to play music, videos and other media resources on the mobile terminal 110. Regardless of any of the above scenarios, information interaction between the mobile terminal 110 and the vehicle terminal 120 is required.
[0043] It should be noted that when the mobile terminal 110 and the vehicle-mounted terminal 120 interact with each other, service discovery is usually required. Service discovery means that one terminal device can discover the service on another terminal device, and one terminal device calls the service on the other terminal to implement certain functions.
[0044] For example, as explained in the above example, the music playing service on the vehicle terminal 120 can be discovered through the mobile terminal 110, and then the music playing can be realized by calling the speaker of the vehicle terminal.
[0045] Optionally, in the service discovery process in the above scenario, it is usually necessary for the mobile terminal to initiate service discovery and traverse all services in the vehicle terminal to implement the service discovery process.
[0046] In the related art, when there are too many services in the vehicle-mounted terminal, the process of service discovery by the mobile terminal may take too long, resulting in poor efficiency of service discovery.
[0047] In order to solve the above problems existing in the related art, an embodiment of the present application provides a service discovery method applied to a vehicle-mounted terminal. The following explains a feasible implementation process of the service discovery method applied to a vehicle-mounted terminal provided in an embodiment of the present application.
[0048] Figure 2 This is a flow chart of the service discovery method applied to the vehicle terminal provided in the embodiment of the present application. Please refer to Figure 2 , the method comprising:
[0049] S210: When a Bluetooth connection is established with the mobile terminal, a Bluetooth adjustment request is sent to the mobile terminal.
[0050] It should be noted that the execution subject of the method may be the above-mentioned vehicle-mounted terminal, and the mobile terminal and the vehicle-mounted terminal may establish a Bluetooth connection.
[0051] In one embodiment, the vehicle-mounted terminal can be provided with a Bluetooth module, and the mobile terminal can also be provided with a Bluetooth module. A Bluetooth connection can be established between the vehicle-mounted terminal and the mobile terminal through the corresponding Bluetooth modules. After the vehicle-mounted terminal and the mobile terminal establish a Bluetooth connection, the vehicle-mounted terminal can communicate with the mobile terminal using the Bluetooth connection, which is also Bluetooth communication.
[0052] It should be noted that the Bluetooth adjustment request may be a request instruction generated by the vehicle-mounted terminal, and the Bluetooth adjustment request is used to instruct the mobile terminal to perform Bluetooth communication according to the target time interval.
[0053] In the process of Bluetooth communication between two devices, for example, the process of Bluetooth communication between a vehicle-mounted terminal and a mobile terminal, a Bluetooth communication time interval can be set, and Bluetooth communication information interaction can be performed after each time interval.
[0054] For example, assuming that the time interval of Bluetooth communication is 60 ms, Bluetooth communication between two devices can be achieved once every 60 ms, thereby realizing information interaction during the Bluetooth communication process.
[0055] In one embodiment, the target time interval may be smaller than a preset upper limit of the time interval, wherein the preset upper limit of the time interval may be an upper limit of the time interval for Bluetooth communication under normal circumstances.
[0056] For example, assuming that the Bluetooth communication time interval is usually 45ms, the preset time interval upper limit may be 45ms, or may be a time interval less than 45ms, such as 30ms, etc. The target time interval may be less than the preset time interval upper limit.
[0057] In one embodiment, the target time interval includes: a minimum time interval specified in the Bluetooth communication protocol.
[0058] It should be noted that the minimum time interval specified in the Bluetooth communication protocol may be 7.5 ms. In actual implementation, the target time interval may also be set to 7.5 ms.
[0059] Optionally, in the actual implementation process, the time interval of Bluetooth communication may be limited by the device's own capabilities. For example, if the shortest time interval of Bluetooth communication that a mobile terminal can support is 15ms, then the target time interval can also be 15ms. No specific restriction is made here, as long as it is less than the above-mentioned preset time interval upper limit.
[0060] It should be noted that the shorter the time interval of Bluetooth communication is, the more times Bluetooth communication is performed in the same time period, and accordingly, more information can be transmitted through Bluetooth communication.
[0061] Optionally, after the vehicle-mounted terminal and the mobile terminal establish a Bluetooth communication connection, the mobile terminal can be asked to shorten the Bluetooth communication time interval by sending a Bluetooth adjustment request, that is, the mobile terminal can use high-frequency Bluetooth communication to realize Bluetooth communication between the mobile terminal and the vehicle-mounted terminal.
[0062] For example, the Bluetooth module of the vehicle terminal may generate a Bluetooth adjustment request, such as the LL_CONNECTION_UPDATE_REQ instruction, which may request the mobile terminal to set the connection interval to a target time interval, such as 7.5 ms.
[0063] S220: When the mobile terminal performs Bluetooth communication according to the target time interval, a service discovery request sent by the mobile terminal is received, and the mobile terminal is enabled to perform service discovery based on the service discovery request.
[0064] It should be noted that after receiving the above Bluetooth adjustment request, the mobile terminal can adjust its own Bluetooth communication time interval. After adjusting to the target time interval, high-frequency communication between the mobile terminal and the vehicle-mounted terminal can be achieved.
[0065] Correspondingly, the vehicle-mounted terminal also needs to adjust its own Bluetooth communication time interval to adapt to the mobile terminal. When both the mobile terminal and the vehicle-mounted terminal perform Bluetooth communication according to the target time interval, the above-mentioned high-frequency communication can be achieved, and the high-frequency communication can specifically be high-frequency Bluetooth communication.
[0066] In one embodiment, when the mobile terminal performs Bluetooth communication at a target time interval, high-frequency Bluetooth communication between the mobile terminal and the vehicle-mounted terminal can be achieved. In this case, the mobile terminal can send a service discovery request to the vehicle-mounted terminal, wherein the service discovery request can be, for example, a GATT_DiscoverPrimaryServices instruction. Various services on the vehicle-mounted terminal can be discovered through the service discovery request, for example: the service list of the vehicle-mounted terminal can be accessed, which can include service lists of various protocols.
[0067] For example: ICCOA (Intelligent Car Connectivity Open Alliance), CCC (Car Connectivity Consortium), ICCE (Intelligent Car Connectivity Ecosystem Alliance), iBeacon (indoor positioning system based on Bluetooth low energy technology) or other types of service lists corresponding to private protocols, without specific limitation here.
[0068] It should be noted that after receiving the above-mentioned service discovery request, the vehicle-mounted terminal can realize the service discovery of the vehicle-mounted terminal by the mobile terminal. During the service discovery process, for example, the mobile terminal can traverse each service of the vehicle-mounted terminal and obtain the service, thereby obtaining the function list therein. In addition, the identity, authority and various attributes of each service can be parsed, thereby realizing the above-mentioned service discovery process.
[0069] It should be noted that performing Bluetooth communication according to the target time interval to realize the service discovery process can shorten the time consumed by the service discovery process and complete the service discovery process more quickly, avoiding the problem of poor service discovery efficiency caused by the service discovery process taking too long.
[0070] In the service discovery method provided in the embodiment of the present application, when a Bluetooth connection is established with a mobile terminal, the vehicle-mounted terminal can send a Bluetooth adjustment request to the mobile terminal, and the Bluetooth adjustment request is used to instruct the mobile terminal to perform Bluetooth communication according to a target time interval, and the target time interval is less than or equal to the upper limit of the preset time interval; when the mobile terminal performs Bluetooth communication according to the target time interval, the vehicle-mounted terminal receives the service discovery request sent by the mobile terminal, and based on the service discovery request, enables the mobile terminal to perform service discovery. Among them, since the target time interval is less than the upper limit of the preset time interval, the mobile terminal can perform service discovery according to a shorter time interval. In the process of performing service discovery according to a shorter time interval, service discovery can be performed at a faster speed, which shortens the time consumed by service discovery and improves the efficiency of service discovery.
[0071] The following explains another feasible implementation process of the service discovery method applied to the vehicle terminal provided in the embodiment of the present application.
[0072] Figure 3 This is another flow chart of the service discovery method applied to the vehicle terminal provided in the embodiment of the present application. Figure 3 Before sending the Bluetooth adjustment request to the mobile terminal, the method further includes:
[0073] S310: Acquire device communication information of the mobile terminal.
[0074] In one embodiment, the device communication information of the mobile terminal may be obtained after the mobile terminal and the vehicle-mounted terminal establish Bluetooth communication. For example, after the two establish Bluetooth communication, they may transmit their own device communication information to the other device.
[0075] The vehicle-mounted terminal may send the device communication information of the vehicle-mounted terminal to the mobile terminal, and the mobile terminal may send the device communication information of the mobile terminal to the vehicle-mounted terminal.
[0076] Alternatively, these device communication information can also be configured in the broadcast. For example, the vehicle-mounted terminal can broadcast its own device communication information during the broadcast process, that is, the device communication information of the vehicle-mounted terminal. When the mobile terminal receives the broadcast information and returns the Bluetooth establishment request, it can carry its own device communication information, that is, the device communication information of the mobile terminal.
[0077] It should be noted that for some device communication information, the vehicle terminal and the mobile terminal can be the same. For such device communication information, it does not need to be obtained from the other device, and the relevant device communication information of the own can be obtained, for example: relevant information for Bluetooth communication.
[0078] In one embodiment, the device communication information includes at least one of the following: a current Bluetooth communication time interval or a device connection requirement.
[0079] It should be noted that the current Bluetooth communication time interval can be the same information in the vehicle terminal and the mobile terminal in the above-mentioned device communication information. For example: the vehicle terminal and the mobile terminal can work according to the same Bluetooth communication time interval during the Bluetooth communication process. The current Bluetooth communication time interval can be the time interval for information exchange between the two during the Bluetooth communication process. The device communication information also exists in the vehicle terminal, and the vehicle terminal's own Bluetooth communication time interval can be directly obtained.
[0080] The device connection requirement can be a function that the device can perform after establishing Bluetooth communication. For example: if the mobile terminal needs to perform service discovery on the vehicle terminal, a corresponding indication can be made in the device connection requirement; correspondingly, if the mobile terminal does not need to perform service discovery on the vehicle terminal, a corresponding indication can also be made in the device connection requirement.
[0081] The device connection requirement may be sent by the mobile terminal to the vehicle-mounted terminal.
[0082] Accordingly, a Bluetooth adjustment request is sent to the mobile terminal, including:
[0083] S320: When the device communication information meets the target condition, a Bluetooth adjustment request is sent to the mobile terminal.
[0084] It should be noted that after the vehicle-mounted terminal obtains the above-mentioned device communication information, it can determine whether each type of device communication information meets its corresponding target condition, and different target conditions can be configured for different device communication information.
[0085] If the corresponding target condition is met, a Bluetooth adjustment request may be sent to the mobile terminal; if the corresponding target condition is not met, no Bluetooth adjustment request may be sent to the mobile terminal.
[0086] In one embodiment, when the device communication information meets the target condition, sending a Bluetooth adjustment request to the mobile terminal includes: when the current Bluetooth communication time interval is greater than the target time interval, sending the Bluetooth adjustment request to the mobile terminal.
[0087] It should be noted that if the current Bluetooth communication time interval is greater than the target time interval, it can be determined that the current Bluetooth communication time interval is longer and Bluetooth communication is not performed at a shorter time interval. Therefore, a Bluetooth adjustment request can be sent to the mobile terminal to allow the mobile terminal to adjust its own Bluetooth communication time interval to the target time interval.
[0088] In contrast, if the current Bluetooth communication time interval is less than or equal to the target time interval, it can be determined that the current Bluetooth communication time interval is shorter and Bluetooth communication is already performed at a shorter time interval, so there is no need to send a Bluetooth adjustment request to the mobile terminal.
[0089] In one embodiment, when the device communication information meets the target condition, sending a Bluetooth adjustment request to the mobile terminal includes: when the device connection requirement indicates that the mobile terminal needs to perform service discovery, sending a Bluetooth adjustment request to the mobile terminal.
[0090] It should be noted that if the device connection requirement indicates that the mobile terminal needs to perform service discovery, it can be determined that the mobile terminal has a need to perform service discovery. If service discovery is required, the Bluetooth communication time interval needs to be adjusted. Therefore, a Bluetooth adjustment request can be sent to the mobile terminal, so that the mobile terminal can adjust its own Bluetooth communication time interval to the target time interval.
[0091] Conversely, if the device connection requirement indicates that the mobile terminal does not need to perform service discovery, it can be determined that the mobile terminal does not need to perform service discovery, that is, the mobile terminal does not need to perform service discovery after establishing a Bluetooth connection, and there is no need to adjust the Bluetooth communication time interval. Therefore, there is no need to send a Bluetooth adjustment request to the mobile terminal.
[0092] It should be noted that the above two conditions are only feasible examples. In the actual implementation process, other conditions can also be set, and no specific restrictions are made here.
[0093] Optionally, for the above two conditions, the Bluetooth adjustment request can be sent when any one of the conditions is met, or the Bluetooth adjustment request can be sent when both of the above conditions are met. There is no specific limitation here and it can be set based on actual needs.
[0094] In the service discovery method provided in the embodiment of the present application, the device communication information of the mobile terminal can be obtained, and when the device communication information meets the target conditions, a Bluetooth adjustment request can be sent to the mobile terminal. For example, when the time interval of the current Bluetooth communication is greater than the target time interval, a Bluetooth adjustment request can be sent to the mobile terminal; or, when the device connection requirement indicates that the mobile terminal needs to perform service discovery, a Bluetooth adjustment request can be sent to the mobile terminal. By setting different target conditions, a judgment can be made in advance to avoid sending the corresponding Bluetooth adjustment request when the mobile terminal does not need to perform service discovery, and the sending of the Bluetooth adjustment request can be implemented under specific conditions.
[0095] The following explains another feasible implementation process of the service discovery method based on the vehicle terminal provided in the embodiment of the present application.
[0096] Figure 4 This is another flow chart of the service discovery method applied to the vehicle terminal provided in the embodiment of the present application. Please refer to Figure 4 After the mobile terminal performs service discovery based on the service discovery request, the method further includes:
[0097] S410: When the features of all services of the vehicle terminal are traversed, or when the execution time of the service discovery exceeds a preset time threshold, it is determined that the service discovery is completed.
[0098] It should be noted that, during the process of the mobile terminal discovering services in the vehicle-mounted terminal, the service discovery process may be determined to be completed after certain conditions are met.
[0099] Among them, it can include active completion and passive completion. Among them, active completion can be that the mobile terminal can determine that the service discovery process has been completed when traversing the characteristics of all services of the vehicle terminal. In this case, active completion of service discovery can be achieved.
[0100] Passive completion may be due to some external factors that require stopping service discovery. For example, if the mobile terminal and the vehicle terminal are in communication at the target time interval for a long time, the frequency of Bluetooth signal interference may increase. In addition, if they are in high-frequency communication for a long time, the power consumption of the mobile terminal and the vehicle terminal will be high, which will cause other Bluetooth communications to be stuck.
[0101] For example, if a mobile terminal is simultaneously performing two Bluetooth communication processes, service discovery and music playback on a Bluetooth headset, and if communications are performed at the target time interval for a long time, it may cause freezes in the Bluetooth headset during music playback.
[0102] To avoid this situation, the service discovery time can be limited. For example, the service discovery time limit can be set to 500ms. After more than 500ms, it can be determined that the service discovery is completed. This process can be a case of passive completion as mentioned above.
[0103] It should be noted that the service discovery process can be ended whether it is completed actively or passively.
[0104] In the service discovery method provided in the embodiment of the present application, service discovery can be determined to be complete when the characteristics of all services of the vehicle terminal are traversed, or when the execution time of service discovery exceeds a preset time threshold. In particular, the service discovery step can be completed quickly by actively or passively completing it, thereby reducing the negative impact of high-frequency Bluetooth communication.
[0105] The following specifically explains one feasible implementation process of restoring Bluetooth communication after service discovery is completed, as provided in an embodiment of the present application.
[0106] Figure 5 This is a flow chart of the time interval recovery process for Bluetooth communication in the service discovery method provided in the embodiment of the present application. Figure 5 ,
[0107] After enabling the mobile terminal to perform service discovery based on the service discovery request, the method further includes:
[0108] S510: When the service discovery is completed, a Bluetooth recovery request is sent to the mobile terminal.
[0109] In one embodiment, if the service discovery is completed, the vehicle-mounted terminal may send a Bluetooth recovery request to the mobile terminal, where the Bluetooth recovery request is used to instruct the mobile terminal to perform Bluetooth communication according to a preset upper limit of the time interval.
[0110] For example, during the service discovery process, a target time interval may be used for service discovery, such as 7.5ms. After the service discovery is completed, the normal time interval of Bluetooth communication may be restored, that is, the preset time interval upper limit, such as 45ms.
[0111] It should be noted that the process of Bluetooth communication between the vehicle terminal and the mobile terminal at the target time interval is a high-frequency communication process, which can realize rapid data transmission under Bluetooth communication, but may cause high power consumption, multiple interferences and other Bluetooth function freezes and other problems. Therefore, Bluetooth communication cannot be carried out at the target time interval for a long time.
[0112] The process of Bluetooth communication between the vehicle terminal and the mobile terminal at the preset time interval is a medium-low frequency communication process, and the data transmission speed is slow, but it does not cause high power consumption, multiple interferences and other Bluetooth function jamming problems. Under normal circumstances, Bluetooth communication can be carried out according to the preset time interval.
[0113] It should be noted that after determining that the service discovery is completed, a Bluetooth recovery request may be sent to the mobile terminal to restore normal Bluetooth communication and avoid the negative impact of high-frequency communication.
[0114] In the service discovery method provided in the embodiment of the present application, a Bluetooth recovery request can be sent to the mobile terminal when service discovery is complete. When service discovery is no longer necessary, high-frequency Bluetooth communication can be promptly restored to medium- and low-frequency Bluetooth communication, thereby reducing the negative impact of high-frequency Bluetooth communication and ensuring rapid service discovery while minimizing negative impacts.
[0115] The following explains another feasible implementation process of the service discovery method provided in the embodiment of the present application.
[0116] Figure 6 This is a flow chart of Bluetooth broadcasting in the service discovery method provided in the embodiment of this application. Please refer to Figure 6 Before establishing a Bluetooth connection with the mobile terminal, the method further includes:
[0117] S610: Broadcasting a Bluetooth connection establishment request in a targeted Bluetooth broadcast mode.
[0118] It should be noted that in related technologies, in order to establish Bluetooth connections between different devices, the vehicle terminal usually performs Bluetooth broadcast polling in two different ways. For example, one broadcast can be performed using Android's Bluetooth broadcast method; another broadcast can be performed using Apple's Bluetooth broadcast method.
[0119] This method will cause the vehicle terminal to frequently switch the Bluetooth broadcast mode.
[0120] In the embodiment of the present application, a target Bluetooth broadcast mode may be used for broadcasting, wherein the target Bluetooth broadcast mode is the Bluetooth broadcast mode used by the mobile terminal in the historical connection record.
[0121] For example, if the mobile terminal uses the Android Bluetooth broadcast mode for Bluetooth communication in the historical records, the Android Bluetooth broadcast mode may be used to broadcast the Bluetooth connection establishment request.
[0122] S620: Receive the response connection request sent by the mobile terminal, and establish a Bluetooth connection with the mobile terminal.
[0123] It should be noted that after the Bluetooth connection establishment request is sent, when the mobile terminal enters the corresponding broadcast range, it can receive the Bluetooth connection establishment request, and then respond based on the Bluetooth connection establishment request, reply to the response connection request, and after the vehicle terminal receives the response connection request, it can establish a Bluetooth connection between the vehicle terminal and the mobile terminal.
[0124] In the service discovery method provided in the embodiments of the present application, a target Bluetooth broadcast mode can be used to broadcast a Bluetooth connection establishment request; a response connection request sent by a mobile terminal is received, and a Bluetooth connection with the mobile terminal is established. The target Bluetooth broadcast mode is the Bluetooth broadcast mode used by the mobile terminal in the historical connection record. By using the target Bluetooth mode to broadcast the Bluetooth establishment request, the frequency of broadcast switching of the vehicle terminal can be reduced, thereby reducing the power consumption of the vehicle terminal.
[0125] The following explains the service discovery method applied to the vehicle terminal provided in the embodiment of the present application through an overall process relationship.
[0126] Figure 7 This is a schematic diagram of the overall process of the service discovery method applied to the vehicle terminal provided in the embodiment of the present application. Please refer to Figure 7 , during the implementation of this method:
[0127] After the mobile terminal initiates a request to establish a Bluetooth connection with the vehicle-mounted terminal, it can first determine whether the Bluetooth communication is established successfully. If not, it can be determined that the connection failed and the process is ended; if so, the vehicle-mounted terminal can send a Bluetooth adjustment request to the mobile terminal, and the time interval of the Bluetooth communication between the two can be adjusted to the target time interval, and then the mobile terminal can enter the high-frequency Bluetooth communication mode according to the target time interval. If it does not enter, service discovery can be performed according to the preset time interval upper limit; if it enters, service discovery can be performed, and after the service discovery is completed, the Bluetooth recovery request can be used to resume Bluetooth communication according to the preset time interval upper limit, and then the process can be ended.
[0128] The above are all service discovery methods implemented when the vehicle-mounted terminal is the execution subject. The following explains the service discovery method implemented when the execution subject is not a mobile terminal.
[0129] Figure 8For a flow chart of the service discovery method applied to a mobile terminal provided in an embodiment of the present application, please refer to Figure 8 , the method comprising:
[0130] S810: When a Bluetooth connection is established with the vehicle-mounted terminal, a Bluetooth adjustment request sent by the vehicle-mounted terminal is received.
[0131] It should be noted that the execution subject of the method may be the above-mentioned mobile terminal, which may receive a Bluetooth adjustment request sent by the vehicle-mounted terminal when a Bluetooth connection is established with the vehicle-mounted terminal.
[0132] In one embodiment, the vehicle-mounted terminal can be provided with a Bluetooth module, and the mobile terminal can also be provided with a Bluetooth module. A Bluetooth connection can be established between the vehicle-mounted terminal and the mobile terminal through the corresponding Bluetooth modules. After the vehicle-mounted terminal and the mobile terminal establish a Bluetooth connection, the vehicle-mounted terminal can communicate with the mobile terminal using the Bluetooth connection, which is also Bluetooth communication.
[0133] It should be noted that the Bluetooth adjustment request may be a request instruction generated by the vehicle-mounted terminal, and the Bluetooth adjustment request is used to instruct the mobile terminal to perform Bluetooth communication according to the target time interval.
[0134] S820: Based on the Bluetooth adjustment request, perform Bluetooth communication with the vehicle terminal at a target time interval, and send a service discovery request to the vehicle terminal for service discovery.
[0135] It should be noted that the mobile terminal can perform Bluetooth communication with the vehicle-mounted terminal at a target time interval based on the Bluetooth adjustment request, and can perform corresponding service discovery work by sending a service discovery request.
[0136] In one embodiment, the target time interval includes: a minimum time interval specified in the Bluetooth communication protocol.
[0137] In the service discovery method provided in the embodiment of the present application, a Bluetooth adjustment request sent by the vehicle-mounted terminal can be received while a Bluetooth connection is established with the vehicle-mounted terminal; based on the Bluetooth adjustment request, Bluetooth communication is performed with the vehicle-mounted terminal at a target time interval, and a service discovery request is sent to the vehicle-mounted terminal to perform service discovery. Since the target time interval is less than the preset time interval upper limit, the mobile terminal can perform service discovery at a shorter time interval. During the process of performing service discovery at a shorter time interval, service discovery can be performed at a faster speed, thereby shortening the time consumed by service discovery and improving the efficiency of service discovery.
[0138] The following explains one feasible implementation process of data interaction between the mobile terminal and the vehicle-mounted terminal in the embodiment of the present application from the perspective of data interaction.
[0139] Figure 9 For a schematic diagram of the interaction between the mobile terminal and the vehicle terminal provided in the embodiment of the present application, please refer to Figure 9 , the method comprising:
[0140] S910: When the Bluetooth connection is established, the vehicle-mounted terminal sends a Bluetooth adjustment request to the mobile terminal.
[0141] S920: The mobile terminal performs Bluetooth communication with the vehicle-mounted terminal at a target time interval based on the Bluetooth adjustment request.
[0142] S930: The mobile terminal sends a service discovery request to the vehicle terminal.
[0143] S940: The mobile terminal performs service discovery.
[0144] It should be noted that the specific implementation process of the above steps S910-S940 has been explained above and will not be repeated here.
[0145] It should be understood that, although the steps in the above-mentioned flowcharts are shown in sequence according to the instructions of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0146] Based on the foregoing embodiments, an embodiment of the present application provides a service discovery device, which includes the modules included and the units included in each module, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0147] Figure 10 This is a schematic diagram of the structure of the service discovery device applied to the vehicle terminal provided in the embodiment of the present application. Figure 10 In another aspect of the embodiment of the present application, a service discovery device is provided, which is applied to a vehicle-mounted terminal. The vehicle-mounted terminal includes a Bluetooth module. The device includes: an interval adjustment module 1010 and a discovery permission module 1020;
[0148] An interval adjustment module 1010 is configured to send a Bluetooth adjustment request to the mobile terminal when a Bluetooth connection is established with the mobile terminal, the Bluetooth adjustment request being configured to instruct the mobile terminal to perform Bluetooth communication at a target time interval, where the target time interval is less than a preset time interval upper limit;
[0149] The discovery enabling module 1020 is configured to receive a service discovery request sent by the mobile terminal when the mobile terminal performs Bluetooth communication according to a target time interval, and enable the mobile terminal to perform service discovery based on the service discovery request.
[0150] In one embodiment, the interval adjustment module 1010 is specifically used to obtain device communication information of the mobile terminal, where the device communication information includes at least one of the following: the current Bluetooth communication time interval or device connection requirement; and when the device communication information meets the target conditions, a Bluetooth adjustment request is sent to the mobile terminal.
[0151] In one embodiment, the interval adjustment module 1010 is specifically configured to send a Bluetooth adjustment request to the mobile terminal when the current Bluetooth communication time interval is greater than the target time interval.
[0152] In one embodiment, the interval adjustment module 1010 is specifically configured to send a Bluetooth adjustment request to the mobile terminal when the device connection requirement indicates that the mobile terminal needs to perform service discovery.
[0153] In one embodiment, the discovery enabling module 1020 is further configured to determine that the service discovery is completed when the features of all services of the vehicle-mounted terminal are traversed or the execution time of the service discovery exceeds a preset time threshold.
[0154] In one embodiment, the discovery enabling module 1020 is further configured to send a Bluetooth recovery request to the mobile terminal when the service discovery is completed, where the Bluetooth recovery request is configured to instruct the mobile terminal to perform Bluetooth communication according to a preset upper limit of the time interval.
[0155] In one embodiment, the discovery permission module 1020 is further configured to broadcast the Bluetooth connection establishment request in a target Bluetooth broadcast mode, where the target Bluetooth broadcast mode is the Bluetooth broadcast mode used by the mobile terminal in the historical connection record.
[0156] In one embodiment, the target time interval in the device includes: a minimum time interval specified in the Bluetooth communication protocol.
[0157] In the service discovery device provided in the embodiment of the present application, when a Bluetooth connection is established with a mobile terminal, the vehicle-mounted terminal can send a Bluetooth adjustment request to the mobile terminal, and the Bluetooth adjustment request is used to instruct the mobile terminal to perform Bluetooth communication according to a target time interval, and the target time interval is less than or equal to the upper limit of the preset time interval; when the mobile terminal performs Bluetooth communication according to the target time interval, the vehicle-mounted terminal receives the service discovery request sent by the mobile terminal, and based on the service discovery request, enables the mobile terminal to perform service discovery. In particular, since the target time interval is less than the upper limit of the preset time interval, the mobile terminal can perform service discovery at a shorter time interval. In the process of performing service discovery at a shorter time interval, service discovery can be performed at a faster speed, which shortens the time consumed by service discovery and improves the efficiency of service discovery.
[0158] Figure 11 This is a schematic diagram of the structure of the service discovery device applied to the mobile terminal provided in the embodiment of the present application. Figure 11 , another aspect of the embodiment of the present application further provides a service discovery device, which is applied to a mobile terminal, the mobile terminal including a Bluetooth module, the device including: a request receiving module 1110, a service discovery module 1120;
[0159] The request receiving module 1110 is used to receive a Bluetooth adjustment request sent by the vehicle terminal when a Bluetooth connection is established with the vehicle terminal;
[0160] The service discovery module 1120 is configured to perform Bluetooth communication with the vehicle terminal according to a target time interval based on the Bluetooth adjustment request, and send a service discovery request to the vehicle terminal for service discovery, where the target time interval is less than a preset time interval upper limit.
[0161] The service discovery device provided in the embodiment of the present application can receive a Bluetooth adjustment request sent by the vehicle-mounted terminal while establishing a Bluetooth connection with the vehicle-mounted terminal; based on the Bluetooth adjustment request, Bluetooth communication is performed with the vehicle-mounted terminal at a target time interval, and a service discovery request is sent to the vehicle-mounted terminal to perform service discovery. Since the target time interval is less than the preset time interval upper limit, the mobile terminal can perform service discovery at a shorter time interval. During the process of performing service discovery at a shorter time interval, service discovery can be performed at a faster speed, thereby shortening the time consumed by service discovery and improving the efficiency of service discovery.
[0162] The description of the above device embodiment is similar to the description of the above method embodiment and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of this application, please refer to the description of the method embodiment of this application for understanding.
[0163] It should be noted that in the embodiments of this application Figure 10 and Figure 11 The division of modules in the service discovery device shown is schematic and is only a logical functional division. There may be other division methods in actual implementation. In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or they can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units. It can also be implemented in the form of a combination of software and hardware.
[0164] It should be noted that, in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0165] Figure 12 For a schematic diagram of the structure of the computer device provided in the embodiment of this application, please refer to Figure 12 , the embodiment of the present application provides a computer device, which can be the above-mentioned vehicle-mounted terminal or mobile terminal, and its internal structure diagram can be as shown in Figure 12 As shown. The computer device includes a processor 1220, a memory, and a network interface 1240 connected via a system bus 1210. The processor 1220 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium 1231 and an internal memory 1232. The non-volatile storage medium 1231 stores an operating system, a computer program, and a database. The internal memory 1232 provides an environment for the operation of the operating system and computer program in the non-volatile storage medium 1231. The database of the computer device is used to store data. The network interface 1240 of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor 1220, the above method is implemented.
[0166] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method provided in the above embodiment are implemented.
[0167] An embodiment of the present application provides a computer program product containing instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0168] Those skilled in the art will understand that Figure 12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0169] In one embodiment, the service discovery device provided by the present application can be implemented in the form of a computer program. Figure 12 The computer device is operated on the computer device shown. The memory of the computer device can store various program modules that constitute the above-mentioned device. The computer program composed of each program module enables the processor to execute the steps of the method of each embodiment of the present application described in this specification.
[0170] It should be noted that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium, and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0171] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other. For the sake of brevity, they will not be repeated here.
[0172] The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0173] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.
[0174] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0175] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed across multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of this embodiment.
[0176] In addition, all functional modules in the embodiments of the present application can be integrated into one processing unit, or each module can be a separate unit, or two or more modules can be integrated into one unit; the above-mentioned integrated modules can be implemented in the form of hardware or in the form of hardware plus software functional units.
[0177] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.
[0178] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the relevant technology, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0179] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0180] The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0181] The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0182] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A service discovery method, characterized in that: Applied to vehicle terminals, including: When a Bluetooth connection is established with a mobile terminal, sending a Bluetooth adjustment request to the mobile terminal, wherein the Bluetooth adjustment request is used to instruct the mobile terminal to perform Bluetooth communication according to a target time interval, where the target time interval is less than a preset time interval upper limit; In a case where the mobile terminal performs Bluetooth communication according to the target time interval, a service discovery request sent by the mobile terminal is received, and the mobile terminal is enabled to perform service discovery based on the service discovery request.
2. The method according to claim 1, characterized in that Before sending the Bluetooth adjustment request to the mobile terminal, the method further includes: Acquiring device communication information of the mobile terminal, the device communication information including at least one of the following: a current Bluetooth communication time interval or a device connection requirement; The sending a Bluetooth adjustment request to the mobile terminal includes: When the device communication information meets the target condition, a Bluetooth adjustment request is sent to the mobile terminal.
3. The method according to claim 2, characterized in that The sending a Bluetooth adjustment request to the mobile terminal when the device communication information meets the target condition includes: When the current Bluetooth communication time interval is greater than the target time interval, a Bluetooth adjustment request is sent to the mobile terminal.
4. The method according to claim 2, characterized in that The sending a Bluetooth adjustment request to the mobile terminal when the device communication information meets the target condition includes: In a case where the device connection requirement indicates that the mobile terminal needs to perform service discovery, a Bluetooth adjustment request is sent to the mobile terminal.
5. The method according to claim 1, wherein After enabling the mobile terminal to perform service discovery based on the service discovery request, the method further includes: The service discovery is determined to be completed when the features of all services of the vehicle-mounted terminal are traversed or the execution time of the service discovery exceeds a preset time threshold.
6. The method according to claim 5, characterized in that After enabling the mobile terminal to perform service discovery based on the service discovery request, the method further includes: When the service discovery is completed, a Bluetooth resumption request is sent to the mobile terminal, where the Bluetooth resumption request is used to instruct the mobile terminal to perform Bluetooth communication according to the preset upper limit of the time interval.
7. The method according to claim 1, characterized in that Before establishing a Bluetooth connection with the mobile terminal, the method further includes: The Bluetooth connection establishment request is broadcasted in a target Bluetooth broadcast mode, where the target Bluetooth broadcast mode is the Bluetooth broadcast mode used by the mobile terminal in the historical connection record.
8. A service discovery method, characterized in that: Applied to mobile terminals, including: When a Bluetooth connection is established with the vehicle-mounted terminal, receiving a Bluetooth adjustment request sent by the vehicle-mounted terminal; Based on the Bluetooth adjustment request, Bluetooth communication is performed with the vehicle terminal according to a target time interval, and a service discovery request is sent to the vehicle terminal for service discovery, where the target time interval is less than a preset time interval upper limit.
9. A service discovery device, characterized in that: Applied to a vehicle-mounted terminal, the device comprises: an interval adjustment module and a discovery permission module; The interval adjustment module is configured to, when a Bluetooth connection is established with a mobile terminal, send a Bluetooth adjustment request to the mobile terminal, wherein the Bluetooth adjustment request is configured to instruct the mobile terminal to perform Bluetooth communication according to a target time interval, where the target time interval is less than or equal to a preset time interval upper limit; The discovery enabling module is configured to receive a service discovery request sent by the mobile terminal when the mobile terminal performs Bluetooth communication according to the target time interval, and enable the mobile terminal to perform service discovery based on the service discovery request.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 7 or 8 are implemented.
Citation Information
Patent Citations
Efficient service advertisement and discovery in a peer-to-peer networking environment with dynamic advertisement and discovery periods based on operating conditions
CN102652424A
Service discovery method and electronic equipment
CN118264709A
Neighbor Awareness Networking - Accelerated Discovery
US20170347255A1