Port allocation method, device, equipment and storage medium

By judging the terminal port allocation status based on the received multi-screen configuration information in the multi-screen synthesis system, and allocating free ports when not allocated, the performance consumption and stability problems of multi-screen synthesis system are solved.

CN115580698BActive Publication Date: 2025-03-14BEIJING RONGXUN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211084251.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-06
Publication Date
2025-03-14
Estimated Expiration
2042-09-06

AI Technical Summary

Technical Problem

In the prior art, the multi-screen synthesis system monitors the ports of unassigned terminals, resulting in increased system performance consumption and unstable system.

Method used

When receiving multi-screen configuration information, determine the terminal information of the sub-screen to the corresponding terminal, determine whether the port has been allocated, and if it is not allocated, query the free port, and select the target free port from it to allocate it to the terminal.

Benefits of technology

The multi-picture synthesis system is avoided to monitor the ports of unassigned terminals, reduce the performance consumption of multi-picture synthesis, and improve the stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115580698B_ABST
    Figure CN115580698B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of video conferencing, and discloses a port allocation method, device, equipment and storage medium, the method comprising: when receiving multi-screen configuration information sent by a front-end page, determining the terminal information of the terminal corresponding to the sub-screen in the multi-screen configuration information; judging whether a port has been allocated for the terminal corresponding to the sub-screen according to the terminal information; if not allocated, querying whether there is an idle port; when there is an idle port, selecting a target idle port from the idle ports; and allocating the target idle port to the terminal corresponding to the sub-screen. Because the present invention allocates the queried idle port to the terminal when the terminal corresponding to the sub-screen is not allocated a port, it avoids the multi-screen synthesis system in the prior art from monitoring the port of the unallocated terminal, reduces the performance consumption required for multi-screen synthesis, and effectively improves the stability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video conferencing, and in particular to a port allocation method, device, equipment and storage medium. Background Art

[0002] At present, an independent multi-image synthesis server is generally used to provide the multi-image synthesis function. It receives the venue code stream sent by the multi-point control unit (Multi Control Unit, MCU) through the network, decodes the venue code stream, synthesizes the screen, and encodes it before forwarding it to the TV wall. The multi-image synthesis server receives the venue code stream transmitted by the MCU in UDP mode through the listening port.

[0003] However, at the same time, the MCU may send the venue code streams of hundreds of conference terminals to the TV wall multi-screen synthesis server. Once the multi-screen synthesis server listens to the port of unassigned terminals, the performance required for multi-screen synthesis will increase, causing the multi-screen synthesis system to be unstable.

[0004] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of the present invention is to provide a port allocation method, device, equipment and storage medium, aiming to solve the technical problem that the existing multi-screen synthesis system monitors the port of the unallocated terminal, which increases the performance required for multi-screen synthesis and causes system instability.

[0006] To achieve the above object, the present invention provides a port allocation method, which comprises the following steps:

[0007] When receiving the multi-screen configuration information sent by the front-end page, determining the terminal information of the terminal corresponding to the sub-screen in the multi-screen configuration information;

[0008] Determining whether a port has been allocated to the terminal corresponding to the sub-screen according to the terminal information;

[0009] If it is not allocated, check whether there is a free port;

[0010] When the idle ports exist, selecting a target idle port from the idle ports;

[0011] The target idle port is allocated to the terminal corresponding to the sub-picture.

[0012] Optionally, the step of judging whether a port has been allocated to the terminal corresponding to the sub-screen according to the terminal information includes:

[0013] Query whether the terminal information exists in a preset mapping table, wherein the preset mapping table stores a mapping relationship between the terminal information and the port number;

[0014] If so, determining that a port has been allocated for the sub-picture terminal;

[0015] If not, it is determined that no port is allocated to the sub-picture terminal.

[0016] Optionally, if the port is not allocated, the step of querying whether there is an idle port includes:

[0017] If not allocated, traverse the preset port array to determine whether there is a port element representing an unallocated terminal in the preset port array;

[0018] If the port element representing the unallocated terminal exists, it is determined that there is an idle port;

[0019] If the port element representing the unallocated terminal does not exist, it is determined that there is no idle port.

[0020] Optionally, when the idle ports exist, the step of selecting a target idle port from the idle ports includes:

[0021] When the idle port exists, selecting a first target port element representing an unassigned terminal from the preset port array;

[0022] Get the target idle port corresponding to the target port element.

[0023] Optionally, after the step of selecting a target idle port from the idle ports when the idle ports exist, the method further includes:

[0024] Determine a target idle port number corresponding to the target idle port, and establish a mapping relationship between the terminal information and the target idle port number in the preset mapping table;

[0025] When the mapping relationship is established, the target port element in the preset array is characterized as an allocated terminal.

[0026] Optionally, after the step of allocating the target idle port to the terminal corresponding to the sub-picture, the method further includes:

[0027] When receiving the multi-screen deletion configuration information sent by the front-end page, determining the terminal information to be deleted of the terminal corresponding to the screen to be deleted in the multi-screen deletion configuration information;

[0028] Query whether the terminal information to be deleted exists in the preset mapping table;

[0029] If it exists in the preset mapping table, the port allocated to the terminal corresponding to the picture to be deleted is recovered.

[0030] Optionally, after the step of reclaiming the port allocated to the terminal corresponding to the to-be-deleted screen if it exists in the preset mapping table, the method further comprises:

[0031] Determine whether the terminal corresponding to the picture to be deleted is referenced multiple times;

[0032] If not, deleting the terminal information to be deleted from the preset mapping table;

[0033] When the deletion of the terminal information to be deleted is completed, the port element corresponding to the reclaimed port is represented as an unallocated terminal.

[0034] In addition, to achieve the above object, the present invention also provides a port allocation device, the device comprising:

[0035] A terminal information determination module, configured to determine the terminal information of the terminal corresponding to the sub-picture in the multi-picture configuration information when receiving the multi-picture configuration information sent by the front-end page;

[0036] A port allocation judgment module, used for judging whether a port has been allocated to the terminal corresponding to the sub-picture according to the terminal information;

[0037] The free port query module is used to query whether there is a free port if it is not allocated;

[0038] An idle port selection module, used for selecting a target idle port from the idle ports when the idle ports exist;

[0039] The idle port allocation module is used to allocate the target idle port to the terminal corresponding to the sub-screen.

[0040] In addition, to achieve the above objectives, the present invention also proposes a port allocation device, which includes: a memory, a processor, and a port allocation program stored in the memory and executable on the processor, wherein the port allocation program is configured to implement the steps of the port allocation method described above.

[0041] In addition, to achieve the above object, the present invention further proposes a storage medium, on which a port allocation program is stored, and when the port allocation program is executed by a processor, the steps of the port allocation method described above are implemented.

[0042] The present invention determines the terminal information of the terminal corresponding to the sub-picture in the multi-picture configuration information when receiving the multi-picture configuration information sent by the front-end page, and then judges whether a port has been allocated for the terminal corresponding to the sub-picture according to the terminal information. If not, it inquires whether there is an idle port. When there is an idle port, a target idle port is selected from the idle ports, and finally the target idle port is allocated to the terminal corresponding to the sub-picture. Since the present invention allocates the queried idle port to the terminal when the terminal corresponding to the sub-picture has not been allocated a port, it avoids the multi-picture synthesis system of the prior art from monitoring the port of the unallocated terminal, reduces the performance consumption required for multi-picture synthesis, and effectively improves the stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a structural diagram of a port allocation device in a hardware operating environment involved in an embodiment of the present invention;

[0044] Figure 2 It is a flow chart of the first embodiment of the port allocation method of the present invention;

[0045] Figure 3 A schematic diagram of port allocation in accordance with a first embodiment of a port allocation method of the present invention;

[0046] Figure 4 It is a flow chart of the second embodiment of the port allocation method of the present invention;

[0047] Figure 5 This is a schematic diagram of the preset mapping in the second embodiment of the port allocation method of the present invention;

[0048] Figure 6 It is a flow chart of the third embodiment of the port allocation method of the present invention;

[0049] Figure 7 It is a structural block diagram of the first embodiment of the port allocation device of the present invention.

[0050] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0052] Reference Figure 1 , Figure 1 The present invention is a schematic diagram of the structure of a port allocation device in a hardware operating environment according to an embodiment of the present invention.

[0053] like Figure 1As shown, the port allocation device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk storage. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0054] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the port allocation device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0055] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a port allocation program.

[0056] exist Figure 1 In the port allocation device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the port allocation device of the present invention can be set in the port allocation device, and the port allocation device calls the port allocation program stored in the memory 1005 through the processor 1001, and executes the port allocation method provided by the embodiment of the present invention.

