WO2019080222A1 - 移动终端的数据传输方法、装置和移动终端 - Google Patents

移动终端的数据传输方法、装置和移动终端

Info

Publication number
WO2019080222A1
WO2019080222A1 PCT/CN2017/111956 CN2017111956W WO2019080222A1 WO 2019080222 A1 WO2019080222 A1 WO 2019080222A1 CN 2017111956 W CN2017111956 W CN 2017111956W WO 2019080222 A1 WO2019080222 A1 WO 2019080222A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
mobile terminal
binary
data transmission
binary data
Prior art date
Application number
PCT/CN2017/111956
Other languages
English (en)
French (fr)
Inventor
黄祖斌
王辉耀
方杰
Original Assignee
深圳市沃特沃德股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市沃特沃德股份有限公司 filed Critical 深圳市沃特沃德股份有限公司
Publication of WO2019080222A1 publication Critical patent/WO2019080222A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/18Information format or content conversion, e.g. adaptation by the network of the transmitted or received information for the purpose of wireless delivery to users or terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • H04L67/5651Reducing the amount or size of exchanged application data

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, and mobile terminal for a mobile terminal.
  • the mobile terminal After implementing various functions of the mobile terminal, the mobile terminal performs data transmission with the server.
  • the character string data to be transmitted needs to be converted into data of json or xml format, and the data in the json or xml format is sent to the server.
  • a main object of the present invention is to provide a data transmission method, apparatus, and mobile terminal for a mobile terminal, which are intended to reduce the amount of data transmitted by communication, improve data transmission efficiency, and reduce user traffic expense credit.
  • an embodiment of the present invention provides a data transmission method for a mobile terminal, where the method includes the following steps:
  • the step of acquiring string data includes: Receiving an operation instruction;
  • the step of acquiring string data includes:
  • the user information is string data.
  • the step of converting the string data into binary data includes:
  • the string is encoded using a proprietary binary protocol to generate binary data.
  • the step of sending the binary data to a server includes:
  • the binary data is sent to the server via the http protocol.
  • the embodiment of the present invention provides a data transmission apparatus for a mobile terminal, where the apparatus includes:
  • an obtaining module configured to acquire string data
  • a conversion module configured to convert the string data into binary data
  • a transmission module configured to send the binary data to a server.
  • the acquiring module includes:
  • a first receiving unit configured to receive an operation instruction
  • a generating unit configured to generate a control command according to the operation instruction, where the control command is a string data
  • the acquiring module includes a second receiving unit, where the second receiving unit is configured to: receive input user information, where the user information is string data.
  • the converting module is configured to: encode the character string by using a proprietary binary protocol to generate binary data.
  • the transmitting module is configured to: send the binary data to a server by using an http protocol.
  • Embodiments of the present invention also provide a mobile terminal 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 It is configured to perform a data transmission method of the aforementioned mobile terminal.
  • a data transmission method for a mobile terminal converts character string data into binary data and then sends the data to a server, because the data volume of the binary data relative to the format of json, xml, etc. Smaller, thus greatly reducing the amount of data transmitted by the communication, improving the transmission efficiency, saving bandwidth resources, thereby reducing the user's traffic cost credit and improving the user experience.
  • the private binary protocol is used for data conversion. If the binary protocol is not known, the binary data cannot be parsed, so that third-party packet capture can be prevented from stealing data, and the security of data transmission is improved.
  • FIG. 1 is a flowchart of an embodiment of a data transmission method of a mobile terminal according to the present invention
  • FIG. 2 is a block diagram showing an embodiment of a data transmission apparatus of a mobile terminal according to the present invention
  • FIG. 3 is a block diagram of the acquisition module of FIG. 2;
  • FIG. 4 is a block diagram of still another module of the acquisition module of FIG. 2.
  • terminal and terminal device used herein include both a device of a wireless signal receiver, a device having only a wireless signal receiver without a transmitting capability, and a receiving and receiving device.
  • Such a device may comprise: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Persona 1 Communications Service), which may combine voice, Data processing, fax and/or data communication capabilities; PDA (Personal Digital Assistant), which can include radio frequency receivers, pagers, Internet/Intranet access, web browsers, notepads, calendars and/or GPS ( Global Positioning System, Receiver; Conventional laptop and/or palmtop computer or other device having a conventional laptop and/or palmtop computer or other device that includes and/or includes a radio frequency receiver.
  • PCS Personala 1 Communications Service
  • PDA Personal Digital Assistant
  • terminal may be portable, transportable, installed in a vehicle (aviation, sea and/or land), or adapted and/or configured to operate locally, and/or Run in any other location on the Earth and/or space in a distributed fashion.
  • the "terminal” and “terminal device” used herein may also be a communication terminal, an internet terminal, a music/video playback terminal, and may be, for example, a PDA, a MID (Mobile Internet Device), and/or have a music/video playback.
  • Functional mobile phones can also be smart TVs, set-top boxes and other devices.
  • 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.
  • a data transmission method of a mobile terminal includes the following steps: [0043] Sl l, acquiring character string data.
  • the mobile terminal receives an operation instruction of the user, and generates a control command according to the operation instruction, where the control command is string data.
  • the control commands are, for example, an ignition control command, a flameout control command, a reverse control command, a return to a designated data control command, and the like.
  • the mobile terminal activates the vehicle remote control application, and the user can operate on the control interface to remotely control the vehicle, such as clicking the "Ignition" icon on the control interface, and the mobile terminal generates an ignition control command for the onboard system.
  • control command may also be a control command for other devices, such as control commands for various electronic devices such as smart home devices (such as televisions, air conditioners, etc.), toys, and the like.
  • control commands for various electronic devices such as smart home devices (such as televisions, air conditioners, etc.), toys, and the like.
  • the mobile terminal receives user information input by the user, and the user information is string data.
  • the user activates the vehicle remote control application to perform user registration or login, and inputs registration information or login information
  • the mobile terminal receives registration information or login information, and the registration information or login information is the user's information.
  • the user information may also be other information related to the user, including setting information, usage information, history information, and the like.
  • the address book information stored in the mobile terminal is also user information.
  • the mobile terminal converts the character string data into binary data.
  • the binary data has a smaller volume, and the subsequent transmission consumes less bandwidth resources, and the transmission efficiency is more. high.
  • the mobile terminal performs data conversion by using a proprietary binary protocol, that is, encoding the character string by using a proprietary binary protocol to generate binary data. If the binary protocol is not known, the binary data cannot be parsed, so that third-party packet capture can be prevented from stealing data, and the security of data transmission is improved.
  • a proprietary binary protocol that is, encoding the character string by using a proprietary binary protocol to generate binary data. If the binary protocol is not known, the binary data cannot be parsed, so that third-party packet capture can be prevented from stealing data, and the security of data transmission is improved.
  • the binary data is generated by encoding and converting the control command by using a binary protocol: 111000010111001111000001101011.
  • the binary data is encoded and converted by the binary protocol to generate binary data: [0053]
  • the mobile terminal can also perform data conversion using a universal binary protocol.
  • the mobile terminal After converting the string data into binary data, the mobile terminal sends the binary data to the server.
  • the mobile terminal also receives binary data transmitted by the server and parses the binary data using a proprietary or generic binary protocol.
  • the binary data has a smaller data volume than the json, xml, and the like format, the data amount of the communication transmission is greatly reduced, the transmission efficiency is improved, the bandwidth resource is saved, and the user's traffic cost is reduced, thereby improving The user experience.
  • the mobile terminal sends binary data to the server through the Hyper Text Transport Protocol (http:// protocol), so that it is not necessary to establish a long connection with the server as in the prior art.
  • https:// protocol Hyper Text Transport Protocol
  • the data transmission method of the mobile terminal converts the character string data into binary data and sends it to the server. Since the binary data has a smaller data volume than the json, xml, etc. format, the communication transmission is greatly reduced. The amount of data improves the transmission efficiency, saves bandwidth resources, and reduces the user's traffic cost credit, which improves the user experience.
  • the private binary protocol is used for data conversion. If the binary protocol is not known, the binary data cannot be parsed, so that third-party packet capture can be prevented from stealing data, and the security of data transmission is improved.
  • the apparatus includes an obtaining module 10, a conversion module 20, and a transmission module 30, where: an obtaining module 10 is configured to acquire character string data; The conversion module 20 is configured to convert the string data into binary data, and the transmission module 30 is configured to send the binary data to the server.
  • the obtaining module 10 includes a first receiving unit 11 and a generating unit 12, wherein: a first receiving unit 11 is configured to receive an operation instruction; a generating unit 12 is configured to generate a control command according to the operation instruction. , the control command is string data.
  • the control commands such as an ignition control command, a flameout control command, a reverse control command, a return designated data control command, and the like.
  • the mobile terminal activates the vehicle remote control application, and the user can operate on the control interface to remotely control the vehicle, such as clicking on the "Ignition" icon on the control interface, and the generating unit 12 generates an ignition control command for the onboard system.
  • control command may also be a control command for other devices, such as control commands for various electronic devices such as smart home devices (such as televisions, air conditioners, etc.), toys, and the like.
  • control commands for various electronic devices such as smart home devices (such as televisions, air conditioners, etc.), toys, and the like.
  • the obtaining module 10 further includes a second receiving unit 13, and the second receiving unit 13 is configured to: receive input user information, where the user information is string data.
  • the user opens the vehicle remote control application to perform user registration or login, inputs registration information or login information, and the second receiving unit 13 receives registration information or login information, and the registration information or login information is user information.
  • the user information may also be other information related to the user.
  • the address book information stored in the mobile terminal is also user information.
  • the acquisition module 10 may also include only the second receiving unit 13.
  • the conversion module 20 converts the character string data into binary data. Compared with the data in the format of json, X ml, etc., the binary data has a smaller volume, and the subsequent transmission ⁇ occupies less bandwidth resources, and transmits higher efficiency.
  • the conversion module 20 performs data conversion using a proprietary binary protocol, that is, encodes a character string using a proprietary binary protocol to generate binary data. If the binary protocol is not known, the binary data cannot be parsed, so that third-party packet capture can be prevented from stealing data, and the security of data transmission is improved.
  • the conversion module 20 encodes and converts the control command using a binary protocol to generate binary data as: 111000010111001111000001101011.
  • the conversion module 20 uses the binary protocol to encode and convert the user information to generate binary data as:
  • the conversion module 20 can also perform data conversion using a universal binary protocol.
  • the transmission module 30 sends the binary data to the service. Device. Similarly, the data transmission device also receives the binary data transmitted by the server and parses the binary data using a proprietary or general binary protocol.
  • the binary data has a smaller data volume than the json, xml, etc. format, the data amount of the communication transmission is greatly reduced, the transmission efficiency is improved, the bandwidth resource is saved, and the user's traffic cost is reduced, thereby improving The user experience.
  • the transmission module 30 sends the binary data to the server through the http protocol, so that it is not necessary 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 and further reducing the network resources.
  • the user's traffic costs are written off.
  • the data transmission apparatus of the mobile terminal converts the character string data into binary data and sends it to the server. Since the binary data has a smaller data volume than the format of json, xml, etc., the communication transmission is greatly reduced. The amount of data improves the transmission efficiency, saves bandwidth resources, and reduces the user's traffic cost credit, which improves the user experience.
  • the private binary protocol is used for data conversion. If the binary protocol is not known, the binary data cannot be parsed, so that third party packet capture can be prevented from stealing data, and the security of data transmission is improved.
  • the present invention also provides a mobile terminal including a memory, a processor, and at least one application stored in a memory and configured to be executed by a processor, the application being configured to perform a mobile
  • the data transmission method of the terminal includes the steps of: acquiring string data; converting the string data into binary data; and transmitting the binary data to a server.
  • the data transmission method of the mobile terminal described in this embodiment is the data transmission method of the mobile terminal involved in the foregoing embodiment of the present invention, and details are not described herein again.
  • the present invention includes apparatus that is directed 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 Type of disk (including floppy disk, hard disk, CD, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory, 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)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明揭示了一种移动终端的数据传输方法,所述方法包括以下步骤:获取字符串数据;将所述字符串数据转换为二进制数据;向服务器发送所述二进制数据。由于二进制数据相对于json、xml等格式的数据体积更小,因此大大减少了通信传输的数据量,提高了传输效率,节省了带宽资源,进而减少了用户的流量费用开销,提升了用户体验。

Description

移动终端的数据传输方法、 装置和移动终端 技术领域
[0001] 本发明涉及通信技术领域, 特别是涉及到一种移动终端的数据传输方法、 装置 和移动终端。
背景技术
[0002] 随着通信技术的发展, 手机、 平板等移动终端的功能越来越丰富, 除了最基本 的通话功能外, 还提供上网、 打游戏、 看电影、 听音乐、 社交等娱乐功能, 文 字编辑、 图像编辑、 邮件发送等工作功能, 甚至对车辆、 家电、 玩具等电子设 备的远程控制功能。
[0003] 在实现移动终端的各种功能吋, 移动终端会与服务器进行数据传输。 现有技术 中, 移动终端进行数据传输吋, 需要将拟传输的字符串数据转换为 json或 xml格 式的数据, 再将 json或 xml格式的数据发送给服务器。
[0004] 但是, 由于 json或 xml格式的数据的体积较大, 导致通信传输的数据量较大, 占 用了较多的带宽资源, 从而影响数据的传输效率, 并增加了用户的流量费用幵 销。
技术问题
[0005] 本发明的主要目的为提供一种移动终端的数据传输方法、 装置和移动终端, 旨 在减少通信传输的数据量, 提高数据的传输效率, 降低用户的流量费用幵销。 问题的解决方案
技术解决方案
[0006] 为达以上目的, 本发明实施例提出一种移动终端的数据传输方法, 所述方法包 括以下步骤:
[0007] 获取字符串数据;
[0008] 将所述字符串数据转换为二进制数据;
[0009] 向服务器发送所述二进制数据。
[0010] 可选地, 所述获取字符串数据的步骤包括: [0011] 接收操作指令;
[0012] 根据所述操作指令生成控制命令, 所述控制命令为字符串数据。
[0013] 可选地, 所述获取字符串数据的步骤包括:
[0014] 接收输入的用户信息, 所述用户信息为字符串数据。
[0015] 可选地, 所述将所述字符串数据转换为二进制数据的步骤包括:
[0016] 利用私有的二进制协议对所述字符串进行编码, 生成二进制数据。
[0017] 可选地, 所述向服务器发送所述二进制数据的步骤包括:
[0018] 通过 http协议向服务器发送所述二进制数据。
[0019] 本发明实施例同吋提出一种移动终端的数据传输装置, 所述装置包括:
[0020] 获取模块, 用于获取字符串数据;
[0021] 转换模块, 用于将所述字符串数据转换为二进制数据;
[0022] 传输模块, 用于向服务器发送所述二进制数据。
[0023] 可选地, 所述获取模块包括:
[0024] 第一接收单元, 用于接收操作指令;
[0025] 生成单元, 用于根据所述操作指令生成控制命令, 所述控制命令为字符串数据
[0026] 可选地, 所述获取模块包括第二接收单元, 所述第二接收单元用于: 接收输入 的用户信息, 所述用户信息为字符串数据。
[0027] 可选地, 所述转换模块用于: 利用私有的二进制协议对所述字符串进行编码, 生成二进制数据。
[0028] 可选地, 所述传输模块用于: 通过 http协议向服务器发送所述二进制数据。
[0029] 本发明实施例同吋提出一种移动终端, 其包括存储器、 处理器和至少一个被存 储在所述存储器中并被配置为由所述处理器执行的应用程序, 所述应用程序被 配置为用于执行前述移动终端的数据传输方法。
发明的有益效果
有益效果
[0030] 本发明实施例所提供的一种移动终端的数据传输方法, 将字符串数据转换为二 进制数据后发送给服务器, 由于二进制数据相对于 json、 xml等格式的数据体积 更小, 因此大大减少了通信传输的数据量, 提高了传输效率, 节省了带宽资源 , 进而减少了用户的流量费用幵销, 提升了用户体验。 进一步利用私有的二进 制协议进行数据转换, 如果不知道该二进制协议, 则无法解析该二进制数据, 因此可以防止第三方抓包盗取数据, 提高了数据传输的安全性。
对附图的简要说明
附图说明
[0031] 图 1是本发明的移动终端的数据传输方法一实施例的流程图;
[0032] 图 2是本发明的移动终端的数据传输装置一实施例的模块示意图;
[0033] 图 3是图 2中的获取模块的模块示意图;
[0034] 图 4是图 2中的获取模块的又一模块示意图。
[0035] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。
实施该发明的最佳实施例
本发明的最佳实施方式
[0036] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。
[0037] 下面详细描述本发明的实施例, 所述实施例的示例在附图中示出, 其中自始至 终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。 下 面通过参考附图描述的实施例是示例性的, 仅用于解释本发明, 而不能解释为 对本发明的限制。
[0038] 本技术领域技术人员可以理解, 除非特意声明, 这里使用的单数形式"一"、 " 一个"、 "所述 "和"该"也可包括复数形式。 应该进一步理解的是, 本发明的说明 书中使用的措辞"包括"是指存在所述特征、 整数、 步骤、 操作、 元件和 /或组件 , 但是并不排除存在或添加一个或多个其他特征、 整数、 步骤、 操作、 元件、 组件和 /或它们的组。 应该理解, 当我们称元件被"连接"或"耦接"到另一元件吋 , 它可以直接连接或耦接到其他元件, 或者也可以存在中间元件。 此外, 这里 使用的"连接"或"耦接"可以包括无线连接或无线耦接。 这里使用的措辞 "和 /或"包 括一个或更多个相关联的列出项的全部或任一单元和全部组合。
[0039] 本技术领域技术人员可以理解, 除非另外定义, 这里使用的所有术语 (包括技 术术语和科学术语) , 具有与本发明所属领域中的普通技术人员的一般理解相 同的意义。 还应该理解的是, 诸如通用字典中定义的那些术语, 应该被理解为 具有与现有技术的上下文中的意义一致的意义, 并且除非像这里一样被特定定 义, 否则不会用理想化或过于正式的含义来解释。
[0040] 本技术领域技术人员可以理解, 这里所使用的 "终端"、 "终端设备"既包括无线 信号接收器的设备, 其仅具备无发射能力的无线信号接收器的设备, 又包括接 收和发射硬件的设备, 其具有能够在双向通信链路上, 执行双向通信的接收和 发射硬件的设备。 这种设备可以包括: 蜂窝或其他通信设备, 其具有单线路显 示器或多线路显示器或没有多线路显示器的蜂窝或其他通信设备; PCS (Persona 1 Communications Service, 个人通信系统) , 其可以组合语音、 数据处理、 传真 和 /或数据通信能力; PDA (Personal Digital Assistant, 个人数字助理) , 其可以 包括射频接收器、 寻呼机、 互联网 /内联网访问、 网络浏览器、 记事本、 日历和 / 或 GPS (Global Positioning System, 全球定位系统) 接收器; 常规膝上型和 /或掌 上型计算机或其他设备, 其具有和 /或包括射频接收器的常规膝上型和 /或掌上型 计算机或其他设备。 这里所使用的 "终端"、 "终端设备"可以是便携式、 可运输、 安装在交通工具 (航空、 海运和 /或陆地) 中的, 或者适合于和 /或配置为在本地 运行, 和 /或以分布形式, 运行在地球和 /或空间的任何其他位置运行。 这里所使 用的"终端"、 "终端设备"还可以是通信终端、 上网终端、 音乐 /视频播放终端, 例如可以是 PDA、 MID (Mobile Internet Device, 移动互联网设备) 和 /或具有音 乐 /视频播放功能的移动电话, 也可以是智能电视、 机顶盒等设备。
[0041] 本技术领域技术人员可以理解, 这里所使用的服务器, 其包括但不限于计算机 、 网络主机、 单个网络服务器、 多个网络服务器集或多个服务器构成的云。 在 此, 云由基于云计算 (Cloud Computing) 的大量计算机或网络服务器构成, 其 中, 云计算是分布式计算的一种, 由一群松散耦合的计算机集组成的一个超级 虚拟计算机。 本发明的实施例中, 服务器、 终端设备与 WNS服务器之间可通过 任何通信方式实现通信, 包括但不限于, 基于 3GPP、 LTE、 WIMAX的移动通信 、 基于 TCP/IP、 UDP协议的计算机网络通信以及基于蓝牙、 红外传输标准的近 距无线传输方式。 [0042] 参照图 1, 提出本发明的移动终端的数据传输方法, 所述方法包括以下步骤: [0043] Sl l、 获取字符串数据。
[0044] 可选地, 移动终端接收用户的操作指令, 根据操作指令生成控制命令, 该控制 命令为字符串数据。 所述控制命令如点火控制命令、 熄火控制命令、 倒车控制 命令、 返回指定数据控制命令等等。 例如, 移动终端启动车辆远程控制应用, 用户可以在控制界面上进行操作来远程操控车辆, 如点击控制界面上的 "点火 "图 标, 移动终端则生成针对车载系统的点火控制命令。
[0045] 此外, 控制命令也可以是针对其它设备的控制命令, 如针对智能家电设备 (如 电视、 空调等) 、 玩具等各种电子设备的控制命令。
[0046] 可选地, 移动终端接收用户输入的用户信息, 该用户信息为字符串数据。 例如 , 用户幵启车辆远程控制应用进行用户注册或登录吋, 输入注册信息或登录信 息, 移动终端则接收注册信息或登录信息, 所述注册信息或登录信息即为用户 f π息。
[0047] 此外, 用户信息也可以是其它与用户相关的信息, 包括设置信息、 使用信息、 历史记录信息等等。 例如, 移动终端在与服务器进行通讯录同步吋, 移动终端 中存储的通讯录信息也是用户信息。
[0048] S12、 将字符串数据转换为二进制数据。
[0049] 本发明实施例中, 移动终端将字符串数据转换为二进制数据, 相对于 json、 xml 等格式的数据, 二进制数据的体积更小, 后续传输吋占用的带宽资源更少, 传 输效率更高。
[0050] 优选地, 移动终端利用私有的二进制协议进行数据转换, 即利用私有的二进制 协议对字符串进行编码, 生成二进制数据。 如果不知道该二进制协议, 则无法 解析该二进制数据, 因此可以防止第三方抓包盗取数据, 提高了数据传输的安 全性。
[0051] 例如, 假设控制命令为"点火", 则利用二进制协议对控制命令编码转换后生成 二进制数据为: 111000010111001111000001101011。
[0052] 又如, 假设用户信息为"用户名: wtwd", 则利用二进制协议对用户信息编码转 换后生成二进制数据为: [0053]
1011101000111011101100100=
[0054] 在其它实施例中, 移动终端也可以利用通用的二进制协议进行数据转换。
[0055] S13、 向服务器发送二进制数据。
[0056] 将字符串数据转换为二进制数据后, 移动终端则将该二进制数据发送给服务器
。 同吋, 移动终端也接收服务器传输的二进制数据, 并利用私有的或通用的二 进制协议对二进制数据进行解析。
[0057] 由于二进制数据相对于 json、 xml等格式的数据体积更小, 因此大大减少了通信 传输的数据量, 提高了传输效率, 节省了带宽资源, 进而减少了用户的流量费 用幵销, 提升了用户体验。
[0058] 优选地, 移动终端通过 http协议 (Hyper Text Transport Protocol, 超文本传输协 议) 向服务器发送二进制数据, 从而无需像现有技术那样与服务器建立长连接
, 避免了长连接长吋间占用带宽资源而导致网络资源的浪费, 进一步减少了用 户的流量费用幵销。
[0059] 本发明实施例的移动终端的数据传输方法, 将字符串数据转换为二进制数据后 发送给服务器, 由于二进制数据相对于 json、 xml等格式的数据体积更小, 因此 大大减少了通信传输的数据量, 提高了传输效率, 节省了带宽资源, 进而减少 了用户的流量费用幵销, 提升了用户体验。
[0060] 进一步利用私有的二进制协议进行数据转换, 如果不知道该二进制协议, 则无 法解析该二进制数据, 因此可以防止第三方抓包盗取数据, 提高了数据传输的 安全性。
[0061] 参照图 2, 提出本发明的移动终端的数据传输装置一实施例, 所述装置包括获 取模块 10、 转换模块 20和传输模块 30, 其中: 获取模块 10, 用于获取字符串数 据; 转换模块 20, 用于将字符串数据转换为二进制数据; 传输模块 30, 用于向 服务器发送二进制数据。
[0062] 如图 3所示, 获取模块 10包括第一接收单元 11和生成单元 12, 其中: 第一接收 单元 11, 用于接收操作指令; 生成单元 12, 用于根据操作指令生成的控制命令 , 该控制命令为字符串数据。 [0063] 所述控制命令如点火控制命令、 熄火控制命令、 倒车控制命令、 返回指定数据 控制命令等等。 例如, 移动终端启动车辆远程控制应用, 用户可以在控制界面 上进行操作来远程操控车辆, 如点击控制界面上的"点火"图标, 生成单元 12则生 成针对车载系统的点火控制命令。
[0064] 此外, 控制命令也可以是针对其它设备的控制命令, 如针对智能家电设备 (如 电视、 空调等) 、 玩具等各种电子设备的控制命令。
[0065] 进一步地, 如图 4所示, 获取模块 10还包括第二接收单元 13, 第二接收单元 13 用于: 接收输入的用户信息, 该用户信息为字符串数据。 例如, 用户幵启车辆 远程控制应用进行用户注册或登录吋, 输入注册信息或登录信息, 第二接收单 元 13接收注册信息或登录信息, 所述注册信息或登录信息即为用户信息。
[0066] 此外, 用户信息也可以是其它与用户相关的信息。 例如, 移动终端在与服务器 进行通讯录同步吋, 移动终端中存储的通讯录信息也是用户信息。
[0067] 在其它实施例中, 获取模块 10也可以只包括第二接收单元 13。
[0068] 本发明实施例中, 转换模块 20将字符串数据转换为二进制数据, 相对于 json、 X ml等格式的数据, 二进制数据的体积更小, 后续传输吋占用的带宽资源更少, 传输效率更高。
[0069] 优选地, 转换模块 20利用私有的二进制协议进行数据转换, 即利用私有的二进 制协议对字符串进行编码, 生成二进制数据。 如果不知道该二进制协议, 则无 法解析该二进制数据, 因此可以防止第三方抓包盗取数据, 提高了数据传输的 安全性。
[0070] 例如, 假设控制命令为"点火", 则转换模块 20利用二进制协议对控制命令编码 转换后生成二进制数据为: 111000010111001111000001101011。
[0071] 又如, 假设用户信息为"用户名: wtwd", 则转换模块 20利用二进制协议对用户 信息编码转换后生成二进制数据为:
1011101000111011101100100=
[0073] 在其它实施例中, 转换模块 20也可以利用通用的二进制协议进行数据转换。
[0074] 将字符串数据转换为二进制数据后, 传输模块 30则将该二进制数据发送给服务 器。 同吋, 数据传输装置也接收服务器传输的二进制数据, 并利用私有的或通 用的二进制协议对二进制数据进行解析。
[0075] 由于二进制数据相对于 json、 xml等格式的数据体积更小, 因此大大减少了通信 传输的数据量, 提高了传输效率, 节省了带宽资源, 进而减少了用户的流量费 用幵销, 提升了用户体验。
[0076] 优选地, 传输模块 30通过 http协议向服务器发送二进制数据, 从而无需像现有 技术那样与服务器建立长连接, 避免了长连接长吋间占用带宽资源而导致网络 资源的浪费, 进一步减少了用户的流量费用幵销。
[0077] 本发明实施例的移动终端的数据传输装置, 将字符串数据转换为二进制数据后 发送给服务器, 由于二进制数据相对于 json、 xml等格式的数据体积更小, 因此 大大减少了通信传输的数据量, 提高了传输效率, 节省了带宽资源, 进而减少 了用户的流量费用幵销, 提升了用户体验。
[0078] 进一步利用私有的二进制协议进行数据转换, 如果不知道该二进制协议, 则无 法解析该二进制数据, 因此可以防止第三方抓包盗取数据, 提高了数据传输的 安全性。
[0079] 本发明同吋提出一种移动终端, 其包括存储器、 处理器和至少一个被存储在存 储器中并被配置为由处理器执行的应用程序, 所述应用程序被配置为用于执行 移动终端的数据传输方法。 所述数据传输方法包括以下步骤: 获取字符串数据 ; 将所述字符串数据转换为二进制数据; 向服务器发送所述二进制数据。 本实 施例中所描述的移动终端的数据传输方法为本发明中上述实施例所涉及的移动 终端的数据传输方法, 在此不再赘述。
[0080] 本领域技术人员可以理解, 本发明包括涉及用于执行本申请中所述操作中的一 项或多项的设备。 这些设备可以为所需的目的而专门设计和制造, 或者也可以 包括通用计算机中的已知设备。 这些设备具有存储在其内的计算机程序, 这些 计算机程序选择性地激活或重构。 这样的计算机程序可以被存储在设备 (例如 , 计算机) 可读介质中或者存储在适于存储电子指令并分别耦联到总线的任何 类型的介质中, 所述计算机可读介质包括但不限于任何类型的盘 (包括软盘、 硬盘、 光盘、 CD-ROM、 和磁光盘) 、 ROM (Read-Only Memory , 只读存储器 ) 、 RAM (Random Access Memory , 随机存储器) 、 EPROM (Erasable Programmable Read- Only
Memory , 可擦写可编程只读存储器) 、 EEPROM (Electrically Erasable Programmable Read-Only Memory , 电可擦可编程只读存储器) 、 闪存、 磁性卡 片或光线卡片。 也就是, 可读介质包括由设备 (例如, 计算机) 以能够读的形 式存储或传输信息的任何介质。
[0081] 本技术领域技术人员可以理解, 可以用计算机程序指令来实现这些结构图和 / 或框图和 /或流图中的每个框以及这些结构图和 /或框图和 /或流图中的框的组合。 本技术领域技术人员可以理解, 可以将这些计算机程序指令提供给通用计算机 、 专业计算机或其他可编程数据处理方法的处理器来实现, 从而通过计算机或 其他可编程数据处理方法的处理器来执行本发明公幵的结构图和 /或框图和 /或流 图的框或多个框中指定的方案。
[0082] 本技术领域技术人员可以理解, 本发明中已经讨论过的各种操作、 方法、 流程 中的步骤、 措施、 方案可以被交替、 更改、 组合或刪除。 进一步地, 具有本发 明中已经讨论过的各种操作、 方法、 流程中的其他步骤、 措施、 方案也可以被 交替、 更改、 重排、 分解、 组合或刪除。 进一步地, 现有技术中的具有与本发 明中公幵的各种操作、 方法、 流程中的步骤、 措施、 方案也可以被交替、 更改 、 重排、 分解、 组合或刪除。
[0083] 以上所述仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利 用本发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运 用在其他相关的技术领域, 均同理包括在本发明的专利保护范围内。

Claims

权利要求书
[权利要求 1] 一种移动终端的数据传输方法, 其特征在于, 包括以下步骤:
获取字符串数据; 将所述字符串数据转换为二进制数据;
向服务器发送所述二进制数据。
[权利要求 2] 根据权利要求 1所述的移动终端的数据传输方法, 其特征在于, 所述 获取字符串数据的步骤包括: 接收操作指令;
根据所述操作指令生成控制命令, 所述控制命令为字符串数据。
[权利要求 3] 根据权利要求 1所述的移动终端的数据传输方法, 其特征在于, 所述 获取字符串数据的步骤包括: 接收输入的用户信息, 所述用户信息为字符串数据。
[权利要求 4] 根据权利要求 1-3任一项所述的移动终端的数据传输方法, 其特征在 于, 所述将所述字符串数据转换为二进制数据的步骤包括: 利用私有的二进制协议对所述字符串进行编码, 生成二进制数据。
[权利要求 5] 根据权利要求 1-3任一项所述的移动终端的数据传输方法, 其特征在 于, 所述向服务器发送所述二进制数据的步骤包括:
通过 http协议向服务器发送所述二进制数据。
[权利要求 6] —种移动终端的数据传输装置, 其特征在于, 包括:
获取模块, 用于获取字符串数据;
转换模块, 用于将所述字符串数据转换为二进制数据;
传输模块, 用于向服务器发送所述二进制数据。
[权利要求 7] 根据权利要求 6所述的移动终端的数据传输装置, 其特征在于, 所述 获取模块包括:
第一接收单元, 用于接收操作指令;
生成单元, 用于根据所述操作指令生成控制命令, 所述控制命令为字 符串数据。
[权利要求 8] 根据权利要求 6所述的移动终端的数据传输装置, 其特征在于, 所述 获取模块包括第二接收单元, 所述第二接收单元用于: 接收输入的用 户信息, 所述用户信息为字符串数据。
[权利要求 9] 根据权利要求 6-8任一项所述的移动终端的数据传输装置, 其特征在 于, 所述转换模块用于: 利用私有的二进制协议对所述字符串进行编 码, 生成二进制数据。
[权利要求 10] 根据权利要求 6-8任一项所述的移动终端的数据传输装置, 其特征在 于, 所述传输模块用于: 通过 http协议向服务器发送所述二进制数据
[权利要求 11] 一种移动终端, 包括存储器、 处理器和至少一个被存储在所述存储器 中并被配置为由所述处理器执行的应用程序, 其特征在于, 所述应用 程序被配置为用于执行权利要求 1至 5任一项所述的移动终端的数据传 输方法。
PCT/CN2017/111956 2017-10-23 2017-11-20 移动终端的数据传输方法、装置和移动终端 WO2019080222A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710995014.5 2017-10-23
CN201710995014.5A CN107682829A (zh) 2017-10-23 2017-10-23 移动终端的数据传输方法和装置

Publications (1)

Publication Number Publication Date
WO2019080222A1 true WO2019080222A1 (zh) 2019-05-02

Family

ID=61141479

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/111956 WO2019080222A1 (zh) 2017-10-23 2017-11-20 移动终端的数据传输方法、装置和移动终端

Country Status (2)

Country Link
CN (1) CN107682829A (zh)
WO (1) WO2019080222A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111047906A (zh) * 2019-12-24 2020-04-21 中科融通物联科技无锡有限公司 数据传输方法、装置、无线通信基站及停车管理系统
CN115134380A (zh) * 2021-03-24 2022-09-30 京东方科技集团股份有限公司 数据传输方法、装置、电子设备及存储介质
CN115499793A (zh) * 2021-06-18 2022-12-20 深圳艾派网络科技股份有限公司 一种5g短信制作方法、系统以及5g短信系统
WO2023130741A1 (zh) * 2022-01-10 2023-07-13 深圳智慧林网络科技有限公司 基于联合编码的数据传输方法及装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109584059A (zh) * 2018-10-12 2019-04-05 广州快批信息科技有限公司 批发系统线上信息同步方法、批发终端、批发服务器及存储介质
CN111541742B (zh) * 2020-04-03 2023-04-07 广州方硅信息技术有限公司 数据传输方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227432A (zh) * 2008-02-04 2008-07-23 中国移动通信集团公司 一种消息转换方法、接入方法、装置及系统
CN101814971A (zh) * 2009-02-24 2010-08-25 肖宏声 一种手机文件传输方法
CN104185845A (zh) * 2012-03-13 2014-12-03 谷歌公司 用于提供网页的二进制表示的系统和方法
KR101495720B1 (ko) * 2013-06-18 2015-02-25 주식회사 이머시브코리아 데이터 송수신 단말, 이동식 저장장치, 및 중계 서버

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219299B (zh) * 2014-08-27 2015-12-30 小米科技有限责任公司 数据传输方法及装置
CN105991683A (zh) * 2015-02-02 2016-10-05 阿里巴巴集团控股有限公司 数据传输方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101227432A (zh) * 2008-02-04 2008-07-23 中国移动通信集团公司 一种消息转换方法、接入方法、装置及系统
CN101814971A (zh) * 2009-02-24 2010-08-25 肖宏声 一种手机文件传输方法
CN104185845A (zh) * 2012-03-13 2014-12-03 谷歌公司 用于提供网页的二进制表示的系统和方法
KR101495720B1 (ko) * 2013-06-18 2015-02-25 주식회사 이머시브코리아 데이터 송수신 단말, 이동식 저장장치, 및 중계 서버

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111047906A (zh) * 2019-12-24 2020-04-21 中科融通物联科技无锡有限公司 数据传输方法、装置、无线通信基站及停车管理系统
CN115134380A (zh) * 2021-03-24 2022-09-30 京东方科技集团股份有限公司 数据传输方法、装置、电子设备及存储介质
CN115499793A (zh) * 2021-06-18 2022-12-20 深圳艾派网络科技股份有限公司 一种5g短信制作方法、系统以及5g短信系统
CN115499793B (zh) * 2021-06-18 2024-02-27 深圳艾派网络科技股份有限公司 一种5g短信制作方法、系统以及5g短信系统
WO2023130741A1 (zh) * 2022-01-10 2023-07-13 深圳智慧林网络科技有限公司 基于联合编码的数据传输方法及装置

Also Published As

Publication number Publication date
CN107682829A (zh) 2018-02-09

Similar Documents

Publication Publication Date Title
WO2019080222A1 (zh) 移动终端的数据传输方法、装置和移动终端
WO2018095146A1 (zh) 直播间视频流合成方法、装置及终端设备
CN104093077B (zh) 多终端互联的方法、装置及系统
WO2018121014A1 (zh) 视频播放控制方法、装置及终端设备
CN103474068B (zh) 实现语音命令控制的方法、设备及系统
WO2017045276A1 (zh) 终端互联方法、装置和存储介质
CN100512127C (zh) 连接控制装置、通信系统以及连接控制方法
CN105357283B (zh) 智能可佩戴设备的长连接建立方法及服务器、终端
CN103814593A (zh) 在无线显示系统中进行多播
WO2018209851A1 (zh) 翻译方法和翻译系统
WO2015158114A1 (zh) 一种智能通讯方法、终端及系统
CN108538289B (zh) 基于蓝牙实现语音遥控的方法、装置和终端设备
EP2423806A1 (en) Method and device for transmitting universal serial bus audio data through a wireless data terminal
US20150207904A1 (en) System and method for single kvm client accommodating multiple different video compression technologies
CN104580097A (zh) 一种数据处理方法、装置及系统
US20090232307A1 (en) Method of establishing virtual security keypad session from a mobile device using java virtual machine
US20180014063A1 (en) Method and Apparatus for Accessing a Terminal Device Camera to a Target Device
US9591032B2 (en) System and method for broadcasting captions
US11902397B2 (en) Secure remotely controlled system, device, and method
CN103561088B (zh) 一种基于账号登录的远程控制方法及装置
WO2018205433A1 (zh) 网络连接方法、装置和终端设备
CN102546805A (zh) 一种数据传输的方法及系统
CN105120207A (zh) 扫地机器人视频监控方法及服务器
WO2017088575A1 (zh) 基于加密机制的ipc服务实现方法及系统
WO2019184000A1 (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: 17929473

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: 17929473

Country of ref document: EP

Kind code of ref document: A1