Device communication method and apparatus, device, and storage medium

By establishing a fixed connection channel in the intermediate communication equipment, the problem of needing to re-determine address information after communication is lost is solved, enabling rapid communication recovery and improved efficiency.

CN115695531BActive Publication Date: 2026-03-27SHENZHEN INOVANCE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

After communication between the intermediate communication device and the sending and receiving devices is lost, existing technologies require re-evaluating address information matching to re-establish communication, resulting in low communication efficiency.

Method used

By establishing a fixed connection channel during the initial communication, intermediate communication devices can directly retrieve the stored fixed connection channel when they receive data to be transmitted, without needing to check address information matching, and directly resume communication.

Benefits of technology

It improves communication efficiency and stability, frees up resources of intermediate communication equipment, and enhances the communication flexibility of multi-screen systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695531B_ABST
    Figure CN115695531B_ABST
Patent Text Reader

Abstract

The application discloses a device communication method and device, apparatus, and storage medium, and relates to the field of industrial control. The device communication method is used for an intermediate communication device connected with at least one sending device and a receiving device, and the method comprises the following steps: receiving to-be-transmitted data sent by the sending device; determining a fixed connection channel corresponding to the to-be-transmitted data; wherein the fixed connection channel is established according to a communication address of the sending device and a communication address of the receiving device when the sending device and the receiving device communicate for the first time; and sending the to-be-transmitted data to the receiving device based on the fixed connection channel. The application can make the communication between the sending device and the receiving device resume immediately after the communication is disconnected, thereby improving the communication efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial control, and more particularly to a device communication method, apparatus, device, and storage medium. Background Technology

[0002] In related technologies, communication between the sending end device and the receiving end device can be achieved through an intermediate communication device. For example, in a multi-screen system, including a control device, a main screen device, and a slave screen device, the main screen device can be used as an intermediate communication device. Data sent by the slave screen device is processed by the main screen device and forwarded to the control device. Data responded by the control device is also processed by the main screen device and forwarded to the slave screen device, thereby realizing communication between the slave screen device and the control device.

[0003] However, in this communication method, when communication between the intermediate communication device and the sending and receiving devices is interrupted due to faults or other reasons, and communication is restored after troubleshooting, the intermediate communication device needs to re-determine whether the address information of the sending and receiving devices matches in order to re-establish communication. Only then can the sending and receiving devices communicate based on the intermediate communication device. This makes it impossible for the sending and receiving devices to immediately restore communication after troubleshooting, resulting in low communication efficiency.

[0004] Application content

[0005] The main objective of this application is to provide a device communication method, apparatus, device, and storage medium, which aims to solve the technical problem that communication between the transmitting and receiving devices cannot be immediately restored after troubleshooting, resulting in low communication efficiency.

[0006] To achieve the above objectives, this application provides a device communication method for an intermediate communication device, wherein the intermediate communication device is connected to at least one transmitting end device and one receiving end device, the method comprising:

[0007] Receive the data to be transmitted sent by the sending device;

[0008] A fixed connection channel corresponding to the data to be transmitted is determined; wherein, the fixed connection channel is established by the sending end device and the receiving end device during their first communication based on the communication address of the sending end device and the communication address of the receiving end device;

[0009] Based on the fixed connection channel, the data to be transmitted is sent to the receiving device.

[0010] In one possible embodiment of this application, the step of determining the fixed connection channel corresponding to the data to be transmitted includes:

[0011] Obtain the source communication address of the data to be transmitted;

[0012] Determine the target key-value pair corresponding to the source communication address;

[0013] Based on the target key-value pair, determine the fixed connection channel corresponding to the data to be transmitted.

[0014] In one possible embodiment of this application, before the step of receiving the data to be transmitted sent by the sending device, the method further includes:

[0015] When the sending device communicates with the receiving device for the first time, the first communication address of the sending device is obtained;

[0016] The target key-value pair is generated based on the first communication address and the second communication address; wherein the second communication address is obtained through pre-configuration.

[0017] Establish a fixed connection channel corresponding to the target key-value pair.

[0018] In one possible embodiment of this application, the step of obtaining the first communication address of the sending device when the sending device communicates with the receiving device for the first time includes:

[0019] When the sending device communicates with the receiving device for the first time, it receives the communication data sent by the sending device;

[0020] Determine the target communication address of the communication data;

[0021] The target communication address is matched with the second communication address to obtain a matching result;

[0022] Based on the matching result, the first communication address of the sending device is obtained.

[0023] In one possible embodiment of this application, after the step of establishing the fixed connection channel corresponding to the target key-value pair, the method further includes:

[0024] Detect whether the sending device has received the reply data returned by the receiving device;

[0025] If the sending device receives the reply data, it triggers the function of the fixed connection channel and controls the sending device to display the message that the fixed connection channel has been successfully established.

[0026] In one possible embodiment of this application, before the step of obtaining the first communication address of the sending device when the sending device communicates with the receiving device for the first time, the method further includes:

[0027] The host computer receives the configuration file of the receiving device; the configuration file includes the second communication address of the receiving device.

[0028] Extract and store the second communication address.

[0029] In one possible embodiment of this application, the intermediate communication device is the main screen device, the transmitting device is the slave screen device, and the receiving device is the control device.

[0030] Secondly, this application also provides a device communication apparatus configured in an intermediate communication device, the intermediate communication device being connected to at least one transmitting end device and one receiving end device respectively, the device communication apparatus comprising:

[0031] A receiving module is used to receive the data to be transmitted sent by the sending device;

[0032] A determining module is used to determine a fixed connection channel corresponding to the data to be transmitted; wherein, the fixed connection channel is established by the sending end device and the receiving end device during the first communication, based on the communication address of the sending end device and the communication address of the receiving end device;

[0033] The sending module is used to send the data to be transmitted to the receiving device based on the fixed connection channel.

[0034] Thirdly, this application also provides an intermediate communication device, including: a processor, a memory, and a device communication program stored in the memory, wherein the device communication program is executed by the processor to implement the steps of the device communication method described above.

[0035] Fourthly, this application also provides a computer-readable storage medium storing a device communication program, which, when executed by a processor, implements the device communication method described above.

[0036] This application provides a device communication method, the method comprising: receiving data to be transmitted sent by a sending device; determining a fixed connection channel corresponding to the data to be transmitted; wherein the fixed connection channel is established by the sending device and the receiving device during their first communication based on the communication address of the sending device and the communication address of the receiving device; and sending the data to be transmitted to the receiving device based on the fixed connection channel.

[0037] Therefore, in this embodiment of the application, the intermediate communication device establishes a fixed connection channel between the sending device and the receiving device when they communicate for the first time. Thus, even if the communication connection is broken, when the intermediate communication device receives the data to be transmitted from the sending device, it can retrieve the stored fixed connection channel based on the data to be transmitted. There is no need to check whether the address information of the sending device and the receiving device matches to re-establish communication. As a result, the communication between the sending device and the receiving device can be restored immediately, improving communication efficiency. Attached Figure Description

[0038] Figure 1 This is a schematic diagram of the architecture of the multi-screen system of this application;

[0039] Figure 2 This is a hardware schematic diagram of the intermediate communication device in this application;

[0040] Figure 3 This is a flowchart illustrating the first embodiment of the device communication method of this application;

[0041] Figure 4 This is a flowchart illustrating the second embodiment of the device communication method of this application;

[0042] Figure 5 This is a flowchart illustrating the second embodiment of the device communication method of this application.

[0043] Figure 6 This is a schematic diagram illustrating the initial communication process between the slave screen device and the control device in the multi-screen system of this application;

[0044] Figure 7 This is a schematic diagram of the communication device module of the equipment in this application.

[0045] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation

[0046] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0047] In existing technologies, there are instances where intermediate communication devices are used as a communication bridge between the first and second communication devices. For example, with the rapid development of industrial control and touchscreen technology, the demands on touchscreens are increasing. The advancements in touchscreen functionality and performance have led to a shift in touchscreen interaction from one-to-one to one-to-many or many-to-one scenarios. In systems like multi-screen devices, multiple touchscreen devices include master screen devices and slave screen devices. Data sent by slave screen devices is processed by the master screen device and forwarded to the control device. Similarly, data responded by the control device is processed by the master screen device and forwarded to the slave screen devices, thus enabling communication between the slave screen devices and the control device.

[0048] However, nowadays, after the communication connection provided by the intermediate communication device is broken, the intermediate communication device needs to re-establish the communication channel based on whether the IP addresses of the two devices match before subsequent communication can proceed, which means that the communication efficiency is low.

[0049] This application provides a solution that, by establishing a fixed channel, allows communication to be immediately restored after a connection is lost.

[0050] The inventive concept of this application is further illustrated below with reference to some specific embodiments.

[0051] The following embodiments of this application will describe the multi-screen system used in the technical implementation of this application:

[0052] Reference Figure 1 , Figure 1 This is a schematic diagram of an architecture for a multi-screen system on a single device, provided as an exemplary embodiment. For example... Figure 1 As shown, the multi-screen system can be connected sequentially to a slave screen device 30, a main screen device 20, and a control device 10.

[0053] The control device 10 can be a physical server containing an independent host, or the server can be a virtual server hosted in a host cluster. During operation, the server can run server-side programs for a certain application to implement the relevant business functions of the application, such as executing corresponding responses based on user input on the slave screen device 30.

[0054] The main screen device 20 and the slave screen device 30 may include electronic devices such as workstations, smartphones, tablets, laptops, PDAs (Personal Digital Assistants), etc., and one or more embodiments in this specification do not limit this. During operation, the main screen device 20 has a touch screen, so that the main screen device 20 and the slave screen device 30 can run interactive programs to realize the relevant business functions of the application.

[0055] In addition, the main screen device 20 also serves as a bridge for data interaction between the slave screen device 30 and the control device 10. Data sent by the slave screen device 30 is processed and forwarded to the control device 10 through the main screen device 20, and data responded by the control device 10 is also processed and forwarded to the slave screen device 30 through the main screen device 20, thereby realizing communication between the slave screen device 30 and the control device 10.

[0056] Reference Figure 2 , Figure 2 This is a schematic diagram of the structure of the intermediate communication device in the hardware operating environment involved in the embodiments of this application.

[0057] like Figure 2 As shown, the intermediate communication device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.

[0058] Those skilled in the art will understand that Figure 2 The structure shown does not constitute a limitation on the intermediate communication device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0059] like Figure 2 As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a device communication program.

[0060] exist Figure 2 In the intermediate communication device shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the intermediate communication device of this application can be set in the intermediate communication device. The intermediate communication device calls the device communication program stored in the memory 1005 through the processor 1001 and executes the device communication method provided in the embodiment of this application.

[0061] Based on, but not limited to, the above hardware structure, this application provides a first embodiment of a device communication method. (Refer to...) Figure 3 , Figure 3 A flowchart illustrating the first embodiment of the device communication method of this application is shown.

[0062] It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than that shown here.

[0063] In this embodiment, the device communication method is used with an intermediate communication device, which is connected to at least one first communication device and one second communication device. The following description uses the intermediate communication device as the main screen device 20, the first communication device as the slave screen device 30, and the second communication device as the control device 10. Those skilled in the art will readily conceive of specific scenarios where the intermediate communication device is another communication device, based on the description in this application.

[0064] In this embodiment, the method includes:

[0065] Step S101: Receive the data to be transmitted sent by the sending device.

[0066] Step S102: Determine the fixed connection channel corresponding to the data to be transmitted; wherein, the fixed connection channel is established by the sending end device and the receiving end device during the first communication, based on the communication address of the sending end device and the communication address of the receiving end device.

[0067] Step S103: Based on the fixed connection channel, send the data to be transmitted to the receiving device.

[0068] Specifically, in this embodiment, the execution entity is an intermediate communication device, namely the main screen device 20. The main screen device 20 acts as a bridge between the slave screen device 30 and the control device 10. Each time the slave screen device 30 receives an operation from the user on its touchscreen, it generates a corresponding control command and sends the control command as data to be transmitted. The specific control command needs to be sent to the control device 10 for a corresponding response. In addition, after receiving the data sent by the slave screen device 30, the control device 10 will also return a response data. This response data also needs to be returned by the main screen device 20 to the corresponding slave screen device 30. The communication between the slave screen device 30, the main screen device 20, and the control device 10 can be based on a serial port or a network port; this embodiment is not limited to either. Specifically, the data to be transmitted is the control command sent by the slave screen device 30 to the control device 10. That is, the sending end device is the slave screen device 30, and the receiving end device is the control device 10.

[0069] The data to be transmitted is sent by the sending device, and therefore carries the identification information of the sending device, such as the source communication address. This information allows the determination of the fixed connection channel corresponding to the sending device, which is also the fixed connection channel corresponding to the data to be transmitted. In one example, after receiving the data to be transmitted, the main screen device 20 can extract the source communication address from the data and retrieve the fixed connection channel corresponding to that address. Then, the main screen device 20 calls the fixed connection channel of "slave screen device 30 - main screen device 20 - control device 10" and sends the data to be transmitted to the control device 10 through this fixed connection channel.

[0070] This fixed connection channel is established during the initial communication between the sending and receiving devices, based on the communication addresses of the sending and receiving devices. It's worth noting that a fixed connection channel refers to a network connection channel that always exists within the main screen device 20 unless the configuration file of the main screen device 20 is changed. That is, unless the configuration file within the multi-screen system is modified, this network connection channel will always exist.

[0071] It's easy to understand that in existing multi-screen systems, during each communication process, the main screen device 20 needs to extract the source and destination communication addresses from the data to be transmitted and determine whether the destination communication address matches the second communication address of the control device 10. Only if they match will the data be sent to the control device 10. This means that communication efficiency is low. Furthermore, when a power outage or other unexpected situation occurs in the multi-screen system, requiring all devices to reconnect, the main screen device 20 still needs to extract the source and destination communication addresses from the data to be transmitted and determine whether the destination communication address matches the second communication address of the control device 10. This means the connection between the slave screen device 30 and the control device 10 cannot be immediately restored, further reducing communication efficiency.

[0072] In this embodiment, the main screen device 20 establishes a fixed connection channel between the sending and receiving devices during their first communication. As a result, in any subsequent communication process, or even during reconnection after a disconnection, when the main screen device 20 receives the data to be transmitted from the sending device, it can directly retrieve the stored fixed connection channel without having to check whether the IP address matches to re-establish communication. This allows the communication between the control device and the slave screen device to be restored immediately, improving communication efficiency.

[0073] Furthermore, in this embodiment, when the main screen device 20 receives the data to be transmitted, it only acts as a data interaction channel between the slave screen device 30 and the control device 10, and no longer performs IP address matching or any other data processing work. This improves communication efficiency and stability, frees up main screen resources, and enhances the flexibility and efficiency of multi-screen communication.

[0074] Based on the above embodiments, a second embodiment of the device communication method of this application is proposed. (See also...) Figure 4 , Figure 4 This is a flowchart illustrating the second embodiment of the device communication method of this application.

[0075] In this embodiment, step S102 specifically includes:

[0076] Step S1021: Obtain the source communication address of the data to be transmitted.

[0077] Step S1022: Determine the target key-value pair corresponding to the source communication address.

[0078] Step S1023: Determine the fixed connection channel corresponding to the source communication address based on the target key-value pair.

[0079] Specifically, the fixed connection channel is recorded in the form of key-value pairs on the main screen device 20. Key-value pair storage provides more stable data and facilitates subsequent queries, making it easier to quickly determine whether the fixed connection channel exists.

[0080] For example, after the main screen device 20 establishes a fixed connection channel, it can record the fixed connection channel using the format "slave screen device IP address: control device IP address" and store it in a QMap container. Subsequently, when it is necessary to determine whether a corresponding fixed connection channel exists, the main screen device 20 extracts the source communication address from the data to be transmitted and quickly finds whether a target key-value pair corresponding to the source communication address exists using a pre-defined query method in the QMap container, such as the QMap::contains method.

[0081] As can be seen, in this embodiment, storing the fixed connection channel through key-value pairs can help the main screen device 20 quickly determine whether a corresponding fixed connection channel exists during communication and quickly call the fixed connection channel to further improve communication efficiency.

[0082] Based on the above embodiments, a third embodiment of the device communication method of this application is proposed. (See also...) Figure 5 , Figure 5 This is a flowchart illustrating the third embodiment of the device communication method of this application.

[0083] In this embodiment, the method includes:

[0084] Step S201: When the sending device and the receiving device communicate for the first time, obtain the first communication address of the sending device.

[0085] Step S202: Generate the target key-value pair according to the first communication address and the second communication address; wherein, the second communication address is obtained through pre-configuration.

[0086] Step S203: Establish a fixed connection channel corresponding to the target key-value pair.

[0087] Step S204: Receive the data to be transmitted sent by the sending device.

[0088] Step S205: Determine the fixed connection channel corresponding to the data to be transmitted; wherein, the fixed connection channel is established according to the communication address of the sending device and the communication address of the receiving device when the sending device and the receiving device communicate for the first time.

[0089] Step S206: Based on the fixed connection channel, send the data to be transmitted to the receiving device.

[0090] Among them, Steps S204 to S206 refer to the above embodiments and will not be elaborated here.

[0091] Specifically, when the slave screen device 30 and the control device 10 communicate for the first time, generate the target key-value pair according to the communication address of the slave screen device 30 and the communication address of the control device 10, and establish the fixed connection channel. That is, when the slave screen device 30 and the control device 10 communicate for the first time, compared with the existing communication method, in this embodiment, the target key-value pair is also generated according to the communication addresses of the two, such as recording the "IP address of the slave screen device" and recording the "IP address of the control device", and then generating the target key-value pair: <KEY = IP address of the slave screen device: value = IP address of the control device>. And establish a fixed communication channel between the above two.

[0092] In an example, refer to Figure 6 , the specific process of the first communication between the slave screen device 30 and the control device 10 is as follows:

[0093] Step S301: Receive the configuration file of the receiving device configured by the host computer; the configuration file of the receiving device includes the second communication address of the receiving device.

[0094] Step S302: Extract and store the second communication address.

[0095] Step S303: When the sending device and the receiving device communicate for the first time, receive the communication data sent by the sending device.

[0096] Step S304: Determine the target communication address of the communication data.

[0097] Step S305: Match the target communication address with the second communication address to obtain a matching result.

[0098] Step S306: According to the matching result, obtain the first communication address of the sending device.

[0099] Step S307: Generate the target key-value pair according to the first communication address and the second communication address; wherein, the second communication address is obtained through pre-configuration.

[0100] Step S308: Establish a fixed connection channel corresponding to the target key-value pair.

[0101] The following takes the first communication where the slave screen device sends communication data to the control device as an example for specific elaboration. Specifically, on the upper computer configuration software, the user can pre-configure the main screen device configuration file in advance, specifically configure the control device 10 to be connected and the IP address of the control device 10, and check the "remote connection" option to enable the multi-screen function of one machine. The user also configures the slave screen device configuration file, configures the IP address of the slave screen device 30 and the slave screen device 30, as well as the IP address of the main screen device 20, and checks the "remote connection" option to enable the multi-screen function of one machine. Then, download the main screen device configuration file configured by the upper computer to the main screen device 20. And download the slave screen device configuration file configured by the upper computer to the slave screen device 30. The main screen device 20 records the IP address of the control device 10 connected to the main screen according to the main screen device configuration file, that is, extracts and stores the second communication address of the control device 10.

[0102] During the first communication, the slave screen device 30 sends communication data to the main screen device 20 according to the slave screen device configuration file. After receiving the communication data of the slave screen device 30, the main screen device 20 extracts the target communication address of the communication data, and matches the target communication address with the second communication address of the control device 10 recorded by the main screen device 20 above.

[0103] If the matching result is a match, the main screen device 20 records the first communication address of the slave screen device 30 and the "preset communication address" of the control device 10, and then stores them as a key-value pair: <KEY = first communication address: value = preset communication address>. And establish a fixed connection channel for the slave screen device 30 - main screen device 20 - control device 10. After the fixed connection channel is successfully established, the main screen device 20 sends the communication data to the control device 10 through the fixed connection channel.

[0104] Correspondingly, if they do not match, the main screen device 20 discards the communication data.

[0105] As can be seen, in this embodiment, by establishing a fixed connection channel during the initial communication between the main screen device 20 and the control device 10, the main screen only needs to perform IP address matching once. After the fixed connection channel is established, the main screen device 20 only serves as a data interaction channel between the slave screen device 30 and the control device 10, and no longer performs IP address matching or any data processing. That is, the main screen device 20 only needs to determine whether the target IP address of the data sent by the slave screen matches the IP address of the control device 10 during the initial communication between the slave screen device 30 and the control device 10. If they match, a fixed connection channel is established. After the fixed connection channel is established, the slave screen device 30 and the control device 10 communicate through this fixed connection channel, and the main screen device 20 no longer needs to perform IP address matching. This improves communication stability, frees up main screen resources, and enhances the flexibility and efficiency of multi-screen communication.

[0106] Furthermore, after the connection channel of this application is established, even if the communication connection between the slave screen and the control device 10 is disconnected, such as due to power failure or incorrect connection of the control device 10, when the control device 10 is reconnected, the slave screen device 30 and the control device 10 can still communicate through the previously established fixed connection channel. When reconnecting, the main screen does not need to perform IP address matching, and the communication between the slave screen device 30 and the control device 10 can be restored immediately, thus improving communication efficiency.

[0107] In this embodiment, the method further includes:

[0108] Step S309: Detect whether the sending device has received the reply data returned by the receiving device.

[0109] Step S310: If the sending device receives reply data, it triggers the function of the fixed connection channel and controls the sending device to display the information that the fixed connection channel has been successfully established.

[0110] Specifically, the control device 10 uses the fixed adjustment channel to return response data to the slave screen device 30, so that the slave screen device 30 displays a preset channel establishment success message, such as "connection successful", under the control of the main screen device 20.

[0111] Correspondingly, if the fixed connection channel fails to connect, the slave device will not receive response data within the preset time and will display a message indicating that the preset channel was not established successfully, or trigger a "connection failed" alarm.

[0112] In this embodiment, the sending device displays a message indicating that the fixed connection channel has been successfully established when the fixed connection channel is successfully established, so that the user can confirm that the fixed connection channel has been successfully established, thereby improving the user experience.

[0113] Based on the same inventive concept, referring to Figure 7This application also provides a device communication apparatus based on the above. Figure 7 In the illustrated embodiment, the device communication apparatus includes:

[0114] A receiving module is used to receive the data to be transmitted sent by the sending device;

[0115] A determining module is used to determine a fixed connection channel corresponding to the data to be transmitted; wherein, the fixed connection channel is established by the sending end device and the receiving end device during the first communication, based on the communication address of the sending end device and the communication address of the receiving end device;

[0116] The sending module is used to send the data to be transmitted to the receiving device based on the fixed connection channel.

[0117] It should be noted that the various implementation methods of the device communication device in this embodiment and the technical effects they achieve can be referred to the various implementation methods of the device communication method in the foregoing embodiments, and will not be repeated here.

[0118] Furthermore, embodiments of this application also propose a computer storage medium storing a device communication program. When executed by a processor, the device communication program implements the steps of the device communication method described above. Therefore, it will not be repeated here. Additionally, the beneficial effects of using the same method will not be repeated here either. For technical details not disclosed in the computer-readable storage medium embodiments of this application, please refer to the description of the method embodiments of this application. As an example, program instructions can be deployed to execute on a single computing device, or on multiple computing devices located at one location, or on multiple computing devices distributed across multiple locations and interconnected via a communication network.

[0119] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0120] It should also be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Furthermore, in the accompanying drawings of the device embodiments provided in this application, the connection relationships between modules indicate that they have communication connections, which can be specifically implemented as one or more communication buses or signal lines. Those skilled in the art can understand and implement this without any creative effort.

[0121] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware, or it can be implemented by special-purpose hardware including application-specific integrated circuits, special-purpose CPUs, special-purpose memory, special-purpose components, etc. Generally, any function performed by a computer program can be easily implemented by corresponding hardware, and the specific hardware structure used to implement the same function can also be diverse, such as analog circuits, digital circuits, or special-purpose circuits. However, for this application, software program implementation is more often the preferred implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a computer floppy disk, USB flash drive, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.

[0122] The above are merely preferred embodiments of this application and do not limit the patent scope of this application. Any equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A device communication method, characterized in that, For an intermediate communication device, the intermediate communication device being connected to at least one transmitting end device and one receiving end device respectively, the method includes: Receive the data to be transmitted sent by the sending device; A fixed connection channel corresponding to the data to be transmitted is determined; wherein, the fixed connection channel is established by the sending end device and the receiving end device during their first communication based on the communication address of the sending end device and the communication address of the receiving end device; Based on the fixed connection channel, the data to be transmitted is sent to the receiving device; The step of determining the fixed connection channel corresponding to the data to be transmitted includes: Obtain the source communication address of the data to be transmitted; Determine the target key-value pair corresponding to the source communication address; Based on the target key-value pair, determine the fixed connection channel corresponding to the data to be transmitted; Before the step of receiving the data to be transmitted sent by the sending device, the method further includes: When the sending device communicates with the receiving device for the first time, the first communication address of the sending device is obtained; The target key-value pair is generated based on the first communication address and the second communication address of the receiving device; wherein the second communication address is obtained through pre-configuration. Establish a fixed connection channel corresponding to the target key-value pair.

2. The device communication method according to claim 1, characterized in that, The step of obtaining the first communication address of the sending device when the sending device communicates with the receiving device for the first time includes: When the sending device communicates with the receiving device for the first time, it receives the communication data sent by the sending device; Determine the target communication address of the communication data; The target communication address is matched with the second communication address to obtain a matching result; Based on the matching result, the first communication address of the sending device is obtained.

3. The device communication method according to claim 2, characterized in that, After the step of establishing the fixed connection channel corresponding to the target key-value pair, the method further includes: Detect whether the sending device has received the reply data returned by the receiving device; If the sending device receives the reply data, it triggers the function of the fixed connection channel and controls the sending device to display the message that the fixed connection channel has been successfully established.

4. The device communication method according to claim 1, characterized in that, Before the step of obtaining the first communication address of the sending device when the sending device communicates with the receiving device for the first time, the method further includes: The host computer receives the configuration file of the receiving device; the configuration file includes the second communication address of the receiving device. Extract and store the second communication address.

5. The device communication method according to any one of claims 1-4, characterized in that, The intermediate communication device is the main screen device, the transmitting device is the slave screen device, and the receiving device is the control device.

6. A device communication apparatus, characterized in that, Configured in an intermediate communication device, the intermediate communication device being connected to at least one transmitting end device and one receiving end device respectively, the device communication device comprising: A receiving module is used to receive the data to be transmitted sent by the sending device; A determining module is used to determine a fixed connection channel corresponding to the data to be transmitted; wherein, the fixed connection channel is established by the sending end device and the receiving end device during the first communication, based on the communication address of the sending end device and the communication address of the receiving end device; The transmitting module is used to transmit the data to be transmitted to the receiving device based on the fixed connection channel; The device communication apparatus is specifically used to obtain the source communication address of the data to be transmitted; determine the target key-value pair corresponding to the source communication address; and determine the fixed connection channel corresponding to the data to be transmitted based on the target key-value pair. The device communication apparatus is further configured to, when the sending device communicates with the receiving device for the first time, obtain the first communication address of the sending device; generate the target key-value pair according to the first communication address and the second communication address of the receiving device; wherein the second communication address is obtained through pre-configuration; and establish a fixed connection channel corresponding to the target key-value pair.

7. An intermediate communication device, characterized in that, include: A processor, a memory, and a device communication program stored in the memory, the device communication program being executed by the processor to implement the steps of the device communication method as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a device communication program, which, when executed by a processor, implements the device communication method as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and equipment for forwarding message

    CN103457854A