Data transmission method and device based on microwave equipment, storage medium and electronic equipment

CN116233898BActive Publication Date: 2026-10-16ZTE CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202111480049.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2026-10-16
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

[0004]本发明实施例提供了一种基于微波设备的数据传输方法和装置、存储介质及电子设备,以至少解决相关技术中微波设备与天线设备无法进行通信的问题

Benefits of technology

[0009] By employing the method of exchanging heartbeat detection messages between the microwave device and the antenna device according to a first preset duration in this embodiment of the invention, the microwave device can determine whether the communication connection between the microwave device and the antenna device is normal. If no heartbeat message is received from the antenna device within a second preset duration, the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal, wherein the second preset duration is longer than the first preset duration. When the communication connection between the microwave device and the antenna device is normal, the microwave device sends a target message to the antenna device through the communication connection. The target message includes an opcode, message length, message sequence number, data, and checksum. Therefore, the problem of the microwave device and antenna being unable to communicate is solved, thereby achieving the effect of enabling communication between the microwave device and the antenna device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116233898B_ABST
    Figure CN116233898B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a kind of data transmission method and device based on microwave equipment, storage medium and electronic equipment, above-mentioned method includes: microwave equipment every first preset time length, sends heartbeat message to antenna equipment;When receiving heartbeat message sent by antenna equipment to microwave equipment every first preset time length, microwave equipment determines that the communication connection between microwave equipment and antenna equipment is normal;When not receiving heartbeat message sent by antenna equipment to microwave equipment within second preset time length, microwave equipment determines that the communication connection between microwave equipment and antenna equipment is not normal;In the case where the communication connection between microwave equipment and antenna equipment is normal, microwave equipment sends target message to antenna equipment by communication connection, wherein, target message includes operation code, message length, message serial number, data and check bit.Through the embodiment of the present application, the technical problem that microwave equipment and antenna equipment cannot communicate is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of wireless technology, and more specifically, to a data transmission method and apparatus, storage medium and electronic device based on microwave equipment. Background Technology

[0002] Existing communication protocols are used in base stations; microwave equipment does not define a communication protocol between the device and the antenna device.

[0003] There is currently no effective solution to the problem of how microwave equipment can communicate with antenna equipment. Summary of the Invention

[0004] This invention provides a data transmission method and apparatus, storage medium and electronic device based on microwave equipment, to at least solve the problem in the related art that microwave equipment and antenna equipment cannot communicate.

[0005] According to one embodiment of the present invention, a data transmission method based on a microwave device is provided, comprising: the microwave device sending a heartbeat detection message to an antenna device every first preset time interval; when the microwave device receives a heartbeat message sent from the antenna device to the microwave device every first preset time interval, the microwave device determines that the communication connection between the microwave device and the antenna device is normal; when the microwave device does not receive a heartbeat message sent from the antenna device to the microwave device within a second preset time interval, the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal, wherein the second preset time interval is longer than the first preset time interval; when the communication connection between the microwave device and the antenna device is normal, the microwave device sends a target message to the antenna device through the communication connection; wherein the target message includes an opcode, a message length, a message sequence number, data, and a check bit.

[0006] According to another embodiment of the present invention, a data transmission apparatus based on a microwave device is provided, comprising: a first transmission unit, configured to send a heartbeat detection message to an antenna device every first preset time interval; a processing unit, configured to, when receiving a heartbeat message sent by the antenna device to the microwave device every first preset time interval, determine that the communication connection between the microwave device and the antenna device is normal; and when not receiving a heartbeat message sent by the antenna device to the microwave device within a second preset time interval, determine that the communication connection between the microwave device and the antenna device is abnormal, wherein the second preset time interval is longer than the first preset time interval; and a second transmission unit, configured to, when the communication connection between the microwave device and the antenna device is normal, send a target message to the antenna device through the communication connection; wherein the target message includes an opcode, a message length, a message sequence number, data, and a check bit.

[0007] According to yet another embodiment of the present invention, a computer-readable storage medium is also provided, wherein a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to perform the steps in any of the above method embodiments when it is run.

[0008] According to yet another embodiment of the present invention, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0009] By employing the method of exchanging heartbeat detection messages between the microwave device and the antenna device according to a first preset duration in this embodiment of the invention, the microwave device can determine whether the communication connection between the microwave device and the antenna device is normal. If no heartbeat message is received from the antenna device within a second preset duration, the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal, wherein the second preset duration is longer than the first preset duration. When the communication connection between the microwave device and the antenna device is normal, the microwave device sends a target message to the antenna device through the communication connection. The target message includes an opcode, message length, message sequence number, data, and checksum. Therefore, the problem of the microwave device and antenna being unable to communicate is solved, thereby achieving the effect of enabling communication between the microwave device and the antenna device. Attached Figure Description

[0010] Figure 1 This is a hardware structure block diagram of a mobile terminal according to an embodiment of the microwave data transmission method of the present invention.

[0011] Figure 2 A flowchart of a microwave data transmission method according to an embodiment of the present invention;

[0012] Figure 3 A schematic diagram of the data format for microwave data transmission according to an embodiment of the present invention;

[0013] Figure 4 A flowchart of another data transmission method according to an embodiment of the present invention;

[0014] Figure 5 A schematic diagram of the structure of a microwave data transmission device according to an embodiment of the present invention. Detailed Implementation

[0015] The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and examples.

[0016] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of the embodiments of the present invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0017] The methods and embodiments provided in this application can be executed on a mobile terminal, computer terminal, or similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a microwave data transmission method according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.

[0018] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the microwave data transmission method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0019] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.

[0020] This invention defines a protocol for communication between a microwave device and a microwave antenna. The protocol includes a protocol layer, a link layer, and a message layer. The data layers of the protocol are described below:

[0021] 1) Protocol layer

[0022] The protocol layer defines the message format for communication between microwave and antenna devices. Specifically, the message format of a transmitted message includes an opcode, message length (including a checksum), sequence number, data, and checksum. For example... Figure 3 As shown, 0x55 represents the start byte of a frame (i.e., the first preset value mentioned above). If the data in the content field needs to transmit 0x55, it will be done according to the following scheme:

[0023] Microwave equipment: If the transmitted content is 0x55, it will be replaced with the second preset data: 0x99 and 0x05; if the transmitted content is 0x99, it will be replaced with 0x99 and 0x09.

[0024] Antenna equipment: If the received content is 0x99 and 0x05, replace it with 0x55; if the received content is 0x99 and 0x09, replace it with 0x99.

[0025] 2) Link Layer

[0026] 2.1) In the link layer, each device in the link layer can detect the start position of the message packets of the above protocol layer. For example, if the device of the current link recognizes that the current message packet starts at 0x55, it can be considered that the current message packet is the start of a message frame.

[0027] 2.2) At the link layer, the technical solution of this application also supports the transmission of high-priority message packets. For example, during the process of a microwave device sending a first message (or first message packet) to an antenna device via a communication connection, if the microwave device detects a second message to be sent, wherein the priority of the second message is higher than that of the first message, the microwave device will interrupt the transmission of the first message and send the second message to the antenna device. After the second message is sent, the microwave device will continue to send the first message to the antenna device. That is to say, a high-priority message packet can interrupt the transmission of a normal message packet, but a high-priority message packet cannot interrupt the transmission of another high-priority message packet. When the transmission of a high-priority message packet is completed, the transmission of a normal message packet resumes.

[0028] 2.3) In the link layer, the technical solution of this application also supports timeout retransmission. For example, if the microwave device does not receive an acknowledgment message from the antenna device within 200ms after sending a message, it is considered that the message sent by the microwave device has been lost and the microwave device needs to retransmit the message.

[0029] 2.4) In the link layer, the technical solution of this application also supports a keep-alive mechanism. For example, the microwave device of the microwave device and the antenna device of the antenna device send a heartbeat message to each other every 1 second. If the microwave device or the antenna device does not receive a heartbeat message within 6 consecutive seconds, it is considered that the microwave device and the antenna device have lost connection.

[0030] 3) Message layer

[0031] In the message layer, the antenna device can obtain the latest software version from the microwave device. Table 1 shows examples of download version request messages.

[0032] Table 1

[0033]

[0034] The version download process is as follows: The software version of the antenna device is stored on the microwave device. When the microwave device detects that the first software version of the antenna device is different from the second software version of the antenna device stored on the microwave device, the microwave device will initiate a software version upgrade request.

[0035] First, the microwave device initiates a software version upgrade request to the antenna device. Upon receiving the upgrade request, the antenna device initializes the resources needed for the version download and then replies to the microwave device. After receiving the reply, the microwave device begins transmitting the software data for the second software version. As an optional example, the microwave device divides the software data for the second software version into multiple data blocks and sends each data block sequentially to the antenna device.

[0036] During the transmission of the second software version's software data, after the microwave device sends a data block to the antenna device, the antenna device needs to reply to the microwave device. If the antenna device detects that the received data block is normal, it returns an error code of 0. After receiving an error code of 0, the microwave device continues to send the next data block. If the antenna device detects that the received data block is abnormal, it returns a non-zero error code. After receiving a non-zero error code, the microwave device retransmits the previously transmitted data block or stops transmission. When the microwave device completes the transmission of the data block, it sends a stop command. After receiving the stop command, the antenna device begins to verify the software data of the second software version and completes the loading of the second software version.

[0037] In one or more embodiments, the format of the request message for obtaining antenna status information, alarm information, and actively reporting the received level value is shown in Table 2;

[0038] Table 2

[0039]

[0040] A) The message “zxmw_getstatus” is used to retrieve at least one of the following information:

[0041] A.1) Antenna tilt angle, including antenna elevation angle, horizontal angle, and temperature information.

[0042] A.2) Antenna hardware information, including antenna type, antenna serial number (SN code), and antenna part number (PN code).

[0043] A.3) Antenna software information, including the antenna boot version number, running software version number, and configuration version number.

[0044] B) The message “zxmw_getalarm” is used to retrieve at least one of the following information:

[0045] B.1) Antenna motor blockage;

[0046] B.2) Antenna brake blockage;

[0047] B.3) The antenna was not calibrated;

[0048] B.4) Antenna not configured;

[0049] B.5) Undefined hardware fault;

[0050] B.6) Brake failure;

[0051] C) The message “zxmw_setRSL” is used to report the received level value of the microwave equipment.

[0052] The request messages for the aforementioned parameters are reported from the microwave device to the antenna device every 20ms. After the microwave device sends a status acquisition message or alarm acquisition message to the antenna device, the antenna device replies with an acknowledgment message confirming receipt of the status acquisition message or alarm acquisition message. However, after the microwave device actively sends a message to the antenna device reporting the received signal level, the antenna device does not need to reply with an acknowledgment message. Furthermore, the antenna device dynamically adjusts the antenna's elevation and horizontal angles based on the received signal level message (the received signal level of the microwave device) actively reported by the microwave device.

[0053] In one or more embodiments, the microwave device and the antenna periodically send heartbeat messages to detect whether the other is functioning correctly. The parameters of the heartbeat message are shown in Table 3.

[0054] Table 3

[0055]

[0056] In this context, zxmw_heartbeat is the name of the message, "0x03" is the message number, and "Heartbeatpacket" is the message description, which in this case is a heartbeat message.

[0057] Based on the content of the communication protocol between microwave equipment and antenna devices in the above embodiments of the present invention, the present invention also proposes a communication protocol operating in... Figure 1 The system architecture shown is based on a microwave device-based data transmission method. Figure 2 This is a flowchart of a data transmission method based on a microwave device according to an embodiment of the present invention, such as... Figure 2 The process includes the following steps:

[0058] Step S202: The microwave device sends a heartbeat detection message to the antenna device every first preset time interval;

[0059] Step S204: When a heartbeat message is received from the antenna device to the microwave device every first preset time interval, the microwave device determines that the communication connection between the microwave device and the antenna device is normal.

[0060] Step S206: If no heartbeat message is received from the antenna device to the microwave device within the second preset time period, the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal, wherein the second preset time period is longer than the first preset time period.

[0061] Step S208: When the communication connection between the microwave device and the antenna device is normal, the microwave device sends a target message to the antenna device through the communication connection; wherein, the target message includes an opcode, message length, message sequence number, data and check bit.

[0062] In this embodiment, after receiving the heartbeat detection message from the antenna device, the microwave device establishes a communication connection with the antenna device and sends a communication message.

[0063] By employing the method of exchanging heartbeat detection messages between the microwave device and the antenna device according to a first preset duration in this embodiment of the invention, the microwave device can determine whether the communication connection between the microwave device and the antenna device is normal. If no heartbeat message is received from the antenna device within a second preset duration, the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal, wherein the second preset duration is longer than the first preset duration. When the communication connection between the microwave device and the antenna device is normal, the microwave device sends a target message to the antenna device through the communication connection. The target message includes an opcode, message length, message sequence number, data, and checksum. Therefore, the problem of the microwave device and antenna being unable to communicate is solved, thereby achieving the effect of enabling communication between the microwave device and the antenna device.

[0064] In one or more embodiments, the microwave device transmits a target message to the antenna device via a communication connection, including:

[0065] When the message to be sent includes a start field and a content field, and the value of the start field is a first preset value, when the content field includes the first preset value, the microwave device replaces the first preset value in the content field of the message to be sent with a second preset value that is different from the first preset value to obtain the target message. Here, the first preset value is used to represent the start byte of a frame, and the antenna device is used to replace the second preset value back with the first preset value when it detects that the content field of the received target message includes the second preset value.

[0066] Microwave equipment sends target messages to antenna equipment via a communication connection.

[0067] For example, 0x55 represents the start byte of a frame (i.e., the start field). In other words, in this embodiment, 0x55 is the first preset value. If the content field needs to transmit data 0x55, it will be done according to the following scheme:

[0068] In microwave equipment: if the content field to be sent includes 0x55, it is replaced with the second preset value: 0x99 and 0x05; when 0x99 is the first preset value, if the content field to be sent is 0x99, it is replaced with the second preset value: 0x99 and 0x09.

[0069] In the antenna device: if the received content is 0x99 and 0x05, it is replaced with 0x55; if the received content is 0x99 and 0x09, it is replaced with 0x99. When receiving message content, the antenna device restores the received data according to a first preset value and a second preset value. That is, when the start byte and the content data are the same, the content data is replaced with other data to prevent confusion with the start byte and improve the efficiency and accuracy of data transmission.

[0070] In one or more embodiments, the microwave device transmits a target message to the antenna device via a communication connection, including:

[0071] During the process of the microwave device sending a first message to the antenna device through a communication connection, the microwave device detects a second message to be sent, wherein the target message includes the first message and the second message;

[0072] When the priority of the second message is higher than that of the first message, the microwave device interrupts the transmission of the first message and sends the second message to the antenna device through the communication connection; after the second message is sent, the microwave device continues to send the first message to the antenna device through the communication connection.

[0073] In this embodiment, the priority can include, but is not limited to, the urgency of the message. More urgent messages can be set to high priority and transmitted first; less urgent messages can be set to low priority and transmitted after high priority messages.

[0074] Specifically, the sending order of the first and second messages in the target message is determined according to their priorities, wherein the sending order of the first and second messages is positively correlated with their respective priorities. In this embodiment, assuming that the first message has a high priority and the second message has a low priority, the sending order is to send the first message first, followed by the second message. That is, the messages are sent to the antenna device sequentially according to their priorities in the target message.

[0075] It should be noted that during high-priority message transmission, a high-priority message can interrupt the transmission of a normal-priority message, but a high-priority message cannot interrupt the transmission of another high-priority message. Furthermore, normal-priority message transmission can only resume after the high-priority message has completed its transmission.

[0076] In one or more embodiments, after the microwave device sends the target message to the antenna device via a communication connection, the method further includes:

[0077] If the microwave device does not receive an acknowledgment message for the target message from the antenna device within the third preset time period, the microwave device will retransmit the target message to the antenna device.

[0078] In this embodiment, the third preset duration can be used to confirm the buffer time for receiving the target message. For example, if no confirmation message is received from the antenna device within 2 seconds, it can be determined that the message has not been sent or the message transmission has failed. In this case, the message can be resent.

[0079] In one or more embodiments, after establishing the communication connection with the antenna device, the data transmission method based on the microwave device further includes:

[0080] If the microwave equipment determines that the communication connection between the microwave equipment and the antenna equipment is abnormal, the microwave equipment disconnects the communication connection between the microwave equipment and the antenna equipment; or

[0081] If the microwave equipment determines that the communication connection between the microwave equipment and the antenna equipment is abnormal, the microwave equipment will re-establish the communication connection between the microwave equipment and the antenna equipment.

[0082] In this embodiment, assuming the microwave device does not receive a heartbeat feedback message from the antenna device within a second preset time period (e.g., 5 seconds), the communication connection between the microwave device and the antenna device includes at least the following two processing methods: one is to determine that there is a problem with the transmission link, in which case the communication connection with the antenna device can be disconnected; the other is that the antenna device may be malfunctioning, such as a blocked antenna motor, a blocked antenna brake, or a brake malfunction. When the antenna device malfunction is resolved, and the microwave device receives the heartbeat feedback message from the antenna device again within the second preset time period, the communication connection between the microwave device and the antenna device can be re-established.

[0083] In one or more embodiments, the microwave device transmits a target message to the antenna device via a communication connection, further comprising one of the following:

[0084] The microwave device sends a first request message to the antenna device, wherein the first request message is used to request the acquisition of the antenna device's status information, and the antenna device's status information includes at least one of the following: the antenna tilt angle of the antenna device, the antenna hardware information of the antenna device, and the antenna software information of the antenna device.

[0085] The microwave device sends a second request message to the antenna device, wherein the second request message is used to request to obtain alarm information from the antenna device;

[0086] The microwave device sends a third request message to the antenna device, wherein the third request message is used to actively report the received level value of the microwave device.

[0087] In this embodiment, the status information of the antenna device includes, but is not limited to, the antenna tilt angle, the antenna hardware information, and the antenna software information. The antenna tilt angle includes the antenna elevation angle, horizontal angle, and temperature information; the antenna hardware information includes the antenna type, the antenna SN code, the antenna PN code, etc.; and the antenna software information includes the antenna boot version number, the running software version number, the configuration version number, etc.

[0088] Alarm information for antenna equipment includes, but is not limited to, antenna motor blockage, antenna brake blockage, antenna not calibrated, antenna not configured, undefined hardware fault, brake malfunction, etc.

[0089] In addition, the message of actively reporting the received level value of the microwave equipment will be actively reported from the microwave equipment to the antenna equipment every 20ms, and the antenna will dynamically adjust the elevation and horizontal angles of the antenna according to the value.

[0090] In one or more embodiments, the above-described data transmission method based on microwave equipment further includes:

[0091] When the first software version running on the antenna device in the microwave equipment detection is different from the second software version of the antenna device stored on the microwave equipment, the software data of the second software version is sent to the antenna device.

[0092] In this embodiment, when the software version of the antenna device is different from the software version stored on the microwave device, the antenna device receives the software version upgrade request sent by the microwave device and replies to the microwave device with a confirmation message that the software version upgrade request has been received. If the microwave device receives the confirmation message sent by the antenna device, the microwave device sends the software data of the second software version to the antenna device.

[0093] In one or more embodiments, the microwave device transmits software data of the second software version to the antenna device, including:

[0094] The microwave equipment sends a software version upgrade request to the antenna equipment;

[0095] After the microwave device receives the response message sent by the antenna device corresponding to the software version upgrade request, the microwave device divides the software data of the second software version into multiple data blocks and sends each data block in the multiple data blocks to the antenna device one by one.

[0096] The process of sending each data block from multiple data blocks to the antenna device sequentially includes: after the microwave device sends the current data block from the multiple data blocks to the antenna device, and after the microwave device receives a normal response message from the antenna device corresponding to the current data block, the microwave device sends the next data block from the multiple data blocks to the antenna device. The normal response message indicates that the current data block received by the antenna device is normal.

[0097] Specifically, such as Figure 4 As shown, the method for updating the software version of the above-mentioned antenna device includes the following:

[0098] Step S402: The microwave device sends a software version upgrade request;

[0099] Step S404: The antenna device sends a response message corresponding to the software version request;

[0100] Step S406: The microwave device sends a data transmission command and sequentially sends data block 1, data block 2... data block n, specifically including the following steps:

[0101] S406-1, Send data block 1;

[0102] S406-2, Send a normal response message corresponding to data block 1;

[0103] S406-3, Send data block 2;

[0104] S406-4, Send a normal response message corresponding to data block 2;

[0105] …

[0106] S406-n-1, Send data block n;

[0107] S406-n, send a normal response message corresponding to data block n;

[0108] In this process, after the antenna device receives each data block sent by the microwave device, it will send back a response message to the microwave device corresponding to the current data block.

[0109] In step S408, the microwave device sends a stop data transmission command;

[0110] In step S410, the antenna device sends a command to stop replying to the corresponding message.

[0111] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solutions of the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described above in the various embodiments of the present invention.

[0112] This embodiment also provides a data transmission device based on a microwave device, which is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "unit" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.

[0113] Figure 5 This is a structural block diagram of a microwave data transmission device according to an embodiment of the present invention, such as... Figure 5 As shown, the device includes:

[0114] The first transmission unit 502 is used to send a heartbeat message to the antenna device every first preset time interval;

[0115] The processing unit 504 is configured to determine that the communication connection between the microwave device and the antenna device is normal when a heartbeat message sent by the antenna device to the microwave device is received every first preset time interval; and to determine that the communication connection between the microwave device and the antenna device is abnormal when no heartbeat message sent by the antenna device to the microwave device is received within a second preset time interval, wherein the second preset time interval is longer than the first preset time interval.

[0116] The second transmission unit 506 is used to send a target message to the antenna device through the communication connection when the communication connection between the microwave device and the antenna device is normal; wherein, the target message includes an opcode, message length, message sequence number, data and check bit.

[0117] By employing a method in this embodiment of the invention where a microwave device and an antenna device exchange heartbeat detection messages for a first preset duration, the microwave device can determine whether the communication connection between them is normal. Conversely, if no heartbeat message is received from the antenna device within a second preset duration (where the second preset duration is longer than the first preset duration), the microwave device determines that the communication connection is abnormal. When the communication connection is normal, the microwave device sends a target message to the antenna device through the communication connection. This target message includes an opcode, message length, message sequence number, data, and a checksum. Therefore, this solves the problem of communication failure between the microwave device and the antenna, thereby enabling communication between them.

[0118] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.

[0119] In this embodiment of the invention, a computer-readable storage medium is also provided, which stores a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when it is run.

[0120] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0121] An embodiment of the present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.

[0122] In one exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor and the input / output device is connected to the processor.

[0123] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.

[0124] Obviously, those skilled in the art should understand that the modules or steps of the above-described embodiments of the present invention can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the embodiments of the present invention are not limited to any particular combination of hardware and software.

[0125] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention can have various modifications and variations. Any modifications, equivalent substitutions, improvements, etc., made within the principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A data transmission method based on microwave equipment, characterized in that, include: The microwave equipment sends a heartbeat detection message to the antenna equipment every first preset time interval; When the microwave device receives a heartbeat message sent by the antenna device to the microwave device every first preset time interval, the microwave device determines that the communication connection between the microwave device and the antenna device is normal. If no heartbeat message is received from the antenna device to the microwave device within a second preset time period, the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal, wherein the second preset time period is longer than the first preset time period; If the communication connection between the microwave device and the antenna device is abnormal, the microwave device disconnects the communication connection between the microwave device and the antenna device; or, the microwave device re-establishes the communication connection between the microwave device and the antenna device. When the communication connection between the microwave device and the antenna device is normal, the microwave device sends a target message to the antenna device through the communication connection. The target message includes an opcode, message length, message sequence number, data, and check bit. If the microwave device does not receive an acknowledgment message for the target message from the antenna device within a third preset time period, the microwave device retransmits the target message to the antenna device.

2. The method according to claim 1, characterized in that, The microwave device sends a target message to the antenna device through the communication connection, including: When the message to be sent includes a start field and a content field, and the value of the start field is a first preset value, When the content field includes the first preset value, the microwave device replaces the first preset value in the content field of the message to be sent with a second preset value that is different from the first preset value to obtain the target message. In this case, the first preset value is used to represent the start byte of a frame. When the antenna device detects that the content field of the received target message includes the second preset value, it replaces the second preset value back with the first preset value. The microwave device sends the target message to the antenna device through the communication connection.

3. The method according to claim 1, characterized in that, The microwave device sends a target message to the antenna device through the communication connection, including: During the process of the microwave device sending a first message to the antenna device through the communication connection, the microwave device detects a second message to be sent, wherein the target message includes the first message and the second message; When the priority of the second message is higher than that of the first message, the microwave device interrupts the transmission of the first message and sends the second message to the antenna device through the communication connection; after the second message is sent, the microwave device continues to send the first message to the antenna device through the communication connection.

4. The method according to claim 1, characterized in that, The microwave device sends a target message to the antenna device through the communication connection, and also includes one of the following: The microwave device sends a first request message to the antenna device, wherein the first request message is used to request to obtain the status information of the antenna device, and the status information of the antenna device includes at least one of the following: the antenna tilt angle of the antenna device, the antenna hardware information of the antenna device, and the antenna software information of the antenna device; The microwave device sends a second request message to the antenna device, wherein the second request message is used to request to obtain alarm information of the antenna device; The microwave device sends a third request message to the antenna device, wherein the third request message is used to report the received level value of the microwave device.

5. The method according to claim 1, characterized in that, The method further includes: When the microwave device detects that the first software version running on the antenna device is different from the second software version of the antenna device stored on the microwave device, the microwave device sends the software data of the second software version to the antenna device.

6. The method according to claim 5, characterized in that, The microwave device sends the software data of the second software version to the antenna device, including: The microwave device sends a software version upgrade request to the antenna device; After the microwave device receives the response message sent by the antenna device corresponding to the software version upgrade request, the microwave device divides the software data of the second software version into multiple data blocks and sends each of the multiple data blocks to the antenna device in turn.

7. The method according to claim 6, characterized in that, The step of sequentially sending each of the plurality of data blocks to the antenna device includes: After the microwave device sends the current data block from the plurality of data blocks to the antenna device, and upon receiving a normal response message from the antenna device corresponding to the current data block, the microwave device sends the next data block from the plurality of data blocks to the antenna device, wherein the normal response message indicates that the current data block received by the antenna device is normal.

8. A data transmission device, characterized in that, include: The first transmission unit is used to send a heartbeat message to the antenna device every first preset time interval; The processing unit is configured to determine that the communication connection between the microwave device and the antenna device is normal when it receives a heartbeat message sent by the antenna device to the microwave device every first preset time interval; If no heartbeat message is received from the antenna device to the microwave device within a second preset time period, it is determined that the communication connection between the microwave device and the antenna device is abnormal, wherein the second preset time period is longer than the first preset time period; The second transmission unit is used to send a target message to the antenna device through the communication connection when the communication connection between the microwave device and the antenna device is normal. The target message includes an opcode, a message length, a message sequence number, data, and a check bit. The device is also configured to, in the event that the communication connection between the microwave device and the antenna device is abnormal, disconnect the communication connection between the microwave device and the antenna device; or re-establish the communication connection between the microwave device and the antenna device. The device is further configured to, after sending a target message to the antenna device via the communication connection, if the microwave device does not receive an acknowledgment message for the target message from the antenna device within a third preset time period, resend the target message to the antenna device.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program is configured to perform the method described in any one of claims 1 to 7 when executed.

10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Microwave equipment monitoring method based on frequency division technology

    CN112333726A

  • Communication method and apparatus

    WO2019037458A1

  • Method for transmitting multicast message, and related apparatus

    WO2021082879A1