[0057] The embodiment of the present invention provides a port allocation method, referring to Figure 2 , Figure 2 It is a flowchart of the first embodiment of the port allocation method of the present invention.

[0058] In this embodiment, the port allocation method includes the following steps:

[0059] Step S10: when receiving the multi-screen configuration information sent by the front-end page, determining the terminal information of the terminal corresponding to the sub-screen in the multi-screen configuration information.

[0060] It should be noted that the execution subject of the method of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a mobile phone, a tablet computer, a personal computer, etc., and can also be other electronic devices that implement the same or similar functions, such as a TV wall multi-screen synthesis server or a TV wall multi-screen synthesis system. The following describes this embodiment and the following embodiments using the above-mentioned port allocation device.

[0061] It is understandable that the multi-screen configuration information may be information used to configure the TV wall screen, and the multi-screen configuration information may include the number of sub-screens and terminal information corresponding to each sub-screen, etc.

[0062] It should be noted that the terminal corresponding to the sub-screen may be a terminal used for displaying the sub-screen on the TV wall. Accordingly, the terminal information is the information corresponding to the terminal, such as the terminal name.

[0063] In a specific implementation, the port allocation device can receive multi-screen configuration information sent by the front-end page or the front-end user interaction system, where the multi-screen configuration information includes the number of sub-screens and the terminal information corresponding to each sub-screen, and then determine the terminal corresponding to the above-mentioned sub-screen and the terminal information of the terminal corresponding to the sub-screen, such as the terminal name, from the multi-screen configuration information.

[0064] Step S20: judging whether a port has been allocated to the terminal corresponding to the sub-screen according to the terminal information.

[0065] It should be noted that the port can be used to transmit the venue code stream sent by the terminal to the TV wall multi-screen synthesis system.

[0066] It is understandable that the TV wall multi-image synthesis system can be used for a system that synthesizes multi-images based on the above-mentioned venue code stream. The multi-image synthesis system can be inside the port allocation device or outside the port allocation device, and this embodiment does not limit this.

[0067] It should be noted that if the terminal is not assigned a port, the TV wall multi-screen synthesis system cannot synthesize multiple screens, that is, the TV wall cannot display multiple screens. Therefore, it is necessary to assign a port to the terminal to ensure that the TV wall can display the screen normally.

[0068] For easier understanding, please refer to Figure 3 This is for illustration only, but does not limit this solution. Figure 3This is a port allocation schematic diagram of the first embodiment of the port allocation method of the present invention. In the figure, the port allocation device receives the above-mentioned multi-screen configuration information sent by the front-end user interaction system through the MCU. Terminals 1 to 5 are terminals that send code streams. The terminal allocation device can allocate corresponding ports to each terminal, namely ports 1 to 5. After receiving the code streams sent by each terminal, the above-mentioned ports send each code stream to the synthesizer, namely port 1 and port 2 send the code stream to synthesizer 1, port 3, port 4 and port 5 send the code stream to synthesizer 2, and the synthesizer synthesizes the code stream and sends it to the corresponding TV wall, namely synthesizer 1 sends it to TV wall 1, and synthesizer 2 sends it to TV wall 2. The TV wall can display the video data corresponding to the code stream, wherein the synthesizer is used to synthesize the code stream. The synthesizer can be set inside the port allocation device or in the multi-screen synthesis system, and this embodiment does not limit this.

[0069] It is understandable that the above Figure 3 In the description, 5 terminals and 5 ports are used, but this does not limit the present solution. In a specific application, the number of terminals may be more than 5 or less than 5.

[0070] In a specific implementation, the port allocation device may query the terminal information to see whether there is a corresponding port. If so, it may be determined that the corresponding port has been allocated to the terminal corresponding to the sub-screen. Otherwise, it may be determined that the port has not been allocated to the terminal corresponding to the sub-screen.

[0071] Step S30: If not allocated, check whether there is an idle port.

[0072] It should be noted that the idle port may be a port to which no terminal is allocated.

[0073] In a specific implementation, when determining that no port is allocated to the terminal corresponding to the sub-screen, the port allocation device needs to allocate an idle port to the terminal so that the TV wall can display the content of the terminal and improve the user experience.

[0074] It should be understood that if no free port is found, no port will be allocated to the terminal corresponding to the above sub-screen, so as to prevent unauthorized terminals from accessing the video conference and improve the security of the video conference.

[0075] Step S40: When the idle ports exist, a target idle port is selected from the idle ports.

