A splicing graphic automatic recognition method, controller, and splicing display box

By pre-storing ID information in the display box and using serial communication and a quick detection interface, the master and slave devices are automatically identified, solving the problems of master device specificity and low communication efficiency in display box splicing, and achieving rapid device identification and efficient data transmission.

CN120335749BActive Publication Date: 2025-09-30SHANDONG ZHIHUA HOME TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510816730.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-18
Publication Date
2025-09-30
Estimated Expiration
2045-06-18

AI Technical Summary

Technical Problem

Existing display boxes require a designated master device when splicing, which leads to inconvenient assembly and low communication efficiency, and the device disconnection or connection detection method is inefficient.

Method used

Unique ID information is pre-stored in each device, and information negotiation between devices is carried out through the serial communication interface. The master and slave devices are automatically identified, and the disconnection or connection of the device is determined through the fast detection interface. The full-duplex serial port is used for data transmission.

Benefits of technology

It realizes automatic designation and rapid identification of master and slave devices, improves the flexibility of device splicing and communication efficiency, reduces the periodic sending of detection commands, and improves data transmission rate and splicing status perception speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120335749B_ABST
    Figure CN120335749B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of splicing graphic data processing, and in particular discloses a splicing graphic automatic recognition method, a controller, and a splicing display box. The splicing graphic automatic recognition method includes the following steps: S1, quickly determining a master device and a slave device through device negotiation and determining ID information; S2, acquiring device ID path information based on information perception to obtain a display box splicing graphic; S3, determining the disconnection of a slave device and the connection of a new device through a rapid detection interface. The advantages of the present application scheme are: the master device and the slave device of the display box automatically negotiate with each other, without the need to specify the master device and the slave device; the master device negotiated by the display box can quickly obtain the location information of the slave device based on the master device; and the disconnection of an existing device in the display box or the connection of a new device can be quickly detected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of splicing graphic data processing, and in particular to a splicing graphic automatic recognition method, a display box controller and a splicing display box. Background Art

[0002] In the prior art, when several display boxes are spliced ​​together, two display boxes are connected by a data cable, 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 cable, and the dedicated master device is used to communicate with the server, process data, and other operations. The disadvantages of this display box include: First, since the structure and function of the dedicated master device are different from those of the other slave devices, the dedicated master device is unique and designated, and other slave devices cannot replace the dedicated master device to communicate with the server and process data. This method of requiring a unique and designated dedicated master device will cause inconvenience to users. When assembling the display box, it is necessary to distinguish and pay special attention to the master device separately from the other slave devices. Second, in the prior art, display boxes are connected via VCC, DATA, and GND. Since there is only one DATA line between the display boxes, data transmission can only be performed by querying the master device, and the slave device cannot actively send data to the master device, resulting in low communication efficiency. Third, common display boxes on the market need to detect device disconnection or connection through protocol detection to implement device disconnection or connection detection. The implementation method is as follows: 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 determines whether the slave device is disconnected or connected 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 master and slave devices through device negotiation, obtain position information of slave devices based on the master device, and detect the disconnection of existing slave devices or the connection of new devices.

[0004] To solve the above technical problems, the technical solution of the present invention is: a method for automatically identifying splicing patterns, pre-storing a unique ID information in each device, and providing a serial communication interface and a rapid detection interface at each peripheral connection port of each device;

[0005] The automatic identification method includes the following steps:

[0006] S1, NAfter the devices are connected to each other through the connection port, when they are powered on, the devices are in the information negotiation state through the serial communication interface, and the ID information size between the devices is compared to find the device with the smallest ID information, and the device status of each device is modified so that the status of the device with the smallest ID information is changed to the main device, and the rest are changed to the main device. N -The status of 1 device is changed to slave device;

[0007] S2, starting from the master device, senses information through the serial communication interface, obtains the ID information of each slave device, and transmits all the obtained ID information to the master device to form the device ID path information. The master device reports to the server, and the server takes the master device as the center and rearranges the obtained device ID path information to restore the N The mosaic graphics of the devices;

[0008] S3. Use the quick detection interface to determine the disconnection of the slave device and the connection of the new device. When the terminal slave device is disconnected, the ID information of the disconnected device is reported to the master device, and the server updates the splicing graphics. When the new device is connected, the ID information of the new device is reported to the master device, and the server updates the splicing graphics.

[0009] As a preferred technical solution, the information negotiation method in step S1 includes the following steps:

[0010] S11: Negotiation starts. All devices send negotiation instructions to their connected neighboring devices, requesting the return of their neighboring device ID information.

[0011] S12. Determine the size of the ID information in the packets sent back by each neighboring device and the ID information of the local device. If the ID information in the packet sent back by the neighboring device is smaller than the ID information of the local device, the status of the local device is changed to a slave device. The slave device saves the smallest ID information of the neighboring device and informs all neighboring devices of the smallest ID information saved.

[0012] S13. When the minimum ID information received by each connection port of the device is its own ID, the count value of this device M Add 1, and this round of judgment ends;

[0013] S14. If each device has a separate count value M Both are less than the threshold K , a new round of judgment is carried out, and steps S11 to S13 are repeated once, and the count value of the device M Accumulate, when the count value of a device M Reaching the threshold K When the device status is changed to master, the negotiation ends.

[0014] As a preferred technical solution, the threshold K≥3 and must be an integer.

[0015] As a preferred technical solution, the threshold K = Max (3, log 4 N ).

[0016] As a preferred technical solution, the information perception method in step S2 includes the following steps:

[0017] S21. During the first sensing cycle, the master device sends sensing instructions to all surrounding connection ports. The adjacent first-level slave devices connected to the master device will reply with their own ID information.

[0018] S22. In the next sensing cycle, after repeating step S21, the first-level slave device sends sensing instructions to the remaining peripheral connection ports. If no ID information packet is received, the information sensing process ends. If an ID information packet is received, the adjacent second-level slave device connected to the connection port of the first-level slave device will return its own ID information and pass the ID information to the master device.

[0019] S23. In each subsequent sensing cycle, after repeating the previous step, the upper-level slave device sends a sensing instruction to the remaining peripheral connection ports. If no ID information packet is received, the information sensing process ends. If an ID information packet is received, the adjacent lower-level slave device connected to the connection port of the upper-level slave device will return its own ID information and pass the ID information to the master device.

[0020] S24, gradually acquiring ID information around the slave devices with the sensing period as an increment, until no ID information packet is received from the last slave device, and the information sensing process ends;

[0021] S25. The ID information transmitted to the master device forms device ID path information.

[0022] As a preferred technical solution, in step S3, there are two quick detection interfaces, one of which always outputs a high level, and the other is always set to an input detection state; when the input detection state of the terminal slave device detects that the high level disappears, 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, the server rearranges according to the device ID path information, and the splicing graphics are updated; when the input detection state of the terminal slave device detects that the level is pulled up, it is determined that a new device is connected to the surrounding area of ​​the slave device, and the slave device reports the acquired new device ID information to the master device, the device ID path information changes, the server rearranges according to the device ID path information, and the splicing graphics are updated.

[0023] As a preferred technical solution, the serial communication interface includes a TXD pin and a RXD pin.

[0024] As a preferred technical solution, the rapid detection interface includes an IO-IN pin and an IO-OUT pin.

[0025] Another preferred technical solution is a display box controller, which is provided in each device and includes a processor and a memory. The processor is used to call and run a computer program stored in the memory to execute the steps of the above-mentioned device splicing graphic automatic recognition method.

[0026] Another preferred technical solution is a splicing display box, including a server and N Each device has a unique ID information stored in it. The left, top, right and bottom sides of each device are correspondingly located at the A connector, B connector, C connector and D connector. N After the devices are connected adjacently through the connection port, the server restores the device ID path information obtained in the steps of the above-mentioned device splicing pattern automatic identification method. N A mosaic of devices.

[0027] Due to the adoption of the above technical solution, the beneficial effects of the present invention are:

[0028] 1. Before the master and slave devices are designated, all devices have the potential to be the master device. After the master and slave devices are connected and powered, they are quickly determined as the master and slave devices through negotiation and judgment of ID information. In this case, the master device is non-unique and replaceable, so users do not need to pay special attention to the master and slave devices when using them.

[0029] 2. Hardware detection is used to sense device access and disconnection. Compared with the protocol method, the hardware detection method eliminates the need to periodically send detection commands. The device access or disconnection is determined by detecting the level signal of the signal detection port, and the access or disconnection device information is reported to the main device through the full-duplex serial port. The hardware detection method eliminates the need for data exchange between devices and can sense device access and disconnection more quickly.

[0030] 3. Using a standard serial port communication interface, the communication speed and stability are higher. Using the existing standard serial port communication interface, because the serial port itself is a full-duplex communication interface, the master device sends data to the slave device while the slave device can also transmit data to the master device. Compared with the existing technology, the data transmission efficiency will be at least doubled.

[0031] 4. Use full-duplex serial port communication to sense the splicing status of the device, which is faster. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The following drawings are intended only to illustrate and explain the present invention, and are not intended to limit the scope of the present invention.

[0033] Figure 1 is a schematic diagram of stacked display boxes according to an embodiment of the present invention;

[0034] Figure 2 is a schematic diagram of an apparatus according to an embodiment of the present invention;

[0035] Figure 3 This is a schematic diagram of interface connection when two devices are connected according to an embodiment of the present invention;

[0036] Figure 4 This is a flowchart of the information negotiation method according to an embodiment of the present invention;

[0037] Figure 5 This is a flowchart of the information perception method according to an embodiment of the present invention;

[0038] Figure 6 This is a state diagram of devices after adjacent connection according to an embodiment of the present invention;

[0039] Figure 7 This is a state diagram after a new device is connected to the device according to an embodiment of the present invention;

[0040] Figure 8 This is a state diagram of the device after disconnection according to an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The present invention will be further described below with reference to the accompanying drawings and examples. In the following detailed description, certain exemplary embodiments of the present invention are described by way of illustration only. It is understood that those skilled in the art will recognize that the described embodiments may be modified in various ways without departing from the spirit and scope of the present invention. Therefore, the drawings and description are illustrative in nature and are not intended to limit the scope of the claims.

[0042] A splicing display box, including a server and N devices, N After the devices are adjacently connected through the connection port, they can be stacked to form a display box splicing surface. There are at least two devices in the display box splicing surface, one of which is connected to the server as the main device to achieve signal communication, data processing, etc. Of course, the number of display box splicing surfaces can be more, see Figure 1 It is a splicing pattern of display boxes. When users splice, all adjacent display boxes are connected. The server can be a handheld mobile device.

[0043] See also Figure 2, each device is provided with a display box controller, including a processor and a memory, wherein 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 pattern automatic identification method. In addition, each device is provided with connection ports on the left, top, right, and bottom sides, namely port A, port B, port C, and port D, and a serial communication interface and a fast detection interface are provided at port A, port B, port C, and port D, respectively, wherein the serial communication interface is used for data transmission, and can realize device negotiation to determine the main device and information perception to obtain splicing patterns, wherein the TXD pin and the RXD pin are full-duplex serial ports, and the fast detection interface is used for signal detection to realize the judgment of device disconnection and new device access, including IO-IN pin and IO-OUT pin. See. Figure 3 The figure shows the connection relationship between the interfaces of two devices after they are connected through port A and port C.

[0044] In this embodiment, the display box is a cube or rectangular parallelepiped, with connectors provided on the left, top, right, and bottom sides. Of course, the shape of the display box is not limited to a cube or rectangular parallelepiped. If it is a trihedron, each of its three sides has a connector, and if it is a hexahedron, each of its six sides has a connector, thereby achieving a stacking effect. In this embodiment, the display box and its connectors are connected via a PCB circuit board. Each end of the PCB circuit board has an interface that connects to various pins in the device, allowing for both signal transmission and power supply. Of course, this is not limited to PCB circuit boards; a double-ended probe or magnetic probe can also be used to connect the pins, thereby achieving both signal transmission and power supply.

[0045] In this application, before the display box determines the device status, they are collectively referred to as devices. After the device status is determined, they are divided into master devices and slave devices. Since all devices have the possibility of becoming a master device, the structures and functions of all devices are the same.

[0046] A method for automatically identifying spliced ​​graphics comprises the following steps:

[0047] S1. Negotiate between the master device and the slave device: N After the devices are connected adjacently through the connection port, when the power is turned on, the devices wake up and are in the information negotiation state through the serial communication interface. The ID information size between the devices is compared to find the device with the smallest ID information, and the device status of each device is modified so that the status of the device with the smallest ID information is changed to the main device, and the rest are N-1 device status is changed to slave device. The master device display box establishes a connection with the server via wifi. After the master device is negotiated, the mobile phone APP can configure the network for the master device display box. After the master device is successfully configured, it will establish a connection with the server through the preset information. The information negotiation method in this step S1 includes the following steps. See the flow chart for details. Figure 4 :

[0048] S11: Negotiation starts. All devices send negotiation instructions to their connected neighboring devices through the processor, requesting the return of their neighboring device ID information.

[0049] S12. The processor determines the size of the ID information in the packets sent back by each neighboring device and the ID information of the local device. If the ID information in the packet sent back by the neighboring device is smaller than the ID information of the local device, the processor changes the status of the local device to a slave device. The slave device stores the minimum ID information of the neighboring devices and notifies all neighboring devices of the minimum ID information stored therein.

[0050] S13. When the minimum ID information received by each connection port of the device is its own ID, the count value of this device M Add 1, and this round of judgment ends;

[0051] S14. If each device has a separate count value M Both are less than the threshold K , a new round of judgment is carried out, and steps S11 to S13 are repeated once, and the count value of the device M Accumulate, when the count value of a device M Reaching the threshold K When the processor changes the status of the device to the master device, the negotiation ends, and the threshold K ≥3 and must be an integer. Threshold K The minimum value is 3. When the number of devices is large, a too small K A value that is too large may cause instability in the master device election. K A value of 0 increases the convergence time, so this value is based on the total number of negotiation devices. N Make an approximate estimate, threshold K = Max (3, log 4 N In this step, multiple rounds of judgment process are implemented 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 determine the only master device. Therefore, when the threshold is set, K When it is 3, three rounds of judgment will be performed during information negotiation to ensure the accuracy and uniqueness of the master device.

[0052] S2. Get the splicing status of the display box: starting from the master device, the information is sensed through the serial communication interface to obtain the ID information of each slave device. All the acquired ID information is transmitted to the master device to form the device ID path information. The master device reports to the server through its own WiFi. The server takes the master device as the center and rearranges the acquired device ID path information to restore the N The splicing pattern of devices; the sensing cycle is the sensing command periodically sent between devices preset by the system. All devices in the sensing state sense adjacent devices according to the preset cycle; for example, the sensing cycle is preset to 10 milliseconds. The information sensing method in this step S2 includes the following steps. See the flow chart for Figure 5 :

[0053] S21. During the first sensing cycle, the master device sends sensing instructions to ports A, B, C, and D respectively. The adjacent first-level slave devices connected to the master device will reply with their own ID information.

[0054] S22. In the next sensing cycle, after repeating step S21, the first-level slave device sends a sensing instruction to the other three connection ports in the surrounding area. If no ID information packet is received, the information sensing process ends. If an ID information packet is received, the adjacent second-level slave device connected to the connection port of the first-level slave device will return its own ID information and pass the ID information to the master device.

[0055] S23. In each subsequent sensing cycle, after repeating the previous step, the upper-level slave device sends a sensing instruction to the other three surrounding connection ports. If no ID information packet is received, the information sensing process ends. If an ID information packet is received, the adjacent lower-level slave device connected to the connection port of the upper-level slave device will return its own ID information and pass the ID information to the master device.

[0056] During the information packet reply process of steps S22 and S23, if the same device is connected to two upper-level devices at the same time and receives sensing instructions from both upper-level devices at the same time, the device selects one of the upper-level devices to reply with its own ID information and no longer transmits information to the other upper-level device.

[0057] S24, gradually acquiring ID information around the slave devices with the sensing period as an increment, until no ID information packet is received from the last slave device, and the information sensing process ends;

[0058] S25. The ID information transmitted to the master device forms device ID path information.

[0059] S3, display box disconnection and connection: The disconnection of the slave device and the connection of the new device are determined through the quick detection interface. When the terminal slave device is disconnected, the ID information of the disconnected device is reported to the master device, and the server updates the splicing pattern. When the new device is connected, the slave device reports the acquired new device ID information to the master device, and the server updates the splicing pattern. In this 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 terminal slave device detects that the high level disappears, 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 the splicing pattern according to the device ID path information. 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 surrounding area of ​​the slave device. 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 the splicing pattern according to the device ID path information.

[0060] by Figure 6 Taking the spliced ​​graphics in the figure as an example, the automatic recognition method of this application is described:

[0061] S1. Negotiate the master and slave devices: See the diagram for the state diagram after 9 devices are connected adjacently through the connection port. Figure 6 ,at this time K= 3;

[0062] S11. When powered on, each device wakes up. The devices can wake up simultaneously or one after another. All devices send negotiation instructions to the adjacent connected devices through the processor, requesting to return the ID information of the adjacent devices. When the OOO7 device is awakened first, the 0007 device will send a negotiation instruction to the 0017 device connected to it, which is "What device IDs are connected around you? Who is the device with the smallest ID?" At this time, the 0017 device will send a message to the surrounding devices, "What is your ID device?" At this time, the 0004 device will reply with "I am the 0004 device" after receiving the request, the 0007 device will reply with "I am the 0007 device" after receiving the request, and the 0020 device will reply with "I am the 0020 device" after receiving the request.

[0063] S12, return the packet to device 0004, device 0007, device 0020 and device 0017 for pairwise ID comparison. Device 0004 and device 0007 are both smaller than device 0017, so the status of device 0017 is changed to slave device, and it is concluded that device 0004 is the device with the smallest ID around device 0017. The fact that device 0004 is the device with the smallest ID is saved and notified to the surrounding devices 0007, 0004 and 0020. At this time, the ID information received by devices 0007 and 0020 is smaller than their own ID, so the status of devices 0007 and 0020 is changed to slave device, and the ID information received by port A of device 0004 is its own ID.

[0064] S13. During steps S11 and S12, other devices also send negotiation instructions to other adjacent devices in the surrounding area to perform ID reply packets and minimum ID device judgment; among them, device 0004 also sends negotiation instructions to other adjacent devices in the surrounding area. When device 0005 of port B replies to device 0004, the minimum ID information around it is 0004, which is its own ID. When device 0013 of port C replies to device 0004, the minimum ID information around it is 0004, which is its own ID. When device 0008 of port D replies to device 0004, the minimum ID device around it is 0004, which is its own ID. At this time, all the negotiation designations sent by device 0004 in the four directions are returned, and they are all its own ID. The self-count value of device 0004 M Add 1, the first round of judgment ends, because at this time M Less than threshold K , the system proceeds to the next round of judgment;

[0065] S14, in the next round of judgment, each device re-negotiates the judgment. At this time, the judgment may no longer start with the 0017 device, but with another device. The judgment method of this round is the same as the previous round. The self-count value of the 0004 device M Add 1 again, because M The value is less than the threshold K Therefore, the system will conduct a new round of judgment. The new round of judgment may also start with any device. The judgment method is the same as the previous round. The self-count value of the 0004 device M Add 1 again, and the self-count value of device 0004 is 3, reaching the threshold K At this time, the processor of device 0004 changes the status of this device to the master device, while the status of other devices has been changed to slave devices in the previous rounds of negotiation judgment, and the negotiation ends;

[0066] S15. The device display box establishes a connection with the server via Wi-Fi. After the master device is negotiated, the mobile phone APP can configure the network for the display box of the master device. After the master device is successfully configured, it will establish a connection with the server through the preset information.

[0067] S2. Get the display box splicing status:

[0068] S21. In the first sensing cycle, starting from the 0004 master device, a sensing instruction in a predetermined format is sent to the four directions of port A, port B, port C, and port D. Port A sends the instruction to device 0017, port B sends the instruction to device 0005, port C sends the instruction to device 0013, and port D sends the instruction to device 0008. The format of the sensing instruction can be "Which device IDs are connected around you?" At this time, device 0017 returns the packet "0017 is connected to port A of 0004", device 0005 returns the packet "0005 is connected to port B of 0004", device 0013 returns the packet "0013 is connected to port C of 0004", and device 0008 returns the packet "0008 is connected to port D of 0004". At this time, the device ID path information obtained by device 0004 is:

[0069] 0004→Port A→0017,

[0070] 0004 → Port B → 0005

[0071] 0004→C port→0013,

[0072] 0004→D port→0008;

[0073] S22. In the next sensing cycle, starting from the 0004 master device, a sensing instruction in a predetermined format is sent to the four directions of port A, port B, port C, and port D. Since the packet ID of the first-level device in the previous sensing cycle has been obtained in step S21, the sensing instruction can be quickly and directly sent to the 0017 device, the 0005 device, the 0013 device, and the 0008 device. The instruction is sent to the A port, B port, and D port of the 0017 device, "Which device IDs are spliced ​​around you?" At this time, the 0020 device replies "0020 is connected to the D port of 0017", and the 0007 device replies "0007 is connected to the B port of 0017", and returns to the master device. In the process, the perception instructions of device 0005, device 0013, and device 0008 are similar and will not be repeated here. In this process, device 0007 can simultaneously reply "0007 is connected to port B of 0017" and "0007 is connected to port A of 0005". Since both reply paths can determine the location of 0007, in order to reduce repeated judgment processes, device 0007 can choose a path to reply, either to port B of 0017 or to port A of 0005. In this application, the example of replying to port B of 0017 and giving up replying to port A of 0005 is taken as an example. Therefore, the path between port A of 0005 and 0007 is equivalent to being disconnected. Figure 6 The path is abandoned with an "×" in the following figure. When the device ID path information is judged later, the abandoned and disconnected path will not transmit information. The path between device 0008 and devices 0020 and 0009 is also abandoned and disconnected in the above-mentioned selective manner and will no longer participate in the subsequent path information transmission. Figure 6 Indicated by “×”, the device ID path information obtained by device 0004 is:

[0074] 0004→A port→0017→B port→0007,

[0075] 0004→A port→0017→D port→0020,

[0076] 0004 → Port B → 0005

[0077] 0004→C port→0013→D port→0009,

[0078] 0004→D port→0008;

[0079] S23. In the next sensing cycle, the 0004 master device is still used as the starting point to send sensing instructions in the predetermined format to the four directions of port A, port B, port C, and port D. Since the packet ID of the second-level device has been returned in the previous step, the sensing instruction can be quickly and directly sent to the 0009 device. The sensing instruction of the 0009 device is similar and will not be repeated here. Finally, the device ID path information obtained by the 0004 device is:

[0080] 0004→A port→0017→B port→0007,

[0081] 0004→A port→0017→D port→0020,

[0082] 0004 → Port B → 0005

[0083] 0004→C port→0013→D port→0009→C port→0015,

[0084] 0004→D port→0008;

[0085] S24: In the next sensing cycle, the sensing command is continued to be sent to the next level slave device. When there is no more ID information packet, the information sensing process ends.

[0086] S25, the main device reports to the server through its own wifi, the server takes the main device as the center, rearranges the device ID path information obtained, and restores N A mosaic of devices.

[0087] S3. Access to the display box:

[0088] After connecting to the 0025 device, see the status 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, and it is determined that a new device is connected to port C of device 0013 and port B of device 0015. Devices 0013 and 0015 simultaneously send a perception command 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 master device 0004. Master device 0004 modifies the device ID path information to:

[0089] 0004→A port→0017→B port→0007,

[0090] 0004→A port→0017→D port→0020,

[0091] 0004 → Port B → 0005

[0092] 0004→Port C→0013→Port C→0025,

[0093] 0004→C port→0013→D port→0009→C port→0015,

[0094] 0004→D port→0008;

[0095] The modified device ID path information is reported to the server, and the server rearranges it according to the new device ID path information, and the splicing graphics are updated;

[0096] S4. Disconnection of display box:

[0097] When the 0007 device is disconnected, the status is Figure 8 At this time, the IO-OUT port of the B port of the 0017 device detects that the high level disappears, and it is determined that a device at the B port of the 0017 device is disconnected. 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:

[0098] 0004→Port A→0017,

[0099] 0004→A port→0017→D port→0020,

[0100] 0004 → Port B → 0005

[0101] 0004→Port C→0013→Port C→0025,

[0102] 0004→C port→0013→D port→0009→C port→0015,

[0103] 0004→D port→0008;

[0104] The modified device ID path information is reported to the server, and the server rearranges it according to the new device ID path information, and the splicing graphics are updated;

[0105] In the above steps, the display box may be disconnected first and then connected, and the order of the two steps is not specific.

[0106] The advantages of this application are:

[0107] 1. Before the master and slave devices are designated, all devices have the potential to be the master device. After the master and slave devices are connected and powered, they are quickly determined as the master and slave devices through negotiation and judgment of ID information. In this case, the master device is non-unique and replaceable, so users do not need to pay special attention to the master and slave devices when using them.

[0108] 2. Hardware detection is used to sense device access and disconnection. Compared with the protocol method, the hardware detection method eliminates the need to periodically send detection commands. The device access or disconnection is determined by detecting the level signal of the signal detection port, and the access or disconnection device information is reported to the main device through the full-duplex serial port. The hardware detection method eliminates the need for data exchange between devices and can sense device access and disconnection more quickly.

[0109] 3. Using a standard serial port communication interface, the communication speed and stability are higher. Using the existing standard serial port communication interface, because the serial port itself is a full-duplex communication interface, the master device sends data to the slave device while the slave device can also transmit data to the master device. Compared with the existing technology, the data transmission efficiency will be at least doubled.

[0110] 4. Use full-duplex serial port communication to sense the splicing status of the device, which is faster.

[0111] 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 ID information of the returned package, 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 devices is modified to the master device. N -1 device status is changed to a slave device; the shape acquisition module is used to obtain the ID information of each slave device, and all the obtained ID information is passed to the master device to form the device ID path information, and the obtained ID path information is reported to the server; the shape update module is used to determine the disconnection of the slave device and the connection of the 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 graphics; when the new device is connected, the slave device reports the acquired new device ID information to the master device, and the server updates the splicing graphics.

[0112] The basic principles, main features, and advantages of the present invention are shown and described above. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The above embodiments and descriptions are merely illustrative of the principles of the present invention. Various changes and modifications may be made to the present invention without departing from the spirit and scope of the present invention. Such changes and modifications are intended to fall within the scope of the present invention. The scope of protection claimed in the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for automatically identifying 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 provided at each peripheral connection port of each device; The automatic identification method includes the following steps: S1, N After the devices are connected to each other through the connection port, when they are powered on, the devices are in the information negotiation state through the serial communication interface, and the ID information size between the devices is compared to find the device with the smallest ID information, and the device status of each device is modified so that the status of the device with the smallest ID information is changed to the main device, and the rest are changed to the main device. N -The status of 1 device is changed to slave device; The information negotiation method in step S1 includes the following steps: S11: Negotiation starts. All devices send negotiation instructions to their connected neighboring devices, requesting the return of their neighboring device ID information. S12. Determine the size of the ID information in the packets sent back by each neighboring device and the ID information of the local device. If the ID information in the packet sent back by the neighboring device is smaller than the ID information of the local device, the status of the local device is changed to a slave device. The slave device saves the smallest ID information of the neighboring device and informs all neighboring devices of the smallest ID information saved. S13. When the minimum ID information received by each connection port of the device is its own ID, the count value of this device M Add 1, and this round of judgment ends; S14. If each device has a separate count value M Both are less than the threshold K , a new round of judgment is carried out, and steps S11 to S13 are repeated once, and the count value of the device M Accumulate, when the count value of a device M Reaching the threshold K When the device status is changed to master, the negotiation ends. S2, starting from the master device, senses information through the serial communication interface, obtains the ID information of each slave device, and transmits all the obtained ID information to the master device to form the device ID path information. The master device reports to the server, and the server takes the master device as the center and rearranges the obtained device ID path information to restore the N The mosaic graphics of the devices; S3. Use the quick detection interface to determine the disconnection of the slave device and the connection of the new device. When the terminal slave device is disconnected, the ID information of the disconnected device is reported to the master device, and the server updates the splicing graphics. When the new device is connected, the ID information of the new device is reported to the master device, and the server updates the splicing graphics.

2. A method for automatically identifying a spliced ​​pattern according to claim 1, characterized in that: Threshold K ≥3 and must be an integer.

3. A method for automatically identifying a spliced ​​pattern according to claim 2, characterized in that: Threshold K = Max (3, log 4 N ).

4. The method for automatically identifying a spliced ​​pattern according to claim 1, wherein: The information sensing method in step S2 includes the following steps: S21. During the first sensing cycle, the master device sends sensing instructions to all surrounding connection ports. The adjacent first-level slave devices connected to the master device will reply with their own ID information. S22. In the next sensing cycle, after repeating step S21, the first-level slave device sends sensing instructions to the remaining peripheral connection ports. If no ID information packet is received, the information sensing process ends. If an ID information packet is received, the adjacent second-level slave device connected to the connection port of the first-level slave device will return its own ID information and pass the ID information to the master device. S23. In each subsequent sensing cycle, after repeating the previous step, the upper-level slave device sends a sensing instruction to the remaining peripheral connection ports. If no ID information packet is received, the information sensing process ends. If an ID information packet is received, the adjacent lower-level slave device connected to the connection port of the upper-level slave device will return its own ID information and pass the ID information to the master device. S24, gradually acquiring ID information around the slave devices with the sensing period as an increment, until no ID information packet is received from the last slave device, and the information sensing process ends; S25. The ID information transmitted to the master device forms device ID path information.

5. The method for automatically identifying a spliced ​​pattern according to claim 1, wherein: In step S3, there are two quick detection interfaces, one of which always outputs a high level, and the other is always set to an input detection state; when the input detection state of the terminal slave device detects that the high level disappears, 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, the server rearranges according to the device ID path information, and the splicing graphics are updated; when the input detection state of the terminal slave device detects that the level is pulled up, it is determined that a new device is connected to the surrounding area of ​​the slave device, and the slave device reports the acquired new device ID information to the master device, the device ID path information changes, the server rearranges according to the device ID path information, and the splicing graphics are updated.

6. The method for automatically identifying a spliced ​​pattern according to claim 1, wherein: The serial communication interface includes a TXD pin and a RXD pin.

7. The method for automatically identifying a spliced ​​pattern according to claim 1, wherein: The fast detection interface includes an IO-IN pin and an IO-OUT pin.

8. A display box controller, provided in each device, comprising a processor and a memory, characterized in that: The processor is configured to call and run a computer program stored in the memory to execute the steps of the method for automatically identifying spliced ​​graphics according to any one of claims 1 to 7.

9. A splicing display box, including a server and N Each device has a unique ID information stored in it. The left, top, right and bottom sides of each device are correspondingly located at the A connector, B connector, C connector and D connector. N After the devices are connected adjacently through the connection port, the feature is that: The server restores the device ID path information obtained according to the steps of the splicing pattern automatic recognition method according to any one of claims 1 to 7 N A mosaic graphic of the devices.