Service connection method and device, equipment and storage medium

By establishing a service comparison table between devices to record historical service information, quickly determining the target service and adopting an appropriate connection method, the problem of low efficiency of service connection between devices in the existing technology is solved, and the effect of quickly establishing service connections is achieved.

CN118632385APending Publication Date: 2024-09-10GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410865657.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

The existing technology cannot effectively utilize historical connection information when establishing service connections between devices, resulting in low connection efficiency. Especially when different types of service connection methods are used, it is difficult to quickly establish another connection.

Method used

By establishing a service comparison table between devices, recording historical service information, and when receiving a broadcast signal, query the comparison table to determine whether the target service is a historical service, thereby quickly establishing a service connection using an appropriate connection method.

Benefits of technology

It improves the efficiency of establishing service connections between devices, reduces the connection time, and especially significantly improves the speed and efficiency when connecting again.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118632385A
    Figure CN118632385A
Patent Text Reader

Abstract

The embodiment of the invention discloses a service connection method and device, equipment and a storage medium, and the method comprises the steps: receiving a broadcast signal sent by second equipment, and the broadcast signal comprises the service information of a target service to be connected; under the condition that the service information is the service information recorded in a service comparison table, target service connection with the second equipment is initiated, the target service connection is used for target service, the service comparison table is used for recording service information of at least one historical service, and the historical service is the service established by the first equipment and other equipment. According to the invention, the service connection can be established between two pieces of equipment more quickly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to communication connection technology, and relate to but are not limited to a service connection method and apparatus, equipment, and storage medium. Background Art

[0002] Different terminal devices can establish service connections, and different service connection methods can be used in the process of establishing the connection. Summary of the invention

[0003] In view of this, the service connection method, apparatus, device, and storage medium provided in the embodiments of the present application can enable a service connection to be established between two devices more quickly. The service connection method, apparatus, device, and storage medium provided in the embodiments of the present application are implemented as follows:

[0004] In one aspect of an embodiment of the present application, a service connection method is provided, which is applied to a first device, and the method includes:

[0005] Receiving a broadcast signal sent by a second device, wherein the broadcast signal includes: service information of a target service to be connected to;

[0006] When the service information is service information in a service comparison table, a target service connection is initiated with the second device. The target service connection is used for the target service. The service comparison table is used to record service information of at least one historical service. The historical service is a service established by the first device and other devices.

[0007] In another aspect of the embodiment of the present application, a service connection device is provided, which is applied to a first device, and includes: a receiving module and a connection module;

[0008] A receiving module, configured to receive a broadcast signal sent by a second device, wherein the broadcast signal includes: service information of a target service to be connected;

[0009] A connection module is used to initiate a target service connection with a second device when the service information is service information recorded in a service comparison table. The target service connection is used for the target service. The service comparison table is used to record service information of at least one historical service. The historical service is a service established by the first device and other devices.

[0010] 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.

[0011] The computer-readable storage medium provided in the embodiment of the present application has a computer program stored thereon, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0012] The service connection method, apparatus, device, and storage medium provided in the embodiments of the present application can receive a broadcast signal sent by a second device, wherein the broadcast signal includes: service information of a target service to be connected; when the service information is service information recorded in a service comparison table, a target service connection with the second device is initiated, the target service connection is used for the target service, and the service comparison table is used to record service information of at least one historical service, and the historical service is a service that has been established between the first device and other devices. Among them, by querying the service comparison table, it can be determined whether the target service is a service that has established a service connection. When the service information is a service record recorded in the service comparison table, it can be determined that the first device and the second device are establishing a service connection again, so that a faster way to establish a service connection can be adopted, that is, to initiate a target service connection with the second device, which can further improve the efficiency of establishing a service connection. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. 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 paying creative work.

[0014] Figure 1 A schematic diagram of an application scenario of the service connection method provided in an embodiment of the present application;

[0015] Figure 2 A schematic diagram of the software architecture of the first device provided in an embodiment of the present application;

[0016] Figure 3 A schematic diagram of the hardware structure of the first device provided in an embodiment of the present application;

[0017] Figure 4 A flow chart of a service connection method provided in an embodiment of the present application;

[0018] Figure 5 A schematic diagram of a process for initiating a target service connection with a second device provided in an embodiment of the present application;

[0019] Figure 6 A schematic diagram of a process for establishing a service connection between a first device and a second device in different situations provided in an embodiment of the present application;

[0020] Figure 7 A schematic diagram of the structure of the service information provided in the embodiments of the present application;

[0021] Figure 8A schematic diagram of establishing a service connection between a first device and a second device provided in an embodiment of the present application;

[0022] Fig. 9 A schematic diagram of the structure of the service connection prediction model provided in an embodiment of the present application;

[0023] Fig.10 A schematic diagram of a workflow based on a service connection prediction model provided in an embodiment of the present application;

[0024] Fig.11 This is a working schematic diagram of the parameter screening model provided in the embodiments of the present application;

[0025] Fig.12 A schematic diagram of the structure of a service connection device provided in an embodiment of the present application;

[0026] Fig.13 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution 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 used to limit the scope of the present application.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0029] In the following description, reference is made to “some embodiments”, which describe 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.

[0030] 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 in 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.

[0031] In the related art, for different types of service connections, a faster connection establishment method can be adopted depending on whether it is to be established again; however, for a service between the same two devices, since each service connection method is independent of each other in determining whether it is to be established again, if the service adopts different service connection methods in the process of establishing the connection, it may cause each service connection method to be established for the first time.

[0032] For example, for service 1, the first device and the second device can establish a service connection by Bluetooth connection or by LAN connection. If a service connection has been established by LAN connection, then during another service connection establishment, if the LAN connection is still used, it is determined that a faster connection establishment method can be used to establish the service connection again; however, if the Bluetooth connection is used for another service connection establishment, since different types of service connections are independent of each other, the relevant technology will determine that this connection is the first connection, which results in the need to use a more complicated method to establish the service connection, resulting in more time required for service establishment, reducing the efficiency of service connection establishment.

[0033] In order to solve the above problems existing in the related art, a service connection method is provided in an embodiment of the present application, which can establish a service connection between two devices more quickly.

[0034] The following explains the actual scenario in which the service connection method provided in the embodiment of the present application is applied and the objects included in the scenario.

[0035] Figure 1 This is a schematic diagram of an application scenario of the service connection method provided in the embodiment of the present application. Please refer to Figure 1 , the scenario may include: a first device 110 and a second device 120.

[0036] It should be noted that the first device 110 and the second device 120 may be two devices that have established a physical connection but have not yet established a service connection.

[0037] Among them, the physical connection refers to a connection that can be established between the first device 110 and the second device 120 through a wireless network, Bluetooth, near-field communication, etc., or it can also be a connection established through a physical interface, such as a network cable, etc., that is, the first device 110 and the second device 120 are two devices that have established a communication connection and can realize information exchange.

[0038] A service connection refers to a connection between the first device 110 and the second device 120 to achieve information transmission through a certain service channel. For example, if a screen projection service connection is established between the first device 110 and the second device 120, a corresponding screen projection service channel can be established, and the screen projection function can be implemented through the service channel, such as displaying the content displayed in the first device 110 on the second device 120 through the screen projection function; or, if an audio playback connection is established between the first device 110 and the second device 120, a corresponding audio playback service channel can be established, and the audio playback function can be implemented through the service channel, such as playing the song selected in the first device 110 by the second device 120 through the audio playback function.

[0039] Among them, the service connection can be a connection method used based on the physical connection. For example, if the physical connection is a Bluetooth connection, the service connection can adopt the Bluetooth connection; if the physical connection includes: Bluetooth connection and LAN connection, the service connection can adopt any one of the connection methods of Bluetooth connection or LAN connection to connect.

[0040] Optionally, the first device 110 and the second device 120 may be any type of terminal device, including but not limited to mobile phones, wearable devices (such as smart watches, smart bracelets, smart glasses, etc.), tablet computers, laptop computers, vehicle terminals, PCs (Personal Computers), etc. The functions implemented by the method can be implemented by calling program codes by a processor in the terminal device, and of course the program codes can be stored in a computer storage medium. It can be seen that the first device 110 and the second device 120 at least include a processor and a storage medium.

[0041] For example, if the service is to realize the screen projection function, the first device 110 may be a projector, and the second device 120 may be a laptop computer; if the service is to realize the audio playback function, the first device 110 may be a headset or a speaker, and the second device 120 may be a mobile phone. In other words, for different services, the physical terminal devices corresponding to the first device 110 and the second device 120 may also be different, and no specific restrictions are made here, and corresponding settings can be made according to actual needs.

[0042] It should be noted that in the embodiment of the present application, the first device is used as the execution subject. In the actual implementation process, the second device can also be used as the execution subject to complete the same steps, and this is not a limitation. For example, when the second device initiates a broadcast to the first device, the first device can be used as the execution subject in the embodiment of the present application; when the first device initiates a broadcast to the second device, the second device can be used as the execution subject in the embodiment of the present application.

[0043] The following explains the software architecture of the first device with the first device as the execution subject.

[0044] Figure 2 This is a schematic diagram of the software architecture of the first device provided in the embodiment of the present application. Please refer to Figure 2 The software architecture of the first device may include: a business layer 210, a framework layer 220 and a communication layer 230.

[0045] Among them, the business layer 210 may include corresponding business functions, such as: mobile phone moving service, application continuation service, wireless communication service, screen projection service, clipboard sharing service, material flow service, device search service and communication virtualization service and other types of services.

[0046] When the first device is a terminal device such as a mobile phone, laptop, tablet or desktop computer, the corresponding services can be executed. Different services require different services to be called. For example, the screen projection service needs to establish a corresponding transmission channel through the screen projection service to complete the screen projection function between the two devices.

[0047] The framework layer 220 can be a connection framework, in which a corresponding learning framework can also be set up. For example, a service connection prediction model can be stored in the framework layer 220, and the model can be used to predict the service to which the first device is about to connect. In addition, the framework layer 220 can also include multiple modules, such as a discovery module for discovering other devices, a connection module for establishing a service connection, an account center for storing account information, a connection service layer for completing the service connection function, a collaborative scheduling module for extracting service features, etc., and the data bus and the core software tool development kit can also be set in the framework layer 220.

[0048] Among them, the service connection prediction model in the framework layer can predict the service connection that the first device is about to establish, thereby determining the service that the first device is about to need to establish a connection to, and then establish a service connection channel in advance through the connection module, so that the service connection can be established more quickly.

[0049] The communication layer 230 may include a network module, a Bluetooth module, a near field communication module, and a communication port module. The first device may communicate with the second device or other devices through the communication layer 230, and different communication modes may be used to complete the communication.

[0050] Among them, the network module can, for example, realize a local area network connection. When the WIFI switch of the first device is turned on, a communication connection between the first device and the second device or other devices can be established through WIFI; the Bluetooth module can realize a Bluetooth connection. When the Bluetooth switch of the first device is turned on, a communication connection between the first device and the second device or other devices can be established through Bluetooth; the near field communication module (NFC) can realize a communication connection between the first device and the second device or other devices through near field communication; the communication port module can establish a communication connection between the first device and the second device or other devices through a network cable connection, such as USB (Universal Serial Bus).

[0051] Through the above software architecture, a service connection between the first device and the second device or other devices can be achieved.

[0052] The above explains the software architecture of the first device. In order to explain the structure of the first device more comprehensively, the hardware structure of the first device is explained below.

[0053] Figure 3 This is a schematic diagram of the hardware structure of the first device provided in the embodiment of the present application. Please refer to Figure 3 The first device includes components such as a processor 310, a memory 320, a transceiver 330, a display unit 340, and an input unit 350.

[0054] The processor 310 is the control center of the first device, and uses various interfaces and lines to connect various parts of the entire first device, and executes various functions of the first device and processes data by running or executing software programs and / or modules stored in the memory 320, and calling data stored in the memory 320, so as to monitor the first device as a whole. Optionally, the processor 310 may include one or more processing units; optionally, the processor 310 may integrate an application processor, which mainly processes operating devices, user interfaces, and application programs, etc. Of course, other processors may also be included, which are not listed here one by one.

[0055] The memory 320 can be used to store software programs and modules. The processor 310 executes various functional applications and data processing of the first device by running the software programs and modules stored in the memory 320. The memory 320 mainly includes a program storage area and a data storage area, wherein the program storage area can store operating devices, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the terminal device (such as audio data, a phone book, etc.), etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0056] The transceiver 330 can provide wireless communication solutions applied on the first device, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 330 can be one or more devices integrating at least one communication processing module, for example, integrating the antenna and the baseband processor into the transceiver 330, or integrating the antenna and the modem processor into the transceiver 330, etc., which are not limited here.

[0057] The display unit 340 may be used to display information input by the user or information provided to the user and various menus of the first device. The display unit 340 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc., which is not limited here.

[0058] The input unit 350 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the first device. Among them, the input unit 350 can collect the user's operations on or near it, and drive the corresponding connection device according to a pre-set program. In addition, the input unit 350 may include a touch panel, which can be implemented in various types such as resistive, capacitive, infrared and surface acoustic wave. In addition to the touch panel, the input unit 350 may also include other input devices. Among them, other input devices may include but are not limited to one or more of function keys (such as volume control buttons, switch buttons, etc.), trackballs, joysticks, etc.

[0059] It is understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first device. In other embodiments of the present application, the first device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0060] It should be noted that the above explanation is for the software architecture and hardware structure of the first device. In the actual implementation process, the second device or other devices that can communicate with the first device may also have the above software architecture and hardware structure, and no specific restrictions are made here.

