WO2016045363A1 - Method for cpu to control wifi module via hsic bus interface - Google Patents

Method for cpu to control wifi module via hsic bus interface Download PDF

Info

Publication number
WO2016045363A1
WO2016045363A1 PCT/CN2015/076581 CN2015076581W WO2016045363A1 WO 2016045363 A1 WO2016045363 A1 WO 2016045363A1 CN 2015076581 W CN2015076581 W CN 2015076581W WO 2016045363 A1 WO2016045363 A1 WO 2016045363A1
Authority
WO
WIPO (PCT)
Prior art keywords
wifi module
cpu
bus interface
hsic bus
module
Prior art date
Application number
PCT/CN2015/076581
Other languages
French (fr)
Chinese (zh)
Inventor
郭涛
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016045363A1 publication Critical patent/WO2016045363A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus

Definitions

  • the WIFI module When the portable wireless mobile hotspot device needs to sleep, the WIFI module needs to enter the sleep state first; correspondingly, the HSIC bus interface needs to be disconnected from the WIFI module, and then the portable wireless mobile hotspot device goes into sleep.
  • the HSIC bus interface does not support the hot plug function, that is to say, the HSIC bus interface cannot realize the disconnection and secondary connection of the WIFI module under the condition of uninterrupted power; the HSIC bus interface can realize WIFI in case of power failure.
  • the sleep of the module but because the HSIC bus interface does not support hot swap, and the WIFI module has a drive file at this time; therefore, the WIFI module will not be able to wake up normally when it is powered on again. That is, the HSIC bus interface cannot implement the sleep operation and wake-up operation of the WIFI module.
  • the WIFI module modifies the strobe signal in the HSIC bus interface from a high level to a low level; and changes a data signal in the HSIC bus interface from a low level to a high level to achieve the The CPU sends a connection request.
  • the WIFI module receives the hibernation request sent by the CPU, uninstalls the WIFI module driver file and the WIFI module firmware file according to the hibernation request, and sends hibernation confirmation information to the CPU.
  • the WIFI module receives the connection confirmation information sent by the CPU; the WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU.
  • the WIFI module modifies the strobe signal in the HSIC bus interface from a high level to a low level; and changes a data signal in the HSIC bus interface from a low level to a high level to achieve the The CPU sends a connection request.
  • the embodiment of the invention further provides a device for controlling a sleep of a WIFI module by a CPU through an HSIC bus interface, the device comprising:
  • FIG. 5 is a schematic structural diagram of an apparatus for controlling a sleep of a WIFI module by a CPU of Embodiment 3 through an HSIC bus interface;
  • FIG. 6 is a schematic structural diagram of an apparatus for controlling a wakeup of a WIFI module by a CPU of Embodiment 4 through an HSIC bus interface;
  • FIG. 7 is a schematic flow chart of a method for controlling a WIFI module by a CPU of Embodiment 5 through an HSIC bus interface;
  • detecting that the HSIC bus interface is an IDLE working mode specifically includes:
  • the way the user sends is as follows: If the user does not use the computer for a while or does not operate the computer within the set time, the computer can be put into a sleep state by selecting the sleep option or the computer automatically sleeping. Electrical energy.
  • the user operation is specifically: right click on the main interface of the computer, select the property option, select the screen saver from the property interface, click the power button in the lower right corner of the screen saver interface, select the sleep tab in the power option interface, and enable the sleep In the box before the check box, the sleep button appears in the start button of the computer.
  • the embodiment provides a method for the CPU to wake up the WIFI module through the HSIC bus interface, and the method includes:
  • the CPU 301 is configured to establish a connection with the WIFI module 303, download the WIFI module driver file and the WIFI module firmware file from the file storage module, and send the WIFI module firmware file to the WIFI module 303; receive the sleep instruction, and enable the WIFI module 303 to uninstall the WIFI module driver file and the WIFI module.
  • the firmware file is used to stop the power supply for the HSIC bus interface 302 and the WIFI module 303, so that the WIFI module 303 enters the sleep state from the working state;
  • S5012 when the CPU receives the connection request sent by the WIFI module, the CPU sends connection confirmation information to the WIFI module; the CPU downloads the WIFI module driver file and the WIFI module firmware from the file storage module. The file is sent to the WIFI module;
  • the WIFI module uninstalls the WIFI module driver file and the WIFI module firmware file according to the sleep instruction, and informs the CPU of the state of the WIFI module at this time; the CPU notifies the power module to stop supplying power to the HSIC bus interface and the WIFI module, and the WIFI module is in a state before power-on. That is, the WIFI module driver file and the WIFI module firmware file are not enabled.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

Disclosed is a method for a CPU to control a WIFI module to sleep via an HSIC bus interface, comprising: a CPU establishes a connection with a WIFI module via an HSIC bus interface; when the CPU receives a sleep instruction, the WIFI module unloads a WIFI module drive file and a WIFI module firmware file; and the CPU controls a power module to stop supplying power to the HSIC bus interface and the WIFI module, such that the WIFI module enters a sleeping state. Also disclosed are a method for the CPU to control the WIFI module to wake up via an HSIC bus interface, device for the CPU to control the WIFI module to sleep via the HSIC bus interface and device for the CPU to control the WIFI module to wake up via the HSIC bus interface.

Description