[0076] In a specific implementation, when the port allocation device queries the above-mentioned free ports, it can select a port from the above-mentioned free ports for subsequent allocation. The selection can be the first one, the last one, or specified by the user. The specific selection method can be determined based on user needs, and this embodiment does not limit this.

[0077] It should be understood that the target idle port may be a port selected from the above idle ports.

[0078] Step S50: Allocate the target idle port to the terminal corresponding to the sub-screen.

[0079] In a specific implementation, after determining the target idle port, the port allocation device can allocate the target idle port to the terminal corresponding to the sub-screen, so that the terminal corresponding to the sub-screen can transmit the venue code stream through the target idle port to maintain the normal conduct of the video conference.

[0080] This embodiment determines the terminal information of the terminal corresponding to the sub-screen in the multi-screen configuration information when receiving the multi-screen configuration information sent by the front-end page, and then determines whether a port has been allocated to the terminal corresponding to the sub-screen according to the terminal information. If not, it queries whether there is an idle port. If there is an idle port, a target idle port is selected from the idle ports, and finally the target idle port is allocated to the terminal corresponding to the sub-screen. Since this embodiment allocates the queried idle port to the terminal when the terminal corresponding to the sub-screen has not been allocated a port, it avoids the multi-screen synthesis system of the prior art from monitoring the port of the unallocated terminal, reduces the performance consumption required for multi-screen synthesis, and effectively improves the stability of the system.

[0081] refer to Figure 4 , Figure 4 It is a flow chart of the second embodiment of the port allocation method of the present invention.

[0082] Based on the above first embodiment, in this embodiment, step S20 includes:

[0083] Step S201: query whether the terminal information exists in a preset mapping table, wherein the preset mapping table stores a mapping relationship between the terminal information and the port number.

[0084] It should be noted that, due to the large number of ports, the workload of traversing and querying whether the port has been allocated to a terminal is large, and the performance consumption of the port allocation device increases. Therefore, in order to improve the efficiency of the query and reduce the performance consumption of the port allocation device, this embodiment is proposed.

[0085] It is understandable that the preset mapping table may be a table reflecting the allocation relationship between a certain terminal information and a specific port, that is, the preset mapping table may store the mapping relationship between the terminal information and the port number, wherein the port number may be the serial number corresponding to each port.

[0086] For easier understanding, please refer to Figure 5 This is for illustration only, but does not limit this solution. Figure 5This is a schematic diagram of the preset mapping in the second embodiment of the port allocation method of the present invention. In the figure, terminal 1, terminal 2 and terminal 3, etc. may be the terminal information corresponding to each terminal, such as the terminal name of each terminal, 31001, 31002 and 31003, etc. may be the port numbers, that is, terminal 1 corresponds to 31001, and the corresponding relationship is the mapping relationship; wherein, the numbers of each port number screen, 1, 2 and 3, etc. represent the number of times the above-mentioned TV wall sub-screen references the terminal, that is, if the number corresponding to terminal 1 is 1, it means that terminal 1 is referenced once.

[0087] In a specific implementation, the port allocation device can establish a mapping relationship between the terminal information of the allocated terminal and the corresponding port number in the above-mentioned preset mapping table. When the terminal information of the terminal corresponding to the sub-screen is received, it is determined whether the terminal corresponding to the sub-screen corresponding to the terminal information has been allocated a port by querying whether the above-mentioned terminal information exists in the above-mentioned preset mapping table.

[0088] Step S202 ′: If yes, it is determined that a port has been allocated to the terminal corresponding to the sub-picture.

[0089] In a specific implementation, if the port allocation device finds the above-mentioned terminal information in the above-mentioned preset mapping table, it can be determined that the terminal corresponding to the above-mentioned sub-screen has been allocated a port, and there is no need to reallocate the port. The allocated port can be used directly, and the reference to the terminal information in the preset mapping table is increased by 1 at this time, thereby avoiding one terminal occupying multiple ports and improving the utilization rate of the port.

[0090] Step S202: If not, it is determined that no port is allocated to the terminal corresponding to the sub-picture.

[0091] In the specific implementation, if the port allocation device does not query the above terminal information in the above preset mapping table, it can be determined that the terminal corresponding to the above sub-screen has not been allocated a port. It is the first time to access the video conference. At this time, subsequent port allocation operations are required to ensure that the terminal attending the meeting for the first time can join the meeting, thereby improving the user experience.

