TWI633446B - 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
TWI633446B
TWI633446B TW105137758A TW105137758A TWI633446B TW I633446 B TWI633446 B TW I633446B TW 105137758 A TW105137758 A TW 105137758A TW 105137758 A TW105137758 A TW 105137758A TW I633446 B TWI633446 B TW I633446B
Authority
TW
Taiwan
Prior art keywords
terminal
data
external device
server
code
Prior art date
Application number
TW105137758A
Other languages
Chinese (zh)
Other versions
TW201741900A (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 invention relates to a method, device and external equipment for updating data. The method includes: when the external device is connected to the terminal through the interface, receive the device descriptor request sent by the terminal, and return a response according to the device descriptor request; receive the operation request sent by the terminal, send the operation request to the server, or send The operation request is converted into a network request and sent to the server; and the receiving server returns the data returned according to the operation request or the network request, and forwards the returned data to the terminal. The invention does not need to be configured, does not need to connect the terminal to the network, and is free from the dependence on the operating system and the user end.

Description

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

本發明涉及資料處理技術領域,特別是涉及一種更新資料的方法、更新資料的裝置、更新資料的系統以及更新資料的外接設備。The invention relates to the technical field of data processing, 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, usually use network disk mapping, or use network hard disk. When using network disk mapping, you need to use the shared folder in the local network as a virtual network hard disk, and then map the network hard disk to the terminal. When using a network hard drive, 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 hard drive, or obtain the content of the network hard drive by installing the client. Both solutions have the following defects:

1、均需要進行配置,例如,網路磁碟的方案需要映射,網路硬碟的方案需要配置用戶名和密碼或者安裝用戶端;1. All need to be configured, for example, the scheme of the network disk needs to be mapped, and the scheme of the network hard disk needs to configure the user name and password or install the client;

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

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

基於此,有必要針對上述問題,提供一種更新資料的方法、裝置、系統以及外接設備,能夠在更新資料時無需配置、無需連上網路以及不受作業系統的限制。Based on this, it is necessary to provide a method, device, system, and external device for updating data in response to the above problems, which can be configured without updating, without connecting to the network, and without being restricted by the operating system.

為了達到上述目的,本發明採取的技術方案如下:In order to achieve the above objectives, the technical solutions adopted by the present invention are as follows:

一種更新資料的方法,包含下述步驟:在外接設備藉由介面與終端連接時,接收所述終端發送的設備描述符請求,根據所述設備描述符請求回傳回應;接收所述終端發送的操作請求,將所述操作請求發送給伺服器,或者將所述操作請求轉換為網路請求後發送給伺服器;以及接收所述伺服器根據所述操作請求或者所述網路請求回傳的資料,將回傳的所述資料轉發給所述終端。A method for updating data includes the following steps: when an external device is connected to a terminal through an interface, a device descriptor request sent by the terminal is received, and a response is returned according to the device descriptor request; Operation request, send the operation request to the server, or convert the operation request into a network request and send it to the server; and receive the server ’s response to the operation request or the network request Data, and forward the returned data to the terminal.

本發明更新資料的方法,藉由介面將外接設備與終端連接時,將外接設備描述成通用的設備,那麼即可以使用終端內置的驅動程式,在更新資料時,使用者可以像使用普通的設備一樣對外接設備發送操作請求,所有的操作請求均會轉換為對伺服器的操作,伺服器執行相應的操作後回傳資料,將回傳資料轉發給終端,終端就可以直接使用回傳的資料。本發明無需進行配置,可以像使用普通設備一樣存取伺服器上的資料;外接設備作為中間交互設備,無需將終端連上網路;脫離了對作業系統和用戶端的依賴,不僅適用於常規的作業系統,另適用於一些不開放的設備或者系統,例如機上盒和印表機等。In the method for updating data of the present invention, when an external device is connected to a terminal through an interface, the external device is described as a general-purpose device, then the built-in driver of the terminal can be used. When updating the data, the user can use an ordinary device Similarly, send operation requests to external devices, all operation requests will be converted to operations on the server, the server returns the data after performing the corresponding operation, forwards the returned data 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 ordinary equipment; the external device is used as an intermediate interactive device without connecting the terminal to the network; it is free from the dependence on the operating system and the client, and is not only suitable for routine operations 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 that the external device is a mass storage device. The external device is described as a mass storage device, and the terminal recognizes the external device as a mass storage device, which improves adaptability.

在一個實施例中,所述大容量儲存設備包含USB大容量儲存設備。USB大容量儲存設備為通用的存放裝置,與各個系統基本上都相容,進一步提高了適用性。In one embodiment, the mass storage device includes a USB mass storage device. The USB mass storage device is a universal storage device, which is basically compatible with each system, further improving the applicability.

在一個實施例中,根據USB Mass Storage協定將回傳的所述資料轉發給所述終端。In one embodiment, the returned data is forwarded to the terminal according to 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 includes a code for communication between the terminal and an external device and a code for communication between the external device and the server, the screen The data capture code includes any one or both of an encoding code for audio capture via the terminal API and a video or image encoding code for screen capture via the terminal API.

在一個實施例中,將回傳的所述資料轉發給所述終端之後,另包含下述步驟:接收終端藉由通信代碼發送的音視頻圖像資料,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;將音視頻圖像資料轉發給所述伺服器以進行顯示。In one 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 through a communication code, wherein the audio and video image data Screen data capture code acquisition; forward audio and video image data to the server for display.

在一個實施例中,在外接設備藉由介面與終端連接時,另包含下述步驟:驅動所述外接設備中的無線網卡或有線網卡,藉由設定檔中的資訊將無線網卡或有線網卡連上網路。外接設備自身設置有網卡,在連接終端通電時連上網路,從而可以與伺服器進行通信。In one embodiment, when the external device is connected to the terminal through the interface, the following steps are further included: driving the wireless network card or wired network card in the external device, and connecting the wireless network card or wired network card with the information in the configuration file Go online. The external device itself is equipped with a network card, which is connected to the network when the connection terminal is powered on, so that it can communicate with the server.

一種更新資料的裝置,包含設備描述符請求回應模組、操作請求接收和發送模組以及資料接收和發送模組。設備描述符請求回應模組用於在外接設備藉由介面與終端連接時,接收所述終端發送的設備描述符請求,根據所述設備描述符請求回傳回應。操作請求接收和發送模組用於接收所述終端發送的操作請求,將所述操作請求發送給伺服器,或者將所述操作請求轉換為網路請求後發送給伺服器。資料接收和發送模組用於接收所述伺服器根據所述操作請求或者所述網路請求回傳的資料,將回傳的所述資料轉發給所述終端。A device for updating data includes a device descriptor request response module, an operation request receiving and sending module, and a data receiving and sending module. The device descriptor request response module is used to receive a device descriptor request sent by the terminal when an external device is connected to the terminal through an interface, and return a response according to the device descriptor request. The operation request receiving and sending module is used to receive the operation request sent by the terminal, send the operation request to the server, or convert the operation request into a network request and send it to the server. The data receiving and sending module is used for receiving data returned by the server according to the operation request or the network request, and forwarding the returned data to the terminal.

本發明更新資料的裝置,藉由介面將外接設備與終端連接時,將外接設備描述成通用的設備,那麼即可以使用終端內置的驅動程式,在更新資料時,使用者可以像使用普通的設備一樣對外接設備發送操作請求,所有的操作請求均會轉換為對伺服器的操作,伺服器執行相應的操作後回傳資料,將回傳資料轉發給終端,終端就可以直接使用回傳的資料。本發明無需進行配置,可以像使用普通設備一樣存取伺服器上的資料;外接設備作為中間交互設備,無需將終端連上網路;脫離了對作業系統和用戶端的依賴,不僅適用於常規的作業系統,另適用於一些不開放的設備或者系統,例如機上盒和印表機等。In the device for updating data of the present invention, when an external device is connected to a terminal through an interface, the external device is described as a general-purpose device, then the built-in driver of the terminal can be used, and when updating the data, the user can use an ordinary device Similarly, send operation requests to external devices, all operation requests will be converted to operations on the server, the server returns the data after performing the corresponding operation, forwards the returned data 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 ordinary equipment; the external device is used as an intermediate interactive device without connecting the terminal to the network; it is free from the dependence on the operating system and the client, and is not only suitable for routine operations 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 includes a code for communication between the terminal and an external device and a code for communication between the external device and the server, the screen The data capture code includes any one or both of an encoding code for audio capture via the terminal API and a video or image encoding code for screen capture via the terminal API.

在一個實施例中,本發明裝置另包含與所述資料接收和發送模組相連的圖像資料接收模組和圖像資料發送模組;所述圖像資料接收模組接收終端藉由通信代碼發送的音視頻圖像資料,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;所述圖像資料發送模組用於將音視頻圖像資料轉發給所述伺服器以進行顯示。In one embodiment, the device 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 uses a communication code Audio and video image data sent, wherein the audio and video image data is obtained by the screen data capture code; the image data sending module is used to forward the audio and video image data to the server for display .

在一個實施例中,本發明裝置另包含網路連接模組,所述網路連接模組在外接設備藉由介面與終端連接時,驅動所述外接設備中的無線網卡或有線網卡,藉由設定檔中的資訊將無線網卡或有線網卡連上網路。外接設備自身設置有網卡,在連接終端通電時連上網路,從而可以與伺服器進行通信。In one embodiment, the device of the present invention further includes a network connection module that drives the wireless network card or wired network card in the external device when the external device is connected to the terminal through the interface. The information in the configuration file connects the wireless network card or wired network card to the network. The external device itself is equipped with a network card, which is connected to the network when the connection terminal is powered on, so that it can communicate with the server.

一種更新資料的外接設備,包含網卡以及所述的更新資料的裝置;所述外接設備藉由介面與終端連接,藉由網卡連上網路,與伺服器建立連線。An external device for updating data includes a network card and the device for updating data; the external device is connected to a terminal through an interface and connected to the network through a network card to establish a connection with a 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. When updating the data, the user can use the normal The device sends an operation request to the external device, and the external device converts all operation requests to the operation of the server. The server returns the data after performing the corresponding operation. The external device forwards the returned data to the terminal, and the terminal can be used directly. Returned information. The invention does not need to be configured, and can access the data on the server like ordinary equipment; the external device is used as an intermediate interactive device without connecting the terminal to the network; it is free from the dependence on the operating system and the client, and is not only suitable for routine operations 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, suitable for pre-storing data by the storage device, and by the node configuration device and all The external device establishes communication, and transmits the data back to the external device according to the received operation request or the network request. The terminal is used 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, the connecting device is used to connect to the terminal through an interface, and when receiving the device descriptor request, returns a response to the terminal, and forwards the reception The received data; the sending device has a transceiver for communication, and sends the received operation request to the server, or converts the operation request into a network request and sends it to the server.

本發明更新資料的系統,外接設備藉由介面與終端連接時,終端將外接設備識別為通用的設備,那麼終端即可以使用內置的驅動程式,在更新資料時,使用者可以像使用普通的設備一樣對外接設備發送操作請求,外接設備將所有的操作請求轉換為對伺服器的操作,伺服器執行相應的操作後回傳資料,外接設備將回傳資料轉發給終端,終端就可以直接使用回傳的資料。本發明無需進行配置,可以像使用普通設備一樣存取伺服器上的資料;外接設備作為中間交互設備,無需將終端連上網路;脫離了對作業系統和用戶端的依賴,不僅適用於常規的作業系統,另適用於一些不開放的設備或者系統,例如機上盒和印表機等。In the system for updating data of the present invention, when an external device is connected to the terminal through an interface, the terminal recognizes the external device as a general-purpose device, then the terminal can use the built-in driver, and when updating the data, the user can use an ordinary device In the same way, it sends an operation request to an external device. The external device converts all operation requests into operations on the server. The server returns the data after performing the corresponding operation. The external device forwards the returned data to the terminal. Biography. The invention does not need to be configured, and can access the data on the server like ordinary equipment; the external device is used as an intermediate interactive device without connecting the terminal to the network; it is free from the dependence on the operating system and the client, and is not only suitable for routine operations 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 that the external device is a mass storage device; the 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 includes a code for communication between the terminal and an external device and a code for communication between the external device and the server, the screen The data capture code includes any one or both of an encoding code for audio capture via the terminal API and a video or image encoding code for screen capture via the terminal API.

在一個實施例中,所述終端接收所述資料之後,另用於藉由通信代碼將編碼的音視頻圖像資料發送給所述外接設備,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;所述外接設備將音視頻圖像資料轉發給所述伺服器;所述伺服器對音視頻圖像資料進行解碼顯示。In one embodiment, after the terminal receives the data, it is further used to send the encoded audiovisual image data to the external device through a communication code, wherein the audiovisual image data is captured by the screen data Obtain the code to obtain; 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 one embodiment, the server is additionally used to obtain local request information, and send the request information to the terminal through the external device; the terminal executes the request information and the result after execution It is forwarded to the server by the external device.

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

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

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

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

步驟S120:接收所述終端發送的操作請求,將所述操作請求發送給伺服器,或者將所述操作請求轉換為網路請求後發送給伺服器;Step S120: Receive the operation request sent by the terminal, send the operation request to the server, or convert the operation request into a network request and send it 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, which runs on an embedded operating system included in an external device. The external device also contains a processor and memory to ensure the normal operation of the embedded system. Each step of the method of the present invention will be described in detail below.

在步驟S110中,外接設備具有介面,藉由介面與終端連接。終端可以為使用者電腦、手機、機上盒和印表機等。外接設備與終端連接時,終端會向外接設備發出設備描述符請求,請求外接設備描述自身,在接收到該設備描述符請求後,回傳一個回應,將自己描述為通用的設備。In step S110, the external device has an interface, and is connected to the terminal through the interface. The terminal can be a user's computer, mobile phone, set-top box, printer, etc. When an external device is connected to a terminal, the terminal sends a device descriptor request to the external device, requesting the external device to describe itself, and after receiving the device descriptor request, returns a response, describing itself as a generic device.

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

以大容量儲存設備為USB大容量儲存設備為例,在接收到終端發送的設備描述符請求時,將外接設備描述為USB大容量儲存設備,終端就將該外接設備識別為USB大容量儲存設備。Taking the mass storage device as a USB mass storage device as an example, when receiving the 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 describing an external device 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 describing an external device as another general-purpose mass storage device, the interface of the external device is set to correspond to the interface supported by the mass storage device, and is connected to the terminal through the supported interface.

由於終端將外接設備識別為通用的設備,那麼即可以使用內置的驅動程式,例如,一般作業系統都集成了USB協定的驅動,在外接設備為USB大容量儲存設備時,終端就可以使用內置的USB協定的驅動。Since the terminal recognizes the external device as a universal device, it can use the built-in driver. For example, the general operating system integrates a USB protocol driver. When the external device is a USB mass storage device, the terminal can use the built-in device. USB protocol driver.

由於外接設備作為資料交換設備,需要與伺服器建立連線。所以,在一個實施例中,在外接設備藉由介面與終端連接時,可以另包含步驟:Since the external device acts as a data exchange device, it needs to establish a connection with the server. Therefore, in one embodiment, when the external device is connected to the terminal through the interface, it may include additional steps:

驅動所述外接設備中的無線網卡或有線網卡,藉由設定檔中的資訊將無線網卡或有線網卡連上網路。Drive the wireless network card or wired network card in the external device, and connect the wireless network card or wired network card 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 and started. 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 the preset configuration. Users can also set up power modules in external devices to automatically connect to the network through their own power modules.

在步驟S120中,由於終端將外接設備識別為通用的設備,所以使用者可以採用常規操作發送操作請求,其中操作請求包含讀寫請求和查詢請求等等。外接設備接收到終端的操作請求後,可以藉由自訂協議將操作請求轉換為相應的網路請求(包含但不限於HTTP/FTP/SAMBA),然後發送給伺服器,也可以將操作請求直接轉發給伺服器,讓伺服器自行進行轉換。伺服器位於本地或者互聯網,可以為智慧互動式平板等。In step S120, since the terminal recognizes the external device as a general-purpose device, the user can send an operation request by using conventional operations, where the operation request includes a read-write request, a query request, and so on. After the external device receives the operation request of the terminal, it 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 send the operation request Forward it to the server and let the server convert it by 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 the USB mass storage device as an example, the operation of the USB mass storage device follows the SCSI (Small Computer System Interface, small computer system interface) protocol, and the terminal's operation of the USB mass storage device (query the partition structure, read files Directory, read, write and delete files, etc.) are eventually converted into SCSI commands and sent to the USB mass storage device via USB packaging. For example, if the USB mass storage device is opened, the operating system of the terminal actually reads the file configuration table of the device through a SCSI command read request (a piece of data area in the flash memory file system, indicating that this file system What files are included). The external device then converts these requests into network requests and sends them to the server or directly sends them to the server without conversion.

在對操作請求進行轉換時,可以將操作請求轉換為相應的字串,例如終端發送的讀寫請求一般包含讀寫位置以及讀寫長度資訊等,可以藉由字串將該讀寫請求轉換為請求的類型+請求的位置+請求的資料長度等形式的字串。需要說明的是,將操作請求轉換為網路請求有多種方法,用戶可以採用其他現有技術中的方式對操作請求進行轉換,本發明並不對此做出限定。When the operation request is converted, the operation request can be converted into a corresponding string. For example, the read and write request sent by the terminal generally includes the read and write position and read and write length information, etc., and the read and write request can be converted into A string of the form of request type + requested position + requested data length. It should be noted that there are various methods for converting the operation request into a network request, and the user can convert the operation request in other existing methods, which is not limited in 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 data may include an executable program of the terminal. An executable program refers to an executable program that can be floatingly positioned in the storage space of the operating system. The data returned by the server can also be other data than executable programs, such as a read and write request for a magnetic sector sent by the terminal. The data is sent back to the external device. For another example, the terminal sends a request to query whether the device is ready, and the server returns whether the device is ready according to the current status.

在一個實施例中,所述可執行程式可以包含通信代碼和螢幕資料抓取代碼。所述通信代碼包含終端與外接設備之間通信的代碼以及外接設備與伺服器之間通信的代碼。通信代碼使得終端能夠藉由代碼將抓取的音視頻圖像資料發送給外接設備,外接設備轉發音視頻圖像資料給伺服器。所述螢幕資料抓取代碼包含藉由終端API(Application Programming Interface,應用程式設計發展介面)進行音訊抓取的編碼代碼和藉由終端API進行螢幕抓取的視頻或圖像編碼代碼中的任意一種或兩種。In one embodiment, the executable program may include communication code and screen data capture code. The communication code includes a communication code between the terminal and the external device and a communication code between the external device and the server. The communication code enables the terminal to send the captured audio, video and image data to the external device through the code, and the external device transfers the audio and video image data to the server. The screen data capture code includes any one of an encoding code for audio capture through a terminal API (Application Programming Interface) and a video or image coding code for screen capture through a terminal API Or both.

外接設備將回傳的資料轉發給所述終端,以回應終端發起的請求。例如,以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 one embodiment, after forwarding the returned data to the terminal, it may include additional steps:

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

將音視頻圖像資料轉發給所述伺服器以進行顯示。Forward audio and video image data to the server for display.

音視頻圖像資料抓取之後,終端一般會將這些音視頻圖像資料進行編碼,將編碼的資料藉由外接設備發送給伺服器。伺服器接收到編碼資料後進行解碼顯示。After capturing audio and video image data, 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 present invention describes an external device as a general-purpose device, such as a large-capacity storage device, using a driver program built into the terminal, and the terminal automatically completes driver installation when connected to the external device. The invention does not need to be configured. The user can access the files stored on the server just like using ordinary equipment. All the requests will be converted through the external equipment, and the terminal operation request will be converted into the operation of the network storage server. The invention is free from the dependence on the operating system and the user end, and can be used on some devices or systems that are not open.

基於同一發明構思,本發明另提供一種更新資料的裝置,下面結合圖式對本發明裝置的具體實施方式做詳細描述。Based on the same inventive concept, the present invention also provides a device for updating data. The specific implementation of the device of the present invention will be described in detail below with reference to the drawings.

如第2圖所示,一種更新資料的裝置,包含:As shown in Figure 2, a device for updating data includes:

設備描述符請求回應模組110,用於在外接設備藉由介面與終端連接時,接收所述終端發送的設備描述符請求,根據所述設備描述符請求回傳回應;The device descriptor request response module 110 is used to receive a device descriptor request sent by the terminal when an external device is connected to the terminal through an interface, and return a response according to the device descriptor request;

操作請求接收和發送模組120,用於接收所述終端發送的操作請求,將所述操作請求發送給伺服器,或者將所述操作請求轉換為網路請求後發送給伺服器;The operation request receiving and sending module 120 is configured to receive the operation request sent by the terminal, send the operation request to the server, or convert the operation request into a network request and send it 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, which runs on an embedded operating system included in an external device. The external device also contains a processor and memory to ensure the normal operation of the embedded system. Each module of the device of the present invention will be described in detail below.

外接設備與終端連接時,終端會向外接設備發出設備描述符請求,請求外接設備描述自身,設備描述符請求回應模組110接收設備描述符請求後回傳一個回應,將自己描述為通用的設備。When an external device is connected to a terminal, the terminal sends a device descriptor request to the external device to request the external device to describe itself. The device descriptor request response module 110 returns a response after receiving the device descriptor request, describing itself as a generic device .

考慮到適用性和相容性,在一個實施例中,所述回應包含所述外接設備為大容量儲存設備的回應等。大容量儲存設備為次要存放裝置,是記憶體的統稱,包含USB大容量儲存設備等。In consideration of applicability and compatibility, in one embodiment, the response includes a response that the external device is a mass storage device. Mass storage device is a secondary storage device, which is a collective name for memory, including USB mass storage device, etc.

由於外接設備作為資料交換設備,需要與伺服器建立連線。所以,在一個實施例中,本發明裝置可以另包含網路連接模組,所述網路連接模組在外接設備藉由介面與終端連接時,驅動所述外接設備中的無線網卡或有線網卡,藉由設定檔中的資訊將無線網卡或有線網卡連上網路。使用者也可以在外接設備中設置電源模組,藉由自身的電源模組自動連上網路。Since the external device acts as a data exchange device, it needs to establish a connection with the server. Therefore, in one embodiment, the device of the present invention may further include a network connection module that drives a wireless network card or a wired network card in the external device when the external device is connected to the terminal through an interface , The wireless network card or wired network card is connected to the network through the information in the configuration file. Users can also set up power modules in external devices to automatically connect to the network through their own power modules.

操作請求包含讀寫請求和查詢請求等。操作請求接收和發送模組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 can convert the operation request into a corresponding network request through a custom protocol, and then send it to the server, or forward the operation request directly 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 an executable program of the terminal. An executable program refers to an executable program that can be floatingly positioned in the storage space of the operating system. The data returned by the server can also be other data than executable programs, such as a read and write request for a magnetic sector sent by the terminal. The data is sent back to the external device. For another example, the terminal sends a request to query whether the device is ready, and the server returns whether the device is ready according to the current status.

在一個實施例中,所述可執行程式可以包含通信代碼和螢幕資料抓取代碼。所述通信代碼包含終端與外接設備之間通信的代碼以及外接設備與伺服器之間通信的代碼,所述螢幕資料抓取代碼包含藉由終端API進行音訊抓取的編碼代碼和藉由終端API進行螢幕抓取的視頻或圖像編碼代碼中的任意一種或兩種。In one embodiment, the executable program may include communication code and screen data capture code. The communication code includes a code for communication between a terminal and an external device and a code for communication between an external device and a server, and the screen data capture code includes an encoding code for audio capture through a terminal API and a terminal API Either or both of the video or image encoding codes for screen capture.

資料接收和發送模組130接收伺服器回傳的資料,將回傳的資料轉發給所述終端,以回應終端發起的請求。例如,以USB大容量儲存設備為例,所述資料接收和發送模組130根據USB Mass Storage協定將回傳的所述資料轉發給所述終端。由於此時外接設備與終端之間有通信代碼,所以所述資料的轉發直接藉由通信代碼實現。The data receiving and sending 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 sending 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 realized by the communication code.

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

本發明將外接設備描述為通用的設備,例如大容量儲存設備,使用終端內置的驅動程式,終端在與外接設備連接時自動完成驅動的安裝。本發明無需配置,使用者可以像使用普通設備一樣存取存儲在伺服器上的檔,所有請求都會經外接設備進行轉換,將終端的操作請求轉換為對網路存儲伺服器的操作。本發明脫離了對作業系統和用戶端的依賴,可以在一些不開放的設備或者系統上使用。The present invention describes an external device as a general-purpose device, such as a large-capacity storage device, using a driver program built into the terminal, and the terminal automatically completes driver installation when connected to the external device. The invention does not need to be configured. The user can access the files stored on the server just like using ordinary equipment. All the requests will be converted through the external equipment, and the terminal operation request will be converted into the operation of the network storage server. The invention is free from the dependence on the operating system and the user end, and can be used on some devices or systems that are not open.

如第3圖所示,本發明另提供一種更新資料的外接設備,外接設備包含網卡以及所述的更新資料的裝置;所述外接設備藉由介面與終端連接,藉由網卡連上網路,與伺服器建立連線。所述網卡包含有線網卡和無線網卡中的任意一種或兩種。As shown in FIG. 3, the present invention also 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 a terminal through an interface and connected to the network through a network card. 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. Storing data in advance 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 used 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, and the connecting device is used to connect with the terminal through an interface, and transmits a response back to the terminal when receiving the device descriptor request, and forwards the received The data; the sending device has a transceiver for communication, and sends the received operation request to the server, or converts the operation request into a network request and sends it to the server.

在一個實施例中,所述回應包含所述外接設備為大容量儲存設備的回應;所述資料包含終端的可執行程式。In one embodiment, the response includes a response that the external device is a mass storage device; the 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 includes a code for communication between the terminal and an external device and a code for communication between the external device and the server, the screen The data capture code includes any one or both of an encoding code for audio capture via the terminal API and a video or image encoding code for screen capture via the terminal API.

在一個實施例中,所述終端接收轉換後的所述資料之後,還用於藉由通信代碼將編碼的音視頻圖像資料發送給所述外接設備,其中音視頻圖像資料藉由所述螢幕資料抓取代碼獲取;所述外接設備將音視頻圖像資料轉發給所述伺服器;所述伺服器對音視頻圖像資料進行解碼顯示。In one embodiment, after receiving the converted data, the terminal is also used to send the encoded audio-visual image data to the external device through a communication code, wherein the audio-visual image data is transmitted through the Screen data capture code acquisition; the external device forwards audio and video image data to the server; the server decodes and displays the audio and video image data.

在一個實施例中,所述伺服器另用於獲取本地請求資訊,將所述請求資訊藉由所述外接設備發送給所述終端;所述終端執行所述請求資訊,並將執行後的結果藉由所述外接設備轉發給所述伺服器。請求資訊包含使用者的觸摸操作資訊等。為了更好地理解該過程,下面結合一個具體實施例進行說明。In one embodiment, the server is additionally used to obtain local request information, and send the request information to the terminal through the external device; the terminal executes the request information and the result after execution It is forwarded to the server by the external device. The request information includes the user's touch operation information and so on. In order to better understand the process, a specific embodiment will be described below.

伺服器上顯示有視頻圖像,使用者觸摸視頻圖像視窗的關閉按鈕,伺服器就將關閉視窗的請求資訊藉由外接設備發送給終端,終端根據該請求資訊關閉相應的視窗,並將關閉該視窗後的螢幕資料藉由外接設備轉發給伺服器,伺服器接收該螢幕資料後進行顯示,則顯示的即為關閉該視頻圖像視窗後的畫面。相當於使用者可以在伺服器中直接對相應的圖像進行操作,無需僅僅依賴於終端的操作模式,進一步提高了使用者操作的便捷性。A video image is displayed on the server. When the user touches the close button of the video image window, the server sends the request information for closing the window to the terminal through an external device. The terminal closes the corresponding window according to the request information and closes it. The screen data behind the window is forwarded to the server by an external device, and the server receives the screen data and displays it. The screen displayed after closing the video image window is displayed. It is equivalent to that the user can directly operate the corresponding image in the server without relying only on the operation mode of the terminal, which further improves the convenience of the user operation.

為了更好的理解本發明,下面結合一個具體實施例對PC(personal computer,個人電腦)、外接設備和智慧互動式平板之間的互動過程進行詳細說明。In order to better understand the present invention, the following describes the interaction process between a PC (personal computer, personal computer), an external device, and a smart interactive tablet in combination 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 drive of the PC or a custom driver. The external device is connected to the WIFI (wireless network) through the built-in wireless network card to establish a smart interactive tablet Wired, 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 to download the communication code and 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 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 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. The PC sends 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, video and image data to the smart interactive tablet for display;

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

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

步驟S11:終端執行所述請求資訊,將執行結果發送給外接設備;Step S11: The terminal executes the request information and sends the execution result to an 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-mentioned embodiments can be arbitrarily combined. In order to simplify the description, all possible combinations of the technical features in the above-mentioned embodiments are not described. All should be considered within the scope of this description.

以上所述實施例僅表達了本發明的幾種實施方式,其描述較為具體和詳細,但並不能因此而理解為對發明專利範圍的限制。應當指出的是,對於本技術領域中具有通常知識者來說,在不脫離本發明構思的前提下,還可以做出若干變形和改進,這些都屬於本發明的保護範圍。因此,本發明專利的保護範圍應以所附申請專利範圍為准。 以上所述僅為本發明之較佳實施例,凡依本發明申請專利範圍所做之均等變化與修飾,皆應屬本發明之涵蓋範圍。The above-mentioned embodiments only express several embodiments of the present invention, and their descriptions are more specific and detailed, but they should not be construed as limiting the patent scope of the invention. It should be noted that, for those with ordinary knowledge in the technical field, several variations and improvements can be made without departing from the concept of the present invention, which all fall within the protection scope of the present invention. Therefore, the scope of protection of the invention patent shall be subject to the scope of the attached patent application. The above are only the preferred embodiments of the present invention, and all changes and modifications made within the scope of the patent application of the present invention shall fall within the scope of the present invention.

110‧‧‧設備描述符請求回應模組110‧‧‧Device Descriptor Request Response Module

120‧‧‧操作請求接收和發送模組120‧‧‧Operation request receiving and sending module

130‧‧‧資料接收和發送模組130‧‧‧Data receiving and sending module

S1至S12、S110至S130‧‧‧步驟S1 to S12, S110 to S130 ‧‧‧ steps

第1圖為本發明更新資料的方法實施例的流程示意圖; 第2圖為本發明更新資料的裝置實施例的結構示意圖; 第3圖為本發明更新資料的外接設備實施例的結構示意圖; 第4圖為本發明更新資料的系統實施例的結構示意圖; 第5圖為本發明PC、外接設備和智慧互動式平板之間的互動示意圖。Figure 1 is a schematic flowchart of an embodiment of a method for updating data of the present invention; Figure 2 is a schematic structural diagram of an embodiment of an apparatus for updating data of the present invention; Figure 3 is a schematic structural diagram of an embodiment of an external device for updating data of the present invention; 4 is a schematic structural diagram of an embodiment of a system 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 of the present invention.

Claims (15)

一種更新資料的方法,包含下述步驟:在一外接設備藉由一介面與一終端連接時,接收該終端發送的一設備描述符(descriptor)請求,並根據該設備描述符請求回傳一回應;接收該終端發送的一操作請求,將該操作請求發送給一伺服器,或者將該操作請求轉換為一網路請求後發送給該伺服器;以及接收該伺服器根據該操作請求或者該網路請求回傳的資料,並將回傳的該資料轉發給該終端;其中回傳的該資料包含該終端的可執行程式,該可執行程式包含一通信代碼和一螢幕資料抓取代碼,該通信代碼包含該終端與該外接設備之間通信的代碼以及該外接設備與該伺服器之間通信的代碼,而該螢幕資料抓取代碼包含藉由一終端API進行音訊抓取的編碼代碼和藉由該終端API進行螢幕抓取的視頻或圖像編碼代碼中的任意一種或兩種。A method for updating data includes the following steps: when an external device is connected to a terminal through an interface, a device descriptor (descriptor) request sent by the terminal is received, and a response is returned 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 it to the server; and receiving the server according to the operation request or the network Request the returned data and forward the returned data to the terminal; the returned data includes the executable program of the terminal, the executable program includes a communication code and a screen data capture code, the 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, and the screen data capture code includes an encoding code and a loan for audio capture through a terminal API Either or both of video or image coding codes for screen capture by the terminal API. 如請求項1所述的更新資料的方法,其中該回應包含該外接設備為大容量儲存設備的回應。The method for updating data according to claim 1, wherein the response includes a response that the external device is a mass storage device. 如請求項2所述的更新資料的方法,其中該大容量儲存設備包含USB大容量儲存設備。The method for updating data according to claim 2, wherein the mass storage device includes a USB mass storage device. 如請求項3所述的更新資料的方法,其中係根據USB Mass Storage協定將回傳的該資料轉發給該終端。The method for updating data according to claim 3, wherein the returned data is forwarded to the terminal according to the USB Mass Storage protocol. 如請求項1所述的更新資料的方法,其中將回傳的該資料轉發給該終端之後,該更新資料的方法另包含下述步驟:接收該終端藉由該通信代碼發送的一音視頻圖像資料,其中該音視頻圖像資料藉由該螢幕資料抓取代碼獲取;以及將該音視頻圖像資料轉發給該伺服器以進行顯示。The method for updating data according to claim 1, wherein after forwarding the returned data to the terminal, the method for updating data further includes the following steps: receiving an audio and video image sent by the terminal through the communication code Image data, wherein the audiovisual image data is obtained by the screen data capture code; and the audiovisual image data is forwarded to the server for display. 如請求項1至5中任一項所述的更新資料的方法,其中在該外接設備藉由該介面與該終端連接時,該更新資料的方法另包含下述步驟:驅動該外接設備中的一無線網卡或一有線網卡,藉由一設定檔中的資訊將該無線網卡或該有線網卡連上一網路。The method for updating data according to any one of claims 1 to 5, wherein when the external device is connected to the terminal through the interface, the method for updating data further includes the following steps: 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 through information in a configuration file. 一種更新資料的裝置,包含:一設備描述符請求回應模組,用於在一外接設備藉由一介面與一終端連接時,接收該終端發送的一設備描述符請求,根據該設備描述符請求回傳一回應;一操作請求接收和發送模組,用於接收該終端發送的一操作請求,將該操作請求發送給一伺服器,或者將該操作請求轉換為一網路請求後發送給該伺服器;以及一資料接收和發送模組,用於接收該伺服器根據該操作請求或者該網路請求回傳的資料,並將回傳的該資料轉發給該終端;其中回傳的該資料包含該終端的可執行程式,該可執行程式包含一通信代碼和一螢幕資料抓取代碼,該通信代碼包含該終端與該外接設備之間通信的代碼以及該外接設備與該伺服器之間通信的代碼,而該螢幕資料抓取代碼包含藉由一終端API進行音訊抓取的編碼代碼和藉由該終端API進行螢幕抓取的視頻或圖像編碼代碼中的任意一種或兩種。A device for updating data, comprising: a device descriptor request response module, which is used for receiving a device descriptor request sent by the terminal when an external device is connected to a terminal through an interface, and according to the device descriptor request Return a response; an operation request receiving and sending module, used to receive an operation request sent by the terminal, send the operation request to a server, or convert the operation request to a network request and send it to the A server; and a data receiving and sending module for receiving data returned by the server according to the operation request or the network request, and forwarding the returned data to the terminal; wherein the returned data An executable program including the terminal, 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 communication between the external device and the server Code, and the screen data capture code includes the encoding code for audio capture by a terminal API and the screen capture by the terminal API Or either or both of a video image coding code. 如請求項7所述的更新資料的裝置,另包含與該資料接收和發送模組相連的一圖像資料接收模組和一圖像資料發送模組;其中該圖像資料接收模組接收該終端藉由該通信代碼發送的一音視頻圖像資料,其中該音視頻圖像資料藉由該螢幕資料抓取代碼獲取;該圖像資料發送模組用於將該音視頻圖像資料轉發給該伺服器以進行顯示。The device for updating data according to claim 7, further comprising an image data receiving module and an image data transmitting module connected to the data receiving and transmitting module; wherein the image data receiving module receives the The terminal sends an audiovisual image data by the communication code, wherein the audiovisual image data is obtained by the screen data capture code; the image data sending module is used to forward the audiovisual image data to The server for display. 如請求項7至8中任一項所述的更新資料的裝置,另包含一網路連接模組,其中該網路連接模組在該外接設備藉由該介面與該終端連接時,驅動該外接設備中的一無線網卡或一有線網卡,藉由一設定檔中的資訊將該無線網卡或該有線網卡連上一網路。The device for updating data according to any one of claims 7 to 8, 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 For a wireless network card or a wired network card in an external device, connect the wireless network card or the wired network card to a network by using information in a configuration file. 一種更新資料的外接設備,包含一網卡以及請求項7至8中任一項所述的更新資料的裝置;其中該外接設備藉由介面與該終端連接,藉由該網卡連上網路,與一伺服器建立連線。An external device for updating data, including a network card and the device for updating data described in any one of items 7 to 8; wherein the external device is connected to the terminal through an interface, connected to the network through the network card, and a The server establishes a connection. 如請求項10所述的更新資料的外接設備,其中該網卡包含一有線網卡和一無線網卡中的任意一種或兩種。The external device for updating data according to claim 10, wherein the network card includes any one or two of a wired network card and a wireless network card. 一種更新資料的系統,包含:一終端;至少一個外接設備;以及一伺服器;其中該伺服器包含一存儲裝置及一節點配置裝置,適於藉由該存儲裝置預先存儲資料,以及藉由該節點配置裝置與該外接設備建立通信,根據接收的一操作請求或者一網路請求,將該資料回傳給該外接設備;其中該終端用於將一設備描述符請求發送給該外接設備,以及向該外接設備發送一操作請求,接收該資料;以及其中該外接設備包含一連接裝置以及一發送裝置,該連接裝置用於藉由一介面與該終端連接,並在接收到該設備描述符請求時將一回應回傳給該終端,以及轉發接收到的該資料;該發送裝置具有一收發器,用於通信,並將接收到的該操作請求發送給該伺服器,或者將該操作請求轉換成該網路請求後發送給該伺服器;其中該回應包含該外接設備為大容量儲存設備的回應,該資料包含該終端的可執行程式,該可執行程式包含一通信代碼和一螢幕資料抓取代碼,該通信代碼包含該終端與該外接設備之間通信的代碼以及該外接設備與該伺服器之間通信的代碼,而該螢幕資料抓取代碼包含藉由一終端API進行音訊抓取的編碼代碼和藉由該終端API進行螢幕抓取的視頻或圖像編碼代碼中的任意一種或兩種。A system for updating data, including: a terminal; at least one external device; and a server; wherein the server includes a storage device and a node configuration device, adapted to pre-store data by the storage device, and by the The node configuration device establishes communication with the external device, and transmits the data back to the external device according to an operation request or a network request received; wherein the terminal is used to send a device descriptor request to the external device, and Send an operation request to the external device to receive the data; and wherein the external device includes a connection device and a transmission device, the connection device is used to connect with the terminal through an interface and receives the device descriptor request Send a response back to the terminal and forward the received data; the sending device has a transceiver for communication and sends the received operation request to the server or converts the operation request The network request is sent to the server; the response includes that the external device is a mass storage device Yes, the data includes the executable program of the terminal, the executable program includes a communication code and a screen data capture code, the communication code includes the communication code between the terminal and the external device and the external device and the servo The code for the communication between the devices, and the screen data capture code includes any one or both of the encoding code for audio capture by a terminal API and the video or image encoding code for screen capture by the terminal API Species. 如請求項12所述的更新資料的系統,其中該終端接收該資料之後,另用於藉由該通信代碼將編碼的一音視頻圖像資料發送給該外接設備,其中該音視頻圖像資料藉由該螢幕資料抓取代碼獲取;該外接設備將該音視頻圖像資料轉發給該伺服器;該伺服器對該音視頻圖像資料進行解碼顯示。The system for updating data according to claim 12, wherein after receiving the data, the terminal is further used to send the encoded audio-visual image data to the external device through the communication code, wherein the audio-visual image data Obtained by the screen data capture code; the external device forwards the audiovisual image data to the server; the server decodes and displays the audiovisual image data. 如請求項13所述的更新資料的系統,其中該伺服器另用於獲取本地的一請求資訊,將該請求資訊藉由該外接設備發送給該終端;該終端執行該請求資訊,並將執行後的結果藉由該外接設備轉發給該伺服器。The system for updating data according to claim 13, wherein the server is additionally used to obtain local request information, and send the request information to the terminal through the external device; the terminal executes the request information and will execute The later result is forwarded to the server by the external device. 如請求項14所述的更新資料的系統,其中該請求資訊包含一使用者的觸摸操作資訊。The system for updating data according to claim 14, 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
CN201610345620.8A CN105915624B (en) 2016-05-20 2016-05-20 Method, device and system for updating data and external equipment
??201610345620.8 2016-05-20

Publications (2)

Publication Number Publication Date
TW201741900A TW201741900A (en) 2017-12-01
TWI633446B true 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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7187687B1 (en) * 2002-05-06 2007-03-06 Foundry Networks, Inc. Pipeline method and system for switching packets
US7206283B2 (en) * 2001-05-15 2007-04-17 Foundry Networks, Inc. High-performance network switch
US20080254768A1 (en) * 2007-04-12 2008-10-16 Stefano Faccin Packet data network connectivity domain selection and bearer setup
US7471691B2 (en) * 1997-01-23 2008-12-30 Broadcom Corporation Fibre channel arbitrated loop bufferless switch circuitry to increase bandwidth without significant increase in cost

Family Cites Families (8)

* 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
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7471691B2 (en) * 1997-01-23 2008-12-30 Broadcom Corporation Fibre channel arbitrated loop bufferless switch circuitry to increase bandwidth without significant increase in cost
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
US20080254768A1 (en) * 2007-04-12 2008-10-16 Stefano Faccin Packet data network connectivity domain selection and bearer setup

Also Published As

Publication number Publication date
CN105915624A (en) 2016-08-31
WO2017197894A1 (en) 2017-11-23
CN105915624B (en) 2020-04-03
TW201741900A (en) 2017-12-01

Similar Documents

Publication Publication Date Title
JP6700344B2 (en) Information exchange method, device, audio terminal, computer-readable storage medium and program
KR101413260B1 (en) Method and system for transferring data between portable terminal and external device
US10034057B2 (en) Message processing method, device, gateway, STB and IPTV
US20070168046A1 (en) Image information apparatus and module unit
US20140298188A1 (en) Remote operation method and system
WO2018107719A1 (en) Data sharing method, apparatus, terminal device and server
BRPI0714116A2 (en) mapping discovered items by connection and universal execution in an smb location
EP3079330B1 (en) Method for wireless access of memory device, and mobile hotspot device
EP2387198A1 (en) Content distribution system and gateway device, and program
WO2018010023A1 (en) Command relay device, system and method for providing remote assistance / remote control
US9571954B2 (en) Information processing system, information processing method, mobile phone, server, and control methods and control programs thereof
WO2015000439A1 (en) Cross-platform network interaction method, reader, and network server therefor
CN102724305A (en) Method for remotely accessing to terminal U (universal serial bus) flash disk
TWI633446B (en) Method, apparatus, system and external device for updating data
US20090222455A1 (en) Communication process and device
JP2013514580A (en) How to convert digital data
CN102594850B (en) File accessing and share system and method thereof
KR20140066919A (en) Method and system for transferring data between cloud and external device
JP6715307B2 (en) Equipment discovery method, device, equipment and program
CN101599063B (en) Wireless virtual storage device and method for acquiring remote file
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
EP3404892B1 (en) Method of transferring audiovisual data and corresponding device
TWI436221B (en) Method for providing remote access and communication device thereof