CN114679202A - Communication relay system, method, relay device, and computer-readable storage medium - Google Patents

Communication relay system, method, relay device, and computer-readable storage medium Download PDF

Info

Publication number
CN114679202A
CN114679202A CN202210225377.1A CN202210225377A CN114679202A CN 114679202 A CN114679202 A CN 114679202A CN 202210225377 A CN202210225377 A CN 202210225377A CN 114679202 A CN114679202 A CN 114679202A
Authority
CN
China
Prior art keywords
terminal
relay
gateway
data packet
short
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202210225377.1A
Other languages
Chinese (zh)
Other versions
CN114679202B (en
Inventor
梁荣林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huarui Wulian Technology Co ltd
Original Assignee
Shenzhen Huarui Wulian Technology Co ltd
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 Shenzhen Huarui Wulian Technology Co ltd filed Critical Shenzhen Huarui Wulian Technology Co ltd
Priority to CN202210225377.1A priority Critical patent/CN114679202B/en
Publication of CN114679202A publication Critical patent/CN114679202A/en
Application granted granted Critical
Publication of CN114679202B publication Critical patent/CN114679202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/58Repeater circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/544Setting up communications; Call and signalling arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a communication relay system, a method, relay equipment and a computer readable storage medium, wherein the communication interrupt system comprises: the system comprises a gateway, a short-range terminal and a remote terminal, wherein the short-range terminal is in power line communication connection with the gateway; the gateway is used for determining a short-range terminal identification and a long-range terminal identification according to a preset distribution rule, sending the short-range terminal identification to the short-range terminal for storage, and sending the long-range terminal identification to the long-range terminal for storage through the short-range terminal. By applying the communication relay system of the present invention to a relay apparatus, the stability of power line communication can be ensured at an extremely low cost.

Description

Communication relay system, method, relay device, and computer-readable storage medium
Technical Field
The present invention relates to the field of network communications, and in particular, to a communication relay system, method, relay device, and computer readable storage medium.
Background
Power Line Communication (PLC) technology refers to a Communication method for transmitting data and media signals using a Power Line. The technology is that high frequency carrying information is loaded on current, then the high frequency is separated from the current by an adapter which transmits and receives information by a wire and then is transmitted to a computer or a telephone to realize information transmission.
With the advent of computer and networking technologies, communication technologies have also been rapidly advancing in recent years. Data communication has become a necessity for each user and each enterprise, among other things. Data communication networks are used in all aspects of life and production, such as the internet, file transfer, e-mail, and digital streaming media. Over the years, power line communication networks have become more and more popular, and the application fields are also becoming wider and wider. Existing powerline communication technologies are also the dominant communication means, mainly powerline networks are usually cheaper than other types of networks, since no dedicated network cables are needed. Typically, a power line network is deployed as part of a local area network. Of course, a power line network may also be used in conjunction with a wireless network to improve performance and reliability as well as flexibility in data communications. One of the challenges in using power line communication networks is that the signal range of certain types of power line networks is very limited. To address this problem, although a large number of conventional repeaters of various types have been currently configured for power line networks. The repeaters required to maintain the stability of the communication are still insufficient, and if the number of the conventional repeaters is continuously increased, the cost is greatly increased, so that the power line communication technology advantage is difficult to maintain.
Disclosure of Invention
The invention provides a communication relay system, a communication relay method, relay equipment and a computer readable storage medium, and aims to solve the technical problem that signals are not stable enough in the relay process of power line communication.
To achieve the above object, the present invention provides a communication relay system, comprising:
the system comprises a gateway, a short-range terminal and a remote terminal, wherein the short-range terminal is in power line communication connection with the gateway;
the gateway is used for determining a short-range terminal identification and a long-range terminal identification according to a preset distribution rule, sending the short-range terminal identification to the short-range terminal for storage, and sending the long-range terminal identification to the long-range terminal for storage through the short-range terminal.
Optionally, the gateway is configured to allocate, by using a preset PLC private protocol, the short-range terminal identifier to the short-range terminal for storage, and allocate, by using the PLC private protocol, the remote terminal identifier to the remote terminal for storage.
Optionally, the close proximity terminal is configured to forward a relay routing request sent by the remote terminal to the gateway through the PLC private protocol, receive a relay identifier fed back by the gateway based on the relay routing request, and store the relay identifier in a relay data table in the close proximity terminal, where the relay data table includes the relay identifier, the remote terminal identifier, and a MAC address of the remote terminal in an association relationship.
Optionally, the proximity terminal is configured to receive a gateway data packet sent by the gateway;
the short-range terminal is also used for receiving a terminal data packet sent by the remote terminal;
the types of the data packets corresponding to the gateway data packets comprise gateway broadcast data packets, gateway directional data packets and gateway relay data packets;
the data packet types corresponding to the terminal data packet comprise a terminal broadcast data packet, a terminal directional data packet and a terminal relay data packet.
Optionally, the near terminal is configured to receive a terminal relay packet sent by the remote terminal, where the terminal relay packet includes the remote terminal identifier;
the short-range terminal is also used for converting the remote terminal identification into the relay identification to obtain a first relay data packet corresponding to the terminal relay data packet; sending the first relay data packet to the gateway;
the short-range terminal is further used for receiving a gateway response data packet fed back by the gateway based on the first relay data packet, wherein the gateway response data packet comprises the relay identifier;
the short-range terminal is also used for converting the relay identification into the remote terminal identification to obtain a second relay data packet corresponding to the gateway response data packet;
The close terminal is further configured to send the second relay packet to the remote terminal.
Optionally, the proximity terminal is configured to receive the gateway relay packet sent by the gateway, where the gateway relay packet includes the relay identifier;
the short-range terminal is also used for converting the relay identification into the terminal identification to obtain a third relay data packet corresponding to the gateway relay data packet;
the short-range terminal is also used for sending the third relay data packet to the remote terminal;
the short-range terminal is further used for receiving a terminal response data packet fed back by the remote terminal based on the third relay data packet, wherein the terminal response data packet comprises the remote terminal identification;
the short-range terminal is also used for converting the remote terminal identification into the relay identification to obtain a fourth relay data packet corresponding to the terminal response data packet;
the proximity terminal is further configured to send the fourth relay packet to the gateway.
Optionally, the near terminal is configured to receive a gateway broadcast packet sent by the gateway and/or a terminal broadcast packet sent by the remote terminal;
The near terminal is further configured to receive a gateway-oriented data packet sent by the gateway and/or a terminal-oriented data packet sent by the remote terminal, where the gateway-oriented data packet and the terminal-oriented data packet both include the near terminal identifier.
In addition, to achieve the above object, the present invention provides a communication relay method, including:
determining a short-range terminal identification and a long-range terminal identification according to a preset distribution rule;
and sending the short-range terminal identification to a short-range terminal for storage, and sending the remote terminal identification to a remote terminal for storage through the short-range terminal.
Further, to achieve the above object, the present invention also provides a relay apparatus including a memory, a processor, and a communication relay program stored on the memory and executable on the processor, wherein: the processor comprises a network processor; the communication relay program when executed by the processor implements the steps of the communication relay system as described above.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a communication relay program that realizes the steps of the communication relay system as described above when executed by a processor.
The communication relay system mainly comprises a gateway, a short-range terminal and a long-range terminal. In the power line communication, compared with the traditional power line relay system which needs a large number of conventional repeaters, the communication relay system in the invention has the advantages of simple structure, convenient configuration and extremely low cost. In the communication relay system, the gateway is directly in communication connection with the short-range terminal (the terminal which is close to the gateway and has stable signal communication), so that the normal communication effect can be kept with the short-range terminal, the gateway is indirectly in communication connection with the long-range terminal (the terminal which is far from the gateway and has unstable signal communication) through the short-range terminal, the short-range terminal is used as a repeater to transmit data signals between the gateway and the long-range terminal, the short-range terminal is made the best use of things, the stability of communication between the gateway and the long-range terminal can be ensured without needing or needing fewer conventional repeaters, the long-range stable communication in a power line is realized at extremely low cost, a complicated flow for configuring a large number of repeaters is omitted, and the corresponding labor cost is saved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment of a relay device according to an embodiment of the present invention;
Fig. 2 is a schematic diagram of a communication relay system framework according to a first embodiment of the communication relay system of the present invention;
fig. 3 is a schematic diagram of a network topology related to a first embodiment of the communication relay system of the present invention;
fig. 4 is a schematic diagram of a short-range terminal frame structure according to a first embodiment of the communication relay system of the present invention;
fig. 5 is a schematic diagram of communication interaction inside a communication relay system related to the communication relay system of the present invention;
fig. 6 is a flowchart illustrating a communication relaying method according to a first embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment of a relay device according to an embodiment of the present invention.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display (Display), an input unit such as a control panel, and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a 5G interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001. A communication relay program may be included in the memory 1005, which is a kind of computer storage medium.
Alternatively, the terminal may further include a microphone, a speaker, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a wireless module, and the like. The sensors, such as light sensors, distance sensors, acceleration sensors, and other sensors, are not described in detail herein.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
Reason why PLC (Power Line Communication) needs to relay signals: since the power line communication itself belongs to a short-distance wired communication technology, the effective transmission distance is within 200 meters, and because various interference factors exist in the actual use environment, such as signal interference of electrical appliances, thickness of electric wires, environmental electromagnetic interference, and the like, the actual transmission distance is only within 100 meters. If the PLC technology is used as a solution for indoor broadband communication, the communication distance (network coverage) is a big bottleneck, and the communication stability is reduced as the communication distance is lengthened due to signal attenuation and uncertain interference of PLC communication, so that a repeater and a corresponding communication relay system need to be arranged in the power line network.
As shown in fig. 2, fig. 2 is a schematic diagram of a communication relay system framework according to a first embodiment of the communication relay system of the present invention; in this embodiment, the communication interruption system includes:
the system comprises a gateway 10, a short-range terminal 20 establishing a power line communication connection with the gateway 10, and a remote terminal 30 establishing a power line communication connection with the short-range terminal 20;
the gateway 10 is configured to determine a short-range terminal identifier and a long-range terminal identifier according to a preset allocation rule, send the short-range terminal identifier to the short-range terminal 20 for storage, and send the long-range terminal identifier to the long-range terminal 30 through the short-range terminal 20 for storage.
Specifically, the gateway 10 distributes the short-range terminal identification to the short-range terminal 20 through a preset PLC private protocol, and the gateway 10 also distributes the remote terminal identification to the remote terminal 30 through a preset PLC private protocol. For the distribution of the short-range terminal identifier and the long-range terminal identifier, a Virtual Local Area Network (VLAN) technology needs to be introduced, because the VLAN technology is already an existing and mature technology, and is not described herein again.
The preset PLC private protocol may be selected according to actual needs, such as the UMAS protocol, the S7comm protocol, the melsec protocol, the Omron FINS protocol, and the like, which is not limited herein.
The preset distribution rule is as follows: the communication relay system acquires all terminals connected with the gateway 10;
determining each stability level between the gateway and all terminals according to each transmission speed between the gateway 10 and all terminals;
dividing all the terminals into a short-range terminal 20 and a long-range terminal 30 according to the stability grades;
determining a number of proximity terminals of said proximity terminals 20 and a number of remote terminals of said remote terminals 30;
allocating a short-range terminal identifier and a long-range terminal identifier to the short-range terminal 20 and the long-range terminal 30 respectively according to the number of the short-range terminals and the number of the long-range terminals; wherein the short-range terminal identification 20 and the long-range terminal identification 30 are not repeated, preferably, the short-range terminal identification and the long-range terminal identification are respectively a short-range terminal code and a long-range terminal code, and the long-range terminal code is larger than the short-range terminal code, so that the related personnel can classify the user terminal.
In addition, the code range corresponding to the short-range terminal code and the long-range terminal code is 1-2000, and the identification of the gateway itself may be VID 0.
For the convenience of understanding the present embodiment, reference may be made to fig. 3, and fig. 3 is a schematic diagram of a network topology related to a first embodiment of the communication relay system of the present invention, as shown in fig. 3, the communication relay system includes a gateway, four short-range terminals (a short distance connected to the gateway through a power line, generally within 100 meters) including a terminal-1, a terminal-2, a terminal-3, and a terminal-4, and two remote terminals (a long distance connected to the gateway through a power line, generally exceeding 100 meters) including a terminal-5 and a terminal-6, a solid two-way connection line in the diagram indicates that the communication is directly performed between the gateway and the short-range terminals without a repeater, and a dashed two-way connection line indicates that the communication is not stable enough if no repeater is added in the power line system between the gateway and the remote terminals, so it is most critical to be that one or more short-range terminals in the power line system are used in the present invention As a repeater, the terminal-3 in fig. 2 is taken as a repeater and is in connection communication with the terminal-5 and the terminal-6, so that the gateway is in connection communication with the remote terminal through the terminal-3. Specifically, a communication relay program corresponding to the communication relay system may be configured in the terminal-3, and a network processor may be built in a short-range terminal such as the terminal-3. Therefore, the terminal can be simply configured to function as a repeater for relaying signals, and the practical basis is as follows: the near-end terminal and the remote terminal include nearly all of the elements of a conventional repeater, so that only the near-end terminal or the remote terminal needs to be configured with a corresponding communication relay program and network processor.
It should be noted that the short-range terminal 20 and the remote terminal 30 in this embodiment mainly refer to user terminals, such as a personal computer, an intelligent television, and various intelligent internet of things devices. Referring to fig. 4, fig. 4 is a schematic diagram of a frame structure of a proximity terminal according to a first embodiment of the communication relay system of the present invention, and the proximity terminal at least includes the memory, the storage, the network processor, the RJ45 network port, the PLC module, the signal coupler, and the wires shown in fig. 4.
In one embodiment, after establishing a communication connection between the gateway 10, the proximity terminal 20 and the remote terminal 30,
the close terminal 20 is configured to forward a relay routing request sent by the remote terminal 30 to the gateway 10 through the PLC private protocol, receive a relay identifier fed back by the gateway 10 based on the relay routing request, and store the relay identifier in a relay data table in the close terminal 20, where the relay data table includes the relay identifier having an association relationship, the remote terminal identifier, and the MAC address of the remote terminal 30.
Referring to fig. 5, fig. 5 is a schematic diagram of communication interaction inside a communication relay system related to the communication relay system of the present invention, and in fig. 5, the gateway, the terminal-3 and the terminal-6 in fig. 3 are introduced, where the terminal-3 may be used as a relay, that is, the relay-3, and as shown in flow 1 in fig. 5, first, the gateway allocates VID3 (virtual code, which is short-range terminal code) to the relay 3 through the PLC private protocol, and the relay-3 stores the allocated short-range terminal code in its own memory. Meanwhile, the gateway can also establish direct communication connection with the terminal-6, although the communication connection is not stable enough at this time, the requirement of allocating the remote terminal code can be completely met, the gateway allocates VID6 (virtual terminal as the remote terminal code) to the terminal-6 through the PLC private protocol, the terminal-6 also stores the allocated remote terminal code in the memory of the terminal-6, the direct connection between the gateway and the terminal-6 is disconnected at this time, the gateway changes to establish indirect connection with the terminal-6 through the terminal-3, then the terminal-6 requests to relay and route to the terminal-3 through the PLC private protocol, the terminal-3 serves as a relay to request to allocate relay VID4088 (relay identification) to the terminal-6 through the PLC private protocol, but the relay identification is not forwarded to the terminal-6 by the terminal-3, but the relay identifier 4088 is stored in a relay data table maintained by the terminal-3 after being received by the terminal-3, and the relay identifier 4088 is stored in association with the remote terminal identifier 6 of the remote terminal and the MAC address of the remote terminal in the relay data table, so that the data can be relayed and forwarded in a manner that the relay identifier and the remote terminal identifier are mutually converted whenever data transmission between the terminal-3 relay gateway and the terminal-6 is required. The relay identifier is preferably a relay code, and the range of the relay code is 2095 to 4095. The relay identifiers may be randomly allocated, but the relay identifiers allocated to each remote terminal are independent of each other.
The communication relay system mainly comprises a gateway, a short-range terminal and a long-range terminal. In power line communication, compared with the traditional power line relay system which needs a large number of conventional relays, the communication relay system in the invention has the advantages of simple structure, convenient configuration and extremely low cost. In the communication relay system, the gateway is directly in communication connection with the short-range terminal (the terminal which is close to the gateway and has stable signal communication), so that the normal communication effect can be kept with the short-range terminal, the gateway is indirectly in communication connection with the long-range terminal (the terminal which is far from the gateway and has unstable signal communication) through the short-range terminal, the short-range terminal is used as a repeater to transmit data signals between the gateway and the long-range terminal, the short-range terminal is made the best use of things, the stability of communication between the gateway and the long-range terminal can be ensured without needing or needing fewer conventional repeaters, the long-range stable communication in a power line is realized at extremely low cost, a complicated flow for configuring a large number of repeaters is omitted, and the corresponding labor cost is saved.
Further, a second embodiment of the communication relay system of the present invention is proposed based on the above-described embodiment of the communication relay system of the present invention, and in the present embodiment,
The proximity terminal 20 is configured to receive a gateway data packet sent by the gateway 10;
the near terminal 20 is further configured to receive a terminal data packet sent by the remote terminal 30;
the types of the data packets corresponding to the gateway data packets comprise a gateway broadcast data packet, a gateway directional data packet and a gateway relay data packet;
the data packet types corresponding to the terminal data packets comprise terminal broadcast data packets, terminal directional data packets and terminal relay data packets.
The near terminal 20 may receive various data from the gateway 10 and also from the remote terminal 30, in power line communication, data including broadcast data, data to be relayed to the remote terminal 30 or to the gateway 10 and directional data transmitted to the terminal by the gateway 10 or the terminal,
specifically, the gateway broadcast data packet is data transmitted by the gateway 10 to the power line network, the gateway directional data packet is data transmitted by the gateway 10 to the local terminal itself, and the gateway relay data is data transmitted by the gateway to the remote terminal 30 and needs to be relayed by the local terminal 20.
Correspondingly, the terminal broadcast packet is data transmitted by the remote terminal 30 to the power line network, the terminal directional packet is data transmitted by the remote terminal 30 to the near terminal 20, and the terminal relay packet is data transmitted by the remote terminal 30 to the gateway 10 and needs to be relayed by the near terminal 20.
In another embodiment, the near terminal 20 is configured to receive a gateway broadcast packet sent by the gateway 10 and/or a terminal broadcast packet sent by the remote terminal 30;
the near terminal 20 is further configured to receive a gateway-oriented data packet sent by the gateway 10 and/or a terminal-oriented data packet sent by the remote terminal 30, where the gateway-oriented data packet and the terminal-oriented data packet both include the near terminal identifier.
It should be noted that the determination of whether data is transmitted to itself, broadcast data, or data to be relayed between the gateway and the remote terminal is mainly made by the identifier in the data packet, where the identifier includes a proximal terminal identifier, a remote terminal identifier, which may be collectively referred to as terminal identifiers, and further includes a gateway identifier VID0 and a relay identifier.
Further, a third embodiment of the communication relay system of the present invention is proposed based on the above-described embodiment of the communication relay system of the present invention, and in this embodiment,
the close terminal 20 is configured to receive a terminal relay packet sent by the remote terminal 30, where the terminal relay packet includes the remote terminal identifier;
The short-range terminal 20 is further configured to convert the remote terminal identifier into the relay identifier to obtain a first relay packet corresponding to the terminal relay packet; sending the first relay data packet to the gateway 10;
the proximity terminal 20 is further configured to receive a gateway response packet fed back by the gateway 10 based on the first relay packet, where the gateway response packet includes the relay identifier;
the near terminal 20 is further configured to convert the relay identifier into the remote terminal identifier to obtain a second relay data packet corresponding to the gateway response data packet;
the proximity terminal 20 is further configured to send the second relay packet to the remote terminal 30.
For a better understanding of the embodiment, with continued reference to fig. 5, as shown in the flow 2 in fig. 5, when the terminal-6 sends data (terminal relay packet) to the gateway and forwards the data through the terminal-3, the VID6 (remote terminal id 6) is carried in the data, when the terminal packet arrives at the relay-3, the relay-3 forwards the terminal-6 data, and inquires the relay id 4088 corresponding to the VID6 in the relay data table, the VID6 is converted into the relay id 4088, and the terminal packet is converted into the first relay packet, when the first relay packet arrives at the gateway, the gateway sends response data (gateway response packet) to the terminal-6, the response data includes the relay id 4088, and similarly, when the packet is forwarded through the terminal-3, the relay id 4088 is converted into the VID6, the response data is converted into the second relay packet, the second relaying packet can thus be sent fixed-point to terminal-6.
By the real-time embodiment, the stability of uplink data transmission and communication can be ensured when the remote user terminal carries out uplink data.
Further, a fourth embodiment of the communication relay system of the present invention is proposed based on the first embodiment of the communication relay system of the present invention, and in this embodiment,
the proximity terminal 20 is configured to receive the gateway relay packet sent by the gateway 10, where the gateway relay packet includes the relay identifier;
the proximity terminal 20 is further configured to convert the relay identifier into the terminal identifier to obtain a third relay packet corresponding to the gateway relay packet;
the close-range terminal 20 is further configured to send the third relay packet to the remote terminal 30;
the close terminal 20 is further configured to receive a terminal response packet fed back by the remote terminal based on the third relay packet, where the terminal response packet includes the remote terminal identifier;
the short-range terminal 20 is further configured to convert the remote terminal identifier into the relay identifier to obtain a fourth relay data packet corresponding to the terminal response data packet;
the proximity terminal 20 is further configured to send the fourth relay packet to the gateway 10.
For better understanding of the embodiment, with continued reference to fig. 5, as shown in the flow 3 in fig. 5, when the gateway sends data (gateway relay packet) to the terminal-6, the relay identifier 4088 corresponding to the terminal-6 is placed in the gateway packet, the relay identifier 4088 is looked up by the relay-3 to obtain the remote terminal code-6 of the terminal-6, the gateway packet is converted into a third relay packet, the third relay packet is forwarded to the terminal-6, the terminal-6 sends a terminal response packet including the VID6 to the relay-3 based on the third relay packet, the relay-3 converts the VID6 into the relay identifier 4088 again, and converts the terminal response packet into a fourth relay packet, so that the fourth relay packet can be sent to the gateway.
By the real-time embodiment, the stability of downlink data transmission and communication can be ensured when the remote user terminal carries out downlink data.
In addition, the invention also provides a communication relay method; as shown in fig. 6, fig. 6 is a flowchart illustrating a communication relaying method according to a first embodiment of the present invention. In addition, the invention also provides a communication relay method, which is applied to a gateway; the communication relay method includes the steps of:
Step S10, determining the near terminal identification and the remote terminal identification according to the preset distribution rule;
and step S20, sending the short-range terminal identification to a short-range terminal for storage, and sending the remote terminal identification to a remote terminal for storage through the short-range terminal.
In the present embodiment, for a method item corresponding to the communication relay system, reference may be made to the detailed description of the communication relay system, and only the brief description is made here.
The gateway can actively establish direct power line communication connection with the short-range terminals, and establish and determine terminal identifications of each user terminal according to the total number of the short-range terminals and the long-range terminals through the short-range terminals, wherein the short-range terminals are preferentially distributed according to the small-to-large code identifications, and the short-range terminals are distributed with codes after the short-range terminals are distributed with the codes, and then the long-range terminals are distributed with the codes.
The specific implementation of the communication relay method of the present invention is basically the same as that of the above-mentioned embodiments of the communication relay system, and is not described herein again.
In addition, the invention also provides a relay device, which comprises a memory, a processor and a communication relay program stored on the memory and capable of running on the processor, wherein the processor comprises a network processor. The processor, when executing the communication relay program, implements the steps of the communication relay system as described in the above embodiments.
The specific implementation of the relay device in the present invention is basically the same as that of the above-mentioned embodiments of the communication relay system, and is not described herein again.
Furthermore, the present invention also proposes a computer-readable storage medium characterized in that the computer-readable storage medium includes a communication relay program that implements the steps of the communication relay system as described in the above embodiment when executed by a processor.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as that of the foregoing communication relay system, and is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a television, a mobile phone, a computer, a server, a vehicle machine, or a network device) to execute the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and those skilled in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
In the description of the specification, reference to the description of "one embodiment," "some embodiments," "an example," "a specific example," or "some examples" or the like means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the embodiment of the present invention has been shown and described, the scope of the present invention is not limited thereto, it should be understood that the above embodiment is illustrative and not to be construed as limiting the present invention, and that those skilled in the art can make changes, modifications and substitutions to the above embodiment within the scope of the present invention, and that these changes, modifications and substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A communication relay system, characterized in that the communication interruption system comprises:
the system comprises a gateway, a short-range terminal establishing power line communication connection with the gateway, and a remote terminal establishing power line communication connection with the short-range terminal;
the gateway is used for determining a short-range terminal identification and a long-range terminal identification according to a preset distribution rule, sending the short-range terminal identification to the short-range terminal for storage, and sending the long-range terminal identification to the long-range terminal for storage through the short-range terminal.
2. The communication relay system of claim 1,
the gateway is used for distributing the short-range terminal identification to the short-range terminal for storage through a preset PLC private protocol, and distributing the remote terminal identification to the remote terminal for storage through the PLC private protocol.
3. The communication relay system of claim 1, wherein the near terminal is configured to forward a relay routing request sent by the remote terminal to the gateway through the PLC private protocol, and receive a relay identifier fed back by the gateway based on the relay routing request, and store the relay identifier in a relay data table in the near terminal, wherein the relay data table includes the relay identifier having an association relationship, the remote terminal identifier, and a MAC address of the remote terminal.
4. The communication relay system of claim 3,
the short-range terminal is used for receiving a gateway data packet sent by the gateway;
the short-range terminal is also used for receiving a terminal data packet sent by the remote terminal;
the types of the data packets corresponding to the gateway data packets comprise gateway broadcast data packets, gateway directional data packets and gateway relay data packets;
the data packet types corresponding to the terminal data packet comprise a terminal broadcast data packet, a terminal directional data packet and a terminal relay data packet.
5. The communication relay system of claim 4,
the short-range terminal is used for receiving a terminal relay data packet sent by the remote terminal, wherein the terminal relay data packet comprises the remote terminal identification;
the short-range terminal is also used for converting the remote terminal identification into the relay identification to obtain a first relay data packet corresponding to the terminal relay data packet; sending the first relay data packet to the gateway;
the short-range terminal is further used for receiving a gateway response data packet fed back by the gateway based on the first relay data packet, wherein the gateway response data packet comprises the relay identifier;
The short-range terminal is also used for converting the relay identification into the remote terminal identification to obtain a second relay data packet corresponding to the gateway response data packet;
the close-range terminal is also used for sending the second relay data packet to the remote terminal.
6. The communication relay system of claim 4,
the short-range terminal is used for receiving the gateway relay data packet sent by the gateway, and the gateway relay data packet comprises the relay identification;
the short-range terminal is also used for converting the relay identification into the terminal identification to obtain a third relay data packet corresponding to the gateway relay data packet;
the close-range terminal is also used for sending the third relay data packet to the remote terminal;
the close-range terminal is further used for receiving a terminal response data packet fed back by the remote terminal based on the third relay data packet, wherein the terminal response data packet comprises the remote terminal identification;
the short-range terminal is also used for converting the remote terminal identification into the relay identification to obtain a fourth relay data packet corresponding to the terminal response data packet;
the proximity terminal is further configured to send the fourth relay data packet to the gateway.
7. The communication relay system of claim 4,
the near terminal is used for receiving a gateway broadcast data packet sent by the gateway and/or a terminal broadcast data packet sent by the remote terminal;
the near terminal is further configured to receive a gateway-oriented data packet sent by the gateway and/or a terminal-oriented data packet sent by the remote terminal, where the gateway-oriented data packet and the terminal-oriented data packet both include the near terminal identifier.
8. A communication relay method applied to a communication relay system, the method comprising:
determining a short-range terminal identification and a long-range terminal identification according to a preset distribution rule;
and sending the short-range terminal identification to a short-range terminal for storage, and sending the remote terminal identification to a remote terminal for storage through the short-range terminal.
9. A relay device, characterized in that the relay device comprises a memory, a processor, and a communication relay program stored on the memory and executable on the processor, wherein: the processor comprises a network processor; the communication relaying program when executed by the processor implements the steps of the communication relaying method according to any one of claims 6 to 8.
10. A computer-readable storage medium, characterized in that a communication relaying program is stored thereon, which when executed by a processor, implements the steps of the communication relaying method according to any one of claims 6 to 8.
CN202210225377.1A 2022-03-07 2022-03-07 Communication relay system, communication relay method, communication relay apparatus, and computer-readable storage medium Active CN114679202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210225377.1A CN114679202B (en) 2022-03-07 2022-03-07 Communication relay system, communication relay method, communication relay apparatus, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210225377.1A CN114679202B (en) 2022-03-07 2022-03-07 Communication relay system, communication relay method, communication relay apparatus, and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN114679202A true CN114679202A (en) 2022-06-28
CN114679202B CN114679202B (en) 2023-12-01

Family

ID=82072435

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210225377.1A Active CN114679202B (en) 2022-03-07 2022-03-07 Communication relay system, communication relay method, communication relay apparatus, and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN114679202B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003347973A (en) * 2002-05-28 2003-12-05 Matsushita Electric Works Ltd Information transmission system
JP2004266562A (en) * 2003-02-28 2004-09-24 Nippon Telegraph & Telephone West Corp User management node for remote terminal, and remote control method and system
JP2008244679A (en) * 2007-03-27 2008-10-09 Matsushita Electric Works Ltd Communication route construction method and communication terminal
KR20090079011A (en) * 2008-01-16 2009-07-21 삼성전자주식회사 Network system for relaying communication between devices and method for therefor
JP2014053962A (en) * 2013-11-21 2014-03-20 Panasonic Corp Remote meter reading system, and terminal station and master station used for the same
CN104683001A (en) * 2013-11-28 2015-06-03 Ls产电株式会社 Repeater for power line communication and repeating method thereof
CN105580322A (en) * 2013-09-24 2016-05-11 株式会社Kt Home network signal relay device in access network and home network signal relay method in access network using same
US20160197927A1 (en) * 2013-09-12 2016-07-07 Huawei Technologies Co., Ltd. Network access method, proximity communications server, relay terminal and terminal
CN108377564A (en) * 2016-11-14 2018-08-07 中兴通讯股份有限公司 Method and device, downlink data delivering method and the device of accessing terminal to network
CN108390699A (en) * 2018-03-15 2018-08-10 深圳前海有电物联科技有限公司 High in the clouds communication system based on power line carrier technology and communication means, device
CN108605320A (en) * 2016-03-30 2018-09-28 Oppo广东移动通信有限公司 Method and apparatus for establishing wireless heterogeneous networks connection
CN109920419A (en) * 2019-03-05 2019-06-21 百度在线网络技术(北京)有限公司 Sound control method and device, electronic equipment and computer-readable medium
CN110557171A (en) * 2019-09-06 2019-12-10 北京中科高鸿电子有限公司 HPLC communication system and communication method
CN111970645A (en) * 2020-08-31 2020-11-20 深圳市紫光新能源技术有限公司 Bluetooth positioning gateway, positioning gateway group and mine positioning system
WO2021115252A1 (en) * 2019-12-09 2021-06-17 维沃移动通信有限公司 Relay parameter configuration method, user equipment and network side device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003347973A (en) * 2002-05-28 2003-12-05 Matsushita Electric Works Ltd Information transmission system
JP2004266562A (en) * 2003-02-28 2004-09-24 Nippon Telegraph & Telephone West Corp User management node for remote terminal, and remote control method and system
JP2008244679A (en) * 2007-03-27 2008-10-09 Matsushita Electric Works Ltd Communication route construction method and communication terminal
KR20090079011A (en) * 2008-01-16 2009-07-21 삼성전자주식회사 Network system for relaying communication between devices and method for therefor
US20160197927A1 (en) * 2013-09-12 2016-07-07 Huawei Technologies Co., Ltd. Network access method, proximity communications server, relay terminal and terminal
CN105580322A (en) * 2013-09-24 2016-05-11 株式会社Kt Home network signal relay device in access network and home network signal relay method in access network using same
JP2014053962A (en) * 2013-11-21 2014-03-20 Panasonic Corp Remote meter reading system, and terminal station and master station used for the same
CN104683001A (en) * 2013-11-28 2015-06-03 Ls产电株式会社 Repeater for power line communication and repeating method thereof
CN108605320A (en) * 2016-03-30 2018-09-28 Oppo广东移动通信有限公司 Method and apparatus for establishing wireless heterogeneous networks connection
CN108377564A (en) * 2016-11-14 2018-08-07 中兴通讯股份有限公司 Method and device, downlink data delivering method and the device of accessing terminal to network
CN108390699A (en) * 2018-03-15 2018-08-10 深圳前海有电物联科技有限公司 High in the clouds communication system based on power line carrier technology and communication means, device
CN109920419A (en) * 2019-03-05 2019-06-21 百度在线网络技术(北京)有限公司 Sound control method and device, electronic equipment and computer-readable medium
CN110557171A (en) * 2019-09-06 2019-12-10 北京中科高鸿电子有限公司 HPLC communication system and communication method
WO2021115252A1 (en) * 2019-12-09 2021-06-17 维沃移动通信有限公司 Relay parameter configuration method, user equipment and network side device
CN111970645A (en) * 2020-08-31 2020-11-20 深圳市紫光新能源技术有限公司 Bluetooth positioning gateway, positioning gateway group and mine positioning system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
潘丹;邵卫;: "电力线载波抄表系统的负载均衡算法研究", 信息化纵横, no. 17 *

Also Published As

Publication number Publication date
CN114679202B (en) 2023-12-01

Similar Documents

Publication Publication Date Title
CN111405684B (en) Method for connecting to network access device, terminal and computer readable storage medium
US8213456B2 (en) Communications system and communication apparatus
CN108028802B (en) Construction of self-organizing mesh networks using 802.11AD technology
EP2351297B1 (en) A method to improve channel utilization in a time division multiple access based protocol
CN111385828B (en) Method, terminal and system for receiving and transmitting data in wireless local area network and network access equipment
US10560929B2 (en) Resource request method and system, device, and network side node
CN109672708B (en) Communication method, device and system
CN114630389A (en) Method, device, equipment and storage medium for identifying remote terminal service
US9848379B2 (en) Cascaded radio communication system
EP2178230A1 (en) Performance improvement of dual mode devices for data over cable applications
CN102056245B (en) Method for sharing bandwidth among wireless devices and wireless devices
CN104284444B (en) Multiband wireless communication method coordinates equipment and network
CN114189497A (en) Address acquisition method and device and computer-readable storage medium
JP4437761B2 (en) Communication system, communication terminal device, program, computer-readable recording medium, and network partitioning method
CN114679202B (en) Communication relay system, communication relay method, communication relay apparatus, and computer-readable storage medium
CN106688304A (en) Zigbee system management employing a TR-069 enabled CPE proxy
US10674565B2 (en) Communication method
WO2022002215A1 (en) Data transmission method and apparatus
JP2009302749A (en) Wireless communication apparatus and method
CN111510929A (en) Method and device for L CID expansion in IAB network
US9648614B2 (en) In-building wired/wireless convergence apparatus and resource allocation method thereof
CN113364893B (en) Data transmission method, device and system
JP6269684B2 (en) Base station apparatus and radio access system
WO2023000710A1 (en) Method and apparatus for processing broadcast information
CN114924500A (en) Control method based on power local area network and intelligent control terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant