Host communication system and host communication method

By establishing a communication bus between multiple hosts, each host sends and receives identification information, and sorts the identification information according to preset rules to determine the role of the system host and the system slave, the problem of inability to communicate directly between slaves in the host-slave architecture is solved, and stable communication and management convenience between multiple hosts is achieved.

CN119537044APending Publication Date: 2025-02-28TREND POWER TECH CHANGSHU INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311095274.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-29
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In a network system formed by multiple computer devices, there is a problem that the host-slave architecture cannot communicate directly between slaves, and the host cannot know the slave address, resulting in inconvenient data communication.

Method used

By establishing a communication bus between multiple hosts, each host sends and receives identification information, and sorts the identification information according to preset rules to determine the roles of the system host and the system slave. The system host is responsible for assigning the communication address.

Benefits of technology

It realizes stable communication between multiple hosts, avoids the problem of data collision, and improves management convenience and application flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537044A_ABST
    Figure CN119537044A_ABST
Patent Text Reader

Abstract

A host communication system includes a plurality of hosts. The plurality of hosts are coupled to each other through a communication bus. Each host has identification information, and each host receives the identification information of other hosts through the communication bus. And each host sorts the plurality of pieces of identification information of the plurality of hosts according to a preset rule so as to set each host as a system host or a system slave. The system host is used for providing a communication address for the system slave. Therefore, the hosts can communicate with each other stably.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to management technology between multiple hosts, and more particularly to a host communication system and a host communication method. Background Art

[0002] In a network system formed by multiple computer devices, since each computer device needs to transmit data to each other, in order to avoid data collision, multiple computer devices will be divided into hosts and slaves so that data communication between computer devices can be followed. However, the "host-slave architecture (Client / Server)" still has the problem that slaves cannot communicate directly, and the host may not be able to know the slave address, so an improved technology that is easier to use and has more complete functions is needed. Summary of the invention

[0003] The present disclosure relates to a host communication system, comprising a plurality of hosts. The plurality of hosts are coupled to each other via a communication bus. Each of the hosts has identification information, and each of the hosts receives the identification information of other hosts via the communication bus. Each of the hosts sorts the identification information of the plurality of hosts according to a preset rule to set each of the hosts as a system host or a system slave. The system host is used to provide a communication address to the system slave.

[0004] In one embodiment, each of the hosts compares the sizes of the multiple identification information, and the host corresponding to the largest or smallest of the multiple identification information will automatically set itself as the system master, and the remaining hosts will automatically set themselves as the system slaves.

[0005] In one embodiment, each of the hosts compares the number of devices in the multiple identification information, and the host corresponding to the largest number of devices is automatically set as the system host, and the remaining hosts are automatically set as the system slaves.

[0006] In one embodiment, when the system slave does not receive the transmission data sent by the system master within the receiving time, the system slave restores itself to the initial setting and sends the identification information to the communication bus.

[0007] In one embodiment, when the system host receives new identification information sent by a newly joined host on the communication bus, the system host actively sends a new communication address to the newly joined host, and the newly joined host sets itself as a new system slave.

[0008] The present disclosure relates to a host communication method, which is applied to multiple hosts, including: each of the hosts broadcasts its own identification information through a communication bus; within a preset time, each of the hosts receives the identification information of the remaining hosts through the communication bus; each of the hosts sorts the multiple identification information according to a preset rule, wherein the host corresponding to the highest-ranked one in the identification information is judged as a system host, and the remaining hosts are judged as system slaves; and the system host assigns the system slaves communication addresses on the communication bus, and sends address information to the system slaves respectively.

[0009] In one embodiment, the method for each of the hosts to sort the multiple identification information according to the preset rule includes: each of the hosts compares the sizes of the multiple identification information; and when the identification information corresponding to each of the hosts is the largest or smallest, the corresponding host sets itself as the system host.

[0010] In one embodiment, the method for each of the hosts to sort and compare the multiple identification information according to the preset rules includes: each of the hosts compares the size of the number of multiple devices in the multiple identification information; and when the number of devices corresponding to each of the hosts is the largest, the corresponding host sets itself as the system host.

[0011] In one embodiment, the host communication method further includes: the system slave determines whether the transmission data transmitted by the system host is received within the receiving time; and when the system slave does not receive the transmission data within the receiving time, the system slave restores itself to the initial setting and sends the identification information through the communication bus.

[0012] In one embodiment, the host communication method further includes: the system host receives new identification information from a newly joined host, wherein the newly joined host is not set as the system host or the system slave; the system host actively sends a new communication address to the newly joined host; and the newly joined host sets itself as a new system slave according to the new communication address.

[0013] Accordingly, by analyzing the identification information of each host to confirm and set the system host, multiple hosts will be able to communicate stably and avoid data collision problems. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 is a schematic diagram of a host communication system according to some embodiments of the present disclosure.

[0015] Figure 2 is a schematic diagram of a host communication method according to some embodiments of the present disclosure.

[0016] Figure 3A It is a schematic diagram of execution steps of a system host according to some embodiments of the present disclosure.

[0017] Figure 3B Schematic diagram of execution steps of a system slave according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0018] The following will disclose multiple embodiments of the present invention with the accompanying drawings. For the purpose of clear description, many practical details will be described together in the following description. However, it should be understood that these practical details should not be used to limit the present invention. That is, in some embodiments of the present invention, these practical details are not necessary. In addition, in order to simplify the drawings, some conventional structures and elements will be depicted in a simple schematic manner in the drawings.

[0019] In this document, when an element is referred to as being "connected" or "coupled", it may refer to being "electrically connected" or "electrically coupled". "Connected" or "coupled" may also be used to indicate that two or more elements cooperate or interact with each other. In addition, although the terms "first", "second", etc. are used in this document to describe different elements, the terms are only used to distinguish between elements or operations described by the same technical terms. Unless the context clearly indicates otherwise, the terms do not specifically refer to or imply an order or sequence, nor are they used to limit the present invention.

[0020] Figure 1 FIG. 1 is a schematic diagram of a host communication system 100 according to some embodiments of the present disclosure. The host communication system 100 includes a plurality of hosts 110A-110D, and the plurality of hosts 110A-110D may be coupled to each other via a communication bus CL.

[0021] In one embodiment, each host 110A-110D may be an electronic device such as a computer device, a server, a terminal device, etc., and each host 110A-110D has a processing circuit (such as a central processing unit, a system single chip, an application processor, a digital signal processor, etc.) to perform various operations described in the subsequent paragraphs. Each host 110A-110D may also include a communication circuit or a communication module to convert data into a transmission specification that meets the communication bus CL for transmission to other hosts. Since the definition and implementation of the host can be understood by those skilled in the art, it will not be further described here.

[0022] Each host 110A-110D has identification information, which may be a product number, a model code, a machine code, etc. In one embodiment, the identification information is stored in the memory or firmware of the host by the manufacturer when the host is manufactured.

[0023] When a communication connection is to be established between the hosts 110A-110D, the hosts 110A-110D each send their own identification information via the communication bus CL, and receive identification information from other hosts via the communication bus CL. In one embodiment, the hosts 110A-110D broadcast via the communication bus CL so that other hosts can receive the broadcast information and obtain the identification information.

[0024] When each host 110A-110D receives identification information from other hosts, each host 110A-110D will sort the identification information according to a preset rule. The "preset rule" may be to sort the identification information according to data size or alphabetical order (eg, according to English letters), and the detailed method will be described in the following paragraphs.

[0025] Here, the host 110A is used as an example for explanation. The host 110A will send its own identification information (e.g., "02") through the communication bus CL. At the same time, the host 110A will receive the identification information sent by other hosts 110B to 110D, for example, the identification information of the host 110B is "03", the identification information of the host 110C is "04", and the identification information of the host 110D is "05". Then, the host 110A will sort its own identification information with the other received identification information.

[0026] In one embodiment, the identification information can be sorted "from small to large" or "from large to small". Taking "from small to large" (i.e., the smaller one will be sorted in the front) as an example, when the host 110A determines that its identification information is the smallest among all the hosts 110A to 110D, it will be sorted in the front. At this time, the host 110A will set itself as the "system host".

[0027] At the same time, the other hosts 110B to 110D will also sort their identification information. Taking the host 110B as an example, the host 110B will also sort its own identification information and other received identification information. Since the identification information of the host 110A is sorted first, the host 110B will confirm that the host 110A is the system master, and at the same time, the host 110B will set itself as the "system slave".

[0028] After confirming the system master and the system slaves, the system master (eg, the master 110A) allocates a communication address to each system slave and transmits the communication address to the corresponding system slaves (eg, the masters 110B-110D) via the communication bus CL.

[0029] In one embodiment, the identification information may be the manufacturing information of the host, such as a product number, model code, or device code. Since these numbers may correspond to the newness or oldness of the product, multiple hosts can be quickly sorted by comparing the size of the identification information. The aforementioned "preset rule" may be that the larger the identification information, the higher the ranking, or the smaller the identification information, the higher the ranking. That is, the host corresponding to the largest or smallest identification information will be automatically set as the system master, and the remaining hosts will be automatically set as system slaves.

[0030] In other embodiments, the identification information may include "the number of devices in the host". Since the number of devices may reflect the performance of the product, multiple hosts can be quickly sorted by comparing the number of devices. In other words, the host corresponding to the identification information with the largest number of devices will be automatically set as the system master, and the remaining hosts will be automatically set as system slaves.

[0031] The present disclosure sets one host as the system host and the other hosts as system slaves by sorting identification information. In addition to ensuring the stability of communication transmission, the number of hosts in the host communication system 100 can be increased or decreased in real time according to demand, thereby improving management convenience and application flexibility.

[0032] In another approach, each system slave can be provided with an input / output switch or a dedicated controller to provide a human-machine interface for the administrator to manually input the address, but this approach not only increases the system cost, but also makes the control method more complicated. The present disclosure pre-sets / stores preset rules in multiple hosts, so that multiple hosts can determine the identification information by themselves to confirm the master-slave relationship between each other.

[0033] Figure 2 FIG. 1 is a schematic diagram of a host communication method according to some embodiments of the present disclosure, which is applied to Figure 1 As described above, each of the steps described below may be executed by a processing circuit (e.g., a processor) in each of the hosts 110A-110D, communication transmission may be performed through a communication circuit in each of the hosts 110A-110D, and each of the information, parameters, configuration files, or instructions may be stored in a memory in each of the hosts 110A-110D.

[0034] In step S201, when multiple hosts 110A-110D want to establish a communication connection, each host 110A-110D will start timing and send its own identification information through the communication bus CL within a preset time (e.g., 30 seconds, one minute, or five minutes). In one embodiment, the hosts 110A-110D send the identification information continuously or periodically in a broadcasting manner.

[0035] In step S202, each host 110A-110D receives identification information from other hosts via the communication bus CL. In step S203, the host 110A-110D determines whether the timing is completed (i.e., whether the timing time reaches the preset time). If the timing is not completed, the host continues to receive identification information from other hosts.

[0036] If the timing is completed, in step S204, each host will sort its own identification information and the received identification information according to a preset rule. The preset rule can be arranged according to the size or alphabetical order of the identification information, and the identification information can be the host code or number, or include the number of devices in the host.

[0037] As described above, in one embodiment, the method of sorting identification information may be "comparing the size of all identification information" to set the largest or smallest identification information to the highest ranking, and the corresponding host will set itself as the system host. In other embodiments, the method of sorting identification information may be "comparing the size of the number of devices in all identification information" to set the identification information with the largest number of devices to the highest ranking, and the corresponding host will set itself as the system host.

[0038] In step S205, each host will set itself as a system host or a system slave according to the sorting result. If the host determines that its own identification information is ranked first, it will set itself as a system host; if the host determines that the identification information of other hosts is ranked first, it will set itself as a system slave. The aforementioned method of "setting the system host / system slave" can be to add / modify a configuration file in the memory of the host, or to make the host enter a different operation mode, but the content of the disclosure is not limited to this.

[0039] Figure 3A The flowchart of the system host communication steps according to some embodiments of the present disclosure is shown. Here, the system 110A is used as the system host and the systems 110B-110D are used as the system slaves.

[0040] In step S301, the system host 110A allocates a communication address on the communication bus CL to each system slave 110B-110D. In step S302, the system host 110A sends address information to the corresponding system slave via the communication bus CL, wherein the address information includes the communication address. In some embodiments, the system host 110A sends the identification information of the corresponding slave and the allocated communication address to each system slave 110B-110D for each system slave 110B-110D, so that each system slave 110B-110D can confirm that the communication address is allocated by the host.

[0041] In step S303, the system host 110A determines whether it has received identification information of other hosts again. If new identification information is received again, the system host 110A may execute step S301 again to allocate a communication address to the corresponding host.

[0042] In step S304 , if the system host 110A does not receive the identification information of other hosts, then the system host 110A can communicate with the system slaves 110B to 110D via the communication bus CL as required.

[0043] Figure 3B The flowchart of the communication steps of the system slaves in some embodiments of the present disclosure is shown. In step S305, after the host 110B-110D sets itself as a system slave, each system slave 110B-110D will start counting a receiving time (eg, 10 seconds, 30 seconds or 1 minute).

[0044] In step S306, each system slave 110B-110D determines whether it has received the transmission data from the system master 110A. The "transmission data" may be a command from the system master 110A requesting communication transmission, or may be file data that the system master 110A wants to transmit to the system slaves 110B-110D.

[0045] In step S307, if each system slave 110B-110D receives the transmission data from the system master 110A, each system slave 110B-110D will perform a corresponding response action, such as returning a response data / command including "self-identification information and received communication address" to the system master 110A. Then, each system slave 110B-110D returns to step S305 and restarts the timing.

[0046] In step S308, if each system slave 110B~110D has not received the transmission data from the system host 110A, each system slave 110B~110D will determine whether the timing is completed, that is, determine whether the timing time reaches the receiving time. If each system slave 110B~110D has never received the transmission data from the system host 110A, and the timing time exceeds the receiving time, then in step S309, each system slave 110B~110D can restore itself to the initial setting. That is, it is no longer set as a system slave, but restored to a general (unset) host. At this time, the host 110B~110D can still return to Figure 2 In step S201 shown, identification information is sent via the communication bus CL to search for other hosts again and establish a communication connection.

[0047] In other embodiments, if each system slave 110B~110D does not receive the transmission data within the receiving time, each system slave 110B~110D can not only restore itself to the initial setting, but also further set itself as another system master and send identification information through the communication bus CL to try to establish a communication connection with other masters that have not been contacted.

[0048] When multiple hosts confirm their master-slave relationship and the system host is in the process of allocating communication addresses, new hosts can be added. Figure 1 As shown, it is assumed that the hosts 110A to 110C are connected via Figure 2 In the steps shown, host 110A is confirmed as the system master and hosts 110B-110C are system slaves. Then, when a new host (eg, host 110D) is connected to the communication bus CL, host 110D can still send identification information via the communication bus CL to serve as a system slave.

[0049] Specifically, when the host 110A is set as the system master, if it receives new (unfamiliar) identification information, it means that the host 110D corresponding to this identification information has not been set as the system master or system slave. At this time, the system host 110A does not need to compare the identification information, but can directly allocate and send a new communication address to the newly added host 110D. When the host 110D receives the communication address, it can set itself as a system slave to establish a communication connection.

[0050] The present disclosure does not require additional dedicated controllers or input / output switches in the system. Instead, the hosts can be set as the master and slave by comparing identification information between the hosts. Therefore, it not only saves system setup costs, but also makes control between the hosts more automatic and simple.

[0051] In addition, the system slave can determine whether it has received the transmission data from the system host. If it exceeds the preset receiving time, it means that the communication link between the hosts may be abnormal. At this time, the system slave will be able to automatically restore the initial settings to re-search and establish communication connections with multiple hosts. In other words, the system slave will be able to identify whether the system host responds, so as to automatically restore the initial settings when there is an abnormal situation.

[0052] The various elements, method steps or technical features in the aforementioned embodiments may be combined with each other and are not limited to the order of textual description or the order of presentation of the drawings in the present disclosure.

[0053] Although the present disclosure has been disclosed as above in the form of implementation methods, it is not intended to limit the present disclosure. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present disclosure. Therefore, the scope of protection of the present disclosure shall be determined by the attached claims.

[0054]

Explanation of symbols

[0055] 100: Host communication system

[0056] 110A-110D: Host

[0057] CL: Communication bus

[0058] S201-S205: Steps

[0059] S301-S304: Steps

[0060] S305-S309: steps.

Claims

1. A host communication system, characterized in that: Include: A plurality of hosts are coupled to each other via a communication bus, wherein each of the hosts has identification information, and each of the hosts receives the identification information of other hosts via the communication bus; Each of the hosts sorts the plurality of identification information of the plurality of hosts according to a preset rule, so as to set each of the hosts as a system host or a system slave; as well as The system host is used to provide a communication address to the system slave.

2. The host communication system according to claim 1, characterized in that: Each of the hosts compares the sizes of the multiple identification information, and the host corresponding to the largest or smallest of the multiple identification information will automatically set itself as the system master, and the remaining hosts will automatically set themselves as the system slaves.

3. The host communication system according to claim 1, characterized in that: Each of the hosts compares the number of devices in the plurality of identification information, and the host corresponding to the largest number of devices will automatically set itself as the system host, and the remaining hosts will automatically set themselves as the system slaves.

4. The host communication system according to claim 1, characterized in that: When the system slave does not receive the transmission data sent by the system master within the receiving time, the system slave restores itself to the initial setting and sends the identification information to the communication bus.

5. The host communication system according to claim 1, characterized in that: When the system host receives the new identification information sent by the newly joined host on the communication bus, the system host actively sends a new communication address to the newly joined host, and the newly joined host sets itself as a new system slave.

6. A host communication method, applied to multiple hosts, characterized in that: Include: Each of the hosts broadcasts its own identification information via a communication bus; Within a preset time, each of the hosts receives the identification information of the other hosts via the communication bus; Each of the hosts sorts the multiple identification information according to a preset rule, wherein the host corresponding to the highest-ranked identification information is determined as the system host, and the remaining hosts are determined as system slaves; as well as The system host allocates the communication addresses of the communication bus to the system slaves, and sends address information to the system slaves respectively.

7. The host communication method according to claim 6, characterized in that: The method for each of the hosts to sort the plurality of identification information according to the preset rule comprises: Each of the hosts compares the sizes of the plurality of identification information; and When the identification information corresponding to each of the hosts is the largest or the smallest, the corresponding host sets itself as the system host.

8. The host communication method according to claim 6, characterized in that: The method for each of the hosts to sort and compare the plurality of identification information according to the preset rule comprises: Each of the hosts compares the numbers of multiple devices in the multiple identification information; as well as When the number of the devices corresponding to each of the hosts is the largest, the corresponding host sets itself as the system host.

9. The host communication method according to claim 6, characterized in that: Also includes: The system slave determines whether the transmission data transmitted by the system host is received within the receiving time; and When the system slave does not receive the transmission data within the receiving time, the system slave restores itself to an initial setting and sends the identification information through the communication bus.

10. The host communication method according to claim 6, characterized in that: Also includes: The system host receives new identification information from a newly added host, wherein the newly added host is not set as the system host or the system slave; The system host actively sends a new communication address to the newly added host; and The newly added host sets itself as a new system slave according to the new communication address.