Direct connection method of client and client system

By using multicast groups and ultrasonic information encoding and decoding methods in the local area network, the automatic connection between the mobile client and the TV client is realized, which solves the problems of cumbersome and unstable connections in the existing technology and improves convenience and stability. sex.

CN118695048APending Publication Date: 2024-09-24HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410947672.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing connection method between mobile clients and TV clients is cumbersome and requires manual operations by users, and changes in IP address and port information lead to unstable connections.

Method used

Join the multicast group in the LAN through the TV client and listen in real time. The mobile client sends multicast network packets to obtain ultrasonic information. The TV client encodes and plays the IP address and port information, and the mobile client decodes to achieve a senseless connection.

Benefits of technology

It realizes automatic connection without user operation, ensures the stability and convenience of the connection, and avoids connection problems caused by changes in IP address and port information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118695048A
    Figure CN118695048A
Patent Text Reader

Abstract

The invention discloses a direct connection method of a client and a client system, the client system comprises a mobile client and a television client, the method comprises the following steps: after the television client is connected with a current local area network, the television client joins in a multicast group of a specified multicast address of the current local area network and monitors the multicast group in real time; after the mobile client is connected with the current local area network, a multicast network packet is sent to a port of a specified multicast address of the current local area network, and ultrasonic information is received in real time; when the television client monitors a multicast network packet sent by the mobile client, if it is determined that the intention of the multicast network packet contains a connection intention, the current IP address and connection port information of the television client are encoded into current ultrasonic information and played; and when receiving the current ultrasonic information, the mobile client decodes the current ultrasonic information to obtain the IP address and the connection port information of the television client, and is connected with the television client based on the IP address and the connection port information of the current television client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of device communication connection, and particularly designs a client direct connection method and a client system. Background Art

[0002] Most current applications allow users to log in to multiple mobile clients and TV clients at the same time, and some applications also support interaction between mobile clients and TV clients. To achieve interaction between mobile clients and TV clients, it is necessary to connect the mobile client and the TV client, that is, to establish a connection channel between the mobile client and the TV client, so that interaction can be carried out through the connection channel.

[0003] The current method of connecting a mobile client to a TV client is mainly that the user operates the TV client so that the TV client generates a corresponding QR code according to the IP address and port information of the TV client and displays the QR code. Then, the user scans the QR code through the mobile client to obtain the IP address and port information of the TV client through the QR code, and connects to the TV client based on the IP address and port information of the TV client. Another method is that after the mobile client obtains the IP address and port information of the TV client, it caches it, and then can directly use the cached IP address and port information of the TV client to connect to the TV client.

[0004] However, the first method is not a seamless connection, and each connection requires the user to operate the TV client and the mobile client, so it is relatively cumbersome. For the second method, since the IP address and port information of the TV client may change, it may not be connected in time, and the user needs to operate again and rescan to obtain new information, so it is also relatively cumbersome. Summary of the invention

[0005] Based on the above-mentioned deficiencies of the prior art, the present application provides a client direct connection method and a client system to solve the problem that the existing connection between a TV client and a mobile client is relatively cumbersome.

[0006] In order to achieve the above objectives, this application provides the following technical solutions:

[0007] In a first aspect, the present application provides a direct connection method of a client, which is applied to a client system, wherein the client system includes a mobile client and a television client, and the direct connection method of the client includes:

[0008] After connecting to the current local area network, the TV client joins the multicast group of the designated multicast address of the current local area network and monitors the multicast group in real time;

[0009] After connecting to the current local area network, the mobile client sends a multicast network packet to a port of a designated multicast address of the current local area network and receives ultrasonic information in real time;

[0010] When the TV client monitors the multicast network packet sent by the mobile client, if it is determined that the intention of the multicast network packet includes a connection intention, the TV client performs ultrasonic information encoding on the current IP address and connection port information of the TV client, obtains the current ultrasonic information and plays it;

[0011] When the mobile client receives the current ultrasonic information played by the TV client, the mobile client decodes the current ultrasonic information to obtain the IP address and connection port information of the current TV client;

[0012] The mobile client connects to the TV client based on the IP address and connection port information of the current TV client.

[0013] Optionally, in the above-mentioned client direct connection method, before the ultrasonic information encoding of the current IP address and connection port information is performed to obtain the current ultrasonic information and play it, it includes:

[0014] The television client starts its own communication service and records the port information of its own communication service;

[0015] The step of performing ultrasonic information encoding on the current IP address and connection port information to obtain and play the current ultrasonic information includes:

[0016] The television client performs ultrasonic information encoding on the current IP address of the television client and the port information of the communication service, obtains the current ultrasonic information and plays it.

[0017] Optionally, in the above-mentioned client direct connection method, the mobile client connects to the TV client based on the current IP address and connection port information of the TV client, including:

[0018] The mobile client connects to the communication service of the TV client through its own communication service based on the current IP address of the TV client and the port information of the communication service.

[0019] Optionally, in the above-mentioned client direct connection method, before sending the multicast network packet to the port of the designated multicast address of the current local area network, the method further includes:

[0020] The mobile client obtains the identifier and current intention of the mobile client; wherein the current intention at least includes a connection intention;

[0021] The mobile client encrypts the identifier of the mobile client and the current intention to obtain the encrypted identifier of the mobile client and the current intention;

[0022] The mobile client generates the multicast network packet using the encrypted identification of the mobile client and the current intention.

[0023] Optionally, in the above-mentioned client direct connection method, it also includes:

[0024] After the TV client monitors the multicast network packet sent by the mobile client, the TV client parses the multicast network packet to obtain the encrypted identifier of the mobile client and the current intention;

[0025] The encrypted identifier of the mobile client and the current intention are decrypted to obtain the identifier of the mobile client and the current intention.

[0026] Optionally, in the above-mentioned client direct connection method, the ultrasonic information encoding of the current IP address and connection port information of the client to obtain the current ultrasonic information and play it includes:

[0027] The TV client encodes each character of its current IP address and connection port information based on a predefined correspondence table between characters and ultrasonic frequencies, obtains the current ultrasonic information, and plays the current ultrasonic information according to a preset number of plays;

[0028] The mobile client decodes the current ultrasonic information to obtain the IP address and connection port information of the current TV client, including:

[0029] The mobile client decodes the current ultrasonic information based on the predefined table of correspondence between characters and ultrasonic frequencies to obtain the IP address and connection port information of the current TV client.

[0030] Optionally, in the above-mentioned client direct connection method, before the mobile client connects to the TV client based on the IP address and connection port information of the current TV client, the method further includes:

[0031] If the mobile client currently obtains the IP addresses and connection port information of multiple TV clients, the mobile client provides the options of each TV client to the user for selection;

[0032] The mobile client connects to the TV client based on the IP address and connection port information of the current TV client, including:

[0033] The mobile client responds to the user's selection operation and connects to the TV client based on the IP address and connection port information of the current TV client selected by the user.

[0034] A second aspect of the present application provides a client system, including:

[0035] Mobile client and TV client;

[0036] The TV client is used to join the multicast group of the designated multicast address of the current local area network after connecting to the current local area network and monitor the multicast group in real time, and when monitoring the multicast network packet sent by the mobile client, if it is determined that the intention of the multicast network packet includes the connection intention, then perform ultrasonic information encoding on the current IP address and connection port information of the TV client, obtain the current ultrasonic information and play it;

[0037] The mobile client is used to send multicast network packets to the port of the designated multicast address of the current local area network after connecting to the current local area network, and receive ultrasonic information in real time, and when receiving the current ultrasonic information played by the TV client, decode the current ultrasonic information to obtain the IP address and connection port information of the current TV client, and connect to the TV client based on the IP address and connection port information of the current TV client.

[0038] Optionally, in the above client system, the television client is further used for:

[0039] Before performing ultrasonic information encoding on the current IP address and connection port information of the device, obtaining the current ultrasonic information and playing it, starting the communication service of the device and recording the port information of the communication service of the device;

[0040] The TV client performs ultrasonic information encoding on its own current IP address and connection port information, obtains the current ultrasonic information and plays it, and is used to:

[0041] The current IP address and the port information of the communication service are encoded with ultrasonic information to obtain the current ultrasonic information and play it.

