Method, apparatus and medium for generating screen code

CN121357359BActive Publication Date: 2026-10-09GUANGZHOU SHIZHEN INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410953302.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2026-10-09
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

然而,采用上述方式,需要覆盖当前网络架构下的各类网络地址的所有主机,因此使得生成的传屏码较为复杂(例如,传屏码长度较长)

Benefits of technology

[0020]结合第一方面和上述实现方式,在某些可能的实现方式中,所述方法还包括:

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121357359B_ABST
    Figure CN121357359B_ABST
Patent Text Reader

Abstract

The application provides a method and device for generating a screen transmission code, equipment and a medium. The method is applied to the field of wireless screen transmission technology. The method comprises the following steps: obtaining the total number of devices of a screen transmission receiving end and the total number of screen transmission codes configured for each screen transmission receiving end; determining a target data set based on the total number of devices and the total number of screen transmission codes; the target data set is used to generate a screen transmission code of the screen transmission receiving end; when a first request message sent by a target screen transmission receiving end is received, generating a target screen transmission code of the target screen transmission receiving end based on the target data set; wherein the first request message is used to request to obtain the target screen transmission code. The method can regulate the total data of the screen transmission code of the screen transmission receiving end within a limited range, so that a screen transmission code with a shorter length can be generated based on a limited target data set, and a simple screen transmission code can be generated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of wireless screen sharing technology, and more specifically, to a method, apparatus, device, and medium for generating screen sharing codes in the field of wireless screen sharing technology. Background Technology

[0002] Wireless screen sharing is a technology for video conferencing, allowing content from mobile phones, laptops, or desktop computers to be projected onto the conference screen. The screen sharing code is crucial for successful wireless screen sharing.

[0003] In related technologies, the receiving end of a screen sharing process generates a screen sharing code based on its own Internet Protocol address (IPA) and displays the code. The sending end inputs this code and uses an algorithm to obtain the receiving end's IPA, allowing the receiving end to connect to the sending end's IPA via the network. However, this method requires coverage of all hosts with various network addresses under the current network architecture, resulting in a complex screen sharing code (e.g., a long code length).

[0004] Therefore, how to generate a simple screen sharing code has become an urgent problem to be solved. Summary of the Invention

[0005] This application provides a method, apparatus, device, and medium for generating screen sharing codes. The method can specify the total number of screen sharing codes to be generated in a dataset to generate screen sharing codes with shorter lengths.

[0006] Firstly, a method for generating screen transmission codes is provided, which is applied to a server. This method includes: Obtain the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver; Based on the total number of devices and the total number of screen sharing codes, a target dataset is determined; the target dataset is used to generate the screen sharing code for the screen sharing receiver. Upon receiving a first request message from the target screen sharing receiver, a target screen sharing code for the target screen sharing receiver is generated based on the target dataset; wherein, the first request message is used to request the acquisition of the target screen sharing code; Send the target screen transmission code to the target screen transmission receiver.

[0007] In this embodiment, a target dataset is determined by obtaining the total number of devices at the screen-sharing receiving end and the total number of screen-sharing codes configured for each receiving end. Upon receiving a first request message from the target receiving end, a target screen-sharing code for the target receiving end is generated based on this target dataset, and the screen-sharing code is sent to the target receiving end. In the above method, since the target dataset can be determined based on the total number of devices at the screen-sharing receiving end and the total number of screen-sharing codes configured for each receiving end, the total number of screen-sharing codes for the receiving end is limited to a finite range by using this target dataset, thus generating a shorter screen-sharing code based on the finite target dataset when the target receiving end requests to obtain a screen-sharing code. Compared with related technologies where receiving end devices use Internet Protocol addresses to generate screen-sharing codes, the target dataset obtained by the scheme provided in this embodiment is much smaller in data volume than the data volume of screen-sharing codes for all hosts under various network addresses in a network architecture generated using Internet Protocol addresses. Therefore, the screen-sharing code generated based on the smaller target dataset is shorter, achieving simpler screen-sharing code generation.

[0008] In conjunction with the first aspect, in some possible implementations, the first request message includes the target device identifier of the target screen sharing receiver; generating the target screen sharing code for the target screen sharing receiver based on the target dataset includes: When a screen transmission code corresponding to the target device identifier exists in the target dataset, the screen transmission code corresponding to the target device identifier is determined as the target screen transmission code; If the target device identifier does not exist in the target dataset, the unused screen transmission code in the target dataset is identified as the target screen transmission code.

[0009] In this embodiment, when a screen sharing code corresponding to a target device identifier exists in the target dataset, the screen sharing code corresponding to the target device identifier is determined as the target screen sharing code; when no screen sharing code corresponding to a target device identifier exists in the target dataset, an unused screen sharing code in the target dataset is determined as the target screen sharing code. Since determining whether a screen sharing code corresponding to a target device identifier exists in the target dataset can determine whether a corresponding screen sharing code has been allocated to the target screen sharing receiver, and the target screen sharing code is specifically determined according to the corresponding situation, the accurate acquisition of the target screen sharing code is ensured.

[0010] In conjunction with the first aspect and the above implementation methods, in some possible implementation methods, when the target dataset contains a screen transmission code corresponding to the target device identifier, the method further includes: Obtain the device identifier of the screen sharing receiver; Based on the target dataset and the target total number, a screen transmission code to be assigned is generated; wherein, the target total number is the product of the total number of devices and the total number of screen transmission codes; Based on the device identifier and the screen sharing code to be assigned of the screen sharing receiver, a first mapping relationship is generated; the first mapping relationship is used to represent the mapping relationship between the device identifier and the screen sharing code of each screen sharing receiver; wherein, the first mapping relationship includes the mapping relationship between the target device identifier and the target screen sharing code.

[0011] In this embodiment, the device identifier of the screen sharing receiver is obtained, and a screen sharing code to be assigned is generated based on the target dataset and the total number of targets. A first mapping relationship is generated based on the device identifier of the screen sharing receiver and the screen sharing code to be assigned. In the above method, since the first mapping relationship is generated based on the device identifier of the screen sharing receiver and the screen sharing code to be assigned, a screen sharing code has been assigned to each screen sharing receiver. Therefore, when the target screen sharing receiver requests to obtain a screen sharing code, the screen sharing code corresponding to the target device identifier can be accurately and quickly queried as the target screen sharing code by means of the first mapping relationship.

[0012] In combination with the first aspect and the above implementation methods, in some possible implementation methods, determining the unused screen-sharing code in the target dataset as the target screen-sharing code includes: Obtain the number of screen sharing codes that have been used in the target dataset; Based on the number of screen sharing codes that have been used and the total number of screen sharing codes, determine the target sequence number of the unused screen sharing codes; The screen transmission code corresponding to the target sequence number in the target dataset is determined as the target screen transmission code.

[0013] In this embodiment of the application, when there is no screen transmission code corresponding to the target device identifier in the target dataset, the target sequence number of the unused screen transmission code can be accurately determined by obtaining the number of screen transmission codes that have been used in the target dataset and based on the number of screen transmission codes that have been used and the total number of screen transmission codes. Therefore, the unused screen transmission code can be accurately selected from the target dataset as the target screen transmission code by using the accurate target sequence number, thereby avoiding the problem of multiple screen transmission receivers sharing a screen transmission code due to the repeated allocation of screen transmission codes.

[0014] In combination with the first aspect and the above implementation methods, in some possible implementation methods, determining the target sequence number of the unused screen sharing code based on the number of used screen sharing codes and the total number of screen sharing codes includes: The initial sequence number is determined based on the number of screen sharing codes that have been used and the total number of screen sharing codes. The target number is determined based on the initial number and the target parameters.

[0015] In this embodiment, since the initial sequence number can be determined based on the number of screen sharing codes that have been used and the total number of screen sharing codes, and the screen sharing code corresponding to the initial sequence number is the last screen sharing code among all possible screen sharing codes that have been used, the target sequence number can be determined based on the initial sequence number and the target parameters. This can completely exclude the screen sharing codes that have been used in the target dataset and accurately select the unused screen sharing codes, which helps to avoid the problem of multiple screen sharing receivers sharing a single screen sharing code due to the repeated allocation of screen sharing codes.

[0016] In combination with the first aspect and the above implementation methods, in some possible implementations, the method further includes: Add the target device identifier and the target screen transmission code corresponding to the target device identifier to the second mapping relationship; The second mapping relationship is used to represent the mapping relationship between the device identifier of the screen receiving end that has been assigned a screen transmission code and the screen transmission code.

