WO2017197894A1 - Method, apparatus, system and external device for updating data - Google Patents

Method, apparatus, system and external device for updating data Download PDF

Info

Publication number
WO2017197894A1
WO2017197894A1 PCT/CN2016/113218 CN2016113218W WO2017197894A1 WO 2017197894 A1 WO2017197894 A1 WO 2017197894A1 CN 2016113218 W CN2016113218 W CN 2016113218W WO 2017197894 A1 WO2017197894 A1 WO 2017197894A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
external device
data
server
code
Prior art date
Application number
PCT/CN2016/113218
Other languages
French (fr)
Chinese (zh)
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 WO2017197894A1 publication Critical patent/WO2017197894A1/en

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2871Implementation details of single intermediate entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention relates to a method, apparatus and external device for updating data. The method comprises the steps of: when an external device is connected to a terminal via an interface, receiving a device descriptor request sent by the terminal, and returning a response according to the device descriptor request; receiving an operation request sent by the terminal, and sending the operation request to a server, or converting the operation request into a network request and then sending same to a server; and receiving data returned by the server according to the operation request or the network request, and forwarding the returned data to the terminal. Without making a configuration, without connecting a terminal to a network, and being out of dependence on an operating system and a client, the present invention is not only applicable to a conventional operating system, but also applicable to some unopened devices or systems.

Description

更新数据的方法、装置、系统以及外置设备Method, device, system and external device for updating data 技术领域Technical field
本发明涉及数据处理技术领域,特别是涉及一种更新数据的方法、更新数据的装置、更新数据的系统以及更新数据的外置设备。The present invention relates to the field of data processing technologies, and in particular, to a method for updating data, a device for updating data, a system for updating data, and an external device for updating data.
背景技术Background technique
当终端需要使用一些经常更新的内容时,通常采用网络驱动器映射,或者使用网盘。在采用网络驱动器映射时,需要将局域网内的共享文件夹作为一个虚拟的网络硬盘,然后将该网络硬盘映射到终端。在使用网盘时,需要使用浏览器访问对应网站并输入用户名和密码,然后获取网盘内容,或者通过安装客户端获取网盘内容。这两种方案均存在以下缺陷:When the terminal needs to use some frequently updated content, it usually uses network drive mapping or uses a network disk. When using network drive mapping, you need to use the shared folder in the LAN as a virtual network hard disk, and then map the network hard disk to the terminal. When using the network disk, you need to use a browser to access the corresponding website and enter the user name and password, and then obtain the content of the network disk, or obtain the content of the network disk by installing the client. Both of these programs have the following drawbacks:
1、均需要进行配置,例如,网络驱动器的方案需要映射,网盘的方案需要配置用户名和密码或者安装客户端;1, need to be configured, for example, the network drive solution needs to be mapped, the network disk solution needs to configure the user name and password or install the client;
2、终端均需要接入网络;2. The terminals need to access the network;
3、仅能在一些特定操作系统上使用,例如,在系统不具备开放的浏览器时,无法使用网盘。3, can only be used on some specific operating systems, for example, when the system does not have an open browser, the network disk can not be used.
发明内容Summary of the invention
基于此,有必要针对上述问题,提供一种更新数据的方法、装置、系统以及外置设备,能够在更新数据时无需配置、无需接入网络以及不受操作系统的限制。Based on this, it is necessary to provide a method, an apparatus, a system, and an external device for updating data, which can be configured without updating, without accessing the network, and without being restricted by the operating system.
为了达到上述目的,本发明采取的技术方案如下:In order to achieve the above object, the technical solution adopted by the present invention is as follows:
一种更新数据的方法,包括步骤:A method of updating data, including the steps:
在外置设备通过接口与终端连接时,接收所述终端发送的设备描述符请求,根据所述设备描述符请求返回响应;Receiving, by the external device, the device descriptor request sent by the terminal, and returning a response according to the device descriptor request;
接收所述终端发送的操作请求,将所述操作请求发送给服务器,或者将所述操作请求转换为网络请求后发送给服务器; Receiving an operation request sent by the terminal, sending the operation request to a server, or converting the operation request into a network request, and sending the operation request to the server;
接收所述服务器根据所述操作请求或者所述网络请求返回的数据,将返回的所述数据转发给所述终端。Receiving, by the server, the returned data according to the operation request or the data returned by the network request, and forwarding the returned data to the terminal.
本发明更新数据的方法,通过接口将外置设备与终端连接时,将外置设备描述成通用的设备,那么即可以使用终端内置的驱动程序,在更新数据时,用户可以像使用普通的设备一样对外置设备发送操作请求,所有的操作请求均会转换为对服务器的操作,服务器执行相应的操作后返回数据,将返回数据转发给终端,终端就可以直接使用返回的数据。本发明无需进行配置,可以像使用普通设备一样访问服务器上的数据;外置设备作为中间交互设备,无需将终端接入网络;脱离了对操作系统和客户端的依赖,不仅适用于常规的操作系统,还适用于一些不开放的设备或者系统,例如机顶盒和打印机等。The method for updating data according to the present invention, when an external device is connected to a terminal through an interface, describes the external device as a general-purpose device, that is, the driver built in the terminal can be used, and when the data is updated, the user can use an ordinary device. Similarly, when an external device sends an operation request, all operation requests are converted into operations on the server. After the server performs the corresponding operation, the data is returned, and the returned data is forwarded to the terminal, and the terminal can directly use the returned data. The invention does not need to be configured, and can access data on the server like a normal device; the external device acts as an intermediate interaction device, and does not need to connect the terminal to the network; the dependence on the operating system and the client is not only applicable to the conventional operating system. It is also suitable for some devices or systems that are not open, such as set-top boxes and printers.
在一个实施例中,所述响应包括所述外置设备为大容量存储设备的响应。将外置设备描述为大容量存储设备,终端就将外置设备识别为大容量存储设备,提高了适应性。In one embodiment, the response includes the external device being a response of the mass storage device. When an external device is described as a large-capacity storage device, the terminal recognizes the external device as a large-capacity storage device, improving the adaptability.
在一个实施例中,所述大容量存储设备包括USB大容量存储设备。USB大容量存储设备为通用的存储设备,与各个系统基本上都兼容,进一步提高了适用性。In one embodiment, the mass storage device comprises a USB mass storage device. The USB mass storage device is a general-purpose storage device that is basically compatible with each system, further improving the applicability.
在一个实施例中,根据USB Mass Storage协议将返回的所述数据转发给所述终端。In one embodiment, the returned data is forwarded to the terminal in accordance with the USB Mass Storage protocol.
在一个实施例中,返回的所述数据包括终端的可执行程序。In one embodiment, the returned data includes an executable program of the terminal.
在一个实施例中,所述可执行程序包括通信代码和屏幕数据抓取代码,所述通信代码包括终端与外置设备之间通信的代码以及外置设备与服务器之间通信的代码,所述屏幕数据抓取代码包括通过终端API进行音频抓取的编码代码和通过终端API进行屏幕抓取的视频或图像编码代码中的任意一种或两种。In one embodiment, the executable program includes a communication code and a screen data capture code, the communication code including code for communication between the terminal and the external device, and code for communication between the external device and the server, The screen data capture code includes either or both of an encoding code for audio capture by the terminal API and a video or image encoding code for screen capture by the terminal API.
在一个实施例中,将返回的所述数据转发给所述终端之后,还包括步骤:接收终端通过通信代码发送的音视频图像数据,其中音视频图像数据通过所述屏幕数据抓取代码获取;将音视频图像数据转发给所述服务器进行显示。In an embodiment, after forwarding the returned data to the terminal, the method further includes the steps of: receiving audio and video image data sent by the terminal by using a communication code, wherein the audio and video image data is obtained by using the screen data capture code; The audio and video image data is forwarded to the server for display.
在一个实施例中,在外置设备通过接口与终端连接时,还包括步骤:驱动所述外置设备中的无线网卡或有线网卡,通过配置文件中的信息将无线网卡或 有线网卡连入网络。外置设备自身设置有网卡,在连接终端通电时接入网络,从而可以与服务器进行通信。In an embodiment, when the external device is connected to the terminal through the interface, the method further includes the steps of: driving the wireless network card or the wired network card in the external device, and using the information in the configuration file to connect the wireless network card or The wired network card is connected to the network. The external device itself is provided with a network card, and accesses the network when the connection terminal is powered on, so that communication with the server can be performed.
一种更新数据的装置,包括:A device for updating data, comprising:
设备描述符请求响应模块,用于在外置设备通过接口与终端连接时,接收所述终端发送的设备描述符请求,根据所述设备描述符请求返回响应;a device descriptor request response module, configured to receive a device descriptor request sent by the terminal when the external device is connected to the terminal through the interface, and return a response according to the device descriptor request;
操作请求接收和发送模块,用于接收所述终端发送的操作请求,将所述操作请求发送给服务器,或者将所述操作请求转换为网络请求后发送给服务器;An operation request receiving and sending module, configured to receive an operation request sent by the terminal, send the operation request to a server, or convert the operation request into a network request, and send the operation request to the server;
数据接收和发送模块,用于接收所述服务器根据所述操作请求或者所述网络请求返回的数据,将返回的所述数据转发给所述终端。And a data receiving and sending module, configured to receive, by the server, the returned data according to the operation request or the network request, and forward the returned data to the terminal.
本发明更新数据的装置,通过接口将外置设备与终端连接时,将外置设备描述成通用的设备,那么即可以使用终端内置的驱动程序,在更新数据时,用户可以像使用普通的设备一样对外置设备发送操作请求,所有的操作请求均会转换为对服务器的操作,服务器执行相应的操作后返回数据,将返回数据转发给终端,终端就可以直接使用返回的数据。本发明无需进行配置,可以像使用普通设备一样访问服务器上的数据;外置设备作为中间交互设备,无需将终端接入网络;脱离了对操作系统和客户端的依赖,不仅适用于常规的操作系统,还适用于一些不开放的设备或者系统,例如机顶盒和打印机等。The device for updating data of the present invention describes an external device as a universal device when the external device is connected to the terminal through an interface, so that the built-in driver can be used, and when the data is updated, the user can use the ordinary device. Similarly, when an external device sends an operation request, all operation requests are converted into operations on the server. After the server performs the corresponding operation, the data is returned, and the returned data is forwarded to the terminal, and the terminal can directly use the returned data. The invention does not need to be configured, and can access data on the server like a normal device; the external device acts as an intermediate interaction device, and does not need to connect the terminal to the network; the dependence on the operating system and the client is not only applicable to the conventional operating system. It is also suitable for some devices or systems that are not open, such as set-top boxes and printers.
在一个实施例中,返回的所述数据包括终端的可执行程序。In one embodiment, the returned data includes an executable program of the terminal.
在一个实施例中,所述可执行程序包括通信代码和屏幕数据抓取代码,所述通信代码包括终端与外置设备之间通信的代码以及外置设备与服务器之间通信的代码,所述屏幕数据抓取代码包括通过终端API进行音频抓取的编码代码和通过终端API进行屏幕抓取的视频或图像编码代码中的任意一种或两种。In one embodiment, the executable program includes a communication code and a screen data capture code, the communication code including code for communication between the terminal and the external device, and code for communication between the external device and the server, The screen data capture code includes either or both of an encoding code for audio capture by the terminal API and a video or image encoding code for screen capture by the terminal API.
在一个实施例中,本发明装置还包括与所述数据接收和发送模块相连的图像数据接收模块和图像数据发送模块;所述图像数据接收模块接收终端通过通信代码发送的音视频图像数据,其中音视频图像数据通过所述屏幕数据抓取代码获取;所述图像数据发送模块用于将音视频图像数据转发给所述服务器进行显示。In one embodiment, the apparatus of the present invention further includes an image data receiving module and an image data transmitting module connected to the data receiving and transmitting module; the image data receiving module receives audio and video image data transmitted by the terminal through the communication code, wherein The audio and video image data is acquired by the screen data capture code; the image data transmission module is configured to forward the audio and video image data to the server for display.
在一个实施例中,本发明装置还包括网络连接模块,所述网络连接模块在 外置设备通过接口与终端连接时,驱动所述外置设备中的无线网卡或有线网卡,通过配置文件中的信息将无线网卡或有线网卡连入网络。外置设备自身设置有网卡,在连接终端通电时接入网络,从而可以与服务器进行通信。In one embodiment, the apparatus of the present invention further includes a network connection module, and the network connection module is When the external device is connected to the terminal through the interface, the wireless network card or the wired network card in the external device is driven, and the wireless network card or the wired network card is connected to the network through the information in the configuration file. The external device itself is provided with a network card, and accesses the network when the connection terminal is powered on, so that communication with the server can be performed.
一种更新数据的外置设备,包括网卡以及所述的更新数据的装置;所述外置设备通过接口与终端连接,通过网卡接入网络,与服务器建立连接。An external device for updating data, comprising a network card and the device for updating data; the external device is connected to the terminal through an interface, and accesses the network through the network card to establish a connection with the server.
本发明更新数据的外置设备,外置设备通过接口与终端连接时,终端将外置设备识别为通用的设备,那么终端即可以使用内置的驱动程序,在更新数据时,用户可以像使用普通的设备一样对外置设备发送操作请求,外置设备将所有的操作请求转换为对服务器的操作,服务器执行相应的操作后返回数据,外置设备将返回数据转发给终端,终端就可以直接使用返回的数据。本发明无需进行配置,可以像使用普通设备一样访问服务器上的数据;外置设备作为中间交互设备,无需将终端接入网络;脱离了对操作系统和客户端的依赖,不仅适用于常规的操作系统,还适用于一些不开放的设备或者系统,例如机顶盒和打印机等。The external device for updating data of the present invention, when the external device is connected to the terminal through the interface, the terminal recognizes the external device as a universal device, then the terminal can use the built-in driver, and when updating the data, the user can use the ordinary The device sends an operation request to the external device, and the external device converts all the operation requests into operations on the server. After the server performs the corresponding operation, the data is returned, and the external device forwards the returned data to the terminal, and the terminal can directly use the return. The data. The invention does not need to be configured, and can access data on the server like a normal device; the external device acts as an intermediate interaction device, and does not need to connect the terminal to the network; the dependence on the operating system and the client is not only applicable to the conventional operating system. It is also suitable for some devices or systems that are not open, such as set-top boxes and printers.
在一个实施例中,所述网卡包括有线网卡和无线网卡中的任意一种或两种。In one embodiment, the network card includes any one or two of a wired network card and a wireless network card.
一种更新数据的系统,包括:终端、至少一个外置设备以及服务器;所述服务器包括存储装置、节点配置装置,适于通过存储装置预先存储数据,以及通过所述节点配置装置与所述外置设备建立通信,根据接收的所述操作请求或者所述网络请求,将所述数据返回给所述外置设备;A system for updating data, comprising: a terminal, at least one external device, and a server; the server includes a storage device, a node configuration device, is adapted to pre-store data through the storage device, and configures the device and the external device through the node Setting the device to establish communication, and returning the data to the external device according to the received operation request or the network request;
所述终端,用于将设备描述符请求发送给所述外置设备;以及向外置设备发送操作请求,接收所述数据;The terminal is configured to send a device descriptor request to the external device; and send an operation request to the external device to receive the data;
所述外置设备包括连接装置以及发射装置,所述连接装置用于通过接口与所述终端连接,并在接收到所述设备描述符请求时将响应返回给所述终端,以及转发接收到的所述数据;所述发射装置具有收发器,用于通信,并将接收到的操作请求发送给服务器,或者将所述操作请求转换成网络请求后发送给服务器。The external device includes a connection device and a transmitting device, the connection device is configured to connect with the terminal through an interface, and return a response to the terminal upon receiving the device descriptor request, and forward the received The transmitting device has a transceiver for communicating, and sends the received operation request to the server, or converts the operation request into a network request and sends the request to the server.
本发明更新数据的系统,外置设备通过接口与终端连接时,终端将外置设备识别为通用的设备,那么终端即可以使用内置的驱动程序,在更新数据时, 用户可以像使用普通的设备一样对外置设备发送操作请求,外置设备将所有的操作请求转换为对服务器的操作,服务器执行相应的操作后返回数据,外置设备将返回数据转发给终端,终端就可以直接使用返回的数据。本发明无需进行配置,可以像使用普通设备一样访问服务器上的数据;外置设备作为中间交互设备,无需将终端接入网络;脱离了对操作系统和客户端的依赖,不仅适用于常规的操作系统,还适用于一些不开放的设备或者系统,例如机顶盒和打印机等。The system for updating data of the present invention, when the external device is connected to the terminal through the interface, the terminal recognizes the external device as a universal device, and the terminal can use the built-in driver, when updating the data, The user can send an operation request to the external device as if it were a normal device. The external device converts all operation requests into operations on the server. After the server performs the corresponding operation, the data is returned, and the external device forwards the returned data to the terminal. You can use the returned data directly. The invention does not need to be configured, and can access data on the server like a normal device; the external device acts as an intermediate interaction device, and does not need to connect the terminal to the network; the dependence on the operating system and the client is not only applicable to the conventional operating system. It is also suitable for some devices or systems that are not open, such as set-top boxes and printers.
在一个实施例中,所述响应包括所述外置设备为大容量存储设备的响应;所述数据包括终端的可执行程序。In one embodiment, the response includes the external device being a response of the mass storage device; the data comprising an executable program of the terminal.
在一个实施例中,所述可执行程序包括通信代码和屏幕数据抓取代码,所述通信代码包括终端与外置设备之间通信的代码以及外置设备与服务器之间通信的代码,所述屏幕数据抓取代码包括通过终端API进行音频抓取的编码代码和通过终端API进行屏幕抓取的视频或图像编码代码中的任意一种或两种。In one embodiment, the executable program includes a communication code and a screen data capture code, the communication code including code for communication between the terminal and the external device, and code for communication between the external device and the server, The screen data capture code includes either or both of an encoding code for audio capture by the terminal API and a video or image encoding code for screen capture by the terminal API.
在一个实施例中,所述终端接收所述数据之后,还用于通过通信代码将编码的音视频图像数据发送给所述外置设备,其中音视频图像数据通过所述屏幕数据抓取代码获取;所述外置设备将音视频图像数据转发给所述服务器;所述服务器对音视频图像数据进行解码显示。In an embodiment, after receiving the data, the terminal is further configured to send the encoded audio and video image data to the external device by using a communication code, where the audio and video image data is obtained by using the screen data capture code. The external device forwards the audio and video image data to the server; the server decodes and displays the audio and video image data.
在一个实施例中,所述服务器还用于获取本地请求信息,将所述请求信息通过所述外置设备发送给所述终端;所述终端执行所述请求信息,并将执行后的结果通过所述外置设备转发给所述服务器。In an embodiment, the server is further configured to acquire local request information, and send the request information to the terminal by using the external device; the terminal executes the request information, and passes the executed result The external device forwards to the server.
在一个实施例中,所述请求信息包括用户的触摸操作信息。用户可以直接在服务器上进行触摸操作,服务器将该触摸操作信息通过外置设备发送给终端进行响应,终端将响应的结果通过外置设备发送给服务器,服务器显示响应的结果,相当于用户可以在服务器中直接对相应的图像进行操作,相较于依赖终端进行图像操作的技术,本发明更进一步的提高了用户操作的便捷性。In one embodiment, the request information includes touch operation information of the user. The user can directly perform a touch operation on the server, and the server sends the touch operation information to the terminal through the external device for response, and the terminal sends the response result to the server through the external device, and the server displays the result of the response, which is equivalent to the user can The server directly operates on the corresponding image, and the invention further improves the convenience of the user operation compared to the technology that relies on the terminal to perform image operations.
附图说明DRAWINGS
图1为本发明更新数据的方法实施例的流程示意图; 1 is a schematic flow chart of an embodiment of a method for updating data according to the present invention;
图2为本发明更新数据的装置实施例的结构示意图;2 is a schematic structural diagram of an apparatus for updating data according to the present invention;
图3为本发明更新数据的外置设备实施例的结构示意图;3 is a schematic structural diagram of an embodiment of an external device for updating data according to the present invention;
图4为本发明更新数据的系统实施例的结构示意图;4 is a schematic structural diagram of a system embodiment for updating data according to the present invention;
图5为本发明PC、外置设备和智能交互平板之间的交互示意图。FIG. 5 is a schematic diagram of interaction between a PC, an external device, and a smart interaction tablet according to the present invention.
具体实施方式detailed description
为更进一步阐述本发明所采取的技术手段及取得的效果,下面结合附图及较佳实施例,对本发明的技术方案,进行清楚和完整的描述。The technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings and preferred embodiments.
如图1所示,一种更新数据的方法,包括步骤:As shown in FIG. 1, a method for updating data includes the steps of:
S110、在外置设备通过接口与终端连接时,接收所述终端发送的设备描述符请求,根据所述设备描述符请求返回响应;S110. Receive an apparatus descriptor request sent by the terminal when the external device is connected to the terminal through the interface, and return a response according to the device descriptor request.
S120、接收所述终端发送的操作请求,将所述操作请求发送给服务器,或者将所述操作请求转换为网络请求后发送给服务器;S120: Receive an operation request sent by the terminal, send the operation request to a server, or convert the operation request into a network request, and send the operation request to the server;
S130、接收所述服务器根据所述操作请求或者所述网络请求返回的数据,将返回的所述数据转发给所述终端。S130. Receive, by the server, the returned data according to the operation request or the data returned by the network request, and forward the returned data to the terminal.
本发明方法可以根据相应的程序实现,程序运行在外置设备包含的嵌入式操作系统上。外置设备还包括处理器和内存,用于保证嵌入式系统的正常运行。下面对本发明方法的各个步骤进行详细介绍。The method of the present invention can be implemented according to a corresponding program, and the program runs on an embedded operating system included in the external device. The external device also includes a processor and memory to ensure the proper operation of the embedded system. The various steps of the method of the invention are described in detail below.
在步骤S110中,外置设备具有接口,通过接口与终端连接。终端可以为用户电脑、手机、机顶盒和打印机等。外置设备与终端连接时,终端会向外置设备发出设备描述符请求,请求外置设备描述自身,在接收到该设备描述符请求后,返回一个响应,将自己描述为通用的设备。In step S110, the external device has an interface connected to the terminal through the interface. The terminal can be a user's computer, a mobile phone, a set top box, a printer, and the like. When the external device is connected to the terminal, the terminal sends a device descriptor request to the external device, requests the external device to describe itself, and after receiving the device descriptor request, returns a response and describes itself as a general device.
考虑到适用性和兼容性,在一个实施例中,所述响应包括所述外置设备为大容量存储设备的响应等。大容量存储设备为辅助存储器,是存储器的统称,包括USB(Universal Serial Bus,通用串行总线)大容量存储设备等。In view of applicability and compatibility, in one embodiment, the response includes the response of the external device to a mass storage device, and the like. The mass storage device is a secondary storage and is a general term for storage, including a USB (Universal Serial Bus) mass storage device.
以大容量存储设备为USB大容量存储设备为例,在接收到终端发送的设备描述符请求时,将外置设备描述为USB大容量存储设备,终端就将该外置设备识别为USB大容量存储设备。 Taking a large-capacity storage device as a USB mass storage device as an example, when receiving a device descriptor request sent by the terminal, the external device is described as a USB mass storage device, and the terminal recognizes the external device as a USB large capacity. Storage device.
当将外置设备描述为USB大容量存储设备时,外置设备的接口设置为USB接口,通过USB接口与终端连接。当将外置设备描述为其它的通用的大容量存储设备时,外置设备的接口就设置为对应大容量存储设备所支持的接口,通过支持的接口与终端连接。When an external device is described as a USB mass storage device, the interface of the external device is set to a USB interface, and is connected to the terminal through the USB interface. When an external device is described as another general-purpose large-capacity storage device, the interface of the external device is set to correspond to the interface supported by the large-capacity storage device, and is connected to the terminal through the supported interface.
由于终端将外置设备识别为通用的设备,那么即可以使用内置的驱动程序,例如,一般操作系统都集成了USB协议的驱动,在外置设备为USB大容量存储设备时,终端就可以使用内置的USB协议的驱动。Since the terminal recognizes the external device as a general-purpose device, the built-in driver can be used. For example, the general operating system integrates the USB protocol driver, and when the external device is a USB mass storage device, the terminal can use the built-in terminal. The driver of the USB protocol.
由于外置设备作为数据交换设备,需要与服务器建立连接。所以,在一个实施例中,在外置设备通过接口与终端连接时,还可以包括步骤:Since the external device acts as a data exchange device, it needs to establish a connection with the server. Therefore, in an embodiment, when the external device is connected to the terminal through the interface, the method may further include the following steps:
驱动所述外置设备中的无线网卡或有线网卡,通过配置文件中的信息将无线网卡或有线网卡连入网络。The wireless network card or the wired network card in the external device is driven, and the wireless network card or the wired network card is connected to the network through the information in the configuration file.
将外置设备接入终端时,嵌入式系统即通电启动,嵌入式系统启动后驱动无线网卡或者有线网卡,通过预先设定的配置自动将外置设备连入网络。用户也可以在外置设备中设置电源模块,通过自身的电源模块自动接入网络。When the external device is connected to the terminal, the embedded system is powered on. After the embedded system is started, the wireless network card or the wired network card is driven, and the external device is automatically connected to the network through a preset configuration. The user can also set the power module in the external device and automatically access the network through its own power module.
在步骤S120中,由于终端将外置设备识别为通用的设备,所以用户可以采用常规操作发送操作请求,其中操作请求包括读写请求和查询请求等等。外置设备接收到终端的操作请求后,可以通过自定义协议将操作请求转换为相应的网络请求(包括但不限于HTTP/FTP/SAMBA),然后发送给服务器,也可以将操作请求直接转发给服务器,让服务器自行进行转换。服务器位于本地或者互联网,可以为智能交互平板等。In step S120, since the terminal recognizes the external device as a general-purpose device, the user can transmit an operation request using a normal operation, wherein the operation request includes a read-write request and a query request and the like. After receiving the operation request from the terminal, the external device can convert the operation request into a corresponding network request (including but not limited to HTTP/FTP/SAMBA) through a custom protocol, and then send it to the server, or directly forward the operation request to the operation request. Server, let the server convert itself. The server is located locally or on the Internet, and can be a smart interactive tablet.
以USB大容量存储设备为例,USB大容量存储设备的操作遵循的是SCSI(Small Computer System Interface,小型计算机系统接口)协议,终端对USB大容量存储设备的操作(查询分区结构,读取文件目录,读写删除文件等)最终都转化为SCSI指令,通过USB包装发送给USB大容量存储设备。例如打开USB大容量存储设备,实际上是终端的操作系统通过SCSI指令的读取请求,读取设备的文件分配表(闪存文件系统系统中的一块儿数据区,表示这个文件系统中包含哪些文件)。然后外置设备将这些请求转换为网络请求发送至服务器或者不进行转换直接发送给服务器。 Taking a USB mass storage device as an example, the operation of the USB mass storage device follows the SCSI (Small Computer System Interface) protocol, and the terminal operates on the USB mass storage device (query the partition structure and read the file). The directory, read and write delete files, etc.) are eventually converted to SCSI commands and sent to the USB mass storage device via USB packaging. For example, if the USB mass storage device is turned on, the operating system of the terminal actually reads the file by the SCSI command, and reads the file allocation table of the device (a data area in the flash file system), indicating which files are included in the file system. ). The external device then translates these requests into network requests for delivery to the server or sends them directly to the server without conversion.
在对操作请求进行转换时,可以将操作请求转换为相应的字符串,例如终端发送的读写请求一般包括读写位置以及读写长度信息等,可以通过字符串将该读写请求转换为请求的类型+请求的位置+请求的数据长度等形式的字符串。需要说明的是,将操作请求转换为网络请求有多种方法,用户可以采用其他现有技术中的方式对操作请求进行转换,本发明并不对此做出限定。When the operation request is converted, the operation request may be converted into a corresponding string. For example, the read/write request sent by the terminal generally includes a read/write position and a read/write length information, etc., and the read/write request may be converted into a request by a string. The type + the location of the request + the requested data length and other forms of the string. It should be noted that there are multiple methods for converting an operation request into a network request, and the user may convert the operation request by using other methods in the prior art, which is not limited by the present invention.
在步骤S130中,服务器根据操作请求或者网络请求执行相应的操作后返回数据。在一个实施例中,返回的所述数据可以包括终端的可执行程序。可执行程序是指一种可在操作系统存储空间中浮动定位的可执行程序。服务器返回的数据还可以是除可执行程序外的其他数据,例如终端发送的对某个扇区的读写请求,服务器根据读写请求找到对应位置且对应长度的数据,并将对应的数据返回给外置设备。又例如终端发出查询设备是否就绪的请求,服务器根据当前状态返回设备是否就绪。In step S130, the server returns data according to the operation request or the network request to perform the corresponding operation. In one embodiment, the returned data may include an executable program of the terminal. An executable program is an executable program that can be floated in the operating system's storage space. The data returned by the server may also be other data than the executable program, for example, a read/write request sent by the terminal to a certain sector, and the server finds the corresponding position and corresponding length data according to the read/write request, and returns the corresponding data. Give an external device. For another example, the terminal issues a request to query whether the device is ready, and the server returns whether the device is ready according to the current state.
在一个实施例中,所述可执行程序可以包括通信代码和屏幕数据抓取代码。所述通信代码包括终端与外置设备之间通信的代码以及外置设备与服务器之间通信的代码。通信代码使得终端能够通过代码将抓取的音视频图像数据发送给外置设备,外置设备转发音视频图像数据给服务器。所述屏幕数据抓取代码包括通过终端API(Application Programming Interface,应用程序编程接口)进行音频抓取的编码代码和通过终端API进行屏幕抓取的视频或图像编码代码中的任意一种或两种。In one embodiment, the executable program can include communication code and screen data capture code. The communication code includes a code for communication between the terminal and the external device and a code for communication between the external device and the server. The communication code enables the terminal to transmit the captured audio and video image data to the external device through the code, and the external device converts the pronounced video image data to the server. The screen data capture code includes any one or two of an encoding code for audio capture through a terminal API (Application Programming Interface) and a video or image encoding code for screen capture through a terminal API. .
外置设备将返回的数据转发给所述终端,以响应终端发起的请求。例如,以USB大容量存储设备为例,外置设备根据USB Mass Storage协议将返回的所述数据转发给所述终端。由于此时外置设备与终端之间有通信代码,所以所述数据的转发直接通过通信代码实现。The external device forwards the returned data to the terminal in response to the request initiated by the terminal. For example, taking a USB mass storage device as an example, the external device forwards the returned data to the terminal according to the USB Mass Storage protocol. Since there is a communication code between the external device and the terminal at this time, the forwarding of the data is directly realized by the communication code.
在一个实施例中,将返回的所述数据转发给所述终端之后,还可以包括步骤:In an embodiment, after forwarding the returned data to the terminal, the method may further include the following steps:
接收终端通过通信代码发送的音视频图像数据,其中音视频图像数据通过所述屏幕数据抓取代码获取;Receiving audio and video image data sent by the terminal through the communication code, wherein the audio and video image data is obtained by the screen data capture code;
将音视频图像数据转发给所述服务器进行显示。 The audio and video image data is forwarded to the server for display.
音视频图像数据抓取之后,终端一般会将这些音视频图像数据进行编码,将编码的数据通过外置设备发送给服务器。服务器接收到编码数据后进行解码显示。After the audio and video image data is captured, the terminal generally encodes the audio and video image data, and sends the encoded data to the server through an external device. After the server receives the encoded data, it performs decoding display.
本发明将外置设备描述为通用的设备,例如大容量存储设备,使用终端内置的驱动程序,终端在与外置设备连接时自动完成驱动的安装。本发明无需配置,用户可以像使用普通设备一样访问存储在服务器上的文件,所有请求都会经外置设备进行转换,将终端的操作请求转换为对网络存储服务器的操作。本发明脱离了对操作系统和客户端的依赖,可以在一些不开放的设备或者系统上使用。The present invention describes an external device as a general-purpose device, such as a mass storage device, and uses a built-in driver of the terminal, and the terminal automatically completes the installation of the driver when connected with the external device. The invention does not need to be configured, and the user can access the file stored on the server as if it were a normal device, and all the requests are converted by the external device, and the operation request of the terminal is converted into the operation of the network storage server. The invention departs from the dependence on the operating system and the client and can be used on some devices or systems that are not open.
基于同一发明构思,本发明还提供一种更新数据的装置,下面结合附图对本发明装置的具体实施方式做详细描述。Based on the same inventive concept, the present invention further provides an apparatus for updating data, and a specific embodiment of the apparatus of the present invention will be described in detail below with reference to the accompanying drawings.
如图2所示,一种更新数据的装置,包括:As shown in FIG. 2, an apparatus for updating data includes:
设备描述符请求响应模块110,用于在外置设备通过接口与终端连接时,接收所述终端发送的设备描述符请求,根据所述设备描述符请求返回响应;The device descriptor request response module 110 is configured to: when the external device is connected to the terminal through the interface, receive a device descriptor request sent by the terminal, and return a response according to the device descriptor request;
操作请求接收和发送模块120,用于接收所述终端发送的操作请求,将所述操作请求发送给服务器,或者将所述操作请求转换为网络请求后发送给服务器;The operation request receiving and sending module 120 is configured to receive an operation request sent by the terminal, send the operation request to a server, or convert the operation request into a network request, and send the operation request to the server;
数据接收和发送模块130,用于接收所述服务器根据所述操作请求或者所述网络请求返回的数据,将返回的所述数据转发给所述终端。The data receiving and sending module 130 is configured to receive, by the server, the returned data according to the operation request or the network request, and forward the returned data to the terminal.
本发明装置可以根据相应的程序模块实现,程序模块运行在外置设备包含的嵌入式操作系统上。外置设备还包括处理器和内存,用于保证嵌入式系统的正常运行。下面对本发明装置的各个模块进行详细介绍。The device of the present invention can be implemented according to a corresponding program module, and the program module runs on an embedded operating system included in the external device. The external device also includes a processor and memory to ensure the proper operation of the embedded system. The various modules of the apparatus of the present invention are described in detail below.
外置设备与终端连接时,终端会向外置设备发出设备描述符请求,请求外置设备描述自身,设备描述符请求响应模块110接收设备描述符请求后返回一个响应,将自己描述为通用的设备。When the external device is connected to the terminal, the terminal sends a device descriptor request to the external device, requesting the external device to describe itself, and the device descriptor request response module 110 returns a response after receiving the device descriptor request, and describes itself as a universal device.
考虑到适用性和兼容性,在一个实施例中,所述响应包括所述外置设备为大容量存储设备的响应等。大容量存储设备为辅助存储器,是存储器的统称,包括USB大容量存储设备等。In view of applicability and compatibility, in one embodiment, the response includes the response of the external device to a mass storage device, and the like. A mass storage device is a secondary storage and is a general term for storage, including a USB mass storage device.
由于外置设备作为数据交换设备,需要与服务器建立连接。所以,在一个 实施例中,本发明装置还可以包括网络连接模块,所述网络连接模块在外置设备通过接口与终端连接时,驱动所述外置设备中的无线网卡或有线网卡,通过配置文件中的信息将无线网卡或有线网卡连入网络。用户也可以在外置设备中设置电源模块,通过自身的电源模块自动接入网络。Since the external device acts as a data exchange device, it needs to establish a connection with the server. So, in one In an embodiment, the device of the present invention may further include a network connection module, where the external connection device drives the wireless network card or the wired network card in the external device when the external device is connected to the terminal through the interface, and the information in the configuration file is used. A wireless network card or a wired network card is connected to the network. The user can also set the power module in the external device and automatically access the network through its own power module.
操作请求包括读写请求和查询请求等。操作请求接收和发送模块120接收到终端的操作请求后,可以通过自定义协议将操作请求转换为相应的网络请求,然后发送给服务器,也可以将操作请求直接转发给服务器,让服务器自行进行转换。Operation requests include read and write requests and query requests. After receiving the operation request of the terminal, the operation request receiving and sending module 120 may convert the operation request into a corresponding network request through a custom protocol, and then send the operation request to the server, or directly forward the operation request to the server, and let the server convert the operation. .
服务器根据操作请求或者网络请求执行相应的操作后返回数据,在一个实施例中,返回的所述数据可以包括终端的可执行程序。可执行程序是指一种可在操作系统存储空间中浮动定位的可执行程序。服务器返回的数据还可以是除可执行程序外的其他数据,例如终端发送的对某个扇区的读写请求,服务器根据读写请求找到对应位置且对应长度的数据,并将对应的数据返回给外置设备。又例如终端发出查询设备是否就绪的请求,服务器根据当前状态返回设备是否就绪。The server returns data after performing a corresponding operation according to the operation request or the network request. In one embodiment, the returned data may include an executable program of the terminal. An executable program is an executable program that can be floated in the operating system's storage space. The data returned by the server may also be other data than the executable program, for example, a read/write request sent by the terminal to a certain sector, and the server finds the corresponding position and corresponding length data according to the read/write request, and returns the corresponding data. Give an external device. For another example, the terminal issues a request to query whether the device is ready, and the server returns whether the device is ready according to the current state.
在一个实施例中,所述可执行程序可以包括通信代码和屏幕数据抓取代码。所述通信代码包括终端与外置设备之间通信的代码以及外置设备与服务器之间通信的代码,所述屏幕数据抓取代码包括通过终端API进行音频抓取的编码代码和通过终端API进行屏幕抓取的视频或图像编码代码中的任意一种或两种。In one embodiment, the executable program can include communication code and screen data capture code. The communication code includes a code for communication between the terminal and the external device, and a code for communication between the external device and the server, the screen data capture code including an encoding code for audio capture through the terminal API and through the terminal API Either or both of the captured video or image encoding code.
数据接收和发送模块130接收服务器返回的数据,将返回的数据转发给所述终端,以响应终端发起的请求。例如,以USB大容量存储设备为例,所述数据接收和发送模块130根据USB Mass Storage协议将返回的所述数据转发给所述终端。由于此时外置设备与终端之间有通信代码,所以所述数据的转发直接通过通信代码实现。The data receiving and transmitting module 130 receives the data returned by the server, and forwards the returned data to the terminal in response to the request initiated by the terminal. For example, taking a USB mass storage device as an example, the data receiving and transmitting module 130 forwards the returned data to the terminal according to a USB Mass Storage protocol. Since there is a communication code between the external device and the terminal at this time, the forwarding of the data is directly realized by the communication code.
在一个实施例中,本发明装置还可以包括与所述数据接收和发送模块130相连的图像数据接收模块和图像数据发送模块;所述图像数据接收模块接收终端通过通信代码发送的音视频图像数据,其中音视频图像数据通过所述屏幕数据抓取代码获取;所述图像数据发送模块用于将音视频图像数据转发给所述服 务器进行显示。音视频图像数据抓取之后,终端一般会将这些音视频图像数据进行编码,将编码的数据发送给服务器。服务器接收到编码数据后进行解码显示。In an embodiment, the apparatus of the present invention may further include an image data receiving module and an image data transmitting module connected to the data receiving and transmitting module 130; the image data receiving module receives audio and video image data sent by the terminal through the communication code. And wherein the audio and video image data is obtained by the screen data capture code; the image data sending module is configured to forward the audio and video image data to the service The server displays. After the audio and video image data is captured, the terminal generally encodes the audio and video image data and transmits the encoded data to the server. After the server receives the encoded data, it performs decoding display.
本发明将外置设备描述为通用的设备,例如大容量存储设备,使用终端内置的驱动程序,终端在与外置设备连接时自动完成驱动的安装。本发明无需配置,用户可以像使用普通设备一样访问存储在服务器上的文件,所有请求都会经外置设备进行转换,将终端的操作请求转换为对网络存储服务器的操作。本发明脱离了对操作系统和客户端的依赖,可以在一些不开放的设备或者系统上使用。The present invention describes an external device as a general-purpose device, such as a mass storage device, and uses a built-in driver of the terminal, and the terminal automatically completes the installation of the driver when connected with the external device. The invention does not need to be configured, and the user can access the file stored on the server as if it were a normal device, and all the requests are converted by the external device, and the operation request of the terminal is converted into the operation of the network storage server. The invention departs from the dependence on the operating system and the client and can be used on some devices or systems that are not open.
如图3所示,本发明还提供一种更新数据的外置设备,外置设备包括网卡以及所述的更新数据的装置;所述外置设备通过接口与终端连接,通过网卡接入网络,与服务器建立连接。所述网卡包括有线网卡和无线网卡中的任意一种或两种。As shown in FIG. 3, the present invention further provides an external device for updating data, where the external device includes a network card and the device for updating data; the external device is connected to the terminal through an interface, and accesses the network through the network card. Establish a connection to the server. The network card includes any one or two of a wired network card and a wireless network card.
如图4所示,本发明还提供一种更新数据的系统,所述更新数据的系统包括:包括:终端、至少一个外置设备以及服务器;所述服务器包括存储装置、节点配置装置,适于通过存储装置预先存储数据,以及通过所述节点配置装置与所述外置设备建立通信,根据接收的所述操作请求或者所述网络请求,将所述数据返回给所述外置设备;As shown in FIG. 4, the present invention further provides a system for updating data, the system for updating data comprising: a terminal, at least one external device, and a server; the server includes a storage device, a node configuration device, and is adapted to Pre-storing data by the storage device, and establishing communication with the external device by the node configuration device, and returning the data to the external device according to the received operation request or the network request;
所述终端,用于将设备描述符请求发送给所述外置设备;以及向外置设备发送操作请求,接收所述数据;The terminal is configured to send a device descriptor request to the external device; and send an operation request to the external device to receive the data;
所述外置设备包括连接装置以及发射装置,所述连接装置用于通过接口与所述终端连接,并在接收到所述设备描述符请求时将响应返回给所述终端,以及转发接收到的所述数据;所述发射装置具有收发器,用于通信,并将接收到的操作请求发送给服务器,或者将所述操作请求转换成网络请求后发送给服务器。The external device includes a connection device and a transmitting device, the connection device is configured to connect with the terminal through an interface, and return a response to the terminal upon receiving the device descriptor request, and forward the received The transmitting device has a transceiver for communicating, and sends the received operation request to the server, or converts the operation request into a network request and sends the request to the server.
在一个实施例中,所述响应包括所述外置设备为大容量存储设备的响应;所述数据包括终端的可执行程序。In one embodiment, the response includes the external device being a response of the mass storage device; the data comprising an executable program of the terminal.
在一个实施例中,所述可执行程序包括通信代码和屏幕数据抓取代码,所 述通信代码包括终端与外置设备之间通信的代码以及外置设备与服务器之间通信的代码,所述屏幕数据抓取代码包括通过终端API进行音频抓取的编码代码和通过终端API进行屏幕抓取的视频或图像编码代码中的任意一种或两种。In one embodiment, the executable program includes a communication code and a screen data capture code, The communication code includes a code for communication between the terminal and the external device and a code for communication between the external device and the server, the screen data capture code including an encoding code for audio capture through the terminal API and a screen through the terminal API Either or both of the captured video or image encoding code.
在一个实施例中,所述终端接收转换后的所述数据之后,还用于通过通信代码将编码的音视频图像数据发送给所述外置设备,其中音视频图像数据通过所述屏幕数据抓取代码获取;所述外置设备将音视频图像数据转发给所述服务器;所述服务器对音视频图像数据进行解码显示。In an embodiment, after receiving the converted data, the terminal is further configured to send the encoded audio and video image data to the external device by using a communication code, where the audio and video image data is captured by the screen data. Taking the code acquisition; the external device forwards the audio and video image data to the server; and the server decodes and displays the audio and video image data.
在一个实施例中,所述服务器还用于获取本地请求信息,将所述请求信息通过所述外置设备发送给所述终端;所述终端执行所述请求信息,并将执行后的结果通过所述外置设备转发给所述服务器。请求信息包括用户的触摸操作信息等。为了更好地理解该过程,下面结合一个具体实施例进行说明。In an embodiment, the server is further configured to acquire local request information, and send the request information to the terminal by using the external device; the terminal executes the request information, and passes the executed result The external device forwards to the server. The request information includes user's touch operation information and the like. In order to better understand the process, a specific embodiment will be described below.
服务器上显示有视频图像,用户触摸视频图像窗口的关闭按钮,服务器就将关闭窗口的请求信息通过外置设备发送给终端,终端根据该请求信息关闭相应的窗口,并将关闭该窗口后的屏幕数据通过外置设备转发给服务器,服务器接收该屏幕数据后进行显示,则显示的即为关闭该视频图像窗口后的画面。相当于用户可以在服务器中直接对相应的图像进行操作,无需仅仅依赖于终端的操作模式,进一步提高了用户操作的便捷性。A video image is displayed on the server, and the user touches the close button of the video image window, and the server sends the request information for closing the window to the terminal through the external device, and the terminal closes the corresponding window according to the request information, and closes the screen after the window. The data is forwarded to the server through the external device, and after the server receives the screen data and displays it, the screen after closing the video image window is displayed. It is equivalent to the user can directly operate the corresponding image in the server, and does not need to rely solely on the operation mode of the terminal, thereby further improving the convenience of the user operation.
为了更好的理解本发明,下面结合一个具体实施例对PC(personal computer,个人计算机)、外置设备和智能交互平板之间的交互过程进行详细说明。For a better understanding of the present invention, the interaction process between a PC (personal computer), an external device, and a smart interaction tablet will be described in detail below in conjunction with a specific embodiment.
S1、将外置设备通过USB接口连接到PC时,通过PC内部驱动或自定义驱动建立通信,外置设备通过内置的无线网卡连入WIFI(无线网),与智能交互平板建立连接,PC向外置设备发送设备描述符请求;S1. When the external device is connected to the PC through the USB interface, communication is established through the internal driver of the PC or a custom driver, and the external device is connected to the WIFI (wireless network) through the built-in wireless network card, and establishes a connection with the smart interactive tablet, and the PC The external device sends a device descriptor request;
S2、外置设备将USB大容量存储设备的响应返回给PC;S2. The external device returns the response of the USB mass storage device to the PC;
S3、PC向外置设备发送下载通信代码和屏幕数据抓取代码的操作请求;S3. The PC sends an operation request for downloading the communication code and the screen data capture code to the external device;
S4、外置设备将操作请求转换后发送给智能交互平板;S4. The external device converts the operation request and sends the operation request to the smart interaction tablet;
S5、智能交互平板根据操作请求将自身存储的通信代码和屏幕数据抓取代码发送给外置设备;S5. The smart interaction tablet sends the stored communication code and the screen data capture code to the external device according to the operation request;
S6、外置设备将通信代码和屏幕数据抓取代码转发给PC; S6. The external device forwards the communication code and the screen data capture code to the PC;
S7、PC接收的通信代码使得PC、外置设备和智能交互平板之间建立数据通信,PC将通过屏幕数据抓取代码抓取的音视频图像数据发送给外置设备;The communication code received by the S7 and the PC enables data communication between the PC, the external device and the smart interaction tablet, and the PC transmits the audio and video image data captured by the screen data capture code to the external device;
S8、外置设备将音视频图像数据转发给智能交互平板进行显示;S8. The external device forwards the audio and video image data to the smart interaction tablet for display;
S9、智能交互平板获取用户的请求信息并发送给外置设备;S9. The smart interaction tablet acquires the request information of the user and sends the request information to the external device.
S10、外置设备将请求信息发送给终端;S10. The external device sends the request information to the terminal.
S11、终端执行所述请求信息,将执行结果发送给外置设备;S11. The terminal executes the request information, and sends the execution result to the external device.
S12、外置设备将执行结果发送给智能交互平板进行显示。S12. The external device sends the execution result to the smart interaction tablet for display.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。 The above-described embodiments are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.

Claims (21)

  1. 一种更新数据的方法,其特征在于,包括步骤:A method for updating data, comprising the steps of:
    在外置设备通过接口与终端连接时,接收所述终端发送的设备描述符请求,根据所述设备描述符请求返回响应;Receiving, by the external device, the device descriptor request sent by the terminal, and returning a response according to the device descriptor request;
    接收所述终端发送的操作请求,将所述操作请求发送给服务器,或者将所述操作请求转换为网络请求后发送给服务器;Receiving an operation request sent by the terminal, sending the operation request to a server, or converting the operation request into a network request, and sending the operation request to the server;
    接收所述服务器根据所述操作请求或者所述网络请求返回的数据,将返回的所述数据转发给所述终端。Receiving, by the server, the returned data according to the operation request or the data returned by the network request, and forwarding the returned data to the terminal.
  2. 根据权利要求1所述的更新数据的方法,其特征在于,所述响应包括所述外置设备为大容量存储设备的响应。The method of updating data according to claim 1, wherein the response comprises the external device being a response of the mass storage device.
  3. 根据权利要求2所述的更新数据的方法,其特征在于,所述大容量存储设备包括USB大容量存储设备。The method of updating data according to claim 2, wherein said mass storage device comprises a USB mass storage device.
  4. 根据权利要求3所述的更新数据的方法,其特征在于,根据USB Mass Storage协议将返回的所述数据转发给所述终端。The method of updating data according to claim 3, wherein said returned data is forwarded to said terminal in accordance with a USB Mass Storage protocol.
  5. 根据权利要求1所述的更新数据的方法,其特征在于,返回的所述数据包括终端的可执行程序。The method of updating data according to claim 1, wherein said returned data comprises an executable program of the terminal.
  6. 根据权利要求5所述的更新数据的方法,其特征在于,所述可执行程序包括通信代码和屏幕数据抓取代码,所述通信代码包括终端与外置设备之间通信的代码以及外置设备与服务器之间通信的代码,所述屏幕数据抓取代码包括通过终端API进行音频抓取的编码代码和通过终端API进行屏幕抓取的视频或图像编码代码中的任意一种或两种。The method of updating data according to claim 5, wherein said executable program comprises a communication code and a screen data capture code, said communication code comprising code for communication between the terminal and the external device, and an external device A code for communication with a server, the screen data capture code including one or both of an encoding code for audio capture by a terminal API and a video or image encoding code for screen capture by a terminal API.
  7. 根据权利要求6所述的更新数据的方法,其特征在于,将返回的所述数据转发给所述终端之后,还包括步骤:The method for updating data according to claim 6, wherein after forwarding the returned data to the terminal, the method further comprises the steps of:
    接收终端通过通信代码发送的音视频图像数据,其中音视频图像数据通过所述屏幕数据抓取代码获取;Receiving audio and video image data sent by the terminal through the communication code, wherein the audio and video image data is obtained by the screen data capture code;
    将音视频图像数据转发给所述服务器进行显示。The audio and video image data is forwarded to the server for display.
  8. 根据权利要求1至7任意一项所述的更新数据的方法,其特征在于,在外置设备通过接口与终端连接时,还包括步骤: The method for updating data according to any one of claims 1 to 7, wherein when the external device is connected to the terminal through the interface, the method further comprises the steps of:
    驱动所述外置设备中的无线网卡或有线网卡,通过配置文件中的信息将无线网卡或有线网卡连入网络。The wireless network card or the wired network card in the external device is driven, and the wireless network card or the wired network card is connected to the network through the information in the configuration file.
  9. 一种更新数据的装置,其特征在于,包括:An apparatus for updating data, comprising:
    设备描述符请求响应模块,用于在外置设备通过接口与终端连接时,接收所述终端发送的设备描述符请求,根据所述设备描述符请求返回响应;a device descriptor request response module, configured to receive a device descriptor request sent by the terminal when the external device is connected to the terminal through the interface, and return a response according to the device descriptor request;
    操作请求接收和发送模块,用于接收所述终端发送的操作请求,将所述操作请求发送给服务器,或者将所述操作请求转换为网络请求后发送给服务器;An operation request receiving and sending module, configured to receive an operation request sent by the terminal, send the operation request to a server, or convert the operation request into a network request, and send the operation request to the server;
    数据接收和发送模块,用于接收所述服务器根据所述操作请求或者所述网络请求返回的数据,将返回的所述数据转发给所述终端。And a data receiving and sending module, configured to receive, by the server, the returned data according to the operation request or the network request, and forward the returned data to the terminal.
  10. 根据权利要求9所述的更新数据的装置,其特征在于,返回的所述数据包括终端的可执行程序。The apparatus for updating data according to claim 9, wherein said returned data comprises an executable program of the terminal.
  11. 根据权利要求10所述的更新数据的装置,其特征在于,所述可执行程序包括通信代码和屏幕数据抓取代码,所述通信代码包括终端与外置设备之间通信的代码以及外置设备与服务器之间通信的代码,所述屏幕数据抓取代码包括通过终端API进行音频抓取的编码代码和通过终端API进行屏幕抓取的视频或图像编码代码中的任意一种或两种。The apparatus for updating data according to claim 10, wherein said executable program comprises a communication code and a screen data capture code, said communication code comprising a code for communication between the terminal and the external device, and an external device A code for communication with a server, the screen data capture code including one or both of an encoding code for audio capture by a terminal API and a video or image encoding code for screen capture by a terminal API.
  12. 根据权利要求11所述的更新数据的装置,其特征在于,还包括与所述数据接收和发送模块相连的图像数据接收模块和图像数据发送模块;所述图像数据接收模块接收终端通过通信代码发送的音视频图像数据,其中音视频图像数据通过所述屏幕数据抓取代码获取;所述图像数据发送模块用于将音视频图像数据转发给所述服务器进行显示。The apparatus for updating data according to claim 11, further comprising an image data receiving module and an image data transmitting module connected to said data receiving and transmitting module; said image data receiving module receiving terminal transmitting by said communication code Audio and video image data, wherein the audio and video image data is acquired by the screen data capture code; the image data transmission module is configured to forward the audio and video image data to the server for display.
  13. 根据权利要求9至12任意一项所述的更新数据的装置,其特征在于,还包括网络连接模块,所述网络连接模块在外置设备通过接口与终端连接时,驱动所述外置设备中的无线网卡或有线网卡,通过配置文件中的信息将无线网卡或有线网卡连入网络。The device for updating data according to any one of claims 9 to 12, further comprising a network connection module, wherein the network connection module drives the external device when the external device is connected to the terminal through the interface A wireless network card or a wired network card connects the wireless network card or wired network card to the network through the information in the configuration file.
  14. 一种更新数据的外置设备,其特征在于,包括网卡以及权利要求9至13中任意一项所述的更新数据的装置;所述外置设备通过接口与终端连接,通过网卡接入网络,与服务器建立连接。 An external device for updating data, comprising: a network card; and the device for updating data according to any one of claims 9 to 13; the external device is connected to the terminal through an interface, and accesses the network through the network card. Establish a connection to the server.
  15. 根据权利要求14所述的更新数据的外置设备,其特征在于,所述网卡包括有线网卡和无线网卡中的任意一种或两种。The external device for updating data according to claim 14, wherein the network card comprises any one or two of a wired network card and a wireless network card.
  16. 一种更新数据的系统,其特征在于,包括:终端、至少一个外置设备以及服务器;A system for updating data, comprising: a terminal, at least one external device, and a server;
    所述服务器包括存储装置、节点配置装置,适于通过存储装置预先存储数据,以及通过所述节点配置装置与所述外置设备建立通信,根据接收的所述操作请求或者所述网络请求,将所述数据返回给所述外置设备;The server includes a storage device, a node configuration device, is adapted to pre-store data through the storage device, and establishes communication with the external device through the node configuration device, according to the received operation request or the network request, Returning the data to the external device;
    所述终端,用于将设备描述符请求发送给所述外置设备;以及向外置设备发送操作请求,接收所述数据;The terminal is configured to send a device descriptor request to the external device; and send an operation request to the external device to receive the data;
    所述外置设备包括连接装置以及发射装置,所述连接装置用于通过接口与所述终端连接,并在接收到所述设备描述符请求时将响应返回给所述终端,以及转发接收到的所述数据;所述发射装置具有收发器,用于通信,并将接收到的操作请求发送给服务器,或者将所述操作请求转换成网络请求后发送给服务器。The external device includes a connection device and a transmitting device, the connection device is configured to connect with the terminal through an interface, and return a response to the terminal upon receiving the device descriptor request, and forward the received The transmitting device has a transceiver for communicating, and sends the received operation request to the server, or converts the operation request into a network request and sends the request to the server.
  17. 根据权利要求16所述的更新数据的系统,其特征在于,所述响应包括所述外置设备为大容量存储设备的响应;所述数据包括终端的可执行程序。A system for updating data according to claim 16, wherein said response comprises said external device being a response of a mass storage device; said data comprising an executable program of the terminal.
  18. 根据权利要求17所述的更新数据的系统,其特征在于,所述可执行程序包括通信代码和屏幕数据抓取代码,所述通信代码包括终端与外置设备之间通信的代码以及外置设备与服务器之间通信的代码,所述屏幕数据抓取代码包括通过终端API进行音频抓取的编码代码和通过终端API进行屏幕抓取的视频或图像编码代码中的任意一种或两种。A system for updating data according to claim 17, wherein said executable program comprises a communication code and a screen data capture code, said communication code comprising code for communication between the terminal and the external device, and an external device A code for communication with a server, the screen data capture code including one or both of an encoding code for audio capture by a terminal API and a video or image encoding code for screen capture by a terminal API.
  19. 根据权利要求18所述的更新数据的系统,其特征在于,所述终端接收所述数据之后,还用于通过通信代码将编码的音视频图像数据发送给所述外置设备,其中音视频图像数据通过所述屏幕数据抓取代码获取;所述外置设备将音视频图像数据转发给所述服务器;所述服务器对音视频图像数据进行解码显示。The system for updating data according to claim 18, wherein after receiving the data, the terminal is further configured to send the encoded audio and video image data to the external device by using a communication code, wherein the audio and video image The data is obtained by the screen data capture code; the external device forwards the audio and video image data to the server; and the server decodes and displays the audio and video image data.
  20. 根据权利要求19所述的更新数据的系统,其特征在于,所述服务器还用于获取本地请求信息,将所述请求信息通过所述外置设备发送给所述终端; 所述终端执行所述请求信息,并将执行后的结果通过所述外置设备转发给所述服务器。The system for updating data according to claim 19, wherein the server is further configured to acquire local request information, and send the request information to the terminal by using the external device; The terminal executes the request information, and forwards the executed result to the server through the external device.
  21. 根据权利要求20所述的更新数据的系统,其特征在于,所述请求信息包括用户的触摸操作信息。 A system for updating data according to claim 20, wherein said request information includes touch operation information of a user.
PCT/CN2016/113218 2016-05-20 2016-12-29 Method, apparatus, system and external device for updating data WO2017197894A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610345620.8A CN105915624B (en) 2016-05-20 2016-05-20 Method, device and system for updating data and external equipment
CN201610345620.8 2016-05-20

Publications (1)

Publication Number Publication Date
WO2017197894A1 true WO2017197894A1 (en) 2017-11-23

Family

ID=56749638

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/113218 WO2017197894A1 (en) 2016-05-20 2016-12-29 Method, apparatus, system and external device for updating data

Country Status (3)

Country Link
CN (1) CN105915624B (en)
TW (1) TWI633446B (en)
WO (1) WO2017197894A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105915624B (en) * 2016-05-20 2020-04-03 广州视睿电子科技有限公司 Method, device and system for updating data and external equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640702A (en) * 2009-08-27 2010-02-03 深圳华为通信技术有限公司 Portable storage method and device
CN101872429A (en) * 2009-04-24 2010-10-27 联芯科技有限公司 Plug-and-play data card and driver installation method thereof
CN102457990A (en) * 2010-10-28 2012-05-16 Tcl集团股份有限公司 Mobile terminal provided with WLAN (Wireless Local Area Network) card function and implementation method thereof
CN104951417A (en) * 2014-03-26 2015-09-30 北京同方微电子有限公司 Method for achieving USB combined device suitable for high-capacity USIM
CN105915624A (en) * 2016-05-20 2016-08-31 广州视睿电子科技有限公司 Method, device and system for updating data and external device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5978379A (en) * 1997-01-23 1999-11-02 Gadzoox Networks, Inc. Fiber channel learning bridge, learning half bridge, and protocol
US7206283B2 (en) * 2001-05-15 2007-04-17 Foundry Networks, Inc. High-performance network switch
US7187687B1 (en) * 2002-05-06 2007-03-06 Foundry Networks, Inc. Pipeline method and system for switching packets
US20090043902A1 (en) * 2007-04-12 2009-02-12 Stefano Faccin Packet data network connectivity domain selection and bearer setup
US9210030B1 (en) * 2010-11-01 2015-12-08 Aol Advertising Inc. Methods and systems for data validation in a client-server environment
CN104778829B (en) * 2014-01-11 2017-10-13 广州合立正通信息科技有限公司 A kind of control method of infrared equipment
CN104064201B (en) * 2014-06-13 2017-04-12 广州视睿电子科技有限公司 Data synchronization method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872429A (en) * 2009-04-24 2010-10-27 联芯科技有限公司 Plug-and-play data card and driver installation method thereof
CN101640702A (en) * 2009-08-27 2010-02-03 深圳华为通信技术有限公司 Portable storage method and device
CN102457990A (en) * 2010-10-28 2012-05-16 Tcl集团股份有限公司 Mobile terminal provided with WLAN (Wireless Local Area Network) card function and implementation method thereof
CN104951417A (en) * 2014-03-26 2015-09-30 北京同方微电子有限公司 Method for achieving USB combined device suitable for high-capacity USIM
CN105915624A (en) * 2016-05-20 2016-08-31 广州视睿电子科技有限公司 Method, device and system for updating data and external device

Also Published As

Publication number Publication date
CN105915624B (en) 2020-04-03
TWI633446B (en) 2018-08-21
CN105915624A (en) 2016-08-31
TW201741900A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
TWI455033B (en) Memory system allowing host to easily transmit and receive data
US10021180B2 (en) Universal environment extender
EP2753047B1 (en) Method of sharing contents by using personal cloud device, and electronic device and personal cloud system using the same
KR101413260B1 (en) Method and system for transferring data between portable terminal and external device
EP3944584B1 (en) Method supporting wireless access to storage device, and mobile routing hotspot device
JP2011504619A (en) Method and memory card for wireless digital content management
WO2014134950A1 (en) Remote operation method and system
WO2018107719A1 (en) Data sharing method, apparatus, terminal device and server
EP3032838A1 (en) Message processing method, device, gateway, set-top box and internet protocol television system
US9571954B2 (en) Information processing system, information processing method, mobile phone, server, and control methods and control programs thereof
KR20150080722A (en) Apparatus and Method for managing files
US9838386B2 (en) Information processing system, information processing device, and device control method
WO2017197894A1 (en) Method, apparatus, system and external device for updating data
JP2013514580A (en) How to convert digital data
US20090222455A1 (en) Communication process and device
KR20140066919A (en) Method and system for transferring data between cloud and external device
KR101221152B1 (en) Network Storage Apparatus and Method for Controlling thereof, and Network Storage System
KR101295216B1 (en) Portable wireless contents sharing device and method with external storage interface
US10310993B2 (en) Emulation of physical equipment
JP5647714B1 (en) Display control apparatus, display control method, and program
EP3404892B1 (en) Method of transferring audiovisual data and corresponding device
CN106993217A (en) Module TV accesses the system and method for its external module with double wifi networkings
KR20060108420A (en) Remote memory system for mobile phones
TWI436221B (en) Method for providing remote access and communication device thereof
TW201445324A (en) Connecting and accessing method for remote hard drive, and non-transitory computer readable medium for using the same

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16902273

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16902273

Country of ref document: EP

Kind code of ref document: A1