WO2019071718A1 - 数据传输方法、装置和车载系统 - Google Patents
数据传输方法、装置和车载系统 Download PDFInfo
- Publication number
- WO2019071718A1 WO2019071718A1 PCT/CN2017/111656 CN2017111656W WO2019071718A1 WO 2019071718 A1 WO2019071718 A1 WO 2019071718A1 CN 2017111656 W CN2017111656 W CN 2017111656W WO 2019071718 A1 WO2019071718 A1 WO 2019071718A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data transmission
- data
- threshold
- server
- condition
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Definitions
- the present invention relates to the field of in-vehicle technology, and in particular, to a data transmission method, apparatus, and vehicle system.
- an in-vehicle system needs to establish a long connection with a server, and transmit data such as vehicle information to a server.
- data such as vehicle information
- the in-vehicle system needs to send a heartbeat packet to the server, so that the long connection takes up bandwidth resources, resulting in waste of network resources, increasing the user's traffic cost, and the impact.
- the user experience In the prior art, an in-vehicle system needs to establish a long connection with a server, and transmit data such as vehicle information to a server.
- the in-vehicle system needs to send a heartbeat packet to the server, so that the long connection takes up bandwidth resources, resulting in waste of network resources, increasing the user's traffic cost, and the impact. The user experience.
- a primary object of the present invention is to provide a data transmission method, apparatus, and in-vehicle system, aiming at reducing waste of network resources and improving user experience.
- an embodiment of the present invention provides a data transmission method, where the method is applied to an in-vehicle system, and includes the following steps:
- the step of determining whether the data sending condition is met includes:
- the first threshold is 20-40 seconds.
- the step of determining whether the data sending condition is met includes:
- the step of determining whether the data sending condition is met includes: [0015] determining whether the mileage of the vehicle after the last data transmission is greater than or equal to a third threshold;
- the third threshold is 0.5-1 km.
- the method further includes:
- the method further includes: resending the data to the server by using an http protocol.
- the method further includes:
- the embodiment of the present invention provides a data transmission device, where the device is applied to an in-vehicle system, and includes: [0026] a condition determination module, configured to determine whether a data transmission condition is met;
- the data sending module is configured to send data to the server by using the http protocol when the data sending condition is met.
- the condition determining module includes:
- a first determining unit configured to determine whether an interval between the last time data is transmitted is greater than or equal to a first threshold
- the first determining unit is configured to determine that the data sending condition is met when the interval is greater than or equal to the first threshold ⁇ .
- condition determining module includes:
- a second determining unit configured to determine whether a capacity of the data to be sent is greater than or equal to a second threshold;
- a second determining unit configured to determine, when the capacity is greater than or equal to the second threshold, Meet the data transmission conditions.
- condition determining module includes:
- a third determining unit configured to determine whether the mileage of the vehicle after the last data transmission is greater than or equal to a third threshold
- a third determining unit configured to determine that the number of satisfaction is satisfied when the mileage is greater than or equal to the third threshold According to the conditions of transmission.
- the device further includes:
- a response determining module configured to determine whether the response information of the server is received in the preset time
- a failure decision module configured to receive the response of the server when not in the preset time Information ⁇ , judgment data transmission failed.
- the device further includes a resending module, where the resending module is configured to:
- the device further includes:
- a data receiving module configured to receive data sent by the server
- the data parsing module is configured to parse the data by using an http protocol.
- Embodiments of the present invention also provide an in-vehicle system, the system including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application It is configured to perform the aforementioned data transmission method.
- a data transmission method provided by an embodiment of the present invention whenever the data transmission condition is met, by htt
- the P protocol sends data to the server once, and does not need to establish a long connection with the server as in the prior art, thereby avoiding the waste of network resources caused by the long bandwidth connection between the long connection, reducing the traffic cost of the user, and improving the user experience. .
- FIG. 1 is a flow chart of an embodiment of a data transmission method of the present invention
- FIG. 2 is a block diagram showing a first embodiment of a data transmission device of the present invention
- FIG. 3 is a block diagram of the condition determination module of FIG. 2;
- FIG. 4 is a block diagram of still another module of the condition determination module of FIG. 2;
- FIG. 5 is another block diagram of the condition determination module of FIG. 2;
- FIG. 6 is a block diagram showing a second embodiment of a data transmission device of the present invention.
- the server used herein includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud composed of a plurality of servers.
- the cloud is composed of a large number of computers or network servers based on Cloud Computing, which is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
- communication may be implemented by any communication means between the server, the terminal device and the WNS server, including but not limited to, mobile communication based on 3GPP, LTE, WIMAX, and computer network communication based on TCP/IP and UDP protocols. And near Bluetooth-based, infrared transmission standards Distance to wireless transmission.
- the data transmission method and device of the embodiment of the present invention are mainly applied to an in-vehicle system, and may be applied to other terminal devices, which is not limited by the present invention.
- the following is a detailed description of the application to the in-vehicle system.
- a first embodiment of a data transmission method includes the following steps: [0061] Sl1: Determine whether a data transmission condition is met. When the data transmission condition is met, proceed to the next step S12
- the in-vehicle system does not establish a long connection with the server, but communicates with the server through a short connection. Whenever the data transmission condition is met, the in-vehicle system sends the data to the server once through the HyperTy Transfer Protocol (HTTP protocol).
- HTTP protocol HyperTy Transfer Protocol
- the data transmission condition may be set according to actual needs, and may be set to fixed transmission, quantitative transmission, certain mileage transmission once, trigger specific event transmission once, and the like.
- the in-vehicle system determines whether the interval between the last transmission data is greater than or equal to the first threshold, and when the interval is greater than or equal to the first threshold, determining that the data transmission condition is met, and The server sends the data once.
- the specific implementation may be performed by a fixed device. Whenever the predetermined threshold is reached, the onboard system determines that the data transmission condition is met, and sends the data to the server through the ht tp protocol. The same time, the filter is cleared and re-calculated.
- the in-vehicle system determines to transmit data.
- the first threshold that is, the interval between the preset fixed transmissions, can be set according to actual needs, and is preferably set to 20-40 seconds, for example, data is sent every 30 seconds.
- the in-vehicle system determines whether the capacity of the data to be sent is greater than or equal to a second threshold, and when the capacity is greater than or equal to the second threshold, determining that the data transmission condition is met, sending the data to the server by using the http protocol.
- the in-vehicle system can buffer the data to be sent into a certain amount of storage space. When the remaining space of the storage space is less than or equal to the set value (for example, equal to zero ⁇ ), the in-vehicle system determines that the data transmission condition is met, and The http protocol sends data to the server once.
- the in-vehicle system quantitatively transmits data.
- the second threshold that is, the data size of the preset quantitative transmission, can be set according to actual needs.
- the in-vehicle system determines whether the mileage of the vehicle after the last data transmission is greater than or equal to the third The threshold value, when the mileage is greater than or equal to the third threshold, determines that the data transmission condition is satisfied, and sends the data to the server once through the http protocol.
- the in-vehicle system can read or calculate the data of the odometer, and use the currently read data minus the data read last time to determine whether the difference is greater than or equal to the third threshold. If the difference is greater than or equal to the third threshold ⁇ , it is determined that the data transmission condition is satisfied, and the data is sent to the server once through the http protocol.
- the in-vehicle system transmits data once every certain mileage.
- the third threshold that is, the preset interval, can be set according to actual needs, preferably set to 0.5-1 km, for example, if the vehicle transmits data once every 1 km.
- the in-vehicle system transmits the data, it is determined whether the response information of the server is received in the preset time, and when the response information of the server is not received in the preset time, the data transmission failure is determined.
- the server after receiving the data sent by the in-vehicle system, the server feeds back response information to the in-vehicle system to notify the in-vehicle system that the data has been received, and when the in-vehicle system receives the response information sent by the server, determining This data transmission is successful, otherwise it is determined that the data transmission failed.
- the preset time is a preset response time, which can be set according to actual needs. For example, if it is set to 3 seconds, when the response information of the server is received within 3 seconds after the data is transmitted, the current data transmission is determined. Successfully, when the response information of the server is not received within 3 seconds after the data is transmitted, it is determined that the data transmission failed.
- the in-vehicle system resends the data to the server through the http protocol until the data transmission is successful.
- the in-vehicle system may adopt other processing manners after the data transmission fails, which is not limited by the present invention.
- the server also sends data to the in-vehicle system through the http protocol, and after receiving the data sent by the server, the in-vehicle system parses the data through the http protocol.
- the data transmission method of the embodiment of the present invention when the data transmission condition is met, sends the data to the server once through the http protocol, and does not need to establish a long connection with the server as in the prior art, thereby avoiding the occupied bandwidth of the long connection and the long connection.
- the resource causes the waste of network resources, reduces the user's traffic cost and sells, and improves the user experience.
- a condition determination module 10 is configured to determine whether a data transmission condition is satisfied
- the sending module 20 is configured to send data to the server by using the http protocol when the data sending condition is met.
- the data transmission condition may be set according to actual needs, and may be set to fixed transmission, quantitative transmission, certain mileage transmission once, trigger specific event transmission once, and the like.
- the condition determining module 10 includes a first determining unit 11 and a first determining unit 12, where: the first determining unit 11 is configured to determine the interval between the last time data is sent. Whether it is greater than or equal to the first threshold; the first determining unit 12 is configured to determine that the data transmission condition is met when the interval is greater than or equal to the first threshold ⁇ .
- the first threshold that is, the interval between the preset fixed transmissions, can be set according to actual needs, and is preferably set to 20-40 seconds, for example, data is sent every 30 seconds.
- the first determining unit 11 may perform counting by using a timer, and each time the meter reaches the set first threshold ⁇ , it determines that the data sending condition is met, and the same setting The device is reset to zero, and the cycle is repeated.
- the condition judging module 10 includes a second judging unit 13 and a second judging unit 14, wherein: the second judging unit 13 is configured to determine whether the capacity of the data to be sent is greater than or The second determining unit 14 is configured to determine that the data sending condition is met when the capacity of the data to be sent is greater than or equal to the second threshold.
- the second threshold which is the size of the preset quantitative data, can be set according to actual needs.
- the data to be sent may be buffered into a certain amount of storage space.
- a set value ⁇ eg, equal to zero ⁇
- the second determining unit 13 determines that the data is satisfied. Send conditions.
- the condition determining module 10 includes a third determining unit 15 and a third determining unit 16, wherein: the third determining unit 15 is configured to determine the mileage of the vehicle after the last data transmission. Whether it is greater than or equal to the third threshold; the third determining unit 16 is configured to determine that the data transmission condition is met when the mileage is greater than or equal to the third threshold.
- the third threshold that is, the interval interval at which the data is transmitted at a preset interval, may be set according to actual needs, and is preferably set to 0.5-1 km, for example, the data is transmitted once every 1 km of the vehicle.
- the third determining unit 15 may calculate or calculate the data of the odometer, and use the current The read data is subtracted from the data read last time, and the difference is greater than or equal to the third threshold. When the difference is greater than or equal to the third threshold, it is determined that the data transmission condition is satisfied.
- the apparatus further includes a response determining module 30 and a failure determining module 40, wherein: the response determining module 30 is configured to determine whether Receiving the response information of the server in the preset time; the failure decision module 40 is configured to determine that the data transmission fails when the response information of the server is not received in the preset time.
- the server after receiving the data sent by the in-vehicle system, the server feeds back response information to the in-vehicle system to notify the in-vehicle system that the data has been received, and when the in-vehicle system receives the response information sent by the server, it determines This data transmission is successful, otherwise it is determined that the data transmission failed.
- the preset time is a preset response time, which can be set according to actual needs. For example, if it is set to 3 seconds, when the response information of the server is received within 3 seconds after the data is transmitted, the current data transmission is determined. Successfully, when the response information of the server is not received within 3 seconds after the data is transmitted, it is determined that the data transmission failed.
- the device further includes a retransmission module 50, configured to: when the data transmission fails, resend the data to the server through the http protocol. This ensures that the data is sent successfully.
- a retransmission module 50 configured to: when the data transmission fails, resend the data to the server through the http protocol. This ensures that the data is sent successfully.
- the in-vehicle system may adopt other processing manners after the data transmission fails, which is not limited by the present invention.
- the server also sends data to the in-vehicle system through the http protocol
- the device further includes a data receiving module and a data parsing module, where: the data receiving module is configured to receive data sent by the server; and the data parsing module is configured to pass The http protocol parses the data.
- the data transmission device of the embodiment of the present invention sends a data to the server through the http protocol every time the data transmission condition is satisfied, and does not need to establish a long connection with the server as in the prior art, thereby avoiding the bandwidth occupied by the long connection and the long connection.
- the resource causes the waste of network resources, reduces the user's traffic cost and sells, and improves the user experience.
- the present invention also provides an in-vehicle system including a memory, a processor, and at least one application stored in the memory and configured to be executed by the processor, the application being configured to use Perform the data transfer method.
- the data transmission method includes the following steps: determining whether the number is satisfied According to the transmission condition; when the data transmission condition is satisfied, the data is transmitted to the server through the http protocol.
- the data transmission method described in this embodiment is the data transmission method involved in the foregoing embodiment of the present invention, and details are not described herein again.
- the present invention includes apparatus related to performing one or more of the operations described herein.
- These devices may be specially designed and manufactured for the required purposes, or may also include known devices in a general purpose computer.
- These devices have computer programs stored therein that are selectively activated or reconfigured.
- Such computer programs may be stored in a device (eg, computer) readable medium or in any type of medium suitable for storing electronic instructions and respectively coupled to a bus, including but not limited to any Types of disks (including floppy disks, hard disks, CDs, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only)
- a readable medium includes any medium that is stored or transmitted by a device (e.g., a computer) in a readable form.
- each block of the block diagrams and/or block diagrams and/or flow diagrams can be implemented by computer program instructions, and/or in the block diagrams and/or block diagrams and/or flow diagrams The combination of boxes.
- these computer program instructions can be implemented by a general purpose computer, a professional computer, or a processor of other programmable data processing methods, such that the processor is executed by a computer or other programmable data processing method.
- the block diagrams and/or block diagrams of the invention and/or the schemes specified in the blocks or blocks of the flow diagram are invented.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明揭示了一种数据传输方法,所述方法包括以下步骤:判断是否满足数据发送条件;当满足数据发送条件时,通过http协议向服务器发送数据。本发明实施例所提供的一种数据传输方法,每当满足数据发送条件时,通过http协议向服务器发送一次数据,减少了用户的流量费用开销,提升了用户体验。
Description
数据传输方法、 装置和车载系统 技术领域
[0001] 本发明涉及车载技术领域, 特别是涉及到一种数据传输方法、 装置和车载系统 背景技术
[0002] 现有技术中, 车载系统需要与服务器建立长连接, 并将车机信息等数据发送给 服务器。 为了维持长连接, 即使没有数据传输, 车载系统也需要定吋向服务器 发送心跳包, 从而使得长连接长吋间占用带宽资源, 导致了网络资源的浪费, 增加了用户的流量费用幵销, 影响了用户体验。
技术问题
[0003] 本发明的主要目的为提供一种数据传输方法、 装置和车载系统, 旨在减少网络 资源的浪费, 提升用户体验。
问题的解决方案
技术解决方案
[0004] 为达以上目的, 本发明实施例提出一种数据传输方法, 所述方法应用于车载系 统, 包括以下步骤:
[0005] 判断是否满足数据发送条件;
[0006] 当满足数据发送条件吋, 通过 http协议向服务器发送数据。
[0007] 可选地, 所述判断是否满足数据发送条件的步骤包括:
[0008] 判断距离上次发送数据的间隔吋间是否大于或等于第一阈值;
[0009] 当所述间隔吋间大于或等于所述第一阈值吋, 判定满足数据发送条件。
[0010] 可选地, 所述第一阈值为 20-40秒。
[0011] 可选地, 所述判断是否满足数据发送条件的步骤包括:
[0012] 判断待发送的数据的容量是否大于或等于第二阈值;
[0013] 当所述容量大于或等于所述第二阈值吋, 判定满足数据发送条件。
[0014] 可选地, 所述判断是否满足数据发送条件的步骤包括:
[0015] 判断上次发送数据之后车辆的行驶里程是否大于或等于第三阈值;
[0016] 当所述行驶里程大于或等于所述第三阈值吋, 判定满足数据发送条件。
[0017] 可选地, 所述第三阈值为 0.5-1公里。
[0018] 可选地, 所述通过 http协议向服务器发送数据的步骤之后还包括:
[0019] 判断是否在预设吋间内接收到所述服务器的响应信息;
[0020] 当没有在预设吋间内接收到所述服务器的响应信息吋, 判定数据发送失败。
[0021] 可选地, 所述判定数据发送失败的步骤之后还包括: 重新通过 http协议向服务 器发送所述数据。
[0022] 可选地, 所述方法还包括:
[0023] 接收服务器发送的数据;
[0024] 通过 http协议解析所述数据。
[0025] 本发明实施例同吋提出一种数据传输装置, 所述装置应用于车载系统, 包括: [0026] 条件判断模块, 用于判断是否满足数据发送条件;
[0027] 数据发送模块, 用于当满足数据发送条件吋, 通过 http协议向服务器发送数据 [0028] 可选地, 所述条件判断模块包括:
[0029] 第一判断单元, 用于判断距离上次发送数据的间隔吋间是否大于或等于第一阈 值;
[0030] 第一判决单元, 用于当所述间隔吋间大于或等于所述第一阈值吋, 判定满足数 据发送条件。
[0031] 可选地, 所述条件判断模块包括:
[0032] 第二判断单元, 用于判断待发送的数据的容量是否大于或等于第二阈值; [0033] 第二判决单元, 用于当所述容量大于或等于所述第二阈值吋, 判定满足数据发 送条件。
[0034] 可选地, 所述条件判断模块包括:
[0035] 第三判断单元, 用于判断上次发送数据之后车辆的行驶里程是否大于或等于第 三阈值;
[0036] 第三判决单元, 用于当所述行驶里程大于或等于所述第三阈值吋, 判定满足数
据发送条件。
[0037] 可选地, 所述装置还包括:
[0038] 响应判断模块, 用于判断是否在预设吋间内接收到所述服务器的响应信息; [0039] 失败判决模块, 用于当没有在预设吋间内接收到所述服务器的响应信息吋, 判 定数据发送失败。
[0040] 可选地, 所述装置还包括重新发送模块, 所述重新发送模块用于:
[0041] 当数据发送失败吋, 重新通过 http协议向服务器发送所述数据。
[0042] 可选地, 所述装置还包括:
[0043] 数据接收模块, 用于接收服务器发送的数据;
[0044] 数据解析模块, 用于通过 http协议解析所述数据。
[0045] 本发明实施例还提出一种车载系统, 所述系统包括存储器、 处理器和至少一个 被存储在所述存储器中并被配置为由所述处理器执行的应用程序, 所述应用程 序被配置为用于执行前述数据传输方法。
发明的有益效果
有益效果
[0046] 本发明实施例所提供的一种数据传输方法, 每当满足数据发送条件吋, 通过 htt
P协议向服务器发送一次数据, 无需像现有技术那样与服务器建立长连接, 避免 了长连接长吋间占用带宽资源而导致网络资源的浪费, 减少了用户的流量费用 幵销, 提升了用户体验。
对附图的简要说明
附图说明
[0047] 图 1是本发明的数据传输方法一实施例的流程图;
[0048] 图 2是本发明的数据传输装置第一实施例的模块示意图;
[0049] 图 3是图 2中的条件判断模块的模块示意图了;
[0050] 图 4是图 2中的条件判断模块的又一模块示意图;
[0051] 图 5是图 2中的条件判断模块的又一模块示意图;
[0052] 图 6是本发明的数据传输装置第二实施例的模块示意图。
[0053] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。
实施该发明的最佳实施例
本发明的最佳实施方式
[0054] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。
[0055] 下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至 终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 下 面通过参考附图描述的实施例是示例性的, 仅用于解释本发明, 而不能解释为 对本发明的限制。
[0056] 本技术领域技术人员可以理解, 除非特意声明, 这里使用的单数形式"一"、 " 一个"、 "所述 "和"该"也可包括复数形式。 应该进一步理解的是, 本发明的说明 书中使用的措辞"包括"是指存在所述特征、 整数、 步骤、 操作、 元件和 /或组件 , 但是并不排除存在或添加一个或多个其他特征、 整数、 步骤、 操作、 元件、 组件和 /或它们的组。 应该理解, 当我们称元件被"连接"或"耦接"到另一元件吋 , 它可以直接连接或耦接到其他元件, 或者也可以存在中间元件。 此外, 这里 使用的"连接"或"耦接"可以包括无线连接或无线耦接。 这里使用的措辞 "和 /或"包 括一个或更多个相关联的列出项的全部或任一单元和全部组合。
[0057] 本技术领域技术人员可以理解, 除非另外定义, 这里使用的所有术语 (包括技 术术语和科学术语) , 具有与本发明所属领域中的普通技术人员的一般理解相 同的意义。 还应该理解的是, 诸如通用字典中定义的那些术语, 应该被理解为 具有与现有技术的上下文中的意义一致的意义, 并且除非像这里一样被特定定 义, 否则不会用理想化或过于正式的含义来解释。
[0058] 本技术领域技术人员可以理解, 这里所使用的服务器, 其包括但不限于计算机 、 网络主机、 单个网络服务器、 多个网络服务器集或多个服务器构成的云。 在 此, 云由基于云计算 (Cloud Computing) 的大量计算机或网络服务器构成, 其 中, 云计算是分布式计算的一种, 由一群松散耦合的计算机集组成的一个超级 虚拟计算机。 本发明的实施例中, 服务器、 终端设备与 WNS服务器之间可通过 任何通信方式实现通信, 包括但不限于, 基于 3GPP、 LTE、 WIMAX的移动通信 、 基于 TCP/IP、 UDP协议的计算机网络通信以及基于蓝牙、 红外传输标准的近
距无线传输方式。
[0059] 本发明实施例的数据传输方法和装置, 主要应用于车载系统, 当然也可以应用 于其他的终端设备, 本发明对此不作限定。 以下以应用于车载系统为例进行详 细说明。
[0060] 参照图 1, 提出本发明的数据传输方法第一实施例, 所述方法包括以下步骤: [0061] Sl l、 判断是否满足数据发送条件。 当满足数据发送条件吋, 进入下一步骤 S12
[0062] S12、 通过 http协议向服务器发送数据。
[0063] 本发明实施例中, 车载系统不与服务器建立长连接, 而是通过短连接与服务器 进行通信。 每当满足数据发送条件吋, 车载系统就通过超文本传输协议 (HyperTe xt Transfer Protocol, HTTP协议)向服务器发送一次数据。
[0064] 本发明实施例中, 数据发送条件可以根据实际需要设定, 可以设定为定吋发送 、 定量发送、 一定行驶里程发送一次、 触发特定事件发送一次等等。
[0065] 可选地, 车载系统判断距离上次发送数据的间隔吋间是否大于或等于第一阈值 , 当间隔吋间大于或等于第一阈值吋, 则判定满足数据发送条件, 通过 http协议 向服务器发送一次数据。 具体实施吋, 可以通过定吋器进行计吋, 每当定吋器 的计吋吋间达到设定的第一阈值吋, 车载系统则判定满足数据发送条件, 通过 ht tp协议向服务器发送一次数据, 同吋定吋器清零重新计吋, 如此循环往复。
[0066] 也就是说, 车载系统定吋发送数据。 第一阈值即预设的定吋发送的间隔吋间, 可以根据实际需要设定, 优选设定为 20-40秒, 如每隔 30秒发送一次数据。
[0067] 可选地, 车载系统判断待发送的数据的容量是否大于或等于第二阈值, 当容量 大于或等于第二阈值吋, 判定满足数据发送条件, 通过 http协议向服务器发送一 次数据。 具体实施吋, 车载系统可以将待发送的数据缓存到一定量的存储空间 内, 当存储空间的剩余空间小于或等于设定值吋 (如等于零吋) , 车载系统则 判定满足数据发送条件, 通过 http协议向服务器发送一次数据。
[0068] 也就是说, 车载系统定量发送数据。 第二阈值即预设的定量发送的数据大小, 可以根据实际需要设定。
[0069] 可选地, 车载系统判断上次发送数据之后车辆的行驶里程是否大于或等于第三
阈值, 当行驶里程大于或等于第三阈值吋, 判定满足数据发送条件, 通过 http协 议向服务器发送一次数据。 具体实施吋, 车载系统可以实吋或定吋的读取里程 表的数据, 利用当前读取的数据减去上次发送数据吋读取的数据, 判断差值是 否大于或等于第三阈值, 当差值大于或等于第三阈值吋, 则判定满足数据发送 条件, 通过 http协议向服务器发送一次数据。
[0070] 也就是说, 车载系统每隔一定行驶里程发送一次数据。 第三阈值即预设的间隔 发送数据的间隔行程, 可以根据实际需要设定, 优选设定为 0.5-1公里, 如车辆 每行驶 1公里发送一次数据。
[0071] 本领域技术人员可以理解, 除此之外, 还可以根据需要采用现有技术的其它方 式来设定数据发送条件, 本发明对此不再一一列举赘述。
[0072] 进一步地, 当车载系统发送数据后, 判断是否在预设吋间内接收到服务器的响 应信息, 当没有在预设吋间内接收到服务器的响应信息吋, 判定数据发送失败
[0073] 本发明实施例中, 服务器接收到车载系统发送的数据后, 会向车载系统反馈响 应信息, 以通知车载系统已接收到数据, 当车载系统接收到服务器发送的响应 信息吋, 则判定本次数据发送成功, 否则判定本次数据发送失败。 预设吋间是 预先设定的响应吋间, 可以根据实际需要设定, 如设定为 3秒, 当在发送数据后 的 3秒内接收到服务器的响应信息吋, 则判定本次数据发送成功, 当没有在发送 数据后的 3秒内接收到服务器的响应信息吋, 则判定本次数据发送失败。
[0074] 进一步地, 当数据发送失败吋, 车载系统重新通过 http协议向服务器发送数据 , 直到本次数据发送成功为止。 当然, 在其它实施例中, 在数据发送失败后, 车载系统也可以采取其它处理方式, 本发明对此不作限定。
[0075] 进一步地, 服务器也通过 http协议向车载系统发送数据, 车载系统接收到服务 器发送的数据后, 则通过 http协议解析该数据。
[0076] 本发明实施例的数据传输方法, 每当满足数据发送条件吋, 通过 http协议向服 务器发送一次数据, 无需像现有技术那样与服务器建立长连接, 避免了长连接 长吋间占用带宽资源而导致网络资源的浪费, 减少了用户的流量费用幵销, 提 升了用户体验。
[0077] 参照图 2, 提出本发明的数据传输装置第一实施例, 所述装置包括条件判断模 块 10和数据发送模块 20, 其中: 条件判断模块 10, 用于判断是否满足数据发送 条件; 数据发送模块 20, 用于当满足数据发送条件吋, 通过 http协议向服务器发 送数据。
[0078] 本发明实施例中, 数据发送条件可以根据实际需要设定, 可以设定为定吋发送 、 定量发送、 一定行驶里程发送一次、 触发特定事件发送一次等等。
[0079] 可选地, 如图 3所示, 条件判断模块 10包括第一判断单元 11和第一判决单元 12 , 其中: 第一判断单元 11, 用于判断距离上次发送数据的间隔吋间是否大于或 等于第一阈值; 第一判决单元 12, 用于当间隔吋间大于或等于第一阈值吋, 判 定满足数据发送条件。 第一阈值即预设的定吋发送的间隔吋间, 可以根据实际 需要设定, 优选设定为 20-40秒, 如每隔 30秒发送一次数据。
[0080] 具体实施吋, 第一判断单元 11可以通过定吋器进行计吋, 每当定吋器的计吋吋 间达到设定的第一阈值吋, 则判定满足数据发送条件, 同吋定吋器清零重新计 吋, 如此循环往复。
[0081] 可选地, 如图 4所示, 条件判断模块 10包括第二判断单元 13和第二判决单元 14 , 其中: 第二判断单元 13, 用于判断待发送的数据的容量是否大于或等于第二 阈值; 第二判决单元 14, 用于当待发送的数据的容量大于或等于第二阈值吋, 判定满足数据发送条件。 第二阈值即预设的定量发送的数据大小, 可以根据实 际需要设定。
[0082] 具体实施吋, 可以将待发送的数据缓存到一定量的存储空间内, 当存储空间的 剩余空间小于或等于设定值吋 (如等于零吋) , 第二判断单元 13则判定满足数 据发送条件。
[0083] 可选地, 如图 5所示, 条件判断模块 10包括第三判断单元 15和第三判决单元 16 , 其中: 第三判断单元 15, 用于判断上次发送数据之后车辆的行驶里程是否大 于或等于第三阈值; 第三判决单元 16, 用于当行驶里程大于或等于第三阈值吋 , 判定满足数据发送条件。 第三阈值即预设的间隔发送数据的间隔行程, 可以 根据实际需要设定, 优选设定为 0.5-1公里, 如车辆每行驶 1公里发送一次数据。
[0084] 具体实施吋, 第三判断单元 15可以实吋或定吋的读取里程表的数据, 利用当前
读取的数据减去上次发送数据吋读取的数据, 判断差值是否大于或等于第三阈 值, 当差值大于或等于第三阈值吋, 则判定满足数据发送条件。
[0085] 本领域技术人员可以理解, 除此之外, 还可以根据需要采用现有技术的其它方 式来设定数据发送条件, 本发明对此不再一一列举赘述。
[0086] 进一步地, 如图 6所示, 在本发明的数据传输装置第二实施例中, 该装置还包 括响应判断模块 30和失败判决模块 40, 其中: 响应判断模块 30, 用于判断是否 在预设吋间内接收到服务器的响应信息; 失败判决模块 40, 用于当没有在预设 吋间内接收到服务器的响应信息吋, 判定数据发送失败。
[0087] 本发明实施例中, 服务器接收到车载系统发送的数据后, 会向车载系统反馈响 应信息, 以通知车载系统已接收到数据, 当车载系统接收到服务器发送的响应 信息吋, 则判定本次数据发送成功, 否则判定本次数据发送失败。 预设吋间是 预先设定的响应吋间, 可以根据实际需要设定, 如设定为 3秒, 当在发送数据后 的 3秒内接收到服务器的响应信息吋, 则判定本次数据发送成功, 当没有在发送 数据后的 3秒内接收到服务器的响应信息吋, 则判定本次数据发送失败。
[0088] 进一步地, 该装置还包括重新发送模块 50, 重新发送模块 50用于: 当数据发送 失败吋, 重新通过 http协议向服务器发送数据。 从而保证数据发送成功。 当然, 在其它实施例中, 在数据发送失败后, 车载系统也可以采取其它处理方式, 本 发明对此不作限定。
[0089] 进一步地, 服务器也通过 http协议向车载系统发送数据, 该装置还包括数据接 收模块和数据解析模块, 其中: 数据接收模块, 用于接收服务器发送的数据; 数据解析模块, 用于通过 http协议解析数据。
[0090] 本发明实施例的数据传输装置, 每当满足数据发送条件吋, 通过 http协议向服 务器发送一次数据, 无需像现有技术那样与服务器建立长连接, 避免了长连接 长吋间占用带宽资源而导致网络资源的浪费, 减少了用户的流量费用幵销, 提 升了用户体验。
[0091] 本发明同吋提出一种车载系统, 所述车载系统包括存储器、 处理器和至少一个 被存储在存储器中并被配置为由处理器执行的应用程序, 所述应用程序被配置 为用于执行数据传输方法。 所述数据传输方法包括以下步骤: 判断是否满足数
据发送条件; 当满足数据发送条件吋, 通过 http协议向服务器发送数据。 本实施 例中所描述的数据传输方法为本发明中上述实施例所涉及的数据传输方法, 在 此不再赘述。
[0092] 本领域技术人员可以理解, 本发明包括涉及用于执行本申请中所述操作中的一 项或多项的设备。 这些设备可以为所需的目的而专门设计和制造, 或者也可以 包括通用计算机中的已知设备。 这些设备具有存储在其内的计算机程序, 这些 计算机程序选择性地激活或重构。 这样的计算机程序可以被存储在设备 (例如 , 计算机) 可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何 类型的介质中, 所述计算机可读介质包括但不限于任何类型的盘 (包括软盘、 硬盘、 光盘、 CD-ROM、 和磁光盘) 、 ROM (Read-Only Memory , 只读存储器 ) 、 RAM (Random Access Memory , 随机存储器) 、 EPROM (Erasable Programmable Read-Only
Memory , 可擦写可编程只读存储器) 、 EEPROM (Electrically Erasable Programmable Read-Only Memory , 电可擦可编程只读存储器) 、 闪存、 磁性卡 片或光线卡片。 也就是, 可读介质包括由设备 (例如, 计算机) 以能够读的形 式存储或传输信息的任何介质。
[0093] 本技术领域技术人员可以理解, 可以用计算机程序指令来实现这些结构图和 / 或框图和 /或流图中的每个框以及这些结构图和 /或框图和 /或流图中的框的组合。 本技术领域技术人员可以理解, 可以将这些计算机程序指令提供给通用计算机 、 专业计算机或其他可编程数据处理方法的处理器来实现, 从而通过计算机或 其他可编程数据处理方法的处理器来执行本发明公幵的结构图和 /或框图和 /或流 图的框或多个框中指定的方案。
[0094] 本技术领域技术人员可以理解, 本发明中已经讨论过的各种操作、 方法、 流程 中的步骤、 措施、 方案可以被交替、 更改、 组合或刪除。 进一步地, 具有本发 明中已经讨论过的各种操作、 方法、 流程中的其他步骤、 措施、 方案也可以被 交替、 更改、 重排、 分解、 组合或刪除。 进一步地, 现有技术中的具有与本发 明中公幵的各种操作、 方法、 流程中的步骤、 措施、 方案也可以被交替、 更改 、 重排、 分解、 组合或刪除。
以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利 用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。
Claims
[权利要求 1] 一种数据传输方法, 应用于车载系统, 其特征在于, 包括以下步骤: 判断是否满足数据发送条件;
当满足数据发送条件吋, 通过 http协议向服务器发送数据。
[权利要求 2] 根据权利要求 1所述的数据传输方法, 其特征在于, 所述判断是否满 足数据发送条件的步骤包括:
判断距离上次发送数据的间隔吋间是否大于或等于第一阈值; 当所述间隔吋间大于或等于所述第一阈值吋, 判定满足数据发送条件
[权利要求 3] 根据权利要求 2所述的数据传输方法, 其特征在于, 所述第一阈值为 2
0-40秒。
[权利要求 4] 根据权利要求 1所述的数据传输方法, 其特征在于, 所述判断是否满 足数据发送条件的步骤包括:
判断待发送的数据的容量是否大于或等于第二阈值; 当所述容量大于或等于所述第二阈值吋, 判定满足数据发送条件。
[权利要求 5] 根据权利要求 1所述的数据传输方法, 其特征在于, 所述判断是否满 足数据发送条件的步骤包括:
判断上次发送数据之后车辆的行驶里程是否大于或等于第三阈值; 当所述行驶里程大于或等于所述第三阈值吋, 判定满足数据发送条件
[权利要求 6] 根据权利要求 5所述的数据传输方法, 其特征在于, 所述第三阈值为 0
.5-1公里。
[权利要求 7] 根据权利要求 1所述的数据传输方法, 其特征在于, 所述通过 http协议 向服务器发送数据的步骤之后还包括:
判断是否在预设吋间内接收到所述服务器的响应信息;
当没有在预设吋间内接收到所述服务器的响应信息吋, 判定数据发送 失败。
[权利要求 8] 根据权利要求 7所述的数据传输方法, 其特征在于, 所述判定数据发
送失败的步骤之后还包括: 重新通过 http协议向服务器发送所述数据
[权利要求 9] 根据权利要求 1所述的数据传输方法, 其特征在于, 所述方法还包括 接收服务器发送的数据;
通过 http协议解析所述数据。
[权利要求 10] 一种数据传输装置, 应用于车载系统, 其特征在于, 包括:
条件判断模块, 用于判断是否满足数据发送条件; 数据发送模块, 用于当满足数据发送条件吋, 通过 http协议向服务器 发送数据。
[权利要求 11] 根据权利要求 10所述的数据传输装置, 其特征在于, 所述条件判断模 块包括:
第一判断单元, 用于判断距离上次发送数据的间隔吋间是否大于或等 于第一阈值;
第一判决单元, 用于当所述间隔吋间大于或等于所述第一阈值吋, 判 定满足数据发送条件。
[权利要求 12] 根据权利要求 11所述的数据传输装置, 其特征在于, 所述第一阈值为
20-40秒。
[权利要求 13] 根据权利要求 10所述的数据传输装置, 其特征在于, 所述条件判断模 块包括:
第二判断单元, 用于判断待发送的数据的容量是否大于或等于第二阈 值;
第二判决单元, 用于当所述容量大于或等于所述第二阈值吋, 判定满 足数据发送条件。
[权利要求 14] 根据权利要求 10所述的数据传输装置, 其特征在于, 所述条件判断模 块包括:
第三判断单元, 用于判断上次发送数据之后车辆的行驶里程是否大于 或等于第三阈值;
第三判决单元, 用于当所述行驶里程大于或等于所述第三阈值吋, 判 定满足数据发送条件。
[权利要求 15] 根据权利要求 14所述的数据传输装置, 其特征在于, 所述第三阈值为
0.5-1公里。
[权利要求 16] 根据权利要求 10所述的数据传输装置, 其特征在于, 所述装置还包括 响应判断模块, 用于判断是否在预设吋间内接收到所述服务器的响应 f π息;
失败判决模块, 用于当没有在预设吋间内接收到所述服务器的响应信 息吋, 判定数据发送失败。
[权利要求 17] 根据权利要求 16所述的数据传输装置, 其特征在于, 所述装置还包括 重新发送模块, 所述重新发送模块用于:
当数据发送失败吋, 重新通过 http协议向服务器发送所述数据。
[权利要求 18] 根据权利要求 10所述的数据传输装置, 其特征在于, 所述装置还包括 数据接收模块, 用于接收服务器发送的数据;
数据解析模块, 用于通过 http协议解析所述数据。
[权利要求 19] 一种车载系统, 包括存储器、 处理器和至少一个被存储在所述存储器 中并被配置为由所述处理器执行的应用程序, 其特征在于, 所述应用 程序被配置为用于执行权利要求 1所述的数据传输方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710948802.9 | 2017-10-12 | ||
CN201710948802.9A CN107682439B (zh) | 2017-10-12 | 2017-10-12 | 数据传输方法和装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019071718A1 true WO2019071718A1 (zh) | 2019-04-18 |
Family
ID=61140647
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/111656 WO2019071718A1 (zh) | 2017-10-12 | 2017-11-17 | 数据传输方法、装置和车载系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107682439B (zh) |
WO (1) | WO2019071718A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108551475A (zh) * | 2018-03-26 | 2018-09-18 | 深圳市沃特沃德股份有限公司 | 数据传输方法和装置 |
CN113870614A (zh) * | 2021-10-29 | 2021-12-31 | 北京筑梦园科技有限公司 | 一种停车检测装置及停车管理系统 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894462A (zh) * | 2009-05-19 | 2010-11-24 | 厦门搜谷信息科技有限公司 | 一种实时电子地图召车互动服务系统及其方法 |
US20120124123A1 (en) * | 2010-11-12 | 2012-05-17 | Microsoft Corporation | Extensible video player selection via server-side detection of client application |
CN105468502A (zh) * | 2015-11-30 | 2016-04-06 | 北京奇艺世纪科技有限公司 | 一种日志收集的方法、装置和系统 |
CN106209951A (zh) * | 2015-05-08 | 2016-12-07 | 北京娜迦信息科技发展有限公司 | 信息传输方法、客户端及服务器 |
CN106304325A (zh) * | 2015-05-26 | 2017-01-04 | 中移(杭州)信息技术有限公司 | 一种定位方法、装置及定位终端 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8364182B1 (en) * | 2011-07-18 | 2013-01-29 | Google Inc. | Sending messages from a computing device |
CN102724309A (zh) * | 2012-06-14 | 2012-10-10 | 广东好帮手电子科技股份有限公司 | 一种车载语音网络音乐系统及其控制方法 |
CN105300704A (zh) * | 2015-09-21 | 2016-02-03 | 深圳市家信信息科技开发有限公司 | 一种基于移动网络的智能电动车远程检测方法及系统 |
-
2017
- 2017-10-12 CN CN201710948802.9A patent/CN107682439B/zh active Active
- 2017-11-17 WO PCT/CN2017/111656 patent/WO2019071718A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101894462A (zh) * | 2009-05-19 | 2010-11-24 | 厦门搜谷信息科技有限公司 | 一种实时电子地图召车互动服务系统及其方法 |
US20120124123A1 (en) * | 2010-11-12 | 2012-05-17 | Microsoft Corporation | Extensible video player selection via server-side detection of client application |
CN106209951A (zh) * | 2015-05-08 | 2016-12-07 | 北京娜迦信息科技发展有限公司 | 信息传输方法、客户端及服务器 |
CN106304325A (zh) * | 2015-05-26 | 2017-01-04 | 中移(杭州)信息技术有限公司 | 一种定位方法、装置及定位终端 |
CN105468502A (zh) * | 2015-11-30 | 2016-04-06 | 北京奇艺世纪科技有限公司 | 一种日志收集的方法、装置和系统 |
Also Published As
Publication number | Publication date |
---|---|
CN107682439A (zh) | 2018-02-09 |
CN107682439B (zh) | 2020-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7921215B2 (en) | Method and apparatus for optimizing and prioritizing the creation of a large number of VPN tunnels | |
KR102046792B1 (ko) | 송신 노드로부터 목적지 노드로의 데이터 전송 방법 | |
JP2017502545A5 (zh) | ||
US9066264B2 (en) | Status report triggering in wireless communication system | |
RU2016101811A (ru) | Эффективный механизм отбрасывания при развертывании небольших сот | |
RU2010105685A (ru) | Способ и устройство для реализации защиты в беспроводном устройстве lte | |
JP2009118506A (ja) | 無線通信システムのデッドロックを避けるための強化ポーリング法 | |
CN105530686B (zh) | 一种基于udp协议实现智能车载终端的接入方法 | |
CN105519057B (zh) | 一种多播发送装置、多播接收装置和多播传输确认方法 | |
CN103795632A (zh) | 一种数据报文传输方法及相关设备、系统 | |
WO2011137640A1 (zh) | 文件传输方法、文件发送装置和文件接收装置 | |
CN104486243A (zh) | 数据传输方法、设备及系统 | |
WO2016173155A1 (zh) | 一种tcp ack报文处理方法及装置 | |
WO2015165255A1 (zh) | 一种数据传输方法及装置 | |
CN108886713B (zh) | 一种数据传输方法、数据接收设备及数据发送设备 | |
KR20110089009A (ko) | 패킷 기반 통신 시스템에서 단말의 절전 모드 제어 방법 및 장치 | |
WO2019071718A1 (zh) | 数据传输方法、装置和车载系统 | |
EP2299618B1 (en) | Method and system for transmitting and receiving management message in communication network | |
WO2010149075A1 (zh) | 确认处理方法和基站 | |
CN103312719A (zh) | 网络环境下基于udp的速率自适应传输方法 | |
WO2016095323A1 (zh) | 一种基于串口服务器的数据传输方法及装置 | |
KR101018685B1 (ko) | 광대역 무선통신시스템에서 자동 재송 요구 리셋을제어하기 위한 장치 및 방법 | |
US9300438B2 (en) | Method and system for transmitting large object | |
CN114390054A (zh) | 一种核心网网络加速方法、电子设备及计算机存储介质 | |
CN104243107A (zh) | 数据传输方法、装置、终端、服务器及系统 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17928662 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17928662 Country of ref document: EP Kind code of ref document: A1 |