[0017] In this embodiment, since a target device identifier and a target screen sharing code corresponding to the target device identifier can be added to the second mapping relationship, when the target screen sharing receiver requests to obtain the screen sharing code again, the target screen sharing code corresponding to the target device identifier can be quickly and accurately queried with the help of the second mapping relationship, without having to regenerate the target screen sharing code for the target screen sharing receiver, thereby improving the efficiency and accuracy of obtaining the screen sharing code and saving computing resources.

[0018] In combination with the first aspect and the above implementation methods, in some possible implementations, the method further includes: Obtain the network address of the screen sharing receiver; wherein, the network address includes an Internet Protocol address; A third mapping relationship is generated based on the network address of the screen transmission code receiving end and the screen transmission code of the screen transmission code receiving end; wherein, the third mapping relationship is used to represent the mapping relationship between the network address and the screen transmission code of each screen transmission code receiving end.

[0019] In this embodiment of the application, since the network address of the screen sharing receiver can be obtained, a third mapping relationship is generated based on the network address of the screen sharing code receiver and the screen sharing code of the screen sharing code receiver. Therefore, the network address corresponding to the screen sharing code of the screen sharing code receiver can be found quickly and accurately with the help of the third mapping relationship.

[0020] In combination with the first aspect and the above implementation methods, in some possible implementations, the method further includes: Obtain a second request message sent by the screen sharing sending end; wherein, the second request message is used to request the target network address corresponding to the target screen sharing code; Based on the target screen transmission code and the third mapping relationship, the target network address corresponding to the target screen transmission code is determined; The target network address is sent to the screen-sharing sending end; wherein the target network address is used by the screen-sharing sending end to connect to the target screen-sharing receiving end.

[0021] In this embodiment of the application, when the second request message sent by the screen sharing sender is obtained, the target network address corresponding to the target screen sharing code can be quickly queried based on the target screen sharing code and the third mapping relationship, and the target network address can be sent to the screen sharing sender. Therefore, the screen sharing sender can quickly connect to the target screen sharing receiver, thereby shortening the time to establish a communication connection.

[0022] In combination with the first aspect and the above implementation methods, in some possible implementation methods, the screen-sharing receiving end is located in the target collaborative space; obtaining the total number of screen-sharing receiving ends includes: Obtain the Internet Protocol address range of the intranet routing of the target collaborative space; based on the Internet Protocol address range, determine the total number of devices at the screen-sharing receiving end; or, Obtain the estimated number of screen sharing receivers; based on the estimated number and a preset threshold, determine the total number of screen sharing receiver devices.

[0023] In this embodiment of the application, since the total number of screen sharing receivers can be determined by obtaining the Internet Protocol address range of the intranet route of the target collaborative space, or by obtaining the estimated number of screen sharing receivers and determining the total number of screen sharing receivers based on the estimated number and a preset threshold, it is ensured that the total number of devices obtained is sufficient to encompass all screen sharing receivers, and it also helps that the target dataset determined based on the total number of devices can cover all screen sharing receivers.

[0024] Secondly, a method for generating a screen transmission code is provided. This method is applied to the screen transmission receiving end and includes: Send a first request message to the server; wherein, the first request message is used to request to obtain the target screen sharing code of the target screen sharing receiver; The target screen sharing code sent by the receiving server is generated by the server based on a target dataset. The target dataset is determined based on the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver.

[0025] In this embodiment of the application, a first request message can be sent to the server, and a target screen sharing code sent by the server can be received. In the above method, since the target screen sharing code generated by the server based on the target dataset is obtained by sending a first request message to the server, the screen sharing receiver does not need to generate a screen sharing code, thereby improving the efficiency of the screen sharing receiver in obtaining the screen sharing code and saving the computing resources of the screen sharing receiver.

[0026] Thirdly, a method for generating a screen sharing code is provided. This method is applied to the screen sharing sending end and includes: Upon detecting a target screen display code, a second request message is sent to the server; wherein, the second request message is used to request the target network address corresponding to the target screen display code; the target network address information includes an Internet Protocol address; The server receives the target network address sent by the server; wherein the target network address is obtained by the server based on a third mapping relationship between the target screen sharing code, the network address of the screen sharing receiving end, and the screen sharing code of the screen sharing receiving end. Connect to the target screen receiving terminal corresponding to the target network address via the network.

[0027] In this embodiment, upon detecting a target screen sharing code, a second request message can be sent to the server; the target network address sent by the server is received, and a connection is established with the target screen sharing receiver corresponding to the target network address via the network. In this method, upon detecting a target screen sharing code, the server can quickly query the third mapping relationship to obtain the target network address corresponding to the target screen sharing code and return it to the screen sharing sender. Therefore, the screen sharing sender can connect to the target screen sharing receiver based on the quickly obtained target network address, thereby shortening the time required for the screen sharing sender and the target screen sharing receiver to establish a communication connection. Furthermore, compared to related technologies where the screen sharing sender needs to parse the screen sharing code to obtain the network address, the solution provided in this embodiment improves speed and saves computational resources.

[0028] Fourthly, a screen transmission code generation device is provided, configured on a server, the device comprising: The first acquisition module is used to acquire the total number of devices at the screen sharing receiver and the total number of screen sharing codes configured for each of the screen sharing receivers. The first determining module is used to determine a target dataset based on the total number of devices and the total number of screen transmission codes; the target dataset is used to generate the screen transmission code for the screen transmission receiving end. The first generation module is used to generate a target screen sharing code for the target screen sharing receiver based on the target dataset when it receives a first request message sent by the target screen sharing receiver; wherein, the first request message is used to request to obtain the target screen sharing code; The first sending module is used to send the target screen transmission code to the target screen transmission receiving end.

[0029] Fifthly, a screen transmission code generation device is provided, configured at the screen transmission receiving end, the device comprising: The first request module is used to send a first request message to the server; wherein, the first request message is used to request to obtain the target screen sharing code of the target screen sharing receiver. The first receiving module is used to receive the target screen sharing code sent by the server; wherein the target screen sharing code is generated by the server based on the target dataset; the target dataset is determined based on the total number of screen sharing receiving devices and the total number of screen sharing codes configured for each screen sharing receiving device.

[0030] Sixthly, a screen transmission code generation device is provided, configured at the screen transmission sending end, the device comprising: The second request module is used to send a second request message to the server when a target screen sharing code is detected; wherein, the second request message is used to request the target network address corresponding to the target screen sharing code; the target network address information includes an Internet Protocol address; The second receiving module is used to receive the target network address sent by the server; wherein the target network address is obtained by the server based on the target screen transmission code, the network address of the screen transmission receiving end and the screen transmission code of the screen transmission receiving end; The device connection module is used to connect to the target screen receiving end corresponding to the target network address via a network.

[0031] In a seventh aspect, an electronic device is provided, including a memory for storing executable program code; A processor is configured to call and run the executable program code from the memory, causing the electronic device to perform the method of the first aspect or any possible implementation thereof.

[0032] Eighthly, a computer program product is provided, comprising: computer program code, which, when run on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof.

[0033] Ninthly, a computer-readable storage medium is provided that stores computer program code, which, when executed on a computer, causes the computer to perform the methods described in the first aspect or any possible implementation thereof. Attached Figure Description

[0034] Figure 1 This is a schematic diagram illustrating a method for generating a screen transmission code according to an embodiment of this application. Figure 2 This is a schematic diagram of the structure of a screen transmission code generation system provided in an embodiment of this application; Figure 3 This is a flowchart illustrating a method for generating a screen display code according to an embodiment of this application. Figure 4 This is a flowchart illustrating another method for generating a screen display code provided in an embodiment of this application; Figure 5 This is a flowchart illustrating another method for generating a screen display code provided in an embodiment of this application; Figure 6 This is a flowchart illustrating another method for generating a screen display code provided in an embodiment of this application. Figure 7 This is an interactive schematic diagram of the screen sharing code generation method provided in the embodiments of this application; Figure 8 This is a schematic diagram of the structure of a screen transmission code generation device provided in an embodiment of this application; Figure 9 This is a schematic diagram of another screen transmission code generation device provided in an embodiment of this application; Figure 10 This is a schematic diagram of the structure of another screen transmission code generation device provided in the embodiments of this application; Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0035] The technical solutions in this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B. "And / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0036] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.

[0037] Figure 1 This is a schematic diagram illustrating a method for generating a screen transmission code according to an embodiment of this application.

[0038] Among them, the Figure 1 Figures (a) to (d) are included; (a) and (c) in Figure (1) are screen transmission receivers 110, and (b) and (d) in Figure (1) are screen transmission transmitters 120.

[0039] For example, if you want to project the content played on the screen sharing sender 120 to the screen sharing receiver 110, you can establish a communication connection through the screen sharing code and then perform the screen sharing.

[0040] Specifically, the screen sharing receiver 110 can send a request message to the server to obtain the screen sharing code of the screen sharing receiver 110 whose device identifier is zmf.

[0041] Since the server can obtain the total number of devices in the screen sharing receiver 110 and the total number of screen sharing codes configured for each screen sharing receiver 110, and determine the target dataset based on the total number of devices and the total number of screen sharing codes, when it receives a request message sent by the screen sharing receiver 110 with device identifier zmf, the server can generate the screen sharing code 3566 of the screen sharing receiver 110 with device identifier zmf based on the target dataset, and send the screen sharing code 3566 to the screen sharing receiver 110 with zmf.

[0042] After the screen transmission receiver 110, whose device identifier is zmf, receives screen transmission code 3566, as follows: Figure 1 As shown in (a), the screen transmission receiver 110 with device identifier zmf displays the screen transmission code 3566.

[0043] like Figure 1 As shown in (b), the screen transmission terminal 120 displays an input box 121 asking "Please enter the screen transmission code". After entering the screen transmission code 3566 in the input box 121, a communication connection can be established with the screen transmission receiver 110 whose device is identified as zmf based on the screen transmission code 3566.

[0044] After that, as Figure 1As shown in (d) of the figure, when animation A is playing on the screen mirroring transmitter 120, the current animation A can be projected to the screen mirroring receiver 110; thus, as shown in (c) of the figure, animation A is also played on the screen mirroring receiver 110. In this way, wireless screen mirroring between the screen mirroring receiver 110 and the screen mirroring transmitter 120 is realized.

[0045] Figure 2 This is a schematic diagram of the structure of a screen transmission code generation system provided in an embodiment of this application.

[0046] For example, such as Figure 2 As shown, the system may include a screen sharing receiver 201, a screen sharing sender 202, and a server 203. These three devices can establish a communication connection and communicate with each other.

[0047] The screen sharing receiver 201 can be used to send a request message to the server 203 to request a screen sharing code; when it receives the screen sharing code sent by the server 203, it can display the screen sharing code.

[0048] When the server 203 receives a request message from the screen sharing receiver 201, it can generate a screen sharing code for the screen sharing receiver 201 and send the generated screen sharing code to the screen sharing receiver 201.

[0049] Optionally, server 203 may also establish a mapping relationship between the device identifier of each screen-sharing receiver and its screen-sharing code, and establish a mapping relationship between the Internet Protocol address of each screen-sharing receiver and its screen-sharing code.

[0050] The screen sharing sender 202 can be used to send a second request message to the server 203 when the user inputs the screen sharing code or obtains the screen sharing code of the screen sharing receiver 201 through communication technology, so as to obtain the Internet Protocol address corresponding to the screen sharing code of the screen sharing receiver 201.

[0051] Optionally, when receiving the second request message, the server 203 may also obtain the Internet Protocol address corresponding to the screen sharing code of the current screen sharing receiver based on the mapping relationship between the Internet Protocol address and the screen sharing code of each screen sharing receiver; and send the Internet Protocol address to the screen sharing sender 202.

[0052] Optionally, after receiving the Internet Protocol address, the screen sharing sending end 202 can connect to the screen sharing receiving end 201 corresponding to the Internet Protocol address via the network.

[0053] After a communication connection is established between the screen sharing receiver 201 and the screen sharing sender 202, the screen sharing sender 202 can send the target content to the screen sharing receiver 201. After receiving the target content, the screen sharing receiver 201 can display the target content. In this way, wireless screen sharing between the screen sharing receiver 201 and the screen sharing sender 202 is realized.

[0054] Figure 3 This is a flowchart illustrating a method for generating a screen display code according to an embodiment of this application, which can be applied to a server.

[0055] like Figure 3 As shown, the method 300 for generating the screen transmission code includes S301 to S304, and S301 to S304 are described in detail below.

[0056] S301, obtain the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver.

[0057] In this application embodiment, the screen sharing receiver refers to a device of the same type used to receive and display transmitted content. For example, the screen sharing receiver is a conference tablet, a screen sharing box, or a light-emitting diode (LED) display screen.

[0058] Optionally, the screen sharing receiver can be a device in a collaborative space; a collaborative space refers to the physical space where an organization that needs to communicate through near-field conferencing is located, such as a corporate office park or a government building.

[0059] For example, the receiving end of the screen transmission is an LED display screen located in Park A.

[0060] Alternatively, in one possible approach, the server can pre-store relevant information about the screen sharing receivers, including the total number of screen sharing receivers; in another possible approach, the server can detect the screen sharing receivers that have established connections with it in real time and count the total number of screen sharing receivers.

[0061] Optionally, the relevant information may also include the total number of screen sharing codes configured for each screen sharing receiver, i.e., the total number of screen sharing codes obtained directly from the storage space by the server; wherein, the total number of screen sharing codes can be a default value or a user-defined value.

[0062] In one implementation, the screen-sharing receiver is located in the target collaborative space; obtaining the total number of screen-sharing receivers can specifically include the following steps: Obtain the Internet Protocol (IP) address range of the intranet routes in the target collaboration space; based on the IP address range, determine the total number of devices at the screen-sharing receiving end; or, Obtain the estimated number of screen sharing receivers; based on the estimated number and a preset threshold, determine the total number of screen sharing receiver devices.

[0063] For example, the target collaborative space mentioned above can be an office building or an office park.

[0064] Optionally, determining the total number of devices at the screen sharing receiving end based on the Internet Protocol address range can be understood as determining the number of Internet Protocol addresses included in the Internet Protocol address range, and determining the number of Internet Protocol addresses as the total number of devices at the screen sharing receiving end.

[0065] In one example, the internal network route of an office building is found to belong to the 172.20 network segment. With the subnet mask being 255.255.0.0, the number of Internet Protocol addresses is 65534, meaning the total number of devices receiving the screen sharing is 65534.

[0066] Optionally, the estimated number of screen-sharing receivers can be obtained based on the screen-sharing receivers that have established a connection with the server.

[0067] Optionally, the preset threshold can be a factory setting or a user-defined setting.

[0068] Optionally, the total number of devices at the screen sharing receiving end is determined based on the estimated number and the preset threshold. This can be understood as the total number of devices being the sum of the estimated number and the preset threshold.

[0069] In another example, if the estimated number of screen-sharing receivers is 300 and the preset threshold is 10, then the total number of devices can be determined to be 310.

[0070] It should be understood that both the screen sharing receiver and the screen sharing sender can belong to the target collaboration space.

[0071] In this embodiment of the application, since the total number of screen sharing receivers can be determined by obtaining the Internet Protocol address range of the intranet route of the target collaborative space, or by obtaining the estimated number of screen sharing receivers and determining the total number of screen sharing receivers based on the estimated number and a preset threshold, it is ensured that the total number of devices obtained is sufficient to encompass all screen sharing receivers, and it also helps that the target dataset determined based on the total number of devices can cover all screen sharing receivers.

[0072] S302, determine the target dataset based on the total number of devices and the total number of screen transmission codes.

[0073] The target dataset is used to generate the screen sharing code for the screen sharing receiver.

[0074] Optionally, the above-mentioned screen transmission code can be purely numeric, purely alphanumeric, or composed of both numbers and letters.

[0075] Optionally, the total number of screen sharing codes to be assigned can be obtained by multiplying the total number of devices and the total number of screen sharing codes. Based on the total number and type of screen sharing codes to be assigned, it can be determined how many characters to select as the length of a screen sharing code to be assigned. Then, based on the length and type of a screen sharing code to be assigned, the range of the set to which the generated screen sharing codes to be assigned belong, i.e., the target dataset, can be determined.

[0076] For example, assuming the total number of devices is 1000 and the total number of screen transmission codes is 10, then the total number of screen transmission codes to be assigned is 1000. Thus, when the screen transmission code to be assigned is purely numeric, a 5-digit numeric code can be selected as a screen transmission code to be assigned, thereby obtaining the target dataset as 00000-99999.

[0077] S303: Upon receiving the first request message sent by the target screen sharing receiver, generate the target screen sharing code for the target screen sharing receiver based on the target dataset.

