WO2023103985A1 - 基于微波设备的数据传输方法和装置、存储介质及电子设备 - Google Patents

基于微波设备的数据传输方法和装置、存储介质及电子设备 Download PDF

Info

Publication number
WO2023103985A1
WO2023103985A1 PCT/CN2022/136653 CN2022136653W WO2023103985A1 WO 2023103985 A1 WO2023103985 A1 WO 2023103985A1 CN 2022136653 W CN2022136653 W CN 2022136653W WO 2023103985 A1 WO2023103985 A1 WO 2023103985A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
antenna device
microwave
microwave device
antenna
Prior art date
Application number
PCT/CN2022/136653
Other languages
English (en)
French (fr)
Inventor
张渡
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023103985A1 publication Critical patent/WO2023103985A1/zh

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

Definitions

  • Embodiments of the present disclosure relate to the field of wireless technologies, and in particular, relate to a microwave device-based data transmission method and device, a storage medium, and an electronic device.
  • 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.
  • Embodiments of the present disclosure provide a data transmission method and device based on a microwave device, a storage medium, and an electronic device, so as to at least solve the problem in the related art that a microwave device and an antenna device cannot communicate.
  • a microwave device-based data transmission method including: the microwave device sends a heartbeat detection message to the antenna device every first preset time length; When receiving the heartbeat message sent by the antenna device to the microwave device, the microwave device determines that the communication connection between the microwave device and the antenna device is normal; when the heartbeat message sent by the antenna device to the microwave device is not received within the second preset time , 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 passes The communication connection sends a target message to the antenna device; wherein, the target message includes an operation code, a message length, a message sequence number, data and a parity bit.
  • a data transmission device based on a microwave device including: a first transmission unit configured to send a heartbeat detection message to the antenna device by the microwave device every first preset duration;
  • the processing unit is configured to, when receiving a heartbeat message sent by the antenna device to the microwave device every first preset time length, the microwave device determines that the communication connection between the microwave device and the antenna device is normal;
  • 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;
  • the second transmission unit sets When the communication connection between the microwave device and the antenna device is normal, the microwave device sends the target message to the antenna device through the communication connection; wherein, the target message includes operation code, message length, message sequence number, data and check digit .
  • a computer-readable storage medium in which a computer program is stored in the above-mentioned computer-readable storage medium, wherein the above-mentioned computer program is configured to perform any one of the above-mentioned methods when running Steps in the examples.
  • an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any one of the above methods Steps in the examples.
  • the microwave device and the antenna device send heartbeat detection messages to each other according to the first preset duration, and the microwave device can determine whether the communication connection between the microwave device and the antenna device is normal;
  • the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal if the heartbeat message sent by the antenna device to the microwave device is not received within a preset time period, wherein the second preset time length is longer than the first preset time length;
  • the microwave device sends a target message to the antenna device through the communication connection; wherein, the target message includes an operation code, a message length, a message sequence number, data and a parity bit. Therefore, the problem that the microwave device and the antenna cannot communicate is solved, and the effect of enabling the microwave device and the antenna device to communicate is achieved.
  • FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a microwave data transmission method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a microwave data transmission method according to an embodiment of the present disclosure
  • FIG. 3 is a schematic diagram of a data format of microwave data transmission according to an embodiment of the present disclosure
  • FIG. 4 is a flow chart of another data transmission method according to an embodiment of the present disclosure.
  • Fig. 5 is a schematic structural diagram of a microwave data transmission device according to an embodiment of the present disclosure.
  • FIG. 1 is a block diagram of a hardware structure of a mobile terminal according to a microwave data transmission method according to an embodiment of the present disclosure.
  • the mobile terminal may include one or more (only one is shown in Figure 1) processors 102 (processors 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and a memory 104 for storing data, wherein the above-mentioned mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions.
  • processors 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.
  • a memory 104 for storing data
  • the above-mentioned mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions.
  • the structure shown in FIG. 1 is only for illustration, and it does not limit the structure of the above mobile terminal.
  • the mobile terminal may also include more or fewer components than those shown in FIG.
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the microwave data transmission method in the embodiment of the present disclosure, and the processor 102 executes the computer program stored in the memory 104 by running the Various functional applications and data processing are to realize the above-mentioned 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.
  • the memory 104 may further include a memory that is remotely located relative to the processor 102, and these remote memories may be connected to the mobile terminal through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is used to receive or transmit data via a network.
  • the specific example of the above network may include a wireless network provided by the communication provider of the mobile terminal.
  • the transmission device 106 includes a network interface controller (NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • the embodiment of the present disclosure 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.
  • Each data layer in the protocol is described as follows:
  • the message format for communication between the microwave device and the antenna device is defined.
  • the message format of the sent message message includes the operation code, the message length (the length includes the check digit), the message sequence number, the data ,Check Digit.
  • 0x55 is used to represent the start byte of a frame (i.e. the above-mentioned first preset value), if 0x55 needs to be transmitted in the data in the content field, then proceed according to the following scheme:
  • Microwave equipment if the sent content is 0x55, replace it with the second preset data: 0x99 and 0x05; if the sent content is 0x99, replace it with 0x99 and 0x09;
  • Antenna device If the received content is 0x99 and 0x05, replace it with 0x55; if the received content is 0x99 and 0x09, replace it with 0x99.
  • each device of the link layer can detect the starting position of the message message of the above protocol layer. For example, if the device of the current link recognizes that the current message message takes 0x55 as the starting point, it can It is considered that the current message packet is the beginning of a message frame.
  • the technical solution of this application also supports high-priority message message transmission, for example, when the microwave device sends the first message (or called the first message message) to the antenna device through the communication connection During the process, the microwave device detects the second message to be sent, wherein the priority of the second message is higher than that of the first message. At this time, the microwave device will interrupt the sending of the first message and send the second message to the antenna device. information. After the second message is sent, the microwave device continues to send the first message to the antenna device. That is to say, high-priority message packets can interrupt the transmission of ordinary message packets, but high-priority message packets cannot interrupt the transmission of high-priority message packets. transmission of messages.
  • the technical solution of this application also supports overtime retransmission, for example, after a microwave device sends a message message, the microwave device does not receive the received message message sent by the antenna device within 200ms acknowledgment message, it is considered that the message sent by the microwave device is lost, and the microwave device needs to resend the message.
  • the technical solution of this application also supports the keep-alive mechanism.
  • the microwave device of the microwave device and the antenna device of the antenna device send heartbeat messages to each other every 1s. When the microwave device or the antenna device If no heartbeat message is received within 6 seconds, it is considered that the microwave device loses connection with the antenna device.
  • the antenna device can obtain the latest software version from the microwave device.
  • the download version request message is shown in Table 1.
  • the version download process is as follows: the software version of the antenna device is stored on the microwave device.
  • 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 A software version upgrade request will be initiated.
  • the microwave device initiates a software version upgrade request of the antenna device.
  • the antenna device After receiving the software version upgrade request, the antenna device initializes the resources required for version download, and then replies to the microwave device. After the microwave device receives the reply of the version download request, it starts to transmit the software data of the second software version.
  • the microwave device divides the software data of the second software version into multiple data blocks, and divides the multiple Each data block in the data blocks is sent to the antenna device one by one.
  • the antenna device In the process of transmitting the software data of the second software version, 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, the returned error code is 0, after the microwave device receives the error code as 0, it will continue to send the next data block.
  • the microwave device If the antenna device detects that the received data block is abnormal, the returned error code is non-0, and the microwave device receives the error code as non-0 After that, the microwave device retransmits the previously transmitted data block, or stops the transmission; when the microwave device completes the transmission of the data block, it sends a stop command, and after the antenna device receives the stop command, it starts to verify the software data of the second software version , and finish loading the second software version.
  • the format of the request message for obtaining antenna status information, alarm information and actively reporting the receiving level value is shown in Table 2;
  • Antenna tilt angle including antenna pitch angle, horizontal angle, temperature information
  • the hardware information of the antenna including the type of antenna, the serial number of the antenna (Serial Number, referred to as SN code), and the part number of the antenna (Part Number, referred to as PN code).
  • Antenna software information including antenna boot version number, running software version number, and configuration version number.
  • the antenna is not configured
  • the request message for the above parameters will be reported from the microwave device to the antenna device every 20ms.
  • the antenna device will reply to the microwave device to confirm that the status acquisition message or alarm acquisition message has been received.
  • the antenna device does not need to reply a confirmation message to the microwave device.
  • the antenna device dynamically adjusts the elevation angle and horizontal angle of the antenna according to the message of the receiving level value (the receiving level value of the microwave device) actively reported by the microwave device.
  • 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.
  • zxmw_heartbeat is the name of the message message
  • "0x03" is the number of the message message
  • "Heartbeat packet” is the description of the message, here is the heartbeat message.
  • the embodiment of the present disclosure also proposes a data transmission method based on microwave equipment running on the system architecture shown in FIG. 1 , and FIG. 2 is the basic The flow chart of the data transmission method based on microwave equipment disclosed in the embodiment, as shown in Figure 2, the process includes the following steps:
  • Step S202 the microwave device sends a heartbeat detection message to the antenna device every first preset time interval
  • Step S204 the microwave device determines that the communication connection between the microwave device and the antenna device is normal when receiving a heartbeat message sent by the antenna device to the microwave device every first preset time length;
  • Step S206 when the heartbeat message sent by the antenna device to the microwave device is not received 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 a preset duration;
  • 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 operation code, a message length, a message sequence number, data and calibration check position.
  • the microwave device after the microwave device receives the heartbeat detection message fed back by the antenna device, the microwave device establishes a communication connection with the antenna device and sends the communication message.
  • the microwave device and the antenna device send heartbeat detection messages to each other according to the first preset duration, and the microwave device can determine whether the communication connection between the microwave device and the antenna device is normal;
  • the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal if the heartbeat message sent by the antenna device to the microwave device is not received within a preset time period, wherein the second preset time length is longer than the first preset time length;
  • the microwave device sends a target message to the antenna device through the communication connection; wherein, the target message includes an operation code, a message length, a message sequence number, data and a parity bit. Therefore, the problem that the microwave device and the antenna cannot communicate is solved, and the effect of enabling the microwave device and the antenna device to communicate is achieved.
  • the microwave device sends a target message to the antenna device through a communication connection, including:
  • the microwave device When the message to be sent includes a start field and a content field, and the value of the start field is the first preset value, when the content field includes the first preset value, the microwave device will send the message The first preset value in the content field is replaced with a second preset value different from the first preset value to obtain the target message, wherein the first preset value is used to represent the start byte of a frame, and the antenna The device is configured to replace the second preset value back to the first preset value when detecting that the content field includes the second preset value in the received target message;
  • the microwave device sends the target message to the antenna device through the communication link.
  • 0x55 is used to represent the start byte (i.e. the start field) of a frame, that is to say, in this embodiment, 0x55 is the first preset value, and if the content field needs to transmit data 0x55, then proceed according to the following scheme:
  • microwave equipment In microwave equipment: if the sent content field includes 0x55, replace it with the second preset value: 0x99 and 0x05; when 0x99 is the first preset value, if the sent content field is 0x99, replace it with the second preset value Value: 0x99 and 0x09;
  • the antenna device On the antenna device: if the received content is 0x99 and 0x05, replace it with 0x55; if the received content is 0x99 and 0x09, replace it with 0x99.
  • the antenna device restores the received data according to the first preset value and the second preset value. That is to say, when the start byte of the message is the same as the content part data, the content part data is replaced with other data to prevent confusion with the start byte of the message and improve the efficiency and accuracy of data transmission.
  • the microwave device sends a target message to the antenna device through a communication connection, including:
  • the microwave device detects a second message to be sent, where the target message includes the first message and the second message;
  • the microwave device interrupts the sending 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 transmits the second message through the communication The connection continues with sending the first message to the antenna device.
  • the priority here can include but not limited to the urgency of the message message, and the more urgent message can be set to a high priority, and the transmission is given priority; the non-urgent message can be set to a low priority, which can be Set to transmit after high priority packets.
  • the sending order of the first message and the second message is determined according to the priorities of the first message and the second message in the target message, wherein the sending order of the first message and the second message is positively correlated with their respective priorities.
  • the sending order is to send the first message first, and then send the second message. That is, the above messages are sequentially sent to the antenna device according to the priority of each message in the target message.
  • the high-priority message can interrupt the transmission of the normal priority message, but the high-priority message cannot interrupt the transmission of the high-priority message.
  • the transmission of ordinary messages can only be resumed after the transmission of high-priority messages is completed.
  • the microwave device after the microwave device sends the target message to the antenna device through the communication connection, it further includes:
  • the microwave device When the microwave device does not receive the confirmation message for the target message sent by the antenna device within the third preset time period, the microwave device resends the target message to the antenna device.
  • the third preset duration can confirm the buffering time of receiving the target message. For example, when the confirmation message message sent by the above-mentioned antenna device is not received within 2s, it can be determined that the above-mentioned message message has not been sent or the message message has not been sent. If the transmission fails, the above message can be resent at this time.
  • the microwave device-based data transmission method further includes:
  • the microwave device determines that the communication connection between the microwave device and the antenna device is not normal, the microwave device disconnects the communication connection between the microwave device and the antenna device; or
  • the microwave device determines that the communication connection between the microwave device and the antenna device is abnormal, the microwave device re-establishes the communication connection between the microwave device and the antenna device.
  • the connection communication between the microwave device and the antenna device includes at least the following two processing methods: One is that there is a problem with the transmission link, and the communication connection with the antenna device can be disconnected at this time; the other is that the antenna device may malfunction, such as antenna motor blockage, antenna brake blockage, brake out of control, etc. After the failure of the antenna device is resolved, and the microwave device receives the heartbeat feedback message of 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.
  • the microwave device sends the target message to the antenna device through the communication connection, and further includes one of the following:
  • the microwave device sends a first request message to the antenna device, where the first request message is used to request to obtain 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 of the antenna device Information, antenna software information of antenna equipment;
  • the microwave device sends a second request message to the antenna device, where the second request message is used to request to obtain the alarm information of the antenna device;
  • the microwave device sends a third request message to the antenna device, where the third request message is used to actively report the receiving level value of the microwave device.
  • the status information of the antenna device includes, but is not limited to, the tilt angle of the antenna, hardware information of the antenna, and software information of the antenna.
  • the antenna tilt angle includes the pitch angle, horizontal angle, and temperature information of the antenna;
  • the hardware information of the antenna includes the type of the antenna, the SN code of the antenna, and the PN code, etc.;
  • the software information of the antenna includes the boot version number and the running software version of the antenna number, configuration version number, etc.
  • the alarm information of the antenna device includes, but is not limited to, the antenna motor is blocked, the antenna brake is blocked, the antenna is not calibrated, the antenna is not configured, undefined hardware fault, brake out of control, etc.
  • the message of actively reporting the receiving 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 angle and horizontal angle of the antenna according to the value.
  • the above microwave device-based data transmission method further includes:
  • the microwave device 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, it sends software data of the second software version to the antenna device.
  • the antenna device 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 returns a confirmation message that the software version upgrade request has been received to the microwave device ; When 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.
  • the above-mentioned 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
  • the microwave device After the microwave device obtains the response message corresponding to the software version upgrade request sent by the antenna device, 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 one by one For antenna devices:
  • sending each data block in the multiple data blocks to the antenna device one by one includes: after the microwave device sends the current data block in the multiple data blocks to the antenna device, after the microwave device obtains the data sent by the antenna device and In the case of a normal response message corresponding to the current data block, the microwave device sends the next data block of the current data block among the multiple data blocks to the antenna device, wherein the normal response message is used to indicate that the current data block received by the antenna device is normal.
  • the method for updating the software version of the above-mentioned antenna device includes the following:
  • Step S402 the microwave device sends a software version upgrade 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 data block 1, data block 2...data block n, specifically including the following steps:
  • the antenna device After the antenna device receives each data block sent by the microwave device, it will feed back a response message corresponding to the current data block to the microwave device;
  • Step S408 the microwave device sends an instruction to stop data transmission
  • Step S410 the antenna device sends an instruction to stop replying to the corresponding message.
  • a data transmission device based on microwave equipment is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has been explained will not be repeated.
  • the term "unit" may be a combination of software and/or hardware that realizes a predetermined function.
  • Fig. 5 is a structural block diagram of a microwave data transmission device according to an embodiment of the present disclosure. As shown in Fig. 5, the device includes:
  • the first transmission unit 502 is configured to send a heartbeat message to the antenna device every first preset duration
  • the processing unit 504 is configured to determine that the communication connection between the microwave device and the antenna device is normal when receiving a heartbeat message sent by the antenna device to the microwave device every first preset time length; When the heartbeat message sent by the antenna device to the microwave device is received, it is determined 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;
  • the second transmission unit 506 is configured 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 operation code, a message length, a message sequence number, data and check digit.
  • the microwave device can determine whether the communication connection between the microwave device and the antenna device is normal by means of sending heartbeat detection messages between the microwave device and the antenna device according to the first preset duration in the embodiment of the present disclosure;
  • the microwave device determines that the communication connection between the microwave device and the antenna device is not normal by adopting the method of not receiving the heartbeat message sent by the antenna device to the microwave device within the second preset time length, wherein the second preset time length is longer than the first A preset duration; when the communication connection between the microwave device and the antenna device is normal, the microwave device sends the target message to the antenna device through the communication connection; wherein, the target message includes the operation code, message length, message sequence number, data and check digit. Therefore, the problem that the microwave device and the antenna cannot communicate is solved, and the effect of enabling the microwave device and the antenna device to communicate is achieved.
  • the above-mentioned modules can be realized by software or hardware. For the latter, it can be realized by the following methods, but not limited to this: the above-mentioned modules are all located in the same processor; or, the above-mentioned modules can be combined in any combination The forms of are located in different processors.
  • An embodiment of the present disclosure also provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, wherein the computer program is configured to perform the steps in any one of the above method embodiments when running .
  • the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM) , mobile hard disk, magnetic disk or optical disk and other media that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile hard disk magnetic disk or optical disk and other media that can store computer programs.
  • the embodiments of the present disclosure also provide an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments .
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • each module or each step of the above-mentioned embodiments of the present disclosure can be implemented by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed among multiple computing devices They may be implemented in program code executable by a computing device, stored in a memory device, executed by a computing device, and in some cases executed in an order different from that described herein.
  • the steps shown or described are realized by making them into respective integrated circuit modules, or making multiple modules or steps among them into a single integrated circuit module. As such, embodiments of the present disclosure are not limited to any specific combination of hardware and software.

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

本公开实施例提供了一种基于微波设备的数据传输方法和装置、存储介质及电子设备,上述方法包括:微波设备每隔第一预设时长,发送心跳报文至天线设备;在每隔第一预设时长接收到天线设备向微波设备发送的心跳报文时,微波设备确定微波设备与天线设备之间的通信连接正常;在第二预设时长内未接收到天线设备向微波设备发送的心跳报文时,微波设备确定微波设备与天线设备之间的通信连接不正常;在微波设备与天线设备之间的通信连接正常的情况下,微波设备通过通信连接向天线设备发送目标消息,其中,目标消息包括操作码,报文长度,报文序号,数据和校验位。通过本公开实施例,解决了微波设备与天线设备无法进行通信的技术问题。

Description

基于微波设备的数据传输方法和装置、存储介质及电子设备
相关申请的交叉引用
本公开基于2021年12月06日提交的发明名称为“基于微波设备的数据传输方法和装置、存储介质及电子设备置”的中国专利申请CN202111480049.8,并且要求该专利申请的优先权,通过引用将其所公开的内容全部并入本公开。
技术领域
本公开实施例涉及无线技术领域,具体而言,涉及一种基于微波设备的数据传输方法和装置、存储介质及电子设备。
背景技术
现有的通讯协议是应用在基站中,微波设备没有定义设备与天线设备之间的通讯协议。
针对微波设备如何与天线设备进行通信的问题,目前尚未提出有效的解决方案。
发明内容
本公开实施例提供了一种基于微波设备的数据传输方法和装置、存储介质及电子设备,以至少解决相关技术中微波设备与天线设备无法进行通信的问题。
根据本公开实施例的一个实施例,提供了一种基于微波设备的数据传输方法,包括:微波设备每隔第一预设时长发送心跳检测报文至天线设备;在每隔第一预设时长接收到天线设备向微波设备发送的心跳报文时,微波设备确定微波设备与天线设备之间的通信连接正常;在第二预设时长内未接收到天线设备向微波设备发送的心跳报文时,微波设备确定微波设备与天线设备之间的通信连接不正常,其中,第二预设时长大于第一预设时长;在微波设备与天线设备之间的通信连接正常的情况下,微波设备通过通信连接向天线设备发送目标消息;其中,目标消息包括操作码,报文长度,报文序号,数据和校验位。
根据本公开实施例的另一个实施例,提供了一种基于微波设备的数据传输装置,包括:第一传输单元,设置为微波设备每隔第一预设时长发送心跳检测报文至天线设备;处理单元,设置为在每隔第一预设时长接收到天线设备向微波设备发送的心跳报文时,微波设备确定微波设备与天线设备之间的通信连接正常;在第二预设时长内未接收到天线设备向微波设备发送的心跳报文时,微波设备确定微波设备与天线设备之间的通信连接不正常,其中,第二预设时长大于第一预设时长;第二传输单元,设置为在微波设备与天线设备之间的通信连接正常的情况下,微波设备通过通信连接向天线设备发送目标消息;其中,目标消息包括操作码,报文长度,报文序号,数据和校验位。
根据本公开实施例的又一个实施例,还提供了一种计算机可读存储介质,上述计算机可读存储介质中存储有计算机程序,其中,上述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
根据本公开实施例的又一个实施例,还提供了一种电子装置,包括存储器和处理器,上述存储器中存储有计算机程序,上述处理器被设置为运行上述计算机程序以执行上述任一项 方法实施例中的步骤。
通过本公开实施例中微波设备与天线设备之间按照第一预设时长互相发送心跳检测报文的方式,微波设备可以确定微波设备与天线设备之间的通信连接是否正常;通过采用在第二预设时长内未接收到天线设备向微波设备发送的心跳报文的方式,微波设备确定微波设备与天线设备之间的通信连接不正常,其中,第二预设时长大于第一预设时长;在微波设备与天线设备之间的通信连接正常的情况下,微波设备通过通信连接向天线设备发送目标消息;其中,目标消息包括操作码,报文长度,报文序号,数据和校验位。因此解决了微波设备与天线无法进行通信的问题,进而达到了使微波设备和天线设备进行通信的效果。
附图说明
图1是根据本公开实施例的微波数据传输方法的移动终端的硬件结构框图;
图2根据本公开实施例的微波数据传输方法的流程图;
图3根据本公开实施例的微波数据传输的数据格式示意图;
图4据本公开实施例的另一种据传输方法的流程图;
图5根据本公开实施例的微波数据传输装置的结构示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本公开实施例的实施例。
需要说明的是,本公开实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本公开实施例的一种微波数据传输方法的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的微波数据传输方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。
本公开实施例定义了一种微波设备与微波天线通讯的一种协议,该协议包括协议层、链路层、消息层,对协议中各数据层分别说明如下:
1)协议层
在协议层中,定义了微波设备与天线设备进行通讯的消息格式,具体地,发送的消息报文的消息格式中包括操作码,报文长度(长度包含校验位),报文序号,数据,校验位。如图3所示,以0x55表示一个帧的起始字节(即上述的第一预设数值),如果内容字段中的数据中需要传输0x55则按照以下方案进行:
微波设备:如果发送的内容为0x55则替换成第二预设数据:0x99和0x05;如果发送的内容为0x99则替换成0x99和0x09;
天线设备:如果接收的内容为0x99和0x05则替换成0x55;如果接收的内容为0x99和0x09则替换成0x99。
2)链路层
2.1)在链路层中,链路层的各个设备可以对上述协议层的消息报文进行起始位置探测,例如,当前链路的设备识别到当前消息报文以0x55为起始点,则可以认为是当前消息报文为一个消息帧的开始。
2.2)在链路层中,本申请的技术方案还支持高优先级的消息报文传输,例如,在微波设备通过通信连接向天线设备发送第一消息(或称为第一消息报文)的过程中,微波设备检测到待发送的第二消息,其中,第二消息的优先级高于第一消息的优先级,此时,微波设备将中断第一消息的发送,向天线设备发送第二消息。在第二消息发送完成后,微波设备继续再将第一消息发送给天线设备发送。也就是说高优先级的消息报文可以中断普通消息报文的传输,但是高优先级消息报文不能中断高优先级消息报文传输,当高优先级消息报文完成传输后,恢复普通消息报文的传输。
2.3)在链路层中,本申请的技术方案还支持超时重传,例如当微波设备的一个消息报文发送完成后,微波设备在200ms内未收到天线设备发送的已收到消息报文的确认报文,则认为微波设备发送的消息报文丢失,微波设备需要重新发送该消息报文。
2.4)在链路层中,本申请的技术方案还支持保活机制,例如,微波设备的微波设备与天线设备的天线设备二者每1s中互相发送一次心跳报文,当微波设备或者天线设备在连续6s内未收到心跳报文,则认为微波设备与天线设备失去连接。
3)消息层
在消息层中,天线设备可以从微波设备中获取最新的软件版本。关于下载版本请求消息,如表1所示。
表1
Figure PCTCN2022136653-appb-000001
Figure PCTCN2022136653-appb-000002
版本下载流程为:天线设备的软件版本是存放在微波设备上的,当微波设备检测到天线设备运行的第一软件版本与微波设备上存储的天线设备的第二软件版本不一样时,微波设备会发起软件版本升级请求。
首先微波设备发起天线设备的软件版本升级请求,天线设备收到软件版本升级请求后初始化版本下载需要的资源,然后回复微波设备。微波设备收到版本下载请求的回复后,开始传输第二软件版本的软件数据,作为一种可选地示例,微波设备将所述第二软件版本的软件数据分成多个数据块,并将多个数据块中的每个数据块逐次发送给天线设备。
在传输第二软件版本的软件数据的过程中,微波设备每向天线设备发送一个数据块之后,天线设备都需要回复微波设备,如果天线设备检测到接收的数据块正常,则返回的错误码为0,微波设备收到错误码为0后,则继续发送下一数据块,如果天线设备检测到接收的数据块不正常,则返回的错误码为非0,微波设备收到错误码为非0后,则微波设备重新传输之前传输的数据块,或停止传输;当微波设备完成数据块的传输后,则发送停止命令,天线设备收到停止命令后,开始校验第二软件版本的软件数据,并完成第二软件版本加载。
在一个或多个实施例中,获取天线状态信息、告警信息以及主动上报接收电平值的请求消息的格式如表2所示;
表2
Figure PCTCN2022136653-appb-000003
A)消息“zxmw_getstatus”用于获取以下信息中的至少之一:
A.1)天线倾斜角度,包括天线的俯仰角度,水平角度,温度信息
A.2)天线的硬件信息,包括天线的类型,天线的设备序列号(Serial Number,简称SN码),天线的部件号(Part Number,简称PN码)。
A.3)天线的软件信息,包括天线的boot版本号,运行软件版本号,配置版本号。
B)消息“zxmw_getalarm”用于获取以下信息中的至少之一:
B.1)天线电机堵塞;
B.2)天线制动器堵塞;
B.3)天线未被校准;
B.4)天线未配置;
B.5)未定义硬件故障;
B.6)制动器失控;
C)消息“zxmw_setRSL”用于上报微波设备的接收电平值。
上述参数的请求消息会每20ms从微波设备上报给天线设备,在微波设备向天线设备发送状态获取消息或告警获取消息后,天线设备向微波设备回复已收到状态获取消息或告警获取消息的确认消息;但在微波设备向天线设备主动发送上报接收电平值的消息之后,天线设备不需要向微波设备回复确认消息。进一步地,天线设备根据微波设备主动上报的接收电平值的消息(微波设备的接收电平值)动态对天线的俯仰角和水平角进行调整。
在一个或多个实施例汇总,微波设备和天线会周期性的发送心跳报文来检测对方是否正常。心跳报文的参数如表3所示。
表3
Figure PCTCN2022136653-appb-000004
其中,zxmw_heartbeat为消息报文的名称,“0x03”为消息报文的编号,“Heartbeat packet”为报文的说明,这里为心跳报文。
基于本公开上述实施例中微波设备天线设备之间的通讯协议的内容,本公开实施例还提出了一种运行于图1示的系统架构上的基于微波设备的数据传输方法,图2为本公开实施例的基于微波设备的数据传输方法的流程图,如图2示,该流程包括如下步骤:
步骤S202,微波设备每隔第一预设时长发送心跳检测报文至天线设备;
步骤S204,在每隔第一预设时长接收到天线设备向微波设备发送的心跳报文时,微波设备确定微波设备与天线设备之间的通信连接正常;
步骤S206,在第二预设时长内未接收到天线设备向微波设备发送的心跳报文时,微波设备确定微波设备与天线设备之间的通信连接不正常,其中,第二预设时长大于第一预设时长;
步骤S208,在微波设备与天线设备之间的通信连接正常的情况下,微波设备通过通信连接向天线设备发送目标消息;其中,目标消息包括操作码,报文长度,报文序号,数据和校验位。
在本申请实施例中,微波设备接收到天线设备反馈的心跳检测报文后,微波设备建立与天线设备之间的通信连接,发送通信报文。
通过本公开实施例中微波设备与天线设备之间按照第一预设时长互相发送心跳检测报文的方式,微波设备可以确定微波设备与天线设备之间的通信连接是否正常;通过采用在第二预设时长内未接收到天线设备向微波设备发送的心跳报文的方式,微波设备确定微波设备与 天线设备之间的通信连接不正常,其中,第二预设时长大于第一预设时长;在微波设备与天线设备之间的通信连接正常的情况下,微波设备通过通信连接向天线设备发送目标消息;其中,目标消息包括操作码,报文长度,报文序号,数据和校验位。因此解决了微波设备与天线无法进行通信的问题,进而达到了使微波设备和天线设备进行通信的效果。
在一个或多个实施例中,上述微波设备通过通信连接向天线设备发送目标消息,包括:
在待发送的消息中包括起始字段和内容字段,且起始字段的取值为第一预设数值的情况下,当内容字段中包括第一预设数值时,微波设备将待发送的消息中内容字段中的第一预设数值替换成与第一预设数值不同的第二预设数值,得到目标消息,其中,在第一预设数值用于表示一个帧的起始字节,天线设备用于在接收到的目标消息中检测到内容字段中包括第二预设数值时,将第二预设数值替换回第一预设数值;
微波设备通过通信连接向天线设备发送目标消息。
例如,以0x55表示一个帧的起始字节(即起始字段),也就是说在本实施例中,0x55为第一预设数值,如果内容字段中需要传输数据0x55则按照以下方案进行:
在微波设备:如果发送的内容字段包括0x55,则替换成第二预设数值:0x99和0x05;在0x99为第一预设数值时,如果发送的内容字段为0x99,则替换成第二预设数值:0x99和0x09;
在天线设备:如果接收到的内容为0x99和0x05则替换成0x55;如果接收到的内容为0x99和0x09则替换成0x99。天线设备在接收消息报文内容时,根据第一预设数值和第二预设数值将接收到的数据进行还原。也就是说,当报文起始字节和内容部分数据相同时,将内容部分数据替换为其他数据,防止与报文起始字节混淆,提高数据传输的效率和准确性。
在一个或多个实施例中,上述微波设备通过通信连接向天线设备发送目标消息,包括:
在微波设备通过通信连接向天线设备发送第一消息的过程中,微波设备检测到待发送的第二消息,其中,目标消息包括第一消息和第二消息;
在第二消息的优先级高于第一消息的优先级时,微波设备中断第一消息的发送,并通过通信连接向天线设备发送第二消息;在第二消息发送完成之后,微波设备通过通信连接继续向天线设备发送第一消息。
在本实施例中,这里优先级可以包括但不限于消息报文的紧急程度,较为紧急的报文可以设置为高优先级,优先进行传输;不紧急的报文可以设置为低优先级,可以设置在高优先级的报文后进行传输。
具体地,根据目标消息中第一消息和第二消息的优先级确定上述第一消息和第二消息的发送顺序,其中,第一消息和第二消息的发送顺序与各自的优先级正相关。在本实施例中,假设第一消息报文的优先级为高,第二消息报文的优先级为低,那么发送顺序为先发送第一消息,后发送第二消息。也即,根据目标消息中各消息的优先级依次将上述各消息发送至天线设备。
需要说明的是,在高优先级的消息传输时,高优先级的消息可以中断普通优先级的消息 的传输,但是高优先级的消息不能中断高优先级的消息的传输。并且,只有当高优先级的消息完成传输后,才能恢复普通消息的传输。
在一个或多个实施例中,在上述微波设备通过通信连接向天线设备发送目标消息后,还包括:
在第三预设时长内微波设备未收到天线设备发送对于目标消息的确认消息时,微波设备向天线设备重新发送目标消息。
在本实施例中,第三预设时长可以确认接收目标消息的缓冲时间,例如,在2s内未收到上述天线设备发送的确认消息报文时,可以认定为上述消息报文未发送或消息传输失败,此时可以重新发送上述消息报文。
在一个或多个实施例中,上述建立与天线设备的通信连接之后,基于微波设备的数据传输方法还包括:
在微波设备确定微波设备与天线设备之间的通信连接不正常的情况下,微波设备断开微波设备与天线设备之间的通信连接;或者
在微波设备确定微波设备与天线设备之间的通信连接不正常的情况下,微波设备重新建立微波设备与天线设备之间的通信连接。
在本实施例中,假设微波设备在第二预设时长(如5s)内未接收到天线设备的心跳反馈消息时,对于微波设备与天线设备之间的连接通信至少包括以下两种处理方式:一种是可以认定传输链路出现问题,此时可以断开与天线设备的通信连接;另一种是天线设备可能出现故障,例如天线电机堵塞、天线制动器堵塞、制动器失控等。当天线设备的故障解除之后,微波设备在第二预设时长内重新接收到了天线设备的心跳反馈消息时,就可以重新建立微波设备与天线设备之间的通信连接。
在一个或多个实施例中,微波设备通过通信连接向天线设备发送目标消息,还包括以下之一:
微波设备向天线设备发送第一请求消息,其中,第一请求消息用于请求获取天线设备的状态信息,天线设备的状态信息包括以下至少之一:天线设备的天线倾斜角度、天线设备的天线硬件信息、天线设备的天线软件信息;
微波设备向天线设备发送第二请求消息,其中,第二请求消息用于请求获取天线设备的告警信息;
微波设备向天线设备发送第三请求消息,其中,第三请求消息用于主动上报微波设备的接收电平值。
在本实施例中,天线设备的状态信息包括但不限于天线倾斜角度、天线的硬件信息和天线的软件信息。其中,天线倾斜角度包括天线的俯仰角度、水平角度、温度信息;天线的硬件信息,包括天线的类型、天线的SN码、PN码等;天线的软件信息包括天线的boot版本号、运行软件版本号、配置版本号等。
天线设备的告警信息包括但不限于天线电机堵塞、天线制动器堵塞、天线未被校准、天线未配置、未定义硬件故障、制动器失控等。
此外,主动上报微波设备的接收电平值的消息会每20ms从微波设备主动上报给天线设备,天线根据该值动态调整天线的俯仰角和水平角。
在一个或多个实施例中,上述基于微波设备的数据传输方法还包括:
在微波设备检测天线设备上运行的第一软件版本与微波设备上存储的天线设备的第二软件版本不同时,将第二软件版本的软件数据发送至天线设备。
在本实施例中,当天线设备的软件版本和微波设备上存储的软件版本不同时;天线设备接收微波设备发送的软件版本升级请求,并向微波设备回复已收到软件版本升级请求的确认消息;在微波设备接收到天线设备发送的确认消息的情况下,微波设备将第二软件版本的软件数据发送至上述天线设备。
在一个或多个实施例中,上述微波设备将第二软件版本的软件数据发送至天线设备,包括:
微波设备向天线设备发送软件版本升级请求;
在微波设备获取到天线设备发送的与软件版本升级请求对应的响应消息之后,微波设备将第二软件版本的软件数据分成多个数据块,并将多个数据块中的每个数据块逐次发送给天线设备:
其中,将多个数据块中的每个数据块逐次发送给天线设备,包括:在微波设备将多个数据块中的当前数据块发送给天线设备之后,在微波设备获取到天线设备发送的与当前数据块对应的正常响应消息的情况下,微波设备将多个数据块中当前数据块的下一个数据块发送给天线设备,其中,正常响应消息用于表示天线设备接收的当前数据块正常。
具体的,如图4所示,上述天线设备更新软件版本的方法包括如下:
步骤S402,微波设备发送软件版本升级请求;
步骤S404,天线设备发送与软件版本请求相对应的响应消息;
步骤S406,微波设备发送数据传输指令,并依次发送数据块1、数据块2…数据块n,具体地包括如下步骤:
S406-1,发送数据块1;
S406-2,发送与数据块1对应的正常响应消息;
S406-3,发送数据块2;
S406-4,发送与数据块2对应的正常响应消息;
S406-n-1,发送数据块n;
S406-n,发送与数据块n对应的正常响应消息;
其中,在天线设备接收到微波设备发送的每一个数据块后,都会反馈给微波设备一个与 当前数据块对应的响应消息;
步骤S408,微波设备发送停止数据传输指令;
步骤S410,天线设备发送停止回复相应消息指令。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开实施例各个实施例上述的方法。
在本实施例中还提供了一种基于微波设备的数据传输装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“单元”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图5是根据本公开实施例的微波数据传输装置的结构框图,如图5所示,该装置包括:
第一传输单元502,设置为每隔第一预设时长发送心跳报文至天线设备;
处理单元504,设置为在每隔第一预设时长接收到天线设备向微波设备发送的心跳报文时,确定微波设备与天线设备之间的通信连接正常;在第二预设时长内未接收到天线设备向微波设备发送的心跳报文时,确定微波设备与天线设备之间的通信连接不正常,其中,第二预设时长大于第一预设时长;
第二传输单元506,设置为在微波设备与天线设备之间的通信连接正常的情况下,通过通信连接向天线设备发送目标消息;其中,目标消息包括操作码,报文长度,报文序号,数据和校验位。
通过本公开实施例通过本公开实施例中微波设备与天线设备之间按照第一预设时长互相发送心跳检测报文的方式,微波设备可以确定微波设备与天线设备之间的通信连接是否正常;通过采用在第二预设时长内未接收到天线设备向微波设备发送的心跳报文的方式,微波设备确定微波设备与天线设备之间的通信连接不正常,其中,第二预设时长大于第一预设时长;在微波设备与天线设备之间的通信连接正常的情况下,微波设备通过通信连接向天线设备发送目标消息;其中,目标消息包括操作码,报文长度,报文序号,数据和校验位。因此解决了微波设备与天线无法进行通信的问题,进而达到了使微波设备和天线设备进行通信的效果。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
在本公开实施例中还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。
在一个示例性实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。
本公开实施例的实施例还提供了一种电子装置,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
在一个示例性实施例中,上述电子装置还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
本实施例中的具体示例可以参考上述实施例及示例性实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本公开实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开实施例不限制于任何特定的硬件和软件结合。
以上所述仅为本公开实施例的优选实施例而已,并不用于限制本公开实施例,对于本领域的技术人员来说,本公开实施例可以有各种更改和变化。凡在本公开实施例的原则之内,所作的任何修改、等同替换、改进等,均应包含在本公开实施例的保护范围之内。

Claims (12)

  1. 一种基于微波设备的数据传输方法,包括:
    微波设备每隔第一预设时长发送心跳检测报文至天线设备;
    在每隔所述第一预设时长接收到所述天线设备向所述微波设备发送的心跳报文时,所述微波设备确定所述微波设备与所述天线设备之间的通信连接正常;
    在第二预设时长内未接收到所述天线设备向所述微波设备发送的心跳报文时,所述微波设备确定所述微波设备与所述天线设备之间的通信连接不正常,其中,所述第二预设时长大于所述第一预设时长;
    在所述微波设备与所述天线设备之间的通信连接正常的情况下,所述微波设备通过所述通信连接向所述天线设备发送目标消息;其中,所述目标消息包括操作码,报文长度,报文序号,数据和校验位。
  2. 根据权利要求1所述的方法,其中,所述微波设备通过所述通信连接向所述天线设备发送目标消息,包括:
    在待发送的消息中包括起始字段和内容字段,且所述起始字段的取值为第一预设数值的情况下,
    当所述内容字段中包括所述第一预设数值时,所述微波设备将所述待发送的消息中所述内容字段中的所述第一预设数值替换成与所述第一预设数值不同的第二预设数值,得到所述目标消息,其中,在所述第一预设数值用于表示一个帧的起始字节,所述天线设备用于在接收到的所述目标消息中检测到所述内容字段中包括所述第二预设数值时,将所述第二预设数值替换回所述第一预设数值;
    所述微波设备通过所述通信连接向天线设备发送所述目标消息。
  3. 根据权利要求1所述的方法,其中,所述微波设备通过所述通信连接向所述天线设备发送目标消息,包括:
    在所述微波设备通过所述通信连接向所述天线设备发送第一消息的过程中,所述微波设备检测到待发送的第二消息,其中,所述目标消息包括所述第一消息和所述第二消息;
    在所述第二消息的优先级高于所述第一消息的优先级时,所述微波设备中断所述第一消息的发送,并通过所述通信连接向所述天线设备发送所述第二消息;在所述第二消息发送完成之后,所述微波设备通过所述通信连接继续向所述天线设备发送所述第一消息。
  4. 根据权利要求1所述的方法,其中,在所述微波设备通过所述通信连接向所述天线设备发送目标消息之后,所述方法还包括:
    在第三预设时长内所述微波设备未收到所述天线设备发送对于所述目标消息的确认消息时,所述微波设备向所述天线设备重新发送所述目标消息。
  5. 根据权利要求1所述的方法,其中,在所述微波设备确定所述微波设备与所述天线设 备之间的通信连接不正常的情况下,所述方法还包括:
    所述微波设备断开所述微波设备与所述天线设备之间的所述通信连接;或者
    所述微波设备重新建立所述微波设备与所述天线设备之间的通信连接。
  6. 根据权利要求1所述的方法,其中,所述微波设备通过所述通信连接向天线设备发送目标消息,还包括以下之一:
    所述微波设备向所述天线设备发送第一请求消息,其中,所述第一请求消息用于请求获取所述天线设备的状态信息,所述天线设备的状态信息包括以下至少之一:所述天线设备的天线倾斜角度、所述天线设备的天线硬件信息、所述天线设备的天线软件信息;
    所述微波设备向所述天线设备发送第二请求消息,其中,所述第二请求消息用于请求获取所述天线设备的告警信息;
    所述微波设备向所述天线设备发送第三请求消息,其中,所述第三请求消息用于上报所述微波设备的接收电平值。
  7. 根据权利要求1所述的方法,其中,所述方法还包括:
    在所述微波设备检测所述天线设备上运行的第一软件版本与所述微波设备上存储的所述天线设备的第二软件版本不同时,所述微波设备将所述第二软件版本的软件数据发送至所述天线设备。
  8. 根据权利要求7所述的方法,其中,所述微波设备将所述第二软件版本的软件数据发送至所述天线设备,包括:
    所述微波设备向所述天线设备发送软件版本升级请求;
    在所述微波设备获取到所述天线设备发送的与所述软件版本升级请求对应的响应消息之后,所述微波设备将所述第二软件版本的软件数据分成多个数据块,并将所述多个数据块中的每个数据块逐次发送给所述天线设备。
  9. 根据权利要求8所述的方法,其中,所述将多个数据块中的每个数据块逐次发送给所述天线设备,包括:
    在所述微波设备将所述多个数据块中的当前数据块发送给所述天线设备之后,在所述微波设备获取到所述天线设备发送的与所述当前数据块对应的正常响应消息的情况下,所述微波设备将所述多个数据块中所述当前数据块的下一个数据块发送给所述天线设备,其中,所述正常响应消息用于表示所述天线设备接收的所述当前数据块正常。
  10. 一种数据传输装置,,包括:
    第一传输单元,设置为每隔第一预设时长发送心跳报文至天线设备;
    处理单元,设置为在每隔所述第一预设时长接收到所述天线设备向微波设备发送的心跳报文时,确定所述微波设备与所述天线设备之间的通信连接正常;在第二预设时长内未接收到所述天线设备向所述微波设备发送的心跳报文时,确定所述微波设备与所述天线设备之间 的通信连接不正常,其中,所述第二预设时长大于所述第一预设时长;
    第二传输单元,设置为在所述微波设备与所述天线设备之间的通信连接正常的情况下,通过所述通信连接向所述天线设备发送目标消息;其中,所述目标消息包括操作码,报文长度,报文序号,数据和校验位。
  11. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至9任一项中所述的方法。
  12. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至9任一项中所述的方法。
PCT/CN2022/136653 2021-12-06 2022-12-05 基于微波设备的数据传输方法和装置、存储介质及电子设备 WO2023103985A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111480049.8A CN116233898A (zh) 2021-12-06 2021-12-06 基于微波设备的数据传输方法和装置、存储介质及电子设备
CN202111480049.8 2021-12-06

Publications (1)

Publication Number Publication Date
WO2023103985A1 true WO2023103985A1 (zh) 2023-06-15

Family

ID=86587911

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/136653 WO2023103985A1 (zh) 2021-12-06 2022-12-05 基于微波设备的数据传输方法和装置、存储介质及电子设备

Country Status (2)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110260839A1 (en) * 2010-04-27 2011-10-27 Passif Semiconductor Corp Autonomous battery-free microwave frequency communication system
JP2013066248A (ja) * 2013-01-11 2013-04-11 Toshiba Corp 無線端末及び無線通信方法
CN104022812A (zh) * 2014-06-26 2014-09-03 武汉虹信通信技术有限责任公司 智能微波中继器
CN112333726A (zh) * 2020-12-04 2021-02-05 天津七一二通信广播股份有限公司 一种基于频分技术的微波设备监控方法
CN113517917A (zh) * 2021-04-09 2021-10-19 深圳市腾远智拓电子有限公司 一种海上超视距微波无线传输系统和方法
JP2021182711A (ja) * 2020-05-20 2021-11-25 矢崎総業株式会社 無線通信装置および無線通信システム

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110260839A1 (en) * 2010-04-27 2011-10-27 Passif Semiconductor Corp Autonomous battery-free microwave frequency communication system
JP2013066248A (ja) * 2013-01-11 2013-04-11 Toshiba Corp 無線端末及び無線通信方法
CN104022812A (zh) * 2014-06-26 2014-09-03 武汉虹信通信技术有限责任公司 智能微波中继器
JP2021182711A (ja) * 2020-05-20 2021-11-25 矢崎総業株式会社 無線通信装置および無線通信システム
CN112333726A (zh) * 2020-12-04 2021-02-05 天津七一二通信广播股份有限公司 一种基于频分技术的微波设备监控方法
CN113517917A (zh) * 2021-04-09 2021-10-19 深圳市腾远智拓电子有限公司 一种海上超视距微波无线传输系统和方法

Also Published As

Publication number Publication date
CN116233898A (zh) 2023-06-06

Similar Documents

Publication Publication Date Title
US10567310B2 (en) Real-time data communication over internet of things network
WO2018214865A1 (zh) 消息回执的处理方法、相关装置、存储介质和处理器
EP2528274A1 (en) Method and system for upgrading network device
US10284340B2 (en) Multicast sending apparatus, multicast receiving apparatus, and multicast transmission determining method
US8904245B2 (en) Using a variable timer for sending an error indication
JP2019216455A (ja) 予測的確認応答フィードバックメカニズム
CN109906631B (zh) 自适应传输方法和装置
EP3202070B1 (en) Method and first node for handling a feedback procedure in a radio communication
US11889255B2 (en) Communication method between earphones and charging box, charging box, earphones and readable storage medium
CN113132063B (zh) 一种物理层重传控制方法
CN112035145B (zh) 设备升级方法及相关装置
US8599734B1 (en) TCP proxy acknowledgements
CN113721966B (zh) 节点升级方法、装置、存储介质及电子装置
US20220264684A1 (en) Communication of Segmented Radio Resource Control Messages
CN103973414A (zh) 一种数据传输方法及装置
CN112887416B (zh) 发送保活包的频率调整方法及装置
KR20200016982A (ko) 데이터 전송 방법과 시스템, 및 장치
WO2023103985A1 (zh) 基于微波设备的数据传输方法和装置、存储介质及电子设备
JP2016174211A (ja) 通信システム
KR20010072076A (ko) 통신 시스템에서 데이터 패킷을 전달하기 위한 방법 및 장치
EP3672189B1 (en) Data transmission method, device and system
CN116582826A (zh) 一种报文传输的方法、电子设备及存储介质
US20220141626A1 (en) Communication method, apparatus, and system
US20220376817A1 (en) Methods and systems for exchanging periodic data in a mobile telecommunications network
KR20220024642A (ko) 파라미터 최적화 방법, 장치, 기지국, 서버 및 저장 매체

Legal Events

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

Ref document number: 22903407

Country of ref document: EP

Kind code of ref document: A1