Disclosure of Invention
The embodiment of the application provides a communication method, a communication device and a storage medium, which are used for completing remote communication and reducing operation cost under the condition that a radio remote unit does not support a TCP/IP protocol stack.
The embodiment of the present application provides a communication method, which is applicable to a communication network including a base station and at least one remote radio unit, where the base station is connected to one remote radio unit of the at least one remote radio unit through a wired network, and the method includes: the base station sends a monitoring request to the remote radio unit through a wired network; the base station receives a monitoring response sent by the remote radio unit through a wired network, wherein the monitoring response comprises attribute information of the remote radio unit; and the base station monitors the radio remote unit through the wired network according to the attribute information. Therefore, the radio remote unit and the base station can communicate in a wired network mode, and the cost of the wired network is far less than that of communication completed based on a TCP/IP protocol, so that the operation cost can be reduced while remote communication is completed.
Optionally, the base station sends the monitoring request to the remote radio unit through the wired network, including that the base station generates the monitoring request and packages the monitoring request according to a preset message format, the base station converts the packaged monitoring request into a binary code stream, writes the binary code stream into a preset field of an ethernet packet through the field programmable gate array FPGA module, and transmits the ethernet packet to the remote radio unit through the wired network.
Optionally, the receiving, by the base station, the monitoring response sent by the remote radio unit through the wired network includes: and the base station receives the monitoring response sent by the remote radio unit through the wired network within the preset time length of sending the monitoring request.
Optionally, the wired network includes a network cable or an optical fiber, and if the wired network is the network cable, the length of the wired network is not greater than 200 meters; if the wired network is an optical fiber, the length of the wired network is not more than 5000 meters.
The embodiment of the present application provides a communication method, which is applicable to a communication network including a base station and at least one remote radio unit, where the base station is connected to one remote radio unit of the at least one remote radio unit through a wired network, and the method includes: the remote radio unit receives a monitoring request sent by a base station through a wired network; and the remote radio unit sends a monitoring response to the base station through the wired network, wherein the monitoring response comprises the attribute information of the remote radio unit.
Optionally, before the remote radio unit sends the monitoring response to the base station through the wired network, the method further includes: the remote radio unit reads a binary code stream in a preset field of the Ethernet packet through a Field Programmable Gate Array (FPGA) module; the radio remote unit converts the binary code stream into byte messages; and the remote radio unit unpacks the byte message according to a preset message format and generates a monitoring response according to the unpacked byte message.
The embodiment of the present application provides a communication device, which is suitable for a communication network including a base station and at least one remote radio unit, wherein the base station is connected to one remote radio unit of the at least one remote radio unit through a wired network, and the device includes: the FPGA module is used for sending a monitoring request to the remote radio unit through a wired network; receiving a monitoring response sent by the remote radio unit through a wired network, wherein the monitoring response comprises attribute information of the remote radio unit; and the monitoring module is used for monitoring the radio remote unit through a wired network according to the attribute information.
Optionally, the system further comprises a communication module; the monitoring module is also used for generating a monitoring request and packaging the monitoring request according to a preset message format; the communication module is used for converting the packed monitoring request into a binary code stream; the FPGA module is also used for writing the binary code stream into a preset field of the Ethernet packet; and the FPGA module is specifically used for transmitting the Ethernet packet to the radio remote unit through a wired network.
Optionally, the FPGA module is specifically configured to receive a monitoring response sent by the remote radio unit through the wired network within a preset time period for sending the monitoring request.
Optionally, the wired network includes a network cable or an optical fiber; if the wired network is a network cable, the length of the wired network is not more than 200 meters; if the wired network is an optical fiber, the length of the wired network is not more than 5000 meters.
The embodiment of the present application provides a communication device, which is suitable for a communication network including a base station and at least one remote radio unit, wherein the base station is connected to one remote radio unit of the at least one remote radio unit through a wired network, and the device includes: the FPGA module is used for receiving a monitoring request sent by a base station through a wired network; and sending a monitoring response to the base station through the wired network, wherein the monitoring response comprises the attribute information of the device.
Optionally, the system further comprises a communication module and a monitoring module; the FPGA module is also used for reading binary code streams in the preset fields of the Ethernet packets; a communication module for converting the binary code stream into byte messages; and the monitoring module is used for unpacking the byte messages according to a preset message format and generating a monitoring response according to the unpacked byte messages.
Embodiments of the present application provide a computer storage medium, where computer-executable instructions are stored, and when called by a computer, cause the computer to perform any one of the above methods.
An embodiment of the present application provides a computer apparatus, including: a memory for storing program instructions; and the processor is used for calling the program instructions stored in the memory and executing any method according to the obtained program.
Detailed Description
In order to make the purpose, technical solution and beneficial effects of the present application more clear and more obvious, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Fig. 1 illustrates a system architecture diagram applicable to the embodiment of the present application, as shown in fig. 1, including a base station 101 and a remote radio unit 102. The number of the remote radio units may be multiple remote radio units as shown in fig. 1, or may be only one remote radio unit. When the remote radio unit 102 is connected to the base station 101, and the base station 101 detects that the remote radio unit 102 is connected through the wired network, the remote radio unit 102 may send a monitoring request to the remote radio unit 102 through the wired network, and the remote radio unit 102 returns a monitoring response according to the monitoring request.
In the embodiment of the present application, the remote radio unit does not support Transmission Control Protocol/Internet Protocol (TCP/IP), and the remote radio unit may be referred to as a single chip microcomputer system, where the single chip microcomputer system is provided with a radio frequency module.
Fig. 2 is a schematic flow chart illustrating a communication method applicable to the embodiment of the present application, and as shown in fig. 2, the method includes:
step 201, a base station sends a monitoring request to a remote radio unit through a wired network;
step 202, a base station receives a monitoring response sent by a remote radio unit through a wired network, wherein the monitoring response comprises attribute information of the remote radio unit;
and step 203, the base station monitors the radio remote unit through the wired network according to the attribute information.
In the embodiment of the application, the radio remote unit and the base station can communicate with each other in a wired network mode, and the cost of the wired network is far less than that of communication completed based on a TCP/IP protocol, so that the operation cost can be reduced while remote communication is completed.
Before step 201, that is, before the base station sends the monitoring request to the remote radio unit through the wired network, in an optional implementation manner, if the base station detects that a remote radio unit is connected to the base station through the wired network, the base station may generate the monitoring request, and package the monitoring request according to a preset message format, convert the packaged monitoring request into a binary code stream by the base station, and write the binary code stream into a preset Field of an ethernet packet through a Field-Programmable Gate Array (FPGA) module.
Since different modules exist in the base station and are responsible for executing different tasks, in an optional implementation manner, when the monitoring module of the base station detects that the remote radio unit is connected to the base station through the wired network, the monitoring module of the base station may generate a monitoring request, where the monitoring request is used to instruct the remote radio unit that receives the monitoring request to feed back the attribute information of the remote radio unit. And the monitoring module of the base station packages the monitoring request according to a preset message format. Optionally, the monitoring module of the base station may further add a checksum to the packet header of the monitoring request, so as to be used by the remote radio unit for verification, thereby ensuring security during transmission.
After the monitoring request is packaged and the checksum is added, in an optional implementation manner, the monitoring module of the base station may send the monitoring request to the communication module of the base station, after the communication module of the base station receives the monitoring request, the monitoring request may be converted into a binary code stream, and then the binary code stream is sent to the FPGA module of the base station through the message sending interface of the communication module, and after the FPGA module of the base station receives the binary code stream, the binary code stream may be written into a preset field of an ethernet packet and transmitted to the remote radio unit through a wired network.
In the embodiment of the application, the length of the ethernet packet is fixed, and technicians use the preset field of the ethernet packet as a carrier of a binary code stream, so that the base station and the remote radio unit can conveniently communicate through a wired network. Optionally, the preset field is fixed, that is, the preset field is used for both the base station to send the monitoring request and the remote radio unit to send the monitoring response.
Correspondingly, after receiving a monitoring request transmitted to the remote radio unit by the FPGA module of the base station through the wired network, the remote radio unit may generate a monitoring response according to the monitoring request, where the monitoring response includes attribute information of the remote radio unit, such as a version number and a serial number of the remote radio unit.
Before the remote radio unit generates the monitoring response according to the monitoring request, in an optional implementation manner, the remote radio unit may read a binary code stream in a preset field of the ethernet packet through the field programmable gate array FPGA module, convert the binary code stream into a byte message, unpack the byte message according to a preset message format, and generate the monitoring response according to the unpacked byte message.
In an optional implementation manner, after receiving an ethernet packet sent by the FPGA module of the base station through the wired network, the FPGA module of the remote radio unit reads a binary code stream of a preset field of the ethernet packet, and transmits the binary code stream to a message receiving interface of a communication module of the remote radio unit, the communication module of the remote radio unit converts the binary code stream into a byte message, and then sends a monitoring request converted into the byte message to a monitoring module of the remote radio unit through a message sending interface of the communication module.
In an optional implementation manner, the monitoring module of the radio remote unit may unpack the monitoring request according to a preset message format, and generate a monitoring response according to the unpacked monitoring request. If the packet head of the received grouped monitoring request has a checksum, the monitoring module of the remote radio unit can check the monitoring request, and if the check is qualified, the monitoring request can be unpacked, the monitoring request is analyzed, and a monitoring response is generated; if the check fails, it indicates that the monitoring request may be tampered during transmission or at the base station, and the remote radio unit may discard the monitoring request.
In an optional implementation manner, the preset message format according to the base station and the preset message format according to the remote radio unit are consistent, and may be predetermined by the base station and the remote radio unit.
And if the remote radio unit generates the monitoring response, the monitoring module of the remote radio unit packages the monitoring response according to a preset message format. Optionally, the monitoring module of the remote radio unit may further add a checksum to the packet header of the monitoring response, so that the base station performs verification to ensure the security during transmission. After the monitoring response is packaged and the checksum is added, in an optional implementation manner, the monitoring module of the remote radio unit may send the monitoring response to the communication module of the remote radio unit, after the communication module of the remote radio unit receives the monitoring response, the monitoring response may be converted into a binary code stream, and then the binary code stream is sent to the FPGA module of the remote radio unit through the message sending interface of the communication module, and after the FPGA module of the remote radio unit receives the binary code stream, the binary code stream may be written into a preset field of an ethernet packet and transmitted to the base station through a wired network.
If the base station receives the monitoring response sent by the remote radio unit through the wired network within the preset time length for sending the monitoring request, the monitoring response can be analyzed according to the same flow of the remote radio unit. And if the monitoring response is not received within the preset time length, determining that the monitoring request is failed to be sent. In an alternative embodiment, the monitoring request may be retransmitted after determining that the monitoring request fails to be sent, and if the number of times exceeds a preset number, an alarm may be sent.
In step 203, the base station receives the monitoring response of the remote radio unit, determines the identity of the remote radio unit according to the serial number and the version number, and may send a monitoring command to the remote radio unit, for example, to enable the remote radio unit to increase a radiation range and adjust transmission power, or transmit data to the remote radio unit to command the remote radio unit to send to a terminal device, and the like.
In the embodiment of the application, the wired network comprises a network cable or an optical fiber, and if the wired network is the network cable, the length of the wired network is not more than 200 meters; if the wired network is an optical fiber, the length of the wired network is not more than 5000 meters. Optionally, the length of the limited network may be adjusted according to different requirements.
Fig. 3 is a schematic flow chart illustrating a communication method applicable to the embodiment of the present application, and as shown in fig. 3, the method includes:
301, a monitoring module of a base station generates a monitoring request;
step 302, a monitoring module of the base station packages the monitoring request according to a preset message format;
step 303, the monitoring module of the base station adds a checksum to the packet header of the monitoring request and sends the checksum to the communication module of the base station;
step 304, the communication module of the base station receives the monitoring request, converts the monitoring request into a binary code stream, and sends the binary code stream to the FPGA module of the base station;
305, receiving the binary code stream by an FPGA module of the base station, and writing the binary code stream into a preset field of an Ethernet packet;
step 306, the FPGA module of the base station transmits the Ethernet packet to the FPGA module of the radio remote unit through the wired network;
step 307, reading a binary code stream in a preset field of the ethernet packet by an FPGA module of the radio remote unit;
step 308, the communication module of the remote radio unit receives the binary code stream, converts the binary code stream into a byte message, and sends the byte message to the monitoring module of the remote radio unit;
step 309, the monitoring module of the remote radio unit receives the monitoring request converted into the byte message, verifies the monitoring request, and if the verification is qualified, the process goes to step 310; if not, discarding the monitoring request;
step 310, the monitoring module of the remote radio unit reads the monitoring request and generates a monitoring response according to the monitoring request;
311, the monitoring module of the remote radio unit packages the monitoring response according to a preset message format;
step 312, the monitoring module of the remote radio unit adds a checksum to the packet header of the monitoring response, and sends the checksum to the communication module of the remote radio unit;
313, the communication module of the remote radio unit receives the monitoring response, converts the monitoring response into a binary code stream, and sends the binary code stream to the FPGA module of the remote radio unit;
step 314, receiving the binary code stream by the FPGA module of the radio remote unit, and writing the binary code stream into a preset field of the ethernet packet;
and 315, the FPGA module of the remote radio unit transmits the Ethernet packet to the FPGA module of the base station through a wired network.
Based on the above embodiments and the same concept, fig. 4 shows a schematic structural diagram of a communication device provided in the embodiments of the present application, and as shown in fig. 4, the communication device 400 may include an FPGA module 401, a monitoring module 402, and a communication module 403.
The embodiment of the present application provides a communication device, which is suitable for a communication network including a base station and at least one remote radio unit, wherein the base station is connected with at least one remote radio unit through a wired network, and the device includes: the FPGA module is used for sending a monitoring request to the remote radio unit through a wired network; receiving a monitoring response sent by the remote radio unit through a wired network, wherein the monitoring response comprises attribute information of the remote radio unit; and the monitoring module is used for monitoring the radio remote unit through a wired network according to the attribute information.
In an optional embodiment, the system further comprises a communication module; the monitoring module is also used for generating a monitoring request and packaging the monitoring request according to a preset message format; the communication module is used for converting the packed monitoring request into a binary code stream; the FPGA module is also used for writing the binary code stream into a preset field of the Ethernet packet; and the FPGA module is specifically used for transmitting the Ethernet packet to the radio remote unit through a wired network.
In an optional implementation manner, the FPGA module is specifically configured to receive a monitoring response sent by the remote radio unit through the wired network within a preset time period for sending the monitoring request.
In an alternative embodiment, the wired network includes a network cable or optical fiber; if the wired network is a network cable, the length of the wired network is not more than 200 meters; if the wired network is an optical fiber, the length of the wired network is not more than 5000 meters.
For a specific description of the communication apparatus provided in the embodiment of the present application, reference may be made to the communication method provided in the foregoing embodiment, which is not described herein again.
Based on the above embodiments and the same concept, fig. 5 shows a schematic structural diagram of a communication device provided in an embodiment of the present application, and as shown in fig. 5, the communication device 500 may include an FPGA module 501, a monitoring module 502, and a communication module 503.
The embodiment of the present application provides a communication device, which is suitable for a communication network including a base station and at least one remote radio unit, wherein the base station is connected with at least one remote radio unit through a wired network, and the device includes: the FPGA module is used for receiving a monitoring request sent by a base station through a wired network; and sending a monitoring response to the base station through the wired network, wherein the monitoring response comprises the attribute information of the device.
In an optional implementation manner, the system further comprises a communication module and a monitoring module; the FPGA module is also used for reading binary code streams in the preset fields of the Ethernet packets; a communication module for converting the binary code stream into byte messages; and the monitoring module is used for unpacking the byte messages according to a preset message format and generating a monitoring response according to the unpacked byte messages.
For a specific description of the communication apparatus provided in the embodiment of the present application, reference may be made to the communication method provided in the foregoing embodiment, which is not described herein again.
It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation. Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware or any combination thereof, and when the implementation is realized by a software program, all or part of the implementation may be realized in the form of a computer program product. The computer program product includes one or more instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The instructions may be stored in or transmitted from one computer storage medium to another, for example, instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. A computer storage medium may be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more available media. The usable medium may be a magnetic medium (e.g., a flexible Disk, a hard Disk, a magnetic tape, a magneto-optical Disk (MO), etc.), an optical medium (e.g., a CD, a DVD, a BD, an HVD, etc.), or a semiconductor medium (e.g., a ROM, an EPROM, an EEPROM, a nonvolatile memory (NAND FLASH), a Solid State Disk (SSD)), etc.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein. As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present application are described with reference to flowchart illustrations and/or block diagrams of methods, apparatus, and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by instructions. These instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.