CN114860824A - Data transmission method, device, equipment and storage medium - Google Patents
Data transmission method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN114860824A CN114860824A CN202210375050.2A CN202210375050A CN114860824A CN 114860824 A CN114860824 A CN 114860824A CN 202210375050 A CN202210375050 A CN 202210375050A CN 114860824 A CN114860824 A CN 114860824A
- Authority
- CN
- China
- Prior art keywords
- data
- information
- historical
- uploading
- mark
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/258—Data format conversion from or to a database
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/252—Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本申请实施例公开了一种数据传输方法、装置、设备及存储介质,属于互联网和计算机技术领域,该方法包括:接收来自数据接收设备的数据上传指令;根据范围标记,采用不同的信息处理组件,从本地存储信息中获取历史数据;向数据接收设备上传历史数据。本申请中,通过不同的信息处理组件用于对不同格式的信息进行格式转换处理,在不同的场景下,通过配置不同的信息处理组件即可成功将历史信息转换为适当格式的历史数据,在场景发生变化时,能够快速确定针对新的场景的信息转换方案,操作简便,在多变的场景下,能够有效提高历史数据的上传效率。
The embodiments of the present application disclose a data transmission method, device, device and storage medium, which belong to the technical field of the Internet and computers. The method includes: receiving a data upload instruction from a data receiving device; , obtain historical data from local storage information; upload historical data to the data receiving device. In this application, different information processing components are used to perform format conversion processing on information in different formats. In different scenarios, historical information can be successfully converted into historical data in an appropriate format by configuring different information processing components. When the scene changes, it can quickly determine the information conversion scheme for the new scene, which is easy to operate, and can effectively improve the upload efficiency of historical data under the changing scene.
Description
技术领域technical field
本申请涉及互联网和计算机技术领域,特别涉及一种数据传输方法、装置、设备及存储介质。The present application relates to the field of Internet and computer technologies, and in particular, to a data transmission method, apparatus, device, and storage medium.
背景技术Background technique
目前,设备之间的数据传输已经十分普遍,数据上传设备向数据接收设备上传数据时,需要先将所获取的信息转换为数据后再上传。At present, data transmission between devices is very common. When a data uploading device uploads data to a data receiving device, it needs to convert the acquired information into data before uploading.
在相关技术中,由于不同场景下所获取的信息格式不同,因此,对于某个场景,需要由工作人员根据该场景下所获取的信息格式设计对应的信息转换方案。之后,数据上传设备在获取信息之后,根据工作人员预先设计的转换方案对信息进行转换,得到待上传数据,并向数据接收设备上传该数据。In the related art, since the information formats obtained in different scenarios are different, for a certain scenario, a staff member needs to design a corresponding information conversion scheme according to the information formats obtained in the scenario. After that, after acquiring the information, the data uploading device converts the information according to the conversion scheme pre-designed by the staff to obtain the data to be uploaded, and uploads the data to the data receiving device.
然而,在上述相关技术中,在场景发生变化时,需要对新的场景设计新的信息转换方案,操作繁琐。However, in the above-mentioned related art, when the scene changes, a new information conversion scheme needs to be designed for the new scene, and the operation is cumbersome.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种数据传输方法、装置、设备及存储介质,能够保证控制指令执行的安全性。所述技术方案如下:The embodiments of the present application provide a data transmission method, apparatus, device, and storage medium, which can ensure the security of control instruction execution. The technical solution is as follows:
一方面,本申请实施例提供了一种数据传输方法,所述方法包括:On the one hand, an embodiment of the present application provides a data transmission method, the method includes:
接收来自数据接收设备的数据上传指令,所述数据上传指令中包括待上传数据的范围标记;receiving a data upload instruction from the data receiving device, where the data upload instruction includes a range mark of the data to be uploaded;
根据所述范围标记,采用不同的信息处理组件,从本地存储信息中获取历史数据;其中,不同的所述信息处理组件用于对不同格式的信息进行格式转换处理;According to the range mark, different information processing components are used to obtain historical data from the locally stored information; wherein, the different information processing components are used to perform format conversion processing on information of different formats;
向所述数据接收设备上传所述历史数据。uploading the historical data to the data receiving device.
另一方面,本申请实施例提供了一种数据传输装置,所述装置包括:On the other hand, an embodiment of the present application provides a data transmission apparatus, and the apparatus includes:
指令接收模块,用于接收来自数据接收设备的数据上传指令,所述数据上传指令中包括待上传数据的范围标记;an instruction receiving module, configured to receive a data upload instruction from the data receiving device, where the data upload instruction includes a range mark of the data to be uploaded;
数据获取模块,用于根据所述范围标记,采用不同的信息处理组件,从本地存储信息中获取历史数据;其中,不同的所述信息处理组件用于对不同格式的信息进行格式转换处理;a data acquisition module, configured to use different information processing components to obtain historical data from locally stored information according to the range mark; wherein, the different information processing components are used to perform format conversion processing on information of different formats;
数据上传模块,用于向所述数据接收设备上传所述历史数据。A data uploading module, configured to upload the historical data to the data receiving device.
再一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器和存储器,所述存储器中存储有计算机程序,所述计算机程序由所述处理器加载并执行以实现上述数据传输方法。In another aspect, an embodiment of the present application provides a computer device, the computer device includes a processor and a memory, the memory stores a computer program, and the computer program is loaded and executed by the processor to realize the above data transfer method.
可选地,计算机设备为数据上传设备。Optionally, the computer device is a data uploading device.
又一方面,本申请实施例提供了一种非临时性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述数据传输方法。In yet another aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the foregoing data transmission method is implemented.
还一方面,本申请实施例提供了一种计算机程序产品,当所述计算机程序产品运行时,使得计算机设备执行上述数据传输方法。In another aspect, an embodiment of the present application provides a computer program product, which, when the computer program product runs, causes a computer device to execute the above data transmission method.
本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided in the embodiments of the present application can bring the following beneficial effects:
通过不同的信息处理组件用于对不同格式的信息进行格式转换处理,在不同的场景下,通过配置不同的信息处理组件即可成功将历史信息转换为适当格式的历史数据,在场景发生变化时,能够快速确定针对新的场景的信息转换方案,操作简便,在多变的场景下,能够有效提高历史数据的上传效率。Different information processing components are used to perform format conversion processing on information in different formats. In different scenarios, the historical information can be successfully converted into historical data in an appropriate format by configuring different information processing components. When the scene changes , can quickly determine the information conversion scheme for new scenarios, easy to operate, and can effectively improve the upload efficiency of historical data in changing scenarios.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本申请一个实施例提供的数据传输系统的示意图;1 is a schematic diagram of a data transmission system provided by an embodiment of the present application;
图2示例性示出了一种数据传输方式的示意图;Fig. 2 exemplarily shows a schematic diagram of a data transmission manner;
图3是本申请一个实施例提供的数据传输方法的流程图;3 is a flowchart of a data transmission method provided by an embodiment of the present application;
图4示例性示出了另一种数据传输方式的示意图;Fig. 4 exemplarily shows a schematic diagram of another data transmission manner;
图5是本申请一个实施例提供的数据传输装置的框图;5 is a block diagram of a data transmission apparatus provided by an embodiment of the present application;
图6是本申请另一个实施例提供的数据传输装置的框图;6 is a block diagram of a data transmission apparatus provided by another embodiment of the present application;
图7是本申请一个实施例提供的计算机设备的结构框图。FIG. 7 is a structural block diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
请参考图1,其示出了本申请一个实施例提供的数据传输系统的示意图。该数据传输系统可以包括:数据上传设备10和数据接收设备20。Please refer to FIG. 1 , which shows a schematic diagram of a data transmission system provided by an embodiment of the present application. The data transmission system may include: a data uploading device 10 and a data receiving device 20 .
数据上传设备10用于收集并上传数据。可选地,该数据上传设备可以是诸如手机、平板电脑、游戏主机、电子书阅读器、多媒体播放设备、可穿戴设备、PC(PersonalComputer,个人计算机)等电子设备。其中,上述数据可以是实时获取的实时数据,也可以是之前获取并存储的历史数据。The data uploading device 10 is used to collect and upload data. Optionally, the data uploading device may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playing device, a wearable device, a PC (Personal Computer, personal computer). The above data may be real-time data acquired in real time, or may be historical data acquired and stored previously.
数据接收设备20用于接收来自数据上传设备10的数据。其中,该数据接收设备20可以是诸如手机、平板电脑、游戏主机、电子书阅读器、多媒体播放设备、可穿戴设备、PC(Personal Computer,个人计算机)等电子设备。需要说明的一点是,该数据上传设备10和数据接收设备20可以是相同类型的设备,也可以是不同类型的设备,本申请实施例对此不作限定。可选地,数据接收设备20可以对应有一个或多个数据上传设备10,即数据接收设备20可以接收来自不同数据上传设备10的数据。The data receiving device 20 is used for receiving data from the data uploading device 10 . Wherein, the data receiving device 20 may be an electronic device such as a mobile phone, a tablet computer, a game console, an e-book reader, a multimedia playing device, a wearable device, a PC (Personal Computer, personal computer). It should be noted that the data uploading device 10 and the data receiving device 20 may be devices of the same type, or may be devices of different types, which are not limited in this embodiment of the present application. Optionally, the data receiving device 20 may correspond to one or more data uploading devices 10 , that is, the data receiving device 20 may receive data from different data uploading devices 10 .
数据上传设备10与数据接收设备20之间通过网络进行数据传输。Data transmission is performed between the data uploading device 10 and the data receiving device 20 through the network.
可选地,在本申请实施例中,不同的数据由不同的数据传输通道进行传输。示例性地,如图2所示,数据上传设备10中包括任务监督单元11,该任务监督组件在接收到来自数据接收设备20的数据上传指令之后,通过数据上传设备10中的数据读取单元12获取本地存储的历史数据。之后,数据上传设备10通过历史数据传输通道30向数据上传设备20上传该历史数据,同时,数据上传设备10通过实时数据传输通道40向数据上传设备20上传实时数据。Optionally, in this embodiment of the present application, different data are transmitted by different data transmission channels. Exemplarily, as shown in FIG. 2 , the data uploading device 10 includes a task monitoring unit 11 , and after receiving the data uploading instruction from the data receiving device 20 , the task monitoring component passes the data reading unit in the data uploading device 10 . 12 Get historical data stored locally. After that, the data uploading device 10 uploads the historical data to the data uploading device 20 through the historical data transmission channel 30 , and meanwhile, the data uploading device 10 uploads real-time data to the data uploading device 20 through the real-time data transmission channel 40 .
请参考图3,其示出了本申请一个实施例提供的数据传输方法的流程图。该方法应用于图1所示的数据传输系统的数据上传设备10中。该方法可以包括以下几个步骤(301~303):Please refer to FIG. 3 , which shows a flowchart of a data transmission method provided by an embodiment of the present application. The method is applied to the data uploading device 10 of the data transmission system shown in FIG. 1 . The method may include the following steps (301-303):
步骤301,接收来自数据接收设备的数据上传指令。Step 301: Receive a data upload instruction from a data receiving device.
数据上传指令用于指示数据上传设备向数据接收设备上述数据。其中,该数据可以是实时获取的实时数据,也可以是本地存储的历史数据。在本申请实施例中,数据上传设备在向数据接收设备上传数据之前,接收来自数据接收设备的数据上传指令。The data uploading instruction is used to instruct the data uploading device to send the above data to the data receiving device. The data may be real-time data acquired in real time, or may be locally stored historical data. In this embodiment of the present application, before uploading data to the data receiving device, the data uploading device receives a data uploading instruction from the data receiving device.
可选地,在本申请实施例中,上述数据上传指令中包括待上传数据的范围标记。其中,该范围标记是指历史数据的搜索范围。Optionally, in this embodiment of the present application, the above-mentioned data upload instruction includes a range mark of the data to be uploaded. The range mark refers to the search range of historical data.
可选地,上述数据上传指令是针对数据传输请求的响应指令。在示例性实施例中,上述步骤301包括以下几个步骤:Optionally, the above-mentioned data upload instruction is a response instruction for a data transmission request. In an exemplary embodiment, the
1、在目标时长后未接收到来自数据接收设备的响应信息的情况下,向数据接收设备发送数据传输请求。1. If no response information is received from the data receiving device after the target duration, send a data transmission request to the data receiving device.
可选地,数据上传设备在向数据接收设备上述数据之后,能够接收到来自数据接收设备的针对已上传的数据的响应信息。其中,该响应信息中包括验证信息,数据上传设备基于该验证信息确定数据接收设备是否成功且正确的接收到上述已上传的数据。Optionally, after sending the data to the data receiving device, the data uploading device can receive response information for the uploaded data from the data receiving device. The response information includes verification information, and the data uploading device determines whether the data receiving device has successfully and correctly received the above-mentioned uploaded data based on the verification information.
在本申请实施例中,数据上传设备在目标时长后未接收到来自数据接收设备的响应信息的情况下,向数据接收设备发送数据传输请求。其中,上述目标时长是指上传数据后的一定时长,该目标时长可以根据实际情况进行灵活设备和调整,本申请实施例对此不作限定。In this embodiment of the present application, the data uploading device sends a data transmission request to the data receiving device when the data uploading device does not receive the response information from the data receiving device after the target duration. The above target duration refers to a certain duration after data is uploaded, and the target duration can be flexibly device and adjusted according to actual conditions, which is not limited in this embodiment of the present application.
可选地,在本申请实施例中,上述数据传输请求中包括目标时长对应的时段,数据接收设备在接收到上述数据传输请求之后,根据该数据传输请求在满足条件的情况下生成数据上传指令。其中,上述条件为针对当前数据传输环境的判断条件,数据接收设备在获取上述数据传输请求之后,确定自身在目标时长对应的时段内未成功接收到正确的数据,进而对数据传输故障进行修复,在数据传输故障修复完成的情况下,确定当前数据传输环境满足条件,进而根据上述目标时长对应的时段确定未成功接收到的历史数据的搜索范围,并生成数据上传指令。Optionally, in this embodiment of the present application, the above-mentioned data transmission request includes a time period corresponding to the target duration, and after receiving the above-mentioned data transmission request, the data receiving device generates a data upload instruction according to the data transmission request when conditions are met. . The above condition is a judgment condition for the current data transmission environment. After obtaining the above data transmission request, the data receiving device determines that it has not successfully received correct data within the period corresponding to the target duration, and then repairs the data transmission failure. When the data transmission fault repair is completed, it is determined that the current data transmission environment satisfies the conditions, and then the search range of the unsuccessfully received historical data is determined according to the time period corresponding to the above target duration, and a data upload instruction is generated.
需要说明的一点是,在示例性实施例中,在数据上传设备基于上述验证信息确定数据接收设备未接收到正确的数据的情况下,也可以向数据接收设备发送上述数据传输请求。可选地,该数据传输请求中还包括第一响应标识或第二响应标识。其中,该第一响应标识用于指示数据上传设备未接收到响应信息,该第二响应标识用于指示数据上传设备接收到错误的响应信息。It should be noted that, in the exemplary embodiment, when the data uploading device determines that the data receiving device has not received correct data based on the above verification information, the above data transmission request may also be sent to the data receiving device. Optionally, the data transmission request further includes the first response identifier or the second response identifier. The first response identifier is used to indicate that the data uploading device has not received response information, and the second response identifier is used to indicate that the data uploading device has received erroneous response information.
2、接收来自数据接收设备的数据上传指令。2. Receive the data upload instruction from the data receiving device.
在本申请实施例中,数据上传设备在生成上述数据上传指令之后,向数据接收设备发送该数据上传指令,对应地,数据上传设备接收该来自数据接收设备的数据上传指令。In the embodiment of the present application, after generating the data uploading instruction, the data uploading device sends the data uploading instruction to the data receiving device, and correspondingly, the data uploading device receives the data uploading instruction from the data receiving device.
步骤302,根据范围标记,采用不同的信息处理组件,从本地存储信息中获取历史数据。
在本申请实施例中,数据上传设备在接收到上述数据上传指令之后,根据该数据上传指令中的范围标记,采用不同的信息处理组件,从本地存储信息中获取历史信息。其中,不同的信息处理组件用于对不同格式的信息进行格式转换处理。In the embodiment of the present application, after receiving the data uploading instruction, the data uploading device uses different information processing components to obtain historical information from the locally stored information according to the range flag in the data uploading instruction. Wherein, different information processing components are used to perform format conversion processing on information of different formats.
可选地,不同的信息处理组件之间的连接关系包括串联关系和并联关系。示例性地,假设上述不同的信息处理组件包括第一信息处理组件、第二信息处理组件、第三信息处理组件和第四信息处理组件。该第一信息处理组件用于将历史信息A转换为历史信息B,该第二信息处理组件用于将历史信息B转换为历史信息C,该第三信息处理组件用于将历史信息C转换为历史信息历史数据,该第四信息处理组件用于将历史信息D转换为历史数据。在这种情况下,第一信息处理组件与第二信息处理组件串联,且第二信息处理组件与第三信息处理组件串联,即第一信息处理组件、第二信息处理组件和第三信息处理组件形成一条完成的串联链;而且,第四信息处理组件与第一信息处理组件、第二信息处理组件和第三信息处理组件所形成的串联链并联。Optionally, the connection relationship between different information processing components includes a series relationship and a parallel relationship. Exemplarily, it is assumed that the above-mentioned different information processing components include a first information processing component, a second information processing component, a third information processing component and a fourth information processing component. The first information processing component is used for converting historical information A into historical information B, the second information processing component is used for converting historical information B into historical information C, and the third information processing component is used for converting historical information C into Historical information and historical data, the fourth information processing component is used to convert the historical information D into historical data. In this case, the first information processing component is connected in series with the second information processing component, and the second information processing component is connected in series with the third information processing component, namely the first information processing component, the second information processing component and the third information processing component The components form a completed series chain; and, the fourth information processing component is connected in parallel with the series chain formed by the first information processing component, the second information processing component and the third information processing component.
步骤303,向数据接收设备上传历史数据。
在本申请实施例中,数据上传设备在获取上述历史数据之后,向数据接收设备上述该历史数据。可选地,在上述该历史数据时,数据上传设备获取实时数据,将实时数据和历史数据并行上传至据接收设备。其中,上述实时数据的生成时刻在历史数据的生成时刻之后。In this embodiment of the present application, after acquiring the historical data, the data uploading device sends the historical data to the data receiving device. Optionally, during the above-mentioned historical data, the data uploading device acquires real-time data, and uploads the real-time data and historical data to the data receiving device in parallel. Wherein, the generation time of the real-time data is after the generation time of the historical data.
可选地,在对上述实时数据和上述历史数据进行并行上传时,基于实时数据传输通道,向数据接收设备上传该实时数据;并且,基于历史数据传输通道,向数据接收设备上传该历史数据。Optionally, when the real-time data and the historical data are uploaded in parallel, the real-time data is uploaded to the data receiving device based on the real-time data transmission channel; and the historical data is uploaded to the data receiving device based on the historical data transmission channel.
需要说明的一点是,上述实时数据可以是以生成时刻为约束实时获取的数据,或者,上述实时数据也可以是以生成时刻和上述范围标记为约束实时获取的数据。It should be noted that the real-time data may be data obtained in real time with the generation time as a constraint, or the real-time data may also be data obtained in real time with the generation time and the range mark as constraints.
在一种可能的实施方式中,上述实时数据是以生成时刻为约束实时获取的数据。可选地,数据上传设备在获取该实时数据时,获取生成时刻位于历史数据的生成时刻之后的候选数据,并将该候选数据确定为实时数据。In a possible implementation manner, the above-mentioned real-time data is data obtained in real time with the generation time as a constraint. Optionally, when acquiring the real-time data, the data uploading device acquires candidate data whose generation time is after the generation time of the historical data, and determines the candidate data as real-time data.
在另一种可能的实施方式中,上述实时数据是以生成时刻和上述范围标记为约束实时获取的数据。可选地,数据上传设备在获取该实时数据时,获取生成时刻位于历史数据的生成时刻之后的候选数据,并在该候选数据中将满足上述范围标记的候选数据确定为实时数据。In another possible implementation manner, the above-mentioned real-time data is data obtained in real time as constraints of the generation time and the above-mentioned range mark. Optionally, when acquiring the real-time data, the data uploading device acquires candidate data whose generation time is after the generation time of the historical data, and determines, in the candidate data, candidate data satisfying the above range flag as real-time data.
需要说明的一点是,在本申请实施例中,数据上传设备可以获取不同来源的数据。示例性地,如图4所示,数据上传设备获取第一来源、第二来源和第三来源的数据,并将来自不同来源的数据,基于实时数据传输通道和历史数据传输通道上传至数据接收设备。It should be noted that, in this embodiment of the present application, the data uploading device may acquire data from different sources. Exemplarily, as shown in FIG. 4 , the data uploading device obtains the data of the first source, the second source and the third source, and uploads the data from different sources to the data receiving channel based on the real-time data transmission channel and the historical data transmission channel. equipment.
综上所述,本申请实施例提供的技术方案中,通过不同的信息处理组件用于对不同格式的信息进行格式转换处理,在不同的场景下,通过配置不同的信息处理组件即可成功将历史信息转换为适当格式的历史数据,在场景发生变化时,能够快速确定针对新的场景的信息转换方案,操作简便,在多变的场景下,能够有效提高历史数据的上传效率。To sum up, in the technical solutions provided by the embodiments of the present application, different information processing components are used to perform format conversion processing on information of different formats, and in different scenarios, different information processing components can be configured to successfully The historical information is converted into historical data in an appropriate format. When the scene changes, the information conversion scheme for the new scene can be quickly determined. It is easy to operate and can effectively improve the upload efficiency of historical data in changing scenes.
下面,对历史数据的获取方式进行介绍。Next, the acquisition method of historical data is introduced.
在示例性实施例中,上述步骤302包括以下几个步骤:In an exemplary embodiment, the
1、从本地存储数据中获取满足范围标记的历史信息。1. Obtain historical information that satisfies the range mark from the locally stored data.
在本申请实施例中,数据上传设备在接收到上述数据上传指令之后,以该数据上传指令的范围标记,从本地存储数据中获取满足该范围标记的历史信息。In this embodiment of the present application, after receiving the data uploading instruction, the data uploading device uses the range marking of the data uploading instruction to obtain historical information satisfying the range marking from the locally stored data.
在一种可能的实施方式中,上述范围标记包括时段标记。数据上传设备在获取历史信息时,根据该时段标记,从本地存储数据中获取该历史信息。其中,该历史信息的生成时刻在该时段标记所指示的时段内。In a possible implementation, the above range markers include time period markers. When acquiring the historical information, the data uploading device acquires the historical information from the locally stored data according to the time period mark. Wherein, the generation time of the historical information is within the time period indicated by the time period mark.
在另一种可能的实施方式中,上述范围标记包括来源标记。数据上传设备在获取历史信息时,根据该来源标记,从本地存储数据中获取该历史信息。其中,该历史信息是指来自于来源标记所指示的来源的信息。In another possible implementation, the above-mentioned scope marker includes a source marker. When acquiring the historical information, the data uploading device acquires the historical information from the locally stored data according to the source tag. Wherein, the historical information refers to the information from the source indicated by the source tag.
在再一种可能的实施方式中,上述范围标记包括关联标记。数据上传设备在获取历史信息时,根据该关联标记,从本地存储数据中获取该历史信息。其中,该历史信息是指针对关联标记所指示的关联物品的信息。In yet another possible implementation, the above-mentioned range markers include association markers. When acquiring the historical information, the data uploading device acquires the historical information from the locally stored data according to the associated tag. Wherein, the history information refers to the information on the related item indicated by the related mark.
当然,在示例性实施例中,上述范围标记也可以包括时段标记、来源标记或关联标记中的任意几种,本申请实施例对此不作限定。Of course, in an exemplary embodiment, the above range marker may also include any of a period marker, a source marker, or an association marker, which is not limited in this embodiment of the present application.
2、采用不同的信息处理组件,将历史信息转换为待上传数据对应的格式,得到历史数据。2. Using different information processing components, convert the historical information into the format corresponding to the data to be uploaded, and obtain the historical data.
在本申请实施例中,数据上传设备在获取上述历史信息之后,采用不同的信息处理组件,将历史信息转换为待上传数据对应的格式,得到历史数据。In the embodiment of the present application, after acquiring the above-mentioned historical information, the data uploading device uses different information processing components to convert the historical information into a format corresponding to the data to be uploaded to obtain the historical data.
在一种可能的实施方式中,在获取上述历史数据时,数据上传设备采用不同的信息处理组件,对不同格式的历史信息进行格式转换处理,进而得到上述历史数据。In a possible implementation manner, when acquiring the above-mentioned historical data, the data uploading device adopts different information processing components to perform format conversion processing on the historical information in different formats, thereby obtaining the above-mentioned historical data.
在另一种可能的实施方式中,在获取上述历史数据时,数据上传设备获取各个信息处理组件的连接顺序,并将连接顺序作为针对历史信息的处理顺序对历史信息进行格式转换处理,进而得到上述历史数据。In another possible implementation, when acquiring the above-mentioned historical data, the data uploading device acquires the connection sequence of each information processing component, and uses the connection sequence as the processing sequence for the historical information to perform format conversion processing on the historical information, and then obtain The above historical data.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are apparatus embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
请参考图5,其示出了本申请一个实施例提供的数据传输装置的框图。该装置具有实现上述数据传输方法的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。该装置可以是数据上传设备,也可以设置数据上传设备中。该装置500可以包括:指令接收模块510、数据获取模块520和数据上传模块530。Please refer to FIG. 5 , which shows a block diagram of a data transmission apparatus provided by an embodiment of the present application. The device has the function of realizing the above-mentioned data transmission method, and the function can be realized by hardware or by executing corresponding software by hardware. The device can be a data uploading device, or can be set in the data uploading device. The
指令接收模块510,用于接收来自数据接收设备的数据上传指令,所述数据上传指令中包括待上传数据的范围标记。The instruction receiving module 510 is configured to receive a data uploading instruction from the data receiving device, where the data uploading instruction includes a range mark of the data to be uploaded.
数据获取模块520,用于根据所述范围标记,采用不同的信息处理组件,从本地存储信息中获取历史数据;其中,不同的所述信息处理组件用于对不同格式的信息进行格式转换处理。The data acquisition module 520 is configured to use different information processing components to acquire historical data from the locally stored information according to the range mark; wherein, the different information processing components are used to perform format conversion processing on information of different formats.
数据上传模块530,用于向所述数据接收设备上传所述历史数据。The data uploading module 530 is configured to upload the historical data to the data receiving device.
在示例性实施例中,如图6所示,所述数据获取模块520,包括:信息获取单元521和信息转换单元522。In an exemplary embodiment, as shown in FIG. 6 , the data acquisition module 520 includes: an information acquisition unit 521 and an information conversion unit 522 .
信息获取单元521,用于从本地存储数据中获取满足所述范围标记的历史信息。The information obtaining unit 521 is configured to obtain historical information satisfying the range flag from the locally stored data.
信息转换单元522,用于采用不同的信息处理组件,将所述历史信息转换为所述待上传数据对应的格式,得到所述历史数据。The information conversion unit 522 is configured to use different information processing components to convert the historical information into a format corresponding to the data to be uploaded to obtain the historical data.
在示例性实施例中,所述信息转换单元522,用于采用不同的所述信息处理组件,对不同格式的所述历史信息进行格式转换处理,得到所述历史数据;或者,获取各个所述信息处理组件的连接顺序;将所述连接顺序作为针对所述历史信息的处理顺序对所述历史信息进行格式转换处理,得到所述历史数据。In an exemplary embodiment, the information conversion unit 522 is configured to use different information processing components to perform format conversion processing on the historical information in different formats to obtain the historical data; or, obtain each of the historical information. The connection sequence of the information processing components; taking the connection sequence as the processing sequence for the historical information, performing format conversion processing on the historical information to obtain the historical data.
在示例性实施例中,所述信息获取单元521,用于所述范围标记包括时段标记,根据所述时段标记,从所述本地存储数据中获取所述历史信息;其中,所述历史信息的生成时刻在所述时段标记所指示的时段内;或者,所述范围标记包括来源标记,根据所述来源标记,从所述本地存储数据中获取所述历史信息;其中,所述历史信息是指来自于所述来源标记所指示的来源的信息;或者,所述范围标记包括关联标记,根据所述关联标记,从所述本地存储数据中获取所述历史信息;其中,所述历史信息是指针对所述关联标记所指示的关联物品的信息。In an exemplary embodiment, the information acquisition unit 521 is used for the range mark to include a period mark, and according to the period mark, the historical information is acquired from the locally stored data; wherein, the historical information is The generation time is within the time period indicated by the time period mark; or, the range mark includes a source mark, and according to the source mark, the historical information is obtained from the locally stored data; wherein, the historical information refers to information from the source indicated by the source tag; or, the scope tag includes an association tag, and according to the association tag, the historical information is obtained from the locally stored data; wherein the historical information refers to Information for the associated item indicated by the associated flag.
在示例性实施例中,如图6所示,所述数据上传模块530,包括:数据获取单元531和数据上传单元532。In an exemplary embodiment, as shown in FIG. 6 , the data uploading module 530 includes: a data acquiring unit 531 and a data uploading unit 532 .
数据获取单元531,用于获取实时数据,所述实时数据的生成时刻在所述历史数据的生成时刻之后。The data acquisition unit 531 is configured to acquire real-time data, and the generation time of the real-time data is after the generation time of the historical data.
数据上传单元532,用于将所述实时数据和所述历史数据并行上传至所述数据接收设备。A data uploading unit 532, configured to upload the real-time data and the historical data to the data receiving device in parallel.
在示例性实施例中,所述数据上传单元532,用于基于实时数据传输通道,向所述数据接收设备上传所述实时数据;基于历史数据传输通道,向所述数据接收设备上传所述历史数据。In an exemplary embodiment, the data uploading unit 532 is configured to upload the real-time data to the data receiving device based on a real-time data transmission channel; upload the historical data to the data receiving device based on a historical data transmission channel data.
在示例性实施例中,所述指令接收模块510,用于在目标时长后未接收到来自所述数据接收设备的响应信息的情况下,向所述数据接收设备发送数据传输请求;其中,所述数据传输请求中包括所述目标时长对应的时段,所述数据接收设备根据所述数据传输请求在满足条件的情况下生成所述数据上传指令;接收来自数据接收设备的数据上传指令。In an exemplary embodiment, the instruction receiving module 510 is configured to send a data transmission request to the data receiving device if no response information is received from the data receiving device after the target duration; The data transmission request includes a time period corresponding to the target duration, and the data receiving device generates the data upload instruction according to the data transmission request when conditions are met; and receives the data upload instruction from the data receiving device.
综上所述,本申请实施例提供的技术方案中,通过不同的信息处理组件用于对不同格式的信息进行格式转换处理,在不同的场景下,通过配置不同的信息处理组件即可成功将历史信息转换为适当格式的历史数据,在场景发生变化时,能够快速确定针对新的场景的信息转换方案,操作简便,在多变的场景下,能够有效提高历史数据的上传效率。To sum up, in the technical solutions provided by the embodiments of the present application, different information processing components are used to perform format conversion processing on information of different formats, and in different scenarios, different information processing components can be configured to successfully The historical information is converted into historical data in an appropriate format. When the scene changes, the information conversion scheme for the new scene can be quickly determined. It is easy to operate and can effectively improve the upload efficiency of historical data in changing scenes.
请参考图7,其示出了本申请一个实施例提供的计算机设备的结构框图。该计算机设备可用于实现上述数据传输方法的功能。其中,该计算机设备中可以是控制设备,也可以是被控设备,本申请实施例对此不作限定。具体来讲:Please refer to FIG. 7 , which shows a structural block diagram of a computer device provided by an embodiment of the present application. The computer device can be used to implement the functions of the above-mentioned data transmission method. The computer device may be a control device or a controlled device, which is not limited in this embodiment of the present application. Specifically:
计算机设备700包括中央处理单元(Central Processing Unit,CPU)701、包括随机存取存储器(Random Access Memory,RAM)702和只读存储器(Read Only Memory,ROM)703的系统存储器704,以及连接系统存储器704和中央处理单元701的系统总线705。计算机设备700还包括帮助计算机内的各个器件之间传输信息的基本输入/输出(Input/Output,I/O)系统706,和用于存储操作系统713、应用程序714和其他程序模块715的大容量存储设备707。The
基本输入/输出系统706包括有用于显示信息的显示器708和用于用户输入信息的诸如鼠标、键盘之类的输入设备709。其中显示器708和输入设备709都通过连接到系统总线705的输入输出控制器710连接到中央处理单元701。基本输入/输出系统706还可以包括输入输出控制器710以用于接收和处理来自键盘、鼠标、或电子触控笔等多个其他设备的输入。类似地,输入输出控制器710还提供输出到显示屏、打印机或其他类型的输出设备。The basic input/
大容量存储设备707通过连接到系统总线705的大容量存储控制器(未示出)连接到中央处理单元701。大容量存储设备707及其相关联的计算机可读介质为计算机设备700提供非易失性存储。也就是说,大容量存储设备707可以包括诸如硬盘或者CD-ROM(CompactDisc Read-Only Memory,只读光盘)驱动器之类的计算机可读介质(未示出)。
不失一般性,计算机可读介质可以包括计算机存储介质和通信介质。计算机存储介质包括以用于存储诸如计算机可读指令、数据结构、程序模块或其他数据等信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动介质。计算机存储介质包括RAM、ROM、EPROM(Erasable Programmable Read Only Memory,可擦除可编程只读存储器)、EEPROM(Electrically Erasable Programmable Read Only Memory,电可擦可编程只读存储器)、闪存或其他固态存储其技术,CD-ROM、DVD(Digital Video Disc,高密度数字视频光盘)或其他光学存储、磁带盒、磁带、磁盘存储或其他磁性存储设备。当然,本领域技术人员可知计算机存储介质不局限于上述几种。上述的系统存储器704和大容量存储设备707可以统称为存储器。Without loss of generality, computer-readable media can include computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory, Electrically Erasable Programmable Read Only Memory), flash memory or other solid-state storage Its technology, CD-ROM, DVD (Digital Video Disc, high-density digital video disc) or other optical storage, cassettes, magnetic tape, disk storage or other magnetic storage devices. Of course, those skilled in the art know that the computer storage medium is not limited to the above-mentioned types. The
根据本申请的各种实施例,计算机设备700还可以通过诸如因特网等网络连接到网络上的远程计算机运行。也即计算机设备700可以通过连接在系统总线705上的网络接口单元711连接到网络712,或者说,也可以使用网络接口单元711来连接到其他类型的网络或远程计算机系统(未示出)。According to various embodiments of the present application,
所述存储器还包括计算机程序,该计算机程序存储于存储器中,且经配置以由一个或者一个以上处理器执行,以实现上述数据传输方法。The memory also includes a computer program stored in the memory and configured to be executed by one or more processors to implement the data transfer method described above.
在示例性实施例中,还提供了一种非临时性计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述数据传输方法。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned data transmission method is implemented.
可选地,该计算机可读存储介质可以包括:ROM(Read Only Memory,只读存储器)、RAM(Random Access Memory,随机存取记忆体)、SSD(Solid State Drives,固态硬盘)或光盘等。其中,随机存取记忆体可以包括ReRAM(Resistance Random Access Memory,电阻式随机存取记忆体)和DRAM(Dynamic Random Access Memory,动态随机存取存储器)。Optionally, the computer-readable storage medium may include: ROM (Read Only Memory, read only memory), RAM (Random Access Memory, random access memory), SSD (Solid State Drives, solid state hard disk), or an optical disc. The random access memory may include ReRAM (Resistance Random Access Memory, resistive random access memory) and DRAM (Dynamic Random Access Memory, dynamic random access memory).
在示例性实施例中,还提供一种计算机程序产品,所述计算机程序产品被处理器执行时,用于实现上述数据传输方法。In an exemplary embodiment, there is also provided a computer program product for implementing the above data transmission method when executed by a processor.
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本文中描述的步骤编号,仅示例性示出了步骤间的一种可能的执行先后顺序,在一些其它实施例中,上述步骤也可以不按照编号顺序来执行,如两个不同编号的步骤同时执行,或者两个不同编号的步骤按照与图示相反的顺序执行,本申请实施例对此不作限定。It should be understood that references herein to "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship. In addition, the numbering of the steps described in this document only exemplarily shows a possible execution sequence between the steps. In some other embodiments, the above steps may also be executed in different order, such as two different numbers. The steps are performed at the same time, or two steps with different numbers are performed in a reverse order to that shown in the figure, which is not limited in this embodiment of the present application.
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210375050.2A CN114860824A (en) | 2022-04-11 | 2022-04-11 | Data transmission method, device, equipment and storage medium |
| PCT/SG2022/050800 WO2023200395A1 (en) | 2022-04-11 | 2022-11-04 | Method and apparatus for transmitting data, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210375050.2A CN114860824A (en) | 2022-04-11 | 2022-04-11 | Data transmission method, device, equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114860824A true CN114860824A (en) | 2022-08-05 |
Family
ID=82630257
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210375050.2A Pending CN114860824A (en) | 2022-04-11 | 2022-04-11 | Data transmission method, device, equipment and storage medium |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN114860824A (en) |
| WO (1) | WO2023200395A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117869211B (en) * | 2023-12-21 | 2024-09-27 | 快备新能源科技(上海)有限公司 | A wind farm data processing method and system |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7046691B1 (en) * | 1999-10-04 | 2006-05-16 | Microsoft Corporation | Methods and systems for dynamic conversion of objects from one format type to another format type by selectively using an intermediary format type |
| CN107111649A (en) * | 2015-03-02 | 2017-08-29 | 微软技术许可有限责任公司 | User and system data are uploaded into destination locations from source position |
| CN108052474A (en) * | 2018-01-02 | 2018-05-18 | 上海壹账通金融科技有限公司 | Conversion method of data format, device, equipment and computer readable storage medium |
| CN113848838A (en) * | 2021-10-08 | 2021-12-28 | 南京工程学院 | A data communication system and method for industrial internet of things |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3039821B1 (en) * | 2013-08-26 | 2016-12-21 | Telefonaktiebolaget LM Ericsson (publ) | Apparatus and method for processing data streams in a communication network |
| WO2015027430A1 (en) * | 2013-08-29 | 2015-03-05 | 宇龙计算机通信科技(深圳)有限公司 | Server and file sharing method |
| CN110209734B (en) * | 2019-05-05 | 2022-11-18 | 深圳市腾讯计算机系统有限公司 | Data copying method and device, computer equipment and storage medium |
-
2022
- 2022-04-11 CN CN202210375050.2A patent/CN114860824A/en active Pending
- 2022-11-04 WO PCT/SG2022/050800 patent/WO2023200395A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7046691B1 (en) * | 1999-10-04 | 2006-05-16 | Microsoft Corporation | Methods and systems for dynamic conversion of objects from one format type to another format type by selectively using an intermediary format type |
| CN107111649A (en) * | 2015-03-02 | 2017-08-29 | 微软技术许可有限责任公司 | User and system data are uploaded into destination locations from source position |
| CN108052474A (en) * | 2018-01-02 | 2018-05-18 | 上海壹账通金融科技有限公司 | Conversion method of data format, device, equipment and computer readable storage medium |
| CN113848838A (en) * | 2021-10-08 | 2021-12-28 | 南京工程学院 | A data communication system and method for industrial internet of things |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2023200395A1 (en) | 2023-10-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US9843619B2 (en) | System and method for accessing disk image files using HTML5 KVM/vmedia client running in a web browser | |
| CN113127307A (en) | Method for processing tracing request, related device, system and storage medium | |
| CN104135520B (en) | A kind of method and device for identifying android terminal | |
| CN109977635B (en) | Method, device, equipment and medium for processing traceable data based on block chain | |
| CN109101664B (en) | Data transmission method, device, equipment and medium for lightweight node | |
| CN109784738B (en) | Approval method and approval device | |
| CN110502920A (en) | Production task execution method, device and equipment based on block chain | |
| CN113704341A (en) | Data acquisition system and method | |
| US11663749B2 (en) | Providing context for software deployments using augmented reality | |
| CN117829685A (en) | An engineering management system and method based on digital twin and mixed reality technology | |
| WO2023125777A1 (en) | Video recording data replenishment method, cloud storage server, system and storage medium | |
| CN114860824A (en) | Data transmission method, device, equipment and storage medium | |
| CN114818218A (en) | Cable laying path determination method, device and storage medium | |
| CN103685209A (en) | A source-tracing processing method of Internet media files, a server, and a communication system | |
| JP5716549B2 (en) | Conference support system, information processing apparatus, and document distribution program | |
| CN107817962B (en) | Remote control method, device, control server and storage medium | |
| CN111522854A (en) | Data labeling method and device, storage medium and computer equipment | |
| CN102523221A (en) | Data packet detection method and network security detection equipment | |
| CN110335341B (en) | BIM model-based defect positioning method, device, equipment and storage medium | |
| US10382439B2 (en) | Information processing system, information processing apparatus, information processing method, and storage medium | |
| CN117076457A (en) | Data processing methods, devices, equipment and storage media | |
| CN116633913A (en) | Method, device, system and medium for transferring job file | |
| CN115495015A (en) | Data file processing method, device, equipment and storage medium | |
| CN103383673A (en) | Universal serial bus USB network storage device, system and method | |
| US20250181553A1 (en) | File operation record traceability system and traceability method |
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 |