Automatic spliced graph identification method, controller and spliced display box
By pre-stored ID information in the display box and using the serial communication interface and fast detection interface to automatically identify the master and slave equipment, the problems of inconvenient assembly and low communication efficiency of the display box are solved, and rapid detection and efficient communication of the device status are achieved.
Patent Information
- Application Number
- CN202510816730.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-18
- Publication Date
- 2025-07-18
- Estimated Expiration
- 2045-06-18
AI Technical Summary
In the prior art, the display box is inconvenient to assemble, low communication efficiency, and the uniqueness of the main device leads to limited use, and it is impossible to quickly detect the disconnection or access of the device.
By pre-stored unique ID information in each device, the device negotiation is carried out using the serial communication interface and the fast detection interface, the master and slave devices are automatically identified, and the device location information is obtained through full-duplex serial communication and the detection device is accessed or disconnected.
It realizes the non-uniqueness and substitution of the master and slave equipment, improves communication efficiency and device state perception speed, simplifies the assembly process, and enhances the rapid detection capability of device access and disconnection.
Smart Images

Figure CN120335749A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of splicing graphic data processing, and particularly to a method for automatically identifying splicing graphics, a display box controller, and a splicing display box. Background Art
[0002] In the prior art, when several display boxes are spliced, they are connected by a data line between every two display boxes, and one of the display boxes must be a dedicated master device, and the other display boxes are slave devices. The dedicated master device is powered by a power cord and is used for communicating with a server, data processing, and other operations. The disadvantages of such display boxes include: First, since the structures and functions of the dedicated master device and other slave devices are different, the dedicated master device is unique and designated, and other slave devices cannot replace the dedicated master device to communicate with the server and perform data processing. This way that requires a unique and designated dedicated master device will cause inconvenience to users. When assembling the display boxes, it is necessary to separately distinguish and specifically pay attention to the master device, and assemble it separately from other slave devices, resulting in inconvenient assembly. And when users purchase display boxes, they need to separately purchase a dedicated master device, which has limitations in use. Second, in the prior art, the display boxes are connected through VCC, DATA, and GND. Since there is only one DATA data line for the connection between the display boxes, the data transmission can only be in the master device query mode, and the slave device cannot actively send data to the master device, so its communication efficiency is low. Third, for the common display box sensing devices on the market, detecting the disconnection or access of the device needs to be realized through protocol detection. The implementation method is that the dedicated master device periodically sends a detection command to the slave device. After receiving the command, the slave device returns data to the dedicated master device. The dedicated master device judges the disconnection and connection of the slave device based on the information returned by the slave device. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to provide a method for automatically identifying splicing graphics, a display box controller, and a splicing display box, which can automatically specify the master and slave devices through device negotiation, can obtain the position information of the slave device based on the master device, and can detect the disconnection of the existing slave device or the access of a new device.
[0004] To solve the above technical problem, the technical solution of the present invention is: A method for automatically identifying splicing graphics, in which a unique ID information is pre-stored in each device, and a serial communication interface and a quick detection interface are respectively provided at each peripheral connection port of each device; The automatic identification method includes the following steps: S1, NAfter multiple devices are spliced adjacent to each other through connection ports and powered on, when starting up, the devices are in an information negotiation state through the serial communication interface. The devices compare the ID information among them to find the device with the smallest ID information, and modify the device status of each device, so that the status of the device with the smallest ID information is modified to the master device, and the status of the remaining N -1 devices is modified to slave devices; S2. Starting from the master device, information perception is carried out through the serial communication interface to obtain the ID information of each slave device. All the obtained ID information is transmitted to the master device to form device ID path information. The master device reports to the server, and the server takes the master device as the center and rearranges according to the obtained device ID path information to restore N the splicing graph of multiple devices; S3. Judge the disconnection of slave devices and the access of new devices through the fast detection interface. When the last slave device is disconnected, report the ID information of the disconnected device to the master device, and the server updates the splicing graph; when a new device is accessed, report the ID information of the new device to the master device, and the server updates the splicing graph.
[0005] As a preferred technical solution, the information negotiation method in step S1 includes the following steps: S11. At the start of negotiation, all devices send negotiation instructions to the adjacent devices that have been connected around them, requesting to return the ID information of their adjacent devices around them; S12. Judge the size of the ID information returned by each adjacent device and the ID information of this device. When a certain ID information returned by an adjacent device is smaller than the ID information of this device, the status of this device is modified to a slave device, and this slave device saves the smallest ID information of the adjacent device, and tells all adjacent devices around it the smallest ID information saved; S13. When the minimum ID information received in the return packets of all connection ports of the device is its own ID, the count value M of this device is incremented by 1, and this round of judgment ends; S14. If the count value M individually possessed by each device K is less than the threshold M , a new round of judgment is carried out, and steps S11 to S13 are repeated once, and the count value M of the device is accumulated. When the count value K of a certain device reaches the threshold , the status of this device is modified to the master device, and the negotiation ends.
[0006] K As a preferred technical solution, the threshold
[0007] ≥3 and is an integer. K = Max (3,log 4 N )。
[0008] As a preferred technical solution, the information sensing method in step S2 includes the following steps: S21. In the first sensing period, the master device sends sensing instructions to all the surrounding connection ports respectively, and the adjacent first-level slave devices connected to the master device will send back their own ID information; S22. In the next sensing period, after repeating step S21, the first-level slave devices send sensing instructions to the other remaining connection ports respectively. When no ID information is sent back, the information sensing process ends; when ID information is sent back, the adjacent second-level slave devices connected to the connection ports of the first-level slave devices will send back their own ID information and transmit the ID information to the master device; S23. In each subsequent sensing period, after repeating the previous step, the upper-level slave devices send sensing instructions to the other remaining connection ports respectively. When no ID information is sent back, the information sensing process ends; when ID information is sent back, the adjacent lower-level slave devices connected to the connection ports of the upper-level slave devices will send back their own ID information and transmit the ID information to the master device; S24. Gradually obtain the ID information around the slave devices with the sensing period as the increment until there is no more ID information sent back around the last slave device, and the information sensing process ends; S25. The ID information transmitted to the master device forms device ID path information.
[0009] As a preferred technical solution, in step S3, there are two fast detection interfaces, one of which always outputs a high level, and the other is always set to the input detection state; when the input detection state of the terminal slave device detects the disappearance of the high level, it is determined that the adjacent device of the slave device is disconnected, and the slave device reports the ID information of the disconnected device to the master device, and the device ID path information changes, and the server rearranges according to the device ID path information, and the spliced graph is updated; when the input detection state of the terminal slave device detects that the level is pulled high, it is determined that a new device is connected to the periphery of the slave device, and the slave device reports the obtained new device ID information to the master device, and the device ID path information changes, and the server rearranges according to the device ID path information, and the spliced graph is updated.
[0010] As a preferred technical solution, the serial communication interface includes a TXD pin and an RXD pin.
[0011] As a preferred technical solution, the fast detection interface includes an IO-IN pin and an IO-OUT pin.
[0012] Another preferred technical solution is a display box controller disposed in each device, including a processor and a memory. The processor is configured to call and run a computer program stored in the memory to execute the steps of the above-mentioned automatic recognition method for device splicing graphics.
[0013] Another preferred technical solution is a spliced display box, including a server and N a number of devices. A unique ID information is pre-stored in each device. A connection port A, a connection port B, a connection port C, and a connection port D are respectively disposed at the left, upper, right, and lower side ends of each device. N After a number of devices are spliced adjacent to each other through the connection ports, the server restores the N splicing graphics of a number of devices according to the device ID path information obtained in the steps of the above-mentioned automatic recognition method for device splicing graphics.
[0014] Due to the adoption of the above technical solution, the beneficial effects of the present invention are as follows: First, before the main device and the slave device are specified, all devices have the possibility of being the main device. After the main device and the slave device are connected and powered, the main device and the slave device are quickly determined by negotiating and judging the ID information. Here, the main device is non-unique and replaceable. Therefore, when the user uses it, there is no need to specifically pay attention to the main device and the slave device.
[0015] Second, the perception of device access and disconnection adopts a hardware detection method. Compared with using a protocol method, using a hardware detection method eliminates the periodic sending of detection commands; the access or disconnection of the device is judged by detecting the level signal of the signal detection port, and the information of the accessed or disconnected device is reported to the main device through a full-duplex serial port. The hardware detection method eliminates the data interaction between devices and can more quickly perceive the access and disconnection of devices.
[0016] Third, using a standard serial communication interface, the communication rate and stability are higher. Using the existing standard serial communication interface, since the serial port itself is a full-duplex communication interface, while the main device sends data to the slave device, the slave device can also transmit data to the main device. The data transmission efficiency will be increased by at least one time compared with the prior art.
[0017] Fourth, using a full-duplex serial communication method to perceive the device splicing state, the speed of perceiving the splicing state is faster. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The following drawings are only intended to illustrate and explain the present invention schematically and do not limit the scope of the present invention. Among them: Figure 1 is a schematic diagram of the stacked display boxes in the embodiment of the present invention; Figure 2 is a schematic diagram of the device in the embodiment of the present invention; Figure 3 It is a schematic diagram of interface connection when two devices in an embodiment of the present invention are connected; Figure 4 It is a flowchart of the information negotiation method in an embodiment of the present invention; Figure 5 It is a flowchart of the information perception method in an embodiment of the present invention; Figure 6 It is a state diagram after adjacent connection of devices in an embodiment of the present invention; Figure 7 It is a state diagram after a new device is accessed in an embodiment of the present invention; Figure 8 It is a state diagram after the device is disconnected in an embodiment of the present invention. Detailed implementation manners
[0019] The present invention will be further described below in conjunction with the accompanying drawings and embodiments. In the following detailed description, only some exemplary embodiments of the present invention are described by way of illustration. It is understood that those of ordinary skill in the art can recognize that the described embodiments can be modified in various different ways without departing from the spirit and scope of the present invention. Therefore, the accompanying drawings and the description are illustrative in nature and are not intended to limit the protection scope of the claims.
[0020] A splicing display box includes a server and N devices. N After the devices are spliced adjacent to each other through the connection ports, they can be stacked to form a splicing surface of the display box. There are at least two devices in the splicing surface of the display box. One of the devices is used as the main device to connect to the server to achieve signal communication, data processing, etc. Of course, the number of splicing surfaces of the display box can be more. Refer to Figure 1 which is a splicing graph of the display box. When the user makes splicing, all adjacent display boxes are connected. The server can be a handheld mobile device.
[0021] Refer to Figure 2, a display box controller is provided in each device, including a processor and a memory. A unique ID information is pre-stored in the memory, and the ID information is expressed in numbers, such as 0001, 0002, 0003, etc. The ID information of each device is different and serves as the name of each device. The processor is responsible for data processing and is used to call and run the computer program stored in the memory to execute the steps of the device splicing graph automatic recognition method. In addition, connection ports are respectively provided at the left, upper, right, and lower side ends of each device, namely port A, port B, port C, and port D, and serial communication interfaces and quick detection interfaces are respectively provided at port A, port B, port C, and port D. The serial communication interface is used for data transmission, and can realize device negotiation to determine the master device and information perception to obtain the splicing graph. The TXD pin and the RXD pin are full-duplex serial ports. The quick detection interface is used for signal detection to realize the judgment of device disconnection and new device access, including the IO-IN pin and the IO-OUT pin. See Figure 3 The figure shows the connection relationship between the interfaces after two devices are connected through port A and port C.
[0022] In this embodiment, the display box is a cube or a cuboid, and connection ports are provided in the left, upper, right, and lower directions thereof. Of course, the shape of the display box is not limited to a cube or a cuboid. When it is a triangular prism, then connection ports are respectively provided on its three sides. When it is a hexahedron, then connection ports are respectively provided on its six sides to achieve a stacking effect. In this embodiment, the display boxes are connected through a PCB circuit board. Both ends of the PCB circuit board are respectively provided with interfaces that are connected to the respective pins in this device, which can be used for signal transmission or power supply. Of course, it is not limited to the PCB circuit board, and double-headed probes or magnetic probes can also be used for pin connection, and the purpose of signal transmission and power supply can also be achieved.
[0023] In this application, before the device state of the display box is determined, they are all collectively referred to as devices, and after the device state is determined, they are classified into a master device and a slave device. Since all devices have the possibility of becoming the master device, the structures and functions of all devices are the same.
[0024] An automatic splicing graph recognition method includes the following steps: S1. Negotiate the master device and the slave device: N After multiple devices are spliced adjacent to each other through the connection ports and powered on and started, the devices are awakened. The devices are in an information negotiation state through the serial communication interface. Compare the sizes of the ID information between the devices to find the device with the smallest ID information, and modify the device states of each device, so that the state of the device with the smallest ID information is modified to the master device, and the rest N- The status of one device is modified to a slave device. The master device display box establishes a connection with the server via Wi-Fi. After negotiating the master device, the mobile APP can configure the network for the display box of the master device. After the master device successfully configures the network, it will establish a connection with the server through preset information. The information negotiation method in this step S1 includes the following steps. For the process block diagram, see Figure 4 : S11. The negotiation starts. All devices send negotiation instructions to the adjacent devices connected to the periphery through the processor, requesting to return the ID information of their adjacent devices around; S12. The processor judges the size of the ID information of each adjacent device's return packet and the ID information of this device. When a certain ID information of the adjacent device's return packet is less than the ID information of this device, the processor modifies the status of this device to a slave device, and this slave device saves the minimum ID information of the adjacent device and tells all adjacent devices around it the saved minimum ID information; S13. When the minimum ID information received in the return packets at all connection ports of the device is its own ID, the count value of this device M is incremented by 1, and this round of judgment ends; S14. If the count value M individually possessed by each device K is less than the threshold M , a new round of judgment is carried out, and steps S11 to S13 are repeated once. The count value of the device M is accumulated. When the count value of a certain device K reaches the threshold K , the processor modifies the status of this device to the master device, and the negotiation ends. The threshold K ≥3 and is an integer. The minimum value of the threshold K is 3. When the number of devices is large, too small a K value may lead to unstable master device election, and too large a N value will increase the convergence time. Therefore, this value is approximately estimated according to the total number of negotiating devices K = Max (3, log 4 N ). In this step, the multi-round judgment process is realized by setting the threshold. If there is only one round of judgment process, when there are many devices, it may not be possible to accurately obtain the unique master device. Therefore, when the threshold K is 3, when negotiating information, three rounds of judgment will be carried out to ensure the accuracy and uniqueness of the master device.
[0025] S2. Obtain the splicing status of the display box: Starting from the master device, information is sensed through the serial communication interface to obtain the ID information of each slave device. All the obtained ID information is transmitted to the master device to form device ID path information. The master device reports to the server through its built-in wifi. The server takes the master device as the center and rearranges according to the obtained device ID path information to restore the N splicing graph of the devices; The sensing period is the sensing command periodically sent between devices preset by the system. When all devices are in the sensing state, they all perform sensing of adjacent devices according to this preset period; For example: The sensing period is preset to 10 milliseconds. The information sensing method in this step S2 includes the following steps. For the flow chart, see Figure 5 : S21. In the first sensing period, the master device sends sensing instructions to ports A, B, C, and D respectively. The adjacent first-level slave devices connected to this master device will return their own ID information in the packet. S22. In the next sensing period, after repeating step S21, the first-level slave devices send sensing instructions to the other three adjacent connection ports respectively. When no ID information is returned in the packet, the information sensing process ends; When ID information is returned in the packet, the adjacent second-level slave devices connected to the connection ports of this first-level slave device will return their own ID information in the packet and transmit the ID information to the master device. S23. In each subsequent sensing period, after repeating the previous step, the upper-level slave devices send sensing instructions to the other three adjacent connection ports respectively. When no ID information is returned in the packet, the information sensing process ends; When ID information is returned in the packet, the adjacent lower-level slave devices connected to the connection ports of this upper-level slave device will return their own ID information in the packet and transmit the ID information to the master device. During the information return process in steps S22 and S23, if the same device is connected to two upper-level devices at the same time and is sent sensing instructions by both upper-level devices at the same time, this device selects one of the upper-level devices to return its own ID information in the packet, and no information transmission is carried out with the other connected upper-level device. S24. Gradually obtain the ID information around the slave devices with the sensing period as the increment until there is no ID information returned around the last slave device, and the information sensing process ends. S25. The ID information transmitted to the master device forms device ID path information.
[0026] S3. Display box disconnection and connection: Determine the disconnection of the slave device and the connection of the new device through the quick detection interface. After the end slave device is disconnected, report the ID information of the disconnected device to the master device, and the server updates the splicing graph; when a new device is connected, the slave device reports the obtained new device ID information to the master device, and the server updates the splicing graph. Herein, in step S3, there are two quick detection interfaces. The IO-OUT interface always outputs a high level, and the IO-IN interface is always set to the input detection state; when the input detection state of the end slave device detects the disappearance of the high level, it is determined that the adjacent device of the slave device is disconnected, and the slave device reports the ID information of the disconnected device to the master device, the device ID path information changes, and the server rearranges according to the device ID path information, and the splicing graph is updated; when the input detection state of the end slave device detects that the level is pulled high, it is determined that a new device is connected to the periphery of the slave device, and the slave device reports the ID information of the new device to the master device, the device ID path information changes, and the server rearranges according to the device ID path information, and the splicing graph is updated.
[0027] Taking Figure 6 the splicing graph in as an example, describe the automatic recognition method of the present application: Figure 6 At this time K= 3; S1. Negotiate between the master device and the slave device: The state diagram after 9 devices are spliced adjacent to each other through the connection port is shown in S12. Wrap back to devices 0004, 0007, 0020, and 0017 for pairwise comparison of their IDs. The IDs of both devices 0004 and 0007 are smaller than that of device 0017. Therefore, the status of device 0017 is modified to a slave device, and it is determined that device 0004 is the device with the smallest ID among those around device 0017. The fact that device 0004 is the device with the smallest ID is saved, and devices 0007, 0004, and 0020 in the vicinity are informed. At this time, the ID information received by devices 0007 and 0020 is smaller than their own IDs, so the statuses of devices 0007 and 0020 are modified to slave devices, while the ID information received at port A of device 0004 is its own ID; S13. During steps S11 and S12, other devices also send negotiation instructions to other adjacent devices around them for ID wrap-back and determination of the device with the smallest ID. Among them, device 0004 also sends negotiation instructions to other adjacent devices around it. When device 0005 at port B wraps back to device 0004 with the smallest ID information around it being 0004, which is its own ID, device 0013 at port C wraps back to device 0004 with the smallest ID information around it being 0004, which is its own ID, and device 0008 at port D wraps back to device 0004 with the smallest ID device around it being 0004, which is its own ID. At this time, all the negotiation instructions sent by device 0004 in four directions are returned, and they are all its own ID. The self-count value of device 0004 M is incremented by 1, and the first round of determination ends. Since at this time M it is less than the threshold K , the system proceeds to the next round of determination; S14. During the next round of determination, each device re-negotiates and determines. At this time, it may not start the determination from device 0017, but from some other device. The determination method in this round is the same as that in the previous round. The self-count value of device 0004 M is incremented by 1 again. Since M the value is still less than the threshold K , the system proceeds to a new round of determination. When starting a new round of determination, it may also start from any random device, and the determination method is the same as that in the previous round. The self-count value of device 0004 M is incremented by 1 again. At this time, the self-count value of device 0004 reaches 3, which is the threshold K . At this time, the processor of device 0004 modifies the status of this device to a master device, while the statuses of other devices have been modified to slave devices during the negotiation and determination in the previous rounds, and the negotiation ends; S15. The device display box establishes a connection with the server via wifi. After negotiating the master device, the mobile APP can configure the network for the display box of the master device. After the master device is successfully network-configured, it will establish a connection with the server through preset information.
[0028] S2. Obtain the splicing status of the display box: S21. In the first sensing period, starting from the master device 0004, send sensing instructions in a predetermined format to four directions: port A, port B, port C, and port D. The sensing instruction sent in the direction of port A is sent to device 0017, the one in the direction of port B is sent to device 0005, the one in the direction of port C is sent to device 0013, and the one in the direction of port D is sent to device 0008. The format of the sensing instruction can be "Which device IDs are spliced around you". At this time, device 0017 returns a packet "0017 is connected to port A of 0004", device 0005 returns a packet "0005 is connected to port B of 0004", device 0013 returns a packet "0013 is connected to port C of 0004", and device 0008 returns a packet "0008 is connected to port D of 0004". At this time, the device ID path information obtained by device 0004 is: 0004 → port A → 0017, 0004 → port B → 0005, 0004 → port C → 0013, 0004 → port D → 0008; S22. In the next sensing period, starting from the master device 0004, send sensing instructions in a predetermined format to four directions: port A, port B, port C, and port D. Since the return packet IDs of the first-level devices in the previous sensing period have been obtained in step S21, at this time, the sensing instructions can be quickly and directly sent to devices 0017, 0005, 0013, and 0008. Send "Which device IDs are spliced around you" to port A, port B, and port D of device 0017. At this time, device 0020 returns a packet "0020 is connected to port D of 0017", device 0007 returns a packet "0007 is connected to port B of 0017", and it is returned to the master device. The sensing instructions for devices 0005, 0013, and 0008 are similar and will not be elaborated here. During this process, device 0007 can simultaneously return a packet "0007 is connected to port B of 0017" and "0007 is connected to port A of 0005". Since the positions of 0007 can be judged from both return packet paths, to reduce the repeated judgment process, device 0007 can choose one path to return a packet. It can return a packet to port B of 0017 or to port A of 0005. In this application, taking the example of returning a packet to port B of 0017 and giving up returning a packet to port A of 0005, the path between port A of 0005 and 0007 is equivalent to being disconnected. In Figure 6 it is shown as "×" to give up this path. When judging the device ID path information later, the abandoned and disconnected path does not carry out information transmission; the paths between device 0008 and devices 0020 and 0009 are also abandoned and disconnected in the above-mentioned alternative selection method and no longer participate in the subsequent path information transmission. In Figure 6It is represented by "×" in the middle. The device ID path information finally obtained by device 0004 is: 0004 → Port A → 0017 → Port B → 0007, 0004 → Port A → 0017 → Port D → 0020, 0004 → Port B → 0005, 0004 → Port C → 0013 → Port D → 0009, 0004 → Port D → 0008; S23. In the next sensing period, still starting from the master device 0004, send sensing instructions in the four directions of Port A, Port B, Port C, and Port D in a predetermined format. Since the return packet ID of the secondary device has been processed in the previous step, the sensing instruction can be quickly and directly sent to device 0009 at this time. The sensing instruction of device 0009 is similar and will not be elaborated here. The device ID path information finally obtained by device 0004 is: 0004 → Port A → 0017 → Port B → 0007, 0004 → Port A → 0017 → Port D → 0020, 0004 → Port B → 0005, 0004 → Port C → 0013 → Port D → 0009 → Port C → 0015, 0004 → Port D → 0008; S24. In the next induction period, continue to send sensing instructions to the next-level slave devices. When there is no more ID information return packet at this time, the information sensing process ends; S25. The master device reports to the server through the built-in wifi. The server takes the master device as the center and rearranges according to the obtained device ID path information to restore N the splicing graph of the devices.
[0029] S3. Access of the display box: After accessing device 0025, the status is shown in Figure 7 ; At this time, the IO-IN ports of Port C of device 0013 and Port B of device 0015 detect that the port level is pulled high, then it is determined that a new device is connected to Port C of device 0013 and Port B of device 0015. Device 0013 and device 0015 simultaneously send sensing instructions to device 0025. Device 0025 selects a path and returns its own ID signal to device 0013. Device 0013 reports the ID information of device 0025 connected to Port C to the master device 0004. The master device 0004 modifies the device ID path information to: 0004 → Port A → 0017 → Port B → 0007, 0004 → Port A → 0017 → Port D → 0020, 0004 → Port B → 0005, 0004 → Port C → 0013 → Port C → 0025, 0004 → Port C → 0013 → Port D → 0009 → Port C → 0015, 0004 → Port D → 0008; The modified device ID path information is reported to the server, and the server rearranges according to the new device ID path information, and the spliced graph is updated; S4. Disconnection of the display box: After the 0007 device is disconnected, the status is shown in Figure 8 ; At this time, when the IO-OUT port of Port B of the 0017 device detects the disappearance of the high level, it is determined that there is a device disconnected at Port B of the 0017 device. At this time, the 0017 device reports the disconnected 0007 device to the 0004 master device, and the 0004 master device modifies the device ID path information to: 0004 → Port A → 0017, 0004 → Port A → 0017 → Port D → 0020, 0004 → Port B → 0005, 0004 → Port C → 0013 → Port C → 0025, 0004 → Port C → 0013 → Port D → 0009 → Port C → 0015, 0004 → Port D → 0008; The modified device ID path information is reported to the server, and the server rearranges according to the new device ID path information, and the spliced graph is updated; In the above steps, the display box can also be disconnected first and then connected. The two steps do not have a sequential order.
[0030] The advantages of this application are: First, before the master device and the slave device are specified, all devices have the possibility of being the master device. After the master device and the slave device are connected and powered, the master device and the slave device are quickly determined by negotiating and judging the ID information. Here, the master device is non-unique and replaceable. Therefore, users do not need to specifically pay attention to the master device and the slave device when using.
[0031] Second, the perception of device access and disconnection adopts the hardware detection method. Compared with using the protocol method, the hardware detection method saves the periodic sending of detection commands; the access or disconnection of the device is judged by detecting the level signal of the signal detection port, and the information of the accessed or disconnected device is reported to the master device through the full-duplex serial port. The hardware detection method saves the data interaction between devices and can more quickly perceive the access and disconnection of devices.
[0032] III. Using a standard serial communication interface, the communication rate and stability are higher. By using the existing standard serial communication interface, since the serial port itself is a full-duplex communication interface, while the master device sends data to the slave device, the slave device can also transmit data to the master device. The data transmission efficiency will be increased by at least one time compared with the existing technology.
[0033] IV. Using the full-duplex serial communication method to sense the splicing state of the device, the speed of sensing the splicing state is faster.
[0034] A display box controller includes a device negotiation module, a shape acquisition module, and a shape update module; the device negotiation module is used to send negotiation instructions between devices and receive the ID information of the return packet, find the device with the smallest ID information according to the size of the ID information, and modify the device status of each device, so that the status of the device with the smallest ID information is modified to the master device, and the status of the remaining N -1 devices is modified to slave devices; the shape acquisition module is used to acquire the ID information of each slave device, and all the acquired ID information is transmitted to the master device to form device ID path information, and the obtained ID path information is reported to the server; the shape update module is used to judge the disconnection of the slave device and the access of a new device. When the end slave device is disconnected, the ID information of the disconnected device is reported to the master device, and the server updates the splicing graph; when a new device is accessed, the slave device reports the obtained new device ID information to the master device, and the server updates the splicing graph.
[0035] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art of this industry should understand that the present invention is not limited by the above embodiments. The above embodiments and the descriptions in the specification only illustrate the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention will have various changes and improvements, and these changes and improvements all fall within the scope of the present invention claimed. The scope of protection claimed by the present invention is defined by the appended claims and their equivalents.
Claims
1. An automatic recognition method for spliced graphics, characterized in that, A unique ID information is pre-stored in each device, and a serial communication interface and a quick detection interface are respectively provided at each peripheral connection port of each device; The automatic recognition method includes the following steps: S1. N After several devices are spliced adjacent to each other through connection ports and powered on, when starting up, the devices are in an information negotiation state through the serial communication interface. Compare the ID information of the devices to find the device with the smallest ID information, and modify the device status of each device so that the status of the device with the smallest ID information is modified to the master device, and the status of the remaining N -1 devices is modified to the slave device; S2. Starting from the master device, information perception is carried out through the serial communication interface to obtain the ID information of each slave device. All the obtained ID information is transmitted to the master device to form device ID path information. The master device reports to the server. The server takes the master device as the center and rearranges according to the obtained device ID path information to restore N the splicing graph of devices; S3. Determine the disconnection of the slave device and the access of a new device through the quick detection interface. After the end slave device is disconnected, report the ID information of the disconnected device to the master device, and the server updates the splicing graph; after a new device is accessed, report the ID information of the new device to the master device, and the server updates the splicing graph.
2. The automatic recognition method for a spliced graph according to claim 1, wherein The information negotiation method in step S1 includes the following steps: S11. At the start of negotiation, all devices send negotiation instructions to the adjacent devices connected to the periphery, requesting to return the ID information of their adjacent devices on the periphery; S12. Judge the size of the ID information returned by each adjacent device and the ID information of this device. When a certain ID information returned by an adjacent device is smaller than the ID information of this device, the status of this device is modified to a slave device, and this slave device saves the minimum ID information of the adjacent device and tells all adjacent devices on its periphery the minimum ID information saved; S13. When the minimum ID information of the return packets received by each connection port of the device is its own ID, the count value of this device M is incremented by 1, and this round of judgment ends; S14. If the count value of each device individually M is less than the threshold K , a new round of judgment is made, and steps S11 to S13 are repeated once, and the count values of the devices M are accumulated. When the count value of a certain device M reaches the threshold K , the status of this device is modified to the master device, and the negotiation ends.
3. The automatic recognition method of a spliced graph according to claim 2, wherein, Threshold K ≥ 3 and is an integer.
4. The automatic recognition method of a spliced graph according to claim 3, characterized in that, Threshold value K = Max (3, log 4 N )。 5. The automatic recognition method of a spliced graph according to claim 1, characterized in that, The information perception method in step S2 includes the following steps: S21. In the first perception cycle, the master device sends perception instructions to all connection ports on the periphery respectively, and the adjacent first-level slave devices connected to this master device will return their own ID information; S22. In the next perception cycle, after repeating step S21, the first-level slave devices send perception instructions to the other remaining connection ports on the periphery respectively. When there is no ID information returned, the information perception process ends; when there is ID information returned, the adjacent second-level slave devices connected to the connection ports of this first-level slave device will return their own ID information and transmit the ID information to the master device; S23. In each subsequent perception cycle, after repeating the previous step, the upper-level slave devices send perception instructions to the other remaining connection ports on the periphery respectively. When there is no ID information returned, the information perception process ends; when there is ID information returned, the adjacent lower-level slave devices connected to the connection ports of this upper-level slave device will return their own ID information and transmit the ID information to the master device; S24. Gradually obtain the ID information around the slave device with the perception cycle as the increment until there is no ID information returned around the last slave device, and the information perception process ends; S25. The ID information transmitted to the master device forms device ID path information.
6. The automatic recognition method of a spliced graph according to claim 1, characterized in that, In step S3, there are two quick detection interfaces. One interface always outputs a high level, and the other interface is always set to the input detection state. When the input detection state of the end slave device detects the disappearance of the high level, it is determined that the adjacent device of the slave device is disconnected. The slave device reports the ID information of the disconnected device to the master device, the device ID path information changes, and the server rearranges according to the device ID path information, and the spliced graph is updated. When the input detection state of the end slave device detects that the level is pulled high, it is determined that a new device is connected to the periphery of the slave device. The slave device reports the obtained new device ID information to the master device, the device ID path information changes, and the server rearranges according to the device ID path information, and the spliced graph is updated.
7. The automatic recognition method of a spliced graph according to claim 1, characterized in that The serial communication interface includes a TXD pin and an RXD pin.
8. The automatic recognition method of a spliced graph according to claim 1, characterized in that, The quick detection interface includes an IO-IN pin and an IO-OUT pin.
9. A display box controller is provided inside each device and includes a processor and a memory. It is characterized in that The processor is configured to call and run the computer program stored in the memory to execute the steps of the device splicing graph automatic recognition method according to any one of claims 1 to 8.
10. A spliced display box, including a server and N devices, with a unique ID information pre-stored in each device. The left, upper, right, and lower side ends of each device are respectively provided with an A connection port, a B connection port, a C connection port, and a D connection port. N After the devices are spliced adjacent to each other through the connection ports, it is characterized in that The server restores the splicing graph of N devices according to the device ID path information obtained in the steps of the device splicing graph automatic recognition method described in any one of claims 1 to 8.
Citation Information
Patent Citations
Liquid crystal display and frame thereof
CN101598861A
Method and device for automatically identifying positions of units of splicing wall of large screen
CN102737616A
Splicing system and method of equipment
CN110941410A
Spliced screen unit and structure, automatic recognition method for distributed pictures of spliced screen unit and structure, electronic equipment and storage medium
CN112860199A
Touch control method, system and device of display device and computer program product
CN118585084A