CPU通过HSIC总线接口控制WIFI模块的方法Method for controlling WIFI module by CPU through HSIC bus interface 技术领域Technical field
本发明涉及芯片间高速接口(High Speed Inter-Chip,HSIC)技术领域,尤其涉及一种中央处理器(Central Processing Unit,CPU)通过HSIC总线接口控制WIFI模块的方法。The present invention relates to the field of high speed Inter-Chip (HSIC) technology, and more particularly to a method for a central processing unit (CPU) to control a WIFI module through an HSIC bus interface.
背景技术Background technique
HSIC总线采用芯片间连接(Inter-Chip Connectivity,ICC)技术,能够实现USB 2.0协议在短距离间的传输。HSIC总线使用两根信号线(选通脉冲线(strobe)和数据线(data))实现通信,能够提供480兆比特/秒的速率。因此,在便携式无线移动热点设备中采用HSIC总线连接到WIFI模块,能提高WIFI信号的传输速率。The HSIC bus uses Inter-Chip Connectivity (ICC) technology to enable USB 2.0 protocol transmission over short distances. The HSIC bus uses two signal lines (strobe and data) to communicate at a rate of 480 megabits per second. Therefore, using the HSIC bus to connect to the WIFI module in the portable wireless mobile hotspot device can improve the transmission rate of the WIFI signal.
便携式无线移动热点设备就像手机一样,除了要求上网速率快,还要具有更好的电池续航能力,这就希望在便携式无线移动热点设备休眠时尽可能地减少电流,而WIFI模块的待机机制就成为便携式无线移动热点设备必须考虑的一个重要问题。A portable wireless mobile hotspot device is like a mobile phone. In addition to requiring a fast internet connection and better battery life, it is desirable to reduce the current as much as possible while the portable wireless mobile hotspot device is dormant, and the standby mechanism of the WIFI module is An important issue that must be considered as a portable wireless mobile hotspot device.
当便携式无线移动热点设备需要休眠时,WIFI模块需要先进入休眠状态;对应地,HSIC总线接口就需要和WIFI模块断开,然后便携式无线移动热点设备整机进入休眠。但是,HSIC总线接口不支持热插拔的功能,也就是说,HSIC总线接口在不断电的情况下无法实现WIFI模块的断开和二次连接;HSIC总线接口在断电的情况下能够实现WIFI模块的休眠,但由于HSIC总线接口不支持热插拔,且此时的WIFI模块已经有驱动文件了;因此,WIFI模块再次上电时将无法正常被唤醒。即HSIC总线接口无法实现对WIFI模块的休眠操作和唤醒操作。When the portable wireless mobile hotspot device needs to sleep, the WIFI module needs to enter the sleep state first; correspondingly, the HSIC bus interface needs to be disconnected from the WIFI module, and then the portable wireless mobile hotspot device goes into sleep. However, the HSIC bus interface does not support the hot plug function, that is to say, the HSIC bus interface cannot realize the disconnection and secondary connection of the WIFI module under the condition of uninterrupted power; the HSIC bus interface can realize WIFI in case of power failure. The sleep of the module, but because the HSIC bus interface does not support hot swap, and the WIFI module has a drive file at this time; therefore, the WIFI module will not be able to wake up normally when it is powered on again. That is, the HSIC bus interface cannot implement the sleep operation and wake-up operation of the WIFI module.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供CPU通过HSIC总线接口控制WIFI模块的方法,至少能解决HSIC总线接口无法实现对WIFI模块的休眠操作和唤醒操作的技术问题。In view of this, the embodiment of the present invention is expected to provide a method for the CPU to control the WIFI module through the HSIC bus interface, and at least solve the technical problem that the HSIC bus interface cannot implement the sleep operation and the wake-up operation of the WIFI module.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供了一种CPU通过HSIC总线接口控制WIFI模块休眠的方法,所述方法包括: An embodiment of the present invention provides a method for controlling a sleep of a WIFI module by a CPU through an HSIC bus interface, where the method includes:
CPU通过HSIC总线接口建立与WIFI模块的连接;The CPU establishes a connection with the WIFI module through the HSIC bus interface;
当所述CPU接收到休眠指令时,所述WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件;所述CPU控制电源模块停止向所述HSIC总线接口和所述WIFI模块供电,使得所述WIFI模块进入休眠状态。When the CPU receives the sleep instruction, the WIFI module uninstalls the WIFI module driver file and the WIFI module firmware file; the CPU controls the power module to stop supplying power to the HSIC bus interface and the WIFI module, so that the WIFI module Go to sleep.
上述方案中,所述CPU通过HSIC总线接口建立与WIFI模块的连接包括:In the above solution, the CPU establishes a connection with the WIFI module through the HSIC bus interface, including:
所述WIFI模块通电后,当检测到所述HSIC总线接口为IDLE工作模式时,所述WIFI模块向所述CPU发送连接请求;After the WIFI module is powered on, when detecting that the HSIC bus interface is in an IDLE working mode, the WIFI module sends a connection request to the CPU;
当所述CPU接收到所述WIFI模块发来的连接请求时,所述CPU向所述WIFI模块发送连接确认信息;所述CPU从文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;When the CPU receives the connection request sent by the WIFI module, the CPU sends connection confirmation information to the WIFI module; the CPU downloads the WIFI module driver file and the WIFI module firmware file from the file storage module and sends the connection The WIFI module;
所述WIFI模块接收所述CPU发来的连接确认信息;WIFI模块接收并启用CPU发来的所述WIFI模块驱动文件和WIFI模块固件文件。The WIFI module receives the connection confirmation information sent by the CPU; the WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU.
上述方案中,所述WIFI模块向所述CPU发送连接请求包括:In the above solution, the sending, by the WIFI module, the connection request to the CPU includes:
所述WIFI模块将所述HSIC总线接口中的选通脉冲信号由高电平修改为低电平;将所述HSIC总线接口中的数据信号由低电平修改为高电平,实现向所述CPU发送连接请求。The WIFI module modifies the strobe signal in the HSIC bus interface from a high level to a low level; and changes a data signal in the HSIC bus interface from a low level to a high level to achieve the The CPU sends a connection request.
上述方案中,所述当所述CPU接收到休眠指令时,所述WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件包括:In the above solution, when the CPU receives the sleep instruction, the WIFI module uninstalling the WIFI module driver file and the WIFI module firmware file includes:
当所述CPU接收到休眠指令时,所述CPU向所述WIFI模块发送休眠请求;When the CPU receives the sleep instruction, the CPU sends a sleep request to the WIFI module;
所述WIFI模块接收所述CPU发来的所述休眠请求,根据所述休眠请求卸载所述WIFI模块驱动文件和WIFI模块固件文件,并向所述CPU发送休眠确认信息。The WIFI module receives the hibernation request sent by the CPU, uninstalls the WIFI module driver file and the WIFI module firmware file according to the hibernation request, and sends hibernation confirmation information to the CPU.
上述方案中,所述CPU控制电源模块停止向所述HSIC总线接口和所述WIFI模块供电包括:In the above solution, the CPU controls the power module to stop supplying power to the HSIC bus interface and the WIFI module, including:
当所述CPU接收所述WIFI模块发来的休眠确认信息时,所述CPU向电源模块发送停止供电指令; When the CPU receives the sleep confirmation information sent by the WIFI module, the CPU sends a power supply stop command to the power module;
所述电源模块接收到所述停止供电指令后,停止向所述HSIC总线接口和所述WIFI模块供电。After receiving the power supply stop command, the power module stops supplying power to the HSIC bus interface and the WIFI module.
本发明实施例还提供了一种CPU通过HSIC总线接口控制WIFI模块唤醒的方法,所述方法包括:The embodiment of the invention further provides a method for controlling a wakeup of a WIFI module by a CPU through an HSIC bus interface, the method comprising:
当CPU接收到唤醒指令时,所述CPU通过HSIC总线接口建立与WIFI模块的连接。When the CPU receives the wake-up instruction, the CPU establishes a connection with the WIFI module through the HSIC bus interface.
上述方案中,所述当CPU接收到唤醒指令时,所述CPU通过HSIC总线接口建立与WIFI模块的连接包括:In the above solution, when the CPU receives the wake-up instruction, the CPU establishes a connection with the WIFI module through the HSIC bus interface, including:
当所述CPU接收到唤醒指令时,所述CPU控制电源模块向所述HSIC总线接口和所述WIFI模块供电;When the CPU receives the wake-up instruction, the CPU controls the power module to supply power to the HSIC bus interface and the WIFI module;
所述WIFI模块通电后,当检测到所述HSIC总线接口为IDLE工作模式时,所述WIFI模块向所述CPU发送连接请求;After the WIFI module is powered on, when detecting that the HSIC bus interface is in an IDLE working mode, the WIFI module sends a connection request to the CPU;
所述CPU接收所述WIFI模块发来的连接请求,并向所述WIFI模块发送连接确认信息;所述CPU从文件存储模块下载所述WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;Receiving, by the CPU, a connection request sent by the WIFI module, and sending connection confirmation information to the WIFI module; the CPU downloading the WIFI module driver file and the WIFI module firmware file from the file storage module, and sending the WIFI module to the WIFI Module
所述WIFI模块接收所述CPU发来的连接确认信息;所述WIFI模块接收并启用所述CPU发来的WIFI模块驱动文件和WIFI模块固件文件。The WIFI module receives the connection confirmation information sent by the CPU; the WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU.
上述方案中,所述当所述CPU接收到唤醒指令时,所述CPU控制电源模块向所述HSIC总线接口和所述WIFI模块供电包括:In the above solution, when the CPU receives the wake-up instruction, the CPU controls the power supply module to supply power to the HSIC bus interface and the WIFI module, including:
当所述CPU接收到唤醒指令时,所述CPU向电源模块发送供电指令;When the CPU receives the wake-up instruction, the CPU sends a power supply command to the power module;
所述电源模块接收到所述供电指令后,向所述HSIC总线接口和所述WIFI模块供电。After receiving the power supply command, the power module supplies power to the HSIC bus interface and the WIFI module.
上述方案中,所述WIFI模块向所述CPU发送连接请求包括:In the above solution, the sending, by the WIFI module, the connection request to the CPU includes:
所述WIFI模块将所述HSIC总线接口中的选通脉冲信号由高电平修改为低电平;将所述HSIC总线接口中的数据信号由低电平修改为高电平,实现向所述CPU发送连接请求。 The WIFI module modifies the strobe signal in the HSIC bus interface from a high level to a low level; and changes a data signal in the HSIC bus interface from a low level to a high level to achieve the The CPU sends a connection request.
本发明实施例还提供了一种CPU通过HSIC总线接口控制WIFI模块休眠的装置,所述装置包括:The embodiment of the invention further provides a device for controlling a sleep of a WIFI module by a CPU through an HSIC bus interface, the device comprising:
CPU,设置为和WIFI模块建立连接,从文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;接收休眠指令,使WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件;控制电源模块为HSIC总线接口和WIFI模块停止供电,使WIFI模块从工作状态进入休眠状态;The CPU is configured to establish a connection with the WIFI module, download the WIFI module driver file and the WIFI module firmware file from the file storage module and send the WIFI module to the WIFI module; receive the sleep instruction, and enable the WIFI module to uninstall the WIFI module driver file and the WIFI module firmware file; The control power module stops supplying power to the HSIC bus interface and the WIFI module, so that the WIFI module enters a sleep state from a working state;
HSIC总线接口,设置为为所述CPU和WIFI模块建立数据连接;An HSIC bus interface, configured to establish a data connection for the CPU and the WIFI module;
WIFI模块,设置为接收并启用所述CPU发来的WIFI模块驱动文件和WIFI模块固件文件;根据所述CPU的休眠指令卸载WIFI模块驱动文件和WIFI模块固件文件,从工作状态进入休眠状态。The WIFI module is configured to receive and enable the WIFI module driver file and the WIFI module firmware file sent by the CPU; and uninstall the WIFI module driver file and the WIFI module firmware file according to the sleep instruction of the CPU, and enter a sleep state from the working state.
本发明实施例还提供了一种CPU通过HSIC总线接口控制WIFI模块唤醒的装置,所述装置包括:The embodiment of the invention further provides a device for controlling a wakeup of a WIFI module by using a HSIC bus interface, the device comprising:
CPU,设置为接收唤醒指令,控制电源模块为HSIC总线接口和WIFI模块供电,并和WIFI模块建立连接;从文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块,使WIFI模块从休眠状态进入唤醒状态;The CPU is configured to receive the wake-up command, and the control power module supplies power to the HSIC bus interface and the WIFI module, and establishes a connection with the WIFI module; downloads the WIFI module driver file and the WIFI module firmware file from the file storage module and sends the WIFI module to the WIFI module, so that the CPU The WIFI module enters the awake state from the sleep state;
HSIC总线接口,设置为为所述CPU和WIFI模块建立数据连接;An HSIC bus interface, configured to establish a data connection for the CPU and the WIFI module;
WIFI模块,设置为接收并启用所述CPU发来的WIFI模块驱动文件和WIFI模块固件文件,从休眠状态进入唤醒状态。The WIFI module is configured to receive and enable the WIFI module driver file and the WIFI module firmware file sent by the CPU, and enter the awake state from the sleep state.
本发明实施例所提供的CPU通过HSIC总线接口控制WIFI模块的方法,通过HSIC总线接口使得CPU和WIFI模块建立连接;当CPU接收到休眠指令时,WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件;CPU控制电源模块停止向HSIC总线接口和WIFI模块供电,使得WIFI模块进入休眠状态,此时的HSIC总线接口和WIFI模块处于CPU和WIFI模块建立连接之前的状态;当CPU接收到唤醒指令时,CPU通过HSIC总线接口重新建立与WIFI模块的连接。即每次接收到唤醒指令时,CPU都要通过HSIC总线接口重新和WIFI模块建立连接,这样就能实现通过HSIC总线接口对WIFI模块的正常休眠操作和唤醒操作。 The CPU provided by the embodiment of the present invention controls the WIFI module through the HSIC bus interface, and the CPU and the WIFI module establish a connection through the HSIC bus interface; when the CPU receives the sleep instruction, the WIFI module uninstalls the WIFI module driver file and the WIFI module firmware file. The CPU control power module stops supplying power to the HSIC bus interface and the WIFI module, so that the WIFI module enters a sleep state. At this time, the HSIC bus interface and the WIFI module are in a state before the CPU and the WIFI module establish a connection; when the CPU receives the wake-up command, The CPU re-establishes the connection with the WIFI module through the HSIC bus interface. That is, each time a wake-up command is received, the CPU must re-establish a connection with the WIFI module through the HSIC bus interface, so that the normal sleep operation and wake-up operation of the WIFI module through the HSIC bus interface can be realized.
附图说明DRAWINGS
图1为实施例1的CPU通过HSIC总线接口控制WIFI模块休眠的方法的流程示意图;1 is a schematic flow chart of a method for controlling a sleep of a WIFI module by a CPU of the first embodiment through a HSIC bus interface;
图2为实施例1方法的步骤S101的流程示意图;2 is a schematic flow chart of step S101 of the method of Embodiment 1;
图3为实施例1方法的步骤S102的流程示意图;3 is a schematic flow chart of step S102 of the method of Embodiment 1;
图4为实施例2方法的步骤S201的流程示意图;4 is a schematic flow chart of step S201 of the method of Embodiment 2;
图5为实施例3的CPU通过HSIC总线接口控制WIFI模块休眠的装置的结构示意图;5 is a schematic structural diagram of an apparatus for controlling a sleep of a WIFI module by a CPU of Embodiment 3 through an HSIC bus interface;
图6为实施例4的CPU通过HSIC总线接口控制WIFI模块唤醒的装置的结构示意图;6 is a schematic structural diagram of an apparatus for controlling a wakeup of a WIFI module by a CPU of Embodiment 4 through an HSIC bus interface;
图7为实施例5的CPU通过HSIC总线接口控制WIFI模块的方法的流程示意图;7 is a schematic flow chart of a method for controlling a WIFI module by a CPU of Embodiment 5 through an HSIC bus interface;
图8为HSIC总线的协议示意图;Figure 8 is a schematic diagram of a protocol of the HSIC bus;
图9为WIFI模块的休眠和唤醒机流程示意图。FIG. 9 is a schematic diagram of the sleep and wake-up process of the WIFI module.
具体实施方式detailed description
以下结合说明书附图及具体实施例对本发明的技术方案做进一步的详细阐述。The technical solutions of the present invention are further elaborated below in conjunction with the drawings and specific embodiments.
实施例1Example 1
为了解决HSIC总线接口无法实现对WIFI模块进行休眠操作的技术问题,本实施例提供了一种CPU通过HSIC总线接口控制WIFI模块休眠的方法,如图1所示,所述方法包括:In order to solve the technical problem that the HSIC bus interface cannot perform the sleep operation of the WIFI module, the embodiment provides a method for the CPU to control the sleep of the WIFI module through the HSIC bus interface. As shown in FIG. 1 , the method includes:
S101:CPU通过HSIC总线接口建立与WIFI模块的连接;S101: the CPU establishes a connection with the WIFI module through the HSIC bus interface;
HSIC总线接口的传输速率很高,CPU通过HSIC总线接口和WIFI模块连接,能够提高WIFI信号的传输速率。建立连接之前的状态是:The transmission rate of the HSIC bus interface is very high, and the CPU is connected to the WIFI module through the HSIC bus interface, which can increase the transmission rate of the WIFI signal. The state before the connection is established is:
(1)HSIC总线加电,HSIC总线接口中的选通脉冲信号为高电平;HSIC总线接口中的数据信号为低电平; (1) The HSIC bus is powered on, the strobe signal in the HSIC bus interface is high; the data signal in the HSIC bus interface is low;
(2)WIFI模块加电,但没有WIFI模块驱动文件和WIFI模块固件文件,不能工作。(2) The WIFI module is powered up, but there is no WIFI module driver file and WIFI module firmware file, which cannot work.
S102:当所述CPU接收到休眠指令时,所述WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件;所述CPU控制电源模块停止向所述HSIC总线接口和所述WIFI模块供电,使得所述WIFI模块进入休眠状态;S102: When the CPU receives the sleep instruction, the WIFI module uninstalls the WIFI module driver file and the WIFI module firmware file; the CPU control power module stops supplying power to the HSIC bus interface and the WIFI module, so that the The WIFI module enters a sleep state;
CPU接收到休眠指令后,会向WIFI模块发送休眠请求,WIFI模块根据休眠请求卸载WIFI模块驱动文件和WIFI模块固件文件,使WIFI模块处于未通电未安装WIFI模块驱动文件和WIFI模块固件文件的状态,避免了下一次WIFI模块上电后无法正常工作,同时节省了电能。After receiving the sleep instruction, the CPU sends a sleep request to the WIFI module. The WIFI module uninstalls the WIFI module driver file and the WIFI module firmware file according to the sleep request, so that the WIFI module is in a state where the WIFI module driver file and the WIFI module firmware file are not powered. It avoids the next time the WIFI module fails to work normally after power-on, and saves power.
本实施例所提供的一种CPU通过HSIC总线接口控制WIFI模块休眠的方法,通过HSIC总线接口使得CPU和WIFI模块建立连接;当CPU接收到休眠指令时,WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件;CPU控制电源模块停止向HSIC总线接口和WIFI模块供电,使得WIFI模块进入休眠状态,此时的HSIC总线接口和WIFI模块处于CPU和WIFI模块建立连接之前的状态,实现了通过HSIC总线接口对WIFI模块的休眠操作。The CPU provided by the embodiment controls the sleep mode of the WIFI module through the HSIC bus interface, and establishes a connection between the CPU and the WIFI module through the HSIC bus interface; when the CPU receives the sleep instruction, the WIFI module uninstalls the WIFI module driver file and the WIFI module. Firmware file; the CPU control power module stops supplying power to the HSIC bus interface and the WIFI module, so that the WIFI module enters a sleep state. At this time, the HSIC bus interface and the WIFI module are in a state before the CPU and the WIFI module establish a connection, and the HSIC bus interface is realized. Sleep operation on the WIFI module.
具体的,步骤S101的流程示意图如图2所示,包括:Specifically, the schematic diagram of the process of step S101 is as shown in FIG. 2, and includes:
S1011:所述WIFI模块通电后,当检测到所述HSIC总线接口为IDLE工作模式时,所述WIFI模块向所述CPU发送连接请求;S1011: After the WIFI module is powered on, when detecting that the HSIC bus interface is in an IDLE working mode, the WIFI module sends a connection request to the CPU;
其中,检测到所述HSIC总线接口为IDLE工作模式具体包括:Wherein, detecting that the HSIC bus interface is an IDLE working mode specifically includes:
HSIC总线接口为IDLE工作模式,此时HSIC总线接口中的选通脉冲信号为高电平;HSIC总线接口中的数据信号为低电平。WIFI模块检测到HSIC总线接口中的选通脉冲信号为高电平;HSIC总线接口中的数据信号为低电平就知道了HSIC总线接口处于IDLE工作模式。The HSIC bus interface is in IDLE mode. At this time, the strobe signal in the HSIC bus interface is high; the data signal in the HSIC bus interface is low. The WIFI module detects that the strobe signal in the HSIC bus interface is high; the data signal in the HSIC bus interface is low to know that the HSIC bus interface is in the IDLE mode of operation.
所述WIFI模块向所述CPU发送连接请求具体包括:The sending, by the WIFI module, the connection request to the CPU specifically includes:
所述WIFI模块将所述HSIC总线接口中的选通脉冲信号由高电平修改为低电平;将所述HSIC总线接口中的数据信号由低电平修改为高电平,实现向所述CPU发送连接请求。 The WIFI module modifies the strobe signal in the HSIC bus interface from a high level to a low level; and changes a data signal in the HSIC bus interface from a low level to a high level to achieve the The CPU sends a connection request.
S1012:当所述CPU接收到所述WIFI模块发来的连接请求时,所述CPU向所述WIFI模块发送连接确认信息;所述CPU从文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;S1012: When the CPU receives the connection request sent by the WIFI module, the CPU sends connection confirmation information to the WIFI module; the CPU downloads the WIFI module driver file and the WIFI module firmware file from the file storage module. Send to the WIFI module;
其中,所述CPU向所述WIFI模块发送连接确认信息具体为:The sending, by the CPU, the connection confirmation information to the WIFI module is specifically:
由上述WIFI模块发送连接请求修改HSIC总线接口的IDLE状态下的选通脉冲信号和数据信号的电平可知,此时的HSIC总线接口的状态已经不是IDLE状态了,而是处于连接状态(或其他工作状态)。这时,CPU就可以通过HSIC总线接口进行正常的数据信号交互,而不是通过修改HSIC总线接口的选通脉冲信号和数据信号的电平来进行信号交互。所以,连接确认信息是CPU通过HSIC总线接口发送给WIFI模块的。The level of the strobe signal and the data signal in the IDLE state of the HSIC bus interface is modified by the above WIFI module sending connection request. The state of the HSIC bus interface at this time is not the IDLE state, but is in the connected state (or other Working status). At this time, the CPU can perform normal data signal interaction through the HSIC bus interface, instead of modifying the level of the strobe signal and the data signal of the HSIC bus interface for signal interaction. Therefore, the connection confirmation message is sent by the CPU to the WIFI module via the HSIC bus interface.
S1013:所述WIFI模块接收所述CPU发来的连接确认信息;WIFI模块接收并启用CPU发来的所述WIFI模块驱动文件和WIFI模块固件文件,通过启用CPU发来的WIFI模块驱动文件和WIFI模块固件文件实现WIFI模块的正常工作。S1013: The WIFI module receives the connection confirmation information sent by the CPU; the WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU, and enables the WIFI module driver file and the WIFI sent by the CPU. The module firmware file implements the normal operation of the WIFI module.
步骤S102的流程示意图如图3所示,包括:The schematic diagram of the process of step S102 is as shown in FIG. 3, and includes:
S1021:当所述CPU接收到休眠指令时,所述CPU向所述WIFI模块发送休眠请求;休眠指令可以是用户发送,也可以是定时发送。S1021: When the CPU receives the sleep instruction, the CPU sends a sleep request to the WIFI module; the sleep instruction may be sent by the user, or may be sent periodically.
用户发送的方式为:以用户操作电脑为例,如果用户暂时不使用电脑或在设定时间内没有对电脑进行操作时,可通过选择休眠选项或电脑自动休眠的方式使电脑进入休眠状态,节省电能。用户操作具体为:在电脑主界面点击鼠标右键,选择属性选项,从属性界面选择屏幕保护程序,在屏幕保护程序界面的右下角点击电源按钮,在电源选项界面中选择休眠标签,在“启用休眠”前的方框内打勾,则可在电脑开始按键里出现休眠按钮。The way the user sends is as follows: If the user does not use the computer for a while or does not operate the computer within the set time, the computer can be put into a sleep state by selecting the sleep option or the computer automatically sleeping. Electrical energy. The user operation is specifically: right click on the main interface of the computer, select the property option, select the screen saver from the property interface, click the power button in the lower right corner of the screen saver interface, select the sleep tab in the power option interface, and enable the sleep In the box before the check box, the sleep button appears in the start button of the computer.
定时发送方式:通过CPU对休眠时间进行设定,设定后通过CPU定时发送休眠指令。Timing transmission mode: The sleep time is set by the CPU, and the sleep command is sent periodically by the CPU after setting.
S1022:所述WIFI模块接收所述CPU发来的所述休眠请求,根据所述休眠请求卸载所述WIFI模块驱动文件和WIFI模块固件文件,并向所述CPU发送休眠确认信息。S1022: The WIFI module receives the hibernation request sent by the CPU, uninstalls the WIFI module driver file and the WIFI module firmware file according to the hibernation request, and sends hibernation confirmation information to the CPU.
S1023:当所述CPU接收所述WIFI模块发来的休眠确认信息时,所述CPU向电源模块发送停止供电指令; S1023: When the CPU receives the sleep confirmation information sent by the WIFI module, the CPU sends a power supply stop command to the power module.
S1024:所述电源模块接收到所述停止供电指令后,停止向所述HSIC总线接口和所述WIFI模块供电。S1024: After receiving the power-off command, the power module stops supplying power to the HSIC bus interface and the WIFI module.
实施例2Example 2
为了解决HSIC总线接口无法实现对WIFI模块进行唤醒操作的技术问题,本实施例提供了一种CPU通过HSIC总线接口控制WIFI模块唤醒的方法,所述方法包括:In order to solve the technical problem that the HSIC bus interface cannot implement the wake-up operation of the WIFI module, the embodiment provides a method for the CPU to wake up the WIFI module through the HSIC bus interface, and the method includes:
S201:当CPU接收到唤醒指令时,所述CPU通过HSIC总线接口建立与WIFI模块的连接。S201: When the CPU receives the wake-up instruction, the CPU establishes a connection with the WIFI module through the HSIC bus interface.
由实施例1可知,WIFI模块处于休眠状态时,WIFI模块没有安装WIFI模块驱动文件和WIFI模块固件文件,相当于没有启动WIFI模块。当所述CPU接收到唤醒指令时,WIFI模块将重新从CPU接受并启用WIFI模块驱动文件和WIFI模块固件文件,使得WIFI模块正常工作。避免了采用HSIC总线接口唤醒WIFI模块时,由于WIFI模块之前没有卸载WIFI模块驱动文件和WIFI模块固件文件就断电,当WIFI模块再次上电,CPU将无法识别WIFI模块或WIFI模块无法正常工作的技术问题。It can be seen from Embodiment 1 that when the WIFI module is in the sleep state, the WIFI module does not install the WIFI module driver file and the WIFI module firmware file, which is equivalent to not starting the WIFI module. When the CPU receives the wake-up instruction, the WIFI module will re-accept and enable the WIFI module driver file and the WIFI module firmware file from the CPU, so that the WIFI module works normally. When the WIFI module is used to wake up the WIFI module, the WIFI module is powered off before the WIFI module driver file and the WIFI module firmware file are unloaded. When the WIFI module is powered on again, the CPU will not recognize the WIFI module or the WIFI module cannot work normally. technical problem.
本实施例所提供的一种CPU通过HSIC总线接口控制WIFI模块唤醒的方法,当CPU接收到唤醒指令时,CPU通过HSIC总线接口建立与WIFI模块的连接。即每次接收到唤醒指令时,CPU都要通过HSIC总线接口重新和WIFI模块建立连接,实现了通过HSIC总线接口对WIFI模块的唤醒操作。The CPU provided by the embodiment controls the wakeup of the WIFI module through the HSIC bus interface. When the CPU receives the wakeup command, the CPU establishes a connection with the WIFI module through the HSIC bus interface. That is, each time a wake-up command is received, the CPU must re-establish a connection with the WIFI module through the HSIC bus interface, and realize the wake-up operation of the WIFI module through the HSIC bus interface.
具体的,步骤S201的流程示意图如图4所示,包括:Specifically, the schematic flowchart of step S201 is as shown in FIG. 4, and includes:
S2011:当所述CPU接收到唤醒指令时,所述CPU控制电源模块向所述HSIC总线接口和所述WIFI模块供电,具体包括:当所述CPU接收到唤醒指令时,所述CPU向电源模块发送供电指令;所述电源模块接收到所述供电指令后,向所述HSIC总线接口和所述WIFI模块供电;S2011: When the CPU receives the wake-up instruction, the CPU controls the power module to supply power to the HSIC bus interface and the WIFI module, and specifically includes: when the CPU receives the wake-up instruction, the CPU sends the power module to the power module. Sending a power supply command; after receiving the power supply command, the power module supplies power to the HSIC bus interface and the WIFI module;
S2012:所述WIFI模块通电后,当检测到所述HSIC总线接口为IDLE工作模式时,所述WIFI模块向所述CPU发送连接请求;S2012: After the WIFI module is powered on, when detecting that the HSIC bus interface is in an IDLE working mode, the WIFI module sends a connection request to the CPU;
其中,所述WIFI模块向所述CPU发送连接请求具体包括:所述WIFI模块将所述HSIC总线接口中的选通脉冲信号由高电平修改为低电平;将所述HSIC总线接口中的数据信号由低电平修改为高电平,实现向所述CPU发送连接请求。 The sending, by the WIFI module, the connection request to the CPU specifically includes: the WIFI module modifying a strobe signal in the HSIC bus interface from a high level to a low level; The data signal is modified from a low level to a high level to enable a connection request to be sent to the CPU.
S2013:所述CPU接收所述WIFI模块发来的连接请求,并向所述WIFI模块发送连接确认信息;所述CPU从文件存储模块下载所述WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;S2013: The CPU receives a connection request sent by the WIFI module, and sends connection confirmation information to the WIFI module. The CPU downloads the WIFI module driver file and the WIFI module firmware file from the file storage module and sends the connection to the server. Said WIFI module;
S2014:所述WIFI模块接收所述CPU发来的连接确认信息;所述WIFI模块接收并启用所述CPU发来的WIFI模块驱动文件和WIFI模块固件文件。S2014: The WIFI module receives the connection confirmation information sent by the CPU; the WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU.
实施例3Example 3
本实施例和实施例1属于同一发明构思。本实施例提供了一种CPU通过HSIC总线接口控制WIFI模块休眠的装置,如图5所示,所述装置包括:This embodiment and the embodiment 1 belong to the same inventive concept. The embodiment provides a device for the CPU to control the sleep of the WIFI module through the HSIC bus interface. As shown in FIG. 5, the device includes:
CPU301,设置为和WIFI模块303建立连接,从文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块303;接收休眠指令,使WIFI模块303卸载WIFI模块驱动文件和WIFI模块固件文件;控制电源模块为HSIC总线接口302和WIFI模块303停止供电,使WIFI模块303从工作状态进入休眠状态;The CPU 301 is configured to establish a connection with the WIFI module 303, download the WIFI module driver file and the WIFI module firmware file from the file storage module, and send the WIFI module firmware file to the WIFI module 303; receive the sleep instruction, and enable the WIFI module 303 to uninstall the WIFI module driver file and the WIFI module. The firmware file is used to stop the power supply for the HSIC bus interface 302 and the WIFI module 303, so that the WIFI module 303 enters the sleep state from the working state;
HSIC总线接口302,设置为为所述CPU301和WIFI模块303建立数据连接;The HSIC bus interface 302 is configured to establish a data connection between the CPU 301 and the WIFI module 303;
WIFI模块303,设置为接收并启用所述CPU301发来的WIFI模块驱动文件和WIFI模块固件文件;根据所述CPU301的休眠指令卸载WIFI模块驱动文件和WIFI模块固件文件,从工作状态进入休眠状态。The WIFI module 303 is configured to receive and enable the WIFI module driver file and the WIFI module firmware file sent by the CPU 301; uninstall the WIFI module driver file and the WIFI module firmware file according to the sleep instruction of the CPU 301, and enter a sleep state from the working state.
实施例4Example 4
本实施例和实施例2属于同一发明构思。本实施例提供了一种CPU通过HSIC总线接口控制WIFI模块唤醒的装置,如图6所示,所述装置包括:This embodiment and Embodiment 2 belong to the same inventive concept. The embodiment provides a device for controlling a WIFI module to wake up through a HSIC bus interface. As shown in FIG. 6, the device includes:
CPU401,设置为接收唤醒指令,控制电源模块为HSIC总线接口和WIFI模块供电,并和WIFI模块建立连接;从文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块,使WIFI模块从休眠状态进入唤醒状态;The CPU 401 is configured to receive a wake-up command, and the control power module supplies power to the HSIC bus interface and the WIFI module, and establishes a connection with the WIFI module; downloads the WIFI module driver file and the WIFI module firmware file from the file storage module, and sends the WIFI module to the WIFI module, so that The WIFI module enters the awake state from the sleep state;
HSIC总线接口402,设置为为所述CPU和WIFI模块建立数据连接;The HSIC bus interface 402 is configured to establish a data connection between the CPU and the WIFI module;
WIFI模块403,设置为接收并启用所述CPU发来的WIFI模块驱动文件和WIFI模块固件文件,从休眠状态进入唤醒状态。The WIFI module 403 is configured to receive and enable the WIFI module driver file and the WIFI module firmware file sent by the CPU, and enter the awake state from the sleep state.
实施例5 Example 5
为了解决HSIC总线接口无法实现对WIFI模块进行休眠和唤醒操作的技术问题,本实施例提供了一种CPU通过HSIC总线接口控制WIFI模块的方法,如图7所示,本实施例方法包括:In order to solve the technical problem that the HSIC bus interface cannot perform the sleep and wake-up operation of the WIFI module, the embodiment provides a method for the CPU to control the WIFI module through the HSIC bus interface. As shown in FIG. 7, the method in this embodiment includes:
S501:CPU通过HSIC总线接口建立与WIFI模块的连接;S501: the CPU establishes a connection with the WIFI module through the HSIC bus interface;
HSIC总线接口的传输速率很高,CPU通过HSIC总线接口和WIFI模块连接,能够提高WIFI信号的传输速率。The transmission rate of the HSIC bus interface is very high, and the CPU is connected to the WIFI module through the HSIC bus interface, which can increase the transmission rate of the WIFI signal.
S502:当所述CPU接收到休眠指令时,所述WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件,避免下一次WIFI模块上电后无法正常工作;所述CPU控制电源模块停止向所述HSIC总线接口和所述WIFI模块供电,使得所述WIFI模块进入休眠状态,此时的WIFI模块处于未通电未安装WIFI模块驱动文件和WIFI模块固件文件的状态,保证了下次WIFI模块供电的正常工作,同时节省了电能;S502: When the CPU receives the sleep instruction, the WIFI module uninstalls the WIFI module driver file and the WIFI module firmware file to prevent the WIFI module from working normally after the next WIFI module is powered on; the CPU controls the power module to stop to the HSIC. The bus interface and the WIFI module are powered, so that the WIFI module enters a sleep state. At this time, the WIFI module is in a state where the WIFI module driver file and the WIFI module firmware file are not powered, and the power supply of the next WIFI module is ensured. While saving energy;
S503:当所述CPU接收到唤醒指令时,所述CPU通过所述HSIC总线接口重新建立与所述WIFI模块的连接。S503: When the CPU receives the wake-up instruction, the CPU re-establishes a connection with the WIFI module through the HSIC bus interface.
由步骤S502可知,此时的WIFI模块没有安装WIFI模块驱动文件和WIFI模块固件文件,相当于没有启动WIFI模块的状态。当所述CPU接收到唤醒指令时,WIFI模块将重新从CPU接受并启用WIFI模块驱动文件和WIFI模块固件文件,避免了采用HSIC总线接口唤醒WIFI模块时,无法识别WIFI模块或WIFI模块无法正常工作的技术问题。It can be seen from step S502 that the WIFI module does not have the WIFI module driver file and the WIFI module firmware file installed, which is equivalent to the state in which the WIFI module is not started. When the CPU receives the wake-up instruction, the WIFI module will re-accept and enable the WIFI module driver file and the WIFI module firmware file from the CPU, thereby avoiding that the WIFI module or the WIFI module cannot be recognized when the WIFI module is used to wake up the WIFI module. Technical problem.
本实施例所提供的一种CPU通过HSIC总线接口控制WIFI模块的方法,通过HSIC总线接口使得CPU和WIFI模块建立连接;当CPU接收到休眠指令时,WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件;CPU控制电源模块停止向HSIC总线接口和WIFI模块供电,使得WIFI模块进入休眠状态,此时的HSIC总线接口和WIFI模块处于CPU和WIFI模块建立连接之前的状态;当CPU接收到唤醒指令时,CPU通过HSIC总线接口重新建立与WIFI模块的连接。即每次接收到唤醒指令时,CPU都要通过HSIC总线接口重新和WIFI模块建立连接,这样就能实现通过HSIC总线接口对WIFI模块的正常休眠操作和唤醒操作。The CPU provides a method for controlling the WIFI module through the HSIC bus interface, and the CPU and the WIFI module are connected through the HSIC bus interface; when the CPU receives the sleep command, the WIFI module unloads the WIFI module driver file and the WIFI module firmware. The CPU controls the power module to stop supplying power to the HSIC bus interface and the WIFI module, so that the WIFI module enters a sleep state. At this time, the HSIC bus interface and the WIFI module are in a state before the CPU and the WIFI module establish a connection; when the CPU receives the wake-up command The CPU re-establishes the connection with the WIFI module through the HSIC bus interface. That is, each time a wake-up command is received, the CPU must re-establish a connection with the WIFI module through the HSIC bus interface, so that the normal sleep operation and wake-up operation of the WIFI module through the HSIC bus interface can be realized.
具体的,步骤S501中CPU通过HSIC总线接口建立与WIFI模块的连接包括:Specifically, the establishing, by the CPU, the connection with the WIFI module through the HSIC bus interface in step S501 includes:
S5011:所述WIFI模块通电后,当检测到所述HSIC总线接口为IDLE工作模式时,所述WIFI模块向所述CPU发送连接请求;HSIC总线接口为IDLE工作模式说明 WIFI模块没有与CPU建立连接,所以要在HSIC总线接口为IDLE工作模式发送连接请求;S5011: After the WIFI module is powered on, when detecting that the HSIC bus interface is in an IDLE working mode, the WIFI module sends a connection request to the CPU; the HSIC bus interface is an IDLE working mode description. The WIFI module does not establish a connection with the CPU, so the connection request is sent in the IDIC working mode on the HSIC bus interface;
其中,检测到所述HSIC总线接口为IDLE工作模式具体包括:Wherein, detecting that the HSIC bus interface is an IDLE working mode specifically includes:
HSIC总线接口为IDLE工作模式,此时HSIC总线接口中的选通脉冲信号为高电平;HSIC总线接口中的数据信号为低电平。WIFI模块检测到HSIC总线接口中的选通脉冲信号为高电平;HSIC总线接口中的数据信号为低电平就知道了HSIC总线接口处于IDLE工作模式。The HSIC bus interface is in IDLE mode. At this time, the strobe signal in the HSIC bus interface is high; the data signal in the HSIC bus interface is low. The WIFI module detects that the strobe signal in the HSIC bus interface is high; the data signal in the HSIC bus interface is low to know that the HSIC bus interface is in the IDLE mode of operation.
所述WIFI模块向所述CPU发送连接请求具体包括:The sending, by the WIFI module, the connection request to the CPU specifically includes:
所述WIFI模块将所述HSIC总线接口中的选通脉冲信号由高电平修改为低电平;将所述HSIC总线接口中的数据信号由低电平修改为高电平,实现向所述CPU发送连接请求。The WIFI module modifies the strobe signal in the HSIC bus interface from a high level to a low level; and changes a data signal in the HSIC bus interface from a low level to a high level to achieve the The CPU sends a connection request.
S5012:当所述CPU接收到所述WIFI模块发来的连接请求时,所述CPU向所述WIFI模块发送连接确认信息;所述CPU从文件存储模块下载所述WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;S5012: when the CPU receives the connection request sent by the WIFI module, the CPU sends connection confirmation information to the WIFI module; the CPU downloads the WIFI module driver file and the WIFI module firmware from the file storage module. The file is sent to the WIFI module;
其中,文件存储模块和CPU连接,设置为存放WIFI模块驱动文件和WIFI模块固件文件等系统常用的文件。The file storage module and the CPU are connected, and are set to store files commonly used by the system such as the WIFI module driver file and the WIFI module firmware file.
S5013:所述WIFI模块接收所述CPU发来的连接确认信息;WIFI模块接收并启用CPU发来的所述WIFI模块驱动文件和WIFI模块固件文件,通过启用CPU发来的WIFI模块驱动文件和WIFI模块固件文件实现WIFI模块的正常工作。S5013: The WIFI module receives the connection confirmation information sent by the CPU; the WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU, and enables the WIFI module driver file and the WIFI sent by the CPU. The module firmware file implements the normal operation of the WIFI module.
步骤S502中当所述CPU接收到休眠指令时,所述WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件,所述CPU控制电源模块停止向所述HSIC总线接口和所述WIFI模块供电,使得所述WIFI模块进入休眠状态包括:In step S502, when the CPU receives the sleep instruction, the WIFI module uninstalls the WIFI module driver file and the WIFI module firmware file, and the CPU control power module stops supplying power to the HSIC bus interface and the WIFI module, so that The WIFI module enters a sleep state, including:
S5021:当所述CPU接收到休眠指令时,所述CPU向所述WIFI模块发送休眠请求;休眠指令可以是用户发送,也可以是定时发送。S5021: When the CPU receives the sleep instruction, the CPU sends a sleep request to the WIFI module; the sleep instruction may be sent by the user, or may be sent periodically.
S5022:所述WIFI模块接收所述CPU发来的所述休眠请求,根据所述休眠请求卸载所述WIFI模块驱动文件和WIFI模块固件文件,并向所述CPU发送休眠确认信息。因本实施例采用HSIC总线接口和WIFI模块连接,要实现WIFI模块的休眠就必然需要对HSIC总线接口停止供电;由于HSIC总线接口不支持热插拔,HSIC总线接 口在停止供电后再次供电将无法唤醒已经启用WIFI模块驱动文件和WIFI模块固件文件的WIFI模块。因此,此时将WIFI模块驱动文件和WIFI模块固件文件卸载,能够在下一次WIFI模块上电时,为HSIC总线接口正常与WIFI模块连接做好准备。S5022: The WIFI module receives the hibernation request sent by the CPU, uninstalls the WIFI module driver file and the WIFI module firmware file according to the hibernation request, and sends hibernation confirmation information to the CPU. Because the HSIC bus interface and the WIFI module are connected in this embodiment, it is necessary to stop the power supply of the HSIC bus interface to realize the sleep of the WIFI module; since the HSIC bus interface does not support hot plugging, the HSIC bus is connected. If the port is powered again after stopping the power supply, it will not be able to wake up the WIFI module that has enabled the WIFI module driver file and the WIFI module firmware file. Therefore, at this time, the WIFI module driver file and the WIFI module firmware file are unloaded, and the next time the WIFI module is powered on, the HSIC bus interface is properly connected with the WIFI module.
S5023:当所述CPU接收所述WIFI模块发来的休眠确认信息时,所述CPU向电源模块发送停止供电指令;S5023: When the CPU receives the sleep confirmation information sent by the WIFI module, the CPU sends a power supply stop command to the power module.
S5024:所述电源模块接收到所述停止供电指令后,停止向所述HSIC总线接口和所述WIFI模块供电。S5024: After receiving the power-off command, the power module stops supplying power to the HSIC bus interface and the WIFI module.
由于此时的WIFI模块已经卸载了WIFI模块驱动文件和WIFI模块固件文件,此时停止为WIFI模块供电不会影响WIFI模块的正常唤醒,同时节省了电能。Since the WIFI module has uninstalled the WIFI module driver file and the WIFI module firmware file at this time, stopping the power supply for the WIFI module at this time does not affect the normal wakeup of the WIFI module, and saves power.
步骤S503中当所述CPU接收到唤醒指令时,所述CPU通过所述HSIC总线接口重新建立与所述WIFI模块的连接包括:In step S503, when the CPU receives the wake-up instruction, the CPU re-establishes the connection with the WIFI module through the HSIC bus interface, including:
S5031:当所述CPU接收到唤醒指令时,所述CPU控制电源模块向所述HSIC总线接口和所述WIFI模块供电,具体包括:S5031: When the CPU receives the wake-up instruction, the CPU controls the power module to supply power to the HSIC bus interface and the WIFI module, and specifically includes:
S50311:当所述CPU接收到唤醒指令时,所述CPU向电源模块发送供电指令;S50311: when the CPU receives the wake-up instruction, the CPU sends a power supply instruction to the power module;
S50312:所述电源模块接收到所述供电指令后,向所述HSIC总线接口和所述WIFI模块供电。S50312: After receiving the power supply command, the power module supplies power to the HSIC bus interface and the WIFI module.
S5032:所述WIFI模块通电后,当检测到所述HSIC总线接口为IDLE工作模式时,所述WIFI模块向所述CPU发送连接请求;S5032: After the WIFI module is powered on, when detecting that the HSIC bus interface is in an IDLE working mode, the WIFI module sends a connection request to the CPU;
S5033:所述CPU接收所述WIFI模块发来的连接请求,并向所述WIFI模块发送连接确认信息;所述CPU从文件存储模块下载所述WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;S5033: The CPU receives a connection request sent by the WIFI module, and sends connection confirmation information to the WIFI module. The CPU downloads the WIFI module driver file and the WIFI module firmware file from the file storage module and sends the connection to the server. Said WIFI module;
S5034:所述WIFI模块接收所述CPU发来的连接确认信息;所述WIFI模块接收并启用所述CPU发来的WIFI模块驱动文件和WIFI模块固件文件。S5034: The WIFI module receives the connection confirmation information sent by the CPU; the WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU.
至此,实现了采用HSIC总线接口连接WIFI模块时,WIFI模块的正常休眠和唤醒。At this point, the normal sleep and wake-up of the WIFI module is realized when the WIC module is connected by using the HSIC bus interface.
实施例6 Example 6
以下通过一个具体场景对本发明进行详细说明。The present invention will be described in detail below through a specific scenario.
首先,因为采用HSIC总线接口连接到WIFI模块,那么WIFI模块的工作过程必须完全遵循HSIC总线接口协议,如图8所示。当采用本实施例的CPU通过HSIC总线接口连接WIFI模块的方式的装置启动后,HSIC总线接口会处于IDLE工作模式(即HSIC总线接口的选通脉冲信号strobe为高,数据信号data为低),这时WIFI模块上电启动,当WIFI模块检测到HSIC总线接口处于IDLE工作模式时会发出连接请求,即将strobe置为低电平、data置为高电平。如果CPU检测到HSIC总线接口此时的strobe置为低电平、data置为高电平,则连接请求发送成功,此时WIFI模块和HSIC总线接口建立连接。然后,CPU通过文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件,并发送给WIFI模块。WIFI模块启用WIFI模块驱动文件和WIFI模块固件文件,使得WIFI模块正常工作。这就是WIFI模块的启动和工作过程。First, because the HSIC bus interface is used to connect to the WIFI module, the working process of the WIFI module must fully follow the HSIC bus interface protocol, as shown in Figure 8. When the device of the embodiment in which the CPU is connected to the WIFI module through the HSIC bus interface is started, the HSIC bus interface is in the IDLE working mode (ie, the strobe signal strobe of the HSIC bus interface is high, and the data signal data is low). At this time, the WIFI module is powered on. When the WIFI module detects that the HSIC bus interface is in the IDLE working mode, it will issue a connection request, that is, the strobe is set to a low level, and the data is set to a high level. If the CPU detects that the HSIC bus interface is set to low level and data is set high, the connection request is sent successfully. At this time, the WIFI module and the HSIC bus interface establish a connection. Then, the CPU downloads the WIFI module driver file and the WIFI module firmware file through the file storage module, and sends the WIFI module firmware file to the WIFI module. The WIFI module enables the WIFI module driver file and the WIFI module firmware file to make the WIFI module work normally. This is the startup and working process of the WIFI module.
其次,如果需要进入休眠状态,那么所述装置的所有总线上挂载的各个模块都要进入休眠状态,WIFI模块也不例外。但是由于HSIC总线接口本身不具有热插拔的功能,即如果WIFI模块从休眠状态(和HSIC总线接口断开)到再次唤醒(再次和HSIC总线接口进行通信),此时CPU无法检测到WIFI模块。因此,本实施例在所述装置要进入休眠状态时卸载WIFI模块驱动文件和WIFI模块固件文件,断开WIFI模块以及HSIC总线接口的供电,让HSIC总线接口和WIFI模块的状态在休眠时重新回到第一次上电前的状态。当所述装置需要从休眠状态唤醒时,重新按照第一次WIFI模块上电和工作的过程,实现WIFI模块的正常工作,如图9所示。Secondly, if it is necessary to enter the sleep state, then all modules mounted on all the buses of the device must enter a sleep state, and the WIFI module is no exception. However, since the HSIC bus interface itself does not have the function of hot plugging, that is, if the WIFI module is from the sleep state (disconnected from the HSIC bus interface) to wake up again (communicate with the HSIC bus interface again), the CPU cannot detect the WIFI module at this time. . Therefore, in this embodiment, when the device enters the sleep state, the WIFI module driver file and the WIFI module firmware file are uninstalled, the power supply of the WIFI module and the HSIC bus interface is disconnected, and the state of the HSIC bus interface and the WIFI module is returned again during sleep. The state before the first power-on. When the device needs to wake up from the sleep state, the normal operation of the WIFI module is implemented according to the process of powering up and working the first WIFI module, as shown in FIG. 9.
S901:HSIC总线接口通电,处于IDLE工作状态;同时,WIFI模块也上电,当WIFI模块发现HSIC总线接口处于IDLE工作状态时,修改HSIC总线接口的选通脉冲信号和数据信号的电平,使得HSIC总线接口处于工作状态;此时,CPU检测到HSIC总线接口处于工作状态,且检测出HSIC总线接口的另一端是WIFI模块,则CPU从文件系统下载对应该WIFI模块的WIFI模块驱动文件和WIFI模块固件文件并发送给WIFI模块;S901: The HSIC bus interface is energized and is in the IDLE working state; at the same time, the WIFI module is also powered on, and when the WIFI module finds that the HSIC bus interface is in the IDLE working state, the level of the strobe signal and the data signal of the HSIC bus interface is modified, so that The HSIC bus interface is in working state; at this time, the CPU detects that the HSIC bus interface is in working state, and detects that the other end of the HSIC bus interface is a WIFI module, the CPU downloads the WIFI module driver file corresponding to the WIFI module and the WIFI from the file system. The module firmware file is sent to the WIFI module;
S902:WIFI模块接收并启用CPU发来的WIFI模块驱动文件和WIFI模块固件文件,使得WIFI模块正常工作;并通过HSIC总线接口实现CPU和WIFI模块的数据交互;S902: The WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU, so that the WIFI module works normally; and realizes data interaction between the CPU and the WIFI module through the HSIC bus interface;
S903:当CPU接收到休眠指令时,向WIFI模块发送休眠请求,如果此时WIFI模块正在传输文件,不能停止数据传输,则进入步骤S904;否则,进入步骤S905;S903: When the CPU receives the sleep instruction, send a sleep request to the WIFI module, if the WIFI module is transmitting the file at this time, and can not stop the data transmission, proceed to step S904; otherwise, proceed to step S905;
S904:WIFI模块继续正常工作; S904: The WIFI module continues to work normally;
S905:WIFI模块根据休眠指令卸载WIFI模块驱动文件和WIFI模块固件文件,并告知CPU此时WIFI模块的状态;CPU通知电源模块停止为HSIC总线接口和WIFI模块供电,WIFI模块处于上电前的状态,即没有启用WIFI模块驱动文件和WIFI模块固件文件。S905: The WIFI module uninstalls the WIFI module driver file and the WIFI module firmware file according to the sleep instruction, and informs the CPU of the state of the WIFI module at this time; the CPU notifies the power module to stop supplying power to the HSIC bus interface and the WIFI module, and the WIFI module is in a state before power-on. That is, the WIFI module driver file and the WIFI module firmware file are not enabled.
S906:当CPU接收到休眠指令时,若WIFI模块不需要唤醒,则进入步骤S907;否则,返回步骤S901;S906: When the CPU receives the sleep instruction, if the WIFI module does not need to wake up, then proceeds to step S907; otherwise, returns to step S901;
S907:WIFI模块保持休眠状态。S907: The WIFI module remains in a sleep state.
这样做就解决了如下技术问题:第一、不会出现WIFI模块和HSIC总线接口无法建立连接或WIFI模块无法正常工作的问题;第二、WIFI模块在休眠时完全断电,不会产生电流,这能够使所述装置在休眠状态下电流更小,有助于提升电池的续航能力。This solves the following technical problems: First, there is no problem that the WIFI module and the HSIC bus interface cannot be established or the WIFI module cannot work normally; second, the WIFI module is completely powered off during sleep, and no current is generated. This enables the device to have a smaller current during sleep and helps to improve the battery's endurance.
本发明的方法实施步骤如下:The steps of the method of the present invention are as follows:
(1)按照HSIC总线接口的协议以及WIFI模块对应的上电时序实现HSIC总线接口以及WIFI模块的整个上电过程,两者之间能够建立连接,达到连接状态;(1) According to the protocol of the HSIC bus interface and the power-on sequence corresponding to the WIFI module, the HSIC bus interface and the entire power-on process of the WIFI module are implemented, and a connection can be established between the two to achieve a connection state;
(2)加载WIFI模块对应的WIFI模块驱动文件和WIFI模块固件文件,目的是配置好WIFI模块的各项参数,这样WIFI模块能够正常工作,实现WIFI模块和HSIC总线接口的数据通信;(2) Load the WIFI module driver file corresponding to the WIFI module and the WIFI module firmware file, the purpose is to configure the parameters of the WIFI module, so that the WIFI module can work normally, and realize the data communication between the WIFI module and the HSIC bus interface;
(3)当所述装置需要休眠时,将WIFI模块对应的WIFI模块驱动文件和WIFI模块固件文件卸载掉,最后断开WIFI模块以及HSIC总线接口相关的所有供电,整机就能进入休眠状态;(3) When the device needs to sleep, the WIFI module driver file corresponding to the WIFI module and the WIFI module firmware file are unloaded, and finally all the power supplies related to the WIFI module and the HSIC bus interface are disconnected, and the whole machine can enter the sleep state;
(4)当整机从休眠到唤醒时,WIFI模块和HSIC总线接口的状态与第一次上电前保持一致,然后在软件上模拟出第一次上电时的工作过程,实现WIFI模块唤醒后能够正常工作,并实现和HSIC总线接口的数据通信。(4) When the whole machine is from sleep to wake-up, the state of the WIFI module and the HSIC bus interface is the same as before the first power-on, and then the working process of the first power-on is simulated on the software to realize wake-up of the WIFI module. After that, it can work normally and realize data communication with the HSIC bus interface.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。 In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, such as: multiple units or components may be combined, or Can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or distributed to multiple network units; Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing module, or each unit may be separately used as one unit, or two or more units may be integrated into one unit; the above integration The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to the program instructions. The foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing storage medium includes: a mobile storage device, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk. A medium that can store program code.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.
工业实用性Industrial applicability
如上所述,本发明实施例提供的CPU通过HSIC总线接口控制WIFI模块的方法,具有以下有益效果:每次接收到唤醒指令时,CPU都要通过HSIC总线接口重新和WIFI模块建立连接,这样就能实现通过HSIC总线接口对WIFI模块的正常休眠操作和唤醒操作。 As described above, the method for controlling the WIFI module by the CPU of the embodiment of the present invention has the following beneficial effects: each time a wake-up command is received, the CPU must re-establish a connection with the WIFI module through the HSIC bus interface, so that The normal sleep operation and wake-up operation of the WIFI module through the HSIC bus interface can be realized.

Claims (11)

  1. 一种CPU通过HSIC总线接口控制WIFI模块休眠的方法,所述方法包括:A method for controlling a sleep of a WIFI module by a CPU through an HSIC bus interface, the method comprising:
    CPU通过HSIC总线接口建立与WIFI模块的连接;The CPU establishes a connection with the WIFI module through the HSIC bus interface;
    当所述CPU接收到休眠指令时,所述WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件;所述CPU控制电源模块停止向所述HSIC总线接口和所述WIFI模块供电,使得所述WIFI模块进入休眠状态。When the CPU receives the sleep instruction, the WIFI module uninstalls the WIFI module driver file and the WIFI module firmware file; the CPU controls the power module to stop supplying power to the HSIC bus interface and the WIFI module, so that the WIFI module Go to sleep.
  2. 根据权利要求1所述的方法,其中,所述CPU通过HSIC总线接口建立与WIFI模块的连接包括:The method of claim 1, wherein the establishing, by the CPU, the connection to the WIFI module via the HSIC bus interface comprises:
    所述WIFI模块通电后,当检测到所述HSIC总线接口为IDLE工作模式时,所述WIFI模块向所述CPU发送连接请求;After the WIFI module is powered on, when detecting that the HSIC bus interface is in an IDLE working mode, the WIFI module sends a connection request to the CPU;
    当所述CPU接收到所述WIFI模块发来的连接请求时,所述CPU向所述WIFI模块发送连接确认信息;所述CPU从文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;When the CPU receives the connection request sent by the WIFI module, the CPU sends connection confirmation information to the WIFI module; the CPU downloads the WIFI module driver file and the WIFI module firmware file from the file storage module and sends the connection The WIFI module;
    所述WIFI模块接收所述CPU发来的连接确认信息;WIFI模块接收并启用CPU发来的所述WIFI模块驱动文件和WIFI模块固件文件。The WIFI module receives the connection confirmation information sent by the CPU; the WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU.
  3. 根据权利要求2所述的方法,其中,所述WIFI模块向所述CPU发送连接请求包括:The method of claim 2, wherein the sending, by the WIFI module, the connection request to the CPU comprises:
    所述WIFI模块将所述HSIC总线接口中的选通脉冲信号由高电平修改为低电平;将所述HSIC总线接口中的数据信号由低电平修改为高电平,实现向所述CPU发送连接请求。The WIFI module modifies the strobe signal in the HSIC bus interface from a high level to a low level; and changes a data signal in the HSIC bus interface from a low level to a high level to achieve the The CPU sends a connection request.
  4. 根据权利要求1所述的方法,其中,所述当所述CPU接收到休眠指令时,所述WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件包括:The method according to claim 1, wherein when the CPU receives the sleep instruction, the WIFI module uninstalling the WIFI module driver file and the WIFI module firmware file includes:
    当所述CPU接收到休眠指令时,所述CPU向所述WIFI模块发送休眠请求;When the CPU receives the sleep instruction, the CPU sends a sleep request to the WIFI module;
    所述WIFI模块接收所述CPU发来的所述休眠请求,根据所述休眠请求卸载所述WIFI模块驱动文件和WIFI模块固件文件,并向所述CPU发送休眠确认信息。 The WIFI module receives the hibernation request sent by the CPU, uninstalls the WIFI module driver file and the WIFI module firmware file according to the hibernation request, and sends hibernation confirmation information to the CPU.
  5. 根据权利要求4所述的方法,其中,所述CPU控制电源模块停止向所述HSIC总线接口和所述WIFI模块供电包括:The method of claim 4, wherein the CPU controlling the power module to stop supplying power to the HSIC bus interface and the WIFI module comprises:
    当所述CPU接收所述WIFI模块发来的休眠确认信息时,所述CPU向电源模块发送停止供电指令;When the CPU receives the sleep confirmation information sent by the WIFI module, the CPU sends a power supply stop command to the power module;
    所述电源模块接收到所述停止供电指令后,停止向所述HSIC总线接口和所述WIFI模块供电。After receiving the power supply stop command, the power module stops supplying power to the HSIC bus interface and the WIFI module.
  6. 一种CPU通过HSIC总线接口控制WIFI模块唤醒的方法,所述方法包括:A method for controlling a wakeup of a WIFI module by a CPU through an HSIC bus interface, the method comprising:
    当CPU接收到唤醒指令时,所述CPU通过HSIC总线接口建立与WIFI模块的连接。When the CPU receives the wake-up instruction, the CPU establishes a connection with the WIFI module through the HSIC bus interface.
  7. 根据权利要求6所述的方法,其中,所述当CPU接收到唤醒指令时,所述CPU通过HSIC总线接口建立与WIFI模块的连接包括:The method according to claim 6, wherein when the CPU receives the wake-up instruction, the CPU establishes a connection with the WIFI module through the HSIC bus interface, including:
    当所述CPU接收到唤醒指令时,所述CPU控制电源模块向所述HSIC总线接口和所述WIFI模块供电;When the CPU receives the wake-up instruction, the CPU controls the power module to supply power to the HSIC bus interface and the WIFI module;
    所述WIFI模块通电后,当检测到所述HSIC总线接口为IDLE工作模式时,所述WIFI模块向所述CPU发送连接请求;After the WIFI module is powered on, when detecting that the HSIC bus interface is in an IDLE working mode, the WIFI module sends a connection request to the CPU;
    所述CPU接收所述WIFI模块发来的连接请求,并向所述WIFI模块发送连接确认信息;所述CPU从文件存储模块下载所述WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;Receiving, by the CPU, a connection request sent by the WIFI module, and sending connection confirmation information to the WIFI module; the CPU downloading the WIFI module driver file and the WIFI module firmware file from the file storage module, and sending the WIFI module to the WIFI Module
    所述WIFI模块接收所述CPU发来的连接确认信息;所述WIFI模块接收并启用所述CPU发来的WIFI模块驱动文件和WIFI模块固件文件。The WIFI module receives the connection confirmation information sent by the CPU; the WIFI module receives and enables the WIFI module driver file and the WIFI module firmware file sent by the CPU.
  8. 根据权利要求7所述的方法,其中,所述当所述CPU接收到唤醒指令时,所述CPU控制电源模块向所述HSIC总线接口和所述WIFI模块供电包括:The method of claim 7, wherein the CPU controlling the power module to supply power to the HSIC bus interface and the WIFI module when the CPU receives the wake-up instruction comprises:
    当所述CPU接收到唤醒指令时,所述CPU向电源模块发送供电指令;When the CPU receives the wake-up instruction, the CPU sends a power supply command to the power module;
    所述电源模块接收到所述供电指令后,向所述HSIC总线接口和所述WIFI模块供电。After receiving the power supply command, the power module supplies power to the HSIC bus interface and the WIFI module.
  9. 根据权利要求7所述的方法,其中,所述WIFI模块向所述CPU发送连接请求包括: The method of claim 7, wherein the sending, by the WIFI module, the connection request to the CPU comprises:
    所述WIFI模块将所述HSIC总线接口中的选通脉冲信号由高电平修改为低电平;将所述HSIC总线接口中的数据信号由低电平修改为高电平,实现向所述CPU发送连接请求。The WIFI module modifies the strobe signal in the HSIC bus interface from a high level to a low level; and changes a data signal in the HSIC bus interface from a low level to a high level to achieve the The CPU sends a connection request.
  10. 一种CPU通过HSIC总线接口控制WIFI模块休眠的装置,所述装置包括:A device for controlling a sleep of a WIFI module by a CPU through an HSIC bus interface, the device comprising:
    CPU,设置为和WIFI模块建立连接,从文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块;接收休眠指令,使WIFI模块卸载WIFI模块驱动文件和WIFI模块固件文件;控制电源模块为HSIC总线接口和WIFI模块停止供电,使WIFI模块从工作状态进入休眠状态;The CPU is configured to establish a connection with the WIFI module, download the WIFI module driver file and the WIFI module firmware file from the file storage module and send the WIFI module to the WIFI module; receive the sleep instruction, and enable the WIFI module to uninstall the WIFI module driver file and the WIFI module firmware file; The control power module stops supplying power to the HSIC bus interface and the WIFI module, so that the WIFI module enters a sleep state from a working state;
    HSIC总线接口,设置为为所述CPU和WIFI模块建立数据连接;An HSIC bus interface, configured to establish a data connection for the CPU and the WIFI module;
    WIFI模块,设置为接收并启用所述CPU发来的WIFI模块驱动文件和WIFI模块固件文件;根据所述CPU的休眠指令卸载WIFI模块驱动文件和WIFI模块固件文件,从工作状态进入休眠状态。The WIFI module is configured to receive and enable the WIFI module driver file and the WIFI module firmware file sent by the CPU; and uninstall the WIFI module driver file and the WIFI module firmware file according to the sleep instruction of the CPU, and enter a sleep state from the working state.
  11. 一种CPU通过HSIC总线接口控制WIFI模块唤醒的装置,所述装置包括:A device for controlling a wakeup of a WIFI module by a CPU through an HSIC bus interface, the device comprising:
    CPU,设置为接收唤醒指令,控制电源模块为HSIC总线接口和WIFI模块供电,并和WIFI模块建立连接;从文件存储模块下载WIFI模块驱动文件和WIFI模块固件文件并发送给所述WIFI模块,使WIFI模块从休眠状态进入唤醒状态;The CPU is configured to receive the wake-up command, and the control power module supplies power to the HSIC bus interface and the WIFI module, and establishes a connection with the WIFI module; downloads the WIFI module driver file and the WIFI module firmware file from the file storage module and sends the WIFI module to the WIFI module, so that the CPU The WIFI module enters the awake state from the sleep state;
    HSIC总线接口,设置为为所述CPU和WIFI模块建立数据连接;An HSIC bus interface, configured to establish a data connection for the CPU and the WIFI module;
    WIFI模块,设置为接收并启用所述CPU发来的WIFI模块驱动文件和WIFI模块固件文件,从休眠状态进入唤醒状态。 The WIFI module is configured to receive and enable the WIFI module driver file and the WIFI module firmware file sent by the CPU, and enter the awake state from the sleep state.