[0092] Furthermore, in order to increase the speed of determining the idle ports and improve the efficiency of port allocation, in this embodiment, step S30 includes:

[0093] Step S301: If not allocated, traverse the preset port array to determine whether there is a port element representing an unallocated terminal in the preset port array.

[0094] It should be noted that the preset port array can be an array used to characterize whether a port is assigned to a terminal. The preset port array can be a bool array established by the port allocation device according to the port allocation range. For example, the port range allocated by the server to the port allocation device is 31001-31256, and the total number of ports is 256. At this time, the port allocation device can establish a bool array PortList with a length of 256. The PortList is the above-mentioned preset port array. Each bool in the above-mentioned PortList represents the allocation status of the port. For example, PortList[0]=true indicates that the first port (31001) has been allocated. Similarly, PortList[0]=false indicates that the first port has not been allocated.

[0095] In a specific implementation, when determining that no port is allocated to the terminal corresponding to the sub-screen, the port allocation device traverses the preset port array to check whether there is a port element representing an unallocated terminal, that is, checks whether there is a false element in PortList.

[0096] Step S302: If the port element representing the unallocated terminal exists, it is determined that there is an idle port.

[0097] In a specific implementation, when the port allocation device finds a port element representing an unallocated terminal in the above-mentioned preset port array, that is, when it finds a false element in PortList, it can be determined that the above-mentioned idle ports exist, that is, the idle ports can be all ports whose port elements are false, so that it can more quickly determine whether there are idle ports and improve the efficiency of port allocation.

[0098] Step S302': if the port element representing the unallocated terminal does not exist, it is determined that there is no idle port.

[0099] In a specific implementation, if no port element representing an unassigned terminal is found in the preset port array, it means that there is no free port, and no port is allocated to the terminal corresponding to the sub-screen, so as to prevent untrusted terminals from accessing the video conference and ensure the security of the video conference.

[0100] In this embodiment, the step S40 includes:

[0101] Step S401: when there is an idle port, select the first target port element representing an unassigned terminal from the preset port array.

[0102] In a specific implementation, when the port allocation device determines that there is an idle port, that is, when a port element representing an unallocated terminal is queried in the above-mentioned preset port array, the port allocation device can select the first port element representing the unallocated terminal from the above-mentioned preset port array and use the port element as the target port element.

[0103] Step S402: Acquire the target idle port corresponding to the target port element.

[0104] In the specific implementation, taking PortList as an example, but not limiting this solution, if a false element queried in the PortList is PortList

[101] , the port number is 31001+101+311002, that is, the port allocation device can allocate the front-end target idle port in the above manner after the front-end target port element.

[0105] It should be understood that by using the first port element representing the unallocated terminal as the target port element, the speed of acquiring the target port element can be increased, thereby improving the port allocation efficiency.

[0106] Furthermore, in order to improve the user's video conferencing experience, in this embodiment, after step S40, the following steps are further included:

[0107] Step S41: determining a target idle port number corresponding to the target idle port, and establishing a mapping relationship between the terminal information and the target idle port number in the preset mapping table.

[0108] It should be noted that since the terminal accessing the video conference for the first time has not been allocated a port, after an idle port has been allocated to the terminal accessing for the first time, a mapping relationship of the terminal needs to be established in the above-mentioned preset mapping table so that the terminal does not need to reallocate the port the next time it accesses, thereby increasing the speed of entering the video conference and improving the user's video conferencing experience.

[0109] It is understandable that the target idle port number may be a serial number corresponding to the target idle port, such as 311002 mentioned above.

[0110] In a specific implementation, after determining the target free port, the port allocation device can read the port number used in the target free port determination process, that is, the target free port number corresponding to the target free port, and then establish a mapping relationship between the above terminal information and the target free port number in the above preset mapping table to ensure that when the terminal corresponding to the above sub-screen enters again, there is no need to allocate the port again, and the corresponding port in the mapping relationship can be used again, thereby improving the user's video conferencing experience.

[0111] It should be understood that after the above mapping relationship is established, the number of references of the terminal information in the above preset mapping table may be increased by 1 to indicate that the terminal information is referenced once by the TV wall sub-screen.

[0112] Step S42: When the mapping relationship is established, the target port element in the preset array is characterized as an allocated terminal.

[0113] In the specific implementation, PortList is taken as an example, but this solution is not limited. When the above mapping relationship is established, the port allocation device can characterize the target port element in the above PortList as true, such as the original PortList