[0061] In order to solve the deficiencies existing in the aforementioned related technologies, a service connection method is provided in an embodiment of the present application, and the specific implementation process of the service connection method is explained in detail below.

[0062] Figure 4 Please refer to the flowchart of the service connection method provided in the embodiment of this application. Figure 4 , the method comprising:

[0063] S410: Receive a broadcast signal sent by a second device.

[0064] It should be noted that the execution subject of the method may be the above-mentioned first device, and the first device may receive the broadcast signal sent by the second device.

[0065] Optionally, the broadcast signal may be a variety of different types of signals, such as Bluetooth broadcast, or various types of broadcast such as Network Service Discovery multicast (NSD). Since the broadcast signal is sent in the form of a broadcast, all devices within the broadcast range can receive the signal. If the first device is within the broadcast signal range, it can receive the corresponding broadcast signal.

[0066] The broadcast signal may include: service information of the target service to be connected. If the broadcast signal is a broadcast signal sent by the second device, the target service to be connected refers to the service to be established between the first device and the second device, and the service information of the target service may be information recording relevant data of the target service.

[0067] That is, after receiving the broadcast signal sent by the second device, the first device can obtain the service information of the target service to be connected, and further determine whether to establish a service connection corresponding to the target service with the second device.

[0068] S420: In a case where the service information is service information recorded in the service comparison table, initiating a target service connection with the second device.

[0069] Among them, the target service connection is used for the target service, for example: the target service is a screen projection service, and the target service connection is a service connection of the screen projection service.

[0070] Optionally, the service comparison table is used to record service information of at least one historical service.

[0071] It should be noted that the service comparison table may be a comparison table pre-stored in the first device and / or the second device. After each service connection is established, relevant service information of the service that has established the connection may be stored in the service comparison table. For example, if the first device and the second device are connected based on a certain service, the corresponding service information may be stored in the service comparison table in the first device and the second device, respectively; if the first device and other devices are connected based on a certain service, the corresponding service information may be stored in the service comparison table in the first device and other devices, respectively.

[0072] For example, after the first device establishes a target service connection with the second device, the service information of the established target service may be stored in the service comparison table.

[0073] It should be noted that there may be many ways to establish services between devices. For example, device A may initiate a connection to device B regarding a certain service to establish a connection; device B may initiate a connection to device A regarding a certain service to establish a connection; or a connection may be established by first sending a request for connection establishment and then initiating a connection. There is no specific limitation here.

[0074] In one embodiment, the historical service may be a service established by the first device and other devices. For example, the first device and the second device have established a connection for service 1, and the first device and the third device have established a connection for service 2. Then, both service 1 and service 2 may be used as historical services, and the service information of service 1 and the service information of service 2 may be stored in the service comparison table as service information of historical services.

[0075] After the first device receives the broadcast signal, it can determine whether the service information of the target service is the service information recorded in the service comparison table according to the service information of the target service therein, for example, it can be determined by whether the service information of the target service hits the service comparison table, that is, it can be determined whether the service information is a service information stored in the service comparison table. If so, it can be determined that the service is a service that has been connected, that is, a historical service, and a service connection can be established in the manner of re-establishing a service connection; if not, it can be determined that the service is a service that has not been connected, that is, it is not a historical service, and a service connection can be established in the manner of establishing a service connection for the first time.

[0076] It should be noted that, in the case where it is determined that the service information hits the service comparison table, a connection relationship of the target service can be established with the second device based on the type of the broadcast signal.

[0077] The type of the broadcast signal may be, for example, the above-mentioned Bluetooth broadcast or network service discovery multicast, etc., which is not specifically limited here and may be any type of broadcast.

[0078] In one embodiment, after establishing a target service connection with the second device, the service information of the target service is stored in a service comparison table.

[0079] It should be noted that, each time the first device establishes a service connection, the service information of the service for which the connection is established may be stored in the service comparison table for subsequent query.

[0080] Optionally, service connections may be established in different ways according to different types of broadcast signals, for example, Bluetooth broadcasting establishes a Bluetooth channel connection, and network service discovery multicast establishes a LAN channel connection.

[0081] That is to say, in the embodiment of the present application, whether the service to be connected is a service connection to be established again is determined based on the service comparison table. Even if the connection method adopted by the service is different, it can be determined based on the service comparison table whether it is a service connection to be established again, thereby avoiding the service being judged as being established for the first time after adopting different connection methods.

[0082] In the service connection method provided in the embodiment of the present application, a broadcast signal sent by the second device can be received, and the broadcast signal includes: service information of the target service to be connected; when the service information is the service information recorded in the service comparison table, a target service connection with the second device is initiated, and the target service connection is used for the target service. The service comparison table is used to record the service information of at least one historical service, and the historical service is a service that has been established between the first device and other devices. Among them, by querying the service comparison table, it can be determined whether the target service is a service that has established a service connection. When the service information hits the service comparison table, it can be determined that the first device and the second device are establishing a service connection again, so that a faster way can be used to establish a service connection, that is, to initiate a target service connection with the second device, which can further improve the efficiency of establishing the service connection.

[0083] The specific implementation process of initiating a connection in the embodiment of the present application is explained in detail below.

[0084] Figure 5 For a flow chart of initiating a connection with a target service of a second device provided in an embodiment of the present application, please refer to Figure 5 , initiating a target service connection with the second device, including:

[0085] S510: Establishing a target connection channel with the second device according to historical channel connection information with the second device.

[0086] The historical channel connection information includes device information of the second device.

[0087] It should be noted that the historical channel connection information may be information pre-stored in the first device. For example, if the first device and the second device have established a service connection, the information required in the process of establishing the service connection may be stored in the first device and the second device respectively as historical channel connection information.

[0088] The historical channel connection information may be information stored separately or in the service comparison table. There is no specific limitation here. One of the storage methods may be selected according to actual needs.

[0089] It should be noted that the historical channel connection information can record the channel establishment status of the first device. For example, if the first device has established a Bluetooth connection with a certain device, the relevant information used to establish the Bluetooth connection with the device can be used as a record in the historical channel connection information.

[0090] When the first device determines to initiate a target service connection, it can determine a method for establishing a connection channel according to the historical channel connection information. That is, the first device can establish a target connection channel with the second device based on the historical channel connection information with the second device.

[0091] For example, if the first device and the second device have established a local area network connection for the target service, the relevant information required for the first device and the second device to establish a Bluetooth connection for the target service can be determined based on the historical channel connection information, thereby allowing the first device to initiate a Bluetooth connection to the second device without the need for additional Bluetooth pairing or other work.

[0092] Among them, the target connection channel matches the type of the broadcast signal. For example, if the broadcast signal is Bluetooth broadcast, the established target connection channel can be a Bluetooth connection channel; if the broadcast signal is network service discovery multicast, the established target connection channel can be a local area network connection channel.

[0093] S520: Initiate a target service connection with the second device according to the target connection channel.

[0094] It should be noted that after the target connection channel is established based on the above method, a target service connection with the second device can be initiated, that is, the first device actively initiates a service connection with the second device, thereby establishing a service connection between the first device and the second device.

[0095] There may be a certain association between service connections and services. For example, if the target service is a screen projection service and the target connection channel is a Bluetooth connection channel, then the target service connection is a screen projection service connection implemented based on a Bluetooth connection.

[0096] In the service connection method provided in the embodiment of the present application, a target connection channel with the second device can be established based on the historical channel connection information with the second device; and a target service connection with the second device can be initiated based on the target connection channel. The target connection channel can be established more accurately and quickly through the historical channel connection information, and the efficiency of establishing the target service connection can be further improved.

[0097] The following specifically explains the implementation process of establishing a service connection between the first device and the second device in various situations.

[0098] Figure 6 For a flow chart of establishing a service connection between a first device and a second device in different situations provided in an embodiment of the present application, please refer to Figure 6 , establishing a target connection channel with the second device according to historical channel connection information with the second device, including:

[0099] In the case where the type of the broadcast signal is Bluetooth broadcast, after completing Bluetooth pairing according to the historical channel connection information with the second device, a Bluetooth connection request is sent to the second device to establish a Bluetooth connection channel.

[0100] Alternatively, when the type of the broadcast signal is network service discovery multicast, after completing the LAN access according to the historical channel connection information with the second device, a LAN connection request is sent to the second device to establish a LAN connection channel.

[0101] Among them, when the type of the broadcast signal is Bluetooth broadcast, the first device can determine the result of Bluetooth pairing according to the historical channel connection information, and then there is no need to send a pairing request to the second device, and a Bluetooth connection request can be sent to the second device to establish a Bluetooth connection channel. When the type of the broadcast signal is network service discovery multicast, the first device can achieve local area network access according to the historical channel connection information, and then there is no need to send a network access request to the second device, and a local area network connection request can be sent to the second device to establish a local area network connection channel.

[0102] It should be noted that, in the actual implementation process, since the method of establishing a connection in the historical channel connection information is not fixed, for example, it may be Bluetooth pairing information or a local area network access request, the first device may perform corresponding conversion processing based on this information. For example, if the historical channel connection information is established using a Bluetooth connection, and the target connection channel to be established this time is a local area network connection channel, the corresponding local area network access request may be determined based on the Bluetooth pairing information in the historical channel connection information, thereby achieving the establishment of the target connection channel.

[0103] In one embodiment, when the service information is not the service information recorded in the service comparison table, the method further includes: initiating a target authentication process to the second device; after completing the target authentication process, initiating a target service connection with the second device.

[0104] It should be noted that, when the service information is not the service information recorded in the service comparison table, it can be determined that the service information does not hit the service comparison table, that is, it can be determined that the target service is a service that is establishing a connection for the first time, and the channel establishment can be completed according to the process of establishing the service for the first time, that is, the target authentication process is first initiated to the second device, and after the authentication is completed, the target service connection with the second device can be initiated.

[0105] Among them, when the type of broadcast signal is Bluetooth broadcast, the target authentication process is Bluetooth pairing, that is, initiating Bluetooth pairing to the second device; when the type of broadcast signal is network service discovery multicast, the target authentication process is LAN access, that is, initiating a LAN access request to the second device.

[0106] That is to say, when the service information hits the service comparison table, the first device itself can implement the authentication process based on the historical channel connection information, such as: Bluetooth pairing or LAN access; when the service information does not hit the service comparison table, the first device can send a target authentication request to the second device to implement the authentication process.

[0107] It should be noted that no matter which of the above-mentioned methods is used to establish a service connection, it is necessary to first determine whether the service information matches the service comparison table. The specific structural relationship of the service information provided in the embodiment of the present application is explained below.

[0108] Figure 7 This is a schematic diagram of the structure of the service information provided in the embodiment of this application. Please refer to Figure 7 , Figure 7 The chart shown is what the service information includes.

[0109] Optionally, the service information includes: an identifier of the target service, a port identifier of the service connection, a protocol supported by the target service, and account information.

[0110] It should be noted that, in the service information, the identifier of the target service, the port identifier of the service connection, the protocol supported by the target service, and the account information are required information, and the extended information is optional information.

[0111] The identifier of the target service may be a service name, and a specific implementation method may be a field composed of a used application name and a corresponding service name, wherein the service name may be a hash value of the field.

[0112] The port identifier of the service connection may be a port number. For example, during the registration of mdns (multicast DNS), a random TCP (Transmission Control Protocol) port name is generated for subsequent TCP connections. The port name is the above port number.

[0113] The protocol supported by the target service may be a TCP protocol supported by a local area network capability in a framework layer of the terminal device.

[0114] The account information may record the account information logged in by the terminal device. It should be noted that the account information of the account logged in by the first device is the same as the account information of the account logged in by the second device, that is, the first device and the second device are devices logged in to the same account.

[0115] Optionally, in addition to the above information, extended information may also be included, wherein the extended information may be used to record other information that needs to be additionally recorded.

[0116] It should be noted that Figure 7 The identifier of the target service shown in can specifically be a hash value composed of the application name and the service name; the port identifier of the service connection can specifically be a port name; the protocol supported by the target service can specifically be a TCP protocol; the account information can specifically be an account ID or identifier, etc.; the extended information can specifically be additionally added information.

[0117] The following is an example to explain the specific implementation process of establishing a service connection between the first device and the second device provided in the embodiment of the present application.

[0118] Figure 8 For a schematic diagram of establishing a service connection between a first device and a second device provided in an embodiment of the present application, please refer to Figure 8 ,exist Figure 8 In the case shown, the first device and the second device have previously established a service connection for service 1 via a local area network connection, and saved a corresponding service comparison table after establishing the service connection. The service comparison table can be stored in the first device and the second device respectively.

[0119] When the Bluetooth switch is turned on on the second device, the second device can send a Bluetooth broadcast. After receiving the Bluetooth broadcast, the first device can determine whether the service information in the Bluetooth broadcast hits the service comparison table based on the service information in the Bluetooth broadcast, and then determine whether the service to be connected is the above-mentioned service 1. If so, a Bluetooth connection can be directly initiated to the second device, that is, a Bluetooth connection channel is established; if not, Bluetooth pairing can be performed.

[0120] When the Bluetooth switch of the second device is turned off, if the WLAN switch of the second device is turned on and connected to the network point, the second device can send a network service discovery multicast. After receiving the network service discovery multicast, the first device can determine whether the service information in the network service discovery multicast hits the service comparison table based on the service information in the network service discovery multicast, and then determine whether the service to be connected is the above-mentioned service 1. If so, a LAN connection can be directly initiated to the second device, that is, a LAN connection channel is established; if not, a LAN access request can be sent.

[0121] It should be noted that Figure 8 The process shown is only an example. In the actual implementation process, the order of using different connection methods can be changed, and no specific limitation is made here.

[0122] In an embodiment of the present application, the service comparison table of the first device may be a service comparison table in which service information is stored after the first device establishes a connection with other devices. The specific process of establishing a service connection with other devices before establishing a target service connection with the second device in an embodiment of the present application is explained in detail below.

[0123] For example, if the first device needs to actively establish a service connection with other devices, such as any other device, then before establishing the service connection, it can first determine the target service for which the service connection needs to be established.

[0124] For example: the first device is a mobile phone, and the other device is a computer. The first device can establish a screen projection service connection with the other device, so that the display screen of the other device can play the video that needs to be projected in the first device; the first device can also establish an audio playback service connection with the other device, so that the speakers of the other device can play the audio that needs to be played in the first device. That is to say, for the same two devices, there can be multiple service connections that can be established. In order to more accurately and quickly implement the application of the corresponding service connection, service prediction can be performed on the first device to determine the target service to be established.

[0125] It should be noted that service prediction means that before a user uses a certain service, the terminal device (which can be the first device mentioned above or the second device or other device) can predict the service that the user is about to use based on the user's usage habits or the device's historical information, so as to establish the corresponding service connection channel in advance, and then when the user actually uses the service, data transmission can be achieved more quickly, shortening the time to establish the service connection channel after determining to use the service.

[0126] In one embodiment, when the first device discovers at least one other device, a target prediction result can be obtained based on the device information of the first device, the service information of the historical services of the first device, the device information of each other device, the service information of the historical services of each other device, and a preset service connection prediction model.

[0127] In order to more clearly explain the process of determining the target service provided in the embodiment of the present application, the specific structural relationship of the above-mentioned service connection prediction model is explained in detail below.

[0128] Fig. 9 This is a schematic diagram of the structure of the service connection prediction model provided in the embodiment of the present application. Please refer to Fig. 9 It should be noted that the service connection prediction model can be a graph neural model, the input of which can include device information of the first device, service information of historical services, and device information of the second device, service information of historical services, and the output of the model can be a target prediction result.

[0129] The target prediction result is used for a target service to which the first device and the second device can establish a service connection, and at least one other device includes the first device.

[0130] That is, the target prediction result includes: a first device and a target service, and according to the target result, the first device that needs to be connected to the second device and the service connection of the target service that needs to be established with the first device can be determined.

[0131] The device information includes: device identification and services provided by the device.

[0132] The identification of a device may specifically include: the type identification of the device and the identity identification of the device. For example, the type identification of the device may represent a large category of the device or a specific model of the device; the identity identification of the device may be a unique ID that represents the device. In addition, the device identification may also represent the type of the device. The type of the device may specifically include: the type of the device itself and the type of the channel used by the device. For example, the type of the device itself may include a mobile phone, a tablet computer, and a headset, etc.; the type of the device channel may be, for example, a Bluetooth channel, a wireless network channel, an end-to-end channel, and a near-field communication channel, etc., which are not specifically limited here.

[0133] The service information of historical services may record the services that the device has been connected to, as well as the number of times each service has been connected, the specific time of each connection, and other related information.

[0134] Among them, when the execution subject is the first device, the device information of the first device and the service information of the historical service can be stored by the device itself and can be directly obtained. For example, the service information of the historical service can be obtained from the above-mentioned service comparison table; the device information of the second device or any other device and the service information of the historical service can be sent to the first device by the second device or any other device, or can also be sent to the first device by a server connected to these devices via the Internet or other means, and no specific restrictions are made here.

[0135] After the first device discovers at least one other device, a physical connection may be established between the first device and the other device, and after the target prediction result is determined in the above manner, a target service connection with the target device may be established.

[0136] It should be noted that the preset service connection prediction model is obtained by training the initial neural network model based on the sample data of the sample device. The sample data includes device information, service information of historical services, and service connection status. The sample device is any device that establishes a service connection with other sample devices.

[0137] In the actual implementation process, the initial neural network model that has been trained with sample data can be used as the above-mentioned preset service connection prediction model, or the relevant data generated during use can also be used as sample data to continuously optimize the preset service connection prediction model being used. There is no specific limitation here, and one of the methods can be selected according to actual needs to implement training of the service connection prediction model.

[0138] In the service connection method provided in the embodiment of the present application, when at least one other device is found, a target prediction result can be obtained according to a preset service connection prediction model; and a service connection of the target service can be established with other devices according to the target prediction result. Among them, since the preset service connection prediction model is obtained after training the initial neural network model according to multiple sample data, the target prediction result can be determined more accurately and quickly through the model, so that data can be buffered in advance, and accordingly, the time consumed by the service connection can be reduced, and the efficiency of establishing the service connection can be further improved.

[0139] The specific implementation process of the service connection prediction model in the embodiment of the present application is explained below.

[0140] In one embodiment, the preset service connection prediction model includes a neighboring device modeling module, a service feature extraction module, and a service connection selection module. The device information includes a device identifier and a service provided by the device. The target prediction result is obtained based on the device information of the first device, the service information of the historical service of the first device, the device information of each other device, the service information of the historical service of each other device, and the preset service connection prediction model, wherein:

[0141] The neighboring device modeling module is used to obtain a connection topology relationship between the second device and at least one other device according to the device identification of the second device and the device identification of each other device.

[0142] It should be noted that other devices may be devices within a certain distance range from the second device, that is, neighboring devices of the second device. For example, they may be devices in the same room, or within a spherical space with a certain distance as a radius and the second device as the center. No specific limitation is made herein. Any device that can be discovered through the device discovery function may be the above-mentioned other devices, and the above-mentioned first device may be one of the neighboring devices of the second device.

[0143] The connection topology relationship between the second device and at least one other device can be determined based on the device identifier in the device information of each device. For example, if the second device is connected to the first device, the third device, and the fourth device respectively, the connection relationship between the second device and the first device, the connection relationship between the second device and the third device, and the connection relationship between the second device and the fourth device can be recorded respectively in the topology relationship. These connection relationships constitute the above-mentioned topology relationship.

[0144] That is to say, the topological relationship reflects the connection relationship between the second device and other devices adjacent to the second device. The connection relationship here can be a physical connection, that is, a service connection has not yet been established between the devices. The establishment of the connection topological relationship can be achieved through the neighboring device modeling module.

[0145] In one embodiment, the service feature extraction module is used to obtain at least one service discovery feature based on the connection topology, the service provided by the second device, the service information of the historical service of the second device, the service provided by each other device, and the service information of the historical service of each other device.

[0146] Each service discovery feature is a service discovery feature between the second device and one of the other devices.

[0147] Optionally, the services provided by the device can represent the various services that each device can provide, for example: a projector can provide screen projection services, headphones can provide audio playback services, etc.; the service information of historical services can determine the historical establishment of service connections by the device, for example: the second device has established a screen projection service with the first device, and then the service feature extraction module can determine the above-mentioned service discovery features through the connection topology relationship, the services provided by the second device, the service information of the historical services of the second device, the services provided by each other device, and the service information of the historical services of each other device.

[0148] The service discovery feature may be a feature extracted from multiple services. For example, the second device may provide three different services: service 1, service 2, and service 3. The service discovery feature may be the service discovery feature of service 1, or the service discovery feature of service 2, or the service discovery feature of service 3.

[0149] The service feature extraction module may determine the service discovery feature of each service from the corresponding service based on a preset extraction rule.

[0150] It should be noted that the service discovery features may specifically include, for example, the usage time of a service, the number of times a service is used, etc., without specific limitation herein, and anything that can represent the characteristics of a service may be used as the above service discovery features.

[0151] In one embodiment, the service connection selection module is used to determine a target prediction result according to at least one service discovery feature.

[0152] Optionally, after obtaining at least one service discovery feature, the target prediction result can be determined based on the service discovery feature. For example, the service connection selection module can determine factors such as the frequency of occurrence of a service discovery feature or the impact it brings to determine whether the services to which these service discovery features belong can be used as target prediction results. If so, the services to which these service discovery features belong can be used as target prediction results, that is, they can be used as target services to establish connections between the second device and other devices.

[0153] For example, if it is determined based on the relevant service discovery characteristics of the screen projection service that the screen projection service can be used as the target prediction result, and the other device that can establish the screen projection service with the second device is the first device, then a screen projection service connection can be established between the second device and the first device. In this scenario, the screen projection service can be used as the above-mentioned target service.

[0154] In the service connection method provided in the embodiment of the present application, the neighboring device modeling module can obtain the connection topology relationship between the second device and at least one other device according to the device identification of the second device and the device identification of each other device; the service feature extraction module can obtain at least one service discovery feature according to the connection topology relationship, the service provided by the second device, the service information of the historical service of the second device, the service provided by each other device and the service information of the historical service of each other device, and each service discovery feature is a service discovery feature between the first device and one of the other devices; the service connection selection module determines the target prediction result according to the at least one service discovery feature. Among them, the topology relationship between the second device and the other devices can be established more accurately through the neighboring device modeling module, and then the service discovery feature can be extracted more accurately through the service feature extraction module, and the target prediction result can be obtained accurately and quickly through the service connection selection module. When the other device is the first device, the establishment of the target service between the second device and the first device can be achieved more quickly and accurately.

[0155] The specific implementation process of service discovery feature extraction provided in the embodiments of the present application is explained below.

[0156] In one embodiment, the service feature extraction module includes a personalized service feature extraction submodule and a public service feature extraction submodule, wherein:

[0157] The personalized service feature extraction submodule is used to process the connection topology relationship, the services provided by the second device, the service information of the historical services of the second device, the services provided by each other device, and the service information of the historical services of each other device to obtain the personalized service features between the second device and each other device.

[0158] The public service feature extraction submodule is used to process the personalized service features between the second device and each other device to obtain the public service features.

[0159] The public service feature is a personalized service feature between the second device and each other device, or a same service feature among a plurality of pre-stored personalized service features.

[0160] It should be noted that the personalized service features may be personalized service features under a certain account after the device logs in to the account; the public service features may be the same features among the personalized service features of different accounts. For the second device, the personalized service features of other accounts other than the currently logged-in account may be used as multiple pre-stored personalized service features. After obtaining the personalized service features of the current account, the public service features may be determined from the personalized service features of the current account and the same service features among the multiple pre-stored personalized service features.

[0161] The specific implementation process may be screening or extracting different features. The following uses a specific example to explain the process of determining personalized service features and public service features.

[0162] For example: based on the connection topology, the services provided by the second device, the service information of the second device's historical services, the services provided by each other device, and the service information of each other device's historical services, it can be determined that the time when the user of account A uses service 1 to establish a connection is usually 2 pm, then establishing a service connection at 2 pm can be used as a personalized service feature of service 1.

[0163] For another example: Based on the personalized service characteristics between the second device and each other device and multiple pre-stored personalized service characteristics, it can be determined that the time when the user of account A uses service 1 to establish a connection is usually 2 pm, the time when the user of account B uses service 1 to establish a connection is usually 3 pm, and the time when the user of account C uses service 1 to establish a connection is usually 2:30 pm. In this case, establishing a connection to service 1 in the afternoon can be used as a public service characteristic of service 1.

[0164] That is to say, for each service, corresponding personalized service characteristics and public service characteristics can be determined.

[0165] A service connection method provided in an embodiment of the present application can process the connection topology, the service provided by the second device, the service information of the historical service of the second device, the service provided by each other device, and the service information of the historical service of each other device through a personalized service feature extraction submodule to obtain personalized service features between the second device and each other device. Through the public service feature extraction submodule, the personalized service features between the first device and each other device are processed to obtain public service features. Among them, by respectively determining the personalized service features and the public service features in the above manner, different target prediction results can be obtained according to the usage of different users, thereby improving the applicability and extensiveness of determining the target prediction results.

[0166] In one embodiment, the service connection selection module is specifically used to process the personalized service characteristics and the public service characteristics between the second device and each other device, and determine the target service that can be connected between the second device and the other devices.

[0167] It should be noted that during the processing, the service connection selection module can process the above two features through a personalized collaborative model and a public collaborative model, and can obtain a first output result and a second output result respectively, and then further determine the target service based on the first output result and the second output result.

[0168] It should be noted that after the personalized service characteristics and the public service characteristics are determined respectively in the above manner, the target service can be determined based on the personalized service characteristics and the public service characteristics. For example: through the personalized service characteristics, it can be determined that account A will establish a service connection with service 1 of other devices at a certain time every day when using the second device, and through the public service characteristics, it can be determined that most accounts will also establish a service connection with service 1 of other devices every day when using the first device. In this case, service 1 can be used as the above target service, that is, it can be determined as the target service that can establish a connection between the second device and the other device.

[0169] For example, the first output result and the second output result may be the connection status determined for a certain service. For example, after inputting the personalized service characteristics of a service into the personalized collaborative model, the connection status of the service can be obtained, such as: whether the connection can be established or not, and the probability that the service can establish a connection can be calculated, and the probability can be used as the first output result; correspondingly, after inputting the public service characteristics of a service into the public collaborative model, the connection status of the service can be obtained, such as: whether the connection can be established or not, and the probability that the service can establish a connection can be calculated, and the probability can be used as the second output result.

[0170] After obtaining the first output result and the second output result, the probability that the service can establish a connection can be further determined according to the preset weight. For example, the weight of the first output result can be set to 2 / 3, and the weight of the second output result can be set to 1 / 3. After weighted calculation, the final probability of establishing a connection is determined, and then the connection status of each service to be connected is determined according to the size of the probability.

[0171] For example, when the weighted probability is greater than or equal to 80%, it can be determined that the connection can be established; when the weighted probability is less than 80%, it can be determined that the connection cannot be established.

[0172] That is, it is possible to determine whether each service can be used as a target service in the above manner, and after determining the target service, establish a service connection of the target service between the second device and the corresponding other device. In the case where the other device is the first device, the second device can send a broadcast message to the first device.

[0173] In order to explain the above process more clearly, the following takes the second device as an example to explain the specific implementation process of working based on the above service connection prediction model.

[0174] Fig.10 Please refer to the workflow diagram based on the service connection prediction model provided in the embodiment of this application. Fig.10 The second device can first call the collaborative scheduling module through the short-distance protocol stack therein, and then the collaborative scheduling module can determine the personalized service characteristics and public service characteristics of the service from the service to be connected, and can input the personalized service characteristics into the personalized collaborative model, and input the public service characteristics into the public collaborative model, and the two collaborative models respectively output the first output result and the second output result, and then obtain the connection status of the service to be connected based on the first output result and the second output result, and return the connection status to the collaborative scheduling module.

[0175] It should be noted that the above process is only a feasible example. In the actual implementation process, corresponding adjustments can be made according to actual needs and are not intended to be limiting.

[0176] Optionally, in the process of determining the service discovery feature, since the number of service discovery features is large, a preset parameter screening model may be used to determine the target service discovery feature. The specific screening process of the parameter screening model is as follows:

[0177] Fig.11 This is a working diagram of the parameter screening model provided in the embodiments of this application, please refer to Fig.11The preset service connection prediction model also includes a parameter screening model, wherein the parameter screening model is used to screen at least one service discovery feature to obtain a target service discovery feature; and the service connection selection module is specifically used to determine a target prediction result according to the target service discovery feature.

[0178] The input of the parameter screening model may be the at least one service discovery feature mentioned above, and the output of the parameter screening model may be the target service discovery feature.

[0179] The parameter screening model is a reversible neural network model, which is used to screen out some service discovery features that improve the model accuracy of the parameter screening model from multiple service discovery features.

[0180] It should be noted that for different terminal devices, since they discover differences in connection methods and the wireless environment sometimes fluctuates greatly, the impact of different service characteristics is often submerged in these impacts, resulting in the model being difficult to capture the impact of different service characteristics on the adjustment of optimization goals during training. To address this situation, the embodiment of the present application uses a reversible neural network parameter screening model to retain the action information of the input service characteristics in the model, which can better capture the impact of changes in service feature actions on optimization goals.

[0181] In the service connection method provided in the embodiment of the present application, at least one service discovery feature can be screened by a parameter screening model to obtain a target service discovery feature; and a target prediction result is determined according to the service connection selection module and the target service discovery feature. Among them, by screening the service discovery feature by the parameter screening model, a more appropriate service discovery feature can be obtained, thereby improving the robustness of the determined target prediction result.

[0182] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part 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 executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0183] Based on the foregoing embodiments, an embodiment of the present application provides a service connection device, which includes the modules included and the units included in the modules, which 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.

[0184] Fig.12 This is a schematic diagram of the structure of the service connection device provided in the embodiment of the present application. Please refer to Fig.12 , the device includes: a receiving module 1410, a connecting module 1420;

[0185] The receiving module 1410 is configured to receive a broadcast signal sent by the second device, wherein the broadcast signal includes: service information of a target service to be connected;

[0186] The connection module 1420 is used to initiate a target service connection with the second device when the service information is service information recorded in a service comparison table. The target service connection is used for the target service. The service comparison table is used to record service information of at least one historical service. The historical service is a service established by the first device and other devices.

[0187] In one embodiment, the connection module 1420 is specifically used to establish a target connection channel with the second device based on historical channel connection information with the second device, where the target connection channel matches the type of the broadcast signal, and the historical channel connection information includes device information of the second device; and initiate a target service connection with the second device based on the target connection channel.

[0188] In one embodiment, the connection module 1420 is specifically used to send a Bluetooth connection request to the second device to establish a Bluetooth connection channel after completing Bluetooth pairing based on the historical channel connection information with the second device when the type of the broadcast signal is Bluetooth broadcast; or, when the type of the broadcast signal is network service discovery multicast, send a LAN connection request to the second device to establish a LAN connection channel after completing LAN access based on the historical channel connection information with the second device.

[0189] In one embodiment, the connection module 1420 is also used to initiate a target authentication process to the second device, wherein, when the type of the broadcast signal is Bluetooth broadcast, the target authentication process is Bluetooth pairing; when the type of the broadcast signal is network service discovery multicast, the target authentication process is local area network access; after completing the target authentication process, a target service connection with the second device is initiated.

[0190] In one embodiment, in the device, the service information includes: an identifier of the target service, a port identifier of the service connection, a protocol supported by the target service, and account information.

[0191] In one embodiment, in the apparatus, the first device and the second device are devices logged into the same account.

[0192] In one embodiment, the connection module 1420 is further configured to store the service information of the target service into the service comparison table after establishing the target service connection with the second device.

[0193] In one embodiment, the broadcast signal is sent by the second device according to the target prediction result of a preset service connection prediction model when at least one other device is discovered. The target prediction result is used to indicate the first device and the target service that can establish a service connection with the first device. The at least one other device includes the first device. The preset service connection prediction model is obtained by training an initial neural network model based on sample data of a sample device. The sample data includes device information, service information of historical services, and service connection status. The sample device is any device that establishes a service connection with other sample devices.

[0194] In one embodiment, a preset service connection prediction model includes a neighboring device modeling module, a service feature extraction module and a service connection selection module, the device information includes a device identification and a service provided by the device, and a target prediction result is obtained based on the device information of the second device, the service information of the historical services of the second device, the device information of each other device, the service information of the historical services of each other device and the preset service connection prediction model, wherein: the neighboring device modeling module is used to obtain a connection topology relationship between the second device and at least one other device based on the device identification of the second device and the device identification of each other device; the service feature extraction module is used to obtain at least one service discovery feature based on the connection topology relationship, the service provided by the second device, the service information of the historical services of the second device, the service provided by each other device and the service information of the historical services of each other device, each service discovery feature is a service discovery feature between the second device and one of the other devices; the service connection selection module is used to determine the target prediction result based on at least one service discovery feature.

[0195] In one embodiment, the service feature extraction module includes a personalized service feature extraction submodule and a public service feature extraction submodule, wherein: the personalized service feature extraction submodule is used to process the connection topology relationship, the service provided by the second device, the service information of the historical service of the second device, the service provided by each other device, and the service information of the historical service of each other device to obtain the personalized service feature between the second device and each other device; the public service feature extraction submodule is used to process the personalized service feature between the second device and each other device to obtain the public service feature, which is the personalized service feature between the second device and each other device and the same service feature among the multiple pre-stored personalized service features.

[0196] In one embodiment, the service connection selection module is specifically used to: process the personalized service characteristics and public service characteristics between the second device and each other device, and determine the target service that can be connected between the second device and the other devices.

[0197] In one embodiment, the preset service connection prediction model also includes a parameter screening model, wherein: the parameter screening model is used to screen at least one service discovery feature to obtain a target service discovery feature; and the service connection selection module is specifically used to determine a target prediction result based on the target service discovery feature.

[0198] 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 the present application, please refer to the description of the method embodiment of the present application for understanding.

[0199] It should be noted that in the embodiments of this application Fig.12 The division of modules in the service connection device shown is schematic and is only a logical functional division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0200] 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 such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable 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 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.

[0201] Fig.13 For a schematic diagram of the structure of the computer device provided in the embodiment of the present application, please refer to Fig.13 , the embodiment of the present application provides a computer device, which can be any terminal device, for example: it can be the above-mentioned first device, or the above-mentioned second device or any other device, and no specific limitation is made here. Its internal structure diagram can be as shown in Fig.13 As shown. The computer device includes a processor 1520, a memory and a network interface 1540 connected via a system bus 1510. Among them, the processor 1520 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium 1531 and an internal memory 1532. The non-volatile storage medium 1531 stores an operating system, a computer program and a database. The internal memory 1532 provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium 1531. The database of the computer device is used to store data. The network interface 1540 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 1520, the above method is implemented.

[0202] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0203] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0204] Those skilled in the art will understand that Fig.13The 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 those shown in the figure, or combine certain components, or have a different arrangement of components.

[0205] In one embodiment, the service connection device provided by the present application can be implemented in the form of a computer program. The computer program can be Fig.13 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps in the method of each embodiment of the present application described in this specification.

[0206] It should be noted here 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.

[0207] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that 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 one embodiment" or "in some embodiments" appearing throughout the specification may 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 various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and 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 embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0208] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0209] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0210] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, 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.

[0211] 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 on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0212] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0213] A person skilled in the art can understand that all or part of the steps of implementing the above 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 method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0214] Alternatively, if the above-mentioned integrated unit of the present application 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 can essentially or in other words, 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 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.

[0215] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0216] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0217] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0218] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A service connection method, characterized in that: Applied to a first device, the method includes: Receiving a broadcast signal sent by a second device, wherein the broadcast signal includes: service information of a target service to be connected to; In the case where the service information is service information recorded in a service comparison table, a target service connection is initiated with the second device, the target service connection is used for the target service, the service comparison table is used to record service information of at least one historical service, and the historical service is a service established by the first device with other devices.

2. The method according to claim 1, characterized in that The initiating a target service connection with the second device includes: Establishing a target connection channel with the second device according to historical channel connection information with the second device, wherein the target connection channel matches the type of the broadcast signal, and the historical channel connection information includes device information of the second device; Initiate a target service connection with the second device according to the target connection channel.

3. The method according to claim 2, characterized in that The establishing a target connection channel with the second device according to the historical channel connection information with the second device includes: In the case where the type of the broadcast signal is Bluetooth broadcast, after completing Bluetooth pairing according to the historical channel connection information with the second device, sending a Bluetooth connection request to the second device to establish a Bluetooth connection channel; or, In the case where the type of the broadcast signal is network service discovery multicast, after completing the LAN access according to the historical channel connection information with the second device, a LAN connection request is sent to the second device to establish a LAN connection channel.

4. The method according to claim 1, characterized in that: In the case where the service information is not the service information recorded in the service comparison table, the method further includes: Initiate a target authentication process to the second device, wherein when the type of the broadcast signal is Bluetooth broadcast, the target authentication process is Bluetooth pairing; when the type of the broadcast signal is network service discovery multicast, the target authentication process is local area network access; After completing the target authentication process, a target service connection with the second device is initiated.

5. The method according to any one of claims 1 to 4, characterized in that: The service information includes: the identifier of the target service, the port identifier of the service connection, the protocol supported by the target service, and account information.

6. The method according to any one of claims 1 to 4, characterized in that: The first device and the second device are devices logged in to the same account.

7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: After establishing a target service connection with the second device, the service information of the target service is stored in the service comparison table.

8. The method according to claim 1, characterized in that The broadcast signal is sent by the second device according to a target prediction result of a preset service connection prediction model when the second device discovers at least one other device, the target prediction result is used to indicate the first device and a target service that can establish a service connection with the second device, the at least one other device includes the first device, the preset service connection prediction model is obtained by training an initial neural network model based on sample data of a sample device, the sample data includes device information, service information of historical services, and service connection status, and the sample device is any device that establishes a service connection with other sample devices.

9. The method according to claim 8, characterized in that The preset service connection prediction model includes a neighboring device modeling module, a service feature extraction module, and a service connection selection module. The device information includes a device identifier and a service provided by the device. The target prediction result is obtained based on the device information of the second device, the service information of the historical service of the second device, the device information of each of the other devices, the service information of the historical service of each of the other devices, and the preset service connection prediction model, wherein: The neighboring device modeling module is used to obtain a connection topology relationship between the second device and the at least one other device according to the device identification of the second device and the device identification of each of the other devices; The service feature extraction module is used to obtain at least one service discovery feature according to the connection topology, the service provided by the second device, the service information of the historical service of the second device, the service provided by each of the other devices, and the service information of the historical service of each of the other devices, each service discovery feature being a service discovery feature between the second device and one of the other devices; The service connection selection module is used to determine the target prediction result according to the at least one service discovery feature.

10. The method according to claim 9, characterized in that The service feature extraction module includes a personalized service feature extraction submodule and a public service feature extraction submodule, wherein: The personalized service feature extraction submodule is used to process the connection topology, the service provided by the second device, the service information of the historical service of the second device, the service provided by each of the other devices, and the service information of the historical service of each of the other devices to obtain the personalized service feature between the second device and each of the other devices; The public service feature extraction submodule is used to process the personalized service features between the second device and each of the other devices to obtain public service features, where the public service features are the personalized service features between the second device and each of the other devices and the same service features among the pre-stored multiple personalized service features.

11. The method according to claim 10, characterized in that The service connection selection module is specifically used to: The personalized service characteristics and the public service characteristics between the second device and each of the other devices are processed to determine the target service to which the second device and the other devices can establish a connection.

12. The method according to claim 8, characterized in that The preset service connection prediction model also includes a parameter screening model, wherein: The parameter screening model is used to screen the at least one service discovery feature to obtain a target service discovery feature; The service connection selection module is specifically used to determine the target prediction result according to the target service discovery feature.

13. A service connection device, characterized in that: Applied to a first device, the apparatus comprises: a receiving module and a connecting module; The receiving module is used to receive a broadcast signal sent by the second device, wherein the broadcast signal includes: service information of a target service to be connected; The connection module is used to initiate a target service connection with the second device when the service information is service information recorded in a service comparison table, the target service connection is used for the target service, the service comparison table is used to record service information of at least one historical service, and the historical service is a service established by the first device and other devices.

14. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 12 are implemented.

15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

Citation Information

Cited By

  • Service connection method and apparatus, device and storage medium

    WO2026001480A1