CN118118567A - Method, device and system for transmitting electricity usage information - Google Patents

Method, device and system for transmitting electricity usage information Download PDF

Info

Publication number
CN118118567A
CN118118567A CN202410133089.2A CN202410133089A CN118118567A CN 118118567 A CN118118567 A CN 118118567A CN 202410133089 A CN202410133089 A CN 202410133089A CN 118118567 A CN118118567 A CN 118118567A
Authority
CN
China
Prior art keywords
data
data packet
lost
packet
sending
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
CN202410133089.2A
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.)
State Grid Corp of China SGCC
State Grid Qinghai Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Qinghai Electric Power Co Ltd
Original Assignee
State Grid Corp of China SGCC
State Grid Qinghai Electric Power Co Ltd
Information and Telecommunication Branch of State Grid Qinghai Electric Power 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 State Grid Corp of China SGCC, State Grid Qinghai Electric Power Co Ltd, Information and Telecommunication Branch of State Grid Qinghai Electric Power Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202410133089.2A priority Critical patent/CN118118567A/en
Publication of CN118118567A publication Critical patent/CN118118567A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a transmission method, a device and a transmission system of electricity information. The method comprises the following steps: receiving a data packet sent by a sending end, wherein the data packet is generated by the sending end according to the number of times of sending the ammeter data and updated ammeter data, and the data format of the data packet is a Beidou short message; determining whether the data packet is lost or not according to the related information of the data packet, wherein the related information is a sequence number and/or an end flag bit; and under the condition that the data packet is lost, transmitting a first data response packet to the transmitting end so that the transmitting end supplements the lost data, and under the condition that the data packet is not lost, uploading the data packet to the server. The method solves the problem of low transmission efficiency of the Beidou short message in the prior art.

Description

用电信息的传输方法、装置和传输系统Method, device and system for transmitting electricity usage information

技术领域Technical Field

本申请涉及北斗数据通信技术领域,具体而言,涉及一种用电信息的传输方法、装置、计算机可读存储介质和传输系统。The present application relates to the field of Beidou data communication technology, and in particular to a method, device, computer-readable storage medium and transmission system for transmitting power usage information.

背景技术Background technique

目前,我国电网已经实现了智能化建设,电力系统普遍采用光纤通信、GPRS、电力线载波等通信技术,城市及乡镇基本实现了居民用电信息的智能化采集。而我国的高海拔地区虽提出了“全覆盖、全采集、全费控”的要求,但由于高海拔地区地势高,气候复杂,目前还没有完全实现居民用电信息的自动化采集。高海拔地区电网数据采集存在有线网络铺设成本高、难覆盖整个地区的难题。近年来的研究表明,采用北斗短消息通信技术作为传输方式具有传输距离远、无盲区及安全、可靠等特点,是一种可行的方案。北斗卫星导航系统是由我国自主建设、独立运行并兼容于其他系统的全球卫星导航系统,该系统不仅能够实现定位、授时、短报文通信和用户检测等功能,还可进行双向数据传输,且覆盖范围广、安全、可靠。At present, my country's power grid has realized intelligent construction. The power system generally adopts communication technologies such as optical fiber communication, GPRS, and power line carrier. Cities and towns have basically realized the intelligent collection of residents' electricity consumption information. Although my country's high-altitude areas have put forward the requirements of "full coverage, full collection, and full fee control", due to the high terrain and complex climate in high-altitude areas, the automatic collection of residents' electricity consumption information has not yet been fully realized. The data collection of power grids in high-altitude areas has the problem of high cost of laying wired networks and difficulty in covering the entire area. Research in recent years has shown that the use of Beidou short message communication technology as a transmission method has the characteristics of long transmission distance, no blind spots, safety, and reliability, and is a feasible solution. The Beidou satellite navigation system is a global satellite navigation system independently built and operated by my country and compatible with other systems. The system can not only realize functions such as positioning, timing, short message communication and user detection, but also carry out two-way data transmission, and has a wide coverage, safety, and reliability.

但是,目前针对高海拔地区采用北斗短报文进行用电信息通信存在传输报文不可靠的缺点,导致目前的北斗短报文的传输效率较低。However, the current use of Beidou short messages for electricity consumption information communication in high-altitude areas has the disadvantage of unreliable message transmission, resulting in low transmission efficiency of the current Beidou short messages.

发明内容Summary of the invention

本申请的主要目的在于提供一种用电信息的传输方法、装置、计算机可读存储介质和传输系统,以至少解决现有技术中北斗短报文的传输效率较低的问题。The main purpose of the present application is to provide a method, device, computer-readable storage medium and transmission system for transmitting power consumption information, so as to at least solve the problem of low transmission efficiency of Beidou short messages in the prior art.

为了实现上述目的,根据本申请的一个方面,提供了一种用电信息的传输方法,包括:接收发送端发送的数据包,其中,所述数据包是所述发送端根据电表数据发送的次数和更新的电表数据生成的,所述数据包的数据格式为北斗短报文;根据所述数据包的相关信息确定是否有所述数据包丢失,其中,所述相关信息为序号和/或结束标志位;在有所述数据包丢失的情况下,发送第一数据响应包至所述发送端,以使得所述发送端补发丢失的数据,在没有所述数据包丢失的情况下,将所述数据包上传至服务器中。In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for transmitting electricity usage information is provided, including: receiving a data packet sent by a sending end, wherein the data packet is generated by the sending end according to the number of times meter data is sent and the updated meter data, and the data format of the data packet is a Beidou short message; determining whether the data packet is lost according to relevant information of the data packet, wherein the relevant information is a sequence number and/or an end flag; in the event that the data packet is lost, sending a first data response packet to the sending end so that the sending end resends the lost data, and in the event that the data packet is not lost, uploading the data packet to a server.

可选地,接收发送端发送的数据包,包括:接收第一数据包,其中,所述第一数据包是所述发送端第一次发送数据时的数据包;接收第二数据包,其中,所述第二数据包是所述发送端第N次发送数据时的数据包,所述第二数据包中包括增量数据,所述增量数据为第N次的数据和第N-1次的数据的差值,N≥2。Optionally, receiving a data packet sent by a sender includes: receiving a first data packet, wherein the first data packet is a data packet when the sender sends data for the first time; receiving a second data packet, wherein the second data packet is a data packet when the sender sends data for the Nth time, and the second data packet includes incremental data, and the incremental data is the difference between the Nth data and the N-1th data, and N≥2.

可选地,接收发送端发送的数据包,包括:接收多个所述数据包,其中,多个所述数据包为所述发送端发送的,所述发送端依次收集多个用户端的所述电表数据,在多个所述电表数据的长度总和小于预设长度的情况下,将多个所述电表数据写入第一待发送数据包中,直到所述第一待发送数据包中的所述电表数据的长度总和大于或者等于所述预设长度,暂停向所述第一待发送数据包中写入数据,向第二待发送数据包中写入数据,直到所有的所述用户端的所有的所述电表数据都采集完毕,在最后一个待发送数据包中写入结束标志位。Optionally, receiving a data packet sent by a sending end includes: receiving a plurality of the data packets, wherein the plurality of the data packets are sent by the sending end, the sending end sequentially collecting the meter data of a plurality of user ends, and when the sum of the lengths of the plurality of meter data is less than a preset length, writing the plurality of meter data into a first data packet to be sent, until the sum of the lengths of the meter data in the first data packet to be sent is greater than or equal to the preset length, pausing writing data into the first data packet to be sent, and writing data into a second data packet to be sent, until all the meter data of all the user ends are collected, and writing an end flag into the last data packet to be sent.

可选地,所述数据包有多个,所述数据包和所述序号一一对应,根据所述数据包的相关信息确定是否有所述数据包丢失,包括:在满足所有的第一预设条件的情况下,确定没有所述数据包丢失,其中,所述第一预设条件包括:多个所述序号按照预设排序方式排序、第M个所述序号与第M-1个所述序号的第一差值等于第M个所述序号与第M+1个所述序号的第二差值、获取到所述结束标志位;在不满足任意一个所述第一预设条件的情况下,确定有所述数据包丢失。Optionally, there are multiple data packets, and the data packets and the sequence numbers correspond one-to-one. Determining whether the data packet is lost based on the relevant information of the data packet includes: determining that the data packet is not lost when all first preset conditions are met, wherein the first preset condition includes: multiple sequence numbers are sorted according to a preset sorting method, a first difference between the Mth sequence number and the M-1th sequence number is equal to a second difference between the Mth sequence number and the M+1th sequence number, and the end flag is obtained; and determining that the data packet is lost when any of the first preset conditions is not met.

可选地,在根据所述数据包的相关信息确定是否有所述数据包丢失之后,所述方法还包括:确定是否满足第二预设条件,其中,所述第二预设条件包括:未接收到所述数据包的时长大于或者等于目标时长、无法正常解析所述数据包;在满足所述第二预设条件的情况下,发送第二响应数据包至所述发送端,以使得所述发送端重新发送数据。Optionally, after determining whether the data packet is lost based on relevant information of the data packet, the method further includes: determining whether a second preset condition is met, wherein the second preset condition includes: the time duration for which the data packet is not received is greater than or equal to the target time duration and the data packet cannot be parsed normally; if the second preset condition is met, sending a second response data packet to the sending end so that the sending end resends the data.

可选地,在根据所述数据包的相关信息确定是否有所述数据包丢失之后,所述方法还包括:确定是否满足第三预设条件,其中,所述第三预设条件包括:未接收到所述数据包的时长大于或者等于目标时长、获取不到所述结束标志位;在满足所述第三预设条件的情况下,发送第三响应数据包至所述发送端,以使得所述发送端补发最后一个所述数据包。Optionally, after determining whether the data packet is lost based on relevant information of the data packet, the method further includes: determining whether a third preset condition is met, wherein the third preset condition includes: the duration of not receiving the data packet is greater than or equal to the target duration, and the end flag cannot be obtained; if the third preset condition is met, sending a third response data packet to the sending end, so that the sending end resends the last data packet.

可选地,在有所述数据包丢失的情况下,发送第一数据响应包至所述发送端,以使得所述发送端补发丢失的数据之后,所述方法还包括:获取补发次数;在所述补发次数大于或者等于预设次数的情况下,确定依然有所述数据包丢失的情况下,停止向所述发送端发送所述第一数据响应包,执行下一次的收集任务,并向所述服务器上报所述发送端异常;在所述补发次数小于或者等于所述预设次数的情况下,确定所述数据包补发成功的情况下,将补发的数据和所述数据包上传至所述服务器。Optionally, in the event that the data packet is lost, after sending a first data response packet to the sender so that the sender resends the lost data, the method further includes: obtaining a resending count; when the resending count is greater than or equal to a preset count and it is determined that the data packet is still lost, stopping sending the first data response packet to the sender, executing the next collection task, and reporting the sender abnormality to the server; when the resending count is less than or equal to the preset count and it is determined that the data packet is resent successfully, uploading the resent data and the data packet to the server.

根据本申请的另一方面,提供了一种用电信息的传输装置,包括:接收单元,用于接收发送端发送的数据包,其中,所述数据包是所述发送端根据电表数据发送的次数和更新的电表数据生成的,所述数据包的数据格式为北斗短报文;第一确定单元,用于根据所述数据包的相关信息确定是否有所述数据包丢失,其中,所述相关信息为序号和/或结束标志位;第一处理单元,用于在有所述数据包丢失的情况下,发送第一数据响应包至所述发送端,以使得所述发送端补发丢失的数据,在没有所述数据包丢失的情况下,将所述数据包上传至服务器中。According to another aspect of the present application, a device for transmitting electricity usage information is provided, including: a receiving unit, used to receive a data packet sent by a sending end, wherein the data packet is generated by the sending end according to the number of times meter data is sent and the updated meter data, and the data format of the data packet is a Beidou short message; a first determination unit, used to determine whether the data packet is lost according to relevant information of the data packet, wherein the relevant information is a sequence number and/or an end flag; a first processing unit, used to send a first data response packet to the sending end in case the data packet is lost, so that the sending end resends the lost data, and upload the data packet to a server in case the data packet is not lost.

根据本申请的再一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质包括存储的程序,其中,在所述程序运行时控制所述计算机可读存储介质所在设备执行任意一种所述用电信息的传输方法。According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods for transmitting the electricity usage information.

根据本申请的又一方面,提供了一种传输系统,包括:发送端和接收端,所述发送端和所述接收端通信连接,所述接收端用于执行任意一种所述用电信息的传输方法。According to another aspect of the present application, a transmission system is provided, including: a transmitting end and a receiving end, the transmitting end and the receiving end are communicatively connected, and the receiving end is used to execute any one of the methods for transmitting the electricity usage information.

应用本申请的技术方案,发送端收集数据,然后发送到接收端,接收端可以判断数据的传输状态,即是否有数据丢失,如果有数据丢失,发送端就补发数据,这样可以提高传输报文的可靠性,保证数据完整,以提高数据传输效率。By applying the technical solution of the present application, the sending end collects data and then sends it to the receiving end. The receiving end can determine the transmission status of the data, that is, whether there is data loss. If there is data loss, the sending end resends the data. This can improve the reliability of the transmitted message, ensure data integrity, and improve data transmission efficiency.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

构成本申请的一部分的说明书附图用来提供对本申请的进一步理解,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings constituting part of the present application are used to provide a further understanding of the present application. The illustrative embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

图1示出了根据本申请的实施例中提供的一种执行用电信息的传输方法的移动终端的硬件结构框图;FIG1 shows a hardware structure block diagram of a mobile terminal for executing a method for transmitting power usage information provided in an embodiment of the present application;

图2示出了根据本申请的实施例提供的一种用电信息的传输方法的流程示意图;FIG2 is a schematic diagram showing a flow chart of a method for transmitting power consumption information according to an embodiment of the present application;

图3示出了本申请的传输系统的结构示意图;FIG3 shows a schematic diagram of the structure of the transmission system of the present application;

图4示出了传输系统的处理流程的示意图;FIG4 is a schematic diagram showing a processing flow of a transmission system;

图5示出了发送端的处理流程的示意图;FIG5 is a schematic diagram showing a processing flow at the sending end;

图6示出了接收端的处理流程的示意图;FIG6 shows a schematic diagram of the processing flow at the receiving end;

图7示出了根据本申请的实施例提供的一种用电信息的传输装置的结构框图。FIG. 7 shows a structural block diagram of a device for transmitting power usage information provided according to an embodiment of the present application.

其中,上述附图包括以下附图标记:The above drawings include the following reference numerals:

102、处理器;104、存储器;106、传输设备;108、输入输出设备;10、发送端;11、接收端;12、服务器;13、用户电表;14、北斗卫星;15、地面中心站。102. Processor; 104. Memory; 106. Transmission equipment; 108. Input and output equipment; 10. Transmitter; 11. Receiver; 12. Server; 13. User electricity meter; 14. Beidou satellite; 15. Ground center station.

具体实施方式Detailed ways

需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

正如背景技术中所介绍的,现有技术中北斗短报文的传输效率较低,为解决如上的问题,本申请的实施例提供了一种用电信息的传输方法、装置、计算机可读存储介质和传输系统。As introduced in the background technology, the transmission efficiency of Beidou short messages in the prior art is low. To solve the above problems, the embodiments of the present application provide a method, device, computer-readable storage medium and transmission system for transmitting electricity consumption information.

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.

本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是本发明实施例的一种用电信息的传输方法的移动终端的硬件结构框图。如图1所示,移动终端可以包括一个或多个(图1中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,上述移动终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述移动终端的结构造成限定。例如,移动终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, FIG1 is a hardware structure block diagram of a mobile terminal of a method for transmitting power consumption information in an embodiment of the present invention. As shown in FIG1 , the mobile terminal may include one or more (only one is shown in FIG1 ) processors 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input/output device 108 for communication functions. It can be understood by those skilled in the art that the structure shown in FIG1 is only for illustration and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than those shown in FIG1 , or have a configuration different from that shown in FIG1 .

存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本发明实施例中的设备信息的显示方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。传输设备106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括移动终端的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。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 display method of device information in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet wirelessly.

在本实施例中提供了一种运行于移动终端、计算机终端或者类似的运算装置的用电信息的传输方法,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。In this embodiment, a method for transmitting electricity usage information running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

图2是根据本申请实施例的一种用电信息的传输方法的流程示意图。如图2所示,该方法包括以下步骤:FIG2 is a flow chart of a method for transmitting power usage information according to an embodiment of the present application. As shown in FIG2 , the method includes the following steps:

步骤S201,接收发送端发送的数据包,其中,上述数据包是上述发送端根据电表数据发送的次数和更新的电表数据生成的,上述数据包的数据格式为北斗短报文;Step S201, receiving a data packet sent by a transmitting end, wherein the data packet is generated by the transmitting end according to the number of times meter data is sent and the updated meter data, and the data format of the data packet is a Beidou short message;

具体地,针对电表数据传输的稳定性及高海拔地区数据传输的可靠性,设计一种基于北斗短报文的高海拔用电信息的传输系统,如图3所示,该系统主要包括两大部分:北斗用电数据的发送端10和接收端11。上述的用电信息的传输方法的执行主体可以是接收端。Specifically, in view of the stability of meter data transmission and the reliability of data transmission in high altitude areas, a high altitude electricity consumption information transmission system based on Beidou short message is designed, as shown in Figure 3, the system mainly includes two parts: Beidou electricity consumption data sending end 10 and receiving end 11. The execution subject of the above-mentioned electricity consumption information transmission method can be the receiving end.

另外,如图3所示,该系统中还包括服务器12、用户电表13、北斗卫星14和地面中心站15,服务器和接收端通信连接,用户电表与发送端通信连接,北斗卫星分别与发送端和接收端通信连接,北斗卫星用于传输数据,地面中心站与北斗卫星通信连接,地面中心站用于控制北斗卫星运行。In addition, as shown in Figure 3, the system also includes a server 12, a user electricity meter 13, a Beidou satellite 14 and a ground center station 15. The server is communicatively connected to the receiving end, the user electricity meter is communicatively connected to the sending end, the Beidou satellite is communicatively connected to the sending end and the receiving end respectively, the Beidou satellite is used to transmit data, the ground center station is communicatively connected to the Beidou satellite, and the ground center station is used to control the operation of the Beidou satellite.

步骤S202,根据上述数据包的相关信息确定是否有上述数据包丢失,其中,上述相关信息为序号和/或结束标志位;Step S202, determining whether the data packet is lost according to the relevant information of the data packet, wherein the relevant information is a sequence number and/or an end flag;

具体地,接收端可以确定发送端发送过来的数据包是否丢失,可以是根据序号的排列来确定,还可以是根据是否检测到结束标志位来确定,或者根据这两个信息一起来确定。Specifically, the receiving end can determine whether the data packet sent by the sending end is lost, which can be determined based on the arrangement of the sequence numbers, or based on whether the end flag is detected, or based on both of these two information.

步骤S203,在有上述数据包丢失的情况下,发送第一数据响应包至上述发送端,以使得上述发送端补发丢失的数据,在没有上述数据包丢失的情况下,将上述数据包上传至服务器中。Step S203, in the case where the above-mentioned data packet is lost, sending a first data response packet to the above-mentioned sending end, so that the above-mentioned sending end resends the lost data; in the case where the above-mentioned data packet is not lost, uploading the above-mentioned data packet to the server.

具体地,发送端用于电表数据(即用电数据)的采集和发送,以及接收命令补发数据,发送端可以是集中器,或者发射机,或者其他的设备。Specifically, the sending end is used to collect and send meter data (ie, electricity consumption data), and to resend data upon receiving a command. The sending end may be a concentrator, or a transmitter, or other equipment.

具体地,接收端用于接收发送端发送的数据,并发送补发数据的命令给发送端。Specifically, the receiving end is used to receive data sent by the sending end, and send a command for resending the data to the sending end.

通过本实施例,发送端收集数据,然后发送到接收端,接收端可以判断数据的传输状态,即是否有数据丢失,如果有数据丢失,发送端就补发数据,这样可以提高传输报文的可靠性,保证数据完整,以提高数据传输效率。Through this embodiment, the sending end collects data and then sends it to the receiving end. The receiving end can determine the transmission status of the data, that is, whether there is data loss. If there is data loss, the sending end will resend the data. This can improve the reliability of the transmission message, ensure data integrity, and improve data transmission efficiency.

具体地,上述传输系统的处理流程如图4所示,发送端将采集的数据进行压缩处理,通过北斗短报文进行分包发送,接收端接收短报文信息并进行组包,将北斗协议数据转换为用电信息,组包成功上传主站。通过传输系统实现发送端与接收端的互联互通、远程抄表与控制等一系列功能。Specifically, the processing flow of the above transmission system is shown in Figure 4. The sending end compresses the collected data and sends it in packets through Beidou short messages. The receiving end receives the short message information and assembles it into packets, converts the Beidou protocol data into electricity consumption information, and successfully uploads the package to the main station. The transmission system realizes a series of functions such as interconnection between the sending end and the receiving end, remote meter reading and control, etc.

目前采用北斗短报文通信进行用电信息传输还存在问题:北斗短报文通信的单次报文长度受限,例如常用的北斗SIM卡单次报文长度为78.5Byte;北斗短报文通信频度受限,民用通信频率为60s/次;北斗通信链路具有一定的不可靠性,且没有通信回执。At present, there are still problems in using Beidou short message communication to transmit electricity consumption information: the length of a single Beidou short message communication is limited. For example, the length of a single message on a commonly used Beidou SIM card is 78.5 bytes; the frequency of Beidou short message communication is limited, and the frequency of civil communication is 60s/time; the Beidou communication link has a certain degree of unreliability, and there is no communication receipt.

具体地,针对高海拔地区采用北斗短报文进行用电信息通信存在传输报文受限、传输效率低、不可靠等问题,本申请的方案可以解决北斗卡单次报文长度及通信频度受限导致的用电信息传输效率低问题,同时提高短报文传输效率及数据可靠性。Specifically, the use of Beidou short messages for electricity consumption information communication in high-altitude areas has problems such as limited message transmission, low transmission efficiency, and unreliability. The solution of the present application can solve the problem of low electricity consumption information transmission efficiency caused by the limited single message length and communication frequency of Beidou cards, while improving the short message transmission efficiency and data reliability.

具体实现过程中,接收发送端发送的数据包,可以通过以下步骤实现:接收第一数据包,其中,上述第一数据包是上述发送端第一次发送数据时的数据包;接收第二数据包,其中,上述第二数据包是上述发送端第N次发送数据时的数据包,上述第二数据包中包括增量数据,上述增量数据为第N次的数据和第N-1次的数据的差值,N≥2。During the specific implementation process, receiving the data packet sent by the sender can be achieved through the following steps: receiving a first data packet, wherein the first data packet is a data packet when the sender sends data for the first time; receiving a second data packet, wherein the second data packet is a data packet when the sender sends data for the Nth time, and the second data packet includes incremental data, and the incremental data is the difference between the Nth data and the N-1th data, and N≥2.

该方法中,发送端可以确定是否是第一次发送数据,根据确定的结果来向接收端发送数据,接收端再接收数据,如果是第一次发送数据,那么发送端发送的就是完整的电表数据,如果是第N次发送数据,那么只需要发送增量数据就可以,这样无需发送冗余数据,可以进一步提高数据传输的效率。In this method, the sending end can determine whether it is the first time to send data, and send data to the receiving end according to the determination result. The receiving end then receives the data. If it is the first time to send data, then the sending end sends the complete meter data. If it is the Nth time to send data, then only incremental data needs to be sent. In this way, there is no need to send redundant data, which can further improve the efficiency of data transmission.

具体地,例如第一次发送电表数据是100,到第二次发送电表数据之前,电表数据变成了101,那么就生成增量数据,101-100=1,只将这个1发送到接收端即可。Specifically, for example, the meter data sent for the first time is 100, and before the meter data is sent for the second time, the meter data becomes 101, so incremental data is generated, 101-100=1, and only this 1 is sent to the receiving end.

具体实现过程中,接收发送端发送的数据包,可以通过以下步骤实现:接收多个上述数据包,其中,多个上述数据包为上述发送端发送的,上述发送端依次收集多个用户端的上述电表数据,在多个上述电表数据的长度总和小于预设长度的情况下,将多个上述电表数据写入第一待发送数据包中,直到上述第一待发送数据包中的上述电表数据的长度总和大于或者等于上述预设长度,暂停向上述第一待发送数据包中写入数据,向第二待发送数据包中写入数据,直到所有的上述用户端的所有的上述电表数据都采集完毕,在最后一个待发送数据包中写入结束标志位。In the specific implementation process, receiving a data packet sent by the sending end can be achieved through the following steps: receiving multiple data packets, wherein the multiple data packets are sent by the sending end, the sending end collects the meter data of multiple user terminals in turn, and when the total length of the multiple meter data is less than the preset length, writes the multiple meter data into the first data packet to be sent, until the total length of the meter data in the first data packet to be sent is greater than or equal to the preset length, suspends writing data into the first data packet to be sent, writes data into the second data packet to be sent, until all the meter data of all the user terminals are collected, and writes the end flag into the last data packet to be sent.

该方案中,发送端可以确定待发送数据的长度,数据的长度是小于预设长度的,那么写入第一待发送数据包中,继续读取数据,如果数据的长度依然小于预设长度,继续读取数据并一直重复该操作,直到数据的长度大于或者等于预设长度,停止向第一待发送数据包中写入数据,向第二待发送数据包中写入数据,数据长度的判断规则和第一待发送数据包的判断规则一致,如果待传输数据已经全部读取完,那么就写入结束标志位,这样可以对数据进行分包数据,避免一个数据包中数据量太多导致数据传输缓慢,从而进一步提高数据传输的效率。In this scheme, the sending end can determine the length of the data to be sent. If the length of the data is less than the preset length, it is written into the first data packet to be sent and the data is continued to be read. If the length of the data is still less than the preset length, the data is continued to be read and the operation is repeated until the length of the data is greater than or equal to the preset length. Then, writing data to the first data packet to be sent is stopped and data is written to the second data packet to be sent. The judgment rule for the data length is the same as the judgment rule for the first data packet to be sent. If all the data to be transmitted has been read, the end flag is written. In this way, the data can be packetized to avoid slow data transmission due to too much data in one data packet, thereby further improving the efficiency of data transmission.

具体地,预设长度可以是78.5Byte,或者128Byte,或者其他的长度。Specifically, the preset length may be 78.5 Bytes, or 128 Bytes, or other lengths.

具体地,采用增量数据压缩传输方法提高数据传输效率,不依赖硬件编码,具有良好的通用性和可移植性,通过读取采用的北斗卡信息进行报文发送长度和频度的自适应,具备灵活性。Specifically, the incremental data compression transmission method is used to improve data transmission efficiency, does not rely on hardware encoding, has good versatility and portability, and is flexible by reading the Beidou card information to adapt the message sending length and frequency.

具体地,发送端的数据处理流程如图5所示,包括如下步骤:Specifically, the data processing flow at the sending end is shown in FIG5 , and includes the following steps:

步骤A1:上电初始化,读取北斗SIM卡信息,判断SIM卡类别,自动根据SIM卡类型判断每次发送数据最大长度X;Step A1: Power on and initialize, read Beidou SIM card information, determine the SIM card type, and automatically determine the maximum length X of each data transmission according to the SIM card type;

步骤A2:判断串口是否接收到智能电表数据,若接收到数据则进行以下操作:Step A2: Determine whether the serial port has received the smart meter data. If so, perform the following operations:

(1)判断是否为第一次发送该电表数据,若为第一次发送,则直接传输完整电表数据,进行数据存储备份;(1) Determine whether it is the first time to send the meter data. If it is the first time to send, directly transmit the complete meter data and perform data storage backup;

(2)若不为第一次数据传输,则进行判断此时采集数据与有数据存储记录中的数据之间的增量数值,若未超过设定的阈值,则只发送电表增量数据,若超过设定阈值(阈值根据周边应用环境调整),需传输完整电表数据进行数据存储备份;(2) If it is not the first data transmission, the incremental value between the collected data and the data in the data storage record is determined. If it does not exceed the set threshold, only the meter incremental data is sent. If it exceeds the set threshold (the threshold is adjusted according to the surrounding application environment), the complete meter data needs to be transmitted for data storage backup;

(3)将需要发送的数据存入发送缓存区;(3) Storing the data to be sent into the sending buffer;

步骤A3:判断待发送数据的长度,若长度小于X,则将其直接写入发送数组(待发送数据包),继续读取下一单元,若数据长度和仍小于X,则继续写入发送数组;重复该操作,直至数据长度和大于X,停止读取;若待传输数据全部取完,写入结束标志位,进行数据分包;Step A3: Determine the length of the data to be sent. If the length is less than X, write it directly into the sending array (data packet to be sent), and continue to read the next unit. If the sum of the data length is still less than X, continue to write into the sending array; repeat this operation until the sum of the data length is greater than X, and stop reading; if all the data to be transmitted has been taken, write the end flag bit and perform data packetization;

步骤A4:进行北斗短报文通信协议封装,满足以下条件进行卫星通信数据发送操作,发送操作如下:数据长度和大于X,进行短报文发送,或者计数器到达SIM卡发送间隔,进行短报文发送。Step A4: perform Beidou short message communication protocol encapsulation, and perform satellite communication data sending operation if the following conditions are met. The sending operation is as follows: if the sum of the data length is greater than X, a short message is sent, or When the counter reaches the SIM card sending interval, a short message is sent.

为了较为准确地确定数据包是否有丢失,上述数据包有多个,上述数据包和上述序号一一对应,根据上述数据包的相关信息确定是否有上述数据包丢失,可以通过以下步骤实现:在满足所有的第一预设条件的情况下,确定没有上述数据包丢失,其中,上述第一预设条件包括:多个上述序号按照预设排序方式排序、第M个上述序号与第M-1个上述序号的第一差值等于第M个上述序号与第M+1个上述序号的第二差值、获取到上述结束标志位;在不满足任意一个上述第一预设条件的情况下,确定有上述数据包丢失。In order to more accurately determine whether a data packet is lost, there are multiple data packets, and the above-mentioned data packets correspond to the above-mentioned sequence numbers one by one. Determining whether the above-mentioned data packet is lost according to the relevant information of the above-mentioned data packet can be achieved through the following steps: when all the first preset conditions are met, determining that the above-mentioned data packet is not lost, wherein the above-mentioned first preset conditions include: multiple above-mentioned sequence numbers are sorted according to a preset sorting method, the first difference between the Mth above-mentioned sequence number and the M-1th above-mentioned sequence number is equal to the second difference between the Mth above-mentioned sequence number and the M+1th above-mentioned sequence number, and the above-mentioned end flag is obtained; when any of the above-mentioned first preset conditions is not met, determining that the above-mentioned data packet is lost.

该方案中,如果多个数据包的序号是按照从大到小或者从小到大的顺序排列,或者多个数据包之间的序号差值都是相同的,或者检测到结束标志位,那么可以确定接收到的数据包是没有丢失的,如果不满足上述任意一个条件,确定接收到的数据包是有丢失的,这样可以较为准确地确定数据包是否有丢失。In this scheme, if the sequence numbers of multiple data packets are arranged in order from large to small or from small to large, or the sequence number differences between multiple data packets are the same, or the end flag is detected, then it can be determined that the received data packet is not lost. If any of the above conditions is not met, it is determined that the received data packet is lost. In this way, it can be determined more accurately whether the data packet is lost.

具体地,一般数据包的序号按照1、2、3、4、5、6这种顺序排列,如果接收到的数据包的序号为1、2、3、6,那么确定中间丢失了4和5这两个数据包,后续补发4和5这两个数据包,如果接收到的数据包的序号为1、2、4、5、6,那么确定中间丢失了3这个数据包,后续补发3这个数据包。Specifically, the sequence numbers of general data packets are arranged in the order of 1, 2, 3, 4, 5, 6. If the sequence numbers of the received data packets are 1, 2, 3, 6, then it is determined that data packets 4 and 5 are lost in the middle, and data packets 4 and 5 are resent subsequently. If the sequence numbers of the received data packets are 1, 2, 4, 5, 6, then it is determined that data packet 3 is lost in the middle, and data packet 3 is resent subsequently.

在一些实施例上,在根据上述数据包的相关信息确定是否有上述数据包丢失之后,上述方法还包括以下步骤:确定是否满足第二预设条件,其中,上述第二预设条件包括:未接收到上述数据包的时长大于或者等于目标时长、无法正常解析上述数据包;在满足上述第二预设条件的情况下,发送第二响应数据包至上述发送端,以使得上述发送端重新发送数据。In some embodiments, after determining whether the above-mentioned data packet is lost based on the relevant information of the above-mentioned data packet, the above-mentioned method also includes the following steps: determining whether a second preset condition is met, wherein the above-mentioned second preset condition includes: the time length for which the above-mentioned data packet is not received is greater than or equal to the target time length, and the above-mentioned data packet cannot be parsed normally; if the above-mentioned second preset condition is met, sending a second response data packet to the above-mentioned sending end, so that the above-mentioned sending end resends the data.

该方案中,如果接收端一直接收不到发送端发送的数据包,并且时长达到了目标时长,或者接收端解析数据包后发现数据包有异常,解析到的文件是乱码,那么可以确定接收到的数据包是有丢失的,请求发送端重新发送数据包,如果不满足上述的条件,那么可以确定接收到的数据包是没有丢失的,这样可以较为准确地确定数据包是否有丢失,并且可以在丢失数据包的时候进行补发,这样可以进一步提高传输报文的可靠性,进一步保证数据完整,以进一步提高数据传输效率。In this scheme, if the receiving end has not received the data packet sent by the sending end and the duration has reached the target duration, or the receiving end finds that the data packet is abnormal after parsing the data packet and the parsed file is garbled, then it can be determined that the received data packet is lost, and the sending end is requested to resend the data packet. If the above conditions are not met, it can be determined that the received data packet is not lost. In this way, it can be determined more accurately whether the data packet is lost, and it can be resent when the data packet is lost. This can further improve the reliability of the transmitted message, further ensure data integrity, and further improve data transmission efficiency.

具体地,目标时长可以是1h、2h、或者1min,可以为任何可行的时长。Specifically, the target duration may be 1 hour, 2 hours, or 1 minute, and may be any feasible duration.

在一些实施例上,在根据上述数据包的相关信息确定是否有上述数据包丢失之后,上述方法还包括以下步骤:确定是否满足第三预设条件,其中,上述第三预设条件包括:未接收到上述数据包的时长大于或者等于目标时长、获取不到上述结束标志位;在满足上述第三预设条件的情况下,发送第三响应数据包至上述发送端,以使得上述发送端补发最后一个上述数据包。In some embodiments, after determining whether the above-mentioned data packet is lost based on the relevant information of the above-mentioned data packet, the above-mentioned method also includes the following steps: determining whether a third preset condition is met, wherein the above-mentioned third preset condition includes: the time length for which the above-mentioned data packet is not received is greater than or equal to the target time length, and the above-mentioned end flag cannot be obtained; if the above-mentioned third preset condition is met, sending a third response data packet to the above-mentioned sending end, so that the above-mentioned sending end resends the last data packet.

该方案中,如果接收端一直接收不到发送端发送的数据包,并且时长达到了目标时长,或者接收端检测不到结束标志位,那么可以确定接收到的数据包是有丢失的,请求发送端重新发送最后一个数据包,如果不满足上述的条件,那么可以确定接收到的数据包是没有丢失的,这样可以较为准确地确定数据包是否有丢失,并且可以在丢失数据包的时候进行补发,这样可以进一步提高传输报文的可靠性,进一步保证数据完整,以进一步提高数据传输效率。In this scheme, if the receiving end has not received the data packet sent by the sending end, and the duration has reached the target duration, or the receiving end cannot detect the end flag, then it can be determined that the received data packet is lost, and the sending end is requested to resend the last data packet. If the above conditions are not met, it can be determined that the received data packet is not lost. In this way, it can be determined more accurately whether the data packet is lost, and it can be resent when the data packet is lost. This can further improve the reliability of the transmitted message, further ensure data integrity, and further improve data transmission efficiency.

具体地,接收端接收北斗短报文消息,并按照北斗短报文数据格式解析出电文内容,接收端的数据处理流程如图6所示,包括如下步骤:Specifically, the receiving end receives the Beidou short message and parses the message content according to the Beidou short message data format. The data processing flow of the receiving end is shown in FIG6 and includes the following steps:

步骤B1:接收端接收到北斗短报文信号并解析出电文内容,并按照包头标识的数据子包序号组装;Step B1: The receiving end receives the Beidou short message signal and parses the message content, and assembles it according to the data sub-packet sequence number identified by the packet header;

步骤B2:检测到结束位,并且解析成功,完成该段数据接收,向发送端发送信息内容为0的数据响应包,表示数据包完整接收无子包丢失(完成数据接收,上传主站,主站即为服务器);Step B2: The end bit is detected and parsed successfully, the data segment is received, and a data response packet with information content of 0 is sent to the sender, indicating that the data packet is completely received without sub-packet loss (data reception is completed and uploaded to the main station, which is the server);

步骤B3:若组包失败,存在子包丢失,向发送端发送信息内容为丢失数据子包序号的数据响应包,提示发送端(即采集终端)进行丢失数据补发;Step B3: If the packet assembly fails and there is a sub-packet loss, a data response packet with the information content being the sequence number of the lost data sub-packet is sent to the sending end, prompting the sending end (i.e., the acquisition terminal) to resend the lost data;

步骤B4:若可预见的时间内无法接收到北斗短报文信号或无法正常解析出电文内容,根据编号查找下一步组包的数据包,向发送端发送信息内容为丢失数据子包序号的数据响应包,提示发送端进行丢失数据补发;Step B4: If the Beidou short message signal cannot be received within a foreseeable time or the message content cannot be parsed normally, the data packet for the next step of packetization is searched according to the number, and a data response packet with the information content of the lost data sub-packet sequence number is sent to the sender, prompting the sender to resend the lost data;

步骤B5:若可预见的时间内没有新的短报文消息且检测不到结束位,向发送端发送信息内容为-1的数据响应包,提示发送端结束位丢失,进行最后一包数据补发。Step B5: If there is no new short message within a foreseeable time and the end bit cannot be detected, a data response packet with information content of -1 is sent to the sender to prompt the sender that the end bit is lost and the last packet of data is resent.

具体地,采用不同类型的数据响应包提示发送端数据状态,指导发送端重发,提高北斗短报文传输数据的可靠性。Specifically, different types of data response packets are used to prompt the sender of data status, guide the sender to resend, and improve the reliability of Beidou short message transmission data.

在一些实施例上,在有上述数据包丢失的情况下,发送第一数据响应包至上述发送端,以使得上述发送端补发丢失的数据之后,上述方法还包括以下步骤:获取补发次数;在上述补发次数大于或者等于预设次数的情况下,确定依然有上述数据包丢失的情况下,停止向上述发送端发送上述第一数据响应包,执行下一次的收集任务,并向上述服务器上报上述发送端异常;在上述补发次数小于或者等于上述预设次数的情况下,确定上述数据包补发成功的情况下,将补发的数据和上述数据包上传至上述服务器。In some embodiments, in the event that the above-mentioned data packet is lost, after sending a first data response packet to the above-mentioned sending end so that the above-mentioned sending end resends the lost data, the above-mentioned method also includes the following steps: obtaining the number of resending times; when the above-mentioned number of resending times is greater than or equal to the preset number of times, if it is determined that the above-mentioned data packet is still lost, stopping sending the above-mentioned first data response packet to the above-mentioned sending end, executing the next collection task, and reporting the above-mentioned sending end abnormality to the above-mentioned server; when the above-mentioned number of resending times is less than or equal to the preset number of times, if it is determined that the above-mentioned data packet is resent successfully, uploading the resent data and the above-mentioned data packet to the above-mentioned server.

该方案中,在数据补发过程中,如果补发不成功,重复发送数据补发请求,获取到补发次数,该过程对多可重复预设次数,如果仍不成功,则放弃当前的传输线状态信息采集任务,继续执行下一次的任务,并上报发送端异常,如果补发成功,则将完整数据进行存储并上传至服务器,这样可以避免陷入补发死循环。In this scheme, during the data retransmission process, if the retransmission is unsuccessful, the data retransmission request is sent repeatedly to obtain the number of retransmissions. This process can be repeated for up to a preset number of times. If it is still unsuccessful, the current transmission line status information collection task is abandoned, and the next task is continued, and the sending end abnormality is reported. If the retransmission is successful, the complete data is stored and uploaded to the server, so as to avoid falling into a retransmission endless loop.

具体地,预设次数为3次,或者5次,或者其他的次数。Specifically, the preset number of times is 3 times, or 5 times, or other times.

本申请实施例还提供了一种用电信息的传输装置,需要说明的是,本申请实施例的用电信息的传输装置可以用于执行本申请实施例所提供的用于用电信息的传输方法。该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。The embodiment of the present application also provides a transmission device for power consumption information. It should be noted that the transmission device for power consumption information in the embodiment of the present application can be used to execute the transmission method for power consumption information provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

以下对本申请实施例提供的用电信息的传输装置进行介绍。The following is an introduction to the device for transmitting electricity usage information provided in an embodiment of the present application.

图7是根据本申请实施例的一种用电信息的传输装置的结构框图。如图7所示,该装置包括:FIG7 is a block diagram of a device for transmitting power usage information according to an embodiment of the present application. As shown in FIG7 , the device includes:

接收单元100,用于接收发送端发送的数据包,其中,上述数据包是上述发送端根据电表数据发送的次数和更新的电表数据生成的,上述数据包的数据格式为北斗短报文;The receiving unit 100 is used to receive a data packet sent by a transmitting end, wherein the data packet is generated by the transmitting end according to the number of times the meter data is sent and the updated meter data, and the data format of the data packet is a Beidou short message;

具体地,针对电表数据传输的稳定性及高海拔地区数据传输的可靠性,设计一种基于北斗短报文的高海拔用电信息的传输系统,如图3所示,该系统主要包括两大部分:北斗用电数据的发送端10和接收端11。上述的用电信息的传输方法的执行主体可以是接收端。Specifically, in view of the stability of meter data transmission and the reliability of data transmission in high altitude areas, a high altitude electricity consumption information transmission system based on Beidou short message is designed, as shown in Figure 3, the system mainly includes two parts: Beidou electricity consumption data sending end 10 and receiving end 11. The execution subject of the above-mentioned electricity consumption information transmission method can be the receiving end.

另外,如图3所示,该系统中还包括服务器12、用户电表13、北斗卫星14和地面中心站15,服务器和接收端通信连接,用户电表与发送端通信连接,北斗卫星分别与发送端和接收端通信连接,北斗卫星用于传输数据,地面中心站与北斗卫星通信连接,地面中心站用于控制北斗卫星运行。In addition, as shown in Figure 3, the system also includes a server 12, a user electricity meter 13, a Beidou satellite 14 and a ground center station 15. The server is communicatively connected to the receiving end, the user electricity meter is communicatively connected to the sending end, the Beidou satellite is communicatively connected to the sending end and the receiving end respectively, the Beidou satellite is used to transmit data, the ground center station is communicatively connected to the Beidou satellite, and the ground center station is used to control the operation of the Beidou satellite.

第一确定单元200,用于根据上述数据包的相关信息确定是否有上述数据包丢失,其中,上述相关信息为序号和/或结束标志位;A first determining unit 200 is used to determine whether the above-mentioned data packet is lost according to the relevant information of the above-mentioned data packet, wherein the above-mentioned relevant information is a sequence number and/or an end flag;

具体地,接收端可以确定发送端发送过来的数据包是否丢失,可以是根据序号的排列来确定,还可以是根据是否检测到结束标志位来确定,或者根据这两个信息一起来确定。Specifically, the receiving end can determine whether the data packet sent by the sending end is lost, which can be determined based on the arrangement of the sequence numbers, or based on whether the end flag is detected, or based on both of these two information.

第一处理单元300,用于在有上述数据包丢失的情况下,发送第一数据响应包至上述发送端,以使得上述发送端补发丢失的数据,在没有上述数据包丢失的情况下,将上述数据包上传至服务器中。The first processing unit 300 is used to send a first data response packet to the above-mentioned sending end in the case where the above-mentioned data packet is lost, so that the above-mentioned sending end resends the lost data, and upload the above-mentioned data packet to the server in the case where the above-mentioned data packet is not lost.

具体地,发送端用于电表数据(即用电数据)的采集和发送,以及接收命令补发数据,发送端可以是集中器,或者发射机,或者其他的设备。Specifically, the sending end is used to collect and send meter data (ie, electricity consumption data), and to resend data upon receiving a command. The sending end may be a concentrator, or a transmitter, or other equipment.

具体地,接收端用于接收发送端发送的数据,并发送补发数据的命令给发送端。Specifically, the receiving end is used to receive data sent by the sending end, and send a command for resending the data to the sending end.

通过本实施例,发送端收集数据,然后发送到接收端,接收端可以判断数据的传输状态,即是否有数据丢失,如果有数据丢失,发送端就补发数据,这样可以提高传输报文的可靠性,保证数据完整,以提高数据传输效率。Through this embodiment, the sending end collects data and then sends it to the receiving end. The receiving end can determine the transmission status of the data, that is, whether there is data loss. If there is data loss, the sending end will resend the data. This can improve the reliability of the transmission message, ensure data integrity, and improve data transmission efficiency.

具体地,上述传输系统的处理流程如图4所示,发送端将采集的数据进行压缩处理,通过北斗短报文进行分包发送,接收端接收短报文信息并进行组包,将北斗协议数据转换为用电信息,组包成功上传主站。通过传输系统实现发送端与接收端的互联互通、远程抄表与控制等一系列功能。Specifically, the processing flow of the above transmission system is shown in Figure 4. The sending end compresses the collected data and sends it in packets through Beidou short messages. The receiving end receives the short message information and assembles it into packets, converts the Beidou protocol data into electricity consumption information, and successfully uploads the package to the main station. The transmission system realizes a series of functions such as interconnection between the sending end and the receiving end, remote meter reading and control, etc.

目前采用北斗短报文通信进行用电信息传输还存在问题:北斗短报文通信的单次报文长度受限,例如常用的北斗SIM卡单次报文长度为78.5Byte;北斗短报文通信频度受限,民用通信频率为60s/次;北斗通信链路具有一定的不可靠性,且没有通信回执。At present, there are still problems in using Beidou short message communication to transmit electricity consumption information: the length of a single Beidou short message communication is limited. For example, the length of a single message on a commonly used Beidou SIM card is 78.5 bytes; the frequency of Beidou short message communication is limited, and the frequency of civil communication is 60s/time; the Beidou communication link has a certain degree of unreliability, and there is no communication receipt.

具体地,针对高海拔地区采用北斗短报文进行用电信息通信存在传输报文受限、传输效率低、不可靠等问题,本申请的方案可以解决北斗卡单次报文长度及通信频度受限导致的用电信息传输效率低问题,同时提高短报文传输效率及数据可靠性。Specifically, the use of Beidou short messages for electricity consumption information communication in high-altitude areas has problems such as limited message transmission, low transmission efficiency, and unreliability. The solution of the present application can solve the problem of low electricity consumption information transmission efficiency caused by the limited single message length and communication frequency of Beidou cards, while improving the short message transmission efficiency and data reliability.

具体实现过程中,接收单元包括第一接收模块和第二接收模块,第一接收模块用于接收第一数据包,其中,上述第一数据包是上述发送端第一次发送数据时的数据包;第二接收模块用于接收第二数据包,其中,上述第二数据包是上述发送端第N次发送数据时的数据包,上述第二数据包中包括增量数据,上述增量数据为第N次的数据和第N-1次的数据的差值,N≥2。During the specific implementation process, the receiving unit includes a first receiving module and a second receiving module, the first receiving module is used to receive a first data packet, wherein the first data packet is a data packet when the sending end sends data for the first time; the second receiving module is used to receive a second data packet, wherein the second data packet is a data packet when the sending end sends data for the Nth time, and the second data packet includes incremental data, and the incremental data is the difference between the Nth data and the N-1th data, and N≥2.

该方法中,发送端可以确定是否是第一次发送数据,根据确定的结果来向接收端发送数据,接收端再接收数据,如果是第一次发送数据,那么发送端发送的就是完整的电表数据,如果是第N次发送数据,那么只需要发送增量数据就可以,这样无需发送冗余数据,可以进一步提高数据传输的效率。In this method, the sending end can determine whether it is the first time to send data, and send data to the receiving end according to the determination result. The receiving end then receives the data. If it is the first time to send data, then the sending end sends the complete meter data. If it is the Nth time to send data, then only incremental data needs to be sent. In this way, there is no need to send redundant data, which can further improve the efficiency of data transmission.

具体地,例如第一次发送电表数据是100,到第二次发送电表数据之前,电表数据变成了101,那么就生成增量数据,101-100=1,只将这个1发送到接收端即可。Specifically, for example, the meter data sent for the first time is 100, and before the meter data is sent for the second time, the meter data becomes 101, so incremental data is generated, 101-100=1, and only this 1 is sent to the receiving end.

具体实现过程中,接收单元包括第三接收模块,第三接收模块用于接收多个上述数据包,其中,多个上述数据包为上述发送端发送的,上述发送端依次收集多个用户端的上述电表数据,在多个上述电表数据的长度总和小于预设长度的情况下,将多个上述电表数据写入第一待发送数据包中,直到上述第一待发送数据包中的上述电表数据的长度总和大于或者等于上述预设长度,暂停向上述第一待发送数据包中写入数据,向第二待发送数据包中写入数据,直到所有的上述用户端的所有的上述电表数据都采集完毕,在最后一个待发送数据包中写入结束标志位。During the specific implementation process, the receiving unit includes a third receiving module, which is used to receive the multiple data packets mentioned above, wherein the multiple data packets are sent by the above-mentioned sending end, and the above-mentioned sending end collects the above-mentioned meter data of multiple user terminals in turn. When the total length of the multiple meter data is less than the preset length, the multiple meter data are written into the first data packet to be sent until the total length of the meter data in the first data packet to be sent is greater than or equal to the preset length, and then the writing of data into the first data packet to be sent is suspended, and the data is written into the second data packet to be sent until all the above-mentioned meter data of all the above-mentioned user terminals are collected, and the end flag is written into the last data packet to be sent.

该方案中,发送端可以确定待发送数据的长度,数据的长度是小于预设长度的,那么写入第一待发送数据包中,继续读取数据,如果数据的长度依然小于预设长度,继续读取数据并一直重复该操作,直到数据的长度大于或者等于预设长度,停止向第一待发送数据包中写入数据,向第二待发送数据包中写入数据,数据长度的判断规则和第一待发送数据包的判断规则一致,如果待传输数据已经全部读取完,那么就写入结束标志位,这样可以对数据进行分包数据,避免一个数据包中数据量太多导致数据传输缓慢,从而进一步提高数据传输的效率。In this scheme, the sending end can determine the length of the data to be sent. If the length of the data is less than the preset length, it is written into the first data packet to be sent and the data is continued to be read. If the length of the data is still less than the preset length, the data is continued to be read and the operation is repeated until the length of the data is greater than or equal to the preset length. Then, writing data to the first data packet to be sent is stopped and data is written to the second data packet to be sent. The judgment rule for the data length is the same as the judgment rule for the first data packet to be sent. If all the data to be transmitted has been read, the end flag is written. In this way, the data can be packetized to avoid slow data transmission due to too much data in one data packet, thereby further improving the efficiency of data transmission.

具体地,预设长度可以是78.5Byte,或者128Byte,或者其他的长度。Specifically, the preset length may be 78.5 Bytes, or 128 Bytes, or other lengths.

具体地,采用增量数据压缩传输方法提高数据传输效率,不依赖硬件编码,具有良好的通用性和可移植性,通过读取采用的北斗卡信息进行报文发送长度和频度的自适应,具备灵活性。Specifically, the incremental data compression transmission method is used to improve data transmission efficiency, does not rely on hardware encoding, has good versatility and portability, and is flexible by reading the Beidou card information to adapt the message sending length and frequency.

具体地,发送端的数据处理流程如图5所示,包括如下步骤:Specifically, the data processing flow at the sending end is shown in FIG5 , and includes the following steps:

步骤A1:上电初始化,读取北斗SIM卡信息,判断SIM卡类别,自动根据SIM卡类型判断每次发送数据最大长度X;Step A1: Power on and initialize, read Beidou SIM card information, determine the SIM card type, and automatically determine the maximum length X of each data transmission according to the SIM card type;

步骤A2:判断串口是否接收到智能电表数据,若接收到数据则进行以下操作:Step A2: Determine whether the serial port has received the smart meter data. If so, perform the following operations:

(1)判断是否为第一次发送该电表数据,若为第一次发送,则直接传输完整电表数据,进行数据存储备份;(1) Determine whether it is the first time to send the meter data. If it is the first time to send, directly transmit the complete meter data and perform data storage backup;

(2)若不为第一次数据传输,则进行判断此时采集数据与有数据存储记录中的数据之间的增量数值,若未超过设定的阈值,则只发送电表增量数据,若超过设定阈值(阈值根据周边应用环境调整),需传输完整电表数据进行数据存储备份;(2) If it is not the first data transmission, the incremental value between the collected data and the data in the data storage record is determined. If it does not exceed the set threshold, only the meter incremental data is sent. If it exceeds the set threshold (the threshold is adjusted according to the surrounding application environment), the complete meter data needs to be transmitted for data storage backup;

(3)将需要发送的数据存入发送缓存区;(3) Storing the data to be sent into the sending buffer;

步骤A3:判断待发送数据的长度,若长度小于X,则将其直接写入发送数组(待发送数据包),继续读取下一单元,若数据长度和仍小于X,则继续写入发送数组;重复该操作,直至数据长度和大于X,停止读取;若待传输数据全部取完,写入结束标志位,进行数据分包;Step A3: Determine the length of the data to be sent. If the length is less than X, write it directly into the sending array (data packet to be sent), and continue to read the next unit. If the sum of the data length is still less than X, continue to write into the sending array; repeat this operation until the sum of the data length is greater than X, and stop reading; if all the data to be transmitted has been taken, write the end flag bit and perform data packetization;

步骤A4:进行北斗短报文通信协议封装,满足以下条件进行卫星通信数据发送操作,发送操作如下:数据长度和大于X,进行短报文发送,或者计数器到达SIM卡发送间隔,进行短报文发送。Step A4: perform Beidou short message communication protocol encapsulation, and perform satellite communication data sending operation if the following conditions are met. The sending operation is as follows: if the sum of the data length is greater than X, a short message is sent, or When the counter reaches the SIM card sending interval, a short message is sent.

为了较为准确地确定数据包是否有丢失,上述数据包有多个,上述数据包和上述序号一一对应,第一确定单元包括第一确定模块和第二确定模块,第一确定模块用于在满足所有的第一预设条件的情况下,确定没有上述数据包丢失,其中,上述第一预设条件包括:多个上述序号按照预设排序方式排序、第M个上述序号与第M-1个上述序号的第一差值等于第M个上述序号与第M+1个上述序号的第二差值、获取到上述结束标志位;第二确定模块用于在不满足任意一个上述第一预设条件的情况下,确定有上述数据包丢失。In order to more accurately determine whether a data packet is lost, there are multiple data packets, and the data packets correspond to the sequence numbers one by one. The first determination unit includes a first determination module and a second determination module. The first determination module is used to determine that the above-mentioned data packet is not lost when all first preset conditions are met, wherein the above-mentioned first preset conditions include: multiple sequence numbers are sorted according to a preset sorting method, the first difference between the Mth sequence number and the M-1th sequence number is equal to the second difference between the Mth sequence number and the M+1th sequence number, and the above-mentioned end flag is obtained; the second determination module is used to determine that the above-mentioned data packet is lost when any of the above-mentioned first preset conditions are not met.

该方案中,如果多个数据包的序号是按照从大到小或者从小到大的顺序排列,或者多个数据包之间的序号差值都是相同的,或者检测到结束标志位,那么可以确定接收到的数据包是没有丢失的,如果不满足上述任意一个条件,确定接收到的数据包是有丢失的,这样可以较为准确地确定数据包是否有丢失。In this scheme, if the sequence numbers of multiple data packets are arranged in order from large to small or from small to large, or the sequence number differences between multiple data packets are the same, or the end flag is detected, then it can be determined that the received data packet is not lost. If any of the above conditions is not met, it is determined that the received data packet is lost. In this way, it can be determined more accurately whether the data packet is lost.

具体地,一般数据包的序号按照1、2、3、4、5、6这种顺序排列,如果接收到的数据包的序号为1、2、3、6,那么确定中间丢失了4和5这两个数据包,后续补发4和5这两个数据包,如果接收到的数据包的序号为1、2、4、5、6,那么确定中间丢失了3这个数据包,后续补发3这个数据包。Specifically, the sequence numbers of general data packets are arranged in the order of 1, 2, 3, 4, 5, 6. If the sequence numbers of the received data packets are 1, 2, 3, 6, then it is determined that data packets 4 and 5 are lost in the middle, and data packets 4 and 5 are resent subsequently. If the sequence numbers of the received data packets are 1, 2, 4, 5, 6, then it is determined that data packet 3 is lost in the middle, and data packet 3 is resent subsequently.

在一些实施例上,上述装置还包括第二确定单元和第二处理单元,第二确定单元用于在根据上述数据包的相关信息确定是否有上述数据包丢失之后,确定是否满足第二预设条件,其中,上述第二预设条件包括:未接收到上述数据包的时长大于或者等于目标时长、无法正常解析上述数据包;第二处理单元用于在满足上述第二预设条件的情况下,发送第二响应数据包至上述发送端,以使得上述发送端重新发送数据。In some embodiments, the above-mentioned device also includes a second determination unit and a second processing unit, and the second determination unit is used to determine whether a second preset condition is met after determining whether the above-mentioned data packet is lost based on relevant information of the above-mentioned data packet, wherein the above-mentioned second preset condition includes: the time length for which the above-mentioned data packet is not received is greater than or equal to the target time length, and the above-mentioned data packet cannot be parsed normally; the second processing unit is used to send a second response data packet to the above-mentioned sending end when the above-mentioned second preset condition is met, so that the above-mentioned sending end resends the data.

该方案中,如果接收端一直接收不到发送端发送的数据包,并且时长达到了目标时长,或者接收端解析数据包后发现数据包有异常,解析到的文件是乱码,那么可以确定接收到的数据包是有丢失的,请求发送端重新发送数据包,如果不满足上述的条件,那么可以确定接收到的数据包是没有丢失的,这样可以较为准确地确定数据包是否有丢失,并且可以在丢失数据包的时候进行补发,这样可以进一步提高传输报文的可靠性,进一步保证数据完整,以进一步提高数据传输效率。In this scheme, if the receiving end has not received the data packet sent by the sending end and the duration has reached the target duration, or the receiving end finds that the data packet is abnormal after parsing the data packet and the parsed file is garbled, then it can be determined that the received data packet is lost, and the sending end is requested to resend the data packet. If the above conditions are not met, it can be determined that the received data packet is not lost. In this way, it can be determined more accurately whether the data packet is lost, and it can be resent when the data packet is lost. This can further improve the reliability of the transmitted message, further ensure data integrity, and further improve data transmission efficiency.

具体地,目标时长可以是1h、2h、或者1min,可以为任何可行的时长。Specifically, the target duration may be 1 hour, 2 hours, or 1 minute, and may be any feasible duration.

在一些实施例上,上述装置还包括第三确定单元和第三处理单元,第三确定单元用于在根据上述数据包的相关信息确定是否有上述数据包丢失之后,确定是否满足第三预设条件,其中,上述第三预设条件包括:未接收到上述数据包的时长大于或者等于目标时长、获取不到上述结束标志位;第三处理单元用于在满足上述第三预设条件的情况下,发送第三响应数据包至上述发送端,以使得上述发送端补发最后一个上述数据包。In some embodiments, the above-mentioned device also includes a third determination unit and a third processing unit, and the third determination unit is used to determine whether a third preset condition is met after determining whether the above-mentioned data packet is lost based on the relevant information of the above-mentioned data packet, wherein the above-mentioned third preset condition includes: the time length for not receiving the above-mentioned data packet is greater than or equal to the target time length, and the above-mentioned end flag bit cannot be obtained; the third processing unit is used to send a third response data packet to the above-mentioned sending end when the above-mentioned third preset condition is met, so that the above-mentioned sending end resends the last data packet.

该方案中,如果接收端一直接收不到发送端发送的数据包,并且时长达到了目标时长,或者接收端检测不到结束标志位,那么可以确定接收到的数据包是有丢失的,请求发送端重新发送最后一个数据包,如果不满足上述的条件,那么可以确定接收到的数据包是没有丢失的,这样可以较为准确地确定数据包是否有丢失,并且可以在丢失数据包的时候进行补发,这样可以进一步提高传输报文的可靠性,进一步保证数据完整,以进一步提高数据传输效率。In this scheme, if the receiving end has not received the data packet sent by the sending end, and the duration has reached the target duration, or the receiving end cannot detect the end flag, then it can be determined that the received data packet is lost, and the sending end is requested to resend the last data packet. If the above conditions are not met, it can be determined that the received data packet is not lost. In this way, it can be determined more accurately whether the data packet is lost, and it can be resent when the data packet is lost. This can further improve the reliability of the transmitted message, further ensure data integrity, and further improve data transmission efficiency.

具体地,接收端接收北斗短报文消息,并按照北斗短报文数据格式解析出电文内容,接收端的数据处理流程如图6所示,包括如下步骤:Specifically, the receiving end receives the Beidou short message and parses the message content according to the Beidou short message data format. The data processing flow of the receiving end is shown in Figure 6, including the following steps:

步骤B1:接收端接收到北斗短报文信号并解析出电文内容,并按照包头标识的数据子包序号组装;Step B1: The receiving end receives the Beidou short message signal and parses the message content, and assembles it according to the data sub-packet sequence number identified by the packet header;

步骤B2:检测到结束位,并且解析成功,完成该段数据接收,向发送端发送信息内容为0的数据响应包,表示数据包完整接收无子包丢失(完成数据接收,上传主站,主站即为服务器);Step B2: The end bit is detected and parsed successfully, the data segment is received, and a data response packet with information content of 0 is sent to the sender, indicating that the data packet is completely received without sub-packet loss (data reception is completed and uploaded to the main station, which is the server);

步骤B3:若组包失败,存在子包丢失,向发送端发送信息内容为丢失数据子包序号的数据响应包,提示发送端(即采集终端)进行丢失数据补发;Step B3: If the packet assembly fails and there is a sub-packet loss, a data response packet with the information content being the sequence number of the lost data sub-packet is sent to the sending end, prompting the sending end (i.e., the acquisition terminal) to resend the lost data;

步骤B4:若可预见的时间内无法接收到北斗短报文信号或无法正常解析出电文内容,根据编号查找下一步组包的数据包,向发送端发送信息内容为丢失数据子包序号的数据响应包,提示发送端进行丢失数据补发;Step B4: If the Beidou short message signal cannot be received within a foreseeable time or the message content cannot be parsed normally, the data packet for the next step of packetization is searched according to the number, and a data response packet with the information content of the lost data sub-packet sequence number is sent to the sender, prompting the sender to resend the lost data;

步骤B5:若可预见的时间内没有新的短报文消息且检测不到结束位,向发送端发送信息内容为-1的数据响应包,提示发送端结束位丢失,进行最后一包数据补发。Step B5: If there is no new short message within a foreseeable time and the end bit cannot be detected, a data response packet with information content of -1 is sent to the sender to prompt the sender that the end bit is lost and the last packet of data is resent.

具体地,采用不同类型的数据响应包提示发送端数据状态,指导发送端重发,提高北斗短报文传输数据的可靠性。Specifically, different types of data response packets are used to prompt the sender of data status, guide the sender to resend, and improve the reliability of Beidou short message transmission data.

在一些实施例上,上述装置还包括获取单元、第四确定单元和第四处理单元,获取单元用于在有上述数据包丢失的情况下,发送第一数据响应包至上述发送端,以使得上述发送端补发丢失的数据之后,获取补发次数;第四确定单元用于在上述补发次数大于或者等于预设次数的情况下,确定依然有上述数据包丢失的情况下,停止向上述发送端发送上述第一数据响应包,执行下一次的收集任务,并向上述服务器上报上述发送端异常;第四处理单元用于在上述补发次数小于或者等于上述预设次数的情况下,确定上述数据包补发成功的情况下,将补发的数据和上述数据包上传至上述服务器。In some embodiments, the above-mentioned device also includes an acquisition unit, a fourth determination unit and a fourth processing unit. The acquisition unit is used to send a first data response packet to the above-mentioned sending end in the event that the above-mentioned data packet is lost, so that the above-mentioned sending end obtains the number of retransmissions after retransmitting the lost data; the fourth determination unit is used to stop sending the above-mentioned first data response packet to the above-mentioned sending end when the above-mentioned number of retransmissions is greater than or equal to the preset number of times and it is determined that the above-mentioned data packet is still lost, execute the next collection task, and report the above-mentioned sending end abnormality to the above-mentioned server; the fourth processing unit is used to upload the retransmitted data and the above-mentioned data packet to the above-mentioned server when the above-mentioned number of retransmissions is less than or equal to the preset number of times and it is determined that the above-mentioned data packet is successfully retransmitted.

该方案中,在数据补发过程中,如果补发不成功,重复发送数据补发请求,获取到补发次数,该过程对多可重复预设次数,如果仍不成功,则放弃当前的传输线状态信息采集任务,继续执行下一次的任务,并上报发送端异常,如果补发成功,则将完整数据进行存储并上传至服务器,这样可以避免陷入补发死循环。In this scheme, during the data retransmission process, if the retransmission is unsuccessful, the data retransmission request is sent repeatedly to obtain the number of retransmissions. This process can be repeated for up to a preset number of times. If it is still unsuccessful, the current transmission line status information collection task is abandoned, and the next task is continued, and the sending end abnormality is reported. If the retransmission is successful, the complete data is stored and uploaded to the server, so as to avoid falling into a retransmission endless loop.

具体地,预设次数为3次,或者5次,或者其他的次数。Specifically, the preset number of times is 3 times, or 5 times, or other times.

上述用电信息的传输装置包括处理器和存储器,上述接收单元、第一确定单元和第一处理单元等均作为程序单元存储在存储器中,由处理器执行存储在存储器中的上述程序单元来实现相应的功能。上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。The above-mentioned power consumption information transmission device includes a processor and a memory, and the above-mentioned receiving unit, the first determination unit and the first processing unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.

处理器中包含内核,由内核去存储器中调取相应的程序单元。内核可以设置一个或以上,通过调整内核参数来现有技术中北斗短报文的传输效率较低的问题。The processor includes a kernel, and the kernel calls the corresponding program unit from the memory. One or more kernels can be set, and the problem of low transmission efficiency of Beidou short messages in the prior art can be solved by adjusting kernel parameters.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM),存储器包括至少一个存储芯片。The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

本发明实施例提供了一种计算机可读存储介质,上述计算机可读存储介质包括存储的程序,其中,在上述程序运行时控制上述计算机可读存储介质所在设备执行上述用电信息的传输方法。An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method for transmitting electricity usage information.

具体地,用电信息的传输方法包括:Specifically, the method for transmitting the electricity usage information includes:

步骤S201,接收发送端发送的数据包,其中,上述数据包是上述发送端根据电表数据发送的次数和更新的电表数据生成的,上述数据包的数据格式为北斗短报文;Step S201, receiving a data packet sent by a transmitting end, wherein the data packet is generated by the transmitting end according to the number of times meter data is sent and the updated meter data, and the data format of the data packet is a Beidou short message;

步骤S202,根据上述数据包的相关信息确定是否有上述数据包丢失,其中,上述相关信息为序号和/或结束标志位;Step S202, determining whether the data packet is lost according to the relevant information of the data packet, wherein the relevant information is a sequence number and/or an end flag;

步骤S203,在有上述数据包丢失的情况下,发送第一数据响应包至上述发送端,以使得上述发送端补发丢失的数据,在没有上述数据包丢失的情况下,将上述数据包上传至服务器中。Step S203, in the case where the above-mentioned data packet is lost, sending a first data response packet to the above-mentioned sending end, so that the above-mentioned sending end resends the lost data; in the case where the above-mentioned data packet is not lost, uploading the above-mentioned data packet to the server.

本发明实施例提供了一种处理器,上述处理器用于运行程序,其中,上述程序运行时执行上述用电信息的传输方法。An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the method for transmitting power usage information is executed when the program is running.

具体地,用电信息的传输方法包括:Specifically, the method for transmitting the electricity usage information includes:

步骤S201,接收发送端发送的数据包,其中,上述数据包是上述发送端根据电表数据发送的次数和更新的电表数据生成的,上述数据包的数据格式为北斗短报文;Step S201, receiving a data packet sent by a transmitting end, wherein the data packet is generated by the transmitting end according to the number of times meter data is sent and the updated meter data, and the data format of the data packet is a Beidou short message;

步骤S202,根据上述数据包的相关信息确定是否有上述数据包丢失,其中,上述相关信息为序号和/或结束标志位;Step S202, determining whether the data packet is lost according to the relevant information of the data packet, wherein the relevant information is a sequence number and/or an end flag;

步骤S203,在有上述数据包丢失的情况下,发送第一数据响应包至上述发送端,以使得上述发送端补发丢失的数据,在没有上述数据包丢失的情况下,将上述数据包上传至服务器中。Step S203, in the case where the above-mentioned data packet is lost, sending a first data response packet to the above-mentioned sending end, so that the above-mentioned sending end resends the lost data; in the case where the above-mentioned data packet is not lost, uploading the above-mentioned data packet to the server.

本申请还提供了一种传输系统,包括发送端和接收端,上述发送端和上述接收端通信连接,上述接收端用于执行任意一种上述用电信息的传输方法。The present application also provides a transmission system, including a transmitting end and a receiving end, wherein the transmitting end and the receiving end are communicatively connected, and the receiving end is used to execute any one of the above-mentioned methods for transmitting electricity usage information.

具体地,用电信息的传输方法包括:Specifically, the method for transmitting the electricity usage information includes:

步骤S201,接收发送端发送的数据包,其中,上述数据包是上述发送端根据电表数据发送的次数和更新的电表数据生成的,上述数据包的数据格式为北斗短报文;Step S201, receiving a data packet sent by a transmitting end, wherein the data packet is generated by the transmitting end according to the number of times meter data is sent and the updated meter data, and the data format of the data packet is a Beidou short message;

步骤S202,根据上述数据包的相关信息确定是否有上述数据包丢失,其中,上述相关信息为序号和/或结束标志位;Step S202, determining whether the data packet is lost according to the relevant information of the data packet, wherein the relevant information is a sequence number and/or an end flag;

步骤S203,在有上述数据包丢失的情况下,发送第一数据响应包至上述发送端,以使得上述发送端补发丢失的数据,在没有上述数据包丢失的情况下,将上述数据包上传至服务器中。Step S203, in the case where the above-mentioned data packet is lost, sending a first data response packet to the above-mentioned sending end, so that the above-mentioned sending end resends the lost data; in the case where the above-mentioned data packet is not lost, uploading the above-mentioned data packet to the server.

本发明实施例提供了一种设备,设备包括处理器、存储器及存储在存储器上并可在处理器上运行的程序,处理器执行程序时实现至少以下步骤:An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:

步骤S201,接收发送端发送的数据包,其中,上述数据包是上述发送端根据电表数据发送的次数和更新的电表数据生成的,上述数据包的数据格式为北斗短报文;Step S201, receiving a data packet sent by a transmitting end, wherein the data packet is generated by the transmitting end according to the number of times meter data is sent and the updated meter data, and the data format of the data packet is a Beidou short message;

步骤S202,根据上述数据包的相关信息确定是否有上述数据包丢失,其中,上述相关信息为序号和/或结束标志位;Step S202, determining whether the data packet is lost according to the relevant information of the data packet, wherein the relevant information is a sequence number and/or an end flag;

步骤S203,在有上述数据包丢失的情况下,发送第一数据响应包至上述发送端,以使得上述发送端补发丢失的数据,在没有上述数据包丢失的情况下,将上述数据包上传至服务器中。Step S203, in the case where the above-mentioned data packet is lost, sending a first data response packet to the above-mentioned sending end, so that the above-mentioned sending end resends the lost data; in the case where the above-mentioned data packet is not lost, uploading the above-mentioned data packet to the server.

本文中的设备可以是服务器、PC、PAD、手机等。The devices in this article can be servers, PCs, PADs, mobile phones, etc.

本申请还提供了一种计算机程序产品,当在数据处理设备上执行时,适于执行初始化有至少如下方法步骤的程序:The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:

步骤S201,接收发送端发送的数据包,其中,上述数据包是上述发送端根据电表数据发送的次数和更新的电表数据生成的,上述数据包的数据格式为北斗短报文;Step S201, receiving a data packet sent by a transmitting end, wherein the data packet is generated by the transmitting end according to the number of times meter data is sent and the updated meter data, and the data format of the data packet is a Beidou short message;

步骤S202,根据上述数据包的相关信息确定是否有上述数据包丢失,其中,上述相关信息为序号和/或结束标志位;Step S202, determining whether the data packet is lost according to the relevant information of the data packet, wherein the relevant information is a sequence number and/or an end flag;

步骤S203,在有上述数据包丢失的情况下,发送第一数据响应包至上述发送端,以使得上述发送端补发丢失的数据,在没有上述数据包丢失的情况下,将上述数据包上传至服务器中。Step S203, in the case where the above-mentioned data packet is lost, sending a first data response packet to the above-mentioned sending end, so that the above-mentioned sending end resends the lost data; in the case where the above-mentioned data packet is not lost, uploading the above-mentioned data packet to the server.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowchart and/or block diagram of the method, device (system) and computer program product according to the embodiment of the present application. It should be understood that each process and/or box in the flowchart and/or block diagram, and the combination of the process and/or box in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for realizing the function specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.

存储器可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。存储器是计算机可读介质的示例。The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

从以上的描述中,可以看出,本申请上述的实施例实现了如下技术效果:From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:

1)、本申请的用电信息的传输方法,发送端收集数据,然后发送到接收端,接收端可以判断数据的传输状态,即是否有数据丢失,如果有数据丢失,发送端就补发数据,这样可以提高传输报文的可靠性,保证数据完整,以提高数据传输效率。1) In the method for transmitting electricity consumption information of the present application, the sending end collects data and then sends it to the receiving end. The receiving end can determine the transmission status of the data, that is, whether there is data loss. If there is data loss, the sending end resends the data, which can improve the reliability of the transmission message and ensure data integrity, so as to improve data transmission efficiency.

2)、本申请的用电信息的传输装置,发送端收集数据,然后发送到接收端,接收端可以判断数据的传输状态,即是否有数据丢失,如果有数据丢失,发送端就补发数据,这样可以提高传输报文的可靠性,保证数据完整,以提高数据传输效率。2) In the power consumption information transmission device of the present application, the sending end collects data and then sends it to the receiving end. The receiving end can determine the transmission status of the data, that is, whether there is data loss. If there is data loss, the sending end resends the data. This can improve the reliability of the transmission message, ensure data integrity, and improve data transmission efficiency.

以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A transmission method of electricity information, comprising:
Receiving a data packet sent by a sending end, wherein the data packet is generated by the sending end according to the number of times of ammeter data sending and updated ammeter data, and the data format of the data packet is a Beidou short message;
determining whether the data packet is lost or not according to the related information of the data packet, wherein the related information is a sequence number and/or an end zone bit;
And under the condition that the data packet is lost, a first data response packet is sent to the sending end, so that the sending end reissues the lost data, and under the condition that the data packet is not lost, the data packet is uploaded to a server.
2. The method of claim 1, wherein receiving the data packet sent by the sender comprises:
Receiving a first data packet, wherein the first data packet is a data packet when the transmitting end transmits data for the first time;
And receiving a second data packet, wherein the second data packet is a data packet when the transmitting end transmits data for the nth time, the second data packet comprises incremental data, and the incremental data is the difference value between the data of the nth time and the data of the (N-1) th time, and N is more than or equal to 2.
3. The method of claim 1, wherein receiving the data packet sent by the sender comprises:
Receiving a plurality of data packets, wherein the data packets are sent by the sending end, the sending end sequentially collects the ammeter data of a plurality of user ends, writes the ammeter data into a first data packet to be sent under the condition that the sum of the lengths of the ammeter data is smaller than a preset length, pauses writing data into the first data packet to be sent until the sum of the lengths of the ammeter data in the first data packet to be sent is larger than or equal to the preset length, writes data into a second data packet to be sent until all ammeter data of all the user ends are collected, and writes an ending mark bit into the last data packet to be sent.
4. The method of claim 1, wherein the number of the data packets is plural, the data packets and the sequence numbers are in one-to-one correspondence, and determining whether the data packets are lost based on the related information of the data packets comprises:
And under the condition that all first preset conditions are met, determining that no data packet is lost, wherein the first preset conditions comprise: the sequence numbers are ordered according to a preset ordering mode, the first difference value between the Mth sequence number and the Mth-1 sequence number is equal to the second difference value between the Mth sequence number and the Mth+1th sequence number, and the ending zone bit is obtained;
And under the condition that any one of the first preset conditions is not met, determining that the data packet is lost.
5. The method of claim 1, wherein after determining whether the data packet is lost based on the information related to the data packet, the method further comprises:
determining whether a second preset condition is met, wherein the second preset condition comprises: the duration of the data packet which is not received is greater than or equal to the target duration, and the data packet cannot be normally analyzed;
And under the condition that the second preset condition is met, sending a second response data packet to the sending end so that the sending end resends the data.
6. The method of claim 1, wherein after determining whether the data packet is lost based on the information related to the data packet, the method further comprises:
Determining whether a third preset condition is met, wherein the third preset condition comprises: the duration of the data packet which is not received is greater than or equal to the target duration, and the ending zone bit is not acquired;
and under the condition that the third preset condition is met, sending a third response data packet to the sending end, so that the sending end reissues the last data packet.
7. The method according to any one of claims 1 to 6, wherein, in the case where the data packet is lost, sending a first data response packet to the transmitting end, so that the transmitting end reissues the lost data, the method further comprises:
Acquiring the number of reissue times;
When the reissue times are larger than or equal to the preset times, and the data packet is still lost, stopping sending the first data response packet to the sending end, executing the next collection task, and reporting the abnormity of the sending end to the server;
And uploading the reissued data and the data packet to the server under the condition that the reissued times are less than or equal to the preset times and the successful reissuing of the data packet is determined.
8. A transmission device for electricity consumption information, comprising:
the receiving unit is used for receiving a data packet sent by a sending end, wherein the data packet is generated by the sending end according to the number of times of ammeter data sending and updated ammeter data, and the data format of the data packet is a Beidou short message;
the first determining unit is used for determining whether the data packet is lost or not according to the related information of the data packet, wherein the related information is a sequence number and/or an end zone bit;
and the first processing unit is used for sending a first data response packet to the sending end under the condition that the data packet is lost, so that the sending end supplements the lost data, and uploading the data packet to a server under the condition that the data packet is not lost.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer-readable storage medium is located to perform the transmission method of electricity information according to any one of claims 1 to 7.
10. A transmission system, comprising: a transmitting end and a receiving end, the transmitting end and the receiving end are in communication connection, and the receiving end is used for executing the transmission method of electricity information according to any one of claims 1 to 7.
CN202410133089.2A 2024-01-30 2024-01-30 Method, device and system for transmitting electricity usage information Pending CN118118567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410133089.2A CN118118567A (en) 2024-01-30 2024-01-30 Method, device and system for transmitting electricity usage information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410133089.2A CN118118567A (en) 2024-01-30 2024-01-30 Method, device and system for transmitting electricity usage information

Publications (1)

Publication Number Publication Date
CN118118567A true CN118118567A (en) 2024-05-31

Family

ID=91213347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410133089.2A Pending CN118118567A (en) 2024-01-30 2024-01-30 Method, device and system for transmitting electricity usage information

Country Status (1)

Country Link
CN (1) CN118118567A (en)

Similar Documents

Publication Publication Date Title
US8943166B2 (en) Data transfer device, data transfer method, and data transfer system
CN101601256B (en) Network Interface Card Transmission Control Protocol Accelerated Offload Fault Detection and Recovery Mechanism
US20070043849A1 (en) Field data collection and processing system, such as for electric, gas, and water utility data
US20130300577A1 (en) Collecting utility data information and conducting reconfigurations, such as demand resets, in a utility metering system
CN104951341A (en) Method for remotely upgrading collector
CN111835471B (en) Method and communication terminal for file transmission based on Beidou third-generation satellite short message
CN103141050B (en) Data packet retransmission method and node in quick path interconnect system
CN107360177B (en) A kind of message transmitting method and device based on UDP
CN110650192B (en) New energy monitoring system based on Beidou short message communication
CN103188059A (en) Method, device and system for data packet retransmission in quick path interconnect system
CN105024861A (en) A reliable remote communication method and communication device based on Beidou satellite
CN102710758A (en) Method for continuously transferring breakpoint of data stream based on single chip system
CN103259632A (en) Wireless sensor network data reliable aggregation method based on continuous-collecting single-transmitting model
CN112953839A (en) Data framing transmission method, telemetering equipment and data center platform
CN108647131B (en) Output system of running log
CN110213756A (en) A kind of data transmission method, device and its relevant device
CN103914978A (en) Vehicle information collection method and apparatus
CN103021152A (en) Beidou data transmission method based on confirmation mode
CN103778772A (en) Framing and interconnection transmitting method in electricity utilization information collecting system
CN104954103A (en) Detection data transmission method based on Beidou communication system and transmitting end equipment and receiving end equipment thereof
TW202103466A (en) System and method for implementing hybrid automatic repeat request process
CN112636808B (en) Telescope remote data transmission and control method based on Beidou short message
CN105607080A (en) Forest fire prevention information communication method and device based on Beidou short message
CN103997760A (en) Data packing and collecting method for user electricity information collecting system
CN118118567A (en) Method, device and system for transmitting electricity usage information

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