[101] =false, after the port corresponding to 101 is assigned to a terminal, PortList

[101] =true, to indicate to the port allocation device that the port corresponding to the port element has been assigned to a terminal, and the port can no longer be assigned to other terminals, so as to ensure the stability of port allocation.

[0114] refer to Figure 6 , Figure 6 It is a flow chart of the third embodiment of the port allocation method of the present invention.

[0115] Based on the above second embodiment, in this embodiment, after step S50, the method further includes:

[0116] Step S60: when receiving the multi-screen deletion configuration information sent by the front-end page, determining the terminal information to be deleted of the terminal corresponding to the screen to be deleted in the multi-screen deletion configuration information.

[0117] It should be noted that ports are a scarce resource. Once a terminal to which a port has been allocated no longer uses the port, the allocation relationship must be deleted so that the port can be provided to other terminals in need, thereby improving port utilization and further ensuring system stability.

[0118] It should be noted that the multi-screen deletion configuration information may be information for deleting port allocation relationships, that is, information for port recovery. The multi-screen deletion configuration information may include the number of sub-screens to be deleted and the terminal information corresponding to each sub-screen to be deleted.

[0119] It is understandable that the terminal corresponding to the screen to be deleted can be the terminal corresponding to the screen to be deleted in each screen, and accordingly, the terminal information to be deleted is the information of the terminal corresponding to the screen to be deleted, for example, the terminal name of the terminal corresponding to the screen to be deleted.

[0120] In a specific implementation, when receiving the multi-screen deletion configuration information sent by the front-end page or the front-end user interaction system, the port allocation device determines the screen to be deleted, and then determines the terminal and terminal information corresponding to the screen to be deleted.

[0121] Step S70: Query whether the terminal information to be deleted exists in the preset mapping table.

[0122] In a specific implementation, since the terminal corresponding to the to-be-deleted screen needs to transmit the conference code stream through a port so as to be displayed in the TV wall sub-screen, the to-be-deleted terminal information and the assigned port number can be queried in the above preset mapping table.

[0123] Step S80: If the image exists in the preset mapping table, reclaiming the port allocated to the terminal corresponding to the image to be deleted.

[0124] In a specific implementation, when the port allocation device queries the terminal information to be deleted in the above-mentioned preset mapping table, it can obtain the port number corresponding to the terminal information to be deleted, and then determine the allocated port allocated to the terminal corresponding to the screen to be deleted according to the port number. After the allocated port is determined, the mapping relationship between the allocated port and the terminal information to be deleted is deleted, that is, the allocated port is recovered so that the allocated port can be used to be allocated to the terminal in need subsequently.

[0125] Furthermore, in order to improve the efficiency of recycling, in this embodiment, after step S80, the following steps are further included:

[0126] Step S81: determining whether the terminal corresponding to the picture to be deleted is referenced multiple times.

[0127] It should be noted that the terminal corresponding to the picture to be deleted can participate in multi-picture synthesis, that is, the sub-picture to be deleted can be displayed in the first picture or in the second picture, that is, the terminal corresponding to the picture to be deleted is referenced multiple times.

[0128] In a specific implementation, the port allocation device may query the reference count corresponding to the terminal information to be deleted in the above-mentioned preset mapping table, that is, the above-mentioned Figure 5 The numbers after the port number are 1, 2, 3, etc. If the reference count is 1, it means that the terminal corresponding to the to-be-deleted screen is only referenced once. Otherwise, if the reference count is greater than 1, it means that the terminal corresponding to the to-be-deleted screen is referenced multiple times.

[0129] Step S82: If not, deleting the terminal information to be deleted from the preset mapping table.

[0130] In a specific implementation, the port allocation device queries the reference count of the terminal corresponding to the to-be-deleted screen in the above-mentioned preset mapping table, and determines whether the reference count is 0 after being reduced by 1. If it is 0, it means that the terminal corresponding to the to-be-deleted screen has only been referenced once. At this time, the to-be-deleted terminal information in the above-mentioned preset mapping table needs to be deleted, that is, the mapping relationship corresponding to the to-be-deleted terminal information is deleted.

