CN105224059B - Method for remote data access and local device - Google Patents
Method for remote data access and local device Download PDFInfo
- Publication number
- CN105224059B CN105224059B CN201410290421.2A CN201410290421A CN105224059B CN 105224059 B CN105224059 B CN 105224059B CN 201410290421 A CN201410290421 A CN 201410290421A CN 105224059 B CN105224059 B CN 105224059B
- Authority
- CN
- China
- Prior art keywords
- unit
- system control
- control chip
- switch unit
- embedded controller
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000002093 peripheral effect Effects 0.000 claims description 11
- 238000004020 luminiscence type Methods 0.000 claims 3
- 230000005611 electricity Effects 0.000 claims 2
- 239000007787 solid Substances 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 2
- 230000003203 everyday effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
Landscapes
- Power Sources (AREA)
Abstract
本发明提供一种远端存取数据的方法以及本地端装置。当嵌入式控制器通过网络单元自云端服务器接收到远端控制信号时,嵌入式控制器判断本地端装置的电源管理状态是否已切换至省电状态。在判定已切换至省电状态的情况下,嵌入式控制器驱使第一切换单元进行切换,使得网络单元所接收的数据得以通过第一切换单元传送至存储单元。
The present invention provides a method for remote access to data and a local device. When an embedded controller receives a remote control signal from a cloud server via a network unit, the embedded controller determines whether the power management state of the local device has been switched to a power saving state. When it is determined that the power saving state has been switched, the embedded controller drives a first switching unit to switch, so that the data received by the network unit can be transmitted to a storage unit via the first switching unit.
Description
技术领域technical field
本发明是有关于一种远端存取数据的机制,且特别是有关于一种在省电状态下远端存取数据的方法以及本地端装置。The present invention relates to a mechanism for remotely accessing data, and in particular to a method for remotely accessing data in a power-saving state and a local device.
背景技术Background technique
一般而言,倘若欲利用其家中的主机来担任服务器的角色时,则家中的主机需要一直处于开机状态,才能让平板电脑、智能手机等可连线装置随时连线至家中的主机。然而,如此做法相当耗费能源。因此,为了节约能源,而将家中的主机关机,待欲存取主机时,再利用网络唤醒(Wake-on-LAN)技术来将主机开机。Generally speaking, if you want to use the mainframe at home to act as a server, the mainframe at home needs to be turned on all the time, so that connected devices such as tablets and smart phones can connect to the mainframe at home at any time. However, doing so is quite energy-intensive. Therefore, in order to save energy, the mainframe at home is turned off, and when the mainframe is to be accessed, the Wake-on-LAN technology is used to turn on the mainframe.
依照软硬体设备的不同,网络唤醒技术也可以包括远端下令关机、远端下令重新开机等相关的遥控机制。然而,网络唤醒技术时常会发生主机的网络卡或网络芯片是否能够支援的问题。According to different software and hardware devices, the wake-on-lan technology may also include related remote control mechanisms such as a remote command to shut down and a remote command to restart. However, the wake-on-lan technology often has the problem of whether the network card or network chip of the host computer can support it.
发明内容Contents of the invention
本发明提供一种远端存取数据的方法以及本地端装置,可在本地端装置为省电状态下,云端服务器仍可存取本地端装置的存储单元。The invention provides a method for remotely accessing data and a local device. When the local device is in a power-saving state, the cloud server can still access the storage unit of the local device.
本发明的远端存取数据的方法,其适用于通过云端服务器来远端存取本地端装置的存储单元。本地端装置还包括网络单元、嵌入式控制器以及系统控制芯片,并且在本地端装置中设置有第一切换单元。第一切换单元耦接至存储单元、系统控制芯片以及嵌入式控制器,通过嵌入式控制器来决定将网络单元所接收的数据通过第一切换单元传送至系统控制芯片或存储单元。在本方法中,嵌入式控制器通过网络单元自云端服务器接收到远端控制信号。在接收到远端控制信号时,嵌入式控制器判断本地端装置的电源管理状态是否已切换至省电状态。在省电状态下,停止供电至系统控制芯片,而由嵌入式控制器取得本地端装置的控制权。在判定已切换至省电状态的情况下,嵌入式控制器驱使第一切换单元进行切换,使得数据得以通过第一切换单元传送至存储单元。The method for remotely accessing data of the present invention is suitable for remotely accessing a storage unit of a local device through a cloud server. The local device also includes a network unit, an embedded controller and a system control chip, and a first switching unit is set in the local device. The first switch unit is coupled to the storage unit, the system control chip and the embedded controller, and the embedded controller determines to transmit the data received by the network unit to the system control chip or the storage unit through the first switch unit. In this method, the embedded controller receives the remote control signal from the cloud server through the network unit. When receiving the remote control signal, the embedded controller determines whether the power management state of the local device has switched to the power saving state. In the power-saving state, the power supply to the system control chip is stopped, and the embedded controller obtains the control right of the local device. When it is determined that the power saving state has been switched, the embedded controller drives the first switching unit to switch, so that the data can be transmitted to the storage unit through the first switching unit.
本发明的本地端装置,包括:网络单元、嵌入式控制器、系统控制芯片以及第一切换单元。网络单元用以与云端服务器进行沟通。嵌入式控制器耦接至网络单元,以自云端服务器接收远端控制信号。第一切换单元耦接至存储单元、嵌入式控制器、系统控制芯片以及网络单元,其用以决定将网络单元接收的数据传送至系统控制芯片或存储单元。在嵌入式控制器通过网络单元自云端服务器接收到远端控制信号,且本地端装置的电源管理状态已切换至停止供电至系统控制芯片的省电状态的情况下,嵌入式控制器驱使第一切换单元进行切换,使得数据得以通过第一切换单元传送至存储单元。The local device of the present invention includes: a network unit, an embedded controller, a system control chip and a first switching unit. The network unit is used for communicating with the cloud server. The embedded controller is coupled to the network unit to receive remote control signals from the cloud server. The first switching unit is coupled to the storage unit, the embedded controller, the system control chip and the network unit, and is used for determining to transmit the data received by the network unit to the system control chip or the storage unit. When the embedded controller receives a remote control signal from the cloud server through the network unit, and the power management state of the local device has switched to the power saving state of stopping power supply to the system control chip, the embedded controller drives the first The switching unit performs switching so that the data is transmitted to the storage unit through the first switching unit.
在本发明的一实施例中,上述存储单元例如为记忆卡,则上述本地端装置还包括:第二切换单元、第一桥接器以及第二桥接器。第二切换单元耦接至系统控制芯片与嵌入式控制器。第一桥接器耦接在第一切换单元与第二切换单元之间。第二桥接器耦接在第二切换单元与记忆卡之间。在判定已切换至省电状态的情况下,嵌入式控制器驱使第一切换单元进行切换,使得数据得以通过第一切换单元传送至第一桥接器,并且,嵌入式控制器驱使第二切换单元进行切换,使得经由第一桥接器传送的数据得以通过第二切换单元传送至记忆卡。In an embodiment of the present invention, the storage unit is, for example, a memory card, and the local device further includes: a second switching unit, a first bridge, and a second bridge. The second switching unit is coupled to the system control chip and the embedded controller. The first bridge is coupled between the first switching unit and the second switching unit. The second bridge is coupled between the second switching unit and the memory card. When it is determined that the power saving state has been switched, the embedded controller drives the first switching unit to switch, so that the data can be transmitted to the first bridge through the first switching unit, and the embedded controller drives the second switching unit Switching is performed so that the data transmitted through the first bridge is transmitted to the memory card through the second switching unit.
在本发明的一实施例中,上述本地端装置还包括:固件单元以及外围切换单元。固件单元耦接至系统控制芯片及嵌入式控制器。外围切换单元耦接在系统控制芯片及嵌入式控制器之间,并且耦接至音频输出接口、视频输出接口以及发光单元接口。在固件单元于在省电状态下判定在时间区段内电源管理状态未曾切换至工作状态下,在到达预设时间点时,由固件单元发出第一信号至系统控制芯片及嵌入式控制器,藉以唤醒系统控制芯片以由系统控制芯片来存取记忆卡,并且,固件单元发出第二信号至嵌入式控制器,使得嵌入式控制器通过外围切换单元来禁能音频输出接口、视频输出接口以及发光单元接口之后,启动一操作系统。在启动操作系统的情况下,系统控制芯片经由第二切换单元将记忆卡中的数据全部传送至内装存储器中,并且删除记忆卡中的数据,其中内装存储器耦接于系统控制芯片,并在删除记忆卡中的数据之后,将电源管理状态切换至省电状态。In an embodiment of the present invention, the local device further includes: a firmware unit and a peripheral switching unit. The firmware unit is coupled to the system control chip and the embedded controller. The peripheral switching unit is coupled between the system control chip and the embedded controller, and is coupled to the audio output interface, the video output interface and the light emitting unit interface. When the firmware unit determines in the power saving state that the power management state has not been switched to the working state within the time period, when the preset time point is reached, the firmware unit sends a first signal to the system control chip and the embedded controller, In order to wake up the system control chip to access the memory card by the system control chip, and the firmware unit sends a second signal to the embedded controller, so that the embedded controller disables the audio output interface, video output interface and After the lighting unit is interfaced, an operating system is started. In the case of starting the operating system, the system control chip transmits all the data in the memory card to the built-in memory via the second switching unit, and deletes the data in the memory card, wherein the built-in memory is coupled to the system control chip, and deletes the data in the memory card. After saving the data in the memory card, switch the power management state to the power saving state.
在本发明的一实施例中,在电源管理状态为工作状态下,嵌入式控制器驱使第一切换单元进行切换,使得数据得以通过第一切换单元传送至系统控制芯片,并且嵌入式控制器驱使第二切换单元进行切换,使得系统控制芯片通过第二切换单元来存取记忆卡。倘若系统控制芯片检查到记忆卡的剩余容量小于预设容量,由系统控制芯片将记忆卡中的数据全部传送到耦接于系统控制芯片的一内接存储器,并且删除记忆卡中的数据。In one embodiment of the present invention, when the power management state is the working state, the embedded controller drives the first switching unit to switch, so that the data can be transmitted to the system control chip through the first switching unit, and the embedded controller drives the The second switching unit performs switching so that the system control chip accesses the memory card through the second switching unit. If the system control chip detects that the remaining capacity of the memory card is less than the preset capacity, the system control chip transfers all the data in the memory card to an internal memory coupled to the system control chip, and deletes the data in the memory card.
在本发明的一实施例中,上述存储单元例如为内装存储器,则本地端装置还包括:第二切换单元、第三切换单元、第一桥接器以及第三桥接器。第三切换单元耦接至内装存储器。第一桥接器耦接在第一切换单元与第二切换单元之间。第三桥接器耦接在第二切换单元与第三切换单元之间。在判定已切换至省电状态的情况下,嵌入式控制器驱使第一切换单元进行切换,使得数据得以通过第一切换单元传送至第一桥接器。并且,嵌入式控制器驱使第二切换单元进行切换,使得经由第一桥接器传送的数据得以通过第二切换单元传送至第三桥接器。此外,嵌入式控制器驱使第三切换单元进行切换,使得经由第三桥接器的数据得以通过第三切换单元传送至内装存储器。In an embodiment of the present invention, the storage unit is, for example, a built-in memory, and the local device further includes: a second switching unit, a third switching unit, a first bridge, and a third bridge. The third switching unit is coupled to the built-in memory. The first bridge is coupled between the first switching unit and the second switching unit. The third bridge is coupled between the second switching unit and the third switching unit. When it is determined that the power saving state has been switched, the embedded controller drives the first switching unit to switch, so that the data can be transmitted to the first bridge through the first switching unit. Moreover, the embedded controller drives the second switching unit to switch, so that the data transmitted through the first bridge can be transmitted to the third bridge through the second switching unit. In addition, the embedded controller drives the third switching unit to switch, so that the data passing through the third bridge can be transmitted to the built-in memory through the third switching unit.
在本发明的一实施例中,在电源管理状态为工作状态下,嵌入式控制器驱使第一切换单元进行切换,使得数据得以通过第一切换单元传送至系统控制芯片,并且嵌入式控制器驱使第三切换单元进行切换,使得系统控制芯片通过第三切换单元来存取内装存储器。In one embodiment of the present invention, when the power management state is the working state, the embedded controller drives the first switching unit to switch, so that the data can be transmitted to the system control chip through the first switching unit, and the embedded controller drives the The third switching unit performs switching, so that the system control chip accesses the built-in memory through the third switching unit.
基于上述,当客户端装置通过云端服务器来存取本地端装置时,不需利用网络唤醒(Wake-on-LAN)技术来唤醒整台本地端装置,而能够在省电状态下存取本地端装置的存储单元,不仅可节省能源,也提高了使用的效率。Based on the above, when the client device accesses the local device through the cloud server, it does not need to use Wake-on-LAN technology to wake up the entire local device, but can access the local device in a power-saving state The storage unit of the device not only saves energy, but also improves the efficiency of use.
为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail with reference to the accompanying drawings.
附图说明Description of drawings
图1是本发明第一实施例的本地端装置的方块图;FIG. 1 is a block diagram of a local device according to a first embodiment of the present invention;
图2是本发明第一实施例的远端存取数据的方法流程图;FIG. 2 is a flowchart of a method for remotely accessing data according to the first embodiment of the present invention;
图3A及图3B是本发明第二实施例的本地端装置的方块图;3A and 3B are block diagrams of a local device according to a second embodiment of the present invention;
图4是本发明第二实施例的远端存取数据的方法流程图;4 is a flowchart of a method for remotely accessing data according to a second embodiment of the present invention;
图5是本发明第二实施例的省电状态下数据转存的方法流程图;5 is a flow chart of a method for transferring data in a power-saving state according to a second embodiment of the present invention;
图6是本发明第三实施例的本地端装置的方块图;FIG. 6 is a block diagram of a local device according to a third embodiment of the present invention;
图7是本发明第三实施例的远端存取数据的方法流程图;7 is a flowchart of a method for remotely accessing data according to a third embodiment of the present invention;
图8是本发明第四实施例的本地端装置的方块图。FIG. 8 is a block diagram of a local device according to a fourth embodiment of the present invention.
附图标记说明:Explanation of reference signs:
100、300、600、800:本地端装置;100, 300, 600, 800: local device;
110:系统控制芯片;110: system control chip;
120:嵌入式控制器;120: embedded controller;
130:网络单元;130: network unit;
140:第一切换单元;140: the first switching unit;
150:存储单元;150: storage unit;
210、620:第一桥接器;210, 620: the first bridge;
220、630:第二切换单元;220, 630: the second switching unit;
230、810:第二桥接器;230, 810: the second bridge;
240、820:记忆卡;240, 820: memory card;
250、610:内装存储器;250, 610: built-in memory;
260:固件单元;260: firmware unit;
270:外围切换单元;270: Peripheral switching unit;
281:音频输出接口;281: audio output interface;
282:视频输出接口;282: video output interface;
283:发光单元接口;283: light-emitting unit interface;
640:第三桥接器;640: the third bridge;
650:第三切换单元;650: the third switching unit;
S205~S220:第一实施例的远端存取数据的方法各步骤;S205-S220: each step of the method for remotely accessing data in the first embodiment;
S405~S415:第二实施例的远端存取数据的方法各步骤;S405-S415: each step of the method for remotely accessing data in the second embodiment;
S505~S530:第二实施例的省电状态下数据转存的方法各步骤;S505-S530: each step of the method for data dumping in the power-saving state of the second embodiment;
S705~S720:第三实施例的远端存取数据的方法各步骤。S705-S720: each step of the method for remotely accessing data in the third embodiment.
具体实施方式Detailed ways
在下面实施例中,客户端装置在连接至网络之后,可通过云端服务器来远端存取本地端装置的数据。客户端装置例如为智能手机、平板电脑、笔记型电脑或是个人电脑。在客户端装置登入至云端服务器,并且欲对本地端装置进行远端存取时,云端服务器会传送一远端控制信号至本地端装置,使得本地端装置根据当时的电源管理状态来驱动其内部相关构件,进而使得云端服务器得以顺利地来存取本地端装置的存储单元。In the following embodiments, after the client device is connected to the network, it can remotely access the data of the local device through the cloud server. The client device is, for example, a smart phone, a tablet computer, a notebook computer or a personal computer. When the client device logs in to the cloud server and wants to perform remote access to the local device, the cloud server will send a remote control signal to the local device, so that the local device can drive its internal device according to the power management status at that time. Related components, so that the cloud server can smoothly access the storage unit of the local device.
第一实施例first embodiment
图1是本发明第一实施例的本地端装置的方块图。请参照图1,本地端装置100包括系统控制芯片110、嵌入式控制器120、网络单元130、第一切换单元140以及存储单元150。存储单元150例如为内装存储器,或者为一记忆卡。FIG. 1 is a block diagram of a local device according to a first embodiment of the present invention. Referring to FIG. 1 , the local device 100 includes a system control chip 110 , an embedded controller 120 , a network unit 130 , a first switching unit 140 and a storage unit 150 . The storage unit 150 is, for example, a built-in memory, or a memory card.
系统控制芯片110耦接至第一切换单元140与存储单元150。在此,系统控制芯片110例如为系统单芯片(System on Chip,简称SOC),其整合了中央处理单元(CentralProcessing Unit,简称CPU)以及平台控制器集线器(Platform Controller Hub,简称PCH)的功能。在其他实施例中,系统控制芯片110例如为平台控制器集线器,其耦接至中央处理单元。The system control chip 110 is coupled to the first switching unit 140 and the storage unit 150 . Here, the system control chip 110 is, for example, a system on chip (SOC for short), which integrates the functions of a central processing unit (Central Processing Unit, CPU for short) and a platform controller hub (Platform Controller Hub, PCH for short). In other embodiments, the system control chip 110 is, for example, a platform controller hub, which is coupled to the central processing unit.
嵌入式控制器120耦接至网络单元130以及第一切换单元140。嵌入式控制器120用以通过网络单元130接收来自云端服务器所传送的远端控制信号,并且用以控制第一切换单元140。The embedded controller 120 is coupled to the network unit 130 and the first switching unit 140 . The embedded controller 120 is used for receiving the remote control signal transmitted from the cloud server through the network unit 130 and used for controlling the first switching unit 140 .
在此,本地端装置100的电源管理状态为工作状态时,由系统控制芯片110取得本地端装置100的控制权。而在本地端装置100的电源管理状态切换为省电状态时,系统控制芯片110不会被供电,此时由嵌入式控制器120来取得本地端装置100的控制权。举例来说,不论本地端装置100为开机或关机,在本地端装置100为插电的状态下,嵌入式控制器120、网络单元130以及第一切换单元140皆处于供给微弱电源的状态。此微弱供电能让网络单元130保有最低的运作能力,使网络单元130能聆听来自外部的网络广播信息。而只有在本地端装置100的电源管理状态为工作状态时,系统控制芯片110才会处于被供电的状态。以高级配置和电源接口(Advanced Configuration and Power Interface,简称ACPI)标准而言,工作状态为S0状态,省电状态为S3状态、S4状态或S5状态。Here, when the power management state of the local device 100 is the working state, the control right of the local device 100 is obtained by the system control chip 110 . When the power management state of the local device 100 is switched to the power saving state, the system control chip 110 is not powered, and the embedded controller 120 obtains the control right of the local device 100 at this time. For example, regardless of whether the local device 100 is turned on or off, when the local device 100 is plugged in, the embedded controller 120 , the network unit 130 and the first switching unit 140 are all in a state of supplying weak power. The weak power supply allows the network unit 130 to maintain a minimum operating capability, so that the network unit 130 can listen to network broadcast information from the outside. And only when the power management state of the local device 100 is the working state, the system control chip 110 will be in the state of being powered. According to the Advanced Configuration and Power Interface (ACPI for short) standard, the working state is the S0 state, and the power saving state is the S3 state, the S4 state or the S5 state.
第一切换单元140耦接至存储单元150、嵌入式控制器120、系统控制芯片110以及网络单元130。第一切换单元140依据嵌入式控制器120的控制,来决定将网络单元130所接收的数据传送至系统控制芯片110或是存储单元150。即,嵌入式控制器120控制第一切换单元140的切换,藉以决定是否断开系统控制芯片110与网络单元130之间的连接关系。例如,在工作状态下,系统控制芯片110通过第一切换单元140而与网络单元130的连接。在省电状态下,嵌入式控制器120控制第一切换单元140进行切换,藉以断开系统控制芯片110与网络单元130之间的连接,进而使得存储单元150得以通过第一切换单元140连接至网络单元130。The first switching unit 140 is coupled to the storage unit 150 , the embedded controller 120 , the system control chip 110 and the network unit 130 . The first switching unit 140 determines to transmit the data received by the network unit 130 to the system control chip 110 or the storage unit 150 according to the control of the embedded controller 120 . That is, the embedded controller 120 controls the switching of the first switching unit 140 to determine whether to disconnect the connection relationship between the system control chip 110 and the network unit 130 . For example, in the working state, the system control chip 110 is connected to the network unit 130 through the first switching unit 140 . In the power-saving state, the embedded controller 120 controls the first switch unit 140 to switch, so as to disconnect the connection between the system control chip 110 and the network unit 130, so that the storage unit 150 can be connected to the network through the first switch unit 140. Network element 130.
由于在省电状态下,系统控制芯片110处于无法运作的状态,因此,可通过嵌入式控制器120来驱动本地端装置100内部相关构件,使得云端服务器得以顺利地来存取本地端装置100。下面即配合上述本地端装置100来说明远端存取数据的方法。Since the system control chip 110 is in a non-operational state in the power-saving state, the embedded controller 120 can drive related internal components of the local device 100 so that the cloud server can access the local device 100 smoothly. The method for remotely accessing data will be described below in combination with the above-mentioned local device 100 .
图2是本发明第一实施例的远端存取数据的方法流程图。请同时参照图1及图2,在步骤S205中,嵌入式控制器120通过网络单元130自云端服务器接收到远端控制信号。例如,当客户端装置登入至云端服务器,并且欲对本地端装置100进行数据的读写时,云端服务器会传送远端控制信号至本地端装置100。FIG. 2 is a flowchart of a method for remotely accessing data according to the first embodiment of the present invention. Please refer to FIG. 1 and FIG. 2 at the same time. In step S205 , the embedded controller 120 receives a remote control signal from the cloud server through the network unit 130 . For example, when the client device logs into the cloud server and intends to read and write data to the local device 100 , the cloud server will send a remote control signal to the local device 100 .
在嵌入式控制器120通过网络单元130接收到远端控制信号时,在步骤S210中,嵌入式控制器120判断电源管理状态是否已切换至省电状态。倘若已切换至省电状态,执行步骤S215;倘若未切换至省电状态而为工作状态,则执行步骤S220。When the embedded controller 120 receives the remote control signal through the network unit 130, in step S210, the embedded controller 120 determines whether the power management state has switched to the power saving state. If it has switched to the power-saving state, execute step S215; if it is not switched to the power-saving state but is in the working state, execute step S220.
在步骤S215中,嵌入式控制器120驱使第一切换单元140进行切换,使得网络单元130所接收的数据得以通过第一切换单元140传送至存储单元150。在嵌入式控制器120判定已切换至省电状态时,由于此时系统控制芯片110并未被供电,系统控制芯片110并无法来存取存储单元150,因此,通过嵌入式控制器120来传送控制信号至第一切换单元140,使得第一切换单元140进行切换,以断开系统控制芯片110与网络单元130之间的连接关系,进而导通网络单元130与存储单元150之间的连接,使得网络单元130所接收的数据得以通过第一切换单元140传送至存储单元150。In step S215 , the embedded controller 120 drives the first switching unit 140 to switch, so that the data received by the network unit 130 is transmitted to the storage unit 150 through the first switching unit 140 . When the embedded controller 120 determines that it has switched to the power-saving state, since the system control chip 110 is not powered at this time, the system control chip 110 cannot access the storage unit 150. Therefore, the embedded controller 120 transmits The control signal is sent to the first switching unit 140, so that the first switching unit 140 switches to disconnect the connection relationship between the system control chip 110 and the network unit 130, and then turn on the connection between the network unit 130 and the storage unit 150, The data received by the network unit 130 is transmitted to the storage unit 150 through the first switching unit 140 .
倘若嵌入式控制器120在接收远端控制信号时,电源管理状态为工作状态,则在步骤S220中,由系统控制芯片110来存取存储单元150。例如,在工作状态下,第一切换单元140导通了网络单元130与系统控制芯片110之间的连接,使得网络单元130接收的数据通过第一切换单元140传送给系统控制芯片110,而由系统控制芯片110来存取存储单元150。If the power management state of the embedded controller 120 is the working state when receiving the remote control signal, then in step S220 , the system control chip 110 accesses the storage unit 150 . For example, in the working state, the first switch unit 140 conducts the connection between the network unit 130 and the system control chip 110, so that the data received by the network unit 130 is transmitted to the system control chip 110 through the first switch unit 140, and the The system controls the chip 110 to access the storage unit 150 .
下面列举第二实施例与第三实施例,分别针对存储单元150为记忆卡以及存储单元150为内装存储器(例如为硬盘)两种状况来进行说明。The second embodiment and the third embodiment are enumerated below, and the storage unit 150 is a memory card and the storage unit 150 is a built-in memory (such as a hard disk) respectively for description.
第二实施例second embodiment
图3A及图3B是本发明第二实施例的本地端装置的方块图。在此,以记忆卡240来取代第一实施例的存储单元150,并且将与第一实施例具有相同功能的构件标示上相同的符号,并省略相关的说明。请参照图3A,本地端装置300包括系统控制芯片110、嵌入式控制器120、网络单元130、第一切换单元140、第一桥接器210、第二切换单元220、第二桥接器230、记忆卡240以及内装存储器250。在此,记忆卡240例如为安全数码卡(Secure DigitalMemory Card,简称SD卡)。内装存储器250例如为硬盘。3A and 3B are block diagrams of a local device according to a second embodiment of the present invention. Here, the memory card 240 is used to replace the storage unit 150 of the first embodiment, and components having the same functions as those of the first embodiment are marked with the same symbols, and related descriptions are omitted. 3A, the local device 300 includes a system control chip 110, an embedded controller 120, a network unit 130, a first switching unit 140, a first bridge 210, a second switching unit 220, a second bridge 230, a memory card 240 and built-in memory 250 . Here, the memory card 240 is, for example, a Secure Digital Memory Card (Secure Digital Memory Card, SD card for short). The built-in memory 250 is, for example, a hard disk.
嵌入式控制器120通过通用输入输出(General Purpose Input Output,简称GPIO)接口与第一切换单元140及第二切换单元220耦接。第一切换单元140通过快速外围组件互连(Peripheral Component Interconnect Express,简称PCIE)接口与网络单元130、系统控制芯片110以及第一桥接器210耦接。第二切换单元220通过通用串行总线(Universal Serial Bus,简称USB)与第一桥接器210、第二桥接器230及系统控制芯片110耦接。第二桥接器230通过串行外围接口(Serial Peripheral Interface,简称SPI)与记忆卡240耦接。系统控制芯片110通过串行高级技术附件(Serial Advanced TechnologyAttachment,简称SATA)接口与内装存储器250耦接。The embedded controller 120 is coupled to the first switching unit 140 and the second switching unit 220 through a General Purpose Input Output (GPIO) interface. The first switching unit 140 is coupled to the network unit 130 , the system control chip 110 and the first bridge 210 through a Peripheral Component Interconnect Express (PCIE for short) interface. The second switching unit 220 is coupled to the first bridge 210 , the second bridge 230 and the system control chip 110 through a Universal Serial Bus (USB for short). The second bridge 230 is coupled to the memory card 240 through a serial peripheral interface (Serial Peripheral Interface, SPI for short). The system control chip 110 is coupled to the built-in memory 250 through a Serial Advanced Technology Attachment (SATA) interface.
在图3B中,本地端装置300还包括固件单元260、外围切换单元270以及音频输出接口281、视频输出接口282以及发光单元接口283。固件单元260耦接至系统控制芯片110及嵌入式控制器120。固件单元260例如为基本输入输出系统(Basic Input/Output System,简称BIOS)。外围切换单元270耦接在系统控制芯片110及嵌入式控制器120之间,并且耦接至音频输出接口281、视频输出接口282以及发光单元接口283。In FIG. 3B , the local device 300 further includes a firmware unit 260 , a peripheral switching unit 270 , an audio output interface 281 , a video output interface 282 , and a lighting unit interface 283 . The firmware unit 260 is coupled to the system control chip 110 and the embedded controller 120 . The firmware unit 260 is, for example, a Basic Input/Output System (BIOS for short). The peripheral switching unit 270 is coupled between the system control chip 110 and the embedded controller 120 , and is coupled to the audio output interface 281 , the video output interface 282 and the light emitting unit interface 283 .
在第二实施例中,第一桥接器210耦接在第一切换单元140与第二切换单元220之间,其负责解码与编码,使得经由PCIE接口的数据经重新编码后转换为USB格式的数据。第二桥接器230耦接在第二切换单元220与记忆卡240之间,其负责解码与编码,使得经由USB的数据经重新编码后转换为SPI格式的数据。In the second embodiment, the first bridge 210 is coupled between the first switching unit 140 and the second switching unit 220, which is responsible for decoding and encoding, so that the data via the PCIE interface is re-encoded and then converted into USB format. data. The second bridge 230 is coupled between the second switching unit 220 and the memory card 240 , and is responsible for decoding and encoding, so that the data via the USB is re-encoded and converted into data in the SPI format.
在嵌入式控制器120通过网络单元130自云端服务器接收到远端控制信号,且本地端装置300的电源管理状态已切换至省电状态的情况下,嵌入式控制器120分别通过对应的GPIO接口发出控制信号以驱使第一切换单元140及第二切换单元220进行切换。When the embedded controller 120 receives a remote control signal from the cloud server through the network unit 130, and the power management state of the local device 300 has been switched to the power saving state, the embedded controller 120 respectively through the corresponding GPIO interface A control signal is sent to drive the first switching unit 140 and the second switching unit 220 to switch.
举例来说,图4是本发明第二实施例的远端存取数据的方法流程图。在此,在本地端装置300的电源管理状态为工作状态下,第一切换单元140导通网络单元130与系统控制芯片110之间的连接,并且第二切换单元220来导通系统控制芯片110与第二桥接器230之间的连接,以由系统控制芯片110来对记忆卡240进行存取。而在本地端装置300的电源管理状态切换至省电状态的情况下,嵌入式控制器120会分别驱使第一切换单元140与第二切换单元220进行切换,使得网络单元130所接收的数据得以直接传送至记忆卡240。For example, FIG. 4 is a flowchart of a method for remotely accessing data according to the second embodiment of the present invention. Here, when the power management state of the local device 300 is the working state, the first switching unit 140 turns on the connection between the network unit 130 and the system control chip 110 , and the second switching unit 220 turns on the system control chip 110 The connection with the second bridge 230 is used for accessing the memory card 240 by the system control chip 110 . When the power management state of the local device 300 is switched to the power saving state, the embedded controller 120 will respectively drive the first switching unit 140 and the second switching unit 220 to switch, so that the data received by the network unit 130 can be Transfer directly to memory card 240 .
请同时参照图3A及图4,在步骤S405中,在省电状态下,嵌入式控制器120接收到远端控制信号。之后,在步骤S410中,嵌入式控制器120驱使第一切换单元140进行切换,使得数据得以通过第一切换单元140传送至第一桥接器210。并且,在步骤S415中,嵌入式控制器120驱使第二切换单元220进行切换,使得经由第一桥接器210传送的数据得以通过第二切换单元220传送至记忆卡240。Please refer to FIG. 3A and FIG. 4 at the same time. In step S405, in the power saving state, the embedded controller 120 receives the remote control signal. After that, in step S410 , the embedded controller 120 drives the first switching unit 140 to switch, so that the data is transmitted to the first bridge 210 through the first switching unit 140 . Moreover, in step S415 , the embedded controller 120 drives the second switching unit 220 to switch, so that the data transmitted through the first bridge 210 can be transmitted to the memory card 240 through the second switching unit 220 .
详细地说,当嵌入式控制器120在省电状态下接收到远端控制信号时,嵌入式控制器120会传送控制信号至第一切换单元140,使得第一切换单元140导通网络单元130与第一桥接器210之间的连接。并且,嵌入式控制器120会传送另一控制信号至第二切换单元220,使得第二切换单元220导通第一桥接器210与第二桥接器230之间的连接。据此,在省电状态下,网络单元130所接收的数据便可依序经由第一切换单元140、第一桥接器210、第二切换单元220以及第二桥接器230而传送至记忆卡240。Specifically, when the embedded controller 120 receives a remote control signal in the power saving state, the embedded controller 120 will send a control signal to the first switching unit 140, so that the first switching unit 140 turns on the network unit 130 connection with the first bridge 210. Moreover, the embedded controller 120 transmits another control signal to the second switching unit 220 so that the second switching unit 220 conducts the connection between the first bridge 210 and the second bridge 230 . Accordingly, in the power-saving state, the data received by the network unit 130 can be transmitted to the memory card 240 via the first switching unit 140, the first bridge 210, the second switching unit 220, and the second bridge 230 in sequence. .
另外,在省电状态下,还可进一步去判断是否要执行数据转存的操作。下面列举一例来说明。图5是本发明第二实施例的省电状态下数据转存的方法流程图。请同时参照图3B及图5,在步骤S505中,在省电状态下,由本地端装置300的固件单元260判断在时间区段内电源管理状态是否曾切换至工作状态。例如,设定时间区段为每天的凌晨0点至午夜12点。固件单元260会判断在凌晨0点至午夜12点之间,本地端装置300是否曾切换至工作状态。In addition, in the power-saving state, it may be further judged whether to perform the data transfer operation. An example is given below to illustrate. FIG. 5 is a flow chart of a method for transferring data in a power-saving state according to the second embodiment of the present invention. Please refer to FIG. 3B and FIG. 5 at the same time. In step S505, in the power saving state, the firmware unit 260 of the local device 300 determines whether the power management state has been switched to the working state within a time period. For example, the time zone is set to be from 0:00 am to 12:00 midnight every day. The firmware unit 260 will determine whether the local device 300 has switched to the working state between 0:00 am and 12:00 midnight.
倘若本地端装置300曾在设定的时间区段内切换至工作状态,则不执行数据转存的操作。也就是说,倘若在设定的时间区段内曾经切换至工作状态,则在工作状态下,系统控制芯片110会自动去执行数据转存的操作,藉以将在省电状态下存储至记忆卡240的数据转存至内装存储器250中。If the local device 300 switches to the working state within the set time period, the data transfer operation will not be performed. That is to say, if it has been switched to the working state within the set time period, then in the working state, the system control chip 110 will automatically perform the operation of data transfer, so as to store the data in the memory card in the power saving state. The data of 240 is transferred to the built-in memory 250.
倘若本地端装置300未曾在设定的时间区段内切换至工作状态,则执行步骤S510~步骤S530,藉以将记忆卡240的数据转存至内装存储器250。If the local device 300 has not been switched to the working state within the set time period, then step S510 to step S530 are executed to dump the data of the memory card 240 to the built-in memory 250 .
在步骤S510中,在到达预设时间点(例如午夜12点)时,由固件单元260发出第一信号至系统控制芯片110,藉以唤醒系统控制芯片110,以切换至工作状态而由系统控制芯片110来存取记忆卡240。在此,为了避免本地端装置300自动开机而惊吓到本地端装置300的使用者,在唤醒系统控制芯片110的同时执行步骤S515。In step S510, when reaching the preset time point (for example, midnight), the firmware unit 260 sends a first signal to the system control chip 110, so as to wake up the system control chip 110 to switch to the working state and the system control chip 110 to access memory card 240. Here, in order to prevent the user of the local device 300 from being startled by the automatic boot of the local device 300 , step S515 is executed while waking up the system control chip 110 .
在步骤S515中,由固件单元260发出第二信号至嵌入式控制器120,使得嵌入式控制器120禁能音频输出接口281、视频输出接口282以及发光单元接口283。详细地说,嵌入式控制器120发出控制信号至外围切换单元270,使得外围切换单元270断开系统控制芯片110与音频输出接口281、视频输出接口282以及发光单元接口283之间的连接。In step S515 , the firmware unit 260 sends a second signal to the embedded controller 120 , so that the embedded controller 120 disables the audio output interface 281 , the video output interface 282 and the light emitting unit interface 283 . Specifically, the embedded controller 120 sends a control signal to the peripheral switching unit 270 so that the peripheral switching unit 270 disconnects the system control chip 110 from the audio output interface 281 , the video output interface 282 and the light emitting unit interface 283 .
之后,在步骤S520中,系统控制芯片110启动操作系统。由于系统控制芯片110与音频输出接口281、视频输出接口282以及发光单元接口283之间的连接已断开,因此在启动操作系统时便不会发出任何声音,也不会在屏幕上显示任何画面,也不会发出任何亮光。Afterwards, in step S520, the system control chip 110 starts the operating system. Since the connection between the system control chip 110 and the audio output interface 281, the video output interface 282, and the light emitting unit interface 283 has been disconnected, no sound will be issued when the operating system is started, and no picture will be displayed on the screen. , nor emit any light.
并且,在步骤S525中,在系统控制芯片110启动操作系统的情况下,系统控制芯片110经由第二切换单元220将记忆卡240中的数据全部传送至内装存储器250中,并且删除记忆卡240中的数据。在删除记忆卡240中的数据之后,在步骤S530中,将电源管理状态切换至省电状态。例如,倘若在S5状态下进行数据转存,则转存完毕之后,将本地端装置300关机;倘若在S3状态下进行数据转存,则转存完毕之后,将本地端装置300切换回S3状态。And, in step S525, when the system control chip 110 starts the operating system, the system control chip 110 transfers all the data in the memory card 240 to the built-in memory 250 via the second switching unit 220, and deletes the data in the memory card 240. The data. After deleting the data in the memory card 240, in step S530, switch the power management state to the power saving state. For example, if the data transfer is performed in the S5 state, after the transfer is completed, the local device 300 is turned off; if the data transfer is performed in the S3 state, after the transfer is completed, the local device 300 is switched back to the S3 state .
另外,在进入操作系统的状态下,也可以在记忆卡240的容量快不足时,才自动进行数据转存的操作。举例来说,在电源管理状态为工作状态下,嵌入式控制器120驱使第一切换单元140进行切换,使得数据得以通过第一切换单元140传送至系统控制芯片110。并且,嵌入式控制器120驱使第二切换单元220进行切换,使得系统控制芯片110通过第二切换单元220来存取记忆卡240。在工作状态下,由系统控制芯片110检查记忆卡240的剩余容量是否小于预设容量(例如为500MB)。倘若剩余容量小于预设容量,则系统控制芯片110会自动将记忆卡240中的数据全部传送到耦接于系统控制芯片110的内装存储器250(例如为硬盘),并且删除记忆卡240中的数据。而倘若剩余容量并未小于预设容量,系统控制芯片110并不会自动执行转存操作。In addition, in the state of entering the operating system, the data transfer operation may be performed automatically when the capacity of the memory card 240 is almost insufficient. For example, when the power management state is the working state, the embedded controller 120 drives the first switching unit 140 to switch, so that data can be transmitted to the system control chip 110 through the first switching unit 140 . Moreover, the embedded controller 120 drives the second switching unit 220 to switch, so that the system control chip 110 accesses the memory card 240 through the second switching unit 220 . In the working state, the system control chip 110 checks whether the remaining capacity of the memory card 240 is less than a preset capacity (for example, 500MB). If the remaining capacity is less than the preset capacity, the system control chip 110 will automatically transfer all the data in the memory card 240 to the built-in memory 250 (such as a hard disk) coupled to the system control chip 110, and delete the data in the memory card 240 . And if the remaining capacity is not less than the preset capacity, the system control chip 110 will not automatically perform the dump operation.
第三实施例third embodiment
图6是本发明第三实施例的本地端装置的方块图。在此,以内装存储器610来取代第一实施例的存储单元150,并且将与第一实施例具有相同功能的构件标示上相同的符号,并省略相关的说明。请参照图6,本地端装置600包括系统控制芯片110、嵌入式控制器120、网络单元130、第一切换单元140、内装存储器610、第一桥接器620、第二切换单元630、第三桥接器640以及第三切换单元650。FIG. 6 is a block diagram of a local device according to a third embodiment of the present invention. Here, the storage unit 150 of the first embodiment is replaced by a built-in memory 610, and components having the same functions as those of the first embodiment are marked with the same symbols, and related descriptions are omitted. 6, the local device 600 includes a system control chip 110, an embedded controller 120, a network unit 130, a first switching unit 140, a built-in memory 610, a first bridge 620, a second switching unit 630, a third bridge device 640 and the third switching unit 650.
嵌入式控制器120通过GPIO接口与第一切换单元140、第二切换单元630以及第三切换单元650耦接。第一切换单元140通过PCIE接口与网络单元130、系统控制芯片110以及第一桥接器620耦接。第二切换单元630通过USB与第一桥接器620及第三桥接器640耦接。第三切换单元650通过SATA接口与系统控制芯片110、内装存储器610以及第三桥接器640耦接。The embedded controller 120 is coupled to the first switching unit 140 , the second switching unit 630 and the third switching unit 650 through the GPIO interface. The first switching unit 140 is coupled to the network unit 130 , the system control chip 110 and the first bridge 620 through the PCIE interface. The second switching unit 630 is coupled to the first bridge 620 and the third bridge 640 through USB. The third switching unit 650 is coupled to the system control chip 110 , the built-in memory 610 and the third bridge 640 through the SATA interface.
在第三实施例中,第一桥接器620耦接在第一切换单元140与第二切换单元630之间,其负责解码与编码,使得经由PCIE接口的数据经重新编码后转换为USB格式的数据。第三桥接器640耦接在第二切换单元630与第三切换单元650之间,其负责解码与编码,使得经由USB的数据经重新编码后转换为SATA格式的数据。In the third embodiment, the first bridge 620 is coupled between the first switching unit 140 and the second switching unit 630, which is responsible for decoding and encoding, so that the data via the PCIE interface is re-encoded and then converted into USB format. data. The third bridge 640 is coupled between the second switching unit 630 and the third switching unit 650 , and is responsible for decoding and encoding, so that the data via the USB is re-encoded and converted into data in the SATA format.
在嵌入式控制器120通过网络单元130自云端服务器接收到远端控制信号,且本地端装置600的电源管理状态已切换至省电状态的情况下,嵌入式控制器120分别通过对应的GPIO接口发出控制信号以驱使第一切换单元140、第二切换单元630以及第三切换单元650进行切换。When the embedded controller 120 receives a remote control signal from the cloud server through the network unit 130, and the power management state of the local device 600 has been switched to the power saving state, the embedded controller 120 respectively through the corresponding GPIO interface A control signal is sent to drive the first switching unit 140 , the second switching unit 630 and the third switching unit 650 to switch.
举例来说,图7是本发明第三实施例的远端存取数据的方法流程图。在此,在本地端装置600的电源管理状态为工作状态下,由第一切换单元140来导通网络单元130与系统控制芯片110之间的连接,并且由第三切换单元650来导通系统控制芯片110与内装存储器610之间的连接,以由系统控制芯片110来对内装存储器610进行存取。而在本地端装置600的电源管理状态切换至省电状态的情况下,嵌入式控制器120会分别驱使第一切换单元140、第二切换单元220以及第三切换单元650进行切换,使得网络单元130所接收的数据得以直接传送至内装存储器610而无需通过系统控制芯片110。For example, FIG. 7 is a flowchart of a method for remotely accessing data according to a third embodiment of the present invention. Here, when the power management state of the local device 600 is in the working state, the connection between the network unit 130 and the system control chip 110 is turned on by the first switching unit 140 , and the system is turned on by the third switching unit 650 . The connection between the control chip 110 and the built-in memory 610 is used to access the built-in memory 610 by the system control chip 110 . When the power management state of the local device 600 is switched to the power saving state, the embedded controller 120 will respectively drive the first switching unit 140, the second switching unit 220, and the third switching unit 650 to switch, so that the network unit The data received by the 130 can be directly transmitted to the built-in memory 610 without going through the system control chip 110 .
请参照图6及图7,在步骤S705中,在省电状态下,嵌入式控制器120接收到远端控制信号。之后,在步骤S710中,嵌入式控制器120驱使第一切换单元140进行切换,使得数据得以通过第一切换单元140传送至第一桥接器620。即,嵌入式控制器120会传送控制信号至第一切换单元140,使得第一切换单元140导通网络单元130与第一桥接器620之间的连接。Please refer to FIG. 6 and FIG. 7 , in step S705 , in the power saving state, the embedded controller 120 receives a remote control signal. After that, in step S710 , the embedded controller 120 drives the first switching unit 140 to switch, so that the data is transmitted to the first bridge 620 through the first switching unit 140 . That is, the embedded controller 120 transmits a control signal to the first switching unit 140 so that the first switching unit 140 conducts the connection between the network unit 130 and the first bridge 620 .
在步骤S715中,嵌入式控制器120驱使第二切换单元630进行切换,使得经由第一桥接器620传送的数据得以通过第二切换单元630传送至第三桥接器640。即,嵌入式控制器120传送控制信号至第二切换单元630,使得第二切换单元630导通第一桥接器620与第三桥接器640之间的连接。In step S715 , the embedded controller 120 drives the second switching unit 630 to switch, so that the data transmitted through the first bridge 620 can be transmitted to the third bridge 640 through the second switching unit 630 . That is, the embedded controller 120 transmits a control signal to the second switching unit 630 so that the second switching unit 630 conducts the connection between the first bridge 620 and the third bridge 640 .
在步骤S720中,嵌入式控制器120驱使第三切换单元650进行切换,使得经由第三桥接器640的数据得以通过第三切换单元650传送至内装存储器610。即,嵌入式控制器120传送控制信号至第三切换单元650,使得第三切换单元650断开系统控制芯片110与内装存储器610之间的连接,而导通第三桥接器640与内装存储器610之间的连接。In step S720 , the embedded controller 120 drives the third switching unit 650 to switch, so that the data passing through the third bridge 640 can be transmitted to the built-in memory 610 through the third switching unit 650 . That is, the embedded controller 120 transmits a control signal to the third switching unit 650, so that the third switching unit 650 disconnects the connection between the system control chip 110 and the built-in memory 610, and connects the third bridge 640 and the built-in memory 610. the connection between.
据此,在省电状态下,网络单元130所接收的数据便可依序经由第一切换单元140、第一桥接器620、第二切换单元630、第三桥接器640以及第三切换单元650而传送至内装存储器610。Accordingly, in the power-saving state, the data received by the network unit 130 can sequentially pass through the first switching unit 140, the first bridge 620, the second switching unit 630, the third bridge 640, and the third switching unit 650. And sent to the built-in memory 610 .
第四实施例Fourth embodiment
图8是本发明第四实施例的本地端装置的方块图。在第四实施例中,本地端装置800同时具有记忆卡820与内装存储器610。当客户端装置通过云端服务器欲存取本地端装置800时,可根据客户端装置的使用者的选择来决定存取记忆卡820或内装存储器610。在此,将与第一实施例及第三实施例中具有相同功能的构件标示上相同的符号,并省略相关的说明。FIG. 8 is a block diagram of a local device according to a fourth embodiment of the present invention. In the fourth embodiment, the local device 800 has both the memory card 820 and the built-in memory 610 . When the client device wants to access the local device 800 through the cloud server, it can decide to access the memory card 820 or the built-in memory 610 according to the user's choice of the client device. Here, components having the same functions as those in the first embodiment and the third embodiment are marked with the same symbols, and related descriptions are omitted.
请参照图8,本地端装置800包括系统控制芯片110、嵌入式控制器120、网络单元130、第一切换单元140、内装存储器610、第一桥接器620、第二切换单元630、第三桥接器640、第三切换单元650、第二桥接器810以及记忆卡820。Please refer to FIG. 8, the local device 800 includes a system control chip 110, an embedded controller 120, a network unit 130, a first switching unit 140, a built-in memory 610, a first bridge 620, a second switching unit 630, a third bridge device 640 , the third switching unit 650 , the second bridge 810 and the memory card 820 .
嵌入式控制器120通过GPIO接口与第一切换单元140、第二切换单元630以及第三切换单元650耦接。第一切换单元140通过PCIE接口与网络单元130、系统控制芯片110以及第一桥接器620耦接。第二切换单元630通过USB与第一桥接器620、第二桥接器810以及第三桥接器640耦接。第三切换单元650通过SATA接口与系统控制芯片110、内装存储器610以及第三桥接器640耦接。记忆卡820通过SPI与第二桥接器810耦接。The embedded controller 120 is coupled to the first switching unit 140 , the second switching unit 630 and the third switching unit 650 through the GPIO interface. The first switching unit 140 is coupled to the network unit 130 , the system control chip 110 and the first bridge 620 through the PCIE interface. The second switching unit 630 is coupled to the first bridge 620 , the second bridge 810 and the third bridge 640 through USB. The third switching unit 650 is coupled to the system control chip 110 , the built-in memory 610 and the third bridge 640 through the SATA interface. The memory card 820 is coupled to the second bridge 810 through SPI.
在第四实施例中,在省电状态下,第二切换单元630导通第一桥接器620与第二桥接器810之间的连接。据此,在省电状态下,将网络单元130接收的数据存储至记忆卡820中。关于在省电状态下存取记忆卡820的说明可参照第二实施例,在此不再赘述。另外,在工作状态下,第二切换单元630导通第二桥接器810与第三桥接器640之间的连接。据此,在每次切换至工作状态时,能够自动将记忆卡820中的数据通过第三切换单元650传送至内装存储器610中。并且,还可在工作状态下,将内装存储器610中的数据通过第三切换单元650传送至记忆卡820。In the fourth embodiment, in the power saving state, the second switching unit 630 turns on the connection between the first bridge 620 and the second bridge 810 . Accordingly, in the power saving state, the data received by the network unit 130 is stored in the memory card 820 . For the description of accessing the memory card 820 in the power-saving state, reference may be made to the second embodiment, and details will not be repeated here. In addition, in the working state, the second switching unit 630 conducts the connection between the second bridge 810 and the third bridge 640 . Accordingly, the data in the memory card 820 can be automatically transferred to the built-in memory 610 through the third switching unit 650 every time it is switched to the working state. Moreover, the data in the built-in memory 610 can also be transmitted to the memory card 820 through the third switching unit 650 in the working state.
在客户端装置的使用者决定存取记忆卡820时,在省电状态下,嵌入式控制器120分别通过对应的GPIO接口传送控制信号至第一切换单元140以及第二切换单元630,以导通网络单元130与第一桥接器620之间的连接,以及导通第一桥接器620与第二桥接器810之间的连接。When the user of the client device decides to access the memory card 820, in the power-saving state, the embedded controller 120 transmits control signals to the first switching unit 140 and the second switching unit 630 respectively through the corresponding GPIO interface, so as to guide The connection between the network unit 130 and the first bridge 620 is passed, and the connection between the first bridge 620 and the second bridge 810 is passed.
在客户端装置的使用者的选择决定存取内装存储器610时,在省电状态下,嵌入式控制器120分别通过对应的GPIO接口传送控制信号至第一切换单元140、第二切换单元630以及第三切换单元650,以导通网络单元130与第一桥接器620之间的连接,导通第一桥接器620与第三桥接器640之间的连接,以及导通第三桥接器640与内装存储器610之间的连接。When the user of the client device decides to access the built-in memory 610, in the power saving state, the embedded controller 120 transmits control signals to the first switching unit 140, the second switching unit 630 and the The third switching unit 650 is configured to conduct the connection between the network unit 130 and the first bridge 620, to conduct the connection between the first bridge 620 and the third bridge 640, and to conduct the connection between the third bridge 640 and the third bridge 640. The connection between the built-in memory 610.
另外,在工作状态下,则是由系统控制芯片110来存取记忆卡820或内装存储器610。In addition, in the working state, the system control chip 110 accesses the memory card 820 or the built-in memory 610 .
综上所述,当客户端装置通过云端服务器来存取本地端装置时,在系统控制芯片与存储单元之间设置一切换单元,并且通过嵌入式控制器来控制切换单元的切换,以导通网络单元与存储单元之间的通道,使得网络单元的数据不用经过系统控制芯片便能够传送至存储单元。据此,在省电状态下不需利用网络唤醒(Wake-on-LAN)技术来唤醒整台本地端装置,也能够存取本地端装置的存储单元,不仅可节省能源,也提高了使用的效率。To sum up, when the client device accesses the local device through the cloud server, a switching unit is provided between the system control chip and the storage unit, and the switching of the switching unit is controlled by the embedded controller to conduct The channel between the network unit and the storage unit enables the data of the network unit to be transmitted to the storage unit without going through the system control chip. Accordingly, in the power-saving state, it is not necessary to use Wake-on-LAN technology to wake up the entire local device, and the storage unit of the local device can also be accessed, which not only saves energy, but also improves the efficiency of use. efficiency.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
Claims (14)
- A kind of 1. method of remote access data, it is characterised in that suitable for by cloud server come remote access local side The storage unit of device, wherein the local end device further include network unit, embedded controller and system control chip, should Method includes:The embedded controller receives Far end control signal by the network unit from the cloud server, and controls the local First switch unit of end device, decides whether to disconnect the system control chip and the network list by first switch unit Connection between member, its first switch unit are coupled to the storage unit, the system control chip and the embedded Control Device;When receiving the Far end control signal, which judges the power management states of the local end device for province Electricity condition or working status, wherein, under the power down mode, stop power supply to the system control chip;The control of the local end device is obtained by the system control chip for the working status in the judgement power management states In the case of power, which drives first switch unit to turn between the system control chip and the network unit Connect and disconnect the connection between the network unit and the storage unit so that the system control chip, which is able to access this, to be deposited Storage unit, and the data that the network unit is received are sent to the storage unit by the system control chip;AndThe control of the local end device is obtained by the embedded controller for the power down mode in the judgement power management states In the case of power, which drives first switch unit to disconnect between the system control chip and the network unit Connect and turn on the connection between the network unit and the storage unit so that the data that the network unit is received obtain To be conveyed directly to the storage unit by first switch unit.
- 2. according to the method described in claim 1, it is characterized in that, the storage unit is memory card, which leads to Cross the first bridge and be coupled to the second switch unit, which is coupled to the memory card via the second bridge, and And second switch unit is coupled to the system control chip and the embedded controller, is controlled by the embedded controller The switching of second switch unit is to determine to access the memory card by the system control chip or the embedded controller;Wherein in the case where judging to have switched to the power down mode, including:The embedded controller drives first switch unit to switch over so that the data are able to by first switch unit It is sent to first bridge;AndThe embedded controller drives second switch unit to switch over so that the data transmitted via first bridge It is able to be sent to the memory card by second switch unit.
- 3. according to the method described in claim 2, it is characterized in that, in the case where judging to have switched to the power down mode, go back Including:Detect whether the power management states in time section once switched to work shape by the firmware unit of the local end device State;If the power management states had not switched to the working status in the time section, when reaching preset time point, First signal is sent to the system control chip by the firmware unit, uses and wakes up the system control chip, with by the system control Coremaking piece accesses the memory card;In the case of the system control chip start-up operation system, which should via second switch unit Data in memory card are all sent in interior device, memory, and delete the data in the memory card, wherein the built-in storage Device is coupled to the system control chip;AndAfter the data in deleting the memory card, which is switched into the power down mode.
- 4. if according to the method described in claim 3, it is characterized in that, the power management states be not in the time section The working status is switched to, when reaching the preset time point, is further included:Secondary signal is sent to the embedded controller by the firmware unit so that the embedded controller forbidden energy audio output connects After mouth, video output interface and luminescence unit interface, start the operating system.
- 5. according to the method described in claim 2, it is characterized in that, further include:In the case where the power management states are the working status, which drives first switch unit to switch over, So that the data are able to be sent to the system control chip by first switch unit, and the embedded controller drives this Second switch unit switches over so that the system control chip accesses the memory card by second switch unit.
- 6. according to the method described in claim 5, it is characterized in that, when the power management states switch to the working status, Further include:Whether the residual capacity for checking the memory card by the system control chip is less than preset capacity;If the residual capacity is less than the preset capacity, the data in the memory card are all transmitted by the system control chip To being coupled to the hard disk of the system control chip, and delete the data in the memory card.
- 7. according to the method described in claim 1, it is characterized in that, the storage unit is interior device, memory, first switching is single Member is coupled to the second switch unit by the first bridge, which passes through the 3rd switch unit and the 3rd bridge Second switch unit is coupled to, and the 3rd switch unit is coupled to the interior device, memory;In the case where judging to have switched to the power down mode, further include:The embedded controller drives first switch unit to switch over so that the data are able to by first switch unit It is sent to first bridge;The embedded controller drives second switch unit to switch over so that the data transmitted via first bridge It is able to be sent to the 3rd bridge by second switch unit;AndThe embedded controller drives the 3rd switch unit to switch over so that is able to via the data of the 3rd bridge The interior device, memory is sent to by the 3rd switch unit.
- 8. the method according to the description of claim 7 is characterized in that further include:In the case where the power management states are the working status, which drives first switch unit to switch over, So that the data are able to be sent to the system control chip by first switch unit, and the embedded controller drives this 3rd switch unit switches over so that the system control chip accesses the interior device, memory by the 3rd switch unit.
- A kind of 9. local end device, it is characterised in that including:Network unit, is linked up with cloud server;Embedded controller, is coupled to the network unit, to receive Far end control signal from the cloud server;System control chip;AndFirst switch unit, is coupled to storage unit, the embedded controller, the system control chip and the network unit, It is determining the connection relation between the system control chip and the network unit;Wherein, when the embedded controller receives the Far end control signal by the network unit from the cloud server, The embedded controller judges the power management states of the local end device for power down mode or working status, wherein, in the province Stop power supply under electricity condition to the system control chip,The control of the local end device is obtained by the system control chip for the working status in the judgement power management states In the case of power, which drives first switch unit to turn between the system control chip and the network unit Connect and disconnect the connection between the network unit and the storage unit so that the system control chip, which is able to access this, to be deposited Storage unit, and the network unit received data is sent to the storage unit by the system control chip,The control of the local end device is obtained by the embedded controller for the power down mode in the judgement power management states In the case of power, which drives first switch unit to disconnect between the system control chip and the network unit Connect and turn on the connection between the network unit and the storage unit so that the data that the network unit is received obtain To be conveyed directly to the storage unit by first switch unit.
- 10. local end device according to claim 9, it is characterised in that the storage unit is memory card, which fills Put and further include:Second switch unit, is coupled to the system control chip and the embedded controller;First bridge, is coupled between first switch unit and second switch unit;AndSecond bridge, is coupled between second switch unit and the memory card;Wherein, judge have switched to the power down mode in the case of, the embedded controller drive first switch unit into Row switching so that the data are able to be sent to first bridge, also, the embedded controller by first switch unit Second switch unit is driven to switch over so that the data transmitted via first bridge are able to second switch by this Unit is sent to the memory card.
- 11. local end device according to claim 10, it is characterised in that further include:Firmware unit, is coupled to the system control chip and the embedded controller;AndPeripheral switch unit, is coupled between the system control chip and the embedded controller, and is coupled to audio output Interface, video output interface and luminescence unit interface;Wherein, the firmware unit under the power down mode judge in time section the power management states do not switch to Under the working status, when reaching preset time point, the first signal is sent to the system control chip by the firmware unit and is somebody's turn to do Embedded controller, uses and wakes up the system control chip to access the memory card by the system control chip, also, this is solid Part unit sends secondary signal to the embedded controller so that the embedded controller is by the periphery switch unit come forbidden energy After the audio output interface, the video output interface and the luminescence unit interface, start-up operation system;In the case of start-up operation system, the system control chip is via second switch unit by the data in the memory card All it is sent in interior device, memory, and deletes the data in the memory card, wherein the interior device, memory is coupled to the system Control chip, and after the data in deleting the memory card, which is switched into the power down mode.
- 12. local end device according to claim 10, it is characterised in that in the power management states be the working status Under, which drives first switch unit to switch over so that the data are able to by first switch unit The system control chip is sent to, and the embedded controller drives second switch unit to switch over so that the system Control chip accesses the memory card by second switch unit;, will by the system control chip if the residual capacity that the system control chip checks the memory card is less than preset capacity The data in the memory card are completely transferred to be coupled to the inscribed memory of the system control chip, and delete the memory card In the data.
- 13. local end device according to claim 9, it is characterised in that the storage unit is interior device, memory, the local End device further includes:Second switch unit;3rd switch unit, is coupled to the interior device, memory;First bridge, is coupled between first switch unit and second switch unit;And3rd bridge, is coupled between second switch unit and the 3rd switch unit;In the case where judging to have switched to the power down mode, which drives first switch unit to be cut Change so that the data are able to be sent to first bridge by first switch unit, also, the embedded controller drives Second switch unit switches over so that the data transmitted via first bridge are able to by second switch unit It is sent to the 3rd bridge;And the embedded controller drives the 3rd switch unit to switch over so that via this The data of three bridges are able to be sent to the interior device, memory by the 3rd switch unit.
- 14. local end device according to claim 13, it is characterised in that the power management states are the working status Under, which drives first switch unit to switch over so that the data are able to by first switch unit The system control chip is sent to, and the embedded controller drives the 3rd switch unit to switch over so that the system Control chip accesses the interior device, memory by the 3rd switch unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410290421.2A CN105224059B (en) | 2014-06-25 | 2014-06-25 | Method for remote data access and local device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410290421.2A CN105224059B (en) | 2014-06-25 | 2014-06-25 | Method for remote data access and local device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105224059A CN105224059A (en) | 2016-01-06 |
CN105224059B true CN105224059B (en) | 2018-05-15 |
Family
ID=54993086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410290421.2A Active CN105224059B (en) | 2014-06-25 | 2014-06-25 | Method for remote data access and local device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105224059B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10775871B2 (en) * | 2016-11-10 | 2020-09-15 | Apple Inc. | Methods and apparatus for providing individualized power control for peripheral sub-systems |
US10551902B2 (en) | 2016-11-10 | 2020-02-04 | Apple Inc. | Methods and apparatus for providing access to peripheral sub-system registers |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102150147A (en) * | 2008-07-03 | 2011-08-10 | 惠普开发有限公司 | Memory server |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110035562A1 (en) * | 2009-08-10 | 2011-02-10 | Hewlett-Packard Development Company, L.P. | Providing mirroring write data |
US9092150B2 (en) * | 2011-12-22 | 2015-07-28 | Sandisk Technologies Inc. | Systems and methods of performing a data save operation |
-
2014
- 2014-06-25 CN CN201410290421.2A patent/CN105224059B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102150147A (en) * | 2008-07-03 | 2011-08-10 | 惠普开发有限公司 | Memory server |
Also Published As
Publication number | Publication date |
---|---|
CN105224059A (en) | 2016-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI510933B (en) | Method for remotely accessing data and local apparatus using the method | |
TWI537716B (en) | System on a chip and method for the same | |
JP5340335B2 (en) | Information processing device | |
KR101642240B1 (en) | Efficient low power exit sequence for peripheral devices | |
TWI477970B (en) | Mode switch method of electronic device and assocaited electronic device | |
US7890780B2 (en) | Systems and methods for managing power for data storage devices | |
US20190107966A1 (en) | Managing host communication with a regulator in a low power mode | |
US20140068297A1 (en) | State control method and apparatus and portable terminal | |
CN102749986B (en) | USB 3.0 main control device and method for reducing low power consumption thereof | |
US8005998B2 (en) | Method for controlling power consumption of a USB mass storage, associated personal computer, and storage medium storing an associated USB mass storage driver | |
US9128891B2 (en) | Method, mobile terminal and computer program product for sharing storage device | |
TWI459205B (en) | Power management method of communication interface, and device with power management capability for communication interface | |
US9972275B2 (en) | Content presentation system and method | |
CN105446916A (en) | USB bus state switching method and apparatus | |
CN105224059B (en) | Method for remote data access and local device | |
JP6508912B2 (en) | Storage system, storage apparatus, and non-signal analysis method of storage system | |
TWI736834B (en) | Transmission interface circuit | |
US20120091823A1 (en) | Mobile storage device and method for managing power consumption of the mobile storage device | |
US20180024602A1 (en) | Electronic device and method for controlling the same | |
CN115220557A (en) | Power-on system, power-on method, readable storage medium, and electronic device | |
WO2016045363A1 (en) | Method for cpu to control wifi module via hsic bus interface | |
WO2014205909A1 (en) | Data storage processing method, device, and terminal | |
CN104111905B (en) | External electronic device and control method thereof | |
TWI865321B (en) | The method for waking on network for the computing device, the comupting device, and the computer-readable recording medium | |
TW202009698A (en) | Method and computer program product and apparatus for adjusting operating frequencies |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |