WO2018233463A1 - Network communication method for network system - Google Patents

Network communication method for network system Download PDF

Info

Publication number
WO2018233463A1
WO2018233463A1 PCT/CN2018/089045 CN2018089045W WO2018233463A1 WO 2018233463 A1 WO2018233463 A1 WO 2018233463A1 CN 2018089045 W CN2018089045 W CN 2018089045W WO 2018233463 A1 WO2018233463 A1 WO 2018233463A1
Authority
WO
WIPO (PCT)
Prior art keywords
channel layer
base station
data
relay device
node device
Prior art date
Application number
PCT/CN2018/089045
Other languages
French (fr)
Chinese (zh)
Inventor
邵文俊
王军
程绍江
禚百田
张万英
时斌
Original Assignee
青岛海尔空调电子有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 青岛海尔空调电子有限公司 filed Critical 青岛海尔空调电子有限公司
Publication of WO2018233463A1 publication Critical patent/WO2018233463A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

Definitions

  • the present invention relates to the field of wireless communication technologies, and in particular, to a network communication method for a network system.
  • the tree network is formed by vertically connecting multiple levels of star structures, which can be widely used in hierarchical distributed communication systems.
  • the communication control of the tree network is relatively simple, and provides a centralized point for control and error handling.
  • the higher-ranking site in the tree network controls the data communication of the site located below it, and the data transmission of the peer site is realized by the transfer of the upper-level site.
  • the tree network mainly adopts a question-and-answer communication method, specifically: the root node sends instruction information to a node, and the node device feeds back response information to the root node according to the received instruction information, and the root node receives the feedback response. After the information, the instruction information is sent to another node. Adopting this communication method in a tree network with multiple levels and a large number of node devices will prolong the response time of node devices in the tree network, thereby delaying the overall communication time of the tree network and reducing the control efficiency of the root device to the node devices. .
  • the present invention provides a network communication method for a network system.
  • the network system of the present invention comprises a base station and a plurality of channel layers, the farthest channel layer comprises a plurality of node devices, and the non-most remote channel layer comprises a plurality of node devices and a relay device, each of the node devices and at least one
  • the terminal device is in communication connection, and the non-most remote channel layer relay device serially cascades to form a relay device chain, and each non-most remote channel layer relay device communicates with the node device of the next-level channel layer.
  • Connecting, and the relay device and the node device of the most recent channel layer are directly in communication connection with the base station;
  • the network communication method in the present invention includes:
  • the node device of the far-end channel layer After receiving the data reporting instruction, the node device of the far-end channel layer sends the reported data to the base station by using the relay device chain;
  • the node device of the non-most remote channel layer sends the reported data through the relay device chain or directly to the base station after the node device of the next-level channel layer completes the data reporting.
  • the step of “the base station sends a data reporting instruction to each node device in a broadcast form” specifically includes:
  • the base station sends the data reporting instruction to the node device directly connected to the base station, and forwards the data reporting instruction to the node device communicatively connected to each level of the relay device by using the relay device chain.
  • the step of the step that the node device of the most remote channel layer sends the reported data to the base station by using the relay device chain includes:
  • each node device of the most remote channel layer After receiving the data reporting instruction, each node device of the most remote channel layer sequentially sends the reported data to the base station through the relay device chain according to a preset reporting sequence.
  • the steps of the node device that is not the most remote channel layer, after the node device of the next-stage channel layer completes the data reporting, and sends the reported data through the relay device chain or directly to the base station, includes:
  • each node device of the non-most remote channel layer After receiving the data reporting command at the non-most remote channel layer, and after a predetermined time, each node device of the non-most remote channel layer sequentially passes through the relay device chain or directly to the device according to a preset reporting sequence.
  • the base station sends the reported data
  • the predetermined time is the sum of the first time and the second time, and the first time is a sum of time for reporting data of the node devices of all the lower channel layers of the non-most remote channel layer, and the second time
  • the command transmission time is reported for data between the relay device of the non-most remote channel layer and the relay device of the most remote channel layer.
  • the network communication method further includes:
  • address configuration is performed on the node device of the most remote channel layer, the relay device of each non-most remote channel layer, and the node device.
  • the preset reporting order is set according to the address of the node device of each channel layer.
  • the network system further includes a host computer communicatively coupled to the base station;
  • the network communication method further includes:
  • the reporting data of all the node devices connected to the communication device is monitored by each of the relay devices, and the reported data is sent to the upper computer through the relay device chain and the base station.
  • the upper computer uses a MODBUS bus to communicate with the base station; and/or the base station, the relay device, and the node device wirelessly transmit data at an air rate of 1.2 Kbps.
  • the terminal device is a home appliance.
  • the household electrical appliance is an air conditioner.
  • the network communication method of the present invention can send a data reporting instruction to each channel layer in a broadcast form by the base station, and after receiving the data reporting instruction, the node device at the far-end channel layer sends the reported data to the base station through the relay device chain, which is not the most After the node device of the next-level channel layer completes data reporting, the node device of the remote channel layer sends the reported data through the relay device chain or directly to the base station.
  • the technical solution of the present invention can greatly reduce the tree network without increasing the channel bandwidth, because the serial data reporting mode of the layer-by-layer response is adopted, compared with the conventional data communication mode. The communication time of the system.
  • FIG. 1 is a schematic structural diagram of a network system according to an embodiment of the present invention.
  • FIG. 2 is a flow chart showing the main steps of a network communication method in an embodiment of the present invention.
  • the root node in the tree network communicates with each child node separately.
  • the communication duration of the root node is inevitably increased, and the communication duration of the entire tree network is also increased.
  • the present invention provides a network communication method for a network system, which can control a root node in a tree network to broadcast communication information to each of its child nodes, and control each child node to sequentially feedback the layer by layer in a certain order. Information, which can save the communication time of the tree network.
  • FIGS. 1 and 2 A network communication method for a network system according to an embodiment of the present invention will be described below with reference to FIGS. 1 and 2.
  • the network system may include a base station and multiple channel layers, the most remote channel layer includes multiple node devices, and the non-most remote channel layer includes multiple node devices and one relay device, and each node device and at least one
  • the terminal device is in communication connection, and the plurality of non-most remote channel layer relay devices are serially cascaded to form a relay device chain, and each non-most remote channel layer relay device communicates with the node device of the next level channel layer. Connected, and the relay device and node device of the nearest-end channel layer are directly in communication with the base station.
  • the node device can be communicatively coupled to 255 terminal devices.
  • the most recent channel layer in this embodiment refers to a channel layer in which a relay device and a node device directly connected to the base station are located in the network system.
  • the farthest channel layer refers to the channel layer in the network system that has the farthest communication distance with the above-mentioned nearest channel layer.
  • the communication distance refers to the communication data transmission distance of the two channel layers, rather than the geographical location of the two channel layers. The distance of the area.
  • the non-most distal channel layer refers to all channel layers in the network system except the most distal channel layer, that is, the non-most distal channel layer includes the nearest channel layer.
  • Fig. 1 exemplarily shows the structure of a network system in this embodiment.
  • the network system in this embodiment includes m+1 channel layers.
  • the channel layer 0 to the channel layer m-1 each include multiple node devices and one relay device, and the channel layer m includes multiple node devices but does not include a relay device.
  • the m relay devices of the channel layer 0 to the channel layer m-1 are sequentially connected in the order of corresponding channel layer numbers from small to large to form a relay device chain.
  • the head end relay device of the relay device chain that is, the relay device corresponding to channel layer 0, is directly in communication connection with the base station.
  • the channel layer where the relay device and the node device directly connected to the base station are located is the channel layer 0, and the channel layer with the communication distance farthest from the channel layer 0 is the channel layer m, so FIG. 1 In the network system shown, the most recent channel layer is channel layer 0, and the farthest channel layer channel layer m.
  • the base station may represent a root node in a tree network that may be in communication with a plurality of node devices or may be in communication with a relay device. Therefore, in this embodiment, the base station may directly send the command information to the node device directly connected to the base station, or may forward the command information to the other node device via the relay device, and the node device sends the command information to the terminal device.
  • a terminal device refers to a device that performs a corresponding action in accordance with received command information.
  • a relay device refers to a device that forwards data. Further, the relay device can also amplify the data and then forward it to other devices. For example, when the node device is far away from the base station, the relay device can extend the communication distance between the node device and the base station.
  • the network system may include multiple relay devices to meet the communication requirements of the node devices in different locations.
  • the relay device may transmit the command information sent by the base station to each node device, or may feed each node device to the base station. The response information is transmitted to the upper level relay device or the base station.
  • the terminal device may be a home appliance, and the home appliance may perform a corresponding action according to the received instruction information.
  • the terminal device may be an air conditioner, and the command information may be the reported temperature information, and the air conditioner may send the temperature information to the base station after receiving the command information.
  • the upper computer can communicate with the base station to perform overall monitoring and coordination of the network system, for example, monitoring the reported data of each node device received by the base station.
  • the upper computer can communicate with the base station through wireless communication, or can communicate with the base station by wired communication.
  • the communication protocol between the upper computer and the base station can use any communication such as MODBUS communication protocol, HTTP communication protocol or TCP communication protocol. protocol.
  • the upper computer uses a MODBUS bus to communicate with the base station.
  • the airspeed of the base station, the relay device, and the node device are the same, and the airspeed may be an airspeed within a preset airspeed range, for example, the preset airspeed may be 0.6 to 2.4 Kbps. In a preferred technical solution of the embodiment, the airspeed of the base station, the relay device, and the node device may be 1.2 Kbps.
  • Fig. 2 exemplarily shows the main steps of the network communication method in this embodiment.
  • network communication can be performed on the network system shown in FIG. 1 according to the following steps.
  • the method in FIG. 2 includes:
  • Step S101 The base station sends a data report instruction to each node device in a broadcast form.
  • the base station may send a data reporting instruction to the node device directly connected to and communicate with the node device, and forward the data reporting instruction to the node device communicatively connected to each level of the relay device through the relay device chain.
  • the base station sends a data reporting instruction to each node device and relay device in channel layer 0.
  • the relay device in the channel layer 0 sends the received data reporting instruction to each node device and the relay device in the channel layer 1.
  • the relay device of the channel layer 1 transmits the received data reporting instruction to each node device and the relay device in the channel layer 2.
  • Each channel layer transmits the data reporting command sent by the base station according to the foregoing data forwarding manner, which is not described here.
  • Step S102 After receiving the data reporting instruction, the node device at the far-end channel layer sends the reported data to the base station through the relay device chain.
  • each node device in the most remote channel layer in this embodiment may send the reported data to the base station through the relay device chain in sequence according to a preset reporting sequence after receiving the data reporting command.
  • Step S103 After the node device of the non-most remote channel layer completes data reporting, the node device sends the reported data to the base station through the relay device chain or directly.
  • the non-most remote channel layer in this embodiment may send the reported data according to the following steps: after receiving the data reporting instruction at the non-most remote channel layer, and after a predetermined time, the node of the non-most remote channel layer The device sequentially sends the reported data through the relay device chain or directly to the base station according to the preset reporting sequence.
  • the predetermined time is the sum of the first time and the second time
  • the first time is the sum of the time for reporting the data of the node devices of all the lower channel layers of the non-most remote channel layer
  • the second time is the non-most remote channel.
  • Data reporting command transmission time between the relay device of the layer and the relay device of the most remote channel layer.
  • the first time refers to the sum of the time reported by all the node devices between the channel layer m and the channel layer 2
  • the second time refers to the data reporting command transmission time between the relay device of the channel layer 1 and the relay device of the channel layer m.
  • the upper channel layer of one channel layer refers to a channel layer in which the communication distance between the channel layer and the base station is small.
  • the next-stage channel layer of one channel layer refers to a channel layer in which the communication distance from the base station is large in the channel layer to which the one channel layer is communicatively connected.
  • the channel layer m-1 is respectively connected to the channel layer m-2 and the channel layer m, and the communication distance between the channel layer m-2 and the base station is smaller than the communication distance between the channel layer m and the base station, so the channel Layer m-2 is the upper channel layer of channel layer m-1, and channel layer m is the next channel layer of channel layer m-1.
  • the farthest channel layer is only connected to one channel layer, and the communication distance between the channel layer and the base station is smaller than the communication distance between the farthest channel layer and the base station, so the channel layer is the most The upper channel layer of the distal channel layer, that is, the most distal channel layer, has no next channel layer.
  • the method may further include: following the preset address segment, respectively, the node devices of the most remote channel layer, each The relay device and the node device of the non-most remote channel layer perform address configuration.
  • the address information of the relay device and the node device in this embodiment is as shown in Table 1 below:
  • the network system includes a base station, and the base station corresponds to one address information.
  • the address information of the base station may be 0, or 1000, or 2000 or 31000, and the like.
  • Each channel layer of the network system can include 998 node devices.
  • the address information of each node device may be 1 to 998, respectively.
  • the address information of each node device may be 1001 to 1998, respectively.
  • the channel layer 2 includes 998 node devices, the address information of each node device may be 2001 to 2998, respectively.
  • the address information of each node device may be 31001 to 31998, respectively.
  • the channel layer 0 includes four node devices, so the address information of each node device may be 1 to 4, respectively.
  • Each channel layer of the network system may include one relay device.
  • its address information is 999.
  • its address information is 1999, and when the relay device is at channel layer 2, The address information is 2999.
  • the relay device is in the channel layer 31, its address information is 31999.
  • the reporting sequence of sending the reported data by the node device may be set according to the following steps: according to the node device of each channel layer The address configuration is reported in the order.
  • the address information of the three node devices of the most remote channel layer m in the network system are m001, m002, and m003, respectively, and m001 ⁇ m002 ⁇ m003, and the reporting order of the three node devices is It can be determined according to the order of the addresses, for example, "m001, m002, m003".
  • the address information of the four node devices of the non-most remote channel layer 0 in the network system is 1, 2, 3, and 4, respectively, and the reporting order of the four node devices may be determined according to the order of the addresses, for example, "1" , 2, 3, 4".
  • the network system shown in FIG. 1 further includes a host computer communicatively coupled to the base station.
  • the network communication method for the network system shown in FIG. 1 may further include the following steps:
  • the relay device monitors the reported data of all the node devices connected to the communication device, and sends the reported data to the upper computer through the relay device chain and the base station. That is, similar to the above-described data reporting or transmission mode of the present invention, the above operation mode is the monitoring mode of the network system shown in FIG. 1.
  • the base station, the relay device, and the node device of the network system shown in FIG. 1 may be parameterized according to the following operation mode: at a base station, or a relay device, or a node.
  • the base station, or the relay device, or parameters stored in the node device are modified, and the base station, or the relay device, or the node device is restarted after the modification is successful.
  • the parameter modification instruction received by the base station, the relay device, and the node device is consistent with the parameters stored by the base station, the relay device, and the node device, the base station, the relay device, and the node device are directly restarted.
  • the base station, the relay device, and the node device When the parameter modification command received by the base station, the relay device, and the node device is inconsistent with the parameters stored by the base station, the relay device, and the node device, the base station, the relay device, and the node device need to be restarted after the parameters are modified.
  • the base station, the relay device, and the node device do not receive the parameter modification command, they directly enter the normal working state.
  • the base station, the relay device, and the node device in the network system are configured with different address information, so that the base station can directly
  • the address information determines the type of each device in the network system, that is, whether the device is a base station, a relay device, or a node device can be directly determined according to the address information.
  • the remainder obtained by dividing the address information by the preset value may be obtained, and the type of each device in the network system is determined according to the remainder, specifically: if the remainder is the preset first The value is the base station. If the remainder is the preset second value, it is a relay device, otherwise it is a node device. For example, the first value is 0 and the second value is 9.
  • the settable parameters of the network system in this embodiment mainly include air rate, address information, and the transmission frequency of the channel layer, the time interval of the base station broadcast data, the time interval for the relay device to send data, the time interval for the node device to send data, and the reading. Take the starting address of the data, the number of data read, and the longest waiting time of the base station.
  • the parameters of the network system shown in FIG. 1 may further include the number of the relay devices, the number of the node devices, the number of the terminal devices, and the like.
  • the transmission frequency corresponding to the 31 channel layers shown in FIG. 1 may be 410 to 441 MHz, respectively.
  • the time interval at which the base station broadcasts data may be set according to the number of relay devices and node devices, and the communication distance of the network system. When the number of relay devices and node devices is larger, the longer the communication distance of the network system is, the larger the time interval at which the base station broadcasts data.
  • the time interval at which the relay device sends data and the time interval at which the node device sends data can be set by the actual data transmission distance and the corresponding device type.
  • the starting address of the read data refers to the starting address of the data read by the node device.
  • the number of read data refers to the number of data that the node device reads from the start address at a preset time.
  • the longest waiting time of the base station refers to the time when the base station waits for the terminal device to feedback the reported data.
  • the base station sends a data reporting instruction to each node device in a broadcast form.
  • the node device at the far-end channel layer sends the reported data to the base station through the relay device chain; After the node device of the channel layer finishes reporting the data, the node device sends the reported data to the base station through the relay device chain or directly. Due to the data reporting method of layer-by-layer aggregation, the technical solution of the present invention can greatly reduce the communication time of the tree network system without increasing the channel bandwidth compared to the conventional single-point inquiry data communication mode.

Abstract

The present invention relates to the technical field of wireless communications, and particularly provides a network communication method for a network system, aiming at solving the technical problem of the long communication time of a tree-shaped network. For this purpose, the method of the present invention comprises: a base station sending a data reporting instruction to each node device in the form of a broadcast; after receiving the data reporting instruction, a node device of a farthest-end channel layer sending reported data to a base station through a relay device link; and a node device of a non-farthest-end channel layer sending the reported data through the relay device link or directly to the base station after the reporting of data is completed by the node device of a next-level channel layer. The technical solution of the present invention can greatly reduce the communication time of a tree-shaped network.

Description

用于网络系统的网络通信方法Network communication method for network system 技术领域Technical field
本发明涉及无线通信技术领域,具体涉及一种用于网络系统的网络通信方法。The present invention relates to the field of wireless communication technologies, and in particular, to a network communication method for a network system.
背景技术Background technique
树形网络是由多个层次的星型结构纵向连接而成,其可以广泛应用于分级分布式通信系统中。树形网络的通信控制较为简单,而且对控制和差错处理提供了一个集中点。树形网络中处于较高位置的站点控制位于它下面的站点的数据通信,同级站点的数据传输要通过上一级站点的转移来实现。The tree network is formed by vertically connecting multiple levels of star structures, which can be widely used in hierarchical distributed communication systems. The communication control of the tree network is relatively simple, and provides a centralized point for control and error handling. The higher-ranking site in the tree network controls the data communication of the site located below it, and the data transmission of the peer site is realized by the transfer of the upper-level site.
但是,树形网络主要采用一问一答的通信方式,具体为:根部节点向一个节点发送指令信息,节点设备依据所接收的指令信息向根部节点反馈应答信息,当根部节点接收到该反馈应答信息后再向另一个节点发送指令信息。在包含多层级和大量节点设备的树形网络中采用这种通信方式,会延长树形网络中节点设备的应答时间,进而延迟树形网络的整体通信时间,降低根部设备对节点设备的控制效率。However, the tree network mainly adopts a question-and-answer communication method, specifically: the root node sends instruction information to a node, and the node device feeds back response information to the root node according to the received instruction information, and the root node receives the feedback response. After the information, the instruction information is sent to another node. Adopting this communication method in a tree network with multiple levels and a large number of node devices will prolong the response time of node devices in the tree network, thereby delaying the overall communication time of the tree network and reducing the control efficiency of the root device to the node devices. .
发明内容Summary of the invention
为了解决现有技术中的上述问题,即为了解决树形网络通信时间较长的技术问题,本发明提供了一种用于网络系统的网络通信方法。In order to solve the above problems in the prior art, that is, to solve the technical problem that the tree network communication time is long, the present invention provides a network communication method for a network system.
本发明中网络系统包括基站和多个通道层,最远端通道层包括多个节点设备,非最远端通道层包括多个节点设备和一个中继设备,每个所述节点设备与至少一个终端设备通信连接,所述非最远端通道层的中继设备依次串行级联构成中继设备链,每个非最远端通道层的中继设备与下一级通道层的节点设备通信连接,且最近端通道层的中继设备和节点设备与所述基站直接通信连接;The network system of the present invention comprises a base station and a plurality of channel layers, the farthest channel layer comprises a plurality of node devices, and the non-most remote channel layer comprises a plurality of node devices and a relay device, each of the node devices and at least one The terminal device is in communication connection, and the non-most remote channel layer relay device serially cascades to form a relay device chain, and each non-most remote channel layer relay device communicates with the node device of the next-level channel layer. Connecting, and the relay device and the node device of the most recent channel layer are directly in communication connection with the base station;
本发明中网络通信方法包括:The network communication method in the present invention includes:
所述基站以广播形式向每个节点设备发送数据上报指令;Sending, by the base station, a data reporting instruction to each node device in a broadcast manner;
在接收到所述数据上报指令之后,最远端通道层的节点设备通过所述中继设备链向所述基站发送上报数据;After receiving the data reporting instruction, the node device of the far-end channel layer sends the reported data to the base station by using the relay device chain;
非最远端通道层的节点设备在下一级通道层的节点设备完成数据上报之后,通过所述中继设备链或直接向所述基站发送上报数据。The node device of the non-most remote channel layer sends the reported data through the relay device chain or directly to the base station after the node device of the next-level channel layer completes the data reporting.
进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:
“所述基站以广播形式向每个节点设备发送数据上报指令”的步骤具体包括:The step of “the base station sends a data reporting instruction to each node device in a broadcast form” specifically includes:
所述基站向与其直接通信连接的节点设备发送所述数据上报指令,并通过所述中继设备链将所述数据上报指令逐级转发至与每级中继设备通信连接的节点设备。The base station sends the data reporting instruction to the node device directly connected to the base station, and forwards the data reporting instruction to the node device communicatively connected to each level of the relay device by using the relay device chain.
进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:
“最远端通道层的节点设备通过所述中继设备链向所述基站发送上报数据”的步骤具体包括:The step of the step that the node device of the most remote channel layer sends the reported data to the base station by using the relay device chain includes:
在接收到所述数据上报指令之后,最远端通道层的每个节点设备按照预设的上报顺序依次通过所述中继设备链向所述基站发送上报数据。After receiving the data reporting instruction, each node device of the most remote channel layer sequentially sends the reported data to the base station through the relay device chain according to a preset reporting sequence.
进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:
“非最远端通道层的节点设备在下一级通道层的节点设备完成数据上报之后,通过所述中继设备链或直接向所述基站发送上报数据”的步骤具体包括:The steps of the node device that is not the most remote channel layer, after the node device of the next-stage channel layer completes the data reporting, and sends the reported data through the relay device chain or directly to the base station, includes:
在非最远端通道层接收到数据上报指令,并经预定时间之后,所述非最远端通道层的每个节点设备按照预设的上报顺序依次通过所述中继设备链或直接向所述基站发送上报数据,After receiving the data reporting command at the non-most remote channel layer, and after a predetermined time, each node device of the non-most remote channel layer sequentially passes through the relay device chain or directly to the device according to a preset reporting sequence. The base station sends the reported data,
其中,所述预定时间为第一时间与第二时间之和,所述第一时间为所述非最远端通道层的所有下级通道层的节点设备上报数据的时间总和,所述第二时间为所述非最远端通道层的中继设备与最远端通道层的中继设备之间的数据上报指令传输时间。The predetermined time is the sum of the first time and the second time, and the first time is a sum of time for reporting data of the node devices of all the lower channel layers of the non-most remote channel layer, and the second time The command transmission time is reported for data between the relay device of the non-most remote channel layer and the relay device of the most remote channel layer.
进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:
在所述基站以广播形式向每个节点设备发送数据上报指令之前,所述网络通信方法还包括:Before the base station sends a data reporting instruction to each node device in a broadcast form, the network communication method further includes:
按照预设的地址段,分别对最远端通道层的节点设备、每个非最远端通道层的中继设备和节点设备进行地址配置。According to the preset address segment, address configuration is performed on the node device of the most remote channel layer, the relay device of each non-most remote channel layer, and the node device.
进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:
所述预设的上报顺序根据每个通道层的节点设备的地址进行设置。The preset reporting order is set according to the address of the node device of each channel layer.
进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:
所述网络系统还包括与所述基站通信连接的上位机;The network system further includes a host computer communicatively coupled to the base station;
所述网络通信方法还包括:The network communication method further includes:
通过每个中继设备监控与其通信连接的所有节点设备的上报数据,并将所述上报数据经所述中继设备链和基站发送至所述上位机。The reporting data of all the node devices connected to the communication device is monitored by each of the relay devices, and the reported data is sent to the upper computer through the relay device chain and the base station.
进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:
所述上位机采用MODBUS总线与所述基站通信连接;并且/或者所述基站、中继设备和节点设备无线传输数据的空中速率均为1.2Kbps。The upper computer uses a MODBUS bus to communicate with the base station; and/or the base station, the relay device, and the node device wirelessly transmit data at an air rate of 1.2 Kbps.
进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:
所述终端设备为家电设备。The terminal device is a home appliance.
进一步地,本发明提供的一个优选技术方案为:Further, a preferred technical solution provided by the present invention is:
所述家电设备是空调器。The household electrical appliance is an air conditioner.
与现有技术相比,上述技术方案至少具有以下有益效果:Compared with the prior art, the above technical solution has at least the following beneficial effects:
本发明的网络通信方法可以通过基站以广播形式向每个通道层发送数据上报指令,在接收到数据上报指令之后最远端通道层的节点设备通过中继设备链向基站发送上报数据,非最远端通道层的节点设备在下一级通道层的节点设备完成数据上报之后,通过中继设备链或直接向基站发送上报数据。本领域技术人员能够理解的是,由于采用逐层应答的串行数据上报方式,相较于传统的数据通信方式,本发明的技术方案可以在不增加信道带宽的情况下极大地减少树形网络系统的通信时间。The network communication method of the present invention can send a data reporting instruction to each channel layer in a broadcast form by the base station, and after receiving the data reporting instruction, the node device at the far-end channel layer sends the reported data to the base station through the relay device chain, which is not the most After the node device of the next-level channel layer completes data reporting, the node device of the remote channel layer sends the reported data through the relay device chain or directly to the base station. Those skilled in the art can understand that the technical solution of the present invention can greatly reduce the tree network without increasing the channel bandwidth, because the serial data reporting mode of the layer-by-layer response is adopted, compared with the conventional data communication mode. The communication time of the system.
附图说明DRAWINGS
图1是本发明实施例中网络系统的结构示意图;1 is a schematic structural diagram of a network system according to an embodiment of the present invention;
图2是本发明实施例中网络通信方法的主要步骤流程图。2 is a flow chart showing the main steps of a network communication method in an embodiment of the present invention.
具体实施方式Detailed ways
下面参照附图来描述本发明的优选实施方式。本领域技术人员应当理解的是,这些实施方式仅仅用于解释本发明的技术原理,并非旨在限制本发明的保护范围。Preferred embodiments of the present invention are described below with reference to the accompanying drawings. Those skilled in the art should understand that these embodiments are only used to explain the technical principles of the present invention, and are not intended to limit the scope of the present invention.
树形网络中根部节点与其各子节点分别进行通信交互,当根部节点包括大量子节点时,必然会增大根部节点的通信时长,也会增大整个树形网络的通信时长。基于此,本发明提供了一种用于网络系统的网络通信方法,该方法可以控制树形网络中根部节点向其各子节点广播通信信息,并控制各子节点按照一定顺序依次逐层反馈应答信息,从而可以节省树形网络的通信时长。The root node in the tree network communicates with each child node separately. When the root node includes a large number of child nodes, the communication duration of the root node is inevitably increased, and the communication duration of the entire tree network is also increased. Based on this, the present invention provides a network communication method for a network system, which can control a root node in a tree network to broadcast communication information to each of its child nodes, and control each child node to sequentially feedback the layer by layer in a certain order. Information, which can save the communication time of the tree network.
下面结合附图1和2,对本发明实施例中一种用于网络系统的网络通信方法进行说明。A network communication method for a network system according to an embodiment of the present invention will be described below with reference to FIGS. 1 and 2.
本实施例中网络系统可以包括基站和多个通道层,最远端通道层包括多个节点设备,非最远端通道层包括多个节点设备和一个中继设备,每个节点设备与至少一个终端设备通信连接,多个非最远端通道层的中继设备依次串行级联构成中继设备链,每个非最远端通道层的中继设备与下一级通道层的节点设备通信连接,且最近端通道层的中继设备和节点设备与基站直接通信连接。在本实施例的一个优选实施方案中,节点设备可以与255个终端设备通信连接。In this embodiment, the network system may include a base station and multiple channel layers, the most remote channel layer includes multiple node devices, and the non-most remote channel layer includes multiple node devices and one relay device, and each node device and at least one The terminal device is in communication connection, and the plurality of non-most remote channel layer relay devices are serially cascaded to form a relay device chain, and each non-most remote channel layer relay device communicates with the node device of the next level channel layer. Connected, and the relay device and node device of the nearest-end channel layer are directly in communication with the base station. In a preferred embodiment of the embodiment, the node device can be communicatively coupled to 255 terminal devices.
具体地,本实施例中最近端通道层指的是网络系统中,与基站直接通信连接的中继设备和节点设备所在的通道层。最远端通道层指的是网络系统中与上述最近端通道层的通信距离最远的通道层,该通信距离指的是两个通道层的通信数据传输距离,而非两个通道层所在地理区域的距离。非最远端通道层指的是网络系统中除去上述最远端通道层以外所有的通道层,即非最远端通道层包含最近端通道层。Specifically, the most recent channel layer in this embodiment refers to a channel layer in which a relay device and a node device directly connected to the base station are located in the network system. The farthest channel layer refers to the channel layer in the network system that has the farthest communication distance with the above-mentioned nearest channel layer. The communication distance refers to the communication data transmission distance of the two channel layers, rather than the geographical location of the two channel layers. The distance of the area. The non-most distal channel layer refers to all channel layers in the network system except the most distal channel layer, that is, the non-most distal channel layer includes the nearest channel layer.
下面参阅图1,图1示例性示出了本实施例中网络系统的结构。如图1所示,本实施例中网络系统包括m+1个通道层。其中,通道层0至通道层m-1均包括多个节点设备和一个中继设备,通道层m包括多个节点设备但不包括中继设备。本实施例中通道层0至通道层m-1的m个中继设备分别按照对应的通道层序号由小到大的顺序依次连接,形成中继设备链。该中继设备链的首端中继设备,即通道层0对应的中继设备,与基站直接通信连接。具体地,本实施例中与基站直接通信连接的中继设备和节点设备所在的通道层为通道层0,与该通道层0 的通信距离最远的通道层为通道层m,因此图1所示的网络系统中最近端通道层为通道层0,最远端通道层位通道层m。Referring next to Fig. 1, Fig. 1 exemplarily shows the structure of a network system in this embodiment. As shown in FIG. 1, the network system in this embodiment includes m+1 channel layers. The channel layer 0 to the channel layer m-1 each include multiple node devices and one relay device, and the channel layer m includes multiple node devices but does not include a relay device. In this embodiment, the m relay devices of the channel layer 0 to the channel layer m-1 are sequentially connected in the order of corresponding channel layer numbers from small to large to form a relay device chain. The head end relay device of the relay device chain, that is, the relay device corresponding to channel layer 0, is directly in communication connection with the base station. Specifically, in the embodiment, the channel layer where the relay device and the node device directly connected to the base station are located is the channel layer 0, and the channel layer with the communication distance farthest from the channel layer 0 is the channel layer m, so FIG. 1 In the network system shown, the most recent channel layer is channel layer 0, and the farthest channel layer channel layer m.
基站可以表示树形网络中的根部节点,其可以与多个节点设备通信连接,也可以与中继设备通信连接。因此,本实施例中基站可以直接向与其直接通信连接的节点设备发送指令信息,也可以经中继设备向其他节点设备转发指令信息,节点设备再将该指令信息发送至终端设备。The base station may represent a root node in a tree network that may be in communication with a plurality of node devices or may be in communication with a relay device. Therefore, in this embodiment, the base station may directly send the command information to the node device directly connected to the base station, or may forward the command information to the other node device via the relay device, and the node device sends the command information to the terminal device.
在本申请中,终端设备指的是依据所接收的指令信息执行相应动作的设备。中继设备指的是对数据进行转发的设备,进一步地中继设备还可以对数据放大后再将其转发至其他设备。例如,当节点设备与基站距离较远时,中继设备可以延长节点设备与基站之间的通信距离。同时,网络系统中可以包括多个中继设备,满足处于不同位置的节点设备的通信需求,中继设备可以将基站下发的指令信息传输至各节点设备,也可以将各节点设备向基站反馈的应答信息传输至上一级中继设备、或基站。In the present application, a terminal device refers to a device that performs a corresponding action in accordance with received command information. A relay device refers to a device that forwards data. Further, the relay device can also amplify the data and then forward it to other devices. For example, when the node device is far away from the base station, the relay device can extend the communication distance between the node device and the base station. At the same time, the network system may include multiple relay devices to meet the communication requirements of the node devices in different locations. The relay device may transmit the command information sent by the base station to each node device, or may feed each node device to the base station. The response information is transmitted to the upper level relay device or the base station.
本实施例中终端设备可以为家电设备,家电设备可以依据接收的指令信息执行相应的动作。例如,终端设备可以为空调器,指令信息可以为上报温度信息,则空调接收到该指令信息后可以向基站发送温度信息。In this embodiment, the terminal device may be a home appliance, and the home appliance may perform a corresponding action according to the received instruction information. For example, the terminal device may be an air conditioner, and the command information may be the reported temperature information, and the air conditioner may send the temperature information to the base station after receiving the command information.
本实施例中上位机可以与基站通信连接以便进行网络系统的整体监控和协调,例如监控基站接收的各节点设备的上报数据。上位机可以通过无线通信方式与基站通信,也可以采用有线通信方式与基站通信,其中,上位机与基站的通讯协议可以采用MODBUS通讯协议、或HTTP通讯协议、或TCP通讯协议等任一种通讯协议。在本实施例的一个优选技术方案中,上位机采用MODBUS总线与基站通信连接。In this embodiment, the upper computer can communicate with the base station to perform overall monitoring and coordination of the network system, for example, monitoring the reported data of each node device received by the base station. The upper computer can communicate with the base station through wireless communication, or can communicate with the base station by wired communication. The communication protocol between the upper computer and the base station can use any communication such as MODBUS communication protocol, HTTP communication protocol or TCP communication protocol. protocol. In a preferred technical solution of the embodiment, the upper computer uses a MODBUS bus to communicate with the base station.
本实施例中基站、中继设备、节点设备的空中速率相同,该空中速率可以为预设空中速率范围内的空中速率,如预设空中速率可以为0.6~2.4Kbps。在本实施例的一个优选技术方案中,基站、中继设备、节点设备的空中速率可以为1.2Kbps。In this embodiment, the airspeed of the base station, the relay device, and the node device are the same, and the airspeed may be an airspeed within a preset airspeed range, for example, the preset airspeed may be 0.6 to 2.4 Kbps. In a preferred technical solution of the embodiment, the airspeed of the base station, the relay device, and the node device may be 1.2 Kbps.
下面参阅图2,图2示例性示出了本实施例中网络通信方法的主要步骤。如图2所示,本实施例中可以按照下述步骤对图1所示的网络系统进行网络通信,具体地,图2的方法包括:Referring next to Fig. 2, Fig. 2 exemplarily shows the main steps of the network communication method in this embodiment. As shown in FIG. 2, in this embodiment, network communication can be performed on the network system shown in FIG. 1 according to the following steps. Specifically, the method in FIG. 2 includes:
步骤S101:基站以广播形式向每个节点设备发送数据上报指令。Step S101: The base station sends a data report instruction to each node device in a broadcast form.
具体地,基站可以向与其直接通信连接的节点设备发送数据上报指令,并通过中继设备链将数据上报指令逐级转发至与每级中继设备通信连接的节点设备。如图1所示,基站将数据上报指令发送至通道层0内的各节点设备和中继设备。通道层0内的中继设备将所接收到的数据上报指令发送至通道层1内的各节点设备和中继设备。通道层1的中继设备将所接收到的数据上报指令发送至通道层2内的各节点设备和中继设备。各通道层按照上述数据转发方式传输基站发送的数据上报指令,为描述简洁,在此不再赘述。Specifically, the base station may send a data reporting instruction to the node device directly connected to and communicate with the node device, and forward the data reporting instruction to the node device communicatively connected to each level of the relay device through the relay device chain. As shown in FIG. 1, the base station sends a data reporting instruction to each node device and relay device in channel layer 0. The relay device in the channel layer 0 sends the received data reporting instruction to each node device and the relay device in the channel layer 1. The relay device of the channel layer 1 transmits the received data reporting instruction to each node device and the relay device in the channel layer 2. Each channel layer transmits the data reporting command sent by the base station according to the foregoing data forwarding manner, which is not described here.
步骤S102:在接收到数据上报指令之后,最远端通道层的节点设备通过中继设备链向基站发送上报数据。Step S102: After receiving the data reporting instruction, the node device at the far-end channel layer sends the reported data to the base station through the relay device chain.
具体地,本实施例中最远端通道层的每个节点设备在接收到数据上报指令之后,可以按照预设的上报顺序依次通过中继设备链向基站发送上报数据。Specifically, each node device in the most remote channel layer in this embodiment may send the reported data to the base station through the relay device chain in sequence according to a preset reporting sequence after receiving the data reporting command.
步骤S103:非最远端通道层的节点设备在下一级通道层的节点设备完成数据上报之后,通过中继设备链或直接向基站发送上报数据。Step S103: After the node device of the non-most remote channel layer completes data reporting, the node device sends the reported data to the base station through the relay device chain or directly.
具体地,本实施例中非最远端通道层可以按照下述步骤发送上报数据:在非最远端通道层接收到数据上报指令,并经预定时间之后,该非最远端通道层的节点设备按照预设的上报顺序依次通过中继设备链或直接向基站发送上报数据。Specifically, the non-most remote channel layer in this embodiment may send the reported data according to the following steps: after receiving the data reporting instruction at the non-most remote channel layer, and after a predetermined time, the node of the non-most remote channel layer The device sequentially sends the reported data through the relay device chain or directly to the base station according to the preset reporting sequence.
本实施例中预定时间为第一时间与第二时间之和,第一时间为非最远端通道层的所有下级通道层的节点设备上报数据的时间总和,第二时间为非最远端通道层的中继设备与最远端通道层的中继设备之间的数据上报指令传输时间。如图1所示,通道层1的节点设备通过通道层0的中继设备向基站发送上报数据时,第一时间指的是通道层m至通道层2之间所有节点设备上报数据的时间总和,第二时间指的是通道层1的中继设备与通道层m的中继设备之间的数据上报指令传输时间。In this embodiment, the predetermined time is the sum of the first time and the second time, and the first time is the sum of the time for reporting the data of the node devices of all the lower channel layers of the non-most remote channel layer, and the second time is the non-most remote channel. Data reporting command transmission time between the relay device of the layer and the relay device of the most remote channel layer. As shown in FIG. 1 , when the node device of the channel layer 1 sends the reported data to the base station through the relay device of the channel layer 0, the first time refers to the sum of the time reported by all the node devices between the channel layer m and the channel layer 2 The second time refers to the data reporting command transmission time between the relay device of the channel layer 1 and the relay device of the channel layer m.
本实施例中一个通道层的上一级通道层指的是所述一个通道层所通信连接的通道层中,与基站的通信距离较小的通道层。相应地,一个通道层的下一级通道层指的是所述一个通道层所通信连接 的通道层中,与基站的通信距离较大的通道层。如图1所示,通道层m-1分别与通道层m-2和通道层m通信连接,而通道层m-2与基站的通信距离,要小于通道层m与基站的通信距离,因此通道层m-2是通道层m-1的上一级通道层,通道层m是通道层m-1的下一级通道层。In the present embodiment, the upper channel layer of one channel layer refers to a channel layer in which the communication distance between the channel layer and the base station is small. Correspondingly, the next-stage channel layer of one channel layer refers to a channel layer in which the communication distance from the base station is large in the channel layer to which the one channel layer is communicatively connected. As shown in FIG. 1, the channel layer m-1 is respectively connected to the channel layer m-2 and the channel layer m, and the communication distance between the channel layer m-2 and the base station is smaller than the communication distance between the channel layer m and the base station, so the channel Layer m-2 is the upper channel layer of channel layer m-1, and channel layer m is the next channel layer of channel layer m-1.
需要说明的是:本实施例中最远端通道层仅与一个通道层连接,且该通道层与基站的通信距离,要小于最远端通道层与基站的通信距离,因此该通道层为最远端通道层的上一级通道层,即最远端通道层没有下一级通道层。It should be noted that, in this embodiment, the farthest channel layer is only connected to one channel layer, and the communication distance between the channel layer and the base station is smaller than the communication distance between the farthest channel layer and the base station, so the channel layer is the most The upper channel layer of the distal channel layer, that is, the most distal channel layer, has no next channel layer.
进一步地,在本实施例的一个优选实施方案中,在图2所示的步骤S101之前还可以包括下述步骤:按照预设的地址段,分别对最远端通道层的节点设备、每个非最远端通道层的中继设备和节点设备进行地址配置。Further, in a preferred embodiment of the present embodiment, before the step S101 shown in FIG. 2, the method may further include: following the preset address segment, respectively, the node devices of the most remote channel layer, each The relay device and the node device of the non-most remote channel layer perform address configuration.
作为示例,本实施例中中继设备和节点设备的地址信息如下表1所示:As an example, the address information of the relay device and the node device in this embodiment is as shown in Table 1 below:
表1Table 1
Figure PCTCN2018089045-appb-000001
Figure PCTCN2018089045-appb-000001
具体地,网络系统包括一个基站,且该基站对应一个地址信息。例如,基站的其地址信息可以为0、或1000、或2000或、31000等。Specifically, the network system includes a base station, and the base station corresponds to one address information. For example, the address information of the base station may be 0, or 1000, or 2000 or 31000, and the like.
网络系统的各通道层可以包括998个节点设备。当通道层0包括998个节点设备时,各节点设备的地址信息可以分别为1~998。当通道层1包括998个节点设备时,各节点设备的地址信息可以分别为1001~1998。当通道层2包括998个节点设备时,各节点设备的地址信息可以分别为2001~2998。当通道层31包括998个节点设备时,各 节点设备的地址信息可以分别为31001~31998。本实施例中通道层0包括四个节点设备,因此各节点设备的地址信息可以分别为1~4。Each channel layer of the network system can include 998 node devices. When the channel layer 0 includes 998 node devices, the address information of each node device may be 1 to 998, respectively. When the channel layer 1 includes 998 node devices, the address information of each node device may be 1001 to 1998, respectively. When the channel layer 2 includes 998 node devices, the address information of each node device may be 2001 to 2998, respectively. When the channel layer 31 includes 998 node devices, the address information of each node device may be 31001 to 31998, respectively. In this embodiment, the channel layer 0 includes four node devices, so the address information of each node device may be 1 to 4, respectively.
网络系统的各通道层可以包括1个中继设备,当中继设备处于通道层0时其地址信息为999,当中继设备处于通道层1时其地址信息为1999,当中继设备处于通道层2时其地址信息为2999,当中继设备处于通道层31时其地址信息为31999。Each channel layer of the network system may include one relay device. When the relay device is at channel layer 0, its address information is 999. When the relay device is at channel layer 1, its address information is 1999, and when the relay device is at channel layer 2, The address information is 2999. When the relay device is in the channel layer 31, its address information is 31999.
进一步地,在本实施例的一个优选实施方案中,在图2所示的步骤S102和S103中,可以按照下述步骤设置节点设备发送上报数据的上报顺序:根据每个通道层的节点设备的地址配置上报顺序。Further, in a preferred embodiment of the present embodiment, in steps S102 and S103 shown in FIG. 2, the reporting sequence of sending the reported data by the node device may be set according to the following steps: according to the node device of each channel layer The address configuration is reported in the order.
具体地,如图1所示,网络系统中最远端通道层m的三个节点设备的地址信息分别为m001、m002和m003,且m001<m002<m003,则这三个节点设备的上报顺序可以依据地址的大小顺序确定,例如可以为“m001、m002、m003”。网络系统中非最远端通道层0的四个节点设备的地址信息分别为1、2、3和4,则这四个节点设备的上报顺序可以依据地址的大小顺序确定,例如可以为“1、2、3、4”。Specifically, as shown in FIG. 1 , the address information of the three node devices of the most remote channel layer m in the network system are m001, m002, and m003, respectively, and m001 <m002 < m003, and the reporting order of the three node devices is It can be determined according to the order of the addresses, for example, "m001, m002, m003". The address information of the four node devices of the non-most remote channel layer 0 in the network system is 1, 2, 3, and 4, respectively, and the reporting order of the four node devices may be determined according to the order of the addresses, for example, "1" , 2, 3, 4".
关于地址配置,需要指出的是,尽管这里详细描述了具体的地址配置方式,但是这仅仅是示例性的,并不构成对本发明的限制,只要能使每个通道层的节点设备按照一定顺序有序地依次进行数据上报,本发明可以采用任何适当的地址配置方法。Regarding the address configuration, it should be noted that although the specific address configuration manner is described in detail herein, this is merely exemplary and does not constitute a limitation of the present invention, as long as the node devices of each channel layer can be arranged in a certain order. The data is reported sequentially in sequence, and the present invention can employ any suitable address configuration method.
进一步地,由前述可知,图1所示的网络系统还包括与基站通信连接的上位机,相应地,用于图1所示的网络系统的网络通信方法还可以包括下述步骤:通过每个中继设备监控与其通信连接的所有节点设备的上报数据,并将上报数据经中继设备链和基站发送至上位机。即,与本发明的上述数据上报或传输模式类似,上述操作模式是图1所示网络系统的监控模式。Further, it can be seen from the foregoing that the network system shown in FIG. 1 further includes a host computer communicatively coupled to the base station. Accordingly, the network communication method for the network system shown in FIG. 1 may further include the following steps: The relay device monitors the reported data of all the node devices connected to the communication device, and sends the reported data to the upper computer through the relay device chain and the base station. That is, similar to the above-described data reporting or transmission mode of the present invention, the above operation mode is the monitoring mode of the network system shown in FIG. 1.
进一步地,在本实施例的一个优选实施方案中,可以按照下述操作模式对图1所示网络系统的基站、中继设备和节点设备进行参数设置:在基站、或中继设备、或节点设备启动后修改基站、或该中继设备、或该节点设备中存储的参数,并在修改成功后重新启动基站、或该中继设备、或该节点设备。具体地,当基站、中继设备和节点设备接收到的参数修改指令与基站、中继设备和节点设备存储的参数一致时,直接重新启动基站、中继设备和节点设备。当基站、中继设备和节点设备 接收到的参数修改指令与基站、中继设备和节点设备存储的参数不一致时,需要在修改参数后再重新启动基站、中继设备和节点设备。当基站、中继设备和节点设备没有收到参数修改指令时直接进入正常工作状态,同时,由前述可知网络系统中基站、中继设备和节点设备均配置有不同的地址信息,因此可以直接依据地址信息判断网络系统内各装置的类型,即可以直接依据地址信息判断一个装置是否为基站、或中继设备、或节点设备。在本实施例的一个优选实施方案中,可以获取地址信息除以预设数值后得到的余数,并依据该余数确定网络系统内各装置的类型,具体为:若该余数为预设的第一数值则为基站,若该余数为预设的第二数值则为中继设备,否则为节点设备,例如第一数值为0,第二数值为9。Further, in a preferred embodiment of the embodiment, the base station, the relay device, and the node device of the network system shown in FIG. 1 may be parameterized according to the following operation mode: at a base station, or a relay device, or a node. After the device is started, the base station, or the relay device, or parameters stored in the node device are modified, and the base station, or the relay device, or the node device is restarted after the modification is successful. Specifically, when the parameter modification instruction received by the base station, the relay device, and the node device is consistent with the parameters stored by the base station, the relay device, and the node device, the base station, the relay device, and the node device are directly restarted. When the parameter modification command received by the base station, the relay device, and the node device is inconsistent with the parameters stored by the base station, the relay device, and the node device, the base station, the relay device, and the node device need to be restarted after the parameters are modified. When the base station, the relay device, and the node device do not receive the parameter modification command, they directly enter the normal working state. At the same time, it can be known that the base station, the relay device, and the node device in the network system are configured with different address information, so that the base station can directly The address information determines the type of each device in the network system, that is, whether the device is a base station, a relay device, or a node device can be directly determined according to the address information. In a preferred embodiment of the present embodiment, the remainder obtained by dividing the address information by the preset value may be obtained, and the type of each device in the network system is determined according to the remainder, specifically: if the remainder is the preset first The value is the base station. If the remainder is the preset second value, it is a relay device, otherwise it is a node device. For example, the first value is 0 and the second value is 9.
本实施例中网络系统的可设置参数主要包括空中速率、地址信息,以及通道层的发射频率、基站广播数据的时间间隔、中继设备发送数据的时间间隔、节点设备发送数据的时间间隔、读取数据的起始地址、读取数据的个数、基站的最长等待时间。同时,图1所示网络系统的参数还可以包括中继设备的数量、节点设备的数量、终端设备的数量等。其中,图1所示的31个通道层对应的发射频率分别可以为410~441MHz。基站广播数据的时间间隔可以依据中继设备和节点设备的数量,以及网络系统的通信距离设定。当中继设备和节点设备的数量越多,网络系统的通信距离越长时基站广播数据的时间间隔越大。中继设备发送数据的时间间隔,以及节点设备发送数据的时间间隔,可以实际的数据传输距离和相应的设备类型设定。读取数据的起始地址指的是节点设备读取数据的起始地址。读取数据的个数指的是节点设备在预设时间从起始地址读取的数据的个数。基站的最长等待时间指的是基站等待终端设备反馈上报数据的时间。The settable parameters of the network system in this embodiment mainly include air rate, address information, and the transmission frequency of the channel layer, the time interval of the base station broadcast data, the time interval for the relay device to send data, the time interval for the node device to send data, and the reading. Take the starting address of the data, the number of data read, and the longest waiting time of the base station. Meanwhile, the parameters of the network system shown in FIG. 1 may further include the number of the relay devices, the number of the node devices, the number of the terminal devices, and the like. The transmission frequency corresponding to the 31 channel layers shown in FIG. 1 may be 410 to 441 MHz, respectively. The time interval at which the base station broadcasts data may be set according to the number of relay devices and node devices, and the communication distance of the network system. When the number of relay devices and node devices is larger, the longer the communication distance of the network system is, the larger the time interval at which the base station broadcasts data. The time interval at which the relay device sends data and the time interval at which the node device sends data can be set by the actual data transmission distance and the corresponding device type. The starting address of the read data refers to the starting address of the data read by the node device. The number of read data refers to the number of data that the node device reads from the start address at a preset time. The longest waiting time of the base station refers to the time when the base station waits for the terminal device to feedback the reported data.
本实施例中通过基站以广播形式向每个节点设备发送数据上报指令,在接收到数据上报指令之后,最远端通道层的节点设备通过中继设备链向基站发送上报数据;非最远端通道层的节点设备在下一级通道层的节点设备完成数据上报之后,通过中继设备链或直接向基站发送上报数据。由于采用逐层汇总的数据上报方式,相较于传统的单点问询数据通信方式,本发明的技术方案可以在不增加信道带宽的情况下极大地减少树形网络系统的通信时间。In this embodiment, the base station sends a data reporting instruction to each node device in a broadcast form. After receiving the data reporting instruction, the node device at the far-end channel layer sends the reported data to the base station through the relay device chain; After the node device of the channel layer finishes reporting the data, the node device sends the reported data to the base station through the relay device chain or directly. Due to the data reporting method of layer-by-layer aggregation, the technical solution of the present invention can greatly reduce the communication time of the tree network system without increasing the channel bandwidth compared to the conventional single-point inquiry data communication mode.
上述实施例中虽然将各个步骤按照上述先后次序的方式进行了描述,但是本领域技术人员可以理解,为了实现本实施例的效果,不同的步骤之间不必按照这样的次序执行,其可以同时(并行)执行或以颠倒的次序执行,这些简单的变化都在本发明的保护范围之内。In the above embodiment, although the steps are described in the above-described order, those skilled in the art can understand that in order to implement the effects of the embodiment, different steps need not be performed in this order, which can be simultaneously ( Performed in parallel or in reverse order, these simple variations are within the scope of the invention.
本领域的技术人员能够理解,尽管在此所述的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在本发明的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。It will be understood by those skilled in the art that although some embodiments described herein include certain features included in other embodiments and not other features, combinations of features of different embodiments are intended to be within the scope of the present invention. And different embodiments are formed. For example, in the claims of the present invention, any one of the claimed embodiments can be used in any combination.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的PC来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed PC. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item. The use of the words first, second, and third does not indicate any order. These words can be interpreted as names.
至此,已经结合附图所示的优选实施方式描述了本发明的技术方案,但是,本领域技术人员容易理解的是,本发明的保护范围显然不局限于这些具体实施方式。在不偏离本发明的原理的前提下,本领域技术人员可以对相关技术特征作出等同的更改或替换,这些更改或替换之后的技术方案都将落入本发明的保护范围之内。Heretofore, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the drawings, but it is obvious to those skilled in the art that the scope of the present invention is obviously not limited to the specific embodiments. Those skilled in the art can make equivalent changes or substitutions to the related technical features without departing from the principles of the present invention, and the technical solutions after the modifications or replacements fall within the scope of the present invention.

Claims (10)

  1. 一种用于网络系统的网络通信方法,所述网络系统包括基站和多个通道层,最远端通道层包括多个节点设备,非最远端通道层包括多个节点设备和一个中继设备,每个所述节点设备与至少一个终端设备通信连接,所述非最远端通道层的中继设备依次串行级联构成中继设备链,每个非最远端通道层的中继设备与下一级通道层的节点设备通信连接,且最近端通道层的中继设备和节点设备与所述基站直接通信连接;A network communication method for a network system, the network system comprising a base station and a plurality of channel layers, the farthest channel layer comprising a plurality of node devices, and the non-most remote channel layer comprising a plurality of node devices and a relay device Each of the node devices is in communication with at least one terminal device, and the non-most remote channel layer relay devices are serially cascaded to form a relay device chain, and each non-most remote channel layer relay device Communicating with the node device of the next-level channel layer, and the relay device and the node device of the nearest-end channel layer are directly in communication connection with the base station;
    其特征在于,所述网络通信方法包括:The method for network communication includes:
    所述基站以广播形式向每个节点设备发送数据上报指令;Sending, by the base station, a data reporting instruction to each node device in a broadcast manner;
    在接收到所述数据上报指令之后,最远端通道层的节点设备通过所述中继设备链向所述基站发送上报数据;After receiving the data reporting instruction, the node device of the far-end channel layer sends the reported data to the base station by using the relay device chain;
    非最远端通道层的节点设备在下一级通道层的节点设备完成数据上报之后,通过所述中继设备链或直接向所述基站发送上报数据。The node device of the non-most remote channel layer sends the reported data through the relay device chain or directly to the base station after the node device of the next-level channel layer completes the data reporting.
  2. 根据权利要求1所述的网络通信方法,其特征在于,The network communication method according to claim 1, wherein
    “所述基站以广播形式向每个节点设备发送数据上报指令”的步骤具体包括:The step of “the base station sends a data reporting instruction to each node device in a broadcast form” specifically includes:
    所述基站向与其直接通信连接的节点设备发送所述数据上报指令,并通过所述中继设备链将所述数据上报指令逐级转发至与每级中继设备通信连接的节点设备。The base station sends the data reporting instruction to the node device directly connected to the base station, and forwards the data reporting instruction to the node device communicatively connected to each level of the relay device by using the relay device chain.
  3. 根据权利要求1所述的网络通信方法,其特征在于,The network communication method according to claim 1, wherein
    “最远端通道层的节点设备通过所述中继设备链向所述基站发送上报数据”的步骤具体包括:The step of the step that the node device of the most remote channel layer sends the reported data to the base station by using the relay device chain includes:
    在接收到所述数据上报指令之后,最远端通道层的每个节点设备按照预设的上报顺序依次通过所述中继设备链向所述基站发送上报数据。After receiving the data reporting instruction, each node device of the most remote channel layer sequentially sends the reported data to the base station through the relay device chain according to a preset reporting sequence.
  4. 根据权利要求3所述的网络通信方法,其特征在于,The network communication method according to claim 3, characterized in that
    “非最远端通道层的节点设备在下一级通道层的节点设备完成数据上报之后,通过所述中继设备链或直接向所述基站发送上报数据”的步骤具体包括:The steps of the node device that is not the most remote channel layer, after the node device of the next-stage channel layer completes the data reporting, and sends the reported data through the relay device chain or directly to the base station, includes:
    在非最远端通道层接收到数据上报指令,并经预定时间之后,所述非最远端通道层的每个节点设备按照预设的上报顺序依次通过所述中继设备链或直接向所述基站发送上报数据,After receiving the data reporting command at the non-most remote channel layer, and after a predetermined time, each node device of the non-most remote channel layer sequentially passes through the relay device chain or directly to the device according to a preset reporting sequence. The base station sends the reported data,
    其中,所述预定时间为第一时间与第二时间之和,所述第一时间为所述非最远端通道层的所有下级通道层的节点设备上报数据的时间总和,所述第二时间为所述非最远端通道层的中继设备与最远端通道层的中继设备之间的数据上报指令传输时间。The predetermined time is the sum of the first time and the second time, and the first time is a sum of time for reporting data of the node devices of all the lower channel layers of the non-most remote channel layer, and the second time The command transmission time is reported for data between the relay device of the non-most remote channel layer and the relay device of the most remote channel layer.
  5. 根据权利要求4所述的网络通信方法,其特征在于,The network communication method according to claim 4, characterized in that
    在所述基站以广播形式向每个节点设备发送数据上报指令之前,所述网络通信方法还包括:Before the base station sends a data reporting instruction to each node device in a broadcast form, the network communication method further includes:
    按照预设的地址段,分别对最远端通道层的节点设备、每个非最远端通道层的中继设备和节点设备进行地址配置。According to the preset address segment, address configuration is performed on the node device of the most remote channel layer, the relay device of each non-most remote channel layer, and the node device.
  6. 根据权利要求5所述的网络通信方法,其特征在于,The network communication method according to claim 5, characterized in that
    所述预设的上报顺序根据每个通道层的节点设备的地址进行设置。The preset reporting order is set according to the address of the node device of each channel layer.
  7. 根据权利要求1至6中任一项所述的网络通信方法,其特征在于,所述网络系统还包括与所述基站通信连接的上位机;The network communication method according to any one of claims 1 to 6, wherein the network system further comprises a host computer communicably connected to the base station;
    所述网络通信方法还包括:The network communication method further includes:
    通过每个中继设备监控与其通信连接的所有节点设备的上报数据,并将所述上报数据经所述中继设备链和基站发送至所述上位机。The reporting data of all the node devices connected to the communication device is monitored by each of the relay devices, and the reported data is sent to the upper computer through the relay device chain and the base station.
  8. 根据权利要求7所述的网络通信方法,其特征在于,The network communication method according to claim 7, wherein
    所述上位机采用MODBUS总线与所述基站通信连接;并且/或者所述基站、中继设备和节点设备无线传输数据的空中速率均为1.2Kbps。The upper computer uses a MODBUS bus to communicate with the base station; and/or the base station, the relay device, and the node device wirelessly transmit data at an air rate of 1.2 Kbps.
  9. 根据权利要求1至6中任一项所述的网络通信方法,其特征在于,所述终端设备为家电设备。The network communication method according to any one of claims 1 to 6, wherein the terminal device is a home appliance.
  10. 根据权利要求9所述的网络通信方法,其特征在于,The network communication method according to claim 9, wherein
    所述家电设备是空调器。The household electrical appliance is an air conditioner.
PCT/CN2018/089045 2017-06-23 2018-05-30 Network communication method for network system WO2018233463A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710484205.5 2017-06-23
CN201710484205.5A CN107396417B (en) 2017-06-23 2017-06-23 Network communication method for network system

Publications (1)

Publication Number Publication Date
WO2018233463A1 true WO2018233463A1 (en) 2018-12-27

Family

ID=60332685

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089045 WO2018233463A1 (en) 2017-06-23 2018-05-30 Network communication method for network system

Country Status (2)

Country Link
CN (1) CN107396417B (en)
WO (1) WO2018233463A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629813A (en) * 2021-12-30 2022-06-14 亚信科技(中国)有限公司 Intention report reporting method and device, electronic equipment, storage medium and product

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107396417B (en) * 2017-06-23 2021-05-25 青岛海尔空调电子有限公司 Network communication method for network system
CN109951890B (en) * 2017-12-21 2022-03-22 中国科学院深圳先进技术研究院 Data communication method, relay node, terminal node and communication system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459977A (en) * 2008-12-18 2009-06-17 上海城市水资源开发利用国家工程中心有限公司 Remote wireless meter reading system
CN103297093A (en) * 2013-06-09 2013-09-11 光一科技股份有限公司 Power line carrier single frequency network (SFN) relay networking communication method
CN105721018A (en) * 2016-01-27 2016-06-29 厦门中天微电子科技有限公司 Method for improving centralized reading efficiency of power line carrier centralized reading system
CN106128084A (en) * 2016-09-05 2016-11-16 湖南农业大学 Wireless meter reading method and system
CN107396417A (en) * 2017-06-23 2017-11-24 青岛海尔空调电子有限公司 Network communication method for network system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707571A (en) * 2009-09-23 2010-05-12 李悦 Power line and wireless dual-network routing method
JP6771855B2 (en) * 2014-06-02 2020-10-21 ヤマハ株式会社 Relay device and program
CN105407463B (en) * 2015-12-09 2019-03-01 北京必创科技股份有限公司 A kind of wireless sensor network system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459977A (en) * 2008-12-18 2009-06-17 上海城市水资源开发利用国家工程中心有限公司 Remote wireless meter reading system
CN103297093A (en) * 2013-06-09 2013-09-11 光一科技股份有限公司 Power line carrier single frequency network (SFN) relay networking communication method
CN105721018A (en) * 2016-01-27 2016-06-29 厦门中天微电子科技有限公司 Method for improving centralized reading efficiency of power line carrier centralized reading system
CN106128084A (en) * 2016-09-05 2016-11-16 湖南农业大学 Wireless meter reading method and system
CN107396417A (en) * 2017-06-23 2017-11-24 青岛海尔空调电子有限公司 Network communication method for network system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629813A (en) * 2021-12-30 2022-06-14 亚信科技(中国)有限公司 Intention report reporting method and device, electronic equipment, storage medium and product

Also Published As

Publication number Publication date
CN107396417B (en) 2021-05-25
CN107396417A (en) 2017-11-24

Similar Documents

Publication Publication Date Title
JP5909159B2 (en) Control apparatus and control method
WO2018233463A1 (en) Network communication method for network system
US11038767B2 (en) Discovery of a set of nodes in a network
WO2015197027A1 (en) Method for accessing nvme storage device, and nvme storage device
JP6036510B2 (en) COMMUNICATION SYSTEM, COMMUNICATION DEVICE, CONTROL METHOD, AND COMPUTER PROGRAM
CN103856302B (en) A kind of smart machine control method
RU2013128767A (en) SYSTEM AND METHOD FOR OPTIMIZING DATA TRANSFER TO WIRELESS NETWORK NODES
US10938628B2 (en) Battery management system and communication method thereof
CN103906087A (en) Access point upgrading method, device and system
WO2017157065A1 (en) Method for managing address of meter device, and acquisition terminal and meter device
CN111836332A (en) Lora chain network communication method, Lora gateway and Lora chain network communication system
US20130013731A1 (en) Devices, systems, and methods for transmitting a message
US20150085726A1 (en) Communication device, power management system having communication device and control method of communication device
CN103475591A (en) Method and device for forwarding multicast data and software defined network controller
JP2014155133A (en) Network system and communication method therefor
CN102811451B (en) Method and device for controlling connection of control and provisioning of wireless access points (Capwap) tunnel
JPWO2014181379A1 (en) Wireless communication system and wireless communication method
JP6180305B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM
JP5438614B2 (en) Network reconstruction method and network system
US10298501B2 (en) System, device, and method for communicating data over a mesh network
WO2015096432A1 (en) Method and system for controlling network topology structure
US10425371B2 (en) Method for fragmented messaging between network devices
WO2021146879A1 (en) Method for transmitting message, ble device and ble chip
CN106878447B (en) Data acquisition system based on ZigBee communication
CN103781104B (en) A kind of Wireless Sensor Networks are based on the route maintenance method of path repairing

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18820055

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18820055

Country of ref document: EP

Kind code of ref document: A1