[0131] It should be understood that if the number of references to the terminal corresponding to the to-be-deleted screen is not 0 after being subtracted by 1 in the above-mentioned preset mapping table, it means that the terminal corresponding to the to-be-deleted screen is referenced multiple times. Since the terminal corresponding to the to-be-deleted screen is referenced multiple times, multiple ports will be allocated to the terminal corresponding to the to-be-deleted screen. Therefore, the mapping relationship needs to be retained. At the same time, the number of references corresponding to the terminal to be deleted needs to be subtracted by 1 to avoid the mapping relationship between the above-mentioned terminal information to be deleted and other ports being deleted, resulting in the deletion of other screens that need to reference the terminal.

[0132] Step S83: when the deletion of the terminal information to be deleted is completed, the port element corresponding to the reclaimed port is represented as an unallocated terminal.

[0133] In the specific implementation, PortList is taken as an example, but this solution is not limited. When the port allocation device determines that the deletion of the terminal information to be deleted is completed, it determines the port element of the recovered port. For example, if the recovered port is port 31102, PortList

[101] in the above PortLis is set to false, that is, the port element corresponding to the recovered port is characterized as an unallocated terminal, so that the recovered terminal can be used for subsequent terminals in need, thereby improving the allocation efficiency of subsequent ports.

[0134] In addition, an embodiment of the present invention further provides a storage medium, on which a port allocation program is stored. When the port allocation program is executed by a processor, the steps of the port allocation method described above are implemented.

[0135] Reference Figure 7 , Figure 7 It is a structural block diagram of the first embodiment of the port allocation device of the present invention.

[0136] like Figure 7 As shown, the port allocation device proposed in the embodiment of the present invention includes:

[0137] The terminal information determination module 501 is used to determine the terminal information of the terminal corresponding to the sub-picture in the multi-picture configuration information when receiving the multi-picture configuration information sent by the front-end page.

[0138] The port allocation judgment module 502 is used to judge whether a port has been allocated to the terminal corresponding to the sub-screen according to the terminal information.

[0139] The idle port query module 503 is used to query whether there is an idle port if it is not allocated.

[0140] The idle port selection module 504 is used to select a target idle port from the idle ports when the idle ports exist.

[0141] The idle port allocation module 505 is used to allocate the target idle port to the terminal corresponding to the sub-screen.

[0142] This embodiment determines the terminal information of the terminal corresponding to the sub-screen in the multi-screen configuration information when receiving the multi-screen configuration information sent by the front-end page, and then determines whether a port has been allocated to the terminal corresponding to the sub-screen according to the terminal information. If not, it queries whether there is an idle port. If there is an idle port, a target idle port is selected from the idle ports, and finally the target idle port is allocated to the terminal corresponding to the sub-screen. Since this embodiment allocates the queried idle port to the terminal when the terminal corresponding to the sub-screen has not been allocated a port, it avoids the multi-screen synthesis system of the prior art from monitoring the port of the unallocated terminal, reduces the performance consumption required for multi-screen synthesis, and effectively improves the stability of the system.

[0143] Other embodiments or specific implementations of the port allocation device of the present invention can refer to the above-mentioned method embodiments, which will not be described in detail here.

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

[0145] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0146] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0147] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A port allocation method, characterized in that: The port allocation method comprises the following steps: When receiving the multi-screen configuration information sent by the front-end page, determining the terminal information of the terminal corresponding to the sub-screen in the multi-screen configuration information; Determining whether a port has been allocated to the terminal corresponding to the sub-screen according to the terminal information; If it is not allocated, check whether there is a free port; When the idle ports exist, selecting a target idle port from the idle ports; Allocating the target idle port to the terminal corresponding to the sub-screen; If the port is not allocated, the step of querying whether there is an idle port includes: If not allocated, traverse the preset port array to determine whether there is a port element representing an unallocated terminal in the preset port array; If the port element representing the unallocated terminal exists, it is determined that there is an idle port; If the port element representing the unallocated terminal does not exist, it is determined that there is no idle port; The step of selecting a target idle port from the idle ports when the idle ports exist comprises: When the idle port exists, selecting a first target port element representing an unassigned terminal from the preset port array; Obtain a target idle port corresponding to the target port element; After the step of allocating the target idle port to the terminal corresponding to the sub-picture, the method further includes: When receiving the multi-screen deletion configuration information sent by the front-end page, determining the terminal information to be deleted of the terminal corresponding to the screen to be deleted in the multi-screen deletion configuration information; Query whether the terminal information to be deleted exists in the preset mapping table; If it exists in the preset mapping table, reclaiming the port allocated to the terminal corresponding to the picture to be deleted; Determine whether the terminal corresponding to the picture to be deleted is referenced multiple times; If the terminal corresponding to the to-be-deleted screen is referenced multiple times, retaining the to-be-deleted terminal information in the preset mapping table; If the terminal corresponding to the to-be-deleted screen has not been referenced multiple times, deleting the to-be-deleted terminal information from the preset mapping table; When the deletion of the terminal information to be deleted is completed, the port element corresponding to the recovered port is characterized as an unallocated terminal; The step of determining whether the terminal corresponding to the to-be-deleted picture is referenced multiple times comprises: Determine the number of references of the terminal corresponding to the picture to be deleted; Reducing the number of citations by one to obtain an updated number of citations; Determine whether the number of references after the update is zero; If it is not zero, it is determined that the terminal corresponding to the picture to be deleted is referenced multiple times; If it is zero, it is determined that the terminal corresponding to the to-be-deleted picture has not been referenced multiple times.

2. The port allocation method according to claim 1, characterized in that: The step of judging whether a port has been allocated to the terminal corresponding to the sub-picture according to the terminal information comprises: Query whether the terminal information exists in a preset mapping table, wherein the preset mapping table stores a mapping relationship between the terminal information and the port number; If so, determining that a port has been allocated for the sub-picture terminal; If not, it is determined that no port is allocated to the sub-picture terminal.

3. The port allocation method according to claim 2, characterized in that: After the step of selecting a target idle port from the idle ports when the idle ports exist, the method further includes: Determine a target idle port number corresponding to the target idle port, and establish a mapping relationship between the terminal information and the target idle port number in the preset mapping table; When the mapping relationship is established, the target port element in the preset array is characterized as an allocated terminal.

4. A port allocation device, characterized in that: The device comprises: A terminal information determination module, configured to determine the terminal information of the terminal corresponding to the sub-picture in the multi-picture configuration information when receiving the multi-picture configuration information sent by the front-end page; A port allocation judgment module, used for judging whether a port has been allocated to the terminal corresponding to the sub-picture according to the terminal information; The free port query module is used to query whether there is a free port if it is not allocated; An idle port selection module, used for selecting a target idle port from the idle ports when the idle ports exist; An idle port allocation module, used for allocating the target idle port to the terminal corresponding to the sub-picture; The idle port query module is further used for: If not allocated, traverse the preset port array to determine whether there is a port element representing an unallocated terminal in the preset port array; If the port element representing the unallocated terminal exists, it is determined that there is an idle port; If the port element representing the unallocated terminal does not exist, it is determined that there is no idle port; The idle port selection module is further used for: When the idle port exists, selecting a first target port element representing an unassigned terminal from the preset port array; Obtain a target idle port corresponding to the target port element; The idle port allocation module is further used for: When receiving the multi-screen deletion configuration information sent by the front-end page, determining the terminal information to be deleted of the terminal corresponding to the screen to be deleted in the multi-screen deletion configuration information; Query whether the terminal information to be deleted exists in the preset mapping table; If it exists in the preset mapping table, reclaiming the port allocated to the terminal corresponding to the picture to be deleted; Determine whether the terminal corresponding to the picture to be deleted is referenced multiple times; If the terminal corresponding to the to-be-deleted screen is referenced multiple times, retaining the to-be-deleted terminal information in the preset mapping table; If the terminal corresponding to the to-be-deleted screen has not been referenced multiple times, deleting the to-be-deleted terminal information from the preset mapping table; When the deletion of the terminal information to be deleted is completed, the port element corresponding to the recovered port is characterized as an unallocated terminal; The idle port selection module is further used for: Determine the number of references of the terminal corresponding to the picture to be deleted; Reducing the number of citations by one to obtain an updated number of citations; Determine whether the number of references after the update is zero; If it is not zero, it is determined that the terminal corresponding to the picture to be deleted is referenced multiple times; If it is zero, it is determined that the terminal corresponding to the to-be-deleted picture has not been referenced multiple times.

5. A port allocation device, characterized in that: The device comprises: a memory, a processor, and a port allocation program stored in the memory and executable on the processor, wherein the port allocation program is configured to implement the steps of the port allocation method according to any one of claims 1 to 3.

6. A storage medium, characterized in that: The storage medium stores a port allocation program, and when the port allocation program is executed by the processor, the steps of the port allocation method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Negotiable video data transmission mode

    CN102170557A

  • Intranet and extranet mapping method and device, electronic equipment, medium and video conference system

    CN110225146A