Scheduling resource distribution method, device, equipment and storage medium

By splitting resources on the server side and obtaining resources on the local area network, the problem of large server burden in the existing technology is solved, and more efficient scheduling resource distribution is achieved.

CN117880269BActive Publication Date: 2025-02-25TCL OVERSEAS ELECTRONIC (HUIZHOU) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311688795.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-08
Publication Date
2025-02-25
Estimated Expiration
2043-12-08

AI Technical Summary

Technical Problem

The prior art has a high burden on servers when distributing scheduled resources to digital signage, especially when a scheduled resource needs to be distributed to multiple digital signages.

Method used

When receiving the information acquisition instruction sent by the server, the network information is sent to the server. The server generates the current sub-scheduling resources based on the network information, and the display terminal obtains the remaining sub-scheduling resources from the remaining display terminal located in the current LAN. , form target schedule resources.

Benefits of technology

It reduces the burden on the server, saves the traffic and costs of the server, and improves the efficiency of scheduling resource distribution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117880269B_ABST
    Figure CN117880269B_ABST
Patent Text Reader

Abstract

The present invention discloses a scheduling resource distribution method, device, equipment and storage medium. The method is applied to a server. The method includes: when receiving an information acquisition instruction sent by a server, sending networking information to the server, and the server generates corresponding current sub-scheduling resources based on the networking information; receiving the current sub-scheduling resources sent by the server, and obtaining the remaining sub-scheduling resources from the remaining display terminals located in the current local area network, and the current sub-scheduling resources and the remaining sub-scheduling resources constitute the target scheduling resources. In the present invention, the server only sends the corresponding sub-scheduling resources to the display terminals located in the same local area network, and each display terminal can receive the current sub-scheduling resources sent by the server, and can obtain the remaining sub-scheduling resources from the remaining display terminals located in the current local area network, and finally constitute the target scheduling resources of the total data volume, thereby reducing the burden on the server and saving the server's traffic and cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of display terminal technology, and in particular to a scheduling resource distribution method, device, equipment and storage medium. Background Art

[0002] Digital signage refers to a multimedia professional audio-visual system that releases information through large-screen terminal display devices in public places where people gather. Because it integrates network and multimedia technologies for information release and can interact with customer feedback in a timely manner, digital signage has been widely used in hospitals, stores, supermarkets, hotels and other fields.

[0003] The display content of digital signage needs to be sent down through the server. However, when the existing server distributes scheduled resources to digital signage, if one scheduled resource corresponds to multiple digital signages, the server will usually increase the distribution traffic according to the number of digital signages, so the server is heavily burdened.

[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 scheduling resource distribution method, device, equipment and storage medium, aiming to solve the technical problem that the existing scheduling resource distribution method has a heavy server burden.

[0006] To achieve the above object, the present invention provides a scheduling resource distribution method, which is applied to a server and includes:

[0007] When receiving the information acquisition instruction sent by the server, the network information is sent to the server, and the server generates the corresponding current sub-schedule resource based on the network information;

[0008] The current sub-scheduled resources sent by the server are received, and remaining sub-scheduled resources are acquired from remaining display terminals located in the current local area network, wherein the current sub-scheduled resources and the remaining sub-scheduled resources constitute target scheduling resources.

[0009] Optionally, the networking information includes a current device identifier and a total number of display terminal devices in the same local area network; the server splits the target scheduling resources according to the total number of devices, and generates the corresponding current sub-scheduling resources according to the current device identifier.

[0010] Optionally, the step of receiving the current sub-schedule resource sent by the server and acquiring the remaining sub-schedule resources from the remaining display terminals located in the current local area network includes:

[0011] Receive the current sub-schedule resource sent by the server, and create a schedule resource acquisition thread according to the remaining display terminals located in the current local area network;

[0012] The target sub-scheduled resources are acquired from the remaining display terminals respectively through the scheduled resource acquisition thread.

[0013] Optionally, the step of acquiring the target sub-scheduled resources from the remaining display terminals respectively through the scheduling resource acquisition thread includes:

[0014] Sending a resource acquisition request to the remaining display terminals, when the remaining display terminals receive the resource acquisition request and detect that the corresponding target sub-schedule resources have been received, broadcasting a download completion message in the current local area network;

[0015] When the current sub-scheduled resource is received completely and a download completion message broadcasted by any of the remaining display terminals is monitored, the target sub-scheduled resource is acquired from the remaining display terminals respectively through the scheduled resource acquisition thread.

[0016] Optionally, the scheduled resource acquisition thread includes a plurality of sub-resource threads, the number of the sub-resource threads is equal to the number of the remaining display terminals, and there is a one-to-one correspondence between each of the sub-resource threads and the device identification of each of the remaining display terminals.

[0017] Optionally, the step of acquiring the target sub-scheduled resources from the remaining display terminals located in the current local area network respectively through the scheduling resource acquisition thread includes:

[0018] When a download completion message broadcast by any of the remaining display terminals is monitored, a target device identifier corresponding to the monitored target download completion message is obtained;

[0019] Determine a target sub-resource thread and a target display terminal among the remaining display terminals according to the target device identifier;

[0020] The target sub-scheduled resource is acquired from the target display terminal through the target sub-resource thread.

[0021] Optionally, after sending the resource acquisition request to the remaining display terminals, the method further includes:

[0022] Determine a preset waiting time according to the data volume of the current sub-scheduled resource and the network speed of the current local area network;

[0023] Determining whether there is a faulty display terminal among the remaining display terminals by using the preset waiting time, the faulty display terminal being a display terminal whose broadcast waiting time for a download completion message is greater than the preset waiting time;

[0024] If so, obtain the fault device identifier corresponding to the fault display terminal, and send the fault device identifier and a resource download request to the server. When receiving the resource download request, the server feedbacks the fault sub-scheduled resource corresponding to the fault device identifier, and the fault sub-scheduled resource is the sub-scheduled resource corresponding to the fault display terminal.

[0025] In addition, to achieve the above-mentioned purpose, the present invention further proposes a scheduling resource distribution device, the scheduling resource distribution device comprising:

[0026] An information transmission module, configured to send networking information to the server upon receiving an information acquisition instruction sent by the server, and the server generates corresponding current sub-schedule resources based on the networking information;

[0027] The resource download module is used to receive the current sub-scheduled resources sent by the server, and obtain the remaining sub-scheduled resources from the remaining display terminals located in the current local area network. The current sub-scheduled resources and the remaining sub-scheduled resources constitute the target scheduling resources.

[0028] In addition, to achieve the above-mentioned purpose, the present invention also proposes a scheduling resource distribution device, the device including: a memory, a processor and a scheduling resource distribution program stored in the memory and executable on the processor, the scheduling resource distribution program being configured to implement the steps of the scheduling resource distribution method as described above.

[0029] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a scheduling resource distribution program is stored, and when the scheduling resource distribution program is executed by a processor, the steps of the scheduling resource distribution method as described above are implemented.

[0030] The present invention discloses a scheduling resource distribution method, device, equipment and storage medium, the method comprising: upon receiving an information acquisition instruction sent by a server, sending networking information to the server, the server generating corresponding current sub-scheduling resources based on the networking information; receiving the current sub-scheduling resources sent by the server, acquiring the remaining sub-scheduling resources from the remaining display terminals located in the current local area network, the current sub-scheduling resources and the remaining sub-scheduling resources forming target scheduling resources. The networking information includes the current device identification and the total number of display terminals located in the same local area network; the server splits the target scheduling resources according to the total number of devices, and generates corresponding current sub-scheduling resources according to the current device identification. Compared with the existing scheduling resource distribution method, in the present invention, the resources that each display terminal needs to receive from the server are no longer the total data volume of the target scheduling resources. Instead, the server generates the corresponding current sub-scheduling resources by splitting the resources according to the total number of display terminals located in the same local area network reported by each display terminal, and then feeds back the data volume corresponding to the current scheduling sub-resources according to the current device identifier. After receiving the current sub-scheduling resources corresponding to itself sent by the server, each display terminal can obtain the target scheduling resources with a complete data volume by obtaining the remaining sub-scheduling resources from the remaining display terminals located in the current local area network. Therefore, the present invention can not only reduce the burden on the server, but also save the server traffic and cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 It is a structural diagram of a scheduling resource distribution device in a hardware operating environment involved in an embodiment of the present invention;

[0032] Figure 2 It is a flowchart of the first embodiment of the scheduling resource distribution method of the present invention;

[0033] Figure 3 This is a schematic diagram of the process of splitting server resources in the first embodiment of the scheduling resource distribution method of the present invention;

[0034] Figure 4 This is a schematic diagram of the process of obtaining remaining sub-scheduling resources in the first embodiment of the scheduling resource distribution method of the present invention;

[0035] Figure 5 This is a schematic diagram of the target scheduling resource distribution process in the first embodiment of the scheduling resource distribution method of the present invention;

[0036] Figure 6 It is a schematic diagram of the first process of the second embodiment of the scheduling resource distribution method of the present invention;

[0037] Figure 7 A second flow chart of the second embodiment of the scheduling resource distribution method of the present invention;

[0038] Figure 8 This is a schematic diagram showing the process of a terminal acquiring target scheduling resources in the second embodiment of the scheduling resource distribution method of the present invention;

[0039] Fig. 9 It is a structural block diagram of the first embodiment of the scheduling resource distribution device of the present invention.

[0040] 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

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

[0042] Reference Figure 1 , Figure 1 The diagram is a schematic diagram of the structure of a scheduling resource distribution device in a hardware operating environment according to an embodiment of the present invention.

[0043] like Figure 1 As shown, the scheduling resource distribution 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.

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

[0045] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a data storage module, a network communication module, a user interface module, and a scheduling resource distribution program.

[0046] exist Figure 1 In the scheduling resource distribution 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 scheduling resource distribution device of the present invention can be set in the scheduling resource distribution device, and the scheduling resource distribution device calls the scheduling resource distribution program stored in the memory 1005 through the processor 1001, and executes the scheduling resource distribution method provided by the embodiment of the present invention.

[0047] Reference Figure 2 , Figure 2 Schematic diagram of the flow of the first embodiment of the scheduling resource distribution method of the present invention.

[0048] In this embodiment, the scheduling resource distribution method includes the following steps:

[0049] Step S10: upon receiving the information acquisition instruction sent by the server, the network information is sent to the server, and the server generates the corresponding current sub-schedule resource based on the network information;

[0050] It should be noted that the execution subject of the method of this embodiment can be any display terminal device corresponding to the resource to be displayed, and the resource to be displayed is sent from the server to each display terminal device. It is easy to understand that in this embodiment, when the server receives the target scheduling resources that need to be displayed by each display terminal, it can also obtain the display terminal device corresponding to the target scheduling resources, so that it can send information acquisition instructions to each display terminal corresponding to the target scheduling resources to obtain the networking information of each playback terminal device. Therefore, in this embodiment, when the display terminal receives the information acquisition instruction sent by the server, it needs to send its own networking information to the server. The networking information may include: the device identification of the display terminal itself, the total number of playback terminal devices located in the same local area network, and the network parameters of the display terminal itself, such as the network status information of the display terminal itself (offline or online), etc. Among them, each display terminal can be connected to the server through a router, and can obtain the device information of other devices in the local area network corresponding to the same router when it is turned on and connected to the router, thereby obtaining the total number of display terminal devices located in the same local area network.

[0051] It should be understood that in most scenarios, multiple display terminals can be located in the same local area network, and at this time, multiple display terminals can use the same scheduling resources. Therefore, in order to reduce the burden on the server, in this embodiment, the server can obtain the total number of display terminal devices located in the same local area network based on the networking information reported by each display terminal, and split the target scheduling resources according to the total number of devices to generate sub-scheduling resources corresponding to each display terminal device. It should be understood that each display terminal can be connected to the server through a router, and can obtain the device information of other devices in the local area network corresponding to the same router when it is turned on and connected to the router, thereby obtaining the total number of display terminal devices located in the same local area network.

[0052] Specifically, when the total number of terminal devices in the same LAN is greater than one, in this embodiment, the server can split the target scheduling resources according to the total number of devices in the same LAN, generate several sub-scheduling resources, and feedback the corresponding sub-scheduling resources to each terminal device in the same LAN; and when the total number of terminal devices in a certain LAN is equal to one, the target scheduling resources can be directly distributed to the only terminal device in the LAN. Figure 3 Take this as an example to illustrate: Figure 3 FIG. 1 is a schematic diagram of the process of splitting server resources in the first embodiment of the scheduling resource distribution method of the present invention. Figure 3 As shown, in actual application, when the server receives the created target scheduling resources, the terminal device that obtains the target scheduling resources to be displayed may be the terminal device (i.e., the above-mentioned display terminal) AD. Therefore, after the server sends the information acquisition instruction to the terminal device AD, it can be learned through the networking information reported by the terminal device AD ​​that the terminal devices AC are located in the same local area network, and the terminal device D may be the only terminal device located in a certain local area network. Therefore, when the server splits the resources, the total resources corresponding to the target scheduling resources may correspond to the terminal device D; at the same time, the total resources corresponding to the target scheduling resources may be split into three sub-scheduling resources, and the first sub-scheduling resource (i.e. Figure 3 The first data in the table corresponds to terminal device A, and the second sub-scheduled resource (i.e. Figure 3 The second data in ) corresponds to terminal device B, and the third sub-scheduled resource (i.e. Figure 3 The third data in the resource) corresponds to the terminal device C, and then the target scheduled resource after the resource split is released to each terminal device. The data volume of each sub-scheduled resource is usually the same, but if it cannot be evenly divided, the data volume of the third sub-scheduled resource can be adaptively increased.

[0053] Step S20: receiving the current sub-scheduled resources sent by the server, obtaining the remaining sub-scheduled resources from the remaining display terminals located in the current local area network, and the current sub-scheduled resources and the remaining sub-scheduled resources constitute the target scheduling resources.

[0054] It can be understood that, from the resource splitting process of the above-mentioned target scheduling resources, each sub-scheduling resource may have a corresponding distribution terminal device. In this embodiment, the corresponding relationship can be established according to the device identification of each terminal device. Therefore, in this embodiment, when the server publishes the schedule, the sub-scheduling resources generated after the resource splitting can be distributed to the corresponding terminal devices based on the device identification. For example, in this embodiment, according to the above-mentioned corresponding relationship, the first sub-scheduling resource can be distributed to terminal device A, the second sub-scheduling resource can be distributed to terminal device B, the third sub-scheduling resource can be distributed to terminal device C, and the entire target scheduling resource can be distributed to terminal device D. Therefore, when any display terminal device sends its current device identification to the server, the server can then generate the corresponding current sub-scheduling resource and feed it back to the display terminal device.

[0055] It is easy to understand that in this embodiment, after receiving the current sub-schedule resources sent by the server, each display terminal can also obtain the remaining sub-schedule resources from the remaining display terminals located in the current local area network based on the router. Finally, each display terminal can form a complete target schedule resource that needs to be displayed based on the current sub-schedule resources obtained from the server and the remaining sub-schedule resources obtained from the remaining display terminals. Figure 4 Take this as an example to illustrate. Figure 4 FIG. 1 is a schematic diagram of a process of obtaining remaining sub-scheduling resources in the second embodiment of the scheduling resource distribution method of the present invention. Figure 4 As shown, assuming that in actual application, terminal devices AC are located in the same LAN, the total number of devices corresponding to the LAN is 3. The server can split the target scheduling resource into 3 sub-scheduling resources and send the 3 sub-scheduling resources to terminal devices AC through the router. Terminal device A downloads the first sub-scheduling resource (i.e. Figure 4 The first data in the table), terminal device B downloads the second sub-scheduled resource (i.e. Figure 4 The second data in the table), terminal device C downloads the third sub-scheduled resource (i.e. Figure 4The third piece of data in the data). Taking terminal device A as an example, the current sub-scheduled resource corresponding to terminal device A may be the first sub-scheduled resource, and the corresponding remaining display terminals located in the current local area network may be terminal devices B and C, and the remaining sub-scheduled resources may be the second sub-scheduled resource and the third sub-scheduled resource. When terminal device A has downloaded the first sub-scheduled resource corresponding to itself, terminal device A may send a request to terminal devices B and C through a router to obtain the second sub-scheduled resource from terminal device B and the third sub-scheduled resource from terminal device C. Similarly, terminal devices B and C may also obtain the corresponding remaining sub-scheduled resources without communicating with the server again. When terminal device AC has completed downloading the three sub-scheduled resources, it may merge the obtained sub-scheduled resources into one resource, namely the target scheduling resource mentioned above, and then display the target scheduling resource. Therefore, based on the above analysis, it can be seen that compared with the existing scheduling resource distribution method, the resources that each display terminal needs to receive from the server in this embodiment are no longer the total data volume of the target scheduling resources, but the server splits the resources according to the total number of display terminals located in the same local area network reported by each display terminal, and then feedbacks the data volume corresponding to the current scheduling sub-resource according to the current device identifier. After obtaining the current sub-scheduling resources corresponding to itself, each display terminal can obtain the complete target scheduling resources by obtaining the remaining sub-scheduling resources from the remaining display terminals located in the current local area network. Therefore, this embodiment can not only reduce the burden on the server, but also save server traffic and costs.

[0056] In the specific implementation, for ease of understanding, Figure 5 Take this as an example to illustrate. Figure 5 FIG. 1 is a schematic diagram of the process of target scheduling resource distribution in the first embodiment of the scheduling resource distribution method of the present invention. Figure 5 As shown, in actual application, if the server detects that the display terminal located in the same local area network is terminal device AC, the total number of devices corresponding to the local area network is 3, and the target scheduling resource can be split into 3 sub-scheduling resources, and the 3 sub-scheduling resources are sent to terminal devices AC through the router corresponding to the local area network. Specifically, terminal device A downloads the first sub-scheduling resource (i.e. Figure 5 The first data in the table), terminal device B downloads the second sub-scheduled resource (i.e. Figure 5 The second data in the table), terminal device C downloads the third sub-scheduled resource (i.e. Figure 5The third copy of data in the data). At this time, the remaining display terminals corresponding to terminal device A and located in the same local area network may be terminal devices B and C. When terminal device A has downloaded the first sub-scheduled resource corresponding to itself, the remaining sub-scheduled resources may be the second sub-scheduled resource and the third sub-scheduled resource. Therefore, terminal device A may obtain the second sub-scheduled resource from terminal device B and the third sub-scheduled resource from terminal device C; at the same time, terminal devices B and C may obtain the first sub-scheduled resource from terminal device A. Similarly, terminal devices B and C may also obtain the corresponding remaining sub-scheduled resources without communicating with the server again. When the three sub-scheduled resources are downloaded, terminal device AC may merge the obtained sub-scheduled resources into one resource, namely the target scheduled resource mentioned above, and then display the target scheduled resource. Therefore, based on the above-mentioned scheduling resource distribution process, it can be known that compared with the existing scheduling resource distribution method, in this embodiment, the server can only send corresponding sub-scheduling resources to display terminals located in the same local area network. After obtaining its own corresponding current sub-scheduling resources, each display terminal can obtain the target scheduling resources with a complete data volume by obtaining the remaining sub-scheduling resources from the remaining display terminals located in the same local area network. This can not only reduce the burden on the server, but also save the server's traffic and costs.

[0057] This embodiment sends networking information to the server upon receiving an information acquisition instruction sent by the server, and the server generates corresponding current sub-scheduling resources based on the networking information; receives the current sub-scheduling resources sent by the server, obtains the remaining sub-scheduling resources from the remaining display terminals located in the current local area network, and the current sub-scheduling resources and the remaining sub-scheduling resources constitute the target scheduling resources. The networking information includes the current device identifier and the total number of display terminals located in the same local area network; the server splits the target scheduling resources according to the total number of devices, and generates corresponding current sub-scheduling resources according to the current device identifier. Compared with the existing scheduling resource distribution method, in this embodiment, the resources that each display terminal needs to receive from the server are no longer the total data volume of the target scheduling resources. Instead, the server splits the resources according to the total number of display terminals located in the same local area network reported by each display terminal to generate the corresponding current sub-scheduling resources, and then feeds back the data volume corresponding to the current scheduling sub-resources according to the current device identifier. After receiving the current sub-scheduling resources corresponding to itself sent by the server, each display terminal can obtain the target scheduling resources with a complete data volume by obtaining the remaining sub-scheduling resources from the remaining display terminals located in the current local area network. Therefore, this embodiment can not only reduce the burden on the server, but also save the server traffic and cost.

[0058] Reference Figure 6 , Figure 6 This is a first flow chart of the second embodiment of the scheduling resource distribution method of the present invention, based on the above Figure 2 The illustrated embodiment provides a second embodiment of the scheduling resource distribution method of the present invention.

[0059] In this embodiment, the remaining sub-schedule resources include a number of target sub-schedule resources corresponding to the remaining display terminals, and step S20 includes:

[0060] Step S201: receiving the current sub-scheduled resources sent by the server, and creating a scheduling resource acquisition thread according to the remaining display terminals located in the current local area network.

[0061] Step S202: Obtain target sub-scheduled resources from the remaining display terminals respectively through the scheduling resource acquisition thread.

[0062] It can be understood that in this embodiment, when the display terminal receives the current sub-scheduled resources sent by the server, it can create a scheduling resource acquisition thread according to the remaining display terminals located in the current local area network, so that when the target sub-scheduled resources corresponding to any of the remaining display terminals can be received, the resource acquisition process can be immediately executed to download resources, so as to improve the download speed of the remaining sub-scheduled resources.

[0063] It is easy to understand that the remaining sub-schedule resources may include a number of target sub-schedule resources corresponding to the remaining display terminals. Figure 4 For example, the remaining sub-scheduling resources corresponding to terminal device A may include the target sub-scheduling resource corresponding to terminal device B—the second sub-scheduling resource and the target sub-scheduling resource corresponding to terminal device C—the third sub-scheduling resource, that is, the amount of data of the remaining sub-scheduling resources obtained from the remaining display terminals is relatively large. Further, this embodiment can obtain the target sub-scheduling resources from the remaining display terminals respectively by configuring the scheduling resource acquisition thread to improve the resource acquisition efficiency. Specifically, in order to improve the resource acquisition efficiency, the scheduling resource acquisition thread in this embodiment may include a number of sub-resource threads, and the number of sub-resource threads is equal to the number of remaining display terminals. There is a one-to-one correspondence between each sub-resource thread and the device identifier of each remaining display terminal, so that the corresponding target sub-scheduling resources can be obtained from the remaining display terminals located in the current local area network respectively through a number of sub-resource threads, and then the remaining sub-scheduling resources can be obtained through multi-threaded concurrent acquisition, thereby improving the speed at which each display terminal obtains the remaining sub-scheduling resources.

[0064] It should be understood that, from the above analysis process, each display terminal device not only needs to obtain its own corresponding current sub-schedule resource from the server, but also needs to obtain several copies of the target sub-schedule resource from the remaining display terminals. Therefore, in order to ensure that a complete amount of data is obtained from the remaining display terminal devices, further, as an implementable method, in this embodiment, step S202 includes:

[0065] Step S202a: Send a resource acquisition request to the remaining display terminals. When the remaining display terminals receive the resource acquisition request and detect that the corresponding target sub-schedule resources have been received, they broadcast a download completion message in the current local area network.

[0066] Step S202b: when the current sub-scheduled resource is received and a download completion message broadcasted by any of the remaining display terminals is monitored, the target sub-scheduled resource is acquired from the remaining display terminals respectively through the scheduled resource acquisition thread.

[0067] It should be understood that in this embodiment, each display terminal can obtain the data volume corresponding to the current sub-schedule resource when receiving the current sub-schedule resource, so each display terminal can determine in real time whether the current sub-schedule resource has been received based on the total amount of data received. In addition, each display terminal can learn the number of remaining terminal devices in its corresponding LAN (i.e., the above-mentioned current LAN) through UDP broadcast, i.e., the remaining display terminals in the current LAN, so that the remaining number of resources to be obtained can be learned from the remaining display terminals.

[0068] It should be noted that, in this embodiment, in order to ensure the orderly acquisition of data, this embodiment can obtain the remaining sub-schedule resources from the remaining display terminals after detecting that the current sub-schedule resources corresponding to itself have been acquired. At the same time, the display terminal device can send a resource acquisition request to the remaining display terminals located in the current local area network, and the remaining display terminals can only broadcast the download completion message in the current local area network after receiving the resource acquisition request and detecting that the target sub-schedule resources corresponding to themselves have been received. Therefore, when each display terminal has completed receiving the current sub-schedule resources and has heard any download completion message in the current local area network, it can obtain the target sub-schedule resources downloaded by the display terminal from the corresponding display terminal among the remaining display terminals.

[0069] Further, as an implementable embodiment, Figure 7 As shown, Figure 7 This is a second flow chart of the third embodiment of the scheduling resource distribution method of the present invention. In this embodiment, step S201 includes:

[0070] Step S201a: Obtain the target device identifier corresponding to the monitored target download completion message;

[0071] Step S201b: determining the target sub-resource thread and the target display terminal among the remaining display terminals according to the target device identifier;

[0072] Step S201c: Acquire the target sub-scheduled resource from the target display terminal through the target sub-resource thread.

[0073] It should be understood that, from the above analysis, in the process of acquiring the remaining sub-scheduling resources through the scheduling resource acquisition thread, this embodiment can pre-assign the corresponding scheduling resource acquisition thread to each display terminal in the remaining display terminals according to the device identifier of each display terminal to obtain its corresponding target sub-scheduling resource. Therefore, in this embodiment, in the process of acquiring the remaining sub-scheduling resources by respectively acquiring the target sub-scheduling resources of each display terminal in the remaining display terminals, when the display terminal monitors the download completion message broadcast by any display terminal in the remaining display terminals through the current local area network, it can first obtain the target device identifier corresponding to the monitored target download completion message, and then determine the target sub-resource thread and the target display terminal in the remaining display terminals according to the target device identifier, and finally obtain the target sub-scheduling resource from the target display terminal through the target sub-resource thread, and repeat the above process to obtain the remaining sub-scheduling resources from the remaining display terminals in turn.

[0074] In the specific implementation, for ease of understanding, Figure 8 Take this as an example to illustrate: Figure 8 FIG. 1 is a schematic diagram showing a process of a terminal acquiring a target scheduling resource in a third embodiment of the scheduling resource distribution method of the present invention. Figure 8 As shown, it is still assumed that the terminal devices AC are located in the same local area network, and the terminal device A downloads the first sub-scheduled resource (i.e. Figure 8 The first data in the table), terminal device B downloads the second sub-scheduled resource (i.e. Figure 8 The second data in the table), terminal device C downloads the third sub-scheduled resource (i.e. Figure 8). Taking terminal device A as an example, when terminal device A receives a schedule from the server and obtains the first sub-schedule resource corresponding to itself, it can start downloading the first sub-schedule resource and, at the same time, allocate corresponding schedule resource acquisition threads according to the remaining display terminals corresponding to the device identifiers in the same local area network, namely, terminal device B and terminal device C, wherein thread 1 downloads the target sub-schedule resource of terminal B, thread 2 downloads the target sub-schedule resource of terminal C, and waits for the resource download results of terminal device B and terminal device C. When terminal device A has downloaded the first sub-scheduled resource corresponding to itself, terminal device A can send a download completion message to the router and terminal devices B and C located in the same local area network through UDP broadcast, and send a resource acquisition request to obtain the remaining sub-scheduled resources. Specifically, terminal device A can monitor whether terminal device B and terminal device C broadcast a download completion message, and when any download completion message is monitored, execute the target sub-resource thread corresponding to the download completion message to obtain the target sub-scheduled resource from the target display terminal. For example, when monitoring terminal device B broadcasting a download completion message, thread 1 can be executed to obtain the second sub-scheduled resource from terminal device B. Similarly, terminal devices B and C can also obtain the corresponding remaining sub-scheduled resources without communicating with the server again. In addition, when receiving the schedule sent by the server, terminal device A can assign a corresponding resource acquisition status to each sub-scheduled resource. When it is detected that all resource acquisition states are completed, it can be determined that data acquisition is completed. Figure 8 As shown, when the three sub-schedule resources are downloaded, terminal device A merges the bytes of each sub-schedule resource obtained into the same file, and finally displays the merged target schedule resource.

[0075] It is easy to understand that from the above analysis, when each display terminal detects that the current sub-schedule resource corresponding to itself has been received, it can send a UDP broadcast through a router to notify the remaining display terminals in the same local area network so that the remaining display terminals can download the remaining sub-schedule resources from themselves. Therefore, further, as an implementable method, in this embodiment, after step S202a, it also includes:

[0076] Step S202c: determining a preset waiting time according to the data volume of the current sub-scheduled resource and the current network speed of the local area network;

[0077] It can be understood that in this embodiment, the display terminal can determine its own data download time based on the data volume of the corresponding current sub-scheduled resources and the current local area network speed, and the above-mentioned preset waiting time can be equal to its own data download time, or slightly greater than its own data download time, because in the process of resource splitting of the target scheduling resources, there may be a situation where a slightly larger amount of data is allocated to a certain display terminal.

[0078] Step S202d: judging whether there is a faulty display terminal among the remaining display terminals by the preset waiting time, the faulty display terminal being a display terminal whose broadcast waiting time of the download completion message is greater than the preset waiting time;

[0079] Step S202e: If so, obtain the fault device identifier corresponding to the fault display terminal, and send the fault device identifier and a resource download request to the server. When receiving the resource download request, the server feeds back the fault sub-scheduled resource corresponding to the fault device identifier, and the fault sub-scheduled resource is the sub-scheduled resource corresponding to the fault display terminal.

[0080] It should be understood that after the display terminal sends a resource acquisition request to the remaining display terminals, under normal circumstances, the remaining display terminals should broadcast a download completion message within the preset waiting time. If the broadcast of the download completion message of the remaining display terminals located in the same local area network is not received within the preset waiting time, it can be determined that the display terminal whose download completion message broadcast time is greater than the preset waiting time is a faulty display terminal. Since the scheduling resources currently acquired by the display terminal are all sub-scheduling resources with incomplete data volume, it is necessary to merge the resources after acquiring all sub-scheduling resources. Therefore, at this time, the display terminal needs to promptly obtain the sub-scheduling resources corresponding to the faulty display terminal from the server, that is, the above-mentioned faulty sub-scheduling resources.

[0081] Specifically, in this embodiment, the display terminal can obtain the faulty device identifier corresponding to the faulty display terminal, and then send a resource download request and the faulty device identifier (i.e., the device identifier of the faulty display terminal) to the server, and the server can then provide feedback on the faulty sub-scheduled resource corresponding to the faulty device identifier. Therefore, based on the above steps, this embodiment can respond to network failures in a timely manner and improve the processing speed of scheduled resource downloads when a failure occurs.

[0082] This embodiment receives the current sub-scheduled resources sent by the server, and creates a scheduling resource acquisition thread according to the remaining display terminals located in the current local area network; sends a resource acquisition request to the remaining display terminals, and when the remaining display terminals receive the resource acquisition request and detect that the corresponding target sub-scheduled resources have been received, they broadcast a download completion message in the current local area network; when the current sub-scheduled resources have been received and the download completion message broadcast by any of the remaining display terminals is heard, the target sub-scheduled resources are respectively obtained from the remaining display terminals through the scheduling resource acquisition thread, and the scheduling resource acquisition thread includes several sub-resource threads, the number of sub-resource threads is equal to the number of remaining display terminals, and each sub-resource thread has a one-to-one correspondence with the device identifier of each remaining display terminal. Obtain the target device identifier corresponding to the monitored target download completion message; determine the target sub-resource thread and the target display terminal among the remaining display terminals according to the target device identifier; obtain the target sub-scheduled resource from the target display terminal through the target sub-resource thread. In addition, this embodiment can also determine the preset waiting time according to the data volume of the current sub-scheduled resource and the network speed of the current local area network; through the preset waiting time, it is judged whether there is a faulty display terminal among the remaining display terminals, and the faulty display terminal is a display terminal whose broadcast waiting time of the download completion message is greater than the preset waiting time; if so, the faulty device identifier corresponding to the faulty display terminal is obtained, and the faulty device identifier and the resource download request are sent to the server. When receiving the resource download request, the server feedbacks the faulty sub-scheduled resource corresponding to the faulty device identifier, and the faulty sub-scheduled resource is the sub-scheduled resource corresponding to the faulty display terminal. This embodiment can obtain the corresponding target sub-scheduled resources from the remaining display terminals located in the current local area network by creating sub-resource threads with the same number as the remaining display terminals, thereby obtaining the remaining sub-scheduled resources through multi-threaded concurrent acquisition, and improving the speed at which each display terminal obtains the remaining sub-scheduled resources. At the same time, this embodiment can also create a scheduling resource acquisition thread in the display terminal in advance, so that when the target sub-scheduled resource corresponding to any display terminal in the remaining display terminals can be received, the resource acquisition process is immediately executed to download the resource, so as to further improve the download speed of the remaining sub-scheduled resources. In addition, this embodiment can also respond to network failures in a timely manner and improve the processing speed of scheduled resource downloads when failures occur.

[0083] In addition, an embodiment of the present invention further proposes a storage medium, on which a scheduling resource distribution program is stored. When the scheduling resource distribution program is executed by a processor, the steps of the scheduling resource distribution method as described above are implemented.

[0084] refer to Fig. 9 , Fig. 9 It is a structural block diagram of the first embodiment of the scheduling resource distribution device of the present invention.

[0085] like Fig. 9As shown, the scheduling resource distribution device proposed in the embodiment of the present invention includes:

[0086] The information transmission module 901 is used to send the networking information to the server when receiving the information acquisition instruction sent by the server, and the server generates the corresponding current sub-schedule resource based on the networking information;

[0087] The resource download module 902 is used to receive the current sub-scheduled resources sent by the server, and obtain the remaining sub-scheduled resources from the remaining display terminals located in the current local area network. The current sub-scheduled resources and the remaining sub-scheduled resources constitute the target scheduled resources.

[0088] Further, as an implementation method, in this embodiment, the networking information includes the current device identification and the total number of display terminal devices located in the same local area network; the server splits the target scheduling resources according to the total number of devices, and generates corresponding current sub-scheduling resources according to the current device identification.

[0089] This embodiment sends networking information to the server upon receiving an information acquisition instruction sent by the server, and the server generates corresponding current sub-scheduling resources based on the networking information; receives the current sub-scheduling resources sent by the server, obtains the remaining sub-scheduling resources from the remaining display terminals located in the current local area network, and the current sub-scheduling resources and the remaining sub-scheduling resources constitute the target scheduling resources. The networking information includes the current device identifier and the total number of display terminals located in the same local area network; the server splits the target scheduling resources according to the total number of devices, and generates corresponding current sub-scheduling resources according to the current device identifier. Compared with the existing scheduling resource distribution method, in this embodiment, the resources that each display terminal needs to receive from the server are no longer the total data volume of the target scheduling resources. Instead, the server splits the resources according to the total number of display terminals located in the same local area network reported by each display terminal to generate the corresponding current sub-scheduling resources, and then feeds back the data volume corresponding to the current scheduling sub-resources according to the current device identifier. After receiving the current sub-scheduling resources corresponding to itself sent by the server, each display terminal can obtain the target scheduling resources with a complete data volume by obtaining the remaining sub-scheduling resources from the remaining display terminals located in the current local area network. Therefore, this embodiment can not only reduce the burden on the server, but also save the server traffic and cost.

[0090] Based on the first embodiment of the scheduling resource distribution device of the present invention, a second embodiment of the scheduling resource distribution device of the present invention is proposed.

[0091] In this embodiment, the remaining sub-scheduled resources include several target sub-scheduled resources corresponding to the remaining display terminals; the resource download module 902 is also used to receive the current sub-scheduled resources sent by the server, and create a scheduling resource acquisition thread according to the remaining display terminals located in the current local area network.

[0092] The resource download module 902 is further used to obtain target sub-scheduled resources from the remaining display terminals respectively through the scheduled resource acquisition thread.

[0093] Further, as an implementation mode, in this embodiment, the resource download module 902 is also used to create a scheduling resource acquisition thread according to the remaining display terminals located in the current local area network when the current sub-scheduled resource is detected;

[0094] The resource download module 902 is also used to send a resource acquisition request to the remaining display terminals. When the remaining display terminals receive the resource acquisition request and detect that the corresponding target sub-schedule resources have been received, they broadcast a download completion message in the current local area network.

[0095] The resource download module 902 is further used to obtain the target sub-scheduled resources from the remaining display terminals through the scheduled resource acquisition thread when the current sub-scheduled resources are received and the download completion message broadcasted by any of the remaining display terminals is monitored.

[0096] Further, as an implementation mode, in this embodiment, the scheduling resource acquisition thread includes several sub-resource threads, the number of sub-resource threads is equal to the number of remaining display terminals, and there is a one-to-one correspondence between each sub-resource thread and the device identification of each remaining display terminal.

[0097] Further, as an implementation mode, in this embodiment, the resource download module 902 is further used to obtain the target device identifier corresponding to the monitored target download completion message;

[0098] The resource download module 902 is further used to determine the target sub-resource thread and the target display terminal among the remaining display terminals according to the target device identifier;

[0099] The resource download module 902 is further used to obtain the target sub-scheduled resource from the target display terminal through the target sub-resource thread.

[0100] Furthermore, in this embodiment, the resource download module 902 is also used to determine the preset waiting time according to the data volume of the current sub-scheduled resource and the current network speed of the local area network;

[0101] The resource download module 902 is further used to determine whether there is a faulty display terminal among the remaining display terminals according to the preset waiting time, and the faulty display terminal is a display terminal whose broadcast waiting time of the download completion message is greater than the preset waiting time;

[0102] The resource download module 902 is also used to obtain the fault device identifier corresponding to the fault display terminal, and send the fault device identifier and the resource download request to the server. When receiving the resource download request, the server feeds back the fault sub-scheduled resource corresponding to the fault device identifier, and the fault sub-scheduled resource is the sub-scheduled resource corresponding to the fault display terminal.

[0103] This embodiment receives the current sub-scheduled resources sent by the server, and creates a scheduling resource acquisition thread according to the remaining display terminals located in the current local area network; sends a resource acquisition request to the remaining display terminals, and when the remaining display terminals receive the resource acquisition request and detect that the corresponding target sub-scheduled resources have been received, they broadcast a download completion message in the current local area network; when the current sub-scheduled resources have been received and the download completion message broadcast by any of the remaining display terminals is heard, the target sub-scheduled resources are respectively obtained from the remaining display terminals through the scheduling resource acquisition thread, and the scheduling resource acquisition thread includes several sub-resource threads, the number of sub-resource threads is equal to the number of remaining display terminals, and each sub-resource thread has a one-to-one correspondence with the device identifier of each remaining display terminal. Obtain the target device identifier corresponding to the monitored target download completion message; determine the target sub-resource thread and the target display terminal among the remaining display terminals according to the target device identifier; obtain the target sub-scheduled resource from the target display terminal through the target sub-resource thread. In addition, this embodiment can also determine the preset waiting time according to the data volume of the current sub-scheduled resource and the network speed of the current local area network; through the preset waiting time, it is judged whether there is a faulty display terminal among the remaining display terminals, and the faulty display terminal is a display terminal whose broadcast waiting time of the download completion message is greater than the preset waiting time; if so, the faulty device identifier corresponding to the faulty display terminal is obtained, and the faulty device identifier and the resource download request are sent to the server. When receiving the resource download request, the server feedbacks the faulty sub-scheduled resource corresponding to the faulty device identifier, and the faulty sub-scheduled resource is the sub-scheduled resource corresponding to the faulty display terminal. This embodiment can obtain the corresponding target sub-scheduled resources from the remaining display terminals located in the current local area network by creating sub-resource threads with the same number as the remaining display terminals, thereby obtaining the remaining sub-scheduled resources through multi-threaded concurrent acquisition, and improving the speed at which each display terminal obtains the remaining sub-scheduled resources. At the same time, this embodiment can also create a scheduling resource acquisition thread in the display terminal in advance, so that when the target sub-scheduled resource corresponding to any display terminal in the remaining display terminals can be received, the resource acquisition process is immediately executed to download the resource, so as to further improve the download speed of the remaining sub-scheduled resources. In addition, this embodiment can also respond to network failures in a timely manner and improve the processing speed of scheduled resource downloads when failures occur.

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

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

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

[0107] 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 ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of various embodiments of the present invention.

[0108] 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 scheduling resource distribution method, characterized in that: The scheduling resource distribution method comprises: Upon receiving the information acquisition instruction sent by the server, the network information is sent to the server, and the server generates the corresponding current sub-schedule resource based on the network information; the network information includes the current device identifier and the total number of display terminal devices located in the same local area network; the server splits the target schedule resource according to the total number of devices, and generates the corresponding current sub-schedule resource according to the current device identifier; receiving the current sub-schedule resource sent by the server, and acquiring the remaining sub-schedule resources from the remaining display terminals located in the current local area network, wherein the current sub-schedule resource and the remaining sub-schedule resources constitute the target schedule resource; the remaining sub-schedule resources include a plurality of target sub-schedule resources corresponding to the remaining display terminals; The step of receiving the current sub-schedule resource sent by the server and acquiring the remaining sub-schedule resources from the remaining display terminals located in the current local area network includes: Receive the current sub-schedule resource sent by the server, and create a schedule resource acquisition thread according to the remaining display terminals located in the current local area network; Sending a resource acquisition request to the remaining display terminals, when the remaining display terminals receive the resource acquisition request and detect that the corresponding target sub-schedule resources have been received, broadcasting a download completion message in the current local area network; When the current sub-scheduled resource is received completely and a download completion message broadcasted by any of the remaining display terminals is monitored, the target sub-scheduled resource is acquired from the remaining display terminals respectively through the scheduled resource acquisition thread.

2. The scheduling resource distribution method according to claim 1, characterized in that: The scheduled resource acquisition thread includes a plurality of sub-resource threads, the number of the sub-resource threads is equal to the number of the remaining display terminals, and there is a one-to-one correspondence between each of the sub-resource threads and the device identification of each of the remaining display terminals.

3. The scheduling resource distribution method according to claim 2, characterized in that: The step of acquiring the target sub-scheduling resources from the remaining display terminals located in the current local area network respectively through the scheduling resource acquisition thread includes: Get the target device ID corresponding to the monitored target download completion message; Determine a target sub-resource thread and a target display terminal among the remaining display terminals according to the target device identifier; The target sub-scheduled resource is acquired from the target display terminal through the target sub-resource thread.

4. The scheduling resource distribution method according to claim 3, characterized in that: After sending the resource acquisition request to the remaining display terminals, the method further includes: Determine a preset waiting time according to the data volume of the current sub-scheduled resource and the network speed of the current local area network; Determining whether there is a faulty display terminal among the remaining display terminals by using the preset waiting time, the faulty display terminal being a display terminal whose broadcast waiting time for a download completion message is greater than the preset waiting time; If so, obtain the fault device identifier corresponding to the fault display terminal, and send the fault device identifier and a resource download request to the server. When receiving the resource download request, the server feedbacks the fault sub-scheduled resource corresponding to the fault device identifier, and the fault sub-scheduled resource is the sub-scheduled resource corresponding to the fault display terminal.

5. A scheduling resource distribution device, characterized in that: The scheduling resource distribution device comprises: An information transmission module, configured to send networking information to the server upon receiving an information acquisition instruction sent by the server, wherein the server generates corresponding current sub-scheduling resources based on the networking information; the networking information includes a current device identifier and the total number of display terminal devices located in the same local area network; the server performs resource splitting on the target scheduling resources according to the total number of devices, and generates corresponding current sub-scheduling resources according to the current device identifier; A resource download module, configured to receive the current sub-schedule resource sent by the server, and obtain the remaining sub-schedule resources from the remaining display terminals located in the current local area network, wherein the current sub-schedule resource and the remaining sub-schedule resources constitute the target schedule resource; the remaining sub-schedule resources include a plurality of target sub-schedule resources corresponding to the remaining display terminals; The resource download module is also used to receive the current sub-scheduled resource sent by the server, and create a scheduling resource acquisition thread according to the remaining display terminals located in the current local area network; send a resource acquisition request to the remaining display terminals, and when the remaining display terminals receive the resource acquisition request and detect that the corresponding target sub-scheduled resource has been received, the remaining display terminals broadcast a download completion message in the current local area network; when the current sub-scheduled resource is received and the download completion message broadcast by any of the remaining display terminals is monitored, the target sub-scheduled resources are respectively obtained from the remaining display terminals through the scheduling resource acquisition thread.

6. A scheduling resource distribution device, characterized in that: The device comprises: a memory, a processor, and a scheduling resource distribution program stored in the memory and executable on the processor, wherein the scheduling resource distribution program is configured to implement the steps of the scheduling resource distribution method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a scheduling resource distribution program, and when the scheduling resource distribution program is executed by the processor, the steps of the scheduling resource distribution method according to any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Point-to-point communication method used for digital media distribution

    CN103024082A

  • Data processing method and device and readable storage medium

    CN110798501A

  • File downloading method, device, system and equipment and storage medium

    CN113382065A

  • Resource acquisition method and device, terminal and storage medium

    CN115002095A