PCT/CN2015/076581 2014-09-24 2015-04-14 Method for cpu to control wifi module via hsic bus interface WO2016045363A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410495572.1A CN105446912A (en) 2014-09-24 2014-09-24 Method and device of CPU (Central Processing Unit) for connecting WIFI module through HSIC (High Speed Inter-chip) bus interface
CN201410495572.1 2014-09-24

Publications (1)

Publication Number Publication Date
WO2016045363A1 true WO2016045363A1 (en) 2016-03-31

Family

ID=55557134

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076581 WO2016045363A1 (en) 2014-09-24 2015-04-14 Method for cpu to control wifi module via hsic bus interface

Country Status (2)

Country Link
CN (1) CN105446912A (en)
WO (1) WO2016045363A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109891944B (en) * 2017-01-19 2020-09-11 华为技术有限公司 Method and device for establishing data communication
CN107168924B (en) * 2017-03-28 2021-04-23 珠海市魅族科技有限公司 Control method and device of functional chip
CN109901696B (en) * 2019-03-07 2023-08-22 成都国科微电子有限公司 USB integrated circuit power saving method and USB integrated circuit

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913377A (en) * 2005-08-09 2007-02-14 乐金电子(昆山)电脑有限公司 Method for recovering a network of a wlan device and equipment thereof
CN102739634A (en) * 2011-03-09 2012-10-17 苹果公司 Host device suspending communication link to client device based on client device notification
CN102799550A (en) * 2012-06-21 2012-11-28 华为终端有限公司 Awakening and hot-plugging methods and equipment based on high speed inter-chip (HSIC)
US20130290572A1 (en) * 2011-03-09 2013-10-31 Apple Inc. Client device configuration based on information stored by host device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1913377A (en) * 2005-08-09 2007-02-14 乐金电子(昆山)电脑有限公司 Method for recovering a network of a wlan device and equipment thereof
CN102739634A (en) * 2011-03-09 2012-10-17 苹果公司 Host device suspending communication link to client device based on client device notification
US20130290572A1 (en) * 2011-03-09 2013-10-31 Apple Inc. Client device configuration based on information stored by host device
CN102799550A (en) * 2012-06-21 2012-11-28 华为终端有限公司 Awakening and hot-plugging methods and equipment based on high speed inter-chip (HSIC)

Also Published As

Publication number Publication date
CN105446912A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
KR101832953B1 (en) Remote wakeup of application processor of mobile device
JP5340335B2 (en) Information processing device
KR101729106B1 (en) Mobile device
US8862916B2 (en) Wireless control of power sockets based on host and signal quality
CN102778943B (en) Condition control method, device and portable terminal device
WO2019104947A1 (en) System-on-chip, universal serial bus master device, system and awaking method
WO2013123863A1 (en) Sleep method, wakeup method and mobile terminal device
US7051236B2 (en) Wirelessly network-connected, battery-powered information handling system featuring prevention of data corruption after wake-up by a network event
WO2015062415A1 (en) Method for controlling power supply and wireless terminal
US9128891B2 (en) Method, mobile terminal and computer program product for sharing storage device
US9678561B2 (en) Information processing apparatus
KR20100070465A (en) Arraratus and method for supporting selective suspend mode of usb network-device
JP2015170292A (en) semiconductor device
CN105045599A (en) Television and computer integrated machine and method for realizing remote startup and shutdown control of same
US8219842B2 (en) Computer system and method for energy-saving operation of a computer system
WO2016045363A1 (en) Method for cpu to control wifi module via hsic bus interface
CN107515668B (en) Control method and device
JP2009524126A (en) Mobile computing device and data packet receiving method thereof
US9729335B2 (en) Method for remotely accessing data and local apparatus using the method
US8825917B2 (en) Method, system and device for enabling USB data card with USB flash drive function to hibernate
CN110943350A (en) WIFI smart jack, based on WIFI smart jack's computer watchdog system
JP5627337B2 (en) Information device, control method thereof, and program
TWI469053B (en) Electronic device and startup method therefore
CN111522762B (en) Transmission interface circuit
JP2012200924A (en) Printer and power supply control method therefor

Legal Events

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

Ref document number: 15844526

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15844526

Country of ref document: EP

Kind code of ref document: A1