[0078] The first request message is used to request the target screen display code.

[0079] Optionally, the target screen sharing receiver can be any screen sharing receiver.

[0080] Optionally, the target display code can be purely numeric, purely alphanumeric, or a combination of numbers and letters.

[0081] In one implementation, the first request message includes the target device identifier of the target screen sharing receiver; the above-mentioned generation of the target screen sharing code of the target screen sharing receiver based on the target dataset is illustrated by the following two cases.

[0082] Case 1 If a screen transmission code corresponding to the target device identifier exists in the target dataset, the screen transmission code corresponding to the target device identifier will be determined as the target screen transmission code.

[0083] Optionally, the target device identifier can be the device number of the target screen-sharing receiver, or the conference room number of the physical space where the target screen-sharing receiver is located. Of course, in some cases, the target device identifier can also be an Internet Protocol address and / or a listening port.

[0084] In one implementation, when a screen transmission code corresponding to a target device identifier exists in the target dataset, the screen transmission code generation method provided in this application embodiment may further include the following steps: Obtain the device identifier of the screen mirroring receiver; Based on the target dataset and the target total number, generate screen sharing codes to be assigned; where the target total number is the product of the total number of devices and the total number of screen sharing codes. The first mapping relationship is generated based on the device identifier of the screen sharing receiver and the screen sharing code to be assigned.

[0085] The first mapping relationship is used to represent the mapping relationship between the device identifier and the screen transmission code of each screen transmission receiver; the first mapping relationship includes the mapping relationship between the target device identifier and the target screen transmission code.

[0086] Optionally, the aforementioned device identifier can be the device number of the screen sharing receiver, or the conference room number of the physical space where the screen sharing receiver is located, or it can be an Internet Protocol address and / or a listening port.

[0087] Optionally, the screen transmission codes to be assigned can be stored in the form of an array.

[0088] It should be noted that the screen sharing codes to be assigned belong to the target dataset, that is, the screen sharing codes to be assigned are a subset of the target dataset.

[0089] Optionally, when generating the first mapping relationship, the number of screen sharing codes assigned to each screen sharing receiver can be the same or different, but the number of screen sharing codes assigned to each screen sharing receiver cannot exceed the total number of screen sharing codes. In this way, all the screen sharing codes to be assigned can be assigned to the device identifier of the screen sharing receiver, or a portion of the screen sharing codes to be assigned can be assigned to the device identifier of the screen sharing receiver.

[0090] Optionally, the target dataset contains a screen transmission code corresponding to the target device identifier. This can be understood as determining the screen transmission code that corresponds to the target device identifier based on the first mapping relationship.

[0091] Optionally, the first mapping relationship described above can be stored using a hash table or other data structures.

[0092] For example, assuming the target dataset is 00-99 and the total number of targets is 15, the device identifiers of the receiving end obtained by the server include device A, device B, ..., and device E. Based on the target dataset and the total number of targets, the following screen sharing codes are generated to be assigned: 01, 03, 05, 08, 02, 11, 15, 13, 18, 20, 35, 22, 56, 59, and 63. The server can assign screen sharing codes 01, 03, and 18 to device A, 05, 11, and 35 to device B, 02, 13, and 20 to device C, 08, 15, and 63 to device D, and 22, 56, and 59 to the device, thus obtaining the first mapping relationship. When device A sends the first request message, it can query the first mapping relationship to obtain the screen transmission codes 01, 03 and 18 corresponding to device A, so that any one of 01, 03 and 18 can be determined as the target screen transmission code of device A (for example, the target screen transmission code is 13).

[0093] It should be noted that in the above situation 1, the screen transmission code corresponding to the target device identifier includes multiple screen transmission codes. Any one of these multiple screen transmission codes can be determined as the target screen transmission code, or all of these multiple screen transmission codes can be determined as the target screen transmission code.

[0094] In this embodiment, the device identifier of the screen sharing receiver is obtained, and a screen sharing code to be assigned is generated based on the target dataset and the total number of targets. A first mapping relationship is generated based on the device identifier of the screen sharing receiver and the screen sharing code to be assigned. In the above method, since the first mapping relationship is generated based on the device identifier of the screen sharing receiver and the screen sharing code to be assigned, a screen sharing code has been assigned to each screen sharing receiver. Therefore, when the target screen sharing receiver requests to obtain a screen sharing code, the screen sharing code corresponding to the target device identifier can be accurately and quickly queried as the target screen sharing code by means of the first mapping relationship.

[0095] Case 2 If there is no screen transmission code corresponding to the target device identifier in the target dataset, the unused screen transmission code in the target dataset will be determined as the target screen transmission code.

[0096] It should be noted that the detailed explanation of generating the screen transmission code to be assigned can be found in Case 1 of the above embodiments, and will not be repeated here in this application embodiment.

[0097] Optionally, when there is no screen sharing code corresponding to the target device identifier in the target dataset, after generating the screen sharing code to be assigned, one possible scenario is to generate a second mapping relationship based on the device identifiers of some screen sharing receivers and the screen sharing codes to be assigned, where the screen sharing receivers do not include the target screen sharing receiver; another possible scenario is to assign an unused screen sharing code to a screen sharing receiver each time a first request message from a screen sharing receiver is received, thereby establishing a second mapping relationship between the device identifier of the screen sharing receiver and the screen sharing code to be assigned.

[0098] In one implementation, the step of identifying unused screen sharing codes in the target dataset as target screen sharing codes can specifically include: Get the number of screen sharing codes that have been used in the target dataset; Based on the number of screen sharing codes that have been used and the total number of screen sharing codes, determine the target sequence number of the unused screen sharing codes. The screen transmission code corresponding to the target sequence number in the target dataset is determined as the target screen transmission code.

[0099] It should be understood that after generating the screen sharing code to be assigned, the number of screen sharing codes that have been used among the screen sharing codes to be assigned is determined. Based on the number of screen sharing codes that have been used and the total number of screen sharing codes, the target sequence number of the unused screen sharing code is determined, and the screen sharing code corresponding to the target sequence number among the screen sharing codes to be assigned is determined as the target screen sharing code.

[0100] In this embodiment of the application, when there is no screen transmission code corresponding to the target device identifier in the target dataset, the target sequence number of the unused screen transmission code can be accurately determined by obtaining the number of screen transmission codes that have been used in the target dataset and based on the number of screen transmission codes that have been used and the total number of screen transmission codes. Therefore, the unused screen transmission code can be accurately selected from the target dataset as the target screen transmission code by using the accurate target sequence number, thereby avoiding the problem of multiple screen transmission receivers sharing a screen transmission code due to the repeated allocation of screen transmission codes.

[0101] In one implementation, the target sequence number of an unused screen sharing code is determined based on the number of used screen sharing codes and the total number of screen sharing codes, including: The initial sequence number is determined based on the number of screen sharing codes that have been used and the total number of screen sharing codes; The target number is determined based on the initial number and the target parameters.

[0102] Optionally, the above initial sequence number can be understood as the total number of screen sharing codes used by the screen sharing receiver that has been assigned screen sharing codes.

[0103] Optionally, the target parameter can be a random number or a fixed value.

[0104] For example, the total number of screen transmission codes is K, and the value of the above target parameter can be [0, K-1].

[0105] For example, the number of screen transmission codes that have been used is I, the total number of screen transmission codes is K, the initial sequence number is I×K, and the target sequence number is J, where J=I×K+R; and R represents the target parameter.

[0106] It should be understood that the screen transmission code corresponding to the target parameter in the remaining screen transmission codes is the same screen transmission code as the screen transmission code corresponding to the target sequence number in the screen transmission codes to be allocated; the remaining screen transmission codes are the screen transmission codes to be allocated excluding those that have already been used. It should be noted that the screen transmission codes to be allocated are assigned to the device identifiers of the screen transmission receiving end in a sequential order.

[0107] In this embodiment, since the initial sequence number can be determined based on the number of screen sharing codes that have been used and the total number of screen sharing codes, and the screen sharing code corresponding to the initial sequence number is the last screen sharing code among all possible screen sharing codes that have been used, the target sequence number can be determined based on the initial sequence number and the target parameters. This can completely exclude the screen sharing codes that have been used in the target dataset and accurately select the unused screen sharing codes, which helps to avoid the problem of multiple screen sharing receivers sharing a single screen sharing code due to the repeated allocation of screen sharing codes.

[0108] In one implementation, the method for generating the screen transmission code provided in this application embodiment may further include the following steps: Add the target device identifier and the target screen transmission code corresponding to the target device identifier to the second mapping relationship.

