CN117544910A - Power data transmission method and device, terminal equipment and storage medium - Google Patents

Power data transmission method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN117544910A
CN117544910A CN202311323257.6A CN202311323257A CN117544910A CN 117544910 A CN117544910 A CN 117544910A CN 202311323257 A CN202311323257 A CN 202311323257A CN 117544910 A CN117544910 A CN 117544910A
Authority
CN
China
Prior art keywords
power data
acquisition
short message
beidou short
clock
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
CN202311323257.6A
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.)
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Original Assignee
China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southern Power Grid Digital Grid Technology Guangdong Co ltd filed Critical China Southern Power Grid Digital Grid Technology Guangdong Co ltd
Priority to CN202311323257.6A priority Critical patent/CN117544910A/en
Publication of CN117544910A publication Critical patent/CN117544910A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/1851Systems using a satellite or space-based relay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • H04W12/033Protecting confidentiality, e.g. by encryption of the user plane, e.g. user's traffic
    • 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)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application is applicable to the technical field of power, and provides a power data transmission method, a device, terminal equipment and a storage medium, wherein the method is applied to acquisition equipment and comprises the following steps: responding to the acquisition instruction, and acquiring power data corresponding to each ammeter; transmitting a Beidou short message containing the electric power data to a communication satellite so as to transmit the Beidou short message to a master station server through the communication satellite; the Beidou short message is generated based on a satellite communication protocol between the communication satellite and the acquisition equipment. After the power data is acquired by the method acquisition equipment provided by the embodiment, the power data can be transmitted to the master station server by transmitting the Beidou short message containing the power data to the communication satellite. Therefore, the power data acquired by the power data transmission method provided by the embodiment can meet the acquisition requirements of high efficiency, accuracy and wide coverage of the power data.

Description

Power data transmission method and device, terminal equipment and storage medium
Technical Field
The embodiment of the application belongs to the technical field of power, and particularly relates to a power data transmission method, a device, terminal equipment and a storage medium.
Background
In an electric power system, in order to uniformly charge and manage electricity consumption conditions of users, a power grid master station is often required to collect electric power data of the users. In the prior art, a power grid master station often collects power data of users in two ways. In the first mode, the data are collected in a manual table look-up mode. However, the manual table checking mode requires workers to check the meter one by one, so that the efficiency is low, and the manual meter checking is easy to leak. And in the second mode, the acquisition equipment is arranged on the ammeter of the user, and can automatically acquire the electric power data of the ammeter and transmit the electric power data to the power grid master station through the mobile network. However, since many remote areas still do not cover the mobile network, and the communication quality of the mobile network is easily affected by factors such as weather or natural disasters, it is difficult to cover all users by transmitting the collected power data through the mobile network. Therefore, the existing two power data acquisition methods can not meet the power data acquisition requirements of high efficiency, accuracy and wide coverage.
Disclosure of Invention
In view of this, the embodiments of the present application provide a method, an apparatus, a terminal device, and a storage medium for transmitting power data, so as to meet the requirements of efficient, accurate, and wide coverage for power data acquisition.
A first aspect of an embodiment of the present application provides a method for transmitting power data, applied to an acquisition device, including:
responding to the acquisition instruction, and acquiring power data corresponding to each ammeter;
transmitting a Beidou short message containing the electric power data to a communication satellite so as to transmit the Beidou short message to a master station server through the communication satellite; the Beidou short message is generated based on a satellite communication protocol between the communication satellite and the acquisition equipment.
A second aspect of the embodiments of the present application provides a method for transmitting power data, applied to an acquisition device, including:
encrypting the power data based on a preset encryption algorithm to generate encrypted data;
and generating the Beidou short message corresponding to the encrypted data through the satellite communication protocol.
A third aspect of the embodiments of the present application provides a method for transmitting power data, applied to an acquisition device, including:
determining a data length of the power data;
if the data length is greater than a preset length threshold, dividing the power data into a plurality of sub-data based on the expected length;
generating Beidou short messages corresponding to the sub-data according to the satellite communication protocol.
A fourth aspect of the embodiments of the present application provides a method for transmitting power data, applied to a master station server, including:
receiving Beidou short messages sent by any communication satellite; the Beidou short message is generated by acquisition equipment based on acquired power data;
determining a message type corresponding to the Beidou short message based on satellite codes of any communication satellite;
and analyzing the Beidou short message based on the message type to obtain the electric power data.
A fifth aspect of the embodiments of the present application provides a method for transmitting power data, applied to a master station server, including:
calibrating a system clock of a master station server based on the acquired standard clock corresponding to the communication satellite;
acquiring device clocks corresponding to the devices to be calibrated; the equipment to be calibrated is acquisition equipment with the out-of-tolerance clock of the equipment clock;
generating timing information corresponding to each device to be timed based on the calibrated system clock and the device clock, and sending the timing information to the corresponding device to be timed so as to synchronize the device clock of the device to be timed with the system clock;
generating an acquisition instruction containing acquisition time based on the calibrated system clock, and sending the acquisition instruction to the acquisition equipment; the acquisition instruction is used for controlling the acquisition equipment to acquire the electric power data at the acquisition time.
A sixth aspect of the embodiments of the present application provides a method for transmitting power data, applied to a master station server, including:
receiving a heartbeat detection packet transmitted by the acquisition equipment, and determining the equipment clock corresponding to the acquisition equipment according to the heartbeat detection packet;
and if the difference between the equipment clock and the calibrated system clock is greater than a preset time threshold, determining that the acquisition equipment is equipment to be calibrated.
A seventh aspect of the embodiments of the present application provides a method for transmitting power data, applied to a master station server, including:
acquiring environment information of the position of equipment to be calibrated, and determining environment time delay based on the environment information;
and generating calibration parameters based on the environmental time delay, the transmission time delay, the calibrated master station system time and the equipment clock, and generating the timing information based on the calibration parameters.
An eighth aspect of the embodiments of the present application provides a transmission device for power data, including:
the acquisition module is used for responding to the acquisition instruction and acquiring the electric power data corresponding to each ammeter;
the transmission module is used for sending the Beidou short message containing the electric power data to a communication satellite so as to transmit the Beidou short message to a master station server through the communication satellite; the Beidou short message is generated based on a satellite communication protocol between the communication satellite and the acquisition equipment.
A ninth aspect of the embodiments of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the method for transmitting power data according to the first aspect.
A tenth aspect of the embodiments of the present application provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the method for transmitting power data according to the first aspect described above.
An eleventh aspect of the embodiments of the present application provides a computer program product, which when run on a computer causes the computer to perform the method for transmitting power data according to the first aspect.
Compared with the prior art, the embodiment of the application has the following advantages:
according to the embodiment of the application, the acquisition equipment can respond to the acquisition instruction to acquire the electric power data corresponding to each ammeter; after the acquisition equipment acquires the electric power data, a satellite communication protocol between the communication satellites and the acquisition equipment can generate Beidou short messages containing the electric power data; the acquisition equipment can transmit the Beidou short message containing the electric power data to the master station server by sending the Beidou short message containing the Beidou short message to the communication satellite. Through the method provided by the embodiment, the acquisition equipment can transmit the acquired power data to the master station server through the communication satellite, so that the method provided by the embodiment can meet the acquisition requirements of high efficiency, accuracy and wide coverage of the power data.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that are required to be used in the embodiments or the description of the prior art. It is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a schematic diagram of a method for transmitting power data according to an embodiment of the present application;
fig. 2 is a flowchart of a specific implementation of a method S102 for transmitting power data according to a second embodiment of the present application;
fig. 3 is a flowchart of a specific implementation of a method S102 for transmitting power data according to a third embodiment of the present application;
fig. 4 is a flowchart of a specific implementation of a power data transmission method S103 according to a fourth embodiment of the present application;
fig. 5 is a flowchart of a specific implementation of a method S403 for transmitting power data according to a fifth embodiment of the present application;
fig. 6 is a flowchart of a specific implementation of a power data transmission method S403 provided in a sixth embodiment of the present application;
fig. 7 is a schematic diagram of a power data transmission device according to an embodiment of the present application;
Fig. 8 is a schematic diagram of another power data transmission device according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of a terminal device provided in an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system configurations, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
The technical scheme of the present application is described below by specific examples.
Referring to fig. 1, a schematic diagram of a method for transmitting electric power data according to an embodiment of the present application is shown, where the method for transmitting electric power data may be applied to an electric power system. The power system can comprise a master station server and acquisition equipment. The acquisition equipment can be terminal equipment such as a computer, a mainframe computer, a singlechip and the like. The method specifically comprises the following steps:
s101, the acquisition equipment responds to an acquisition instruction and acquires power data corresponding to each ammeter.
In this embodiment, a plurality of acquisition devices may be included in the power system. Each acquisition device can be distributed at different positions according to the corresponding acquisition area, and each acquisition device can be connected with a plurality of electric meters in the acquisition area and used for acquiring electric power data on each electric meter. When a user needs to acquire the power data in a certain acquisition area, the user can send an acquisition instruction to the corresponding acquisition equipment through the master station server. The master station server can convert the acquisition instruction into an acquisition message and send the acquisition message to the acquisition equipment through the communication satellite. The acquisition equipment can receive the acquisition message through the active antenna, and responds to an acquisition instruction in the acquisition message to acquire the electric power data corresponding to each ammeter in the acquisition area. The electric power data recorded in the electric meter can be used for representing the total electric power used by the electric power user corresponding to the electric meter.
In one possible implementation, the master station server may also send a configuration file to each of the collection devices to configure the collection mode of the collection device prior to collection of the power data by the collection device. The acquisition modes of the acquisition device may include an interval acquisition mode and a trigger acquisition mode. When the collection device is configured in the interval collection mode, the collection device may collect power data of each electric meter at intervals according to the time interval in the configuration file. When the collection device is configured to trigger the collection mode, the collection device can collect power data corresponding to each electric meter in response to the collection command after receiving the collection command sent by the master station server.
S102, the acquisition equipment sends Beidou short messages containing the electric power data to a communication satellite so as to transmit the Beidou short messages to a master station server through the communication satellite; the Beidou short message is generated based on a satellite communication protocol between the communication satellite and the acquisition equipment.
In this embodiment, after the collecting device collects the electric power data, the collecting device may generate the beidou short message corresponding to the electric power data according to the satellite communication protocol between the communication satellite and the collecting device. The acquisition equipment can send the big Dipper short message containing the electric power data to the communication satellite to say big Dipper short message transmission to the master station server through the communication satellite. Specifically, the communication satellite used in the embodiment may be a beidou No. two communication satellite and/or a beidou No. three communication satellite.
In one possible implementation, the acquisition device may include an antenna module and a satellite communication module thereon. The acquisition equipment can receive various instructions transmitted by the master station server through the communication satellite through the antenna module, and sends Beidou short messages to the communication satellite through the antenna module. The satellite communication module on the acquisition equipment can be used for generating Beidou short messages corresponding to the electric power data according to a satellite communication protocol. The satellite communication module can encapsulate the electric power data into data frames of Beidou short messages according to a satellite communication protocol, and sends the Beidou short messages encapsulated with the electric power data to the antenna module so as to send the Beidou short messages to the communication satellite through the antenna module. Specifically, when the communication satellite used by the acquisition device is a beidou second-generation satellite, the antenna module on the acquisition device may be a beidou second-generation active directional antenna. When the communication satellite used by the acquisition equipment is a Beidou third-generation satellite, the antenna module on the acquisition equipment can be a Beidou second-generation active directional antenna or a Beidou third-generation active directional antenna.
S103, the master station server receives Beidou short messages sent by any communication satellite; the Beidou short message is generated by the acquisition equipment based on the acquired power data.
In this embodiment, when the master station server is in a start state, the master station server may receive, through the antenna module, a beidou short message sent by any communication satellite. The Beidou short message received by the master station server is generated by acquisition equipment according to the acquired power data.
S104, the master station server determines the message type corresponding to the Beidou short message based on the satellite code of any communication satellite.
In this embodiment, after receiving the beidou short message, the master station server may determine the satellite identifier of the communication satellite corresponding to the current beidou short message based on the doppler shift and/or the code phase shift in the beidou short message. The master station server can determine the message type corresponding to the Beidou short message based on the satellite identification of the communication satellite.
In one possible implementation manner, after the master station server receives the beidou short message through the antenna module, a pseudo-random code in the beidou short message can be obtained. The master station server may calculate correlation values between the pseudorandom code and the satellite codes of the respective communication satellites. The master station server can determine a communication satellite for sending the Beidou short message according to the correlation value, and determine the message type of the current Beidou short message according to the satellite code of the communication satellite. Specifically, if the correlation value between the pseudo-random code and a certain satellite code is 1, the master station server may determine that the communication satellite corresponding to the satellite code is the communication satellite that sends the current beidou short message. If the correlation value between the pseudo-random code and a certain satellite code approaches 0, the master station server can determine that the communication satellite corresponding to the satellite code is not the communication satellite for transmitting the current Beidou short message.
S105, the master station server analyzes the Beidou short message based on the message type to obtain the electric power data.
In this example, after determining the message type corresponding to the current beidou short message, the master station server may analyze the current beidou short message based on the satellite communication protocol corresponding to the message type to obtain the electric power data in the beidou short message.
In one possible implementation manner, after the master station server analyzes the Beidou short message according to the communication protocol and obtains the electric power data, the acquisition equipment for acquiring the current electric power data can be determined according to the equipment identifier in the electric power data. The master station server can also determine an ammeter corresponding to the current power data according to the ammeter identifier in the power data.
In one possible implementation manner, after the master station server analyzes the power data, the master station server may convert the power data into metering data according to a data template preset by a user, so as to generate metering data meeting the requirements of the related protocol specification of the power grid. After the metering data is generated, the primary station server may send the metering data to the metering system for a statistical analysis of the electrical quantity by the metering system from the metering data.
In this embodiment, the power system may include a master station server and a plurality of acquisition devices. When a user needs to acquire the power data, the acquisition equipment can respond to the acquisition instruction to acquire the power data corresponding to each ammeter. After the acquisition equipment acquires the electric power data, the Beidou short message containing the electric power data can be generated according to a satellite communication protocol. The acquisition equipment can send the big Dipper short message containing the electric power data to the communication satellite to transmit the big Dipper short message to the master station server through the communication satellite. The master station server can receive Beidou short messages sent by any communication satellite and determine the message type of the Beidou short messages according to satellite codes. The master station server can analyze the Beidou short message according to the message type to obtain electric power data. By the method provided by the embodiment, the power system can transmit power data through the communication satellite, and the communication satellite has bidirectional digital message communication capability and is not limited by regions and spaces through satellite transmission, so that the method provided by the embodiment can meet the power data transmission requirements of high efficiency, accuracy and wide coverage.
Fig. 2 shows a flowchart of a specific implementation of a method S102 for transmitting power data according to a second embodiment of the present application. Referring to fig. 2, compared to the embodiment shown in fig. 1, in the method for transmitting electric power data provided in this embodiment, S102 includes: s1021 to S1022 are described in detail as follows:
s1021, the acquisition equipment encrypts the power data based on a preset encryption algorithm to generate encrypted data.
In this embodiment, after the collecting device collects the electric power data, the collecting device may further obtain an electric meter identifier corresponding to the electric meter that records the electric power data, and the collecting device may encrypt the electric power data and the electric meter identifier according to an encryption algorithm preset by a user to generate encrypted data.
In one possible implementation, the collection device may have stored therein a plurality of encryption algorithms, each of which may be used to encrypt power data in a different region. After the collecting device collects the electric power data, the area identification of the area where the electric meter is located can be determined according to the electric meter identification. The acquisition device can determine an encryption algorithm corresponding to the current power data according to the area identifier. The acquisition device may encrypt the power data according to an encryption algorithm corresponding to the power data generation area. By the method provided by the embodiment, the transmission safety of the power data can be improved. Specifically, the encryption algorithm used in the present embodiment may be any one of a hybrid encryption algorithm, a chaotic iterative model, a symmetric encryption algorithm, and the like, which are well known to those skilled in the art.
S1022, the acquisition equipment generates Beidou short messages corresponding to the encrypted data through the satellite communication protocol.
In this embodiment, after the terminal device generates the encrypted data, the encrypted data may be encapsulated into a data frame of the beidou short message according to the satellite communication protocol, and the beidou short message is sent to the communication satellite through the antenna module.
In one possible implementation manner, after the terminal device generates the encrypted data, the encrypted data and the area identifier corresponding to the encrypted data may be encapsulated into a data frame of the beidou short message. After receiving the Beidou short message, the master station server can determine a decoding model corresponding to the current encrypted data according to the area identification, and decode the encrypted data through the corresponding decoding model to obtain the electric power data.
In this embodiment, after the collecting device collects the electric power data, the electric power data may be encrypted by an encryption algorithm, and a corresponding beidou short message is generated according to the encrypted data. Therefore, the transmission security of the power data can be improved by the method provided by the embodiment.
Fig. 3 shows a flowchart of a specific implementation of a method S102 for transmitting power data according to a third embodiment of the present application. Referring to fig. 3, compared to the embodiment shown in fig. 1, in a method for transmitting electric power data provided in this embodiment, S102 includes: s301 to S303 are specifically described below:
S301, the acquisition equipment determines the data length of the power data.
In this embodiment, when the electricity consumption in the collection area of a certain collection device is larger, or the number of electric meters in the collection area is larger, the data length of the electric power data may be longer than the maximum data length that can be transmitted by single communication of the beidou short message. Thus, the collecting device may determine the data length of the power data from the data structure of the power data after collecting the power data.
S302, if the data length is greater than a preset length threshold, the acquisition equipment divides the power data into a plurality of sub-data based on the expected length.
In this embodiment, after determining the data length of the power data, the collecting device may determine whether the data length of the current power data is greater than a length threshold set in advance by the user. If the acquisition equipment judges that the data length of the current power data is greater than the length threshold, the acquisition equipment can divide the power data into a plurality of sub-data according to the expected length preset by a user. The length threshold in the acquisition device may be the maximum data length that can be transmitted by the data frame of the beidou short message.
In one possible implementation, if the acquisition device determines that the data length of the current power data is less than or equal to the length threshold, the acquisition device may encapsulate the current power data into the beidou short message data frame according to the satellite communication protocol.
S303, the acquisition equipment generates Beidou short messages corresponding to the sub-data according to the satellite communication protocol.
In this embodiment, after the acquisition device divides the power data into a plurality of sub-data based on the expected length, each sub-data may be encapsulated into a data frame of the beidou short message according to the satellite communication protocol, so as to generate the beidou short message corresponding to each sub-data.
In this embodiment, after acquiring the power data, the acquisition device may acquire the data length of the power data, and split the power data with the data length exceeding the length threshold into a plurality of sub-data. By the method provided by the embodiment, the message length of the Beidou short message can be ensured to be smaller than or equal to the maximum length of single transmission of the communication satellite. Therefore, the method provided by the embodiment can improve the usability of the power data transmission method.
Fig. 4 shows a flowchart of a specific implementation of a method S103 for transmitting power data according to the fourth embodiment of the present application. Referring to fig. 4, compared to the embodiment shown in fig. 1, the method for transmitting power data provided in this embodiment includes, before S103: s401 to S404 are specifically described below:
S401, the master station server calibrates a system clock of the master station server based on the acquired standard clock corresponding to the communication satellite.
In this embodiment, before receiving the beidou short message fed back by the acquisition device through the communication satellite, the master station server may respond to a calibration instruction initiated by the user to obtain a standard clock corresponding to the communication satellite. The master server may calibrate the master server's system clock based on the acquired standard clock.
In one possible implementation, the master station server may continuously receive the standard time signals transmitted by each of any two communication satellites via the time service antenna. After receiving the standard time signals sent by the two communication satellites, the master station server can analyze the standard time signals respectively to obtain standard clocks corresponding to the communication satellites. The master station server may parse the first standard time signal to obtain a first standard clock. The master station server may parse the second standard time signal to obtain a second standard clock. After the master station server acquires the first standard clock and the second standard clock, the master station server can respectively convert the first standard clock and the second standard clock into time formats used by the master station server according to time operation functions preset by a user so as to generate a first standard time value and a second standard time value. After the master station server obtains the first standard time value and the second standard time value, whether the difference between the first standard time value and the second standard time value is greater than or equal to a standard time threshold preset by a user can be calculated.
If the master station server determines that the difference between the first standard time value and the second standard time value is smaller than the standard time threshold preset by the user, the master station server can determine the target standard time value according to the first standard time value and the second standard time value. And calibrating the system clock of the master station server according to the target standard time value. The master station server may calculate the target standard time by averaging, taking a maximum value, or calculating a weighted average value according to the time weights corresponding to the communication satellites. If the master station server determines that the difference between the first standard time value and the second standard time value is greater than or equal to the standard time threshold preset by the user, the master station server can generate first alarm information to prompt the user that the difference between the standard time values corresponding to the two communication satellites currently received is too large.
S402, a master station server acquires device clocks corresponding to devices to be calibrated; the equipment to be calibrated is acquisition equipment with the out-of-tolerance clock of equipment system time.
In this embodiment, after the system clock is calibrated according to the standard clock, the device clock corresponding to each device to be calibrated may be obtained through the heartbeat detection packet sent by each device to be calibrated. The master station server can store device identifiers and device clocks corresponding to a plurality of devices to be calibrated through the list to be calibrated. The to-be-calibrated equipment is stored in the to-be-calibrated list and is acquisition equipment with out-of-tolerance clock of equipment clocks in the power system.
S403, the master station server generates timing information corresponding to each device to be corrected based on the calibrated system clock and the device clock, and sends the timing information to the corresponding device to be corrected, so that the device clock of the device to be corrected is synchronous with the system clock.
In this embodiment, after acquiring the device clocks corresponding to the devices to be calibrated, the master station server may generate the calibration information corresponding to the devices to be calibrated based on the standard system clock and the device clock. After the master station server generates the timing information, a communication satellite which can receive satellite signals by each device to be corrected and a satellite communication protocol corresponding to the communication satellite can be determined according to the device identification corresponding to each device to be corrected. The master station server can package the timing information into a satellite message according to a satellite communication protocol corresponding to the equipment to be timing. The master station server can send the satellite message to the communication satellite so as to send the time correction information to the corresponding device to be corrected through the communication satellite. The device to be calibrated can receive satellite messages sent by the communication satellites and analyze the satellite messages to obtain the time calibrating information. The device to be calibrated may calibrate the device clock according to the timing information to synchronize the device clock with the system clock of the master server.
S404, the master station server generates an acquisition instruction containing acquisition time based on the calibrated system clock and sends the acquisition instruction to the acquisition equipment; the acquisition instruction is used for controlling the acquisition equipment to acquire the electric power data at the acquisition time.
In this embodiment, after the master station server corrects the time of the device to be corrected according to the time correction information, the acquisition time preset by the user may be obtained. The master station server can generate an acquisition instruction containing acquisition time according to the calibrated system clock and send the acquisition instruction containing the acquisition time to the acquisition equipment in a satellite message mode. The master station server can control the acquisition equipment to acquire the electric power data in the acquisition time through the acquisition instruction. The acquisition equipment can receive an acquisition instruction initiated by the master station server through the antenna module, and acquire power data in acquisition time in response to the acquisition instruction.
By the method provided by the embodiment, the master station server can correct time according to the standard clock of the communication satellite. After finishing the timing, the master station server can send timing information to the equipment to be corrected so as to synchronize the equipment clock of the equipment to be corrected with the system clock. After synchronization is completed, the master station server can send an acquisition instruction containing acquisition time to the acquisition equipment so as to control the acquisition equipment to acquire power data at the acquisition time. By the method provided by the embodiment, clocks of the main station server, the communication satellite and the acquisition equipment are synchronous, so that accuracy of electric power data acquired by the acquisition equipment is ensured.
Fig. 5 shows a flowchart of a specific implementation of a method S403 for transmitting power data according to a fifth embodiment of the present application. Referring to fig. 5, compared to the embodiment shown in fig. 4, the method for transmitting power data provided in this embodiment includes, before S403: s501 to S502 are specifically described below:
s501, a master station server receives a heartbeat detection packet transmitted by the acquisition equipment and determines the equipment clock corresponding to the acquisition equipment according to the heartbeat detection packet.
In this embodiment, the acquisition device may send the heartbeat detection packet to the master station server at regular time. The heartbeat detection packet sent by the acquisition device can contain various device information such as a device clock corresponding to the acquisition device, a device state of the acquisition device and the like. The master station server can receive the heartbeat detection packet transmitted by the acquisition device at fixed time and determine the device clock corresponding to the acquisition device according to the heartbeat detection packet.
S502, if the difference between the equipment clock and the calibrated system clock is larger than a preset time threshold, the master station server determines that the acquisition equipment is equipment to be calibrated.
In this embodiment, after the master station server obtains the device clock corresponding to the acquisition device, it may be determined whether the difference between the device clock and the calibrated master station server system clock is greater than a time threshold pre-selected by the user. If the master station server judges that the difference between the device clock corresponding to any one of the acquisition devices and the calibrated system clock is larger than the time threshold, the master station server can determine that the current acquisition device has out-of-tolerance clock, and the master station server can determine that the current acquisition device is the device to be calibrated. The master station server can write the equipment identifier and the equipment clock corresponding to the acquisition equipment with the out-of-tolerance clock in the to-be-calibrated list so as to calibrate the acquisition equipment.
In this embodiment, the master station server may receive the heartbeat detection packet sent by the acquisition device at regular time, and determine, according to the device clock in the heartbeat detection packet, whether the acquisition device has a clock out-of-tolerance. If the master station server judges that the difference between the device clock corresponding to any one of the acquisition devices and the calibrated system clock is larger than the time threshold, the master station server can determine that the current acquisition device has out-of-tolerance clock, and the master station server can determine that the current acquisition device is the device to be calibrated. By the method provided by the embodiment, the master station server can carry out timing inspection on each acquisition device so as to ensure the clock synchronism of each acquisition device. Therefore, the method provided by the embodiment can ensure the accuracy of the power data acquired by the acquisition equipment.
Fig. 6 shows a flowchart of a specific implementation of a method S403 for transmitting power data according to a sixth embodiment of the present application. Referring to fig. 6, compared to the embodiment shown in fig. 4, in a method for transmitting electric power data provided in this embodiment, S403 includes: s4031 to S4032 are specifically described below:
s4031, the master station server acquires environment information of the position of the equipment to be calibrated, and determines environment time delay based on the environment information.
In this embodiment, when the master station server determines that any one of the acquisition devices is the device to be calibrated, the master station server may obtain, according to the device identifier, environmental information of a location where the device to be calibrated is located, and determine, according to the environmental information, an environmental time delay when the calibration information is transmitted to the device to be calibrated.
In one possible implementation, the environmental information may include, but is not limited to, a temperature value, a humidity value, a rain level, a snow level, and the like. After the master station server acquires the environmental information, all the environmental information of the position of the equipment to be calibrated can be input into an environmental delay algorithm preset by a user, so that the environmental time delay of the position of the equipment to be calibrated is calculated according to the environmental information.
S4032, the master station server generates calibration parameters based on the environment time delay, the transmission time delay, the calibrated master station system time and the equipment clock, and generates the timing information based on the calibration parameters.
In this embodiment, after determining the environmental time delay corresponding to each device to be calibrated, the master station server may input the environmental time delay, the transmission time delay, the calibrated master station system time and the device clock corresponding to each device to be calibrated into a calibration algorithm preset by the user, so as to generate calibration parameters corresponding to each device to be calibrated through the calibration algorithm. The master station server can generate timing information according to the calibration parameters and send the corresponding timing information to the equipment to be corrected. The device to be calibrated can receive the timing information sent by the master station server and calibrate the device clock according to the calibration parameters in the timing information so as to synchronize the device clock with the system clock.
In this embodiment, the master station server may determine an environmental time delay corresponding to the device to be calibrated according to the environmental information of the location of the device to be calibrated, and generate the calibration parameter according to the environmental time delay and the transmission time delay. By the method provided by the embodiment, the master station server can generate timing information by combining the environmental information of the position of the equipment to be corrected, so that the synchronism of the equipment clock and the system clock can be further improved, and the accuracy of the electric power data acquired by the acquisition equipment is further improved.
It should be noted that, the sequence number of each step in the above embodiment does not mean the sequence of execution sequence, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
Referring to fig. 7, a schematic diagram of a power data transmission device provided in an embodiment of the present application is shown, where the power data transmission device may be applied to an acquisition device. The above power data transmission device may specifically include an acquisition module 701 and a transmission module 702, where:
the acquisition module 701 is configured to respond to an acquisition instruction, and acquire power data corresponding to each electric meter;
The transmission module 702 is configured to send a beidou short message containing the electric power data to a communication satellite, so that the beidou short message is transmitted to a master station server through the communication satellite; the Beidou short message is generated based on a satellite communication protocol between the communication satellite and the acquisition equipment.
The transmission module is also used for encrypting the power data based on a preset encryption algorithm to generate encrypted data; and generating the Beidou short message corresponding to the encrypted data through the satellite communication protocol.
A transmission module, further configured to determine a data length of the power data; if the data length is greater than a preset length threshold, dividing the power data into a plurality of sub-data based on the expected length; generating Beidou short messages corresponding to the sub-data according to the satellite communication protocol.
Referring to fig. 8, there is shown a schematic diagram of another power data transmission device provided in an embodiment of the present application, where the power data transmission device may be applied to a master station server. The above-mentioned transmission device of power data may specifically include a receiving module 801, a type determining module 802, and an analyzing module 803, where:
The receiving module 801 is configured to receive a beidou short message sent by any communication satellite; the Beidou short message is generated by acquisition equipment based on acquired power data;
a type determining module 802, configured to determine a message type corresponding to the beidou short message based on a satellite identifier of the any communication satellite;
and the analyzing module 803 is configured to analyze the beidou short message based on the message type, so as to obtain the electric power data.
The receiving module is further used for calibrating the system clock of the master station server based on the acquired standard clock corresponding to the communication satellite; acquiring device clocks corresponding to the devices to be calibrated; the equipment to be calibrated is acquisition equipment with the out-of-tolerance clock of equipment system time; generating timing information corresponding to each device to be timed based on the calibrated system clock and the device clock, and sending the timing information to the corresponding device to be timed so as to synchronize the device clock of the device to be timed with the system clock; generating an acquisition instruction at a preset acquisition time based on the calibrated system clock, and sending the acquisition instruction to the acquisition equipment; the acquisition instruction is used for controlling the acquisition equipment to acquire the electric power data at the acquisition time.
The receiving module is further used for receiving a heartbeat detection packet transmitted by the acquisition equipment and determining the equipment clock corresponding to the acquisition equipment according to the heartbeat detection packet; and if the difference between the equipment clock and the calibrated system clock is greater than a preset time threshold, determining that the acquisition equipment is equipment to be calibrated.
The receiving module is further used for acquiring environment information of the position of the equipment to be calibrated, and determining environment time delay based on the environment information; and generating calibration parameters based on the environment time delay, the transmission time delay, the calibrated system clock and the calibrated equipment clock, and generating the timing information based on the calibration parameters.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference should be made to the description of the method embodiments.
Referring to fig. 9, a schematic diagram of a terminal device provided in an embodiment of the present application is shown. As shown in fig. 9, a terminal device 900 in the embodiment of the present application includes: a processor 910, a memory 920 and a computer program 921 stored in said memory 920 and executable on said processor 910. The processor 910, when executing the computer program 921, implements the steps in the respective embodiments of the transmission method of the above-described power data, such as steps S101 to S105 shown in fig. 1. Alternatively, the processor 910, when executing the computer program 921, implements functions of the modules/units in the above-described device embodiments, for example, functions of the modules 701 to 702 shown in fig. 7.
Illustratively, the computer program 921 may be partitioned into one or more modules/units that are stored in the memory 920 and executed by the processor 910 to complete the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing a specific function, which instruction segments may be used to describe the execution of the computer program 921 in the terminal device 900. For example, the computer program 921 may be divided into an acquisition module and a transmission module, wherein:
the acquisition module is used for responding to the acquisition instruction and acquiring the electric power data corresponding to each ammeter;
the transmission module is used for sending the Beidou short message containing the electric power data to a communication satellite so as to transmit the Beidou short message to a master station server through the communication satellite; the Beidou short message is generated based on a satellite communication protocol between the communication satellite and the acquisition equipment.
The terminal device 900 may be an acquisition device in the foregoing embodiments. The terminal device 900 may include, but is not limited to, a processor 910, a memory 920. It will be appreciated by those skilled in the art that fig. 9 is merely an example of a terminal device 900, and is not meant to be limiting of the terminal device 900, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the terminal device 900 may also include input and output devices, network access devices, buses, etc.
The processor 910 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 920 may be an internal storage unit of the terminal device 900, for example, a hard disk or a memory of the terminal device 900. The memory 920 may also be an external storage device of the terminal device 900, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 900. Further, the memory 920 may also include both an internal storage unit and an external storage device of the terminal device 900. The memory 920 is used for storing the computer program 921 and other programs and data required for the terminal device 900. The memory 920 may also be used to temporarily store data that has been output or is to be output.
The embodiment of the application also discloses a terminal device, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the processor realizes the transmission method of the power data in the previous embodiments when executing the computer program.
The embodiments also disclose a computer readable storage medium storing a computer program which, when executed by a processor, implements the method for transmitting power data according to the foregoing embodiments.
The embodiments of the present application also disclose a computer program product, which when run on a computer, causes the computer to perform the method for transmitting power data according to the foregoing embodiments.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting. Although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method for transmitting power data, applied to an acquisition device, comprising:
responding to the acquisition instruction, and acquiring power data corresponding to each ammeter;
transmitting a Beidou short message containing the electric power data to a communication satellite so as to transmit the Beidou short message to a master station server through the communication satellite; the Beidou short message is generated based on a satellite communication protocol between the communication satellite and the acquisition equipment.
2. The method of claim 1, wherein the sending the beidou short message containing the power data to the communication satellite to transmit the beidou short message to a master server through the communication satellite comprises:
encrypting the power data based on a preset encryption algorithm to generate encrypted data;
and generating the Beidou short message corresponding to the encrypted data through the satellite communication protocol.
3. The method according to claim 1 or 2, wherein the sending the beidou short message containing the electric data to the communication satellite to transmit the beidou short message to the master station server through the communication satellite comprises:
determining a data length of the power data;
If the data length is greater than a preset length threshold, dividing the power data into a plurality of sub-data based on the expected length;
generating Beidou short messages corresponding to the sub-data according to the satellite communication protocol.
4. A method for transmitting power data, applied to a master station server, comprising:
receiving Beidou short messages sent by any communication satellite; the Beidou short message is generated by acquisition equipment based on acquired power data;
determining a message type corresponding to the Beidou short message based on satellite codes of any communication satellite;
and analyzing the Beidou short message based on the message type to obtain the electric power data.
5. The method of claim 4, wherein before receiving the beidou short message sent by any communication satellite, the method comprises:
calibrating a system clock of a master station server based on the acquired standard clock corresponding to the communication satellite;
acquiring device clocks corresponding to the devices to be calibrated; the equipment to be calibrated is acquisition equipment with the out-of-tolerance clock of the equipment clock;
generating timing information corresponding to each device to be timed based on the calibrated system clock and the device clock, and sending the timing information to the corresponding device to be timed so as to synchronize the device clock of the device to be timed with the system clock;
Generating an acquisition instruction containing acquisition time based on the calibrated system clock, and sending the acquisition instruction to the acquisition equipment; the acquisition instruction is used for controlling the acquisition equipment to acquire the electric power data at the acquisition time.
6. The method according to claim 5, wherein generating timing information corresponding to each device to be clocked based on the calibrated system clock and the device system clock, and transmitting the timing information to the corresponding device to be clocked, before synchronizing the device clock of the device to be clocked with the system clock, comprises:
receiving a heartbeat detection packet transmitted by the acquisition equipment, and determining the equipment clock corresponding to the acquisition equipment according to the heartbeat detection packet;
and if the difference between the equipment clock and the calibrated system clock is greater than a preset time threshold, determining that the acquisition equipment is equipment to be calibrated.
7. The method according to claim 5 or 6, wherein generating timing information corresponding to each device to be clocked based on the calibrated system clock and the device system clock, and transmitting the timing information to the corresponding device to be clocked, so that the device clock of the device to be clocked is synchronized with the system clock, includes:
Acquiring environment information of the position of equipment to be calibrated, and determining environment time delay based on the environment information;
and generating calibration parameters based on the environmental time delay, the transmission time delay, the calibrated master station system time and the equipment clock, and generating the timing information based on the calibration parameters.
8. A transmission device of electric power data, characterized by comprising:
the acquisition module is used for responding to the acquisition instruction and acquiring the electric power data corresponding to each ammeter;
the transmission module is used for sending the Beidou short message containing the electric power data to a communication satellite so as to transmit the Beidou short message to a master station server through the communication satellite; the Beidou short message is generated based on a satellite communication protocol between the communication satellite and the acquisition equipment.
9. Terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method of transmitting power data according to any of claims 1-7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the transmission method of power data according to any one of claims 1-7.
CN202311323257.6A 2023-10-12 2023-10-12 Power data transmission method and device, terminal equipment and storage medium Pending CN117544910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311323257.6A CN117544910A (en) 2023-10-12 2023-10-12 Power data transmission method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311323257.6A CN117544910A (en) 2023-10-12 2023-10-12 Power data transmission method and device, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117544910A true CN117544910A (en) 2024-02-09

Family

ID=89786917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311323257.6A Pending CN117544910A (en) 2023-10-12 2023-10-12 Power data transmission method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117544910A (en)

Similar Documents

Publication Publication Date Title
KR20200083533A (en) Clock metering method of watt hour meter, device, computer equipment and storage medium
CN109286460B (en) Time synchronization method and system based on wireless communication
CN104935390B (en) Synchronous low energy detection technique
CN103546267A (en) Time synchronization monitoring method and system
CN113420195B (en) Method and system for determining fault type of intelligent electric meter
CN108667936B (en) Data processing method, terminal, mobile edge computing server and storage medium
Sarto et al. Implementation and testing of OSNMA for Galileo
CN111081003A (en) Meter reading method, device and system
CN113848771B (en) UWB anchor point automatic configuration method, device, equipment and storage medium
CN117544910A (en) Power data transmission method and device, terminal equipment and storage medium
US11516561B2 (en) Method for reading fluid meters
CN112015813A (en) Data sharing method, system and device of power distribution network and computer equipment
CN117152589A (en) Target recognition method, system and storage medium
CN112243196A (en) Information processing method, device, equipment and computer readable storage medium
CN117478605B (en) Load balancing method, concentrator, ammeter and storage medium
CN110958071B (en) Electronic transformer clock error self-calibration system and method based on 4G module
CN111953703B (en) Gas turbine remote transmission system and method based on satellite communication
CN115996366A (en) Time service method, device, system and computer readable storage medium
CN102821457A (en) Clock synchronizing method based on software defined radio and software defined radio system
CN116455503A (en) Electric energy meter timing method, electric energy meter and electric energy meter timing system
CN113364551B (en) Clock synchronization method and device for domain type protection device of power distribution network
CN113543189A (en) Energy efficiency evaluation method and related equipment
KR101600204B1 (en) Method for transmitting encrypted data, and network system and computer readable recording medium for the same
KR101587743B1 (en) Method of clustering for transmitting data, and cluster management server and computer readable recording medium for the same
KR101574028B1 (en) Method of data fusion for transmitting information, and node and computer readable recording medium for the same

Legal Events

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