Communication system, communication device and communication method

By using a server in the communication system to broadcast mesh network joining requests and register levels based on hop counts, the problem of constructing and changing mesh networks for devices without user interfaces is solved, and flexible and stable network construction is achieved.

CN114079994BActive Publication Date: 2024-10-29TOSHIBA TEC KK
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202110417646.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-19
Publication Date
2024-10-29
Estimated Expiration
2041-04-19

AI Technical Summary

Technical Problem

It is difficult to build a mesh network between nodes with the existing technology, especially for devices without user interfaces, such as keyboards and printers, and it is difficult to pre-register the server address and change the server address.

Method used

A communication system is designed. The server stores the addresses of multiple communication nodes and sends a mesh network joining request through broadcast. The communication node receives and jumps the request. According to the hop count registration level, a communication path is established between the self-node and the server. Prevent cyclic requests and enable the construction and modification of mesh networks.

Benefits of technology

Even nodes without user interfaces can easily build and change mesh networks, avoiding cyclic requests and improving network flexibility and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114079994B_ABST
    Figure CN114079994B_ABST
Patent Text Reader

Abstract

The present invention discloses a communication system, a communication device and a communication method, which can easily construct a mesh network technology, and the communication system has a server and a communication node. The server broadcasts a mesh network joining request. The communication node receives the mesh network joining request. The communication node jumps the mesh network joining request in the broadcast transmission according to the situation that the destination of the mesh network joining request is not the self-node. The communication node registers the level of the self-node based on the number of hops of the mesh network joining request according to the situation that the destination of the mesh network joining request is the self-node.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority to Japanese patent application No. JP2020-135778, filed on August 11, 2020, and cites the contents of the above application, the disclosure of which is hereby incorporated by reference in its entirety. Technical Field

[0002] Embodiments of the present invention relate to a communication system, a communication device, and a communication method. Background Art

[0003] There is a network that builds a mesh network between nodes and collects information to a server as a basis. For example, when building a mesh network, the node pre-registers the address of the server. When the node is powered on, the node sends a communication path exploration signal to establish a communication path to the server.

[0004] Devices without user interfaces, such as keyboards, touch scanners, and printers, are not easy to register the server address. Therefore, such devices need to register the server address in advance.

[0005] When it is necessary to change the server in the mesh network, it is necessary to change the address of the server registered in each device. However, it is not easy to change the address of the server. Summary of the invention

[0006] In view of the above problems, the technical problem to be solved by the present invention is to provide a communication system, a communication device and a communication method, which can easily build a mesh network.

[0007] To solve the above problem, one embodiment of the present invention provides a communication system having a server and a communication node. The server has a storage unit and a sending unit. The storage unit stores addresses of multiple communication nodes. The sending unit broadcasts a mesh network joining request to multiple communication nodes based on the addresses of multiple communication nodes stored in the storage unit. The communication node has a first receiving unit, a first sending unit, a first registering unit, a second sending unit, a second receiving unit, and a second registering unit. The first receiving unit receives the mesh network joining request. The first sending unit jumps the mesh network joining request in the broadcast transmission according to the situation that the destination of the mesh network joining request is not the self-node. The first registering unit registers the level of the self-node based on the number of hops of the mesh network joining request according to the situation that the destination of the mesh network joining request is the self-node. The second sending unit sends a level request based on the level registration of the self-node performed by the first registering unit. The second receiving unit receives a level response to the level request and including the level of other communication nodes from one or more other communication nodes other than the self-node. The second registration unit registers, among the one or more other communication nodes that have transmitted the rank response, another communication node having the highest rank compared to the rank of the own node registered by the first registration unit, as a communication path between the own node and the server.

[0008] According to the above communication system, a communication system is provided that can easily construct a mesh network even with nodes that do not have a user interface.

[0009] In the above-mentioned communication system, the server has: a receiving unit, which receives information related to the communication path between the communication node and the server; and a registration unit, which registers the communication path between the communication node and the server based on the information related to the communication path received by the receiving unit.

[0010] According to the above-mentioned communication system, the server can register the communication path between the node and the server.

[0011] In the above communication system, the server further includes a transmission unit configured to transmit a request for information related to the communication path to the communication node.

[0012] According to the above communication system, the server can collect the communication paths between the nodes and the server by sending a request for information related to the communication paths.

[0013] In the above communication system, the first transmission unit includes a hop count change unit that changes the hop count of the mesh network participation request.

[0014] According to the above communication system, the number of hops included in the mesh network participation request can be changed.

[0015] In the above communication system, the hop count is the number of nodes that have jumped the mesh network joining request.

[0016] According to the above communication system, the number of hops can be grasped based on the number of nodes to which the mesh network participation request hops.

[0017] In the above communication system, the hop count is the address of the node that has jumped the mesh network joining request.

[0018] According to the above communication system, the number of hops can be grasped by counting the number of addresses of nodes to which the mesh network participation request jumps.

[0019] The communication system may further include a jump stopping unit configured to stop jumping the mesh network joining request during broadcast transmission when the destination of the mesh network joining request is not the own node and the number of hops is a preset upper limit value.

[0020] According to the above communication system, it is possible to prevent a loop of mesh network join requests from occurring within the mesh network.

[0021] In the above-mentioned communication system, the jump stopping unit includes an abnormality notifying unit, and when the second registering unit registers the communication path, the abnormality notifying unit transmits abnormality information to the server through the registered communication path.

[0022] According to the above communication system, it is possible to notify the server that an abnormality has occurred in the mesh network joining request within the mesh network.

[0023] A communication device according to another aspect of the present invention comprises: a first receiving unit, which receives a mesh network joining request; a first sending unit, which jumps the mesh network joining request in the broadcast transmission according to a situation where the destination of the mesh network joining request is not the own node; a first registration unit, which registers the level of the own node based on the number of hops of the mesh network joining request according to a situation where the destination of the mesh network joining request is the own node; a second sending unit, which sends a level request based on the level registration of the own node performed by the first registration unit; a second receiving unit, which receives a level response to the level request from one or more other communication nodes other than the own node, the level response being a level response including the levels of the other communication nodes; and a second registration unit, which registers the other communication node having the highest level compared with the level of the own node registered by the first registration unit as a communication path between the own node and the server among the one or more other communication nodes that have sent the level response.

[0024] According to the above-described communication device, it is possible to provide a communication device that can easily construct a mesh network even if the node does not have a user interface.

[0025] A communication method according to another aspect of the present invention comprises the following steps: in a server, based on the addresses of multiple communication nodes stored in a storage unit, broadcasting a mesh network joining request to the multiple communication nodes; in a communication node, receiving the mesh network joining request; in the communication node, in accordance with a situation where the destination of the mesh network joining request is not the self-node, jumping the mesh network joining request during the broadcast transmission; in the communication node, in accordance with a situation where the destination of the mesh network joining request is the self-node, registering the level of the self-node based on the number of hops of the mesh network joining request; in the communication node, sending a level request based on the level registration of the self-node; in the communication node, receiving a level response to the level request from one or more other communication nodes other than the self-node, the level response being a level response including the levels of the other communication nodes; and in the communication node, among the one or more other communication nodes that have sent the level response, registering the other communication node with the highest level compared with the registered level of the self-node as the communication path between the self-node and the server.

[0026] According to the above communication method, it is possible to provide a communication method that can easily construct a mesh network even with nodes that do not have a user interface. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is a diagram showing an overview of a communication system according to an embodiment.

[0028] Figure 2 This is a block diagram showing an example of the main structure of a server device.

[0029] Figure 3 This is a block diagram showing an example of the main structure of a node.

[0030] Figure 4 This is a flowchart showing an example of a process of transmitting a mesh network participation request by a server device.

[0031] Figure 5 This is a flowchart showing an example of a mesh network participation request reception process performed by a node.

[0032] Figure 6 This is a flowchart showing an example of a process of transmitting a level request by a node.

[0033] Figure 7 This is a flowchart showing an example of a level request reception process performed by a node.

[0034] Figure 8 This is a flowchart showing an example of a process of sending a route request by the server device.

[0035] Fig. 9 This is a flowchart showing an example of a process of receiving a route request by a node.

[0036] Fig.10 This is a diagram showing an example of a data packet used in communication between a node and a server device.

[0037] Description of Reference Numerals

[0038] 1…communication system, 2…mesh network, 10…server device, 11…processor, 12…ROM, 13…RAM, 14…auxiliary storage device, 15…communication interface, 16…bus, 21-25…node, 211…processor, 212…ROM, 213…RAM, 214…auxiliary storage device, 215…communication interface, 216…output device, 217…input device, 218…bus. DETAILED DESCRIPTION

[0039] Hereinafter, the communication system involved in the embodiment will be described with reference to the accompanying drawings. It should be noted that, for the purpose of explanation, the various drawings used in the description of the following embodiments are sometimes shown with the structure omitted. In addition, in the various drawings and this specification, the same reference numerals represent the same elements.

[0040] Figure 1 It is a diagram showing an overview of a communication system 1 according to the embodiment.

[0041] The communication system 1 includes a server device 10 and a plurality of nodes 21 to 25. The server device 10 and the plurality of nodes 21 to 25 constitute a mesh network 2. The mesh network 2 is a multi-hop network. Each node 21 to 25 communicates with the server device 10 via one or more other nodes or without other nodes. That is, each node 21 to 25 can communicate with the server device 10 in a multi-hop manner. In addition, each node 21 to 25 functions as a repeater in the multi-hop communication. Figure 1 Five nodes are shown, but the number of nodes is not limited thereto.

[0042] Figure 2 This is a block diagram showing an example of the main structure of the server device 10.

[0043] The server device 10 is a server that manages the mesh network 2 in an integrated manner. As an example, the server device 10 includes a processor 11, a ROM (read-only memory) 12, a RAM (random-access memory) 13, an auxiliary storage device 14, and a communication interface 15. These components are connected via a bus 16 or the like. The server device 10 is an example of a server.

[0044] The processor 11 is equivalent to the central part of the computer that performs the operations and controls required for the operation of the server device 10. The processor 11 controls the various parts used to realize the various functions of the server device 10 based on the programs such as firmware, system software and application software stored in the ROM 12 or the auxiliary storage device 14. In addition, the processor 11 performs the processing described below based on the program. It should be noted that part or all of the program can also be built into the circuit of the processor 11. The processor 11 is, for example, a CPU (central processing unit), an MPU (micro processing unit), an SoC (system on a chip), a DSP (digital signal processor), a GPU (graphics processing unit), an ASIC (application specific integrated circuit), a PLD (programmable logic device) or an FPGA (field-programmable gate array). Alternatively, the processor 11 is a combination of multiple of these.

[0045] The ROM 12 is equivalent to the main storage device of the computer with the processor 11 as the core. The ROM 12 is a non-volatile memory dedicated to data reading. The ROM 12 stores, for example, firmware, etc., among the above-mentioned programs. In addition, the ROM 12 also stores data used by the processor 11 when performing various processes.

[0046] The RAM 13 is equivalent to the main storage device of the computer with the processor 11 as the core. The RAM 13 is a memory used for reading and writing data. The RAM 13 is used as a work area for storing data temporarily used when the processor 11 performs various processes. Typically, the RAM 13 is a volatile memory.

[0047] The auxiliary storage device 14 is equivalent to an auxiliary storage device of a computer with the processor 11 as the core. The auxiliary storage device 14 is, for example, an EEPROM (registered trademark) (electrically erasable programmable read-only memory), an HDD (hard disk drive), or a flash memory. The auxiliary storage device 14 stores the above-mentioned programs, such as system software and application software. In addition, the auxiliary storage device 14 stores data used when the processor 11 performs various processes, data generated by the processes in the processor 11, and various setting values.

[0048] The auxiliary storage device 14 stores addresses of multiple nodes constituting the mesh network 2. Here, the auxiliary storage device 14 stores addresses of multiple nodes 21 to 25. The addresses of multiple nodes 21 to 25 can be stored in the auxiliary storage device 14 based on user operations. The auxiliary storage device 14 is an example of a storage unit.

[0049] The communication interface 15 is an interface for the server device 10 to perform wireless communication. The communication interface 15 includes a circuit and an antenna for wireless communication, and the like.

[0050] The bus 16 includes a control bus, an address bus, a data bus, and the like, and transmits signals transmitted and received in each unit of the server device 10 .

[0051] Figure 3 This is a block diagram showing an example of the main structure of the node 21.

[0052] Node 21 is a PC (personal computer), tablet PC, smart phone, game console, industrial machinery, POS (point of sale) terminal, printer, communication equipment or IoT (internet of things) equipment with wireless communication function. Node 21 is a device without user interface such as keyboard, touch scanner and printer, and it can also be a variety of devices with wireless communication function. Here, node 21 is used as an example for description, but nodes 22 to 25 are also configured in the same way.

[0053] As an example, the node 21 includes a processor 211, a ROM 212, a RAM 213, an auxiliary storage device 214, a communication interface 215, an output device 216, and an input device 217. And these parts are connected by a bus 218 or the like. It should be noted that the node 21 is an example of a communication node. In addition, the node 21 is an example of a communication device.

[0054] The processor 211 is equivalent to the central part of the computer that performs the operations and controls required for the operation of the node 21. The processor 211 controls the various parts used to implement the various functions of the node 21 based on the programs such as firmware, system software and application software stored in the ROM 212 or the auxiliary storage device 214. In addition, the processor 211 performs the processing described later based on the program. It should be noted that part or all of the program can be built into the circuit of the processor 211. The processor 211 is, for example, a CPU, an MPU, a SoC, a DSP, a GPU, an ASIC, a PLD or an FPGA. Alternatively, the processor 211 is a combination of multiple of these.

[0055] ROM 212 is equivalent to the main storage device of the computer with processor 211 as the core. ROM 212 is a non-volatile memory dedicated to data reading. ROM 212 stores the above-mentioned programs such as firmware. In addition, ROM 212 also stores data used by processor 211 when performing various processes.

[0056] The RAM 213 is equivalent to the main storage device of the computer with the processor 211 as the core. The RAM 213 is a memory used for reading and writing data. The RAM 213 is used as a work area for storing data temporarily used when the processor 211 performs various processes. Typically, the RAM 213 is a volatile memory.

[0057] The auxiliary storage device 214 is equivalent to an auxiliary storage device of a computer with the processor 211 as the core. The auxiliary storage device 214 is, for example, an EEPROM, an HDD, or a flash memory. The auxiliary storage device 214 stores, for example, system software and application software among the above-mentioned programs. In addition, the auxiliary storage device 214 stores data used when the processor 211 performs various processes, data generated by the processes in the processor 211, and various setting values.

[0058] The communication interface 215 is an interface used by the node 21 to perform wireless communication. The communication interface 215 includes a circuit and an antenna for wireless communication, and the like.

[0059] The output device 216 displays a screen for notifying the operator of the node 21 of various information. The output device 216 is, for example, a display such as a liquid crystal display or an organic EL (electro-luminescence) display.

[0060] The input device 217 receives operations performed by the operator of the node 21. The input device 217 is, for example, a keyboard, a numeric keypad, a touchpad, or a mouse. In addition, a touch panel may be used as the output device 216 and the input device 217. That is, the display panel of the touch panel may be used as the output device 216. Furthermore, the pointing device based on touch input of the touch panel may be used as the input device 217. It should be noted that the output device 216 and the input device 217 may not be included in the node 21 depending on the type of the node 21.

[0061] The bus 218 includes a control bus, an address bus, a data bus, and the like, and transmits signals sent and received in each unit of the node 21 .

[0062] The operation of the communication system 1 according to the embodiment will be described below. It should be noted that the processing contents in the following operation description are merely examples, and various processing that can obtain the same result can be used as appropriate.

[0063] First, the process related to the mesh network joining request will be described.

[0064] The mesh network joining request is a request to join the mesh network for a node that has not yet joined the mesh network. The mesh network joining request is sometimes also referred to as a mesh network joining request message or a mesh network joining request signal. Hereinafter, the mesh network joining request is also referred to as a joining request.

[0065] Figure 4 This is a flowchart showing an example of a process of sending a join request by the server device 10 .

[0066] When constructing a mesh network, the server device 10 performs a process of sending a join request.

[0067] The processor 11 executes the processing based on a program stored in the ROM 12 or the auxiliary storage device 14 or the like.

[0068] The processor 11 loads the addresses of the plurality of nodes 21 to 25 (ACT1). In ACT1, for example, the processor 11 loads the addresses of the plurality of nodes 21 to 25 stored in the auxiliary storage device 14 into the RAM 213.

[0069] The processor 11 broadcasts a join request to the multiple nodes 21 to 25 based on the addresses of the multiple nodes 21 to 25 (ACT2). In ACT2, for example, the processor 11 broadcasts a join request via the communication interface 15 with the respective addresses of the multiple nodes 21 to 25 as the destination. The processor 11 sets the respective addresses of the multiple nodes 21 to 25 for the destination address of each join request. The destination address is the final destination device address. The destination address corresponds to the address of the destination. The communication interface 15 can also broadcast a join request. The processor 11 functions as a sending unit by performing the processing of ACT2. In ACT2, the sending unit in which the processor 11 functions is also referred to as the first sending unit.

[0070] The processor 11 determines whether the sending of the join request with the addresses of the plurality of nodes 21 to 25 as the destination has been completed (ACT3). In ACT3, for example, the processor 11 can determine whether the sending of the join request has been completed based on whether the unsent addresses loaded in the RAM 213 remain. In response to the judgment that the sending of the join request has not been completed (ACT3: "No"), the processor 11 repeatedly performs the processing of ACT2. In response to the judgment that the sending of the join request has been completed (ACT3: "Yes"), the processor 11 ends the processing.

[0071] Figure 5 2 is a flowchart showing an example of a joining request reception process performed by the node 21. Here, the node 21 is described as an example, but the nodes 22 to 25 also operate in the same manner. The processor 211 executes this process based on a program stored in the ROM 212 or the auxiliary storage device 214 or the like.

[0072] Processor 211 receives a join request (ACT11). In ACT11, for example, processor 211 receives a join request sent from server device 10 via communication interface 215. The join request sometimes arrives directly from server device 10 to node 21, and sometimes arrives at node 21 from server device 10 after being relayed through one or more other nodes. Communication interface 215 can also receive a join request. Processor 211 functions as a receiving unit by performing the processing of ACT11. In ACT11, the receiving unit in which processor 211 functions is also referred to as a first receiving unit.

[0073] When the processor 211 does not receive a join request (ACT11: "No"), the processor 211 waits for a join request. In response to receiving a join request (ACT11: "Yes"), the processor 211 determines whether the destination of the join request is the own node (ACT12). In ACT12, for example, the processor 211 compares the end point address set in the join request with the address of the own node. Here, the own node is node 21. When the end point address is the address of the own node, the processor 211 determines that the destination of the join request is the own node. On the other hand, when the end point address is not the address of the own node, the processor 211 determines that the destination of the join request is not the own node.

[0074] The processor 211 jumps the join request in the broadcast transmission (ACT13) according to the situation that the destination of the join request is not the own node (ACT12: "No"). In ACT13, for example, the processor 211 jumps the received join request in the broadcast transmission via the communication interface 215. The jump corresponds to the relay operation. The communication interface 215 can also broadcast the received join request. It should be noted that, in one example, the processor 211 can also change the hop count information saved in the join request (hop count change unit). The hop count is the number of nodes to which the join request sent from the server device 10 is jumped. Here, the processor 211 changes the hop count information by adding 1 to the hop count. Thus, each node can determine the number of hops until the join request reaches the own node. In other examples, the processor 211 can also save the address information of the own node in the join request as the address of the node to which the join request is jumped. The join request saves the address information of all nodes by jumping the address information saved by all nodes of the join request sent from the server device 10. Thus, each node can determine the number of hops until the join request reaches the node. The processor 211 functions as a transmitter by performing the process of ACT 13. The transmitter functioning as the processor 211 in ACT 13 is also referred to as a first transmitter.

[0075] It should be noted that, if an abnormality exists in any node (e.g., different addresses, etc.), there is a danger that the join request will continue to circulate in the mesh network. In order to prevent this situation, the upper limit of the number of hops allowed can be pre-stored in the auxiliary storage device 214. For example, 10 is set as the upper limit of the number of hops. The processor 211 confirms the number of hops stored in the join request based on the fact that the destination address of the join request is not the self-node (ACT12, "No"). In the case where the number of hops is 10, which is the preset upper limit, the join request is not jumped (jump termination unit). If the number of hops is not the upper limit, it is jumped.

[0076] In addition, in order to notify the server device 10 that there is an abnormality in the node, the jump termination unit can operate as follows. When the number of hops is 10, which is the upper limit value, the processor 211 confirms whether the address of the server device 10 described later is stored in the auxiliary storage device 214. Furthermore, the processor 211 confirms whether the addresses of other nodes (communication paths) that are the communication paths between the self-node and the server device 10 are stored in the auxiliary storage device 214. In the case where both are stored, the processor 211 sends a message indicating the abnormality of the joining request and the address of the node that is abnormal (abnormal notification unit) with the server device 10 as the destination. In this case, the number of hops is set to 0. The address of the node that is abnormal is read from the joining request that reaches the upper limit value. The message indicating the abnormality and the address of the node that is abnormal are both abnormal information. On the other hand, when the address and communication path of the server device 10 are not stored in the auxiliary storage device 214, the joining request is not jumped. As a result, any node in the mesh network can notify the server device of the node abnormality. In the case where all nodes of the mesh network do not have the output device 216 and the input device 217, the node cannot report that the received join request is in a loop. Even in such a mesh network, the join request abnormality and the abnormal node address can be confirmed by the server device 10. The server device 10 can prevent the later-described path request from being sent to the abnormal node.

[0077] Processor 211 registers the rank of the self-node based on the number of hops of the join request (ACT14), according to the situation that the destination of the join request is the self-node (ACT12: "Yes"). In ACT14, for example, processor 211 determines the number of hops of the join request. In one example, processor 211 determines the number of hops to reach node 21 based on the information of the number of hops saved in the join request. In other examples, processor 211 determines the number of hops to reach node 21 based on the address information of all nodes of the jump saved in the join request. Processor 211 determines the rank of the self-node based on the determined number of hops. The rank of the self-node is a value corresponding to the number of other nodes passed through when data communication is performed between the self-node and the server device 10. As the number of other nodes passed through when data communication is performed between the self-node and the server device 10 increases, the rank of the self-node is a larger value. Here, processor 211 determines the value after adding 1 to the number of hops as the rank of the self-node. For example, when the number of hops is 0, the join request reaches node 21 directly from server device 10. In this case, the rank is 1. That is, the node 21 can communicate data with the server device 10 without the need for the relay of one or more other nodes. For example, when the number of hops is 1, the join request reaches the node 21 from the server device 10 through the relay of one other node. In this case, the level is 2. That is, the node 21 can communicate data with the server device 10 through the relay of one other node. The same applies to the case where the number of hops is 2 or more. The processor 211 registers the determined level of the self-node. The processor 211 stores the registered level of the self-node in the auxiliary storage device 214.

[0078] Here, the node 21 receives a join request with the node itself as the destination, which jumps in the order of the node 24 and the node 25. In ACT 14, the processor 211 determines that the number of hops is "2" and determines the rank of the node itself to be "3". The processor 211 registers the rank of the node itself as "3".

[0079] Furthermore, the processor 211 registers the address of the server device 10 set in the start address of the join request. The start address is the address of the transmission source. The processor 211 stores the registered address of the server device 10 in the auxiliary storage device 214. The processor 211 functions as a registration unit by performing the processing of ACT 14. In ACT 14, the registration unit in which the processor 211 functions is also referred to as a first registration unit.

[0080] Next, the processing related to the level request will be described.

[0081] The level request is a level request corresponding to other nodes. The level request is sometimes also recorded as a level request message, a level request signal or a path discovery signal. For example, the level request is a beacon signal.

[0082] Figure 6 2 is a flowchart showing an example of the transmission process of the level request by the node. Here, the node 21 is described as an example, but the nodes 22 to 25 also operate in the same manner.

[0083] The processor 211 executes the processing based on a program stored in the ROM 212 or the auxiliary storage device 214 or the like.

[0084] The processor 211 sends a level request (ACT 21). In ACT 21, for example, the processor 211 sends a level request via the communication interface 215 based on the level registration of the own node in ACT 14. The communication interface 215 can also send a level request. The processor 211 functions as a sending unit by performing the processing of ACT 21. In ACT 21, the sending unit in which the processor 211 functions is also referred to as a second sending unit.

[0085] Processor 211 receives a level response (ACT22) from one or more other nodes other than the self-node. In ACT22, for example, processor 211 receives a level response from one or more nodes among nodes 22 to 25 via communication interface 215. A level response is a response to a level request and is a response including the level of other nodes. Here, it is assumed that node 21 is the self-node and nodes 22 to 25 are one or more other nodes. For example, the level response from node 22 is a response including the level of node 22. Communication interface 215 is also capable of receiving a level response. Processor 211 functions as a receiving unit by performing processing of ACT22. In ACT22, the receiving unit in which processor 211 functions is also referred to as a second receiving unit.

[0086] When the processor 211 does not receive a level response (ACT22: "No"), the processor 211 continues the processing of ACT21. In response to the processor 211 receiving a level response (ACT22: "Yes"), the processing moves from ACT22 to ACT23. Here, the node 23 sends a level response including the level "1" of the node 23 as a level response to the level request from the node 21 to the node 21. The node 25 sends a level response including the level "2" of the node 25 to the node 21 as a level response to the level request from the node 21. The node 22 sends a level response including the level "4" of the node 22 to the node 21 as a level response to the level request from the node 21. The node 24 does not receive the level request from the node 21, and therefore does not send a level response to the node 21.

[0087] The processor 211 determines whether there is a higher level than the registered level of the own node among the levels of one or more other nodes that have sent level responses (ACT23). In ACT23, for example, the processor 211 obtains the level of the other node based on the level response. The processor 211 compares the level of the one or more other nodes that have sent level responses with the level of the own node. Based on the comparison result, the processor 211 determines whether there is a higher level of the other node compared to the level of the own node. In the case where there is no higher level of the other node compared to the level of the own node (ACT23: "No"), the processor 211 continues the processing of ACT21. In response to the processor 211 determining that there is a higher level of the other node than the level of the own node (ACT23: "Yes"), the processing migrates from ACT23 to ACT24.

[0088] The processor 211 registers the other node with the highest level compared with the level of the registered self-node among one or more other nodes that have sent a level response as a communication path between the self-node and the server device 10 (ACT24). In ACT24, for example, the processor 211 extracts the highest level compared with the level of the self-node from the levels of the other nodes contained in each level response. The extraction of the other nodes with the highest level is to reduce the number of other nodes through which the self-node and the server device 10 pass when performing data communication. Regarding the other nodes with the highest level extracted, sometimes it is the source of the joining request with node 21 as the destination received by node 21, and sometimes it is not the source of the sending. In the latter case, node 21 cannot receive the joining request with node 21 as the destination from the other nodes with the highest level extracted. On the other hand, node 21 can send and receive level requests and level responses with the other nodes with the highest level extracted. This is because the information flow of the broadcast communication of the joining request is large, and the nodes that can communicate originally may become unable to communicate. The extracted other nodes of the highest level are nodes that can be passed through when data communication is performed between the self-node and the server device 10, and can directly perform data communication with the self-node. Therefore, the extracted other nodes of the highest level are the communication paths between the self-node and the server device 10. The processor 211 registers the extracted other nodes of the highest level as the communication paths between the self-node and the server device 10. The processor 211 stores the addresses of the other nodes registered as the communication paths between the self-node and the server device 10 in the auxiliary storage device 214. The processor 211 functions as a registration unit by performing the processing of ACT 23. In ACT 23, the registration unit in which the processor 211 functions is also recorded as the second registration unit.

[0089] For example, in ACT 24, the processor 211 extracts the highest level "1" from the level "1" of the node 23, the level "2" of the node 25, and the level "4" of the node 23, compared with the registered level "3" of the own node. The processor 211 registers the extracted node 23 of the highest level "1" as the communication path between the own node and the server device 10. The processor 211 obtains the address of the node 23 from the level response. The processor 211 stores the address of the node 23 in the auxiliary storage device 214.

[0090] Furthermore, in ACT24, the processor 211 corrects the level of the self-node registered in ACT14 based on the extracted highest level through the function of the first registration unit. For example, the processor 211 corrects the level of the self-node registered in ACT14 to a level that is 1 level lower than the extracted highest level. The processor 211 registers the corrected level of the self-node. The processor 211 saves the registered level of the self-node in the auxiliary storage device 214. This is to be able to include the latest level of the self-node in the level response. For example, the processor 211 corrects the level "3" of the self-node registered in ACT14 to "2" based on the extracted highest level "1". The processor 211 registers the corrected level "2" of the self-node. The processor 211 saves the registered level "2" of the self-node in the auxiliary storage device 214. It should be noted that the processor 211 sometimes does not need to correct the level of the self-node registered in ACT14 based on the extracted highest level.

[0091] Figure 7 2 is a flowchart showing an example of a level request reception process performed by a node. Here, the node 21 is described as an example, but the nodes 22 to 25 also operate in the same manner.

[0092] The processor 211 executes the processing based on a program stored in the ROM 212 or the auxiliary storage device 214 or the like.

[0093] The processor 211 receives a level request (ACT 31). For example, in ACT 31, the processor 211 receives a level request from the node 22 to the node 25 as other nodes via the communication interface 215. The communication interface 215 can also receive a level request. The processor 211 functions as a receiving unit by performing the processing of ACT 31. In ACT 31, the receiving unit in which the processor 211 functions is also referred to as a third receiving unit.

[0094] When the processor 211 does not receive a level request (ACT31: "No"), the processor 211 waits for a level request. In response to receiving a level request (ACT31: "Yes"), the processor 211 sends a level response (ACT32). In ACT32, for example, the processor 211 obtains the level of the registered self-node from the auxiliary storage device 214. The processor 211 sends the level response including the level of the node 21 to the node that sent the level request via the communication interface 215. The communication interface 215 can also send a level response. The processor 211 functions as a sending unit by performing the processing of ACT32. In ACT32, the sending unit in which the processor 211 functions is also recorded as the third sending unit.

[0095] Next, the processing related to the route request will be described.

[0096] A path request is a request for information related to a communication path between a node and the server device 10. Information related to a communication path is information related to a node that is a communication path between the node and the server device 10. For example, information related to a node that is a communication path is information about an address of the node that is a communication path. In a case where a certain node can perform data communication with the server device 10 without passing through other nodes, information related to a communication path is information about the address of the node that is a communication path. For example, in a case where a certain node can perform data communication with the server device 10 via one or more other nodes, information related to a communication path is information about the address of the node that is a communication path and one or more other nodes that are passed through. A path request is also referred to as a path request message or a path request signal.

[0097] Figure 8 1 is a flowchart showing an example of a process of transmitting a route request by the server device 10 .

[0098] The processor 11 executes the processing based on a program stored in the ROM 12 or the auxiliary storage device 14 or the like.

[0099] The processor 11 sends a path request to the multiple nodes 21 to 25 based on the addresses of the multiple nodes 21 to 25 (ACT 41). For example, in ACT 41, the processor 11 broadcasts the path request via the communication interface 15 with the addresses of the multiple nodes 21 to 25 as the destination. The processor 11 sets the addresses of the multiple nodes 21 to 25 as the destination addresses of each path request. The communication interface 15 can also broadcast the path request. The processor 11 functions as a sending unit by performing the processing of ACT 41. In ACT 41, the sending unit in which the processor 11 functions is also recorded as the second sending unit.

[0100] Processor 11 receives path response (ACT 42). In ACT 42, for example, processor 211 receives path response from each of nodes 21 to 25 via communication interface 215. Path response is a response to path request and includes information on the communication path between the node and server device 10.

[0101] Here, the path response from the node 21 is described. In response to the reception of the path request with the address of the node 21 as the destination, the node 21 sends the path response illustrated below. The node 21 sets the address of the node 21 in the source address of the path response. The source address is the address of the device that actually sends the data packet. The node 21 sets the address of the node 23 in the counterparty address of the path response. The counterparty address is the address of the device that actually sends the data packet. This is because the address of the node 23 is stored in the auxiliary storage device 214 as the communication path between the node and the server device 10. The node 21 sets the address of the node 21 in the start address of the path response. The node 21 sets the address of the server device 10 in the end address of the path response. The address of the server device 10 is stored in the auxiliary storage device 214 through the processing of ACT14. The node 21 stores the address of the node 21 as the node itself as information related to the communication path between the node 21 and the server device 10 contained in the path response.

[0102] The above-mentioned path response sent from the node 21 is received by the node 23. In response to the reception of the path response from the node 21, the node 23 jumps the path response illustrated below to the server device 10. The node 23 sets the address of the node 23 in the source address of the path response. The node 23 sets the address of the server device 10 in the counterpart address of the path response. This is because the node 23 stores the address of the server device 10 as the communication path between the node 21 and the server device 10. The starting address of the path response is the address of the node 21 itself. The end address of the path response is the address of the server device 10 itself. The node 23 stores the address of the node 23 as the node itself as the information related to the communication path between the node 21 and the server device 10 contained in the path response. As a result, the information related to the communication path between the node 21 and the server device 10 includes the address of the node 21 and the address of the node 23 in the order of the communication path toward the server device 10.

[0103] The processor 11 of the server device 10 receives from the node 23 a route response transmitted from the node 21 and transmitted in the order of the node 21 and the node 23. The same is true for the route responses from the nodes 22 to 25. The processor 11 functions as a receiving unit by performing the processing of ACT 42.

[0104] When the processor 11 has not received a path response (ACT 42: No), the processor 11 waits for a path response. In response to receiving a path response (ACT 42: Yes), the processor 11 shifts the process from ACT 42 to ACT 43.

[0105] The processor 11 registers the communication path between the node and the server device 10 based on the received information about the communication path (ACT 43). In ACT 43, for example, the processor 11 registers the communication path between the node and the server device 10 based on the information about the communication path included in the path response.

[0106] Here, the path response from the node 21 is described. The processor 11 obtains information related to the communication path between the node 21 and the server device 10 from the path response from the node 21. Based on the information related to the acquired communication path, the processor 11 obtains the address of the node 21 and the address of the node 23 in the order of the communication path toward the server device 10. The processor 11 registers the address of the node 23 and the address of the node 21 together with the order from the server device 10 (the order of the node 23 and the node 21) as the communication path between the node 21 and the server device 10. The processor 11 stores the communication path between the node 21 and the server device 10 in the auxiliary storage device 214. Similarly, the processor 11 registers the communication path between each of the nodes 22 to the node 25 and the server device 10, and stores it in the auxiliary storage device 214. The processor 11 functions as a registration unit by performing the processing of ACT 43. As a result, the server device 10 can collect the communication paths between each of the nodes 21 to the node 25 and the server device 10.

[0107] The processor 11 determines whether the transmission of the route request with the addresses of the plurality of nodes 21 to 25 as the destinations has been completed (ACT 44). In ACT 44, for example, the processor 11 can determine whether the transmission of the route request has been completed based on whether the unsent addresses loaded in the RAM 213 remain. In response to the determination that the transmission of the route request has not been completed (ACT 44: "No"), the processor 11 repeatedly performs the processing of ACT 41. In response to the determination that the transmission of the route request has been completed (ACT 44: "Yes"), the processor 11 ends the processing.

[0108] Fig. 9 This is a flowchart showing an example of a route request reception process performed by a node.

[0109] Here, the node 21 is described as an example, but the nodes 22 to 25 also operate in the same manner. The processor 211 executes the processing based on a program stored in the ROM 212 or the auxiliary storage device 214 or the like.

[0110] Processor 211 receives a route request (ACT 51). In ACT 51, for example, processor 211 receives a route request sent from server device 10 via communication interface 215. Communication interface 215 can also receive a route request. Processor 211 functions as a receiving unit by performing the processing of ACT 51. In ACT 31, the receiving unit in which processor 211 functions is also referred to as a fourth receiving unit.

[0111] When the processor 211 does not receive a route request with the own node as the destination (ACT 51: No), it waits for a route request with the own node as the destination. In response to receiving a route request with another node as the destination, the processor 211 skips the route request with the other node as the destination during broadcast transmission.

[0112] In response to receiving a path request with its own node as the destination (ACT51: "Yes"), the processor 211 sends a path response (ACT52). In ACT52, for example, the processor 211 sends a path response via the communication interface 215, and the path response includes information related to the communication path between the node 21 and the server device 10. The sending source address of the path response is the address of the node 21. The other party address of the path response is the address of the node 23. The starting address of the path response is the address of the node 21. The end address of the path response is the address of the server device 10. The information related to the communication path between the node 21 and the server device 10 includes the address of the node 21 as the own node. The communication interface 215 is also capable of sending a path response. The processor 211 functions as a sending unit by performing the processing of ACT52. In ACT52, the sending unit in which the processor 211 functions is also recorded as the fourth sending unit.

[0113] It should be noted that, in the above example, each node sends information related to the communication path between the node and the server device 10 as a response to the path request, but the present invention is not limited to this. The server device 10 may also omit the sending of the path request. In this example, each node may also actively send information related to the communication path between the node and the server device 10 to the server device 10 at any time. Thus, the server device 10 can collect the communication paths between each of the nodes 21 to 25 and the server device 10 without sending a path request.

[0114] Fig.10 1 is a diagram showing an example of a data packet used in communication between a node and the server device 10 .

[0115] The payload of a data packet includes a header, a relay part, and a data part.

[0116] The header contains the source address, the destination address, the start address, and the destination address.

[0117] The relay unit includes a relay address. The relay address registers the addresses of one or more other nodes that relay packets when the server device 10 sends packets to the nodes in relay order. The relay address is used for downloading but not for uploading.

[0118] The data portion appropriately contains the data to be transmitted.

[0119] A case where the server device 10 transmits a data packet to the node 21 will be described.

[0120] The data packet transmitted by the server device 10 is structured as follows.

[0121] The transmission source address is the address of the server device 10. The destination address is the address of the node 23. The start address is the address of the server device 10. The destination address is the address of the node 21. The relay address is the address of the node 23.

[0122] The data packet that jumps to the node 23 is structured as follows: The source address is the address of the node 23. The destination address is the address of the node 21. The start address is the address of the server device 10. The destination address is the address of the node 21. The relay address is the address of the node 23.

[0123] A case where the node 21 transmits a data packet to the server device 10 will be described.

[0124] The data packet sent by the node 21 is composed as follows.

[0125] The transmission source address is the address of the node 21. The destination address is the address of the node 23. The start address is the address of the node 21. The destination address is the address of the server device 10. The relay address is not used.

[0126] According to the present embodiment, each node registers the level of the self-node based on the joining request sent from the server device. Each node registers the communication path between the self-node and the server device based on the level response from one or more other nodes to the sent level request. Thus, the server device can easily build a mesh network by starting with the sending of the joining request. For example, each node does not need to register the address of the server device before building the mesh network. Therefore, even if the node is a device without a user interface, it becomes easy to build a mesh network accompanied by changes in the server device.

[0127] A part or all of the processing implemented by the processor 11 and the processor 211 through a program in the above-mentioned embodiment may be implemented through a circuit hardware structure.

[0128] Each device involved in the above-mentioned embodiment is transferred to the administrator of each device, etc., in a state where the program for executing each of the above-mentioned processes is stored. Alternatively, each device is transferred to its administrator, etc., in a state where the program is not stored. Furthermore, the program is transferred to its administrator, etc., and stored in each device based on an operation performed by the administrator or service personnel. The transfer of the program at this time can be achieved by using a removable storage medium such as a disk medium or a semiconductor memory, or by downloading via the Internet or LAN, etc.

[0129] Several embodiments of the present invention have been described, but these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other ways, and various omissions, substitutions, and changes can be made without departing from the scope of the invention. These embodiments and their variations are included in the scope and gist of the invention, and include the invention described in the claims and their equivalents.

Claims

1. A communication system, characterized in that: The communication system comprises a server and a communication node. Wherein, the server has: a storage unit storing addresses of a plurality of communication nodes; and a sending unit that broadcasts a mesh network joining request to the plurality of communication nodes based on the addresses of the plurality of communication nodes stored in the storage unit, The communication node has: a first receiving unit configured to receive the mesh network joining request; a first sending unit configured to redirect the mesh network joining request in the broadcast transmission in response to a situation in which the destination of the mesh network joining request is not the own node; a first registering unit for registering a level of the own node based on the number of hops of the mesh network joining request in response to the fact that the destination of the mesh network joining request is the own node; a second sending unit that sends a level request based on the level registration of the own node performed by the first registering unit; a second receiving unit configured to receive a rank response to the rank request from one or more other communication nodes other than the own node, the rank response being a rank response including the rank of the other communication node; and A second registration unit registers, among the one or more other communication nodes that have transmitted the rank response, another communication node having a highest rank compared to the rank of the own node registered by the first registration unit as a communication path between the own node and the server.

2. The communication system according to claim 1, wherein: The server has: a receiving unit configured to receive information related to a communication path between the communication node and the server; as well as A registering unit registers the communication path between the communication node and the server based on the information related to the communication path received by the receiving unit.

3. The communication system according to claim 2, wherein: The server further includes a transmission unit configured to transmit a request for information related to the communication path to the communication node.

4. The communication system according to claim 1, wherein: The first transmission unit includes a hop count changer that changes the hop count of the mesh network participation request.

5. The communication system according to claim 4, wherein: The hop count is the number of nodes that have jumped the mesh network joining request.

6. The communication system according to claim 4, wherein: The hop number is an address of a node that has jumped the mesh network joining request.

7. The communication system according to claim 1, wherein: Also features: A jump stop unit stops jumping the mesh network joining request during broadcast transmission when the destination of the mesh network joining request is not the own node and the number of hops is a preset upper limit value.

8. The communication system according to claim 7, wherein: The jump stopping unit includes an abnormality notifying unit that transmits abnormality information to the server through the registered communication path when the second registering unit registers the communication path.

9. A communication device, characterized in that: have: a first receiving unit configured to receive a mesh network joining request broadcasted by a server to a plurality of communication nodes; a first sending unit configured to redirect the mesh network joining request in the broadcast transmission in response to a situation in which the destination of the mesh network joining request is not the own node; a first registering unit for registering a level of the own node based on the number of hops of the mesh network joining request in response to the fact that the destination of the mesh network joining request is the own node; a second sending unit that sends a level request based on the level registration of the own node performed by the first registering unit; a second receiving unit configured to receive a rank response to the rank request from one or more other communication nodes other than the own node, the rank response being a rank response including the rank of the other communication node; as well as A second registration unit registers, among the one or more other communication nodes that have transmitted the rank response, another communication node having a highest rank compared to the rank of the own node registered by the first registration unit, as a communication path between the own node and the server.

10. A communication method, characterized in that: The following steps are involved: In the server, based on the addresses of the plurality of communication nodes stored in the storage unit, broadcasting and sending a mesh network joining request to the plurality of communication nodes; In a communication node, receiving the mesh network joining request; In the communication node, according to the situation that the destination of the mesh network joining request is not the own node, the mesh network joining request is jumped in the broadcast transmission; In the communication node, in accordance with a situation in which the destination of the mesh network joining request is the own node, registering a level of the own node based on the number of hops of the mesh network joining request; In the communication node, based on the level registration of the own node, sending a level request; In the communication node, receiving a rank response to the rank request from one or more other communication nodes other than the node, the rank response being a rank response including the rank of the other communication node; as well as In the communication node, among the one or more other communication nodes that have transmitted the rank response, another communication node having the highest rank compared to the registered rank of the own node is registered as a communication path between the own node and the server.

Citation Information

Patent Citations

  • Character input system, character input method, input terminal and program

    JP2020135778A

  • Routing method of multi-dimensional network

    CN101883048A

  • Method for realizing routing in sensor network and sensor network

    CN102769885A

  • Data transmission method of wireless meter reading system

    CN103096410A

  • Network device and transmission program

    CN104737589A