CN116233898A - Data transmission method and device based on microwave equipment, storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN116233898A
CN116233898A CN202111480049.8A CN202111480049A CN116233898A CN 116233898 A CN116233898 A CN 116233898A CN 202111480049 A CN202111480049 A CN 202111480049A CN 116233898 A CN116233898 A CN 116233898A
Authority
CN
China
Prior art keywords
antenna
microwave
equipment
message
communication connection
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.)
Pending
Application number
CN202111480049.8A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN202111480049.8A priority Critical patent/CN116233898A/en
Priority to PCT/CN2022/136653 priority patent/WO2023103985A1/en
Publication of CN116233898A publication Critical patent/CN116233898A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Near-Field Transmission Systems (AREA)

Abstract

The embodiment of the invention provides a data transmission method and device based on microwave equipment, a storage medium and electronic equipment, wherein the method comprises the following steps: the microwave equipment sends heartbeat messages to the antenna equipment every a first preset time length; when heartbeat messages sent by the antenna equipment to the microwave equipment are received at intervals of a first preset time length, the microwave equipment determines that the communication connection between the microwave equipment and the antenna equipment is normal; when the heartbeat message sent by the antenna equipment to the microwave equipment is not received within a second preset time period, the microwave equipment determines that the communication connection between the microwave equipment and the antenna equipment is abnormal; under the condition that the communication connection between the microwave equipment and the antenna equipment is normal, the microwave equipment sends a target message to the antenna equipment through the communication connection, wherein the target message comprises an operation code, a message length, a message sequence number, data and check bits. By the embodiment of the invention, the technical problem that the microwave equipment and the antenna equipment cannot communicate is solved.

Description

