TW201741900A - 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
TW201741900A
TW201741900A TW105137758A TW105137758A TW201741900A TW 201741900 A TW201741900 A TW 201741900A TW 105137758 A TW105137758 A TW 105137758A TW 105137758 A TW105137758 A TW 105137758A TW 201741900 A TW201741900 A TW 201741900A
Authority
TW
Taiwan
Prior art keywords
terminal
data
external device
request
code
Prior art date
Application number
TW105137758A
Other languages
Chinese (zh)
Other versions
TWI633446B (en
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 TW201741900A publication Critical patent/TW201741900A/en
Application granted granted Critical
Publication of TWI633446B publication Critical patent/TWI633446B/en

Links

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 is related to a method, an apparatus and an external device for updating data. The method includes: when the external device connects with a terminal via an interface, receiving a device descriptor request from the terminal, and returning a response according to the device descriptor request; receiving an operation request from the terminal, transmitting the operation request to a server, or converting the operation request into a network request and transmitting the network request to the server; and receiving data which is returned by the server according to the operation request or the network request, and forwarding the returned data to the terminal. The present invention does not need configuration, and the terminal does not need to be connected to the network, staying away from dependence of an operating system and a client. It is not only suitable for normal operating systems, but is also suitable for several non-public apparatuses or systems.

Description

更新資料的方法、裝置、系統以及外接設備Method, device, system and external device for updating data

本發明涉及資料處理技術領域,特別是涉及一種更新資料的方法、更新資料的裝置、更新資料的系統以及更新資料的外接設備。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.

當終端需要使用一些經常更新的內容時,通常採用網路磁碟映射,或者使用網路硬碟。在採用網路磁碟映射時,需要將局部網路內的共用資料夾作為一個虛擬的網路硬碟,然後將該網路硬碟映射到終端。在使用網路硬碟時,需要使用瀏覽器存取對應網站並輸入用戶名和密碼,然後獲取網路硬碟內容,或者藉由安裝用戶端獲取網路硬碟內容。這兩種方案均存在以下缺陷:When the terminal needs to use some frequently updated content, it usually uses network disk mapping or uses a network hard disk. In the case of network disk mapping, the shared folder in the local network needs to be used as a virtual network hard disk, and then the network hard disk is mapped to the terminal. When using a network hard drive, you need to use a browser to access the corresponding website and enter a username and password, then obtain the contents of the network hard disk, or obtain the contents of the network hard disk by installing the client. Both of these programs have the following drawbacks:

1、均需要進行配置,例如,網路磁碟的方案需要映射,網路硬碟的方案需要配置用戶名和密碼或者安裝用戶端;1. All need to be configured. For example, the network disk solution needs to be mapped. The network hard disk solution needs to be configured with a username and password or a user terminal.

2、終端均需要連上網路;2. The terminals need to be connected to the network;

3、僅能在一些特定作業系統上使用,例如,在系統不具備開放的瀏覽器時,無法使用網路硬碟。3. It can only be used on some specific operating systems. For example, if the system does not have an open browser, the network hard disk cannot be used.

基於此,有必要針對上述問題,提供一種更新資料的方法、裝置、系統以及外接設備,能夠在更新資料時無需配置、無需連上網路以及不受作業系統的限制。Based on this, it is necessary to provide a method, a device, a system, and an external device for updating the data in response to the above problems, and it is possible to update the data without configuration, without connecting to 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 for updating data includes the following steps: receiving a device descriptor request sent by the terminal when the external device is connected to the terminal through the interface, requesting a return response according to the device descriptor, and receiving the sending response by the terminal An operation request, the operation request is sent to the server, or the operation request is converted into a network request and sent to the server; and the server is received according to the operation request or the network request backhaul The data is forwarded to the terminal by the returned data.

本發明更新資料的方法,藉由介面將外接設備與終端連接時,將外接設備描述成通用的設備,那麼即可以使用終端內置的驅動程式,在更新資料時,使用者可以像使用普通的設備一樣對外接設備發送操作請求,所有的操作請求均會轉換為對伺服器的操作,伺服器執行相應的操作後回傳資料,將回傳資料轉發給終端,終端就可以直接使用回傳的資料。本發明無需進行配置,可以像使用普通設備一樣存取伺服器上的資料;外接設備作為中間交互設備,無需將終端連上網路;脫離了對作業系統和用戶端的依賴,不僅適用於常規的作業系統,另適用於一些不開放的設備或者系統,例如機上盒和印表機等。The method for updating the data of the present invention, when the external device is connected to the terminal through the interface, describes the external device as a universal device, that is, the driver built in the terminal 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 the 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 reliance on the operating system and the user terminal is not only suitable for the regular operation. The system 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 a response of the external device to a mass storage device. The external device is described as a large-capacity storage device, and the terminal recognizes the external device as a large-capacity storage device, which improves the adaptability.

在一個實施例中,所述大容量儲存設備包含USB大容量儲存設備。USB大容量儲存設備為通用的存放裝置,與各個系統基本上都相容,進一步提高了適用性。In one embodiment, the mass storage device comprises a USB mass storage device. The USB mass storage device is a universal 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 a 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 The data capture code includes 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.

在一個實施例中,將回傳的所述資料轉發給所述終端之後,另包含下述步驟:接收終端藉由通信代碼發送的音視頻圖像資料,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;將音視頻圖像資料轉發給所述伺服器以進行顯示。In an embodiment, after forwarding the returned data to the terminal, the method further includes the following steps: receiving audio and video image data sent by the terminal by using a communication code, wherein the audio and video image data is The screen data capture code is acquired; 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 connecting the wireless network card or the wired network card by using the information in the configuration file. Go online. The external device itself is provided with a network card, and is connected to the network when the connection terminal is powered on, so that communication with the server can be performed.

一種更新資料的裝置,包含設備描述符請求回應模組、操作請求接收和發送模組以及資料接收和發送模組。設備描述符請求回應模組用於在外接設備藉由介面與終端連接時,接收所述終端發送的設備描述符請求,根據所述設備描述符請求回傳回應。操作請求接收和發送模組用於接收所述終端發送的操作請求,將所述操作請求發送給伺服器,或者將所述操作請求轉換為網路請求後發送給伺服器。資料接收和發送模組用於接收所述伺服器根據所述操作請求或者所述網路請求回傳的資料,將回傳的所述資料轉發給所述終端。An apparatus for updating data includes a device descriptor request response module, an operation request receiving and transmitting module, and a data receiving and transmitting module. The device descriptor request response module is configured to receive a device descriptor request sent by the terminal when the external device is connected to the terminal through the interface, and request a return response according to the device descriptor. The operation request receiving and transmitting module is configured to receive an operation request sent by the terminal, send the operation request to the server, or convert the operation request into a network request and send the operation request to the server. The data receiving and sending module 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 for updating data of the present invention describes the external device as a universal device when the external device is connected to the terminal through the 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 the 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 reliance on the operating system and the user terminal is not only suitable for the regular operation. The system 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 The data capture code includes 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.

在一個實施例中,本發明裝置另包含與所述資料接收和發送模組相連的圖像資料接收模組和圖像資料發送模組;所述圖像資料接收模組接收終端藉由通信代碼發送的音視頻圖像資料,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;所述圖像資料發送模組用於將音視頻圖像資料轉發給所述伺服器以進行顯示。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 receiving terminal is communicated by the communication code The transmitted audio and video image data, 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 server for display .

在一個實施例中,本發明裝置另包含網路連接模組,所述網路連接模組在外接設備藉由介面與終端連接時,驅動所述外接設備中的無線網卡或有線網卡,藉由設定檔中的資訊將無線網卡或有線網卡連上網路。外接設備自身設置有網卡,在連接終端通電時連上網路,從而可以與伺服器進行通信。In an embodiment, the device of the present invention further includes a network connection module, and the network connection module 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. The information in the profile connects the wireless network card or wired network card to the network. The external device itself is provided with a network card, and is connected to 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 the network card is connected to the network to establish a connection with the server.

本發明更新資料的外接設備,外接設備藉由介面與終端連接時,終端將外接設備識別為通用的設備,那麼終端即可以使用內置的驅動程式,在更新資料時,使用者可以像使用普通的設備一樣對外接設備發送操作請求,外接設備將所有的操作請求轉換為對伺服器的操作,伺服器執行相應的操作後回傳資料,外接設備將回傳資料轉發給終端,終端就可以直接使用回傳的資料。本發明無需進行配置,可以像使用普通設備一樣存取伺服器上的資料;外接設備作為中間交互設備,無需將終端連上網路;脫離了對作業系統和用戶端的依賴,不僅適用於常規的作業系統,另適用於一些不開放的設備或者系統,例如機上盒和印表機等。The external device of the update 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 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 data. Returned information. The invention does not need to be configured, and can access the 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 reliance on the operating system and the user terminal is not only suitable for the regular operation. The system 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 includes: 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 by the storage device, and configures the device and the device by the node The external device establishes communication, and returns 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 sending device, wherein the connection device is configured to connect to the terminal through an interface, and send a response back to the terminal when receiving the device descriptor request, and forward and receive the response. The information obtained; 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 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, and when updating the data, the user can use the ordinary device. Similarly, the external device sends an operation request, 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 back. The information passed. The invention does not need to be configured, and can access the 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 reliance on the operating system and the user terminal is not only suitable for the regular operation. The system 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 to 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 The data capture code includes 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.

在一個實施例中,所述終端接收所述資料之後,另用於藉由通信代碼將編碼的音視頻圖像資料發送給所述外接設備,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;所述外接設備將音視頻圖像資料轉發給所述伺服器;所述伺服器對音視頻圖像資料進行解碼顯示。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, wherein 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 the audio and video image data.

在一個實施例中,所述伺服器另用於獲取本地請求資訊,將所述請求資訊藉由所述外接設備發送給所述終端;所述終端執行所述請求資訊,並將執行後的結果藉由所述外接設備轉發給所述伺服器。In an embodiment, the server is further configured to obtain local request information, and send the request information to the terminal by using the external device; the terminal executes the request information, and the executed result is performed. Forwarded to the server by the external device.

在一個實施例中,所述請求資訊包含使用者的觸摸操作資訊。用戶可以直接在伺服器上進行觸摸操作,伺服器將該觸摸操作資訊藉由外接設備發送給終端進行回應,終端將回應的結果藉由外接設備發送給伺服器,伺服器顯示回應的結果,相當於用戶可以在伺服器中直接對相應的圖像進行操作,相較於依賴終端進行圖像操作的技術,本發明更進一步的提高了用戶操作的便捷性。In one embodiment, the request information includes user touch operation information. 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. The user can directly operate the corresponding image in the server, and the invention further improves the convenience of the user operation compared to the technology that relies on the terminal to perform image operations.

為更進一步闡述本發明所採取的技術手段及取得的效果,下面結合圖式及較佳實施例,對本發明的技術方案,進行清楚和完整的描述。The technical solutions of the present invention will be clearly and completely described below in conjunction with the drawings and the preferred embodiments.

如第1圖所示,一種更新資料的方法,包含步驟:As shown in Figure 1, a method of updating data includes the steps of:

步驟S110:在外接設備藉由介面與終端連接時,接收所述終端發送的設備描述符(descriptor)請求,並根據所述設備描述符請求回傳回應;Step S110: When the external device is connected to the terminal through the interface, receiving a device descriptor request sent by the terminal, and requesting a return response according to the device descriptor;

步驟S120:接收所述終端發送的操作請求,將所述操作請求發送給伺服器,或者將所述操作請求轉換為網路請求後發送給伺服器;Step S120: receiving an operation request sent by the terminal, sending the operation request to the server, or converting the operation request into a network request, and sending the operation request to the server;

步驟S130:接收所述伺服器根據所述操作請求或者所述網路請求回傳的資料,並將回傳的所述資料轉發給所述終端。Step S130: Receive data returned by the server according to the operation request or 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, and a printer. 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-purpose device.

考慮到適用性和相容性,在一個實施例中,所述回應包含所述外接設備為大容量儲存設備的回應等。大容量儲存設備為次要存放裝置,是記憶體的統稱,包含USB(Universal Serial Bus,通用序列匯流排)大容量儲存設備等。In view of applicability and compatibility, in one embodiment, the response includes a response of the external device to the mass storage device, and the like. The mass storage device is a secondary storage device and is a general term for memory. It includes 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 mass storage device. .

當將外接設備描述為USB大容量儲存設備時,外接設備的介面設置為USB介面,藉由USB介面與終端連接。當將外接設備描述為其它的通用的大容量儲存設備時,外接設備的介面就設置為對應大容量儲存設備所支援的介面,藉由支援的介面與終端連接。When the external device is described as a USB mass storage device, the interface of the external device is set to a USB interface, and the terminal is connected through the USB interface. When the 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 the interface 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 USB protocol driver.

由於外接設備作為資料交換設備,需要與伺服器建立連線。所以,在一個實施例中,在外接設備藉由介面與終端連接時,可以另包含步驟: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:

驅動所述外接設備中的無線網卡或有線網卡,藉由設定檔中的資訊將無線網卡或有線網卡連上網路。Driving the wireless network card or the wired network card in the external device, and connecting the wireless network card or the wired network card to the network by using 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 by a preset configuration. The user can also set the power module in the external device and automatically connect to 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 of the terminal, the external device can convert the operation request into a corresponding network request (including but not limited to HTTP/FTP/SAMBA) by using a custom protocol, and then send the request to the server, or directly the operation request. Forward to the server and 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 partition structure, read file) The directory, read and write delete files, etc.) are eventually converted to SCSI commands, which are 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 configuration table of the device by using the read request of the SCSI command (a data area in the flash memory file system indicates that the file system is in the file system). What files are included). The external device then converts these requests into network requests for transmission 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 string by the string. A string of the form of the requested type + requested location + requested data length, etc. It should be noted that there are multiple methods for converting an operation request into a network request, and the user can 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 the data after performing the corresponding operation according to the operation request or the network request. In one embodiment, the returned material may include an executable program of the terminal. An executable 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 except the executable program, for example, a read/write request sent by the terminal to a certain magnetic area, and the server finds the corresponding position and the corresponding length according to the read/write request, and correspondingly The data is passed back to the external device. For another example, the terminal sends a request for querying 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 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 communication code enables the terminal to transmit the captured audio and video image data to the external device by the code, and the external device transfers the sounding video image data to the server. The screen data capture code includes an encoding code for audio capture by a terminal API (Application Programming Interface) and a video or image encoding code for screen capture by a terminal API. Or two.

外接設備將回傳的資料轉發給所述終端,以回應終端發起的請求。例如,以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 implemented by the communication code.

在一個實施例中,將回傳的所述資料轉發給所述終端之後,可以另包含步驟:In an embodiment, after forwarding the returned data to the terminal, the method may further include:

接收終端藉由通信代碼發送的音視頻圖像資料,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;Receiving audio and video image data transmitted by the terminal by the communication code, wherein the audio and video image data is obtained by the screen data capture code;

將音視頻圖像資料轉發給所述伺服器以進行顯示。The audiovisual 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 decodes and displays it.

本發明將外接設備描述為通用的設備,例如大容量儲存設備,使用終端內置的驅動程式,終端在與外接設備連接時自動完成驅動的安裝。本發明無需配置,使用者可以像使用普通設備一樣存取存儲在伺服器上的檔,所有請求都會經外接設備進行轉換,將終端的操作請求轉換為對網路存儲伺服器的操作。本發明脫離了對作業系統和用戶端的依賴,可以在一些不開放的設備或者系統上使用。The invention describes the external device as a universal device, such as a large-capacity storage device, and uses the built-in driver of the terminal, and the terminal automatically completes the installation of the driver when connecting 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 present invention deviates from the reliance 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 drawings.

如第2圖所示,一種更新資料的裝置,包含:As shown in Figure 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 request a return response according to the device descriptor;

操作請求接收和發送模組120,用於接收所述終端發送的操作請求,將所述操作請求發送給伺服器,或者將所述操作請求轉換為網路請求後發送給伺服器;The operation request receiving and transmitting 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 the data returned by the server 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 device 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 a response of the external device to the mass storage device, and the like. The mass storage device is a secondary storage device and is a general term for memory, 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. Therefore, in an embodiment, the device of the present invention may further include a network connection module, and the network connection module drives a wireless network card or a wired network card in the external device when the external device is connected to the terminal through the interface. Connect the wireless network card or wired network card to the network by using the information in the profile. The user can also set the power module in the external device and automatically connect to 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 transmitting module 120 may convert the operation request into a corresponding network request by using a custom protocol, and then send the operation request to the server, or directly forward the operation request to the server. Let the server convert itself.

伺服器根據操作請求或者網路請求執行相應的操作後回傳資料,在一個實施例中,回傳的所述資料可以包含終端的可執行程式。可執行程式是指一種可在作業系統存儲空間中浮動定位的可執行程式。伺服器回傳的資料還可以是除可執行程式外的其他資料,例如終端發送的對某個磁區的讀寫請求,伺服器根據讀寫請求找到對應位置且對應長度的資料,並將對應的資料回傳給外接設備。又例如終端發出查詢設備是否就緒的請求,伺服器根據當前狀態回傳設備是否就緒。The server returns the data after performing the corresponding operation according to the operation request or the network request. In an embodiment, the returned data may include the executable program of the terminal. An executable 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 except the executable program, for example, a read/write request sent by the terminal to a certain magnetic area, and the server finds the corresponding position and the corresponding length according to the read/write request, and correspondingly The data is passed back to the external device. For another example, the terminal sends a request for querying 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 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, where the screen data capture code includes an encoded code for audio capture by the terminal API and by using a terminal API. Either or both of the video or image encoding code for screen capture.

資料接收和發送模組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 the USB mass storage device as an example, the data receiving and transmitting module 130 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 implemented by the communication code.

在一個實施例中,本發明裝置可以另包含與所述資料接收和發送模組130相連的圖像資料接收模組和圖像資料發送模組;所述圖像資料接收模組接收終端藉由通信代碼發送的音視頻圖像資料,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;所述圖像資料發送模組用於將音視頻圖像資料轉發給所述伺服器以進行顯示。音視頻圖像資料抓取之後,終端一般會將這些音視頻圖像資料進行編碼,將編碼的資料發送給伺服器。伺服器接收到編碼資料後進行解碼顯示。In an embodiment, the device of the present invention may further include an image data receiving module and an image data sending module connected to the data receiving and transmitting module 130; the image data receiving module receiving terminal The audio and video image data sent by the communication code, 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 server 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. After the server receives the encoded data, it decodes and displays it.

本發明將外接設備描述為通用的設備,例如大容量儲存設備,使用終端內置的驅動程式,終端在與外接設備連接時自動完成驅動的安裝。本發明無需配置,使用者可以像使用普通設備一樣存取存儲在伺服器上的檔,所有請求都會經外接設備進行轉換,將終端的操作請求轉換為對網路存儲伺服器的操作。本發明脫離了對作業系統和用戶端的依賴,可以在一些不開放的設備或者系統上使用。The invention describes the external device as a universal device, such as a large-capacity storage device, and uses the built-in driver of the terminal, and the terminal automatically completes the installation of the driver when connecting 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 present invention deviates from the reliance 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, 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 is connected to the network by the network card, and The server establishes a connection. 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 includes: a terminal, at least one external device, and a server; the server includes a storage device and a node configuration device. Pre-storing data by the storage device, and establishing communication with the external device by the node configuration device, and transmitting the data back 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 connecting device and a sending device, wherein the connecting device is configured to connect to the terminal by using an interface, and send a response back to the terminal when receiving the device descriptor request, and forward and receive the response. 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 to 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 The data capture code includes 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.

在一個實施例中,所述終端接收轉換後的所述資料之後,還用於藉由通信代碼將編碼的音視頻圖像資料發送給所述外接設備,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;所述外接設備將音視頻圖像資料轉發給所述伺服器;所述伺服器對音視頻圖像資料進行解碼顯示。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, wherein the audio and video image data is The screen data capture code is obtained; the external device forwards the audio and video image data to the server; and the server decodes the audio and video image data.

在一個實施例中,所述伺服器另用於獲取本地請求資訊,將所述請求資訊藉由所述外接設備發送給所述終端;所述終端執行所述請求資訊,並將執行後的結果藉由所述外接設備轉發給所述伺服器。請求資訊包含使用者的觸摸操作資訊等。為了更好地理解該過程,下面結合一個具體實施例進行說明。In an embodiment, the server is further configured to obtain local request information, and send the request information to the terminal by using the external device; the terminal executes the request information, and the executed result is performed. Forwarded to the server by the external device. The request information includes the 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 data after the window is forwarded to the server by the external device, and after the server receives the screen data and displays it, the screen after closing the video image window is displayed. Equivalent to the user can directly operate the corresponding image in the server, without relying solely on the operation mode of the terminal, 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 interactive tablet will be described in detail below in conjunction with a specific embodiment.

步驟S1:當將外接設備藉由USB介面連接到PC時,藉由PC內部驅動或自訂驅動建立通信,外接設備藉由內置的無線網卡連上WIFI(無線網),與智慧互動式平板建立連線,PC向外接設備發送設備描述符請求;Step S1: When the external device is connected to the PC through the USB interface, the communication is established by the internal driving or the customized driving of the PC, and the external device is connected to the smart interactive tablet by connecting the WIFI (wireless network) with the built-in wireless network card. Connect, the PC sends a device descriptor request to the external device;

步驟S2:外接設備將USB大容量儲存設備的回應回傳給PC;Step S2: the external device returns the response of the USB mass storage device to the PC;

步驟S3:PC向外接設備發送下載通信代碼和螢幕資料抓取代碼的操作請求;Step S3: the PC sends an operation request for downloading the communication code and the screen data capture code to the external device;

步驟S4:外接設備將操作請求轉換後發送給智慧互動式平板;Step S4: the external device converts the operation request and sends it to the smart interactive tablet;

步驟S5:智慧互動式平板根據操作請求將自身存儲的通信代碼和螢幕資料抓取代碼發送給外接設備;Step S5: the smart interactive tablet sends the stored communication code and the screen data capture code to the external device according to the operation request;

步驟S6:外接設備將通信代碼和螢幕資料抓取代碼轉發給PC;Step S6: the external device forwards the communication code and the screen data capture code to the PC;

步驟S7:PC接收的通信代碼使得PC、外接設備和智慧互動式平板之間建立資料通信,PC將藉由螢幕資料抓取代碼抓取的音視頻圖像資料發送給外接設備;Step S7: The communication code received by the PC enables data communication between the PC, the external device, and the smart interactive tablet, and the PC transmits the audio and video image data captured by the screen data capture code to the external device;

步驟S8:外接設備將音視頻圖像資料轉發給智慧互動式平板以進行顯示;Step S8: the external device forwards the audio and video image data to the smart interactive tablet for display;

步驟S9:智慧互動式平板獲取使用者的請求資訊並發送給外接設備;Step S9: the smart interactive tablet acquires the request information of the user and sends the information to the external device;

步驟S10:外接設備將請求資訊發送給終端;Step S10: the external device sends the request information to the terminal.

步驟S11:終端執行所述請求資訊,將執行結果發送給外接設備;Step S11: The terminal executes the request information, and sends the execution result to the external device.

步驟S12:外接設備將執行結果發送給智慧互動式平板以進行顯示。Step S12: The external device sends the execution result to the smart interactive 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 without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the scope of the appended claims. The above are only the preferred embodiments of the present invention, and all changes and modifications made to the scope of the present invention should be within the scope of the present invention.

110‧‧‧設備描述符請求回應模組
120‧‧‧操作請求接收和發送模組
130‧‧‧資料接收和發送模組
S1至S12、S110至S130‧‧‧步驟
110‧‧‧Device Descriptor Request Response Module
120‧‧‧Operation request receiving and transmitting module
130‧‧‧ Data receiving and transmitting module
Steps S1 to S12, S110 to S130‧‧

第1圖為本發明更新資料的方法實施例的流程示意圖; 第2圖為本發明更新資料的裝置實施例的結構示意圖; 第3圖為本發明更新資料的外接設備實施例的結構示意圖; 第4圖為本發明更新資料的系統實施例的結構示意圖; 第5圖為本發明PC、外接設備和智慧互動式平板之間的互動示意圖。1 is a schematic flow chart of an embodiment of a method for updating data according to the present invention; FIG. 2 is a schematic structural diagram of an apparatus for updating data according to the present invention; FIG. 3 is a schematic structural diagram of an embodiment of an external device for updating data according to the present invention; 4 is a schematic structural diagram of a system embodiment for updating data according to the present invention; FIG. 5 is a schematic diagram of interaction between a PC, an external device, and a smart interactive tablet according to the present invention.

S1至S12‧‧‧步驟 S1 to S12‧‧‧ steps

Claims (21)

一種更新資料的方法,包含下述步驟: 在一外接設備藉由一介面與一終端連接時,接收該終端發送的一設備描述符(descriptor)請求,並根據該設備描述符請求回傳一回應; 接收該終端發送的一操作請求,將該操作請求發送給一伺服器,或者將該操作請求轉換為一網路請求後發送給該伺服器;以及 接收該伺服器根據該操作請求或者該網路請求回傳的資料,並將回傳的該資料轉發給該終端。A method for updating data includes the following steps: when an external device is connected to a terminal through an interface, receiving a device descriptor request sent by the terminal, and requesting a response to be sent back according to the device descriptor 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; and receiving the server according to the operation request or the network The road requests the returned data and forwards the returned data to the terminal. 如請求項1所述的更新資料的方法,其中該回應包含該外接設備為大容量儲存設備的回應。The method of updating data according to claim 1, wherein the response includes a response of the external device to the mass storage device. 如請求項2所述的更新資料的方法,其中該大容量儲存設備包含USB大容量儲存設備。The method of updating data as claimed in claim 2, wherein the mass storage device comprises a USB mass storage device. 如請求項3所述的更新資料的方法,其中係根據USB Mass Storage協定將回傳的該資料轉發給該終端。The method of updating data according to claim 3, wherein the returned data is forwarded to the terminal according to a USB Mass Storage agreement. 如請求項1所述的更新資料的方法,其中回傳的該資料包含該終端的可執行程式。The method of updating data according to claim 1, wherein the returned data includes an executable program of the terminal. 如請求項5所述的更新資料的方法,其中該可執行程式包含一通信代碼和一螢幕資料抓取代碼,該通信代碼包含該終端與該外接設備之間通信的代碼以及該外接設備與該伺服器之間通信的代碼,該螢幕資料抓取代碼包含藉由一終端API進行音訊抓取的編碼代碼和藉由該終端API進行螢幕抓取的視頻或圖像編碼代碼中的任意一種或兩種。The method for updating data according to claim 5, wherein the executable program comprises 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 the external device and the a code for communication between the servers, the screen data capture code includes an encoding code for audio capture by a terminal API, and any one or two of video or image encoding codes for screen capture by the terminal API Kind. 如請求項6所述的更新資料的方法,其中將回傳的該資料轉發給該終端之後,該更新資料的方法另包含下述步驟: 接收該終端藉由該通信代碼發送的一音視頻圖像資料,其中該音視頻圖像資料藉由該螢幕資料抓取代碼獲取;以及 將該音視頻圖像資料轉發給該伺服器以進行顯示。The method for updating data according to claim 6, wherein after the returned data is forwarded to the terminal, the method for updating the data further includes the following steps: receiving an audio and video map sent by the terminal by using the communication code Image data, wherein the audio and video image data is obtained by the screen data capture code; and the audio and video image data is forwarded to the server for display. 如請求項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 by the interface, the method for updating the data further comprises the steps of: driving the external device A wireless network card or a wired network card connects the wireless network card or the wired network card to a network by using information in a configuration file. 一種更新資料的裝置,包含: 一設備描述符請求回應模組,用於在一外接設備藉由一介面與一終端連接時,接收該終端發送的一設備描述符請求,根據該設備描述符請求回傳一回應; 一操作請求接收和發送模組,用於接收該終端發送的一操作請求,將該操作請求發送給一伺服器,或者將該操作請求轉換為一網路請求後發送給該伺服器;以及 一資料接收和發送模組,用於接收該伺服器根據該操作請求或者該網路請求回傳的資料,並將回傳的該資料轉發給該終端。An apparatus for updating data, comprising: a device descriptor request response module, configured to receive a device descriptor request sent by the terminal when an external device is connected to a terminal by an interface, and request according to the device descriptor Returning a response; an operation request receiving and transmitting 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 network And a data receiving and transmitting module, configured to receive the data returned by the server according to the operation request or the network request, and forward the returned data to the terminal. 如請求項9所述的更新資料的裝置,其中回傳的該資料包含該終端的可執行程式。The apparatus for updating data as claimed in claim 9, wherein the returned data includes an executable program of the terminal. 如請求項10所述的更新資料的裝置,其中該可執行程式包含一通信代碼和一螢幕資料抓取代碼,該通信代碼包含該終端與該外接設備之間通信的代碼以及該外接設備與該伺服器之間通信的代碼,該螢幕資料抓取代碼包含藉由一終端API進行音訊抓取的編碼代碼和藉由該終端API進行螢幕抓取的視頻或圖像編碼代碼中的任意一種或兩種。The device for updating data according to claim 10, wherein the executable program comprises 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 the external device and the a code for communication between the servers, the screen data capture code includes an encoding code for audio capture by a terminal API, and any one or two of video or image encoding codes for screen capture by the terminal API Kind. 如請求項11所述的更新資料的裝置,另包含與該資料接收和發送模組相連的一圖像資料接收模組和一圖像資料發送模組;其中該圖像資料接收模組接收該終端藉由該通信代碼發送的一音視頻圖像資料,其中該音視頻圖像資料藉由該螢幕資料抓取代碼獲取;該圖像資料發送模組用於將該音視頻圖像資料轉發給該伺服器以進行顯示。The device for updating data according to claim 11, further comprising an image data receiving module and an image data sending module connected to the data receiving and transmitting module; wherein the image data receiving module receives the image data receiving module The audio and video image data sent by the terminal by the communication code, 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 server is for display. 如請求項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 in the external device connects the wireless network card or the wired network card to a network by using information in a configuration file. 一種更新資料的外接設備,包含一網卡以及請求項9至12中任一項所述的更新資料的裝置;其中該外接設備藉由介面與該終端連接,藉由該網卡連上網路,與一伺服器建立連線。An external device for updating data, comprising: a network card; and the device for updating the data according to any one of items 9 to 12; wherein the external device is connected to the terminal through an interface, and the network card is connected to the network, and the network device The server establishes a connection. 如請求項14所述的更新資料的外接設備,其中該網卡包含一有線網卡和一無線網卡中的任意一種或兩種。An 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. 一種更新資料的系統,包含: 一終端; 至少一個外接設備;以及 一伺服器; 其中該伺服器包含一存儲裝置及一節點配置裝置,適於藉由該存儲裝置預先存儲資料,以及藉由該節點配置裝置與該外接設備建立通信,根據接收的一操作請求或者一網路請求,將該資料回傳給該外接設備; 其中該終端用於將一設備描述符請求發送給該外接設備,以及向該外接設備發送一操作請求,接收該資料;以及 其中該外接設備包含一連接裝置以及一發送裝置,該連接裝置用於藉由一介面與該終端連接,並在接收到該設備描述符請求時將一回應回傳給該終端,以及轉發接收到的該資料;該發送裝置具有一收發器,用於通信,並將接收到的該操作請求發送給該伺服器,或者將該操作請求轉換成該網路請求後發送給該伺服器。A system for updating data, comprising: a terminal; at least one external device; and a server; wherein the server comprises a storage device and a node configuration device, configured to pre-store data by the storage device, and by using the The node configuration device establishes communication with the external device, and returns the data to the external device according to the received operation request or a network request; wherein the terminal is configured to send a device descriptor request to the external device, and Sending an operation request to the external device to receive the data; and wherein the external device includes a connection device and a sending device, the connection device is configured to connect to the terminal by using an interface, and receive the device descriptor request Responding back to the terminal and forwarding the received data; the transmitting device has a transceiver for communicating, and transmitting the received operation request to the server, or converting the operation request After the network request is sent to the server. 如請求項16所述的更新資料的系統,其中該回應包含該外接設備為大容量儲存設備的回應;該資料包含該終端的可執行程式。The system for updating data as claimed in claim 16, wherein the response includes a response of the external device to the mass storage device; the data includes an executable program of the terminal. 如請求項17所述的更新資料的系統,其中該可執行程式包含一通信代碼和一螢幕資料抓取代碼,該通信代碼包含該終端與該外接設備之間通信的代碼以及該外接設備與該伺服器之間通信的代碼,該螢幕資料抓取代碼包含藉由一終端API進行音訊抓取的編碼代碼和藉由該終端API進行螢幕抓取的視頻或圖像編碼代碼中的任意一種或兩種。The system for updating data according to claim 17, wherein the executable program comprises 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 the external device and the a code for communication between the servers, the screen data capture code includes an encoding code for audio capture by a terminal API, and any one or two of video or image encoding codes for screen capture by the terminal API Kind. 如請求項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 the communication code, wherein the audio and video image data Obtaining code acquisition by the screen data; the external device forwards the audio and video image data to the server; the server decodes and displays the audio and video image data. 如請求項19所述的更新資料的系統,其中該伺服器另用於獲取本地的一請求資訊,將該請求資訊藉由該外接設備發送給該終端;該終端執行該請求資訊,並將執行後的結果藉由該外接設備轉發給該伺服器。The system for updating data according to claim 19, wherein the server is further configured to obtain a local request information, and send the request information to the terminal by using the external device; the terminal executes the request information, and performs The subsequent result is forwarded to the server by the external device. 如請求項20所述的更新資料的系統,其中該請求資訊包含一使用者的觸摸操作資訊。The system for updating data according to claim 20, wherein the request information includes a user's touch operation information.
TW105137758A 2016-05-20 2016-11-18 Method, apparatus, system and external device for updating data TWI633446B (en)

Applications Claiming Priority (2)

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

Publications (2)

Publication Number Publication Date
TW201741900A true TW201741900A (en) 2017-12-01
TWI633446B TWI633446B (en) 2018-08-21

Family

ID=56749638

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105137758A TWI633446B (en) 2016-05-20 2016-11-18 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

Family Cites Families (12)

* 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
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
CN102457990B (en) * 2010-10-28 2015-11-25 Tcl集团股份有限公司 Possess mobile terminal and its implementation of wireless network card function
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
CN104951417A (en) * 2014-03-26 2015-09-30 北京同方微电子有限公司 Method for achieving USB combined device suitable for high-capacity USIM
CN104064201B (en) * 2014-06-13 2017-04-12 广州视睿电子科技有限公司 Data synchronization method and system
CN105915624B (en) * 2016-05-20 2020-04-03 广州视睿电子科技有限公司 Method, device and system for updating data and external equipment

Also Published As

Publication number Publication date
CN105915624B (en) 2020-04-03
WO2017197894A1 (en) 2017-11-23
TWI633446B (en) 2018-08-21
CN105915624A (en) 2016-08-31

Similar Documents

Publication Publication Date Title
US11122103B2 (en) Method of sharing contents by using personal cloud device, and electronic device and personal cloud system using the same
US10021180B2 (en) Universal environment extender
KR101413260B1 (en) Method and system for transferring data between portable terminal and external device
WO2021032076A1 (en) Electronic device, control terminal, non-transitory computer-readable storage medium and device connection method
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
EP3944584B1 (en) Method supporting wireless access to storage device, and mobile routing hotspot device
WO2018107719A1 (en) Data sharing method, apparatus, terminal device and server
US20180183788A1 (en) Electronic apparatus, control authority authentication method thereof and user terminal apparatus
US9571954B2 (en) Information processing system, information processing method, mobile phone, server, and control methods and control programs thereof
TW201310947A (en) File download system
KR20150080722A (en) Apparatus and Method for managing files
US9838386B2 (en) Information processing system, information processing device, and device control method
JP6374666B2 (en) COMMUNICATION DEVICE, ITS CONTROL METHOD, AND PROGRAM
TWI633446B (en) Method, apparatus, system and external device for updating data
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
JP6715307B2 (en) Equipment discovery method, device, equipment and program
KR101561524B1 (en) System for managing Remote User Interface and Method thereof
EP3404892B1 (en) Method of transferring audiovisual data and corresponding device
JP5647714B1 (en) Display control apparatus, display control method, and program
KR101295216B1 (en) Portable wireless contents sharing device and method with external storage interface
TWI436221B (en) Method for providing remote access and communication device thereof
KR101274566B1 (en) Method and system for providing autonomous computing sharing based on upnp network
TW201445324A (en) Connecting and accessing method for remote hard drive, and non-transitory computer readable medium for using the same
TWM551793U (en) Wireless router with Internet-of-Things function