[0042] Optionally, in the above-mentioned client system, when the mobile client is connected to the TV client based on the IP address and connection port information of the current TV client, it is used to:

[0043] Through its own communication service, based on the current IP address of the TV client and the port information of the communication service, the communication service of the TV client is connected.

[0044] Optionally, in the above client system, the mobile client is further used for:

[0045] Acquire the identifier and current intention of the mobile client; wherein the current intention at least includes a connection intention;

[0046] Encrypting the identifier of the mobile client and the current intention to obtain the encrypted identifier of the mobile client and the current intention;

[0047] The multicast network packet is generated using the encrypted identifier of the mobile client and the current intention.

[0048] Optionally, in the above client system, the television client is further used for:

[0049] After monitoring the multicast network packet sent by the mobile client, parsing the multicast network packet to obtain the encrypted identifier of the mobile client and the current intention;

[0050] The encrypted identifier of the mobile client and the current intention are decrypted to obtain the identifier of the mobile client and the current intention.

[0051] Optionally, in the above-mentioned client system, the television client performs ultrasonic information encoding on its current IP address and connection port information, obtains the current ultrasonic information and plays it, for:

[0052] Based on a predefined correspondence table between characters and ultrasonic frequencies, the characters of the current IP address and the connection port information are encoded to obtain the current ultrasonic information, and the current ultrasonic information is played according to a preset number of times;

[0053] Wherein, when the mobile client decodes the current ultrasonic information and obtains the IP address and connection port information of the current TV client, it is used to:

[0054] The mobile client decodes the current ultrasonic information based on the predefined table of correspondence between characters and ultrasonic frequencies to obtain the IP address and connection port information of the current TV client.

[0055] Optionally, in the above client system, the mobile client is further used for:

[0056] If the mobile client currently obtains the IP addresses and connection port information of multiple TV clients, the mobile client provides the options of each TV client to the user for selection;

[0057] Wherein, the mobile client is used to connect to the TV client based on the IP address and connection port information of the current TV client:

[0058] The mobile client responds to the user's selection operation and connects to the TV client based on the IP address and connection port information of the current TV client selected by the user.

[0059] The embodiment of the present application provides a direct connection method of a client, which is applied to a client system. Among them, the client system includes a mobile client and a TV client. When the connection is specifically implemented, after the TV client is connected to the current local area network, it will automatically join the multicast group of the specified multicast address of the current local area network and monitor the multicast group in real time, so as to be able to monitor the multicast network packet sent by the mobile client to the multicast group. After the mobile client is connected to the current local area network, it will automatically send a multicast network packet to the port of the specified multicast address of the current local area network, and receive ultrasonic information in real time to receive the ultrasonic information sent by the TV client. When the TV client monitors the multicast network packet sent by the mobile client, if it is determined that the intention of the multicast network packet contains the intention to connect, the ultrasonic information is encoded for the current IP address and connection port information of the mobile client, and the current ultrasonic information is obtained and played. When the mobile client receives the current ultrasonic information played by the TV client, it decodes the current ultrasonic information, obtains the IP address and connection port information of the current TV client, and connects the TV client based on the IP address and connection port information of the current TV client. The entire connection process does not require any user operation. After the TV client and the mobile client are automatically connected to the same local area network, they will automatically connect, that is, the entire process is seamless. In addition, each connection is based on the current TV client's IP address and connection port information. There is no situation where the IP address and connection port information change and the connection fails, making the connection between the TV client and the mobile client more convenient. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0061] Figure 1 A flowchart of a direct connection method of a client provided in an embodiment of the present application;

[0062] Figure 2A flowchart of a method for generating a multicast network packet provided in an embodiment of the present application;

[0063] Figure 3 A flowchart of a method for generating and transmitting current ultrasonic information provided in an embodiment of the present application;

[0064] Figure 4 A schematic diagram of the architecture of a client system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0065] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0066] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants 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 statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0067] The embodiment of the present application provides a client direct connection method, which is applied to a client system, wherein the client system includes a mobile client and a TV client, that is, any mobile client and TV client of the same application. Figure 1 As shown, the direct connection method of the client provided in the embodiment of the present application includes the following steps:

[0068] S101. After connecting to the current local area network, the TV client joins the multicast group of the designated multicast address of the current local area network and monitors the multicast group in real time.

[0069] The current LAN is the currently connected LAN, which can be any LAN. Therefore, after the TV client determines that it is connected to any LAN, it will start to join the multicast group of the specified multicast address of the current LAN and monitor the multicast group in real time. Optionally, the LAN can specifically refer to a wifi network.

[0070] Since in the embodiment of the present application, it is necessary to interact with the information of connecting with the mobile client through the local area network through the TV client, the TV client will execute the subsequent steps only after the TV client is connected to any local area network. Therefore, the TV client can determine in real time whether it is connected to any local area network after startup. When it is determined that the TV client is connected to the local area network, it joins the multicast group of the specified multicast address of the current local area network and monitors the multicast group in real time. Since the current TV client will automatically connect to the local area network after being turned on, after the TV client is turned on, it will automatically connect to the mobile client without the need for user operation.

[0071] The designated multicast address of the current local area network may be a pre-designated IP address from 224.0.0.0 to 239.255.255.255, that is, an IP address is designated as the designated multicast address of the current local area network.

[0072] S102. After connecting to the current local area network, the mobile client sends a multicast network packet to the port of the designated multicast address of the current local area network, and receives ultrasonic information in real time.

[0073] It should be noted that only when the mobile client is connected to any LAN will it send multicast network packets to the port of the specified multicast address of the current LAN and receive ultrasonic information in real time, that is, only when it is connected to the LAN will the subsequent steps be executed. Therefore, after starting the mobile client, it starts to determine in real time whether the mobile client is connected to the LAN. When it is determined that the LAN is connected, it will send multicast network packets to the port of the specified multicast address of the LAN and receive ultrasonic information in real time. The mobile client can also automatically connect to the LAN, so it will automatically execute the subsequent steps after connecting to the LAN to connect to the TV client.

[0074] Optionally, in order to meet different needs of users, a switch button with a connection function can be set. When the switch button is in the on state, the mobile client will send multicast network packets to the port of the specified multicast address of the current local area network and receive ultrasonic information in real time after connecting to the current local area network. Therefore, when the user does not want to connect to the TV client, the switch button can be set to the off state.

[0075] Since the multicast network packets can be delivered to the TV client only when they are connected to the same local area network, if there are multiple local area networks, it is necessary to ensure that both are connected to the same local area network.

[0076] In order to let the TV client know that the mobile client has a connection requirement, the mobile client needs to send a multicast network packet to the port of the designated multicast address monitored by the TV client. The multicast network packet contains information expressing the mobile client's connection intention.

[0077] Since in the embodiment of the present application, the subsequent TV client sends the IP address and port information of the TV client via ultrasound, in order for the mobile client to receive the ultrasonic information sent by the TV client, the mobile client needs to receive the ultrasonic information in real time.

[0078] It should be noted that before executing step S102, a multicast network packet needs to be generated first. Optionally, in another embodiment of the present application, a method for generating a multicast network packet is provided, such as Figure 2 As shown, the following steps are included:

[0079] S201: The mobile client obtains the mobile client's identifier and current intention.

[0080] The current intent at least includes the connection intent, so that the TV client can know that the mobile client needs to connect. The multicast group can also be used to spread information about the intent of inquiry, answer, etc. In order to allow the TV client to distinguish the connected mobile client, the identifier of the mobile client needs to be transmitted to the TV client, so it is necessary to obtain the identifier of the mobile client and the current intent, so as to generate a multicast network packet by obtaining the identifier of the mobile client and the current intent.

[0081] S202: The mobile client encrypts the mobile client's identifier and current intention to obtain the encrypted mobile client's identifier and current intention.

[0082] It should be noted that in order to ensure the security of the connection, the mobile client's identification and current intention need to be encrypted. Specifically, the mobile client's identification and current intention can be encrypted using a pre-configured encryption algorithm and key to obtain the encrypted mobile client's identification and current intention.

[0083] S203: The mobile client generates a multicast network packet using the encrypted mobile client identifier and current intention.

[0084] S103, when the TV client monitors the multicast network packet sent by the mobile client, if it is determined that the intention of the multicast network packet includes the connection intention, the TV client performs ultrasonic information encoding on the current IP address and connection port information of the TV client to obtain the current ultrasonic information and play it.

[0085] Since the TV client monitors the multicast group of the specified multicast address in real time, when the mobile client sends a multicast network packet to the port of the specified multicast address of the current local area network, that is, the multicast network is sent to the multicast group, the TV client will receive the multicast network packet. Then it is determined whether the intention of the multicast network packet contains the connection intention. If it contains the connection intention, the current IP address and connection port information are encoded with ultrasonic information to obtain the current ultrasonic information and play it externally.

[0086] Optionally, since the current connection port information is needed when executing step S103, in another embodiment of the present application, before executing step S103, the following is further performed:

[0087] The TV client starts its own communication service and records the port information of its own communication service.

[0088] It should be noted that in the embodiment of the present application, a communication service is used to realize the connection between the TV client and the mobile client, so the corresponding connection port information is the port information of the communication service.

[0089] Optionally, the communication service may be a full-duplex service, so as to allow data to be transmitted simultaneously in two directions of the TV client and the mobile client. Furthermore, the full-duplex service may be a WebSocket service.

[0090] Among them, WebSocket is a protocol for full-duplex communication on a single TCP connection. WebSocket makes data exchange between the client and the server much simpler, allowing the server to actively push data to the client. In the WebSocket API, the browser and the server only need to complete a handshake to directly create a persistent connection between the two and perform two-way data transmission. Therefore, after connecting the TV client and the mobile client through WebSocket, the two can perform two-way data transmission to achieve interaction.

[0091] Optionally, when multicast network packets are used Figure 2 When the method shown is generated, in another embodiment of the present application, before executing step S104, it further includes:

[0092] After the TV client monitors the multicast network packet sent by the mobile client, it parses the multicast network packet to obtain the encrypted mobile client identifier and current intention, and decrypts the encrypted mobile client identifier and current intention to obtain the mobile client identifier and current intention.

[0093] S104: When the mobile client receives the current ultrasonic information played by the TV client, the mobile client decodes the current ultrasonic information to obtain the IP address and connection port information of the current TV client.

[0094] Since the mobile client receives the ultrasonic information in real time after the multicast network wave occurs, when the current TV client plays the generated current ultrasonic information, the mobile client will receive the current ultrasonic information and then decode the current ultrasonic wave to obtain the IP address and connection port information of the current TV client.

[0095] It should be noted that in order to prevent other devices from obtaining the IP address and connection port information of the current TV client, a decoding method may be pre-configured. Only according to this decoding method can the current ultrasonic information be decoded to obtain the IP address and connection port information of the current TV client.

[0096] Optionally, in another embodiment of the present application, a specific implementation of step S103 is as follows: Figure 3 As shown, including:

[0097] S301. The TV client encodes each character of its current IP address and connection port information based on a predefined correspondence table between characters and ultrasonic frequencies to obtain current ultrasonic information.

[0098] It should be noted that in order to standardize the generation of ultrasonic information and to enable the mobile client to decode the ultrasonic information in a certain way, a correspondence table between characters and ultrasonic frequencies is predefined in an embodiment of the present application, so encoding is required according to the correspondence table between characters and ultrasonic frequencies.

[0099] S302: The TV client plays the current ultrasonic information according to a preset number of times.

[0100] Considering that the mobile client is relatively easy to receive the played ultrasonic information, and considering that the mobile client is no longer connected to the TV client, for example, the user takes the mobile client away from the current scene and disconnects from the current local area network, in order to avoid continuous meaningless playback and waste of resources, in the embodiment of the present application, the TV client plays the current ultrasonic information according to the preset number of playbacks. After the preset number of playbacks, or after the TV client and the mobile client are connected, the playback will stop.

[0101] Accordingly, in the embodiment of the present application, a specific implementation of step S104 includes:

[0102] The mobile client decodes the current ultrasonic information based on the predefined correspondence table between characters and ultrasonic frequencies to obtain the IP address and connection port information of the current TV client.

[0103] Since the current ultrasonic information is encoded according to a predefined table of correspondence between characters and ultrasonic frequencies, the current ultrasonic information can be decoded based on the predefined table of correspondence between characters and ultrasonic frequencies.

[0104] S105: The mobile client connects to the TV client based on the IP address and connection port information of the current TV client.

[0105] Specifically, the mobile client connects to the corresponding port according to the IP address and connection port information of the current TV client, thereby achieving connection with the TV client.

[0106] Optionally, in another embodiment of the present application, when a communication service is used to realize the connection between the TV client and the mobile client, that is, when the acquired connection port information is the port information of the communication service of the TV client, a specific implementation of step S105 includes:

[0107] The mobile client connects to the communication service of the TV client through its own communication service based on the IP address of the current TV client and the port information of the communication service.

[0108] Specifically, the mobile client starts its own communication service, and then connects to the communication service of the TV client through its own communication service based on the IP address of the current TV client and the port information of the communication service, that is, connects its own communication service with the communication service of the TV client.

[0109] Optionally, considering the special scenario that there may be multiple TV clients, in another embodiment of the present application, before executing step S105, the following is further included:

[0110] If the mobile client currently obtains the IP addresses and connection port information of multiple TV clients, the mobile client provides the options of each current TV client to the user for selection.

[0111] Since there are multiple TV clients at this time, and each TV client will automatically execute the above response steps, so that the mobile client obtains the IP addresses and connection port information of multiple TV clients, and the mobile client can only know one mobile client at the same time, so it is necessary to provide each TV client to the user for selection.

[0112] Optionally, the current ultrasonic information sent by the TV client may also include an identifier or a name of the TV client, so that the identifier or the name of the TV client may be provided to the user for selection.

[0113] Accordingly, in the embodiment of the present application, a specific implementation of step S105 includes:

[0114] The mobile client responds to the user's selection operation and connects to the TV client based on the IP address and connection port information of the current TV client selected by the user.

[0115] The embodiment of the present application provides a direct connection method of a client, which is applied to a client system. Among them, the client system includes a mobile client and a TV client. When the connection is specifically implemented, after the TV client is connected to the current local area network, it will automatically join the multicast group of the specified multicast address of the current local area network and monitor the multicast group in real time, so as to be able to monitor the multicast network packet sent by the mobile client to the multicast group. After the mobile client is connected to the current local area network, it will automatically send a multicast network packet to the port of the specified multicast address of the current local area network, and receive ultrasonic information in real time to receive the ultrasonic information sent by the TV client. When the TV client monitors the multicast network packet sent by the mobile client, if it is determined that the intention of the multicast network packet contains the intention to connect, the ultrasonic information is encoded for the current IP address and connection port information of the mobile client, and the current ultrasonic information is obtained and played. When the mobile client receives the current ultrasonic information played by the TV client, it decodes the current ultrasonic information, obtains the IP address and connection port information of the current TV client, and connects the TV client based on the IP address and connection port information of the current TV client. The entire connection process does not require any user operation. After the TV client and the mobile client are automatically connected to the same local area network, they will automatically connect, that is, the entire process is seamless. In addition, each connection is based on the current TV client's IP address and connection port information. There is no situation where the IP address and connection port information change and the connection fails, making the connection between the TV client and the mobile client more convenient.

[0116] Another embodiment of the present application provides a client system, such as Figure 4 As shown, including:

[0117] Mobile client 401 and TV client 402.

[0118] The TV client 402 is used to join the multicast group of the specified multicast address of the current local area network after connecting to the current local area network and monitor the multicast group in real time. When monitoring the multicast network packet sent by the mobile client 401, if it is determined that the intention of the multicast network packet includes the connection intention, the current IP address and connection port information are ultrasonically encoded to obtain the current ultrasonic information and play it.

[0119] The mobile client 401 is used to send multicast network packets to the port of the designated multicast address of the current local area network after connecting to the current local area network, and receive ultrasonic information in real time. When receiving the current ultrasonic information played by the TV client 402, the mobile client 401 decodes the current ultrasonic information, obtains the IP address and connection port information of the current TV client 402, and connects to the TV client 402 based on the IP address and connection port information of the current TV client 402.

[0120] Optionally, in the above client system, the TV client 402 is further used for:

[0121] Before the ultrasonic information encoding is performed on the current IP address and connection port information of the device, the current ultrasonic information is obtained and played, the communication service of the device is started, and the port information of the communication service of the device is recorded.

[0122] The TV client 402 performs ultrasonic information encoding on its own current IP address and connection port information, obtains the current ultrasonic information and plays it, which is used to:

[0123] The current IP address and the port information of the communication service are encoded with ultrasonic information to obtain the current ultrasonic information and play it.

[0124] Optionally, in the above client system, when the mobile client 401 is connected to the TV client 402 based on the IP address and connection port information of the current TV client 402, it is used to:

[0125] Through its own communication service, based on the IP address of the current TV client 402 and the port information of the communication service, the communication service of the TV client 402 is connected.

[0126] Optionally, in the above client system, the mobile client 401 is further used for:

[0127] The identifier and current intention of the mobile client 401 are obtained, wherein the current intention at least includes a connection intention.

[0128] The identification and current intention of the mobile client 401 are encrypted to obtain the encrypted identification and current intention of the mobile client 401.

[0129] A multicast network packet is generated using the encrypted identity of the mobile client 401 and the current intent.

[0130] Optionally, in the above client system, the TV client 402 is further used for:

[0131] After monitoring the multicast network packet sent by the mobile client 401, the multicast network packet is parsed to obtain the encrypted identifier and current intention of the mobile client 401.

[0132] The encrypted identification and current intention of the mobile client 401 are decrypted to obtain the identification and current intention of the mobile client 401.

[0133] Optionally, in the above client system, the TV client 402 performs ultrasonic information encoding on its current IP address and connection port information, obtains the current ultrasonic information and plays it, which is used to:

[0134] Based on the predefined correspondence table between characters and ultrasonic frequencies, the current IP address and each character of the connection port information are encoded to obtain the current ultrasonic information, and the current ultrasonic information is played according to the preset number of times.

[0135] Wherein, when the mobile client 401 decodes the current ultrasonic information and obtains the IP address and connection port information of the current TV client 402, it is used to:

[0136] The mobile client 401 decodes the current ultrasonic information based on the predefined correspondence table between characters and ultrasonic frequencies, and obtains the IP address and connection port information of the current TV client 402 .

[0137] Optionally, in the above client system, the mobile client 401 is further used for:

[0138] If the mobile client 401 currently obtains the IP addresses and connection port information of multiple TV clients 402 , the mobile client 401 provides the options of each current TV client 402 for the user to choose.

[0139] Wherein, the mobile client 401 is used to connect to the TV client 402 based on the IP address and connection port information of the current TV client 402:

[0140] The mobile client 401 responds to the user's selection operation and connects to the TV client 402 based on the IP address and connection port information of the current TV client 402 selected by the user.

[0141] It should be noted that the specific working processes of the mobile client 401 and the TV client 402 in each embodiment provided in the above embodiments of the present application can refer to the specific implementation process of the corresponding steps in the above method embodiment, and will not be repeated here.

[0142] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0143] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A direct connection method of a client, It is characterized in that Applied to a client system, the client system includes a mobile client and a TV client, and the direct connection method of the client includes: After connecting to the current local area network, the TV client joins the multicast group of the designated multicast address of the current local area network and monitors the multicast group in real time; After connecting to the current local area network, the mobile client sends a multicast network packet to a port of a designated multicast address of the current local area network and receives ultrasonic information in real time; When the TV client monitors the multicast network packet sent by the mobile client, if it is determined that the intention of the multicast network packet includes a connection intention, the TV client performs ultrasonic information encoding on the current IP address and connection port information of the TV client, obtains the current ultrasonic information and plays it; When the mobile client receives the current ultrasonic information played by the TV client, the mobile client decodes the current ultrasonic information to obtain the IP address and connection port information of the current TV client; The mobile client connects to the TV client based on the IP address and connection port information of the current TV client.

2. The method according to claim 1, It is characterized in that The method of encoding the current IP address and the connection port information of the current device and obtaining and playing the current ultrasonic information includes: The television client starts its own communication service and records the port information of its own communication service; The step of performing ultrasonic information encoding on the current IP address and connection port information to obtain and play the current ultrasonic information includes: The television client performs ultrasonic information encoding on the current IP address of the television client and the port information of the communication service, obtains the current ultrasonic information and plays it.

3. The method according to claim 2, It is characterized in that The mobile client connects to the TV client based on the IP address and connection port information of the current TV client, including: The mobile client connects to the communication service of the TV client through its own communication service based on the current IP address of the TV client and the port information of the communication service.

4. The method according to claim 1, It is characterized in that Before sending the multicast network packet to the port of the designated multicast address of the current local area network, the method further includes: The mobile client obtains the identifier and current intention of the mobile client; wherein the current intention at least includes a connection intention; The mobile client encrypts the identifier of the mobile client and the current intention to obtain the encrypted identifier of the mobile client and the current intention; The mobile client generates the multicast network packet using the encrypted identification of the mobile client and the current intention.

5. The method according to claim 4, It is characterized in that Also includes: After the TV client monitors the multicast network packet sent by the mobile client, the TV client parses the multicast network packet to obtain the encrypted identifier of the mobile client and the current intention; The encrypted identifier of the mobile client and the current intention are decrypted to obtain the identifier of the mobile client and the current intention.

6. The method according to claim 1, It is characterized in that The step of encoding the current IP address and connection port information of the user to obtain the current ultrasonic information and play it includes: The TV client encodes each character of its current IP address and connection port information based on a predefined correspondence table between characters and ultrasonic frequencies, obtains the current ultrasonic information, and plays the current ultrasonic information according to a preset number of plays; The mobile client decodes the current ultrasonic information to obtain the IP address and connection port information of the current TV client, including: The mobile client decodes the current ultrasonic information based on the predefined table of correspondence between characters and ultrasonic frequencies to obtain the IP address and connection port information of the current TV client.

7. The method according to claim 1, It is characterized in that Before the mobile client connects to the TV client based on the IP address and connection port information of the current TV client, the mobile client further includes: If the mobile client currently obtains the IP addresses and connection port information of multiple TV clients, the mobile client provides the options of each TV client to the user for selection; The mobile client connects to the TV client based on the IP address and connection port information of the current TV client, including: The mobile client responds to the user's selection operation and connects to the TV client based on the IP address and connection port information of the current TV client selected by the user.

8. A client system, It is characterized in that include: Mobile client and TV client; The TV client is used to join the multicast group of the designated multicast address of the current local area network after connecting to the current local area network and monitor the multicast group in real time, and when monitoring the multicast network packet sent by the mobile client, if it is determined that the intention of the multicast network packet includes the connection intention, then perform ultrasonic information encoding on the current IP address and connection port information of the TV client, obtain the current ultrasonic information and play it; The mobile client is used to send multicast network packets to the port of the designated multicast address of the current local area network after connecting to the current local area network, and receive ultrasonic information in real time, and when receiving the current ultrasonic information played by the TV client, decode the current ultrasonic information to obtain the IP address and connection port information of the current TV client, and connect to the TV client based on the IP address and connection port information of the current TV client.

9. The client system according to claim 8, It is characterized in that The television client is also used for: Before performing ultrasonic information encoding on the current IP address and connection port information of the device, obtaining the current ultrasonic information and playing it, starting the communication service of the device and recording the port information of the communication service of the device; The TV client performs ultrasonic information encoding on its own current IP address and connection port information, obtains the current ultrasonic information and plays it, and is used to: The current IP address and the port information of the communication service are encoded with ultrasonic information to obtain the current ultrasonic information and play it.

10. The client system according to claim 9, It is characterized in that The mobile client, based on the IP address and connection port information of the current TV client, is used to: Through its own communication service, based on the current IP address of the TV client and the port information of the communication service, the communication service of the TV client is connected.

Citation Information

Patent Citations

  • Method and system for realizing direct broadcast projection screen based on multicast on intelligent television

    CN106559690A

  • Wireless transmission method and device

    CN108322790A

  • Television network communication transmission method based on WebSocket

    CN110290417A

  • Equipment screen projection method and device, medium and equipment

    CN117412108A

  • Method and device for information transmission

    US20150121469A1