Data transmission method and device based on microwave equipment, storage medium and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of wireless technology, in particular to a data transmission method and device based on microwave equipment, a storage medium and electronic equipment.
Background
The existing communication protocol is applied in the base station, and the microwave equipment does not define the communication protocol between the equipment and the antenna equipment.
No effective solution has been proposed to the problem of how the microwave device communicates with the antenna device.
Disclosure of Invention
The embodiment of the invention provides a data transmission method and device based on microwave equipment, a storage medium and electronic equipment, which at least solve the problem that the microwave equipment and antenna equipment cannot communicate in the related technology.
According to an embodiment of the present invention, there is provided a data transmission method based on a microwave apparatus, including: the microwave equipment sends heartbeat detection messages to the antenna equipment at intervals of a first preset time length; when heartbeat messages sent by the antenna equipment to the microwave equipment are received at intervals of a first preset time length, the microwave equipment determines that the communication connection between the microwave equipment and the antenna equipment is normal; when the heartbeat message sent by the antenna equipment to the microwave equipment is not received within a second preset time period, the microwave equipment determines that the communication connection between the microwave equipment and the antenna equipment is abnormal, wherein the second preset time period is longer than the first preset time period; under the condition that the communication connection between the microwave equipment and the antenna equipment is normal, the microwave equipment sends a target message to the antenna equipment through the communication connection; the target message comprises an operation code, a message length, a message sequence number, data and check bits.
According to another embodiment of the present invention, there is provided a data transmission apparatus based on a microwave device, including: the first transmission unit is used for transmitting heartbeat detection messages to the antenna equipment at intervals of a first preset time length by the microwave equipment; the processing unit is used for determining that the communication connection between the microwave equipment and the antenna equipment is normal when the heartbeat message sent by the antenna equipment to the microwave equipment is received at intervals of a first preset time length; when the heartbeat message sent by the antenna equipment to the microwave equipment is not received within a second preset time period, the microwave equipment determines that the communication connection between the microwave equipment and the antenna equipment is abnormal, wherein the second preset time period is longer than the first preset time period; a second transmission unit, configured to send a target message to the antenna device through a communication connection by the microwave device under a condition that the communication connection between the microwave device and the antenna device is normal; the target message comprises an operation code, a message length, a message sequence number, data and check bits.
According to a further embodiment of the present invention, there is also provided a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the present invention there is also provided an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
By mutually sending the heartbeat detection message between the microwave equipment and the antenna equipment according to the first preset duration, the microwave equipment can determine whether the communication connection between the microwave equipment and the antenna equipment is normal; the method comprises the steps that the microwave equipment determines that communication connection between the microwave equipment and the antenna equipment is abnormal by adopting a mode that heartbeat messages sent by the antenna equipment to the microwave equipment are not received within a second preset time length, wherein the second preset time length is longer than the first preset time length; under the condition that the communication connection between the microwave equipment and the antenna equipment is normal, the microwave equipment sends a target message to the antenna equipment through the communication connection; the target message comprises an operation code, a message length, a message sequence number, data and check bits. Therefore, the problem that the microwave equipment and the antenna cannot communicate is solved, and the effect of enabling the microwave equipment and the antenna equipment to communicate is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a microwave data transmission method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a microwave data transmission method according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a data format of microwave data transmission according to an embodiment of the present invention;
FIG. 4 is a flow chart of another method of data transmission according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a microwave data transmission device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the embodiments of the present invention and the above-described drawings are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal of a microwave data transmission method according to an embodiment of the present invention. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a microwave data transmission method in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. 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 examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
The embodiment of the invention defines a protocol for communication between microwave equipment and a microwave antenna, wherein the protocol comprises a protocol layer, a link layer and a message layer, and each data layer in the protocol is respectively described as follows:
1) Protocol layer
In the protocol layer, a message format in which the microwave device communicates with the antenna device is defined, specifically, the message format of the transmitted message includes an operation code, a message length (the length includes a check bit), a message sequence number, data, and a check bit. As shown in fig. 3, the start byte of a frame (i.e., the first preset value) is denoted by 0x55, and if 0x55 is required to be transmitted in the data in the content field, the following scheme is adopted:
microwave equipment: and if the transmitted content is 0x55, replacing with second preset data: 0x99 and 0x05; if the transmitted content is 0x99, 0x99 and 0x09 are replaced;
antenna device: 0x55 if the received content is 0x99 and 0x05; 0x99 is replaced if the received content is 0x99 and 0x 09.
2) Link layer
2.1 In the link layer, each device in the link layer may perform start position detection on the message packet in the protocol layer, for example, if the device in the current link recognizes that the current message packet starts with 0x55, it may be considered that the current message packet is the start of a message frame.
2.2 In the link layer, the technical solution of the present application also supports transmission of a message with a high priority, for example, during a process that the microwave device sends a first message (or referred to as a first message) to the antenna device through a communication connection, the microwave device detects a second message to be sent, where the priority of the second message is higher than that of the first message, and at this time, the microwave device will interrupt sending of the first message and send the second message to the antenna device. After the second message is sent, the microwave equipment continues to send the first message to the antenna equipment for sending. That is, the high-priority message can interrupt the transmission of the common message, but the high-priority message cannot interrupt the transmission of the high-priority message, and the transmission of the common message is resumed after the transmission of the high-priority message is completed.
2.3 In the link layer, the technical scheme of the application also supports timeout retransmission, for example, when the microwave device does not receive a confirmation message of a received message sent by the antenna device within 200ms after one message of the microwave device is sent, the message sent by the microwave device is considered to be lost, and the microwave device needs to resend the message.
2.4 In the link layer, the technical scheme of the 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 heartbeat messages to each other every 1s, and when the microwave device or the antenna device does not receive the heartbeat messages within 6s continuously, the microwave device and the antenna device are considered to lose connection.
3) Message layer
In the message layer, the antenna device may obtain the latest software release from the microwave device. As for the download version request message, table 1 shows.
TABLE 1
Figure BDA0003394608640000031
/>
The version downloading flow is as follows: the software version of the antenna device is stored on the microwave device, and when the microwave device detects that the first software version of the antenna device running is different from the second software version of the antenna device stored on the microwave device, the microwave device initiates a software version upgrade request.
Firstly, a microwave device initiates a software version upgrading request of an antenna device, and after receiving the software version upgrading request, the antenna device initializes resources required by version downloading and replies to the microwave device. After receiving the reply of the version download request, the microwave device starts to transmit the software data of the second software version, as an alternative example, the microwave device divides the software data of the second software version into a plurality of data blocks, and each data block in the plurality of data blocks is sequentially transmitted to the antenna device.
In the process of transmitting the software data of the second software version, after the microwave equipment transmits a data block to the antenna equipment, the antenna equipment needs to reply the microwave equipment, if the antenna equipment detects that the received data block is normal, the returned error code is 0, the microwave equipment continues to transmit the next data block after receiving the error code to be 0, if the antenna equipment detects that the received data block is abnormal, the returned error code is non-0, and if the microwave equipment receives the error code to be non-0, the microwave equipment retransmits the data block transmitted before, or stops transmission; and after the microwave equipment finishes the transmission of the data block, sending a stop command, and after the antenna equipment receives the stop command, starting to check the software data of the second software version and finishing the loading of the second software version.
In one or more embodiments, the formats of the request message for acquiring the antenna state information, the alarm information and actively reporting the reception level value are shown in table 2;
TABLE 2
Figure BDA0003394608640000041
A) The message "zxmw_getstatus" is used to obtain at least one of the following information:
a.1 Antenna inclination angle including antenna elevation angle, horizontal angle, temperature information
A.2 The hardware information of the antenna, including the type of the antenna, the device Serial Number (SN code) of the antenna, and the Part Number (PN code) of the antenna.
A.3 The software information of the antenna, including the boot version number of the antenna, the running software version number, and the configuration version number.
B) The message "zxmw_getalarm" is used to obtain at least one of the following information:
b.1 Antenna motor blockage;
b.2 Antenna brake blocked;
b.3 The antenna is not calibrated;
b.4 An antenna is not configured;
b.5 Undefined hardware failure;
b.6 A brake runaway;
c) The message "zxmw_setrsl" is used to report the reception level value of the microwave device.
The request message of the parameters is reported to the antenna device from the microwave device every 20ms, and after the microwave device sends a state acquisition message or an alarm acquisition message to the antenna device, the antenna device replies a confirmation message of the received state acquisition message or alarm acquisition message to the microwave device; but after the microwave device actively transmits a message reporting the reception level value to the antenna device, the antenna device does not need to reply an acknowledgement message to the microwave device. Further, the antenna device dynamically adjusts the pitch angle and the horizontal angle of the antenna according to the message of the receiving level value actively reported by the microwave device (the receiving level value of the microwave device).
In one or more embodiments, the microwave device and the antenna periodically send heartbeat messages to detect whether the other party is normal. The parameters of the heartbeat message are shown in table 3.
TABLE 3 Table 3
Figure BDA0003394608640000051
Wherein zxmw_heartbeat is the name of the message, "0x03" is the number of the message, and "Heartbeat packet" is the description of the message, here, the Heartbeat message.
Based on the content of the communication protocol between the antenna devices of the microwave device in the foregoing embodiment of the present invention, the embodiment of the present invention further provides a data transmission method based on the microwave device, which operates on the system architecture shown in fig. 1, and fig. 2 is a flowchart of the data transmission method based on the microwave device in the embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, a microwave device sends a heartbeat detection message to an antenna device at intervals of a first preset time length;
step S204, when a heartbeat message sent by the antenna equipment to the microwave equipment is received at intervals of a first preset time length, the microwave equipment determines that the communication connection between the microwave equipment and the antenna equipment is normal;
step S206, when the heartbeat message sent by the antenna device to the microwave device is not received 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;
step S208, under the condition that the communication connection between the microwave equipment and the antenna equipment is normal, the microwave equipment sends a target message to the antenna equipment through the communication connection; the target message comprises an operation code, a message length, a message sequence number, data and check bits.
In the embodiment of the application, after receiving the heartbeat detection message fed back by the antenna device, the microwave device establishes communication connection with the antenna device and sends the communication message.
By mutually sending the heartbeat detection message between the microwave equipment and the antenna equipment according to the first preset duration, the microwave equipment can determine whether the communication connection between the microwave equipment and the antenna equipment is normal; the method comprises the steps that the microwave equipment determines that communication connection between the microwave equipment and the antenna equipment is abnormal by adopting a mode that heartbeat messages sent by the antenna equipment to the microwave equipment are not received within a second preset time length, wherein the second preset time length is longer than the first preset time length; under the condition that the communication connection between the microwave equipment and the antenna equipment is normal, the microwave equipment sends a target message to the antenna equipment through the communication connection; the target message comprises an operation code, a message length, a message sequence number, data and check bits. Therefore, the problem that the microwave equipment and the antenna cannot communicate is solved, and the effect of enabling the microwave equipment and the antenna equipment to communicate is achieved.
In one or more embodiments, the microwave device sends a target message to an antenna device through a communication connection, including:
when the first preset value is included in the content field, replacing the first preset value in the content field in the message to be sent with a second preset value different from the first preset value to obtain a target message, wherein the first preset value is used for representing a starting byte of a frame, and the antenna device is used for replacing the second preset value with the first preset value when the antenna device detects that the second preset value is included in the content field in the received target message;
the microwave device sends the target message to the antenna device over the communication connection.
For example, the start byte (i.e., the start field) of a frame is denoted by 0x55, that is, in this embodiment, 0x55 is a first preset value, and if the content field needs to transmit 0x55, the following scheme is adopted:
in a microwave device: if the transmitted content field includes 0x55, then the second preset value is replaced: 0x99 and 0x05; when 0x99 is the first preset value, if the transmitted content field is 0x99, replacing with the second preset value: 0x99 and 0x09;
in an antenna device: 0x55 if the received content is 0x99 and 0x05; and 0x99 if the received contents are 0x99 and 0x 09. And when the antenna equipment receives the message content, restoring the received data according to the first preset value and the second preset value. That is, when the message start byte and the content part data are the same, the content part data are replaced by other data, so that confusion with the message start byte is prevented, and the efficiency and accuracy of data transmission are improved.
In one or more embodiments, the microwave device sends a target message to an antenna device through a communication connection, including:
in the process that the microwave equipment sends a first message to the antenna equipment through communication connection, the microwave equipment detects a second message to be sent, wherein the target message comprises the first message and the second message;
when the priority of the second message is higher than that of the first message, the microwave equipment interrupts the sending of the first message and sends the second message to the antenna equipment through communication connection; after the second message transmission is completed, the microwave device continues to transmit the first message to the antenna device through the communication connection.
In this embodiment, the priority may include, but is not limited to, an emergency degree of the message, and the emergency message may be set to be a high priority, and is transmitted preferentially; the non-urgent message can be set to a low priority, and can be transmitted after the message with a high priority.
Specifically, the sending sequence of the first message and the second message is determined according to the priority of the first message and the second message in the target message, wherein the sending sequence of the first message and the second message is positively related to the respective priority. In this embodiment, assuming that the priority of the first message is high and the priority of the second message is low, the sending sequence is to send the first message first and then send the second message. That is, each message is sequentially transmitted to the antenna device according to the priority of each message in the target message.
It should be noted that, in the case of transmission of a message of high priority, the transmission of a message of ordinary priority may be interrupted by a message of high priority, but the transmission of a message of high priority cannot be interrupted by a message of high priority. And, the transmission of the normal message can be resumed only when the transmission of the message of high priority is completed.
In one or more embodiments, after the microwave device sends the target message to the antenna device through the communication connection, the method further includes:
and when the microwave equipment does not receive the confirmation message sent by the antenna equipment for the target message within the third preset time period, the microwave equipment resends the target message to the antenna equipment.
In this embodiment, the third preset duration may confirm the buffer time of the receiving target message, for example, when the acknowledgement message sent by the antenna apparatus is not received within 2 seconds, it may be determined that the message is not sent or the message transmission fails, and at this time, the message may be resent.
In one or more embodiments, after the communication connection with the antenna device is established, the data transmission method based on the microwave device further includes:
under the condition that 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 alternatively
In case the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal, the microwave device reestablishes the communication connection between the microwave device and the antenna device.
In this embodiment, it is assumed that, when the microwave device does not receive the heartbeat feedback message of the antenna device within the second preset duration (e.g. 5 s), the following two processing manners are at least included for connection communication between the microwave device and the antenna device: one is to identify a problem with the transmission link, at which time the communication connection with the antenna device may be broken; another is that the antenna device may malfunction, such as an antenna motor jam, an antenna brake jam, a brake runaway, etc. After the fault of the antenna device is relieved, when the microwave device receives the heartbeat feedback message of the antenna device again within the second preset time, the communication connection between the microwave device and the antenna device can be reestablished.
In one or more embodiments, the microwave device transmits the targeted message to the antenna device over the communication connection, further comprising one of:
the microwave device sends a first request message to the antenna device, wherein the first request message is used for requesting to acquire state information of the antenna device, and the state information of the antenna device comprises at least one of the following: antenna inclination angle of the antenna device, antenna hardware information of the antenna device, antenna software information of the antenna device;
the microwave equipment sends a second request message to the antenna equipment, wherein the second request message is used for requesting to acquire the alarm information of the antenna equipment;
the microwave equipment sends a third request message to the antenna equipment, wherein the third request message is used for actively reporting the receiving level value of the microwave equipment.
In the present embodiment, the status information of the antenna device includes, but is not limited to, an antenna inclination angle, hardware information of the antenna, and software information of the antenna. The antenna inclination angle comprises the pitching angle, the horizontal angle and the temperature information of the antenna; the hardware information of the antenna comprises the type of the antenna, the SN code of the antenna, PN code and the like; the software information of the antenna includes a boot version number, a running software version number, a configuration version number, and the like of the antenna.
The alarm information of the antenna device includes, but is not limited to, antenna motor blockage, antenna brake blockage, antenna not calibrated, antenna not configured, undefined hardware failure, brake runaway, etc.
In addition, the message of the receiving level value of the microwave equipment is actively reported to the antenna equipment from the microwave equipment every 20ms, and the antenna dynamically adjusts the pitch angle and the horizontal angle of the antenna according to the value.
In one or more embodiments, the data transmission method based on a microwave device further includes:
and when the microwave equipment detects that the first software version running on the antenna equipment is different from the second software version of the antenna equipment stored on the microwave equipment, transmitting the software data of the second software version to the antenna equipment.
In this embodiment, when the software version of the antenna device and the software version stored on the microwave device are different; the antenna equipment receives a software version upgrading request sent by the microwave equipment and replies a confirmation message of the received software version upgrading request to the microwave equipment; and under the condition that the microwave equipment receives the confirmation message sent by the antenna equipment, the microwave equipment sends the software data of the second software version to the antenna equipment.
In one or more embodiments, the microwave device transmits the software data of the second software version to the antenna device, including:
the microwave equipment sends a software version upgrading request to the antenna equipment;
after the microwave equipment acquires a response message which is sent by the antenna equipment and corresponds to the software version upgrading request, the microwave equipment divides the software data of the second software version into a plurality of data blocks, and each data block in the plurality of data blocks is sent to the antenna equipment successively;
wherein transmitting each of the plurality of data blocks to the antenna apparatus successively comprises: after the microwave device sends the current data block in the plurality of data blocks to the antenna device, the microwave device sends the next data block in the current data block in the plurality of data blocks to the antenna device under the condition that the microwave device obtains a normal response message corresponding to the current data block sent by the antenna device, wherein the normal response message is used for indicating that the current data block received by the antenna device is normal.
Specifically, as shown in fig. 4, the method for updating the software version of the antenna device includes the following steps:
step S402, the microwave equipment sends a software version upgrading request;
step S404, the antenna device sends a response message corresponding to the software version request;
step S406, the microwave device sends a data transmission instruction, and sequentially sends a data block 1 and a data block 2 and …, specifically includes the following steps:
s406-1, transmitting a data block 1;
s406-2, a normal response message corresponding to the data block 1 is sent;
s406-3, transmitting the data block 2;
s406-4, sending a normal response message corresponding to the data block 2;
s406-n-1, transmitting a data block n;
s406-n, sending a normal response message corresponding to the data block n;
after receiving each data block sent by the microwave equipment, the antenna equipment feeds back a response message corresponding to the current data block to the microwave equipment;
step S408, the microwave equipment sends a data transmission stopping instruction;
in step S410, the antenna device sends a stop reply corresponding message instruction.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the embodiments of the present invention.
The embodiment also provides a data transmission device based on a microwave device, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "unit" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of a microwave data transmission apparatus according to an embodiment of the present invention, as shown in fig. 5, the apparatus including:
a first transmission unit 502, configured to send a heartbeat message to the antenna device every a first preset duration;
a processing unit 504, configured to determine that communication connection between the microwave device and the antenna device is normal when heartbeat messages sent by the antenna device to the microwave device are received every a first preset duration; when the heartbeat message sent by the antenna equipment to the microwave equipment is not received within a second preset time period, determining that the communication connection between the microwave equipment and the antenna equipment is abnormal, wherein the second preset time period is longer than the first preset time period;
a second transmission unit 506, configured to send a target message to the antenna device through a communication connection under a condition that the communication connection between the microwave device and the antenna device is normal; the target message comprises an operation code, a message length, a message sequence number, data and check bits.
According to the embodiment of the invention, the microwave equipment can determine whether the communication connection between the microwave equipment and the antenna equipment is normal or not by mutually sending the heartbeat detection message between the microwave equipment and the antenna equipment according to the first preset duration; the method comprises the steps that the microwave equipment determines that communication connection between the microwave equipment and the antenna equipment is abnormal by adopting a mode that heartbeat messages sent by the antenna equipment to the microwave equipment are not received within a second preset time length, wherein the second preset time length is longer than the first preset time length; under the condition that the communication connection between the microwave equipment and the antenna equipment is normal, the microwave equipment sends a target message to the antenna equipment through the communication connection; the target message comprises an operation code, a message length, a message sequence number, data and check bits. Therefore, the problem that the microwave equipment and the antenna cannot communicate is solved, and the effect of enabling the microwave equipment and the antenna equipment to communicate is achieved.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
There is also provided in an embodiment of the invention a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the embodiments of the present invention, and various modifications and variations can be made to the embodiments of the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims (12)