[0109] The second mapping relationship is used to represent the mapping relationship between the device identifier of the screen receiving end that has been assigned a screen transmission code and the screen transmission code.

[0110] Optionally, the screen sharing receiver with the assigned screen sharing code can be understood as a screen sharing receiver that has a screen sharing code corresponding to the device identifier.

[0111] It should be noted that the above embodiments are illustrated using a screen sharing receiver that already has an assigned screen sharing code as an example. When there is no screen sharing receiver with an assigned screen sharing code, i.e., the target screen sharing receiver is the first device to request a screen sharing code, an unused screen sharing code to be assigned can be assigned to the target screen sharing receiver when the first request message of the target screen sharing receiver is received. In other words, a second mapping relationship can be established between the target device identifier of the target screen sharing receiver and the screen sharing code to be assigned. Similarly, after other screen sharing receivers request and obtain screen sharing codes, the device identifier of the screen sharing receiver and the corresponding screen sharing code can be added to the second mapping relationship.

[0112] Optionally, the second mapping relationship described above can be stored using a hash table or other data structures.

[0113] In this embodiment, since a target device identifier and a target screen sharing code corresponding to the target device identifier can be added to the second mapping relationship, when the target screen sharing receiver requests to obtain the screen sharing code again, the target screen sharing code corresponding to the target device identifier can be quickly and accurately queried with the help of the second mapping relationship, without having to regenerate the target screen sharing code for the target screen sharing receiver, thereby improving the efficiency and accuracy of obtaining the screen sharing code and saving computing resources.

[0114] For example, assuming the target dataset is 00-99 and the total number of targets is 15, the device identifiers of the receiving end obtained by the server include device A, device B, ..., and device E. Based on the target dataset and the total number of targets, the following screen sharing codes are generated to be assigned: 01, 03, 05, 08, 02, 11, 15, 13, 18, 20, 35, 22, 56, 59, and 63. When the server receives the first request message from device A, it can assign 01 to device A, thus establishing a second mapping relationship between device A and screen sharing code 01. When the server receives the first request message from device B, it can determine the unused screen sharing code 08 as the target screen sharing code for device B and add device B and the target screen sharing code 08 to the second mapping relationship.

[0115] In this embodiment, when a screen sharing code corresponding to a target device identifier exists in the target dataset, the screen sharing code corresponding to the target device identifier is determined as the target screen sharing code; when no screen sharing code corresponding to a target device identifier exists in the target dataset, an unused screen sharing code in the target dataset is determined as the target screen sharing code. Since determining whether a screen sharing code corresponding to a target device identifier exists in the target dataset can determine whether a corresponding screen sharing code has been allocated to the target screen sharing receiver, and the target screen sharing code is specifically determined according to the corresponding situation, the accurate acquisition of the target screen sharing code is ensured.

[0116] S304, send the target screen transmission code to the target screen transmission receiver.

[0117] Optionally, after receiving the target screen sharing code at the target screen sharing receiver, the target screen sharing code can be displayed.

[0118] In one implementation, the method for generating the screen transmission code provided in this application embodiment may further include the following steps: Obtain the network address of the screen mirroring receiver; the network address includes the Internet Protocol address. A third mapping relationship is generated based on the network address of the screen transmission code receiver and the screen transmission code of the screen transmission code receiver; wherein, the third mapping relationship is used to represent the mapping relationship between the network address and the screen transmission code of each screen transmission code receiver.

[0119] Optionally, the network address may also include a listening port.

[0120] Optionally, a third mapping relationship is generated based on the network address of the screen sharing code receiver and the screen sharing code of the screen sharing code receiver. This can be understood as generating a third mapping relationship based on the network address corresponding to the device identifier of the screen sharing code receiver and the screen sharing code corresponding to the device identifier of the screen sharing code receiver.

[0121] For example, the screen sharing code of screen sharing receiver A is 01, the screen sharing code of screen sharing receiver B is 35, the screen sharing code of screen sharing receiver C is 13, the screen sharing code of screen sharing receiver D is 08, and the screen sharing code of screen sharing receiver E is 22. The network addresses of screen sharing receiver A are obtained as 219.145.1.187, the network addresses of screen sharing receiver B are 219.145.1.185, the network addresses of screen sharing receiver C are 219.145.1.183, the network addresses of screen sharing receiver D are 219.145.1.184, and the network addresses of screen sharing receiver E are 219.145.1.189. In this way, the server can generate a third mapping relationship based on the network address 219.145.1.187 and screen transmission code 01 of screen transmission receiver A, the network address 219.145.1.185 and screen transmission code 35 of screen transmission receiver B, the network address 219.145.1.183 and screen transmission code 13 of screen transmission receiver C, the network address 219.145.1.184 and screen transmission code 08 of screen transmission receiver D, and the network address 219.145.1.189 and screen transmission code 22 of screen transmission receiver E.

[0122] In this embodiment of the application, since the network address of the screen sharing receiver can be obtained, a third mapping relationship is generated based on the network address of the screen sharing code receiver and the screen sharing code of the screen sharing code receiver. Therefore, the network address corresponding to the screen sharing code of the screen sharing code receiver can be found quickly and accurately with the help of the third mapping relationship.

[0123] Optionally, the third mapping relationship described above can be stored using a hash table or other data structures.

[0124] In one implementation, the method for generating the screen transmission code provided in this application embodiment may further include the following steps: Get the second request message sent by the screen sharing sender.

[0125] The second request message is used to request the target network address corresponding to the target screen sharing code.

[0126] Based on the target screen transmission code and the third mapping relationship, the target network address corresponding to the target screen transmission code is determined.

[0127] Send the target network address to the screen sharing sender.

[0128] The target network address is used for the screen sharing sender to connect to the target screen sharing receiver.

[0129] Optionally, the second request message mentioned above carries a target screen display code.

[0130] For example, suppose the target screen sharing code is 35. When the server receives the second request message sent by the screen sharing sender, it can determine the target network address corresponding to the target screen sharing code 35 as 219.145.1.185 based on the target screen sharing code 35 and the third mapping relationship, and send the target network address 219.145.1.185 to the screen sharing sender. After receiving the target network address, the screen sharing sender can connect to the target screen sharing receiver B corresponding to 219.145.1.185.

[0131] In this embodiment of the application, when the second request message sent by the screen sharing sender is obtained, the target network address corresponding to the target screen sharing code can be quickly queried based on the target screen sharing code and the third mapping relationship, and the target network address can be sent to the screen sharing sender. Therefore, the screen sharing sender can quickly connect to the target screen sharing receiver, thereby shortening the time to establish a communication connection.

[0132] Furthermore, under the network architecture of Internet Protocol Version 6 (IPv6), if the method of generating the screen transmission code using Internet Protocol addresses is adopted in related technologies, even if the length of the screen transmission code is set to 10 bits, with a variable range of 36^10 = 3656158440062976, it still cannot cover the entire IPv6 address range. However, the screen transmission code generation method provided in the embodiments of this application does not require the use of Internet Protocol addresses, and therefore does not have this problem.

[0133] In this embodiment, since the target dataset can be determined based on the total number of screen-sharing receivers and the total number of screen-sharing codes configured for each receiver, the total number of screen-sharing codes for all receivers is limited to a finite range by this target dataset, thus allowing for the generation of shorter screen-sharing codes based on the finite target dataset when a target receiver requests a screen-sharing code. Compared to related technologies where receivers use Internet Protocol addresses to generate screen-sharing codes, the target dataset obtained by the scheme provided in this embodiment is significantly smaller in scale than the screen-sharing codes generated for all hosts using Internet Protocol addresses in a network architecture. Therefore, the screen-sharing codes generated based on this smaller target dataset are shorter, achieving the goal of generating simpler screen-sharing codes.

[0134] Figure 4 This is a flowchart illustrating another method for generating a screen display code provided in an embodiment of this application. This method can be applied to the above... Figure 3 The screen display code generation system shown.

[0135] For example, such as Figure 4 As shown, the method includes the following implementation process: S401, when a screen sharing receiver is detected in the target collaborative space, the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver are obtained.

[0136] Optionally, the server can detect in real time whether there is a screen sharing receiver in the target collaboration space, or periodically detect whether there is a screen sharing receiver in the target collaboration space.

[0137] S402, determine the target dataset based on the total number of devices and the total number of screen transmission codes.

[0138] It should be noted that the target dataset is used to generate the screen sharing code for the receiving end of the screen sharing process.

[0139] Optionally, the target dataset is a data range, that is, the total data of the screen transmission codes of all screen transmission receivers detected in the target collaborative space is defined within a range by the target dataset.

[0140] S403, upon receiving the first request message from the target screen sharing receiver, generates a screen sharing code to be assigned based on the target dataset and the total number of targets.

[0141] The target total number is the product of the total number of devices and the total number of screen transmission codes.

[0142] Optionally, the first request message may be a Hypertext Transfer Protocol (HTTP) request message or other types of request messages.

[0143] Optionally, the screen sharing code to be assigned can be allocated to the screen sharing receiver in two different ways. The first method is executed as follows: S405 and S406. The second method is executed as follows: S404, obtain the device identifier of the screen sharing receiver, and generate the first mapping relationship based on the device identifier of the screen sharing receiver and the screen sharing code to be assigned.

[0144] The first mapping relationship is used to represent the mapping relationship between the device identifier and the screen transmission code of each screen transmission receiver; wherein, the first mapping relationship includes the mapping relationship between the target device identifier and the target screen transmission code.

[0145] Optionally, the first mapping relationship described above can be stored in the first memory space in the form of a hash table.

[0146] S405, based on the target device identifier and the first mapping relationship, the screen transmission code corresponding to the target device identifier is determined as the target screen transmission code.

[0147] For example, the hash table corresponding to the first mapping relationship is directly queried, and the screen transmission code corresponding to the target device identifier in the hash table is used as the target screen transmission code.

[0148] S406, if there is no screen transmission code corresponding to the target device identifier in the screen transmission codes to be assigned, the unused screen transmission code in the screen transmission codes to be assigned shall be determined as the target screen transmission code.

[0149] Optionally, when the target screen sharing receiver is the first device to request the screen sharing code, after S406, a second mapping relationship is directly generated based on the target device identifier and the target screen sharing; when the target screen sharing receiver is not the first device to request the screen sharing code, after S406, S407 is executed. In this case, the second mapping relationship is generated by the server after the first device that requested the screen sharing code before the target screen sharing receiver sends the first request message to the server.

[0150] S407, add the target device identifier and the target screen transmission code corresponding to the target device identifier to the second mapping relationship.

[0151] The second mapping relationship is used to represent the mapping relationship between the device identifier of the screen receiving end that has been assigned a screen transmission code and the screen transmission code.

[0152] Optionally, the screen sharing receiver with the assigned screen sharing code can be understood as a screen sharing receiver that has a screen sharing code corresponding to the device identifier.

[0153] Optionally, the first mapping relationship described above can be stored in the first memory space in the form of a hash table.

[0154] S408 sends the target screen transmission code to the target screen transmission receiver.

[0155] In this embodiment, since the target dataset can be determined based on the total number of screen-sharing receivers and the total number of screen-sharing codes configured for each receiver, the total number of screen-sharing codes for all receivers is limited to a finite range by this target dataset, thus allowing for the generation of shorter screen-sharing codes based on the finite target dataset when a target receiver requests a screen-sharing code. Compared to related technologies where receivers use Internet Protocol addresses to generate screen-sharing codes, the target dataset obtained by the scheme provided in this embodiment is significantly smaller in scale than the screen-sharing codes generated for all hosts using Internet Protocol addresses in a network architecture. Therefore, the screen-sharing codes generated based on this smaller target dataset are shorter, achieving the goal of generating simpler screen-sharing codes.

[0156] Figure 5 This is a flowchart illustrating another method for generating a screen transmission code provided in this application embodiment. This method can be applied to the screen transmission receiving end.

[0157] like Figure 5As shown, the method 500 for generating the screen transmission code includes S501 and S502, which are described in detail below.

[0158] S501 sends the first request message to the server.

[0159] The first request message is used to request the target screen sharing code of the target screen sharing receiver.

[0160] Optionally, the first request message may include the target device identifier of the target screen sharing receiver; wherein, the target device identifier may be the device number of the target screen sharing receiver or the conference room number of the real space where the target screen sharing receiver is located.

[0161] Optionally, the first request message mentioned above may be a Hypertext Transfer Protocol (HTTP) request message or other types of request messages.

[0162] S502, receive the target screen transmission code sent by the server.

[0163] The target screen sharing code is generated by the server based on the target dataset; the target dataset is determined based on the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver.

[0164] Optionally, the server generating the target screen display code based on the target dataset can be referred to the detailed description of S303 in the above embodiments.

[0165] In this embodiment of the application, a first request message can be sent to the server, and a target screen sharing code sent by the server can be received. In the above method, since the target screen sharing code generated by the server based on the target dataset is obtained by sending a first request message to the server, the screen sharing receiver does not need to participate in the generation of the screen sharing code, thereby improving the efficiency of the screen sharing code receiver in obtaining the screen sharing code and saving the computing resources of the screen sharing receiver.

[0166] Figure 6 This is a flowchart illustrating another method for generating a screen sharing code provided in this application embodiment. This method can be applied to the screen sharing sending end.

[0167] like Figure 6 As shown, the method 600 for generating the screen transmission code includes S601 to S603, and S601 to S603 are described in detail below.

[0168] S601 sends a second request message to the server when the target screen transmission code is detected.

[0169] The second request message is used to request the target network address corresponding to the target screen display code; the target network address includes the Internet Protocol address.

[0170] Optionally, the target network address may also include a listening port.

[0171] Optionally, before the target screen sharing code is detected at the screen sharing sending end, when the target screen sharing code is received and displayed at the target screen sharing receiving end, one possible approach is for the user to input the target screen sharing code at the screen sharing sending end; another possible approach is for the target screen sharing code to be transmitted to the screen sharing sending end via Bluetooth technology, ultrasonic technology, or wireless LAN technology when the distance between the target screen sharing receiving end and the screen sharing sending end is less than or equal to a preset distance.

[0172] It should be noted that because the target screen sharing code generated by the server is relatively short, users can quickly and accurately enter the target screen sharing code at the screen sharing sending end.

[0173] Optionally, the second request message may carry the target screen display code.

[0174] Optionally, the first request message mentioned above may be a Hypertext Transfer Protocol (HTTP) request message or other types of request messages.

[0175] S602, Receive the target network address sent by the server.

[0176] The target network address is obtained by the server based on the third mapping relationship between the target screen sharing code, the network address of the screen sharing receiver, and the screen sharing code of the screen sharing receiver.

[0177] Optionally, prior to S602, after the server obtains the target network address, the server may first send the target network address to the screen sharing sender.

[0178] S603 connects to the target screen receiving end corresponding to the target network address via the network.

[0179] Optionally, connecting to the target screen sharing receiver corresponding to the target network address via a network can be understood as connecting to the target screen sharing receiver via an intranet, wireless LAN, or mobile communication technology.

[0180] For example, assume the target screen sharing code is 35. When the user enters the target screen sharing code at the screen sharing sending end, and the sending end detects the target screen sharing code 35, it can send a second request message to the server to request the target network address corresponding to the target screen sharing code 35. The server, by querying a third mapping relationship, obtains the target network address corresponding to the target screen sharing code 35 as 219.145.1.185, and sends this target network address to the screen sharing sending end. Upon receiving the target network address 219.145.1.185 sent by the server, the user can connect to the target screen sharing receiving end B corresponding to 219.145.1.185.

[0181] In this embodiment, upon detecting a target screen sharing code, a second request message can be sent to the server; the target network address sent by the server is received, and a connection is established with the target screen sharing receiver corresponding to the target network address via the network. In this method, upon detecting a target screen sharing code, the server can quickly query the third mapping relationship to obtain the target network address corresponding to the target screen sharing code and return it to the screen sharing sender. Therefore, the screen sharing sender can connect to the target screen sharing receiver based on the quickly obtained target network address, thereby shortening the time required for the screen sharing sender and the target screen sharing receiver to establish a communication connection. Furthermore, compared to related technologies where the screen sharing sender needs to parse the screen sharing code to obtain the network address, the solution provided in this embodiment improves speed and saves computational resources.

[0182] Figure 7 This is an interactive schematic diagram of the screen sharing code generation method provided in the embodiments of this application. Applied to the above embodiments... Figure 2 The screen display code generation system shown.

[0183] For example, such as Figure 7 As shown, the method includes the following implementation process: S701, the server obtains the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver.

[0184] S702, the server determines the target dataset based on the total number of devices and the total number of screen transmission codes.

[0185] S703, the target screen mirroring receiver sends the first request message to the server.

[0186] S704, upon receiving the first request message from the target screen sharing receiver, the server generates the target screen sharing code for the target screen sharing receiver based on the target dataset.

[0187] S705, the server sends the target screen sharing code to the target screen sharing receiver.

[0188] S706, the server obtains the network address of the screen mirroring receiver.

[0189] The network address can include Internet Protocol (IP) addresses and listening ports.

[0190] S707: The server generates a third mapping relationship based on the network address of the screen transmission code receiver and the screen transmission code of the screen transmission code receiver.

[0191] S708: When the screen sharing sending end detects the target screen sharing code, it sends a second request message to the server.

[0192] S709, the server receives the second request message sent by the screen sharing sender.

[0193] S710: The server determines the target network address corresponding to the target screen transmission code based on the target screen transmission code and the third mapping relationship.

[0194] S711, the server sends the target network address to the screen sharing sender.

[0195] S711, the screen sharing sending end receives the target network address sent by the server.

[0196] S712, the screen sharing sending end connects to the target screen sharing receiving end corresponding to the target network address via the network.

[0197] Optionally, the target screen receiving end can be any screen receiving end, that is, S703 to S712 can be executed for any screen receiving end.

[0198] Optionally, for the above-mentioned S701 to S712, please refer to the detailed description of S303 to S304, S501 and S502 and S601 to S603 in the above embodiments, and the embodiments of this application will not repeat the details here.

[0199] In this embodiment, since the target dataset can be determined based on the total number of screen-sharing receivers and the total number of screen-sharing codes configured for each receiver, the total number of screen-sharing codes for each receiver is limited to a finite range while covering all receivers. Therefore, when the target receiver sends a first request message to request a screen-sharing code, the server can generate a shorter screen-sharing code based on the limited target dataset. When the sending end detects the target screen-sharing code, it can send a second request message to the server, allowing the server to quickly query the third mapping relationship to obtain the target network address corresponding to the target screen-sharing code and return it to the sending end. Thus, the sending end can connect to the target receiver based on the quickly obtained target network address, shortening the time required to establish a communication connection. In this way, by quickly establishing a connection between the sending and receiving ends, wireless screen-sharing between them is facilitated.

[0200] The above text combined Figures 1 to 7 The method for generating screen display codes provided in the embodiments of this application is described in detail below; the following will be combined with Figures 8 to 10 The apparatus embodiments of this application are described in detail below. It should be understood that the apparatus in the embodiments of this application can perform the various methods described in the foregoing embodiments of this application, that is, the specific working processes of the various products described below can be referred to the corresponding processes in the foregoing method embodiments.

[0201] Figure 8 This is a schematic diagram of a screen display code generation device provided in an embodiment of this application. The device can be a server or a functional module within a server.

[0202] For example, such as Figure 8 As shown, the device 800 includes: The first acquisition module 801 is used to acquire the total number of devices at the screen transmission receiving end and the total number of screen transmission codes configured for each screen transmission receiving end. The first determining module 802 is used to determine the target dataset based on the total number of devices and the total number of screen transmission codes; the target dataset is used to generate the screen transmission code for the screen transmission receiver. The first generation module 803 is used to generate a target screen sharing code for the target screen sharing receiver based on the target dataset when it receives a first request message sent by the target screen sharing receiver; wherein the first request message is used to request to obtain the target screen sharing code. The first sending module 804 is used to send the target screen transmission code to the target screen transmission receiver.

[0203] In one possible implementation, the first request message includes the target device identifier of the target screen sharing receiver; the first generation module 803 is specifically used to determine the screen sharing code corresponding to the target device identifier as the target screen sharing code when there is a screen sharing code corresponding to the target device identifier in the target dataset; and to determine the unused screen sharing code in the target dataset as the target screen sharing code when there is no screen sharing code corresponding to the target device identifier in the target dataset.

[0204] In one possible implementation, when a screen transmission code corresponding to a target device identifier exists in the target dataset, the device may further include: The second acquisition module is used to acquire the device identifier of the screen transmission receiver. The second generation module is used to generate screen transmission codes to be assigned based on the target dataset and the target total number; wherein, the target total number is the product of the total number of devices and the total number of screen transmission codes; The third generation module is used to generate a first mapping relationship based on the device identifier of the screen transmission receiver and the screen transmission code to be assigned; the first mapping relationship is used to represent the mapping relationship between the device identifier and the screen transmission code of each screen transmission receiver; wherein, the first mapping relationship includes the mapping relationship between the target device identifier and the target screen transmission code.

[0205] In one possible implementation, the first generation module 803 is specifically used to obtain the number of screen sharing codes that have been used in the target dataset; determine the target sequence number of the unused screen sharing code based on the number of screen sharing codes that have been used and the total number of screen sharing codes; and determine the screen sharing code corresponding to the target sequence number in the target dataset as the target screen sharing code.

[0206] In one possible implementation, the first generation module 803 is specifically used to determine the initial sequence number based on the number of screen transmission codes that have been used and the total number of screen transmission codes; and to determine the target sequence number based on the initial sequence number and the target parameters.

[0207] In one possible implementation, the device may further include: An add module is used to add a target device identifier and the target screen transmission code corresponding to the target device identifier in the second mapping relationship; wherein, the second mapping relationship is used to represent the mapping relationship between the device identifier of the screen transmission receiving end that has been assigned a screen transmission code and the screen transmission code.

[0208] In one possible implementation, the device may further include: The third acquisition module is used to acquire the network address of the screen sharing receiver; the network address includes the Internet Protocol address. The fourth generation module is used to generate a third mapping relationship based on the network address of the screen transmission code receiver and the screen transmission code of the screen transmission code receiver; wherein, the third mapping relationship is used to represent the mapping relationship between the network address and the screen transmission code of each screen transmission receiver.

[0209] In one possible implementation, the device may further include: The fourth acquisition module is used to acquire the second request message sent by the screen sharing sending end; wherein, the second request message is used to request the acquisition of the target network address corresponding to the target screen sharing code; The second determining module 802 is used to determine the target network address corresponding to the target screen transmission code based on the target screen transmission code and the third mapping relationship; The second sending module 804 is used to send the target network address to the screen sharing sending end; wherein, the target network address is used for the screen sharing sending end to connect to the target screen sharing receiving end.

[0210] In one possible implementation, the first acquisition module 801 is specifically used to acquire the Internet Protocol address range of the intranet route of the target collaborative space; determine the total number of screen sharing receiving devices based on the Internet Protocol address range; or, acquire the estimated number of screen sharing receiving devices; and determine the total number of screen sharing receiving devices based on the estimated number and a preset threshold.

[0211] Figure 9 This is a schematic diagram of another screen transmission code generation device provided in an embodiment of this application. This device can be a screen transmission receiver or a functional module within a screen transmission receiver.

[0212] For example, such as Figure 9 As shown, the device 900 includes: The first request module 901 is used to send a first request message to the server; wherein, the first request message is used to request to obtain the target screen transmission code of the target screen transmission receiver. The first receiving module 902 is used to receive the target screen transmission code sent by the server; wherein the target screen transmission code is generated by the server based on the target dataset; the target dataset is determined based on the total number of screen transmission receivers and the total number of screen transmission codes configured for each screen transmission receiver.

[0213] Figure 10 This is a schematic diagram of another screen sharing code generation device provided in this application embodiment. The device can be a screen sharing transmitter or a functional module within the screen sharing transmitter.

[0214] For example, such as Figure 10 As shown, the device 1000 includes: The second request module 1001 is used to send a second request message to the server when the target screen transmission code is detected; wherein, the second request message is used to request the target network address corresponding to the target screen transmission code; the target network address information includes the Internet Protocol address; The second receiving module 1002 is used to receive the target network address sent by the server; wherein, the target network address is obtained by the server based on the second mapping relationship between the target screen transmission code, the network address of the screen transmission receiving end, and the screen transmission code of the screen transmission receiving end; The device connection module 1003 is used to connect to the target screen receiving end corresponding to the target network address via a network.

[0215] Figure 11 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.

[0216] For example, such as Figure 11 As shown, the electronic device 1100 includes a memory 1101 and a processor 1102. The memory 1101 stores executable program code 11011, and the processor 1102 is used to call and execute the executable program code 11011 to perform a screen sharing code generation method. The electronic device can be a screen sharing receiver, a screen sharing sender, or a server.

[0217] Furthermore, embodiments of this application also protect an apparatus that may include a memory and a processor, wherein the memory stores executable program code, and the processor is used to call and execute the executable program code to execute a method for generating a screen transmission code provided in embodiments of this application.

[0218] This embodiment can divide the device into functional modules based on the above method example. For example, each module can correspond to a separate function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware. It should be noted that the module division in this embodiment is illustrative and only represents one logical functional division. In actual implementation, there may be other division methods.

[0219] When the functional modules are divided according to their respective functions, the device may further include a first acquisition module, a first determination module, a first generation module, and a first transmission module, etc. It should be noted that all relevant content of each step involved in the above method embodiments can be referenced from the functional descriptions of the corresponding functional modules, and will not be repeated here.

[0220] It should be understood that the apparatus provided in this embodiment is used to execute the above-described method for generating a screen transmission code, and therefore can achieve the same effect as the above-described implementation method.

[0221] When using integrated units, the device may include a processing module and a storage module. When applied to an electronic device, the processing module can be used to control and manage the operation of the electronic device. The storage module can be used to support the execution of relevant program code by the electronic device.

[0222] The processing module may be a processor or a controller, which can implement or execute various exemplary logic blocks, modules, and circuits shown in conjunction with the disclosure of this application. The processor may also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc., and the storage module may be a memory.

[0223] In addition, the device provided in the embodiments of this application may specifically be a chip, component or module. The chip may include a connected processor and a memory. The memory is used to store instructions. When the processor calls and executes the instructions, the chip can execute a method for generating a screen transmission code provided in the above embodiments.

[0224] This embodiment also provides a computer-readable storage medium storing computer program code. When the computer program code is run on a computer, the computer executes the above-described related method steps to implement the screen transmission code generation method provided in the above embodiment.

[0225] This embodiment also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the screen transmission code generation method provided in the above embodiment.

[0226] In this embodiment, the device, computer-readable storage medium, computer program product, or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0227] Through the above description of the embodiments, those skilled in the art will understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0228] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0229] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for generating a screen transmission code, characterized in that, Applied to a server, the method includes: Obtain the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver; Based on the total number of devices and the total number of screen sharing codes, a target dataset is determined; the target dataset is used to generate the screen sharing code for the screen sharing receiver. Upon receiving a first request message from the target screen sharing receiver, a target screen sharing code for the target screen sharing receiver is generated based on the target dataset; wherein, the first request message is used to request the acquisition of the target screen sharing code; Send the target screen transmission code to the target screen transmission receiver; The step of determining the target dataset based on the total number of devices and the total number of screen transmission codes includes: The total number of screen transmission codes to be allocated is determined based on the product of the total number of devices and the total number of screen transmission codes. The length of the screen transmission code to be assigned is determined based on the total number of screen transmission codes to be assigned and the type of screen transmission code to be assigned. The target dataset is determined based on the length and type of the screen transmission code to be assigned.

2. The method according to claim 1, characterized in that, The first request message includes the target device identifier of the target screen sharing receiver; the step of generating the target screen sharing code for the target screen sharing receiver based on the target dataset includes: When a screen transmission code corresponding to the target device identifier exists in the target dataset, the screen transmission code corresponding to the target device identifier is determined as the target screen transmission code; If the target device identifier does not exist in the target dataset, the unused screen transmission code in the target dataset is identified as the target screen transmission code.

3. The method according to claim 2, characterized in that, When the target dataset contains a screen transmission code corresponding to the target device identifier, the method further includes: Obtain the device identifier of the screen transmission receiver; Based on the target dataset and the total number of screen sharing codes to be assigned, generate screen sharing codes to be assigned. Based on the device identifier and the screen sharing code to be assigned of the screen sharing receiver, a first mapping relationship is generated; the first mapping relationship is used to represent the mapping relationship between the device identifier and the screen sharing code of each screen sharing receiver; wherein, the first mapping relationship includes the mapping relationship between the target device identifier and the target screen sharing code.

4. The method according to claim 2, characterized in that, The step of determining the unused screen sharing codes in the target dataset as the target screen sharing codes includes: Obtain the number of screen sharing codes that have been used in the target dataset; Based on the number of screen sharing codes that have been used and the total number of screen sharing codes, determine the target sequence number of the unused screen sharing codes; The screen transmission code corresponding to the target sequence number in the target dataset is determined as the target screen transmission code.

5. The method according to claim 4, characterized in that, The step of determining the target sequence number of the unused screen sharing code based on the number of used screen sharing codes and the total number of screen sharing codes includes: The initial sequence number is determined based on the number of screen sharing codes that have been used and the total number of screen sharing codes. The target number is determined based on the initial number and the target parameters.

6. The method according to claim 4 or 5, characterized in that, The method further includes: Add the target device identifier and the target screen transmission code corresponding to the target device identifier to the second mapping relationship; The second mapping relationship is used to represent the mapping relationship between the device identifier of the screen receiving end that has been assigned a screen transmission code and the screen transmission code.

7. The method according to any one of claims 1 to 5, characterized in that, The method further includes: Obtain the network address of the screen sharing receiver; wherein, the network address includes an Internet Protocol address; A third mapping relationship is generated based on the network address of the screen transmission code receiving end and the screen transmission code of the screen transmission code receiving end; wherein, the third mapping relationship is used to represent the mapping relationship between the network address and the screen transmission code of each screen transmission code receiving end.

8. The method according to claim 7, characterized in that, The method further includes: Obtain a second request message sent by the screen sharing sending end; wherein, the second request message is used to request the target network address corresponding to the target screen sharing code; Based on the target screen transmission code and the third mapping relationship, the target network address corresponding to the target screen transmission code is determined; The target network address is sent to the screen-sharing sending end; wherein the target network address is used by the screen-sharing sending end to connect to the target screen-sharing receiving end.

9. The method according to claim 1, characterized in that, The screen-sharing receiver is located in the target collaborative space; the total number of devices acquiring the screen-sharing receiver includes: Obtain the Internet Protocol address range of the intranet routing of the target collaborative space; based on the Internet Protocol address range, determine the total number of devices at the screen-sharing receiving end; or, Obtain the estimated number of screen sharing receivers; based on the estimated number and a preset threshold, determine the total number of screen sharing receiver devices.

10. A method for generating a screen transmission code, characterized in that, Applied to a screen mirroring receiver, the method includes: Send a first request message to the server; wherein, the first request message is used to request to obtain the target screen sharing code of the target screen sharing receiver; The server receives the target screen sharing code sent by the server; wherein the target screen sharing code is generated by the server based on a target dataset; the target dataset is determined based on the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver; the determination of the target dataset based on the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver includes: determining the total number of screen sharing codes to be allocated based on the product of the total number of devices and the total number of screen sharing codes; determining the length of the screen sharing codes to be allocated based on the total number of screen sharing codes to be allocated and the type of the screen sharing codes to be allocated; and determining the target dataset based on the length of the screen sharing codes to be allocated and the type of the screen sharing codes to be allocated.

11. A method for generating a screen transmission code, characterized in that, Applied to the screen sharing sending end, the method includes: Upon detecting a target screen sharing code, a second request message is sent to the server. This second request message requests the acquisition of the target network address corresponding to the target screen sharing code. The target network address information includes an Internet Protocol (IP) address. The target screen sharing code is generated by the server based on a target dataset. The target dataset is determined based on the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver. The determination of the target dataset based on the total number of screen sharing receivers and the total number of screen sharing codes configured for each screen sharing receiver includes: determining the total number of screen sharing codes to be allocated based on the product of the total number of devices and the total number of screen sharing codes; determining the length of the screen sharing codes to be allocated based on the total number of screen sharing codes to be allocated and the type of the screen sharing codes to be allocated; and determining the target dataset based on the length of the screen sharing codes to be allocated and the type of the screen sharing codes to be allocated. The server receives the target network address sent by the server; wherein the target network address is obtained by the server based on a third mapping relationship between the target screen sharing code, the network address of the screen sharing receiving end, and the screen sharing code of the screen sharing receiving end. Connect to the target screen receiving terminal corresponding to the target network address via the network.

12. An electronic device, characterized in that, The electronic device includes: Memory, used to store executable program code; A processor for calling and running the executable program code from the memory, causing the electronic device to perform the method as described in any one of claims 1 to 9, 10 or 11.

13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a computer, implements the method as described in any one of claims 1 to 9, 10, or 11.

Citation Information

Patent Citations

  • Communication system and receiving device

    US20240163109A1

  • Device connection method and apparatus, and method for generating connection code

    WO2022247669A1