CN115941215A - Method and device for sending and receiving data, communication system, and vehicle-machine system - Google Patents
Method and device for sending and receiving data, communication system, and vehicle-machine system Download PDFInfo
- Publication number
- CN115941215A CN115941215A CN202110931195.1A CN202110931195A CN115941215A CN 115941215 A CN115941215 A CN 115941215A CN 202110931195 A CN202110931195 A CN 202110931195A CN 115941215 A CN115941215 A CN 115941215A
- Authority
- CN
- China
- Prior art keywords
- data
- time
- receiving
- transmitting
- tag
- 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
Landscapes
- Synchronisation In Digital Transmission Systems (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据通信技术,具体涉及用于发送数据和接收数据的方法和设备、通信系统及车机系统。The invention relates to data communication technology, in particular to a method and device for sending and receiving data, a communication system and a vehicle-machine system.
背景技术Background technique
当前在数据通信领域,在数据通信网络中存在大量的实时传输或交换的各种数据信息。这种数据信息具有实时性和/或私密性,且信息量巨大,完全保存这些数据信息可能会使数据处理终端或服务器消耗大量的存储资源和计算资源。很多即时性较强的数据并没有再利用的价值,继续保留数据导致不必要地占用接收设备的存储资源。例如在车联网中,每一辆智能网联汽车、尤其是无人驾驶车辆的车机系统中的通信系统必然与交通系统内各参与方(例如道路上的其它车辆和基础通信设施、以及远程服务器等)之间的信息交换,各通信参与方从其它参与方接收大量的实时数据信息,例如车辆行驶过程中在各个时间点所处的地理位置、下一时间点的目标方位、控制器发出的实时指令信息等。大量数据信息使得信息的保密和储存是一个大的挑战,而如何及时销毁具有一定私密性且保存价值不高的海量数据信息,也成为当前需要解决的问题。Currently in the field of data communication, there are a large amount of real-time transmission or exchange of various data information in the data communication network. This kind of data information is real-time and/or private, and has a huge amount of information. Completely saving these data information may cause the data processing terminal or server to consume a large amount of storage resources and computing resources. A lot of data with strong immediacy has no reuse value, and continuing to retain the data leads to unnecessary occupation of storage resources of the receiving device. For example, in the Internet of Vehicles, the communication system of each intelligent networked vehicle, especially the vehicle-machine system of an unmanned vehicle, must communicate with all participants in the transportation system (such as other vehicles on the road and basic communication facilities, as well as remote In the exchange of information between servers, etc.), each communication participant receives a large amount of real-time data information from other participants, such as the geographic location at each time point during the driving process of the vehicle, the target orientation at the next time point, and the real-time instruction information, etc. A large amount of data information makes the confidentiality and storage of information a big challenge, and how to timely destroy massive data information with certain privacy and low preservation value has become a problem that needs to be solved at present.
发明内容Contents of the invention
根据本发明的一方面,提供一种用于在通信系统中发送数据的方法,所述方法包括:由所述发送设备在将要发送的数据中至少添加第一时间标签;其中,所述第一时间标签指示所述数据被读取的最晚时间;以及由所述发送设备发送已添加所述第一时间标签的所述数据。According to an aspect of the present invention, there is provided a method for sending data in a communication system, the method comprising: adding at least a first time stamp to the data to be sent by the sending device; wherein the first A time stamp indicates the latest time at which the data was read; and the data to which the first time stamp is added is transmitted by the sending device.
根据本发明的另一方面,提供一种用于在通信系统中接收数据的方法,所述方法包括:由所述接收设备接收其中至少已添加第一时间标签的数据;其中,所述第一时间标签指示所述数据被读取的最晚时间;从所述数据中提取所述第一时间标签;以及在所述第一时间标签所指示的所述数据被读取的最晚时间之后,修改所接收的所述数据。According to another aspect of the present invention, there is provided a method for receiving data in a communication system, the method comprising: receiving, by the receiving device, data in which at least a first time stamp has been added; wherein the first a time stamp indicating the latest time at which the data was read; extracting the first time stamp from the data; and after the latest time at which the data was read indicated by the first time stamp, The data received is modified.
根据本发明的又一方面,提供一种用于发送数据的发送设备,包括:编码单元,被配置用于在将要发送的数据中至少添加第一时间标签;其中,所述第一时间标签指示所述数据被读取的最晚时间;以及发送单元,被配置用于发送已添加所述第一时间标签的所述数据。According to yet another aspect of the present invention, there is provided a sending device for sending data, including: an encoding unit configured to add at least a first time stamp to the data to be sent; wherein the first time stamp indicates the latest time when the data was read; and a sending unit configured to send the data to which the first time stamp has been added.
根据本发明的又一方面,提供一种用于接收数据的接收设备,包括:接收单元,被配置用于接收其中至少已添加第一时间标签的数据;其中,所述第一时间标签指示所述数据被读取的最晚时间;解码单元,被配置用于从所述数据中提取所述第一时间标签;以及再编码单元,被配置用于在所述第一时间标签所指示的所述数据被读取的最晚时间之后,修改所接收的数据。According to still another aspect of the present invention, there is provided a receiving device for receiving data, including: a receiving unit configured to receive data to which at least a first time stamp has been added; wherein the first time stamp indicates the The latest time at which the data was read; a decoding unit configured to extract the first time stamp from the data; and a re-encoding unit configured to extract the first time stamp at the time indicated by the first time stamp Modify the received data after the latest time the data was read.
根据本发明的又一方面,提供一种通信系统,包括本发明的实施例所述的发送设备和接收设备。一种通信系统,包括:多个如本发明的实施例所提供的发送设备和多个如本发明的实施例所提供的接收设备;其中,所述发送设备被配置用于向所述接收设备发送数据;所述接收设备被配置用于从所述发送设备接收数据。According to still another aspect of the present invention, a communication system is provided, including the sending device and the receiving device described in the embodiments of the present invention. A communication system, comprising: a plurality of sending devices provided in the embodiments of the present invention and a plurality of receiving devices provided in the embodiments of the present invention; wherein, the sending devices are configured to send the receiving devices sending data; the receiving device is configured to receive data from the sending device.
根据本发明的又一方面,提供一种车机系统,包括用于车联网通信的无线通信系统,所述无线通信系统包括:一个如本发明的实施例所提供的发送设备和一个如本发明的实施例所提供的接收设备;其中,所述发送设备被配置用于向其它接收设备发送数据;所述接收设备被配置用于从其它发送设备接收数据。According to yet another aspect of the present invention, a vehicle-machine system is provided, including a wireless communication system for communication of the Internet of Vehicles, the wireless communication system including: a sending device as provided in an embodiment of the present invention and a wireless communication system according to the present invention The receiving device provided in the embodiment of the present invention; wherein, the sending device is configured to send data to other receiving devices; and the receiving device is configured to receive data from other sending devices.
根据本发明的又一方面,提供一种用于对将在通信子系统中传输的数据进行编码的方法,所述通信子系统至少包括数据发送设备和数据接收设备,所述方法包括:在数据中添加至少一个时间标签;在所述时间标签中添加用于标识所述通信子系统的唯一性的字段信息;以及将添加有所述时间标签和所述字段信息的数据编码为将被发送的数据。According to yet another aspect of the present invention, there is provided a method for encoding data to be transmitted in a communication subsystem, the communication subsystem at least including a data sending device and a data receiving device, the method comprising: adding at least one time stamp; adding field information used to identify the uniqueness of the communication subsystem to the time stamp; and encoding the data added with the time stamp and the field information into the data to be sent data.
根据本发明的又一方面,提供一种授时系统,所述授时系统被包含在与第二通信设备进行通信的第一通信设备或远程服务器中,并被配置用于向所述第二通信设备提供同步的时间信号,所述授时系统包括:编码单元,被配置用于生成添加有时间标签和用于标识所述第一通信设备和/或所述第二通信设备的唯一性的字段信息的数据;以及发送单元,被配置用于向所述第一通信设备发送所述数据。According to yet another aspect of the present invention, there is provided a time service system, which is included in a first communication device or a remote server that communicates with a second communication device, and is configured to send a message to the second communication device Providing a synchronized time signal, the time service system includes: an encoding unit configured to generate a time tag and field information for identifying the uniqueness of the first communication device and/or the second communication device data; and a sending unit configured to send the data to the first communication device.
本发明的实施例提供的方法、设备和系统可以用于按预定的时间和数据修改方式,简单高效地实现通信数据的加密和过期数据的自动销毁。The method, device and system provided by the embodiments of the present invention can be used to simply and efficiently realize the encryption of communication data and the automatic destruction of expired data according to the predetermined time and data modification mode.
附图说明Description of drawings
图1示出根据本发明的实施例用于在通信系统中发送数据的方法的流程图。Fig. 1 shows a flowchart of a method for transmitting data in a communication system according to an embodiment of the present invention.
图2示出根据本发明的实施例用于在通信系统中接收数据的方法的流程图。Fig. 2 shows a flowchart of a method for receiving data in a communication system according to an embodiment of the present invention.
图3示出根据本发明的实施例的数据结构示意图。Fig. 3 shows a schematic diagram of a data structure according to an embodiment of the present invention.
图4示出根据本发明的实施例用于发送数据的发送设备的结构方框图。Fig. 4 shows a structural block diagram of a sending device for sending data according to an embodiment of the present invention.
图5示出根据本发明的实施例用于接收数据的接收设备的结构方框图。FIG. 5 shows a structural block diagram of a receiving device for receiving data according to an embodiment of the present invention.
图6示出根据本发明的实施例的一种通信系统的结构方框图。Fig. 6 shows a structural block diagram of a communication system according to an embodiment of the present invention.
具体实施方式Detailed ways
图1示出根据本发明的实施例用于在通信系统中发送数据的方法的流程图。如1所示的方法100包括:由发送设备在将要发送的数据中至少添加第一时间标签(步骤110);其中,第一时间标签指示数据被读取的最晚时间;以及由发送设备发送已添加第一时间标签的数据(步骤120)。该数据可包括数字式信息、控制指令等各种数据。数据被读取的最晚时间可以是数据被指定的接收设备接收的最晚时间、数据在被接收后被使用的最晚时间、指令数据在被接收后被执行的最晚时间、数据在被接收后被解码的最晚时间等中的任一种。Fig. 1 shows a flowchart of a method for transmitting data in a communication system according to an embodiment of the present invention. The
根据该实施例的方法100,使得带有第一时间标签的数据只能被特定的接收设备接收和读取,该特定的接收设备是已被预先设定了从数据中提取第一时间标签和读取数据的接收设备。发送设备将添加第一时间标签的数据发送给接收设备,使得在相应的接收设备接收到所发送的数据后,通过提取其中的第一时间标签,可以在其中所指示的数据最晚读取时间之后对数据进行修改或销毁,从而可以按预定的时间和数据修改方式,简单高效地实现通信数据的加密和过期数据的自动销毁。添加第一时间标签使得数据具有时效性,一旦设定的数据最晚读取时间过后,通过预先设定的数据修改规则,将使数据的信息串可以被自动改写为无信息或无法还原的信息串。According to the
本发明的实施例尤其适用于传输即时性较强的数据,这种信息保存价值和再利用价值不大,及时销毁数据有利于接收设备节约存储空间。The embodiments of the present invention are especially suitable for transmitting data with strong immediacy, which has little value in preservation and reuse, and timely destruction of data is beneficial to saving storage space of the receiving device.
在一些实施例中,方法100还包括:由发送设备在将要发送的数据中添加第二时间标签;其中,第二时间标签指示数据被发送的时间;以及由发送设备发送已添加第一时间标签和第二时间标签的数据。接收设备在接收数据后,可以利用第二时间标签中所指示的数据发送时间来生成具有随机性的数据修改规则,以使修改后的数据难以被恢复,实现数据加密和销毁。例如,可以随机地将二进制信息串中的一部分或若干部分修改为全0或全1。修改后的数据即使从初始存储设备上被拷贝之后,也无法被还原,因为新的数据读取设备并不知晓数据修改规则,也不知晓数据结构和时间标签的含义。In some embodiments, the
在一些实施例中,第一时间标签被添加在数据的尾部,第二时间标签被添加在数据的首部。第一时间标签和第二时间标签中的时间量可以采用十进制表达,也可以采用二进制表达。图3示出根据本发明的实施例的一种数据的示例结构,其中将被发送的数据300包括数据本体部分302、位于其尾部的第一时间标签303和位于其首部的第二时间标签301。但本发明的实施例并不限于此,第一时间标签也可以被添加在数据的首部,第二时间标签也被添加在数据的尾部;或者,第一时间标签和第二时间标签可以被插入到数据中的其它任何位置。接收设备预先获取关于时间标签的添加和读取的设置信息,以便正确地从数据中提取第一和第二时间标签,读取所指示的时间信息。In some embodiments, the first time stamp is added at the end of the data, and the second time stamp is added at the beginning of the data. The time amounts in the first time tag and the second time tag can be expressed in decimal or binary. Fig. 3 shows an example structure of a kind of data according to an embodiment of the present invention, wherein the
本发明的实施例并不限于仅在数据中添加第一和第二时间标签,在业务需要时,还可以在数据中的特定位置处添加用于特定目的的第三时间标签、第四时间标签或更多的时间标签。例如,第三时间标签用于指示接收设备将数据全部清除或变为“0”的时间,第四时间标签用于指示数据中的指令信息被执行的最晚时间。The embodiment of the present invention is not limited to only adding the first and second time stamps in the data, and when business needs, the third time stamp and the fourth time stamp for specific purposes can also be added at a specific position in the data or more time tags. For example, the third time stamp is used to indicate the time when the receiving device clears or changes all the data to "0", and the fourth time stamp is used to indicate the latest time when the instruction information in the data is executed.
在上述实施例中,第一时间标签指示数据最晚读取时间,第二时间标签指示数据发送时间。这两个时间量可以是符合世界时系统的标准时间,包括公元年、月、日、小时、分、秒、毫秒等单位,也可以包含更小的微秒单位,并且是在整个通信系统中同步的时间。例如,第一时间标签的排列格式为:YYYY(年,4位)MM(月,2位)DD(日,2位)HH(小时,2位)MM(秒,2位)yyy(毫秒,3位),第一时间标签简称为“ET”。第二时间标签的排列格式也可以是:YYYYMMDDHHMMyyy,也可以包含更小的微秒单位,第二时间标签简称为“ST”。另一方面,由于第二时间标签指示数据发送时间,在有些情况下,第一时间标签也可以被设置为包含预定时间长度信息(例如,2小时10分钟),以指示数据最晚读取时间是数据发送时间之后预定长度的时间。In the above embodiments, the first time stamp indicates the latest data read time, and the second time stamp indicates the data transmission time. These two time quantities can be standard time conforming to the universal time system, including AD year, month, day, hour, minute, second, millisecond and other units, and can also include smaller units of microseconds, and are used in the entire communication system Synchronized time. For example, the arrangement format of the first time label is: YYYY (year, 4 digits) MM (month, 2 digits) DD (day, 2 digits) HH (hour, 2 digits) MM (seconds, 2 digits) yyy (milliseconds, 3 digits), the first time label is referred to as "ET". The arrangement format of the second time stamp can also be: YYYYMMDDHHMMyyy, and can also include a smaller microsecond unit, and the second time stamp is referred to as "ST". On the other hand, since the second time stamp indicates the data transmission time, in some cases, the first time stamp may also be set to include predetermined time length information (for example, 2 hours and 10 minutes) to indicate the latest data read time is a predetermined length of time after the data transmission time.
在上述实施例中,“数据最晚读取时间”实际上是针对数据读取设定的截止时间,一旦达到该时间,无论数据是否被读取、执行或利用,数据都将会被修改或清除。“数据最晚读取时间”的设定可以依据数据的用途和保密要求等因素,它可以被设定为在几秒至十几秒之间,不超过1分钟。如果接收到的数据中不包括第一时间标签,接收设备可以默认该数据将被保存且不做任何修改。In the above embodiments, the "latest data read time" is actually the cut-off time set for data reading. Once this time is reached, no matter whether the data is read, executed or utilized, the data will be modified or clear. The setting of "latest data reading time" can be based on factors such as data usage and confidentiality requirements, and it can be set between a few seconds to more than ten seconds, not exceeding 1 minute. If the received data does not include the first time stamp, the receiving device may assume that the data will be saved without any modification.
在一些实施例中,第一时间标签还可包含用于标识通信系统的唯一性的字段(也称为系统标签字段)。该系统标签字段是由整个通信系统中的所有数据发送设备和接收设备使用,它既可用于通信系统中的接收设备识别所接收的数据是属于该通信系统中传输的数据,也可用于数据的加密。系统外的其它通信设备即使接收到该数据,但是由于并不知晓该字段的含义和结构,因而也难以确定数据的内容和正确读取数据。在一些示例中,该系统标签字段可以包含代表通信设备(如发送设备和/或接收设备)的硬件厂商、软件厂商、通信设备(如发送设备和/或接收设备)使用位置等信息的外文缩写或汉字拼音缩写、以及设备出厂日期等。例如华为公司的设备对应的系统标签字段为“HW”,大众汽车公司的设备对应的系统标签字段为“VW”,在北京地区进行数据通信对应的系统标签字段为“BJ”等。例如,可采用“HWBJ20210205”代表华为公司在2021年2月5日出厂的通信设备在北京使用的系统标签。系统标签字段可以包含上述信息中的任一个或其不同的组合。由于系统标签字段包含的厂商和出厂日期等信息具有随机性,可以起到数据加密的作用。本发明的实施例所采用的系统标签字段并不限于上述示例,可以采用其它用于标识通信系统的唯一性的字段信息。另一方面,通过远程服务器的控制,第一时间标签内系统标签字段的信息是可变的,例如当发送设备处于不同的使用位置时,由云端服务器向通信系统的各个通信设备发送新的时间同步指示,其中包含指示更新位置的系统标签字段,从而可以在整个系统中使各个通信设备同步改变系统标签字段的信息,如发送设备的使用位置是由北京变为上海时,则该字段可由包含“BJ”变为包含“SH”;或者,可以通过远程服务器定期改变系统标签字段的信息,以有利于数据加密。In some embodiments, the first time stamp may also include a unique field for identifying the communication system (also referred to as a system label field). The system tag field is used by all data sending devices and receiving devices in the entire communication system. It can be used for the receiving device in the communication system to identify that the received data belongs to the data transmitted in the communication system, and it can also be used for data identification. encryption. Even if other communication devices outside the system receive the data, because they do not know the meaning and structure of the field, it is difficult to determine the content of the data and read the data correctly. In some examples, the system label field may contain foreign abbreviations representing information such as the hardware manufacturer of the communication device (such as the sending device and/or the receiving device), the software manufacturer, the location where the communication device (such as the sending device and/or the receiving device) is used, etc. Or the abbreviation of Chinese Pinyin, and the date of manufacture of the equipment. For example, the system label field corresponding to Huawei's equipment is "HW", the system label field corresponding to Volkswagen's equipment is "VW", and the system label field corresponding to data communication in the Beijing area is "BJ", etc. For example, "HWBJ20210205" can be used to represent the system label used in Beijing by Huawei's communication equipment shipped on February 5, 2021. The system tag field may contain any one or different combinations of the above information. Due to the randomness of information such as the manufacturer and date of manufacture contained in the system label field, it can play a role in data encryption. The system label field used in the embodiment of the present invention is not limited to the above examples, and other field information for uniquely identifying the communication system may be used. On the other hand, through the control of the remote server, the information in the system tag field in the first time tag is variable. For example, when the sending device is in a different location, the cloud server sends a new time to each communication device in the communication system. Synchronization indication, which contains the system label field indicating the update location, so that each communication device can change the information of the system label field synchronously throughout the system. For example, when the location of the sending device is changed from Beijing to Shanghai, this field can be included "BJ" becomes to contain "SH"; alternatively, the information in the system tag field can be periodically changed by the remote server to facilitate data encryption.
图2示出根据本发明的实施例用于在通信系统中接收数据的方法的流程图。图2所示的方法200包括:由接收设备接收其中至少已添加第一时间标签的数据(步骤210);其中,第一时间标签指示数据被读取的最晚时间;从数据中提取第一时间标签(步骤220);以及在第一时间标签所指示的数据被读取的最晚时间之后,修改所接收的数据(步骤230)。根据该实施例,接收设备接收到所发送的数据后,通过提取其中的第一时间标签,可以在其中所指示的数据最晚读取时间之后对数据进行修改或销毁,从而可以按预定的时间和数据修改方式,简单高效地实现通信数据的加密和过期数据的自动销毁,使接收设备节约存储空间。Fig. 2 shows a flowchart of a method for receiving data in a communication system according to an embodiment of the present invention. The
在一些实施例中,可以在数据中添加有第二时间标签,第二时间标签指示数据被发送的时间;方法200还包括:利用第一时间标签和/或第二时间标签生成用于修改数据的修改规则;以及在第一时间标签所指示的数据被读取的最晚时间之后,基于修改规则修改数据。由于第二时间标签中所指示的数据发送时间具有随机性,特别是数据发送时间中的秒和毫秒的数字存在很大的不确定性,使得接收设备在接收数据后,可以利用第二时间标签中所指示的数据发送时间来生成具有随机性的数据修改规则,以使修改后的数据难以被恢复,实现数据加密和销毁。In some embodiments, a second time stamp may be added to the data, and the second time stamp indicates the time when the data is sent; the
在一些实施例中,数据为二进制信息串;数据的修改包括修改或删除二进制信息串中的特定比特或特定比特串。如图3所示,数据本体部分302包括二进制信息串“1011……010”。在本发明的实施例中,数据并不限于为二进制信息串。In some embodiments, the data is a binary information string; modifying the data includes modifying or deleting specific bits or specific bit strings in the binary information string. As shown in FIG. 3, the
在一些实施例中,数据修改规则包括基于第二时间标签中的毫秒数来设定数据中将被修改或删除的二进制信息串中的特定比特;数据修改包括:将二进制信息串中的特定比特的“0”替换为“1”;和/或将二进制信息串中的特定比特的“1”替换为“0”。In some embodiments, the data modification rule includes setting specific bits in the binary information string to be modified or deleted in the data based on the number of milliseconds in the second timestamp; the data modification includes: setting the specific bit in the binary information string to and/or replace the "1" of a specific bit in the binary information string with a "0".
特定比特的0或者1的修改范围可以随机指定。在一个示例中,当第二时间标签中的毫秒数字的末尾数字为偶数(包括为零的情况)时,二进制信息串中所有的“1”被替换为“0”;当第二时间标签中的毫秒数字的末尾数字为奇数时,二进制信息串中所有的“0”被替换为“1”。The modification range of 0 or 1 for a specific bit can be randomly specified. In one example, when the last digit of the millisecond number in the second time stamp is an even number (including the case of zero), all "1" in the binary information string are replaced with "0"; When the last number of milliseconds is an odd number, all "0"s in the binary string are replaced with "1".
在另一个示例中,第二时间标签中所指示的数据发送时间是“20191017 103755123”,表示2019年10月17日10点37分55秒123毫秒。相应的数据修改规则按如下方式生成:取数据发送时间中的毫秒数123,计算1+2+3=6,将数据的二进制信息串中的第一个1至第六个1修改为0,第七个1至第十二个1不修改,第十三个1至第十八个1修改为0,以此类推,直至数据的整个二级制信息串的最后一位,完成整个数据的修改。由于数据发送时间中的“123”描述的是毫秒数,且在计算中对各个数字求和,使得求和结果“6”(其指示信息串中的位置)存在着很大的随机性和不确定性,因此根据数据发送时间中的毫秒数生成的上述数据修改规则也具有很大的随机性和不确定性;按照上述数据修改规则修改后的数据再被复原的可能性很小,数据修改很难被追溯。本领域技术人员可以理解,本发明的实施例并不限于此示例生成的数据修改规则,可以根据第二时间标签生成其它的数据修改规则。In another example, the data transmission time indicated in the second time tag is "20191017 103755123", which means 10:37:55 seconds and 123 milliseconds on October 17, 2019. The corresponding data modification rules are generated as follows: take the number of milliseconds 123 in the data sending time, calculate 1+2+3=6, modify the first 1 to the sixth 1 in the binary information string of the data to 0, The seventh 1 to the twelfth 1 are not modified, the thirteenth 1 to the eighteenth 1 are modified to 0, and so on until the last bit of the entire binary information string of the data, and the entire data is completed. Revise. Since "123" in the data transmission time describes the number of milliseconds, and each number is summed in the calculation, the sum result "6" (which indicates the position in the information string) has great randomness and inconsistency. Determinism, so the above data modification rules generated according to the number of milliseconds in the data sending time also have great randomness and uncertainty; the possibility of data modified according to the above data modification rules is very small, and the data modification It is difficult to be traced. Those skilled in the art can understand that the embodiment of the present invention is not limited to the data modification rules generated in this example, and other data modification rules can be generated according to the second time stamp.
在一个数据修改示例中,假设图3所示的第二时间标签301为“20191017 105355001”,指示本数据将于2019年10月17日上午10时53分55秒001毫秒被发送;第一时间标签303为“20191017 1053 58999”,指示本数据将于2019年10月17日上午10时53分58秒999毫秒失效(无法被读取);数据本体部分302为“011 010 101 011 111 000 010 101 0101”。假定该数据于2019年10月17日上午10时53分56秒123毫秒被接收,则可在第一时间标签303指示的数据失效时间之后,按照以下规则修改数据:(1)由于数据被接收的时间的毫秒数为123毫秒,取1+2+3=6;(2)检查数据本体部分302的二进制数据串,所有的“1”每6个一组,第一组的“1”全部替换为“0”,第二组的“1”不替换,第三组的“1”替换为“0”。由此,数据本体部分302被修改为“000 000 000 001 111 000 010 100 0000”。In a data modification example, assume that the
在一些实施例中,方法200还包括:在发送数据之前,接收设备进行时间同步,以在通信系统中保持时间计时的一致性和同步。由此使得接收设备可以精确地按照第一时间标签中的数据最晚读取时间来修改或销毁数据。接收设备和发送设备都可以包括时间同步单元以用于实现时间同步。另外,在发送设备和接收设备之间进行系统时间同步时约定时间标签的读取规则,包括各个时间标签在数据中的位置和标签长度。时间同步过程可以通过由独立的授时系统向接收设备和发送设备发射同步时间信息来进行,也可以通过由发送设备向接收设备发送同步时间信息来进行。在时间同步过程中可以设定由接收设备和发送设备构成的子系统的0点时间或起始时间,不要求每次进行时间同步时都使系统时间归零。In some embodiments, the
图4示出根据本发明的实施例用于发送数据的发送设备的结构方框图。图4所示的发送设备400包括:编码单元420,被配置用于在将要发送的数据中至少添加第一时间标签;其中,第一时间标签指示数据被读取的最晚时间;以及发送单元430,被配置用于发送已添加第一时间标签的数据。发送设备400可以用于实施上述实施例中如图1所示的方法100,通过发送至少添加有第一时间标签的数据,使数据接收设备可以按预定的时间和数据修改方式,简单高效地实现通信数据的加密和销毁。Fig. 4 shows a structural block diagram of a sending device for sending data according to an embodiment of the present invention. The sending
在一些实施例中,编码单元420还被配置用于在将要发送的数据中添加第二时间标签;其中第二时间标签指示数据被发送的时间;发送单元430还被配置用于发送已添加第一时间标签和第二时间标签的数据。In some embodiments, the
在一些实施例中,编码单元420将第一时间标签添加在数据的尾部,以及将第二时间标签添加在数据的首部。但本发明的实施例并不限于此。In some embodiments, the
在一些实施例中,发送设备400还包括:发送端时间同步单元410,被配置用于在发送数据之前进行时间同步。发送端时间同步单元410可以通过从独立的授时系统或其它通信设备接收同步时间信息来实现自身的系统时间同步,也可以通过向与之进行数据通信的接收设备发送同步时间信息来实现与接收设备的时间同步。In some embodiments, the sending
图5示出根据本发明的实施例用于接收数据的接收设备的结构方框图。接收设备500包括:接收单元510,被配置用于接收其中至少已添加第一时间标签的数据;其中第一时间标签指示数据被读取的最晚时间;解码单元530,被配置用于从数据中提取第一时间标签;以及再编码单元540,被配置用于在第一时间标签所指示的数据被读取的最晚时间之后,修改所接收的数据。接收设备500可以用于实施上述实施例中如图2所示的方法200,通过接收至少添加有第一时间标签的数据,接收设备500可以按预定的时间和数据修改方式,简单高效地实现通信数据的加密和销毁,易于实施且成本低廉。FIG. 5 shows a structural block diagram of a receiving device for receiving data according to an embodiment of the present invention. The receiving
在一些实施例中,所接收的数据还包含第二时间标签,第二时间标签指示数据被发送的时间;再编码单元540还被配置用于:利用第一时间标签和/或第二时间标签生成用于修改数据的修改规则;以及在第一时间标签所指示的数据被读取的最晚时间之后,基于修改规则修改数据。In some embodiments, the received data further includes a second time stamp, and the second time stamp indicates the time when the data was sent; the
在一些实施例中,所接收的数据为二进制信息串;再编码单元540还被配置用于基于修改规则来修改或删除二进制信息串中的特定比特或特定比特串。在一些实施例中,数据的修改规则包括基于第二时间标签中的毫秒数来设定数据中将被修改或删除的二进制信息串中的特定比特;数据的修改包括:将二进制信息串中的特定比特的“0”替换为“1”;和/或将二进制信息串中的特定比特的“1”替换为“0”。In some embodiments, the received data is a binary information string; the
在一些实施例中,接收设备600还包括:接收端时间同步单元520,被配置用于在接收数据之前进行时间同步。接收端时间同步单元520可以通过从独立的授时系统或其它通信设备接收同步时间信息来实现自身的系统时间同步,也可以通过从与之进行数据通信的发送设备接收同步时间信息来实现与发送设备的时间同步。In some embodiments, the receiving
图6示出根据本发明的实施例的一种通信系统的结构方框图。如图6所示,通信系统600包括:发送设备610和接收设备620。通信系统600可以包括多个发送设备610和多个接收设备620。为简化起见,图6中只示出一个发送设备610和一个接收设备620。发送设备610可以是上述实施例中图4所示的发送设备400;接收设备620可以是上述实施例中图5所示的接收设备500。发送设备610和接收设备620可以是各自独立的设备,也可以被分别包含在不同的信息处理系统中,以在相互之间进行数据的发送和接收。单个发送设备610和单个接收设备620在进行数据发送和接收时构成一个子系统,二者必须进行时间同步并约定数据的修改或销毁方式,并通过在数据中添加系统标签字段和增加数据修改的随机性来改善数据加密性能。Fig. 6 shows a structural block diagram of a communication system according to an embodiment of the present invention. As shown in FIG. 6 , a
在发送设备610和接收设备620进行时间同步的过程中,也可以将系统标签字段传输给整个通信系统600中的各个发送设备和接收设备,以便识别和读取所接收数据中的第一时间标签,进而正确地读取数据。发送设备610和接收设备620所同步的系统时间,是与系统标签字段(作为描述该系统唯一性的字段)相关联的。在以无线方式传输数据的过程中,数据可能会被预设的接收设备以外的任意第三方的接收设备接收时。然而,由于任意第三方的接收设备的系统时间没有与发送设备610进行过时间同步,任意第三方的接收设备没有系统标签字段的信息,因此任意第三方的接收设备无法读取该数据。In the process of time synchronization between the sending
通信系统600还可包括远程服务器(如云端服务器),用于向发送设备610和接收设备620提供必要的数据或控制指令,例如向系统中所有发送设备和接收设备传输统一的系统标签字段,在整个系统中对数据的时间标签进行统一变更,或是控制所有发送设备和接收设备的时间同步等。The
在图6所示的实施例中,发送设备610包括:信息标准化单元611,用于使将被发送的数据具有统一的标准格式,例如具有预定长度的二进制信息串;发送端时间同步单元612,用于与整个通信系统中的其它数据接收设备和发送设备进行时间同步;编码单元613;以及发送单元614。发送端时间同步单元612、编码单元613和发送单元614可以与上述实施例中图4所示的发送端时间同步单元410、编码单元420以及发送单元430相同。如图6所示,接收设备620包括:接收单元621,用于接收来自发送设备610的数据;接收端时间同步单元622,用于与发送设备610进行时间同步;解码单元623,用于从数据中提取第一时间标签和第二时间标签,数据也处于可读取状态;再编码单元624,用于在第一时间标签所指示的数据最晚读取时间之后,修改所接收的数据;以及存储单元625,用于存储修改后的数据。In the embodiment shown in FIG. 6, the sending
在一个示例中,在信息处理设备的初始化过程中通过无线通讯方式与另一个信息处理设备进行时间同步,即,通过发送端时间同步单元612与接收端时间同步单元622进行时间同步操作,以实现发送设备610和接收设备620之间的时间同步。在发送设备610启动后需要发送数据时,编码单元613生成二进制信息串作为将要发送的数据,通知发送单元614有数据发送需求,发送单元614确认可以发送并把预计发送时间点返回给编码单元613;编码单元613给二进制信息串加注时间标签ST和ET后,将编码后包含ST和ET的数据传送至发送单元614。发送单元614将数据经由数字信息传输渠道(有线或无线方式)传送给接收设备620。接收设备620在接收该数据后的若干秒钟,检视当前时间,并以当前时间比对ET和时间标签ET中预先设定的“数据最晚读取时间”,如果当前时间点位于预先设定的“数据最晚读取时间”之后,则再编码单元624将该数据的二进制信息串里的1完全被替代为0,或者相反,以修改所接收的数据;再编码单元624也可以直接将数据全部清零以销毁数据。In one example, during the initialization process of the information processing device, time synchronization is performed with another information processing device through wireless communication, that is, the
根据本发明的实施例提供的车机系统可包括用于车联网通信的无线通信系统,无线通信系统包括:一个如上述实施例所述的发送设备和一个如上述实施例所述的接收设备。发送设备可以是图4和图6所述的发送设备400或610,接收设备可以是图5和图6所述的接收设备500或620。发送设备可向其它接收设备发送包含时间标签的数据;接收设备从其它发送设备接收包含时间标签的数据,并在预定的数据最晚读取时间之后按预定的数据修改规则修改数据,从而简单高效地实现车联网通信数据的加密和销毁,清除在车联网通信中大量的即时通信数据,避免数据泄密及不必要地占用车机系统的数据存储资源。The vehicle-machine system provided according to the embodiments of the present invention may include a wireless communication system for communication in the Internet of Vehicles. The wireless communication system includes: a sending device as described in the above embodiments and a receiving device as described in the above embodiments. The sending device may be the sending
根据本发明的实施例,还提供一种用于对将在通信子系统中传输的数据进行编码的方法,通信子系统至少包括数据发送设备和数据接收设备,该数据编码方法包括:在数据中添加至少一个时间标签;在时间标签中添加用于标识通信子系统的唯一性的字段信息;以及将添加有时间标签和字段信息的数据编码为将被发送的数据。时间标签可以包含使通信子系统的数据发送设备和数据接收设备进行时间同步的系统时间。According to an embodiment of the present invention, there is also provided a method for encoding data to be transmitted in a communication subsystem. The communication subsystem includes at least a data sending device and a data receiving device. The data encoding method includes: in the data Adding at least one time stamp; adding field information used to identify the uniqueness of the communication subsystem in the time stamp; and encoding the data added with the time stamp and field information into data to be sent. The time stamp may contain a system time for time synchronization between the data sending device and the data receiving device of the communication subsystem.
在一些实施例中,时间标签中所添加的字段信息包括与数据发送设备和/或数据接收设备的设备生产商的名称、设备生产日期、数据发送设备和/或数据接收设备所处地理位置中的至少一项相关的信息。In some embodiments, the field information added in the time tag includes the name of the manufacturer of the data sending device and/or the data receiving device, the date of manufacture of the device, the geographic location of the data sending device and/or the data receiving device at least one item of relevant information.
根据本发明的实施例,还提供一种授时系统,该授时系统被包含在与第二通信设备进行通信的第一通信设备或远程服务器中,并被配置用于向第二通信设备提供同步时间信息,该授时系统包括:编码单元,被配置用于将同步时间信息和用于标识第一通信设备和/或第二通信设备的唯一性的字段信息编码为授时数据;以及发送单元,被配置用于向第二通信设备发送授时数据。同步时间信息包含用于使第一通信设备和第二通信设备进行时间同步的系统时间。According to an embodiment of the present invention, there is also provided a time service system, which is included in a first communication device or a remote server that communicates with a second communication device, and is configured to provide a synchronized time to the second communication device information, the timing system includes: an encoding unit configured to encode the synchronization time information and field information used to identify the uniqueness of the first communication device and/or the second communication device into timing data; and a sending unit configured Used to send timing data to the second communication device. The synchronization time information includes system time for time synchronization between the first communication device and the second communication device.
授时系统中的同步时间信息是独立于通信设备的计时信息。在一个示例中,由远程服务器(如云端服务器)向系统中的各个通信设备或车机系统发送包含同步时间信息的系统时间同步指示,以实现各个通信设备的时间同步。在另一个示例中,在整个通信系统允许某个或某些通信设备向其它通信设备发送系统时间同步指示,以使这些通信设备之间实现时间同步。在无线通信过程中,时间同步通常是数据可读性的前提。利用本发明的实施例的授时系统,可以对通信系统中的各个通信设备进行授时和时间同步,进而可以通过同步时间信息和标识设备唯一性的字段信息来实现数据加密。Synchronous time information in a timing system is timing information independent of communication devices. In one example, a remote server (such as a cloud server) sends a system time synchronization instruction including synchronization time information to each communication device or vehicle-machine system in the system, so as to realize time synchronization of each communication device. In another example, one or some communication devices are allowed to send a system time synchronization indication to other communication devices in the entire communication system, so as to realize time synchronization among these communication devices. During wireless communication, time synchronization is often a prerequisite for data readability. By using the time service system of the embodiment of the present invention, time service and time synchronization can be performed on each communication device in the communication system, and data encryption can be realized by synchronizing time information and field information identifying device uniqueness.
以上描述仅是本发明的优选实施例,并非构成对本发明的任何限制。本领域技术人员在了解了本发明内容和原理后,可以在不背离本发明原理的情况下,进行形式和细节上的各种修改和变型,而这些基于本发明原理的修改和变型仍应在本专利的权利要求书所限定的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and do not constitute any limitation to the present invention. After understanding the content and principle of the present invention, those skilled in the art can make various modifications and variations in form and details without departing from the principle of the present invention, and these modifications and variations based on the principle of the present invention should still be Within the scope of protection defined by the claims of this patent.
Claims (23)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110931195.1A CN115941215A (en) | 2021-08-13 | 2021-08-13 | Method and device for sending and receiving data, communication system, and vehicle-machine system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110931195.1A CN115941215A (en) | 2021-08-13 | 2021-08-13 | Method and device for sending and receiving data, communication system, and vehicle-machine system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN115941215A true CN115941215A (en) | 2023-04-07 |
Family
ID=86696453
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110931195.1A Pending CN115941215A (en) | 2021-08-13 | 2021-08-13 | Method and device for sending and receiving data, communication system, and vehicle-machine system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115941215A (en) |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009104284A1 (en) * | 2008-02-19 | 2009-08-27 | 富士通株式会社 | Stream data management program, method and system |
| CN106254327A (en) * | 2016-07-28 | 2016-12-21 | 努比亚技术有限公司 | Information processor and method |
| CN107211031A (en) * | 2015-02-09 | 2017-09-26 | 统有限责任两合公司 | For the method and software product of transmission data in multimedia system and the device for controlling the data transfer in multimedia system |
| CN107370721A (en) * | 2016-05-13 | 2017-11-21 | 福特全球技术公司 | Vehicle data is encrypted |
| CN111523987A (en) * | 2020-04-21 | 2020-08-11 | 江西省机电设备招标有限公司 | Quick exchange method of bidding data and bidding method |
-
2021
- 2021-08-13 CN CN202110931195.1A patent/CN115941215A/en active Pending
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2009104284A1 (en) * | 2008-02-19 | 2009-08-27 | 富士通株式会社 | Stream data management program, method and system |
| CN107211031A (en) * | 2015-02-09 | 2017-09-26 | 统有限责任两合公司 | For the method and software product of transmission data in multimedia system and the device for controlling the data transfer in multimedia system |
| CN107370721A (en) * | 2016-05-13 | 2017-11-21 | 福特全球技术公司 | Vehicle data is encrypted |
| CN106254327A (en) * | 2016-07-28 | 2016-12-21 | 努比亚技术有限公司 | Information processor and method |
| CN111523987A (en) * | 2020-04-21 | 2020-08-11 | 江西省机电设备招标有限公司 | Quick exchange method of bidding data and bidding method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7668207B2 (en) | System, method, and article of manufacture for synchronizing time of day clocks on first and second computers | |
| CN109388417B (en) | Communication protocol updating method, system and terminal equipment | |
| CN105025106A (en) | Breakpoint resuming method based on segmentation and meta-information | |
| CN104077265A (en) | Method of hybrid message passing with shared memory | |
| CN112492048B (en) | Message synchronization method and device, electronic equipment and readable storage medium | |
| CN103902342A (en) | System updating and upgrading method and system in enclosed environment | |
| CN104994483B (en) | A method of sending Big Dipper short message without card | |
| CN101022473B (en) | Method for automatic, identifying plate card configration and generating local data in exchanger | |
| CN114389889B (en) | File full life cycle management method and device based on block chain technology | |
| CN104881485A (en) | Data synchronizing method and system | |
| CN115941215A (en) | Method and device for sending and receiving data, communication system, and vehicle-machine system | |
| CN111917630A (en) | Data transmission method, data transmission device, storage medium and electronic device | |
| CN108270546A (en) | A kind of method and system of information transmission | |
| CN107835243A (en) | A kind of data transmission method, system, electronic equipment and storage medium | |
| US11516561B2 (en) | Method for reading fluid meters | |
| CN111385101A (en) | File transmission method and device | |
| CN114116375A (en) | A kind of data transmission method and device based on PLDM protocol | |
| CN110471922B (en) | Content extension method and device for accounting node and computer readable storage medium | |
| CN117200922A (en) | Time synchronization method, device, computer equipment and storage medium | |
| US10051436B2 (en) | Compression with multicast dictionary | |
| CN108551366B (en) | Visible light communication method based on LED and mobile phone camera | |
| CN114938293A (en) | NGINX data tracing method, device, equipment and storage medium based on block chain | |
| CN112148507A (en) | Internet financial industry data acquisition system | |
| CN106484666B (en) | Big data splitting and assembling method, device and public message management system | |
| CN111030804A (en) | Fault information transmission method, device, system, equipment and storage medium |
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 |