1. A data transmission method based on microwave equipment, comprising:
the microwave equipment sends heartbeat detection messages to the antenna equipment at intervals of a first preset time length;
when a heartbeat message sent by the antenna equipment to the microwave equipment is received at intervals of the first preset time length, the microwave equipment determines that the communication connection between the microwave equipment and the antenna equipment is normal;
when a heartbeat message sent by the antenna device to the microwave device is not received within a second preset time period, the microwave device determines that 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;
under the condition that the communication connection between the microwave equipment and the antenna equipment is normal, the microwave equipment sends a target message to the antenna equipment through the communication connection; the target message comprises an operation code, a message length, a message sequence number, data and check bits.
2. The method of claim 1, wherein the microwave device transmitting a target message to the antenna device over the communication connection comprises:
in the case that the message to be transmitted includes a start field and a content field, and the value of the start field is a first preset value,
when the first preset value is included in the content field, the microwave device replaces the first preset value in the content field in the message to be sent with a second preset value different from the first preset value to obtain the target message, wherein the first preset value is used for representing a start byte of a frame, and the antenna device is used for replacing the second preset value with the first preset value when the antenna device detects that the second preset value is included in the content field in the received target message;
the microwave device sends the target message to an antenna device over the communication connection.
3. The method of claim 1, wherein the microwave device transmitting a target message to the antenna device over the communication connection comprises:
in the process that the microwave equipment sends a first message to the antenna equipment through the communication connection, the microwave equipment detects a second message to be sent, wherein the target message comprises the first message and the second message;
when the priority of the second message is higher than that of the first message, the microwave equipment interrupts the transmission of the first message and transmits the second message to the antenna equipment 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 of claim 1, wherein after the microwave device transmits a target message to the antenna device over the communication connection, the method further comprises:
and when the microwave equipment does not receive the confirmation message of the target message sent by the antenna equipment within a third preset time period, the microwave equipment resends the target message to the antenna equipment.
5. The method of claim 1, wherein in the event that the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal, the method further comprises:
the microwave device disconnects the communication connection between the microwave device and the antenna device; or alternatively
The microwave device reestablishes a communication connection between the microwave device and the antenna device.
6. The method of claim 1, wherein the microwave device transmits a target message to an antenna device over the communication connection, further comprising one of:
the microwave device sends a first request message to the antenna device, wherein the first request message is used for requesting to acquire state information of the antenna device, and the state information of the antenna device comprises at least one of the following: the antenna inclination angle of the antenna device, the antenna hardware information of the antenna device and the antenna software information of the antenna device;
the microwave equipment sends a second request message to the antenna equipment, wherein the second request message is used for requesting to acquire the alarm information of the antenna equipment;
and the microwave equipment sends a third request message to the antenna equipment, wherein the third request message is used for reporting the receiving level value of the microwave equipment.
7. The method according to claim 1, wherein the method further comprises:
and when the microwave equipment detects that the first software version running on the antenna equipment is different from the second software version of the antenna equipment stored on the microwave equipment, the microwave equipment sends the software data of the second software version to the antenna equipment.
8. The method of claim 7, wherein the microwave device transmitting the software data of the second software version to the antenna device comprises:
the microwave equipment sends a software version upgrading request to the antenna equipment;
after the microwave device obtains the response message corresponding to the software version upgrading request sent by the antenna device, the microwave device divides the software data of the second software version into a plurality of data blocks, and each data block in the plurality of data blocks is sent to the antenna device successively.
9. The method of claim 8, wherein the transmitting each of the plurality of data blocks to the antenna device in sequence comprises:
after the microwave device sends the current data block in the plurality of data blocks to the antenna device, the microwave device sends the next data block in the plurality of data blocks to the antenna device under the condition that the microwave device obtains a normal response message corresponding to the current data block sent by the antenna device, wherein the normal response message is used for indicating that the current data block received by the antenna device is normal.
10. A data transmission apparatus, comprising:
the first transmission unit is used for sending heartbeat messages to the antenna equipment at intervals of a first preset time length;
the processing unit is used for determining that the communication connection between the microwave equipment and the antenna equipment is normal when heartbeat messages sent by the antenna equipment to the microwave equipment are received every other first preset time length; when a heartbeat message sent by the antenna equipment to the microwave equipment is not received within a second preset time period, determining that communication connection between the microwave equipment and the antenna equipment is abnormal, wherein the second preset time period is longer than the first preset time period;
a second transmission unit configured to transmit a target message to the antenna apparatus through a communication connection between the microwave apparatus and the antenna apparatus in a case where the communication connection is normal; the target message comprises an operation code, a message length, a message sequence number, data and check bits.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program, wherein the computer program is arranged to execute the method of any of the claims 1 to 9 when run.
12. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 9.
CN202111480049.8A 2021-12-06 2021-12-06 Data transmission method and device based on microwave equipment, storage medium and electronic equipment Pending CN116233898A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111480049.8A CN116233898A (en) 2021-12-06 2021-12-06 Data transmission method and device based on microwave equipment, storage medium and electronic equipment
PCT/CN2022/136653 WO2023103985A1 (en) 2021-12-06 2022-12-05 Microwave device-based data transmission method and apparatus, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111480049.8A CN116233898A (en) 2021-12-06 2021-12-06 Data transmission method and device based on microwave equipment, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN116233898A true CN116233898A (en) 2023-06-06

Family

ID=86587911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111480049.8A Pending CN116233898A (en) 2021-12-06 2021-12-06 Data transmission method and device based on microwave equipment, storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN116233898A (en)
WO (1) WO2023103985A1 (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8797146B2 (en) * 2010-04-27 2014-08-05 Apple Inc. Autonomous battery-free microwave frequency communication system
JP5383934B2 (en) * 2013-01-11 2014-01-08 株式会社東芝 Wireless terminal and wireless communication method
CN104022812A (en) * 2014-06-26 2014-09-03 武汉虹信通信技术有限责任公司 Intelligent microwave repeater
JP7428586B2 (en) * 2020-05-20 2024-02-06 矢崎総業株式会社 Wireless communication devices and wireless communication systems
CN112333726A (en) * 2020-12-04 2021-02-05 天津七一二通信广播股份有限公司 Microwave equipment monitoring method based on frequency division technology
CN115149992A (en) * 2021-04-09 2022-10-04 刘道选 System and method for offshore over-the-horizon microwave wireless transmission based on algorithm

Also Published As

Publication number Publication date
WO2023103985A1 (en) 2023-06-15

Similar Documents

Publication Publication Date Title
US11889255B2 (en) Communication method between earphones and charging box, charging box, earphones and readable storage medium
CN112035145B (en) Equipment upgrading method and related device
EP3570477B1 (en) Method and apparatus for retransmission processing
CN113721966B (en) Node upgrading method and device, storage medium and electronic device
US8391307B2 (en) Method for handling communications over a non-permanent communication link
CN115687226A (en) I2c bus communication method, device and readable storage medium
CN103973414A (en) Data transmission method and device
CN114079541A (en) Method and device for indicating and determining serial number
CN112395237A (en) Method and system for communication between at least two controllers
CN109428684B (en) Data transmission method, RLC entity and PDCP entity
CN112887416B (en) Frequency adjustment method and device for sending keep-alive packets
EP3316606A1 (en) Beacon sensor advertisement frame
KR20200016982A (en) Method and system for data transmission, and apparatus
CN112019306B (en) Data retransmission method and device
CN116233898A (en) Data transmission method and device based on microwave equipment, storage medium and electronic equipment
EP3672189B1 (en) Data transmission method, device and system
CN110557229B (en) Data sending method, data receiving method, sending end and receiving end
CN109392093B (en) Method and equipment for sending paging message
CN112153694B (en) Data processing method, device, terminal and storage medium
CN111654355B (en) Data transmission method, system, electronic device and storage medium
KR20220024642A (en) Parameter optimization method, apparatus, base station, server and storage medium
JP2004260562A (en) Method and device for transmitting and receiving packet
CN115460648B (en) Wireless link failure detection method, device, equipment and storage medium
US20220247542A1 (en) Resource activation method and apparatus, storage medium and electronic apparatus
CN115297178B (en) Message sending method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication