Master-slave device pushing method and device, arbitration device, signal sending device and medium

By automatically configuring and selecting master and slave devices in the LAN, the problem of users needing to manually specify master and slave devices to increase operational complexity is solved, and higher configuration automation and accuracy are achieved.

CN119420622APending Publication Date: 2025-02-11BOE TECHNOLOGY GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411690988.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

In a LAN, the collaboration mode of multiple identical devices requires the user to manually specify the master and slave devices, which increases operational complexity and subjectivity.

Method used

Provide a master-slave device recommendation method, which automatically configures and selects the master and slave device group to reduce user participation by responding to the equipment's online recommendation message and election result message.

Benefits of technology

The master-slave equipment and arbitration equipment are independently elected within the equipment group to select the master-slave equipment group, thereby reducing user participation and subjectivity and improving the objectivity and accuracy of the configuration plan.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119420622A_ABST
    Figure CN119420622A_ABST
Patent Text Reader

Abstract

The invention relates to a master-slave device pushing method and device, an arbitration device, a message sending device and a medium. The method comprises the following steps: in response to an obtained online pushing message of each device, configuring a specified master device and a specified slave device of each device group; and in response to the obtained election result message fed back by the master device in each group, selecting one device group as a master device group and other device groups as slave device groups. In the scheme of the embodiment, the intra-group master device and the intra-group slave device are autonomously elected from the device group, and the master device group and the slave device group are selected by the arbitration device, so that the participation degree and subjectivity of the user are reduced, and the objectivity and accuracy of the configuration scheme are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of control technology, and in particular to a method, device, arbitration device, signaling device and medium for selecting a master-slave device. Background Art

[0002] There are usually multiple identical devices in a local area network, and these multiple identical devices sometimes need to work together to complete a certain task. In this scenario, the collaboration mode of multiple devices can include a master-slave mode, that is, one of the multiple devices is used as the master device (master), and the other devices are used as slave devices (slave). The above collaboration mode usually requires the user to manually specify the master device in the user interface, which increases the complexity and subjectivity of the operation. Summary of the invention

[0003] The present disclosure provides a master-slave device election method, device, arbitration device, signal sending device and medium to solve the deficiencies of related technologies.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for selecting a master-slave device is provided, which is applicable to an arbitration device of a signal transmission system, and the method includes:

[0005] In response to obtaining the online recommendation message of each device, configuring the designated master device and the designated slave device of each device group;

[0006] In response to obtaining the election result message fed back by the master device in each group, one device group is selected as the master device group and the other device groups are selected as slave device groups.

[0007] Optionally, configure the designated master device and designated slave device of each device group, including:

[0008] Obtain the reception time of the online recommendation message sent by each device in each device group, and obtain the first online recommendation message in each device group;

[0009] Determine that the device corresponding to the first online recommendation message in each device group is the designated master device, and the other devices other than the designated master device in the same device group are designated slave devices;

[0010] A designated master device message is sent to the designated master device and a slave device message is sent to the designated slave device.

[0011] Optionally, in response to obtaining the election result message fed back by the master device in each group, selecting a device group as the master device group and the other device groups as slave device groups includes:

[0012] In response to obtaining the election result message fed back by the master device in each group, updating the synchronization role information of each device;

[0013] In response to the synchronization role information being updated, obtaining service information of each device group;

[0014] The priority of each device group is determined according to the business information of each device group, and the device group with the highest priority is determined as the master device group and the other device groups are determined as slave device groups.

[0015] Optionally, determining the priority of each device group according to the service information of each device group includes:

[0016] When it is detected that the service information of each device group includes a video, an image or a document, the device group corresponding to the service information of the video is determined to be the primary device group, and the other device groups are the secondary device groups;

[0017] or,

[0018] When it is detected that the service information of each device group includes video, the device group corresponding to the service information with the longest video duration is determined to be the master device group, and the other device groups are slave device groups;

[0019] or,

[0020] When it is detected that the business information of each device group includes an image or a document, the device group corresponding to the business information where the document is located is determined to be the primary device group, and the other device groups are secondary device groups;

[0021] or,

[0022] When it is detected that the business information of each device group includes a document, the device group corresponding to the business information where the largest document is located is determined to be the primary device group, and the other device groups are secondary device groups;

[0023] or,

[0024] When it is detected that the business information of each device group includes images, it is determined that the device group with more carousel images is the master device group, and the other device groups are slave device groups.

[0025] Optionally, the method further comprises:

[0026] In response to receiving a re-online message sent by a slave device of a certain device group, reconfiguring a designated master device and a designated slave device in the device group;

[0027] In response to receiving an election result message fed back by a master device in the device group, the synchronization role information of each device in the device group is updated.

[0028] Optionally, the method further comprises:

[0029] In response to obtaining an online recommendation message of a newly added device, the newly added device is configured as a slave device in the device group where it is located.

[0030] According to a second aspect of an embodiment of the present disclosure, a method for selecting a master-slave device is provided, which is applicable to a master device of a signal transmission system, and the method includes:

[0031] In response to detecting joining the local area network, sending an online recommendation message to the arbitration device;

[0032] In response to receiving a designated master device message sent by the arbitration device, a broadcast message is sent in the local area network; the broadcast message is used to instruct the designated slave devices in the same device group to feedback the performance score;

[0033] In response to receiving a broadcast response message fed back by a designated slave device in the same device group, a master device in the device group is determined according to a performance score in the broadcast response message.

[0034] Optionally, determining a master device in a device group according to a performance score in the broadcast response message includes:

[0035] Obtain the performance scores in each broadcast response message and the performance scores in the broadcast message, and obtain the highest performance score;

[0036] The device with the highest performance score is selected as the master device in the group and broadcast to the LAN.

[0037] Optionally, the method further comprises:

[0038] The election result message is fed back to the arbitration device, so that the arbitration device updates the synchronization role information of each device according to the election result message.

[0039] Optionally, the performance score is a weighted cumulative value of the processor usage, memory load and network parameters of the device.

[0040] Optionally, the method further comprises:

[0041] When receiving a broadcast message sent by the designated master device, the device switches from the designated master device to the elected slave device.

[0042] Optionally, the method further comprises:

[0043] When the device is the master device in a slave device group, it broadcasts heartbeat messages periodically.

[0044] Optionally, the method further comprises:

[0045] When the device is the master device in the master device group, it broadcasts heartbeat messages regularly and sends inter-group synchronization broadcast messages regularly;

[0046] The inter-group synchronous broadcast message includes group synchronization information, program switching information and program list information; the group synchronization information is used to indicate that the inter-group synchronous broadcast message is a message synchronized between device groups, the program switching information is used to indicate the program information before and after the switching, and the program list information is used to indicate the overall program plan of the inter-group master device.

[0047] According to a third aspect of an embodiment of the present disclosure, a method for selecting a master-slave device is provided, which is applicable to slave devices of each device group in a local area network, and the method includes:

[0048] In response to detecting joining the local area network, sending an online recommendation message to the arbitration device;

[0049] In response to receiving a designated slave device message sent by an arbitration device, receiving a broadcast message sent by a designated master device in the same device group;

[0050] Get performance scores;

[0051] A broadcast response message is generated according to the performance score and the broadcast response message is broadcasted in the local area network.

[0052] Optionally, obtain performance scores, including:

[0053] Get processor usage, memory load, and network parameters and their respective weights;

[0054] A weighted cumulative value of the processor usage, memory load, and network parameters is obtained as the performance score.

[0055] Optionally, the method further comprises:

[0056] In response to not receiving a heartbeat message from a master device in the group within a preset time, sending a re-online message to the arbitration device; the re-online message is used to request the arbitration device to reallocate a designated master device and a designated slave device in the device group;

[0057] Receive the designated master device message or designated slave device message returned by the arbitration device.

[0058] Optionally, the method further comprises:

[0059] When receiving a broadcast message sent by a designated master device, it switches from the designated slave device to the master device in the group;

[0060] Send an election result message to the arbitration device.

[0061] According to a fourth aspect of an embodiment of the present disclosure, a master-slave device recommendation device is provided, which is applicable to an arbitration device of a message transmission system, and the device includes:

[0062] A master-slave device configuration module, configured to configure a designated master device and a designated slave device of each device group in response to obtaining an online recommendation message of each device;

[0063] The master device group selection module is used to select a device group as the master device group and other device groups as slave device groups in response to obtaining the election result message fed back by the master devices in each group.

[0064] Optionally, the master-slave device configuration module includes:

[0065] The receiving time acquisition submodule is used to acquire the receiving time of the online recommendation message sent by each device in each device group, and obtain the first online recommendation message in each device group;

[0066] The master-slave device determination submodule is used to determine that the device corresponding to the first online recommendation message in each device group is the designated master device, and the other devices other than the designated master device in the same device group are designated slave devices;

[0067] The device message sending submodule is used to send a designated master device message to the designated master device and send a slave device message to the designated slave device.

[0068] Optionally, the master device group selection module includes:

[0069] The role information updating submodule is used to update the synchronization role information of each device in response to the election result message fed back by the master device in each group;

[0070] A business information acquisition submodule, for acquiring business information of each device group in response to completion of updating of the synchronization role information;

[0071] The master device determination submodule is used to determine the priority of each device group according to the service information of each device group, and determine the device level with the highest priority as the master device group and the other device groups as slave device groups.

[0072] Optionally, the master device determination submodule includes:

[0073] A first determining unit, configured to determine, when detecting that the service information of each device group includes a video, an image, or a document, that the device group corresponding to the service information of the video is a primary device group, and that the other device groups are secondary device groups;

[0074] or,

[0075] A second determining unit is used to determine, when it is detected that the service information of each device group includes video, that the device group corresponding to the service information of the longest video duration is the master device group, and the other device groups are slave device groups;

[0076] or,

[0077] A third determining unit, configured to, when detecting that the business information of each device group includes an image or a document, determine that the device group corresponding to the business information where the document is located is the primary device group, and the other device groups are secondary device groups;

[0078] or,

[0079] A fourth determining unit, configured to determine, when it is detected that the business information of each device group includes a document, that the device group corresponding to the business information where the largest document is located is the primary device group, and the other device groups are secondary device groups;

[0080] or,

[0081] The fifth determining unit is configured to determine, when it is detected that the service information of each device group includes images, that the device group with more carousel images is the master device group, and the other device groups are slave device groups.

[0082] Optionally, the device further comprises:

[0083] A master-slave device reconfiguration module, configured to reconfigure a designated master device and a designated slave device in a device group in response to receiving a re-online message sent by a slave device in the device group;

[0084] The role information updating module is used to update the synchronization role information of each device in the device group in response to receiving the election result message fed back by the master device in the device group.

[0085] Optionally, the device further comprises:

[0086] The in-group slave device configuration module is used to configure the newly added device as a slave device in the device group in response to obtaining an online recommendation message of the newly added device.

[0087] According to a fifth aspect of an embodiment of the present disclosure, a master-slave device recommendation device is provided, which is applicable to a master device of a signal transmission system, and the device includes:

[0088] A recommendation message sending module, used for sending an online recommendation message to the arbitration device in response to detecting joining the local area network;

[0089] A broadcast message sending module is used to send a broadcast message in the local area network in response to receiving a designated master device message sent by the arbitration device; the broadcast message is used to instruct the designated slave device in the same device group to feedback the performance score;

[0090] The intra-group master device determination module is used to determine the intra-group master device of the device group according to the performance score in the broadcast response message in response to receiving a broadcast response message fed back by a designated slave device in the same device group.

[0091] Optionally, the in-group master device determination module includes:

[0092] The performance score acquisition submodule is used to obtain the performance score in each broadcast response message and the performance score in the broadcast message to obtain the highest performance score;

[0093] The master device submodule in the group is used to set the device with the highest performance score as the master device in the group and broadcast it to the local area network.

[0094] Optionally, the device further comprises:

[0095] The election result feedback module is used to feed back the election result message to the arbitration device, so that the arbitration device updates the synchronization role information of each device according to the election result message.

[0096] Optionally, the performance score is a weighted cumulative value of the processor usage, memory load and network parameters of the device.

[0097] Optionally, the device further comprises:

[0098] The master-slave switching module is used to switch from the designated master device to the elected slave device when receiving a broadcast message sent by the designated master device.

[0099] Optionally, the device further comprises:

[0100] The heartbeat message broadcast module is used to broadcast heartbeat messages periodically when the device is a master device in a slave device group.

[0101] Optionally, the device further comprises:

[0102] A heartbeat message broadcast module is used to broadcast heartbeat messages regularly when the device is the master device in the master device group;

[0103] A synchronization message broadcast module, used for periodically sending synchronization broadcast messages between groups when the device is a master device in a master device group;

[0104] The inter-group synchronous broadcast message includes group synchronization information, program switching information and program list information; the group synchronization information is used to indicate that the inter-group synchronous broadcast message is a message synchronized between device groups, the program switching information is used to indicate the program information before and after the switching, and the program list information is used to indicate the overall program plan of the inter-group master device.

[0105] According to a sixth aspect of an embodiment of the present disclosure, a master-slave device recommendation device is provided, which is applicable to slave devices of each device group in a local area network, and the device includes:

[0106] A recommendation message sending module, used for sending an online recommendation message to the arbitration device in response to detecting joining the local area network;

[0107] A broadcast message receiving module, configured to receive a broadcast message sent by a designated master device in the same device group in response to receiving a designated slave device message sent by the arbitration device;

[0108] A performance score acquisition module, used to acquire performance scores;

[0109] A response message broadcast module is used to generate a broadcast response message according to the performance score and broadcast the broadcast response message in a local area network.

[0110] Optionally, the performance score acquisition module includes:

[0111] The weight acquisition submodule is used to obtain processor usage, memory load, and network parameters and their respective weights;

[0112] The performance score acquisition submodule is used to obtain the weighted cumulative value of the processor usage, memory load and network parameters as the performance score.

[0113] Optionally, the device further comprises:

[0114] A re-online message sending module, used to send a re-online message to the arbitration device in response to not receiving a heartbeat message from the master device in the group within a preset time; the re-online message is used to request the arbitration device to reallocate a designated master device and a designated slave device in the device group;

[0115] The device message receiving module is used to receive the designated master device message or the designated slave device message returned by the arbitration device.

[0116] Optionally, the device further comprises:

[0117] A master device switching module, used to switch from a designated slave device to a master device in the group when receiving a broadcast message sent by a designated master device;

[0118] The election result sending module is used to send the election result message to the arbitration device.

[0119] According to a seventh aspect of an embodiment of the present disclosure, an arbitration device is provided, including:

[0120] processor;

[0121] a memory for storing a computer program executable by the processor;

[0122] The processor is configured to execute the computer program in the memory to implement the method as described in any one of the first aspects.

[0123] According to an eighth aspect of an embodiment of the present disclosure, a signaling device is provided, including:

[0124] processor;

[0125] a memory for storing a computer program executable by the processor;

[0126] The processor is configured to execute the computer program in the memory to implement the method as described in any one of the second aspect or the third aspect.

[0127] According to a ninth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When an executable computer program in the storage medium is executed by a processor, the method described in any one of the first aspect, the second aspect or the third aspect can be implemented.

[0128] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0129] In the solution provided by the embodiment of the present disclosure, in response to obtaining the online recommendation message of each device, the designated master device and designated slave device of each device group can be configured; then, in response to obtaining the election result message fed back by the master device in each group, one device group is selected as the master device group and the other device groups are selected as slave device groups. In this way, in the solution of this embodiment, the master device and the slave device in the group are autonomously elected by the device group, and the master device group and the slave device group are selected by the arbitration device, which reduces the user's participation and subjectivity, and is conducive to improving the objectivity and accuracy of the configuration solution.

[0130] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0131] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0132] Figure 1 The invention is a block diagram of a messaging system according to an exemplary embodiment.

[0133] Figure 2 It is a block diagram of another information sending system according to an exemplary embodiment.

[0134] Figure 3 The figure is an interaction diagram of a messaging system according to an exemplary embodiment.

[0135] Figure 4 It is a block diagram of a state machine of a signaling system according to an exemplary embodiment.

[0136] Figure 5 The figure is a flow chart of a method for electing a master-slave device according to an exemplary embodiment.

[0137] Figure 6 The figure is a flow chart of another method for electing a master and a slave device according to an exemplary embodiment.

[0138] Figure 7 The figure is a flow chart of another method for electing a master-slave device according to an exemplary embodiment. DETAILED DESCRIPTION

[0139] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described exemplarily below do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the attached claims. It should be noted that the features in the following embodiments and implementations may be combined with each other without conflict.

[0140] To solve the above technical problems, the embodiments of the present disclosure provide a master-slave device election method, apparatus, arbitration device, signal transmission device and medium, which can be applied to a signal transmission system.

[0141] See also Figure 1 The information transmission system includes an arbitration device and multiple device groups. The arbitration device can be implemented by an Internet of Things device and can be connected to each device group through a router or a switch.

[0142] Each device group includes two or more signaling devices. Figure 2 The information transmission system includes three device groups, wherein the first device group includes devices Device1, Device2, Device3 and Device4; the second device group includes devices Device5, Device6, Device7 and Device8; and the third device group includes devices Device9, Device10, Device11 and Device12.

[0143] The present disclosure provides a method for recommending master-slave devices, the concept of which is that each device group recommends the master and slave devices within the device group, and the master devices within the group synchronize information; then, the arbitration device determines the master device group according to the business data, and the master devices within the master device group realize the information synchronization of multiple device groups, which can reduce the user's participation and subjectivity, and is conducive to improving the objectivity and accuracy of the configuration plan.

[0144] In this embodiment, a working process of a message sending system is shown in FIG. Figure 3 ,include:

[0145] When the first device group, the second device group and the third device group go online, each device in each device group will send an online recommendation message to the arbitration device. The protocol format of the online recommendation message is shown in Table 1.

[0146] Table 1 Protocol format of online recommendation message

[0147] Header online length Device ID Check code

[0148] As shown in Table 1, the message header indicates the necessary information for processing and transmitting the data packet; online indicates the online status and is the message type; the length indicates the length of the device id and the check code; the device id indicates the identification code of the device; the check code is used to verify whether the received online recommendation message is correct.

[0149] See also Figure 4 , the state machine of the arbitration device may enter the selecting state electing from the initialization state init. At this time, the arbitration device may determine the receiving time of the online recommendation message of each device, and the receiving time may indicate the online time of the device.

[0150] It should be noted that, considering that the online recommendation message includes the device ID, it is impossible to determine the device group to which the sending device belongs. In this embodiment, the arbitration device can establish a physical model of the sending device, and two fields are set in the physical model: (1) LanGroupID: indicates which device group the device belongs to; (2) SyncRole: indicates whether the device is a master device or a slave device in the group.

[0151] The arbitration device can determine all devices in the same device group according to the LanGroupID field in the physical model of each device; and according to the device ID of the same device group, it can obtain all the reception times of the online recommendation messages sent by the same device group. Then, the arbitration device can sort the reception times in the same device group and obtain the first received online recommendation message or the first online recommendation message in each device group.

[0152] The arbitration device can use the device that sends the first online election message in each device group as the designated master device pre-master, and the remaining devices in the same device group as designated slave devices slave.

[0153] The arbitration device may send a designated master device message to the designated master device pre-master. The protocol format of the designated master device message is shown in Table 2.

[0154] Table 2 specifies the protocol format of the master device message

[0155] Header pre-master length Group No. Number of devices in the group Check code

[0156] Refer to Table 2, pre-master indicates that the device into which the device id is written is the designated master device, length indicates the length of the designated master device message, group number indicates the device group to which the designated master device belongs, number of devices in the group refers to the number of all devices in the device group to which the designated master device belongs, and check code is used to verify whether the received designated master device message is correct.

[0157] Similarly, the arbitration device can send a designated slave device message to the designated slave device slave. The protocol format of the designated slave device message is shown in Table 3.

[0158] Table 3 specifies the protocol format of the slave device message

[0159] Header slave length Group No. Number of devices in the group Check code

[0160] Refer to Table 3, slave indicates that the device written with device id is a designated slave device, length indicates the length of the designated slave device message, group number indicates the device group to which the designated slave device belongs, number of devices in the group refers to the number of all devices in the device group to which the designated slave device belongs, and check code is used to verify whether the received designated slave device message is correct.

[0161] The designated master device in the signaling system can receive the above-mentioned designated master device message, and after the designated master device pre-master receives the above-mentioned designated master device message, the arbitration device can send a confirmation response message, and the protocol format of the confirmation response message is shown in Table 4.

[0162] Table 4 Protocol format of confirmation response message

[0163] Header premaster-iot length Device ID Check code

[0164] Referring to Table 4, pre-master-iot indicates that the message is a confirmation response message sent by the designated master device to the arbitration device, length indicates the length of the confirmation response message, device id indicates which designated master device sends the confirmation response message to the arbitration device, and the check code is used to check whether the received confirmation response message is correct.

[0165] Similarly, the designated slave device in the same system can receive the designated slave device message. It is understandable that the designated slave device can also send a confirmation response message to the arbitration device, or may not send a confirmation response message, which can be set according to the specific scenario.

[0166] Each device group can autonomously elect a master device within the group. The process includes: the designated master device pre-master can send a broadcast message in the local area network. The protocol format of the broadcast message is shown in Table 5.

[0167] Table 5 Protocol format of broadcast message

[0168] Header brocast length Group No. Performance score Check code

[0169] As shown in Table 5, brocast indicates that the message is a broadcast message, length indicates the length of the broadcast message, group number indicates which device group the designated master device sending the broadcast message belongs to, performance score indicates the score calculated by the designated master device for its own performance, and check code is used to verify whether the received broadcast message is correct.

[0170] In one example, after receiving the above broadcast message, the designated slave device can calculate its own performance score. The performance score calculation process includes: each device obtains its own processor usage, memory load and network parameters (such as network speed or throughput), as well as the weight of each parameter; then calculates the weighted cumulative value of the above parameters as the performance score.

[0171] In one example, the performance score may be as shown in formula (1).

[0172] Score=a*cpu+b*mem+c*net; (1)

[0173] In formula (1), score represents the performance score, cpu represents the processor usage, mem represents the memory load, net represents the network parameters, and a, b, and c represent the weights of the processor usage, memory load, and network parameters, respectively.

[0174] It should be noted that the performance score illustrated in formula (1) uses three parameters. In some possible scenarios, one or two of the three parameters can be selected to calculate the performance score. In some possible scenarios, parameters such as the graphics card memory and display screen size of the device can be added to calculate the performance score, and the corresponding solutions fall within the protection scope of this disclosure.

[0175] It should be noted that the method of specifying a master device to obtain a performance score is the same as the method of specifying a slave device to obtain a performance score, which will not be repeated here.

[0176] The designated slave device may generate a broadcast response message according to the above performance score and feed it back to the designated master device pre-master.

[0177] The designated master device pre-master obtains all performance scores in the same device group for comparison, obtains the highest performance score, and broadcasts the device with the highest performance score as the master device in the group to the LAN.

[0178] It should be noted that when the highest performance score is the designated master device pre-master, the designated master device pre-master switches itself to the master device in the group; when the highest performance score is a designated slave device slave, the designated master device pre-master and the above-mentioned designated slave device slave exchange roles. At this time, the designated master device pre-master will send a broadcast message to inform each device in the same device group of the newly elected master device in the group. The broadcast message is shown in Table 6.

[0179] Table 6 Protocol format of broadcast message

[0180] Header brocast length Group No. Device ID Performance score Check code

[0181] Considering that the broadcast message sent by the designated master device pre-master contains the performance score, each designated slave device can compare its own performance score with the performance score of the designated master device pre-master after obtaining its own performance score; only when its own performance score is greater than the performance score of the designated master device pre-master, it generates a broadcast response message and feeds it back to the designated master device pre-master. When the designated master device pre-master does not receive a broadcast response message within a preset time (such as 0.5 to 2 seconds), it switches to the master device in the group; when a broadcast response message is received, the designated master device pre-master switches roles with the designated slave device slave; when two or more broadcast response messages are received, the designated master device pre-master selects the highest performance score and switches roles with the designated slave device slave with the highest performance score. In this way, when there are many devices in the device group, each device can compare the performance scores in advance and then the designated master device can compare the performance scores, which can reduce the number of comparisons of the designated master device and help shorten the election time.

[0182] During the election process, each device group elects the master device master-ok in the group and the other devices in the same device group are slave devices in the group. At this time, the master device master-ok in the group can feedback the election result message to the arbitration device. The protocol format of the election result message is shown in Table 7.

[0183] Table 7 Protocol format of the election result message

[0184] Header master-ok length Device ID Check code

[0185] Referring to Table 7, master-ok indicates that the message is a recommendation result message, length indicates the length of the recommendation result message, device id indicates which device is the master device in the group, and the check code is used to check whether the received recommendation result message is correct.

[0186] It should be noted that the slave device in the group can also feed back a recommendation result message to the arbitration device, which can be set according to the specific scenario, and the corresponding solution falls within the protection scope of the present disclosure.

[0187] After each device group determines that the master device in the group is master-ok, the master device in the group can execute corresponding business logic, including but not limited to: regularly broadcasting heartbeat messages to synchronize the slave devices in each group. The protocol format of the heartbeat message is shown in Table 8.

[0188] Table 8 Protocol format of heartbeat message

[0189] Header heart-beat length Group No. Device ID Check code

[0190] Referring to Table 8, master-ok indicates that the message is a recommendation result message, length indicates the length of the recommendation result message, device id indicates which device is the master device in the group, and the check code is used to check whether the received recommendation result message is correct.

[0191] The arbitration device can receive the master-ok message from the master device in each device group. The SyncRole of the physical model of each device is configured as master or slave. Then, the arbitration device can request the business information of each device group from the business system, and then select one device group from multiple device groups as the grand master, and the other device groups as slaves. In an example, the arbitration device determines the master device group according to the priority of the business information of each device group, including:

[0192] When it is detected that the business information of each device group includes video, image or document, that is, the business information of one device group includes video, the business information of some devices includes image, and the business information of another device includes document, the arbitration device may determine that the device group corresponding to the business information of the video is the master device group, and the other device groups are slave device groups;

[0193] Alternatively, when it is detected that the service information of each device group includes video, the arbitration device may determine that the device group corresponding to the service information of the longest video duration is the master device group, and the other device groups are slave device groups;

[0194] Alternatively, when it is detected that the business information of each device group includes an image or a document, the arbitration device may determine that the device group corresponding to the business information where the document is located is the primary device group, and the other device groups are secondary device groups;

[0195] or,

[0196] When it is detected that the business information of each device group includes a document, the arbitration device may determine that the device group corresponding to the business information where the largest document is located is the primary device group, and the other device groups are secondary device groups;

[0197] or,

[0198] When it is detected that the service information of each device group includes images, the arbitration device may determine that the device group with more carousel images is the master device group, and the other device groups are slave device groups.

[0199] After the arbitration device determines the grand master of the master device group, the grand master of the master device group starts to send inter-group synchronous broadcast messages, which include the following contents: group synchronization information, program switching information and program list information. Among them, the group synchronization information is used to indicate that the inter-group synchronous broadcast message is a message synchronized between device groups, the program switching information is used to indicate the program information before and after the switching, and the program list information is used to indicate the overall program plan of the inter-group master device.

[0200] The above process describes the scheme of electing the master device within a device group and selecting the master device group between groups. In some scenarios, a device group may add a new device. After the new device is online, an online recommendation message can be sent. After receiving the online recommendation message, the arbitration device can configure the new device as a slave device in the device group. Accordingly, the arbitration device can synchronously update the number of devices in the device group and establish a physical model for the new device. By directly configuring the new device as a slave device in the group, the business logic being executed by the device group can be guaranteed and the impact on the device group can be reduced.

[0201] In some scenarios, the master device in a device group may fail, such as a device crash or application not responding (ANR), and the slave devices in the same device group will not receive the heartbeat message sent by the master device in the group within the preset time. When the heartbeat message of the master device in the group is not received within the preset time, the slave devices in the device group can send a re-online message to the arbitration device, and the re-online message is used to request the arbitration device to reallocate the designated master device and designated slave device in the device group. The protocol format of the re-online message is shown in Table 9.

[0202] Table 9 Protocol format of re-online message

[0203] Header re-online length Device ID Check code

[0204] Referring to Table 9, reonline indicates that the message is a reonline message, length indicates the length of the device id and the check code, the device id indicates the device sending the reonline message, and the check code is used to verify whether the received reonline message is correct.

[0205] After receiving the re-online message of the device group, the state machine of the arbitration device can jump from the completion state elected to the initial state init, and the device that receives the first re-online message can be configured as the designated master device of the device group and the other devices can be configured as designated slave devices. The device group re-elects the master device and the slave devices in the group according to the above election process.

[0206] Based on a signal transmission system provided in an embodiment of the present disclosure, an embodiment of the present disclosure further provides a master-slave device selection method, which is applicable to an arbitration device of the signal transmission system, see Figure 5 , including step 51 and step 52.

[0207] In step 51, in response to obtaining the online recommendation message of each device, the designated master device and the designated slave device of each device group are configured.

[0208] In this step, the arbitration device may receive online recommendation information sent by each device, and the online recommendation information is generated and sent by the devices in each device group.

[0209] In this step, the state machine of the arbitration device may enter the electing state from the initialization state init. At this time, the arbitration device may determine the receiving time of the online recommendation message of each device, and the receiving time may represent the online time of the device.

[0210] Then, the arbitration device can determine all devices in the same device group according to the LanGroupID field in the physical model of each device; and, according to the device ID of the same device group, can obtain all reception times of online recommendation messages sent by the same device group.

[0211] Afterwards, the arbitration device may sort the receiving times within the same device group to obtain the first received online recommendation message or the first online recommendation message in each device group.

[0212] The arbitration device can use the device that sends the first online election message in each device group as the designated master device pre-master, and the remaining devices in the same device group as designated slave devices slave.

[0213] Finally, the arbitration device can send a designated master device message to the designated master device pre-master. Also, the arbitration device can send a designated slave device message to the designated slave device slave.

[0214] It is understandable that the designated master device and designated slave device of each device group will elect a device with the highest performance score as the master device in the group, and the other devices as slave devices in the group. In addition, the master device in the group feeds back the election result message to the arbitration device.

[0215] In step 52, in response to obtaining the election result message fed back by the master device in each group, one device group is selected as the master device group and the other device groups are selected as slave device groups.

[0216] In this step, the arbitration device can obtain the election result message fed back by the master device in each group, and update the information of the physical model of each device according to the election result message, such as the device group to which the device belongs, the synchronization role information of the device, etc. When the synchronization role information is updated, the arbitration device can obtain the service information of each device group. Then, the arbitration device can obtain the priority of the service information of each device group. Among them, the scheme for determining the priority of the service information can refer to the content of the above embodiment, which will not be repeated here. Afterwards, the arbitration device can select the master device group and the slave device group according to the priority of the service information of each device group, which can refer to the scheme of the above embodiment, which will not be repeated here.

[0217] It should be noted that the master device group may also be pre-configured by the user, and in this case the arbitration device reads the configuration information to directly configure the device group.

[0218] After the signal transmission is working normally, when receiving the re-online message sent by the slave device of a device group, the arbitration device can reconfigure the designated master device (pre-master) and designated slave device (slave) in the device group, and the device group re-elects the master device and slave device in the group. Then, after receiving the election result message fed back by the master device in the device group, the synchronization role information of each device in the device group is updated to achieve the effect of restoring the normal operation of the device group.

[0219] After the signal transmission is working normally, when the online recommendation message of the newly added device is obtained, the arbitration device can configure the newly added device as a slave device in the device group where it is located, so as to add the new device without affecting the normal operation of the device group.

[0220] Thus, in this embodiment, the master device and the slave device in the group are autonomously elected by the device group, and the master device group and the slave device group are selected by the arbitration device, which reduces the user's participation and subjectivity and is conducive to improving the objectivity and accuracy of the configuration plan.

[0221] Based on a message sending system provided in an embodiment of the present disclosure, an embodiment of the present disclosure further provides a master-slave device recommendation method, which is applicable to a master device of the message sending system, see Figure 6 , including steps 61 to 63.

[0222] In step 61, in response to detecting joining the local area network, an online recommendation message is sent to the arbitration device.

[0223] In this step, when the devices of each device group join the local area network, they can send an online recommendation message to the arbitration device. After receiving the online recommendation message of each device group, the arbitration device will configure a designated master device and a designated slave device for each device group, and send a designated master device message to the designated master device and a designated slave device message to the designated slave device.

[0224] In step 62, in response to receiving a designated master device message sent by the arbitration device, a broadcast message is sent in the local area network; the broadcast message is used to instruct the designated slave devices in the same device group to feedback the performance score.

[0225] In this step, the device becomes the designated master device after receiving the designated master device message. The designated master device can send a broadcast message in the local area network. The broadcast message is used to instruct the designated slave devices in the same device group to feedback the performance score. The scheme for obtaining the performance score is referred to the content of the above embodiment, which will not be repeated here.

[0226] In step 63, in response to receiving a broadcast response message fed back by a designated slave device in the same device group, a master device in the device group is determined according to a performance score in the broadcast response message.

[0227] In this step, the designated master device receives the broadcast response message fed back by the designated slave device in the same device group, and parses the performance score of each designated slave device from the broadcast response message. Then, the designated master device can determine the master device in the device group according to the performance score in the broadcast response message, and broadcast it to the local area network. At the same time, the master device in the group can send an election result message to the arbitration device.

[0228] In this step, the master device in the slave device group can execute the corresponding business logic. For example, broadcast heartbeat messages regularly. The master device in the master device group can execute the corresponding business logic. For example, broadcast heartbeat messages regularly, and send inter-group synchronous broadcast messages regularly. The inter-group synchronous broadcast message includes group synchronization information, program switching information and program list information; the group synchronization information is used to indicate that the inter-group synchronous broadcast message is a message synchronized between device groups, the program switching information is used to indicate the program information before and after the switch, and the program list information is used to indicate the overall program plan of the inter-group master device.

[0229] In this way, in this embodiment, the device group autonomously elects the master device and the slave device in the group without user participation, which can reduce user participation and subjectivity and is conducive to improving the objectivity and accuracy of the configuration solution.

[0230] Based on a message sending system provided in an embodiment of the present disclosure, an embodiment of the present disclosure further provides a master-slave device recommendation method, which is applicable to a slave device of the message sending system, see Figure 7 , including steps 71 to 74.

[0231] Step 71: In response to detecting joining the local area network, sending an online recommendation message to the arbitration device.

[0232] In this step, when the device of each device group detects that it has joined the local area network, it can send an online recommendation message to the arbitration device. After receiving the online recommendation message of each device group, the arbitration device will configure a designated master device and a designated slave device for each device group, and send a designated master device message to the designated master device and a designated slave device message to the designated slave device.

[0233] Step 72, in response to receiving the designated slave device message sent by the arbitration device, receiving the broadcast message sent by the designated master device in the same device group.

[0234] In this step, after receiving the mutually designated slave device message, the device becomes a designated slave device, and the designated slave device can receive broadcast messages sent by the designated master device in the same device group.

[0235] In one example, the designated slave device may parse out the performance score in the broadcast message, that is, the performance score of the designated master device.

[0236] Step 73, obtaining the performance score.

[0237] In this step, the designated slave device can obtain its own performance score. For example, the designated slave device can obtain the processor usage, memory load and network parameters and their respective weights; then, the weighted cumulative value of the processor usage, memory load and network parameters is obtained as the performance score. It is understandable that the process of obtaining the performance score can refer to the content of the above embodiment, which will not be repeated here.

[0238] Step 74: Generate a broadcast response message according to the performance score and broadcast the broadcast response message in the local area network.

[0239] In this step, the designated slave device may generate a broadcast response message according to the performance score and broadcast the broadcast response message in the local area network.

[0240] In one example, the designated slave device can compare the performance score of the designated master device with its own performance score. When its own performance score is greater than the performance score of the designated master device, the designated slave device generates a broadcast response message, thereby reducing the data processing amount of the designated master device.

[0241] In one example, during the election process, upon receiving a broadcast message sent by the designated master device, the designated slave device switches from the designated slave device to the master device in the group, and then sends an election result message to the arbitration device.

[0242] In one example, the designated slave device can receive a heartbeat message from the master device in the group. When the heartbeat message from the master device in the group is not received within a preset time, the designated slave device can send a re-online message to the arbitration device; the re-online message is used to request the arbitration device to reallocate the designated master device and the designated slave device in the device group. Then, the designated slave device can receive the designated master device message or the designated slave device message returned by the arbitration device. At this time, when the designated slave device receives the designated master device message, it becomes the designated master device, and when the designated slave device receives the designated slave device message, it becomes the designated slave device, and then the master device and the slave device in the group are re-elected according to their respective roles. The recommendation process can refer to the content of the above embodiment, which will not be repeated here.

[0243] Based on a master-slave device selection method provided in an embodiment of the present disclosure, an embodiment of the present disclosure further provides a master-slave device selection device, which is applicable to an arbitration device of a signal transmission system, and the device includes:

[0244] A master-slave device configuration module, configured to configure a designated master device and a designated slave device of each device group in response to obtaining an online recommendation message of each device;

[0245] The master device group selection module is used to select a device group as the master device group and other device groups as slave device groups in response to obtaining the election result message fed back by the master devices in each group.

[0246] In one embodiment, the master-slave device configuration module includes:

[0247] The receiving time acquisition submodule is used to acquire the receiving time of the online recommendation message sent by each device in each device group, and obtain the first online recommendation message in each device group;

[0248] The master-slave device determination submodule is used to determine that the device corresponding to the first online recommendation message in each device group is the designated master device, and the other devices other than the designated master device in the same device group are designated slave devices;

[0249] The device message sending submodule is used to send a designated master device message to the designated master device and send a slave device message to the designated slave device.

[0250] In one embodiment, the master device group selection module includes:

[0251] The role information updating submodule is used to update the synchronization role information of each device in response to the election result message fed back by the master device in each group;

[0252] A business information acquisition submodule, for acquiring business information of each device group in response to completion of updating of the synchronization role information;

[0253] The master device determination submodule is used to determine the priority of each device group according to the service information of each device group, and determine the device level with the highest priority as the master device group and the other device groups as slave device groups.

[0254] In one embodiment, the master device determination submodule includes:

[0255] A first determining unit, configured to determine, when detecting that the service information of each device group includes a video, an image, or a document, that the device group corresponding to the service information of the video is a primary device group, and that the other device groups are secondary device groups;

[0256] or,

[0257] A second determining unit is used to determine, when it is detected that the service information of each device group includes video, that the device group corresponding to the service information of the longest video duration is the master device group, and the other device groups are slave device groups;

[0258] or,

[0259] A third determining unit, configured to, when detecting that the business information of each device group includes an image or a document, determine that the device group corresponding to the business information where the document is located is the primary device group, and the other device groups are secondary device groups;

[0260] or,

[0261] A fourth determining unit, configured to determine, when it is detected that the business information of each device group includes a document, that the device group corresponding to the business information where the largest document is located is the primary device group, and the other device groups are secondary device groups;

[0262] or,

[0263] The fifth determining unit is configured to determine, when it is detected that the service information of each device group includes images, that the device group with more carousel images is the master device group, and the other device groups are slave device groups.

[0264] In one embodiment, the device further comprises:

[0265] A master-slave device reconfiguration module, configured to reconfigure a designated master device and a designated slave device in a device group in response to receiving a re-online message sent by a slave device in the device group;

[0266] The role information updating module is used to update the synchronization role information of each device in the device group in response to receiving the election result message fed back by the master device in the device group.

[0267] In one embodiment, the device further comprises:

[0268] The in-group slave device configuration module is used to configure the newly added device as a slave device in the device group in response to obtaining an online recommendation message of the newly added device.

[0269] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment, and the content of the above method embodiment can be referred to, which will not be repeated here.

[0270] Based on a master-slave device recommendation method provided in an embodiment of the present disclosure, an embodiment of the present disclosure further provides a master-slave device recommendation device, which is applicable to a master device of a signal transmission system, and the device includes:

[0271] A recommendation message sending module, used for sending an online recommendation message to the arbitration device in response to detecting joining the local area network;

[0272] A broadcast message sending module is used to send a broadcast message in the local area network in response to receiving a designated master device message sent by the arbitration device; the broadcast message is used to instruct the designated slave device in the same device group to feedback the performance score;

[0273] The intra-group master device determination module is used to determine the intra-group master device of the device group according to the performance score in the broadcast response message in response to receiving a broadcast response message fed back by a designated slave device in the same device group.

[0274] In one embodiment, the module for determining the master device in the group includes:

[0275] The performance score acquisition submodule is used to obtain the performance score in each broadcast response message and the performance score in the broadcast message to obtain the highest performance score;

[0276] The master device submodule in the group is used to set the device with the highest performance score as the master device in the group and broadcast it to the local area network.

[0277] In one embodiment, the device further comprises:

[0278] The election result feedback module is used to feed back the election result message to the arbitration device, so that the arbitration device updates the synchronization role information of each device according to the election result message.

[0279] In one embodiment, the performance score is a weighted cumulative value of the processor usage, memory load, and network parameters of the device.

[0280] In one embodiment, the device further comprises:

[0281] The master-slave switching module is used to switch from the designated master device to the elected slave device when receiving a broadcast message sent by the designated master device.

[0282] In one embodiment, the device further comprises:

[0283] The heartbeat message broadcast module is used to broadcast heartbeat messages periodically when the device is a master device in a slave device group.

[0284] In one embodiment, the device further comprises:

[0285] A heartbeat message broadcast module is used to broadcast heartbeat messages regularly when the device is the master device in the master device group;

[0286] A synchronization message broadcast module, used for periodically sending synchronization broadcast messages between groups when the device is a master device in a master device group;

[0287] The inter-group synchronous broadcast message includes group synchronization information, program switching information and program list information; the group synchronization information is used to indicate that the inter-group synchronous broadcast message is a message synchronized between device groups, the program switching information is used to indicate the program information before and after the switching, and the program list information is used to indicate the overall program plan of the inter-group master device.

[0288] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment, and the content of the above method embodiment can be referred to, which will not be repeated here.

[0289] Based on a master-slave device recommendation method provided in an embodiment of the present disclosure, an embodiment of the present disclosure further provides a master-slave device recommendation device, which is applicable to a slave device of a signal transmission system, and the device includes:

[0290] A recommendation message sending module, used for sending an online recommendation message to the arbitration device in response to detecting joining the local area network;

[0291] A broadcast message receiving module, configured to receive a broadcast message sent by a designated master device in the same device group in response to receiving a designated slave device message sent by the arbitration device;

[0292] A performance score acquisition module, used to acquire performance scores;

[0293] A response message broadcast module is used to generate a broadcast response message according to the performance score and broadcast the broadcast response message in a local area network.

[0294] In one embodiment, the performance score acquisition module includes:

[0295] The weight acquisition submodule is used to obtain processor usage, memory load, and network parameters and their respective weights;

[0296] The performance score acquisition submodule is used to obtain the weighted cumulative value of the processor usage, memory load and network parameters as the performance score.

[0297] In one embodiment, the device further comprises:

[0298] A re-online message sending module, used to send a re-online message to the arbitration device in response to not receiving a heartbeat message from the master device in the group within a preset time; the re-online message is used to request the arbitration device to reallocate a designated master device and a designated slave device in the device group;

[0299] The device message receiving module is used to receive the designated master device message or the designated slave device message returned by the arbitration device.

[0300] In one embodiment, the device further comprises:

[0301] A master device switching module, used to switch from a designated slave device to a master device in the group when receiving a broadcast message sent by a designated master device;

[0302] The election result sending module is used to send the election result message to the arbitration device.

[0303] It should be noted that the device embodiment shown in this embodiment matches the content of the above method embodiment, and the content of the above method embodiment can be referred to, which will not be repeated here.

[0304] In an exemplary embodiment, an arbitration device is also provided, comprising:

[0305] processor;

[0306] a memory for storing a computer program executable by the processor;

[0307] The processor is configured to execute the computer program in the memory to implement the above method.

[0308] In an exemplary embodiment, a signaling device is also provided, comprising:

[0309] processor;

[0310] a memory for storing a computer program executable by the processor;

[0311] The processor is configured to execute the computer program in the memory to implement the above method.

[0312] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including an executable computer program, and the executable computer program can be executed by a processor to implement the method of the above embodiment. The readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0313] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0314] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for selecting a master-slave device, characterized in that: An arbitration device applicable to a signal transmission system, the method comprising: In response to obtaining the online recommendation message of each device, configuring the designated master device and the designated slave device of each device group; In response to obtaining the election result message fed back by the master device in each group, one device group is selected as the master device group and the other device groups are selected as slave device groups.

2. The method according to claim 1, characterized in that Configure the designated master device and designated slave device for each device group, including: Obtain the reception time of the online recommendation message sent by each device in each device group, and obtain the first online recommendation message in each device group; Determine that the device corresponding to the first online recommendation message in each device group is the designated master device, and the other devices other than the designated master device in the same device group are designated slave devices; A designated master device message is sent to the designated master device and a slave device message is sent to the designated slave device.

3. The method according to claim 1, characterized in that In response to obtaining the election result message fed back by the master device in each group, selecting a device group as the master device group and the other device groups as slave device groups, including: In response to obtaining the election result message fed back by the master device in each group, updating the synchronization role information of each device; In response to the synchronization role information being updated, obtaining service information of each device group; The priority of each device group is determined according to the business information of each device group, and the device group with the highest priority is determined as the master device group and the other device groups are determined as slave device groups.

4. The method according to claim 3, characterized in that Determine the priority of each device group based on the business information of each device group, including: When it is detected that the service information of each device group includes a video, an image or a document, the device group corresponding to the service information of the video is determined to be the primary device group, and the other device groups are the secondary device groups; or, When it is detected that the service information of each device group includes video, the device group corresponding to the service information with the longest video duration is determined to be the master device group, and the other device groups are slave device groups; or, When it is detected that the business information of each device group includes an image or a document, the device group corresponding to the business information where the document is located is determined to be the primary device group, and the other device groups are secondary device groups; or, When it is detected that the business information of each device group includes a document, the device group corresponding to the business information where the largest document is located is determined to be the primary device group, and the other device groups are secondary device groups; or, When it is detected that the business information of each device group includes images, it is determined that the device group with more carousel images is the master device group, and the other device groups are slave device groups.

5. The method according to claim 1, characterized in that The method further comprises: In response to receiving a re-online message sent by a slave device of a certain device group, reconfiguring a designated master device and a designated slave device in the device group; In response to receiving an election result message fed back by a master device in the device group, the synchronization role information of each device in the device group is updated.

6. The method according to claim 1, characterized in that The method further comprises: In response to obtaining an online recommendation message of a newly added device, the newly added device is configured as a slave device in the device group where it is located.

7. A method for selecting a master-slave device, characterized in that: Applicable to a main device of a signal transmission system, the method comprises: In response to detecting joining the local area network, sending an online recommendation message to the arbitration device; In response to receiving a designated master device message sent by the arbitration device, a broadcast message is sent in the local area network; the broadcast message is used to instruct the designated slave devices in the same device group to feedback the performance score; In response to receiving a broadcast response message fed back by a designated slave device in the same device group, a master device in the device group is determined according to a performance score in the broadcast response message.

8. The method according to claim 7, characterized in that The master device in the device group is determined based on the performance score in the broadcast response message, including: Obtain the performance scores in each broadcast response message and the performance scores in the broadcast message, and obtain the highest performance score; The device with the highest performance score is selected as the master device in the group and broadcast to the LAN.

9. The method according to claim 8, characterized in that The method further comprises: The election result message is fed back to the arbitration device, so that the arbitration device updates the synchronization role information of each device according to the election result message.

10. The method according to claim 7 or 8, characterized in that: The performance score is a weighted cumulative value of the device's processor usage, memory load, and network parameters.

11. The method according to claim 8, characterized in that The method further comprises: When receiving a broadcast message sent by the designated master device, the device switches from the designated master device to the elected slave device.

12. The method according to claim 8, characterized in that The method further comprises: When the device is the master device in a slave device group, it broadcasts heartbeat messages periodically.

13. The method according to claim 8, characterized in that The method further comprises: When the device is the master device in the master device group, it broadcasts heartbeat messages regularly and sends inter-group synchronization broadcast messages regularly; The inter-group synchronous broadcast message includes group synchronization information, program switching information and program list information; the group synchronization information is used to indicate that the inter-group synchronous broadcast message is a message synchronized between device groups, the program switching information is used to indicate the program information before and after the switching, and the program list information is used to indicate the overall program plan of the inter-group master device.

14. A method for selecting a master-slave device, characterized in that: Applicable to slave devices of each device group in a local area network, the method comprises: In response to detecting joining the local area network, sending an online recommendation message to the arbitration device; In response to receiving a designated slave device message sent by an arbitration device, receiving a broadcast message sent by a designated master device in the same device group; Get performance scores; A broadcast response message is generated according to the performance score and the broadcast response message is broadcasted in the local area network.

15. The method according to claim 14, characterized in that Get performance scores, including: Get processor usage, memory load, and network parameters and their respective weights; A weighted cumulative value of the processor usage, memory load, and network parameters is obtained as the performance score.

16. The method according to claim 14, characterized in that The method further comprises: In response to not receiving a heartbeat message from a master device in the group within a preset time, sending a re-online message to the arbitration device; the re-online message is used to request the arbitration device to reallocate a designated master device and a designated slave device in the device group; Receive the designated master device message or designated slave device message returned by the arbitration device.

17. The method according to claim 14, characterized in that The method further comprises: When receiving a broadcast message sent by a designated master device, it switches from the designated slave device to the master device in the group; Send an election result message to the arbitration device.

18. A master-slave device recommendation device, characterized in that: An arbitration device applicable to a message transmission system, the device comprising: A master-slave device configuration module, configured to configure a designated master device and a designated slave device of each device group in response to obtaining an online recommendation message of each device; The master device group selection module is used to select a device group as the master device group and other device groups as slave device groups in response to obtaining the election result message fed back by the master devices in each group.

19. A master-slave device recommendation device, characterized in that: A main device applicable to a signal transmission system, the device comprising: A recommendation message sending module, used for sending an online recommendation message to the arbitration device in response to detecting joining the local area network; A broadcast message sending module is used to send a broadcast message in the local area network in response to receiving a designated master device message sent by the arbitration device; the broadcast message is used to instruct the designated slave device in the same device group to feedback the performance score; The intra-group master device determination module is used to determine the intra-group master device of the device group according to the performance score in the broadcast response message in response to receiving a broadcast response message fed back by a designated slave device in the same device group.

20. A master-slave device recommendation device, characterized in that: Applicable to slave devices of each device group in a local area network, the device comprises: A recommendation message sending module, used for sending an online recommendation message to the arbitration device in response to detecting joining the local area network; A broadcast message receiving module, configured to receive a broadcast message sent by a designated master device in the same device group in response to receiving a designated slave device message sent by the arbitration device; A performance score acquisition module, used to acquire performance scores; A response message broadcast module is used to generate a broadcast response message according to the performance score and broadcast the broadcast response message in a local area network.

21. An arbitration device, characterized in that: include: processor; a memory for storing a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the method according to any one of claims 1 to 6.

22. A message sending device, characterized in that: include: processor; a memory for storing a computer program executable by the processor; The processor is configured to execute the computer program in the memory to implement the method according to any one of claims 7 to 13 or 14 to 17.

23. A computer-readable storage medium, characterized in that: When the executable computer program in the storage medium is executed by a processor, the method according to any one of claims 1 to 6, 7 to 13 or 14 to 17 can be implemented.