CN113835783A

Method and device for controlling starting of Wi-Fi network card and terminal equipment

Abstract

A method, device and terminal device for controlling the activation of a Wi-Fi network card of a wireless network communication technology are used to solve the problem that the terminal device in the prior art cannot realize long-distance communication through Wi-Fi service. The method is applied to a terminal device including a first interface for connecting an external WiFi network card and a built-in WiFi network card. The allowable communication distance of the external WiFi network card is greater than that of the built-in WiFi network card. The method includes detecting the first interface, the first interface is used to connect the external Wi-Fi network card, and when it is determined that the external Wi-Fi network card is connected to the first interface, the external Wi-Fi network card is activated. By detecting the first interface, it is determined that the external WiFi network card is connected to the first interface, and then the external WiFi network card is activated to ensure that the terminal device realizes long-distance communication through the WiFi service.

CN113835783A, drawing sheet 1
Sheet 1 of 1

Term

15 yearsto projected expiry

Projected expiry 24 September 2041, counted from filing; an application has no term until it is granted.

  1. Priority and filed
  2. Published
  3. Today
  4. Projected expiry

10 claims: 2 independent, 8 dependent

  1. 1
    一种控制无线通信技术Wi-Fi网卡启动的方法,其特征在于,应用于终端设备,所述 终端设备包括用于连接外接Wi-Fi网卡的第一接□和内置Wi-Fi网卡,所述外接Wi-Fi网卡 允许的通信距离大于所述内置Wi-Fi网卡允许的通信距离; 所述方法包括: 检测所述第一接口,所述第一接口用于连接所述外接Wi -Fi网卡; 确定所述外接Wi -Fi网卡与所述第一接口连接,启动所述外接Wi -Fi网卡。
  2. 2
    如权利要求1所述的方法,其特征在于,所述确定所述外接Wi-Fi网卡与所述第一接 口连接,包括: 获取到第一事件,确定所述外接Wi -Fi网卡与所述第一接口连接,所述第一事件用于指 示所述外接Wi-Fi网卡插入所述第一接口 ; 所述启动所述外接Wi -Fi网卡之前,还包括: 关闭所述内置Wi-Fi网卡。
  3. 3
    如权利要求1或2所述的方法,其特征在于,所述终端设备还包括框架层和第一内核 层,所述第一内核层包括第一硬件抽象层、第一驱动和第一专用应用程序,所述第一内核层 与所述外接Wi-Fi网卡对应; 所述启动所述外接Wi -Fi网卡,包括: 所述框架层接收到第一事件,根据所述第一事件生成第一标记,其中,所述第一标记用 于指示开启所述外接Wi -Fi网卡对应的第一内核层; 所述框架层向所述第一硬件抽象层发送所述第一标记; 所述第一硬件抽象层根据接收到的所述第一标记启动所述第一专用应用程序,并向第 一专用应用程序发送所述第一标记; 所述第一专用应用程序根据接收到的所述第一标记加载所述第一驱动,并向所述第一 驱动发送所述第一标记; 所述第一驱动根据所述第一标记开启所述外接Wi-Fi网卡。
  4. 4
    如权利要求1所述的方法,其特征在于,所述启动所述外接Wi -Fi网卡之后,还包括: 确定所述外接Wi-Fi网卡从所述第一接口移除,启动所述内置Wi-Fi网卡。
  5. 5
    如权利要求4所述的方法,其特征在于,所述终端设备还包括框架层、第二内核层和 所述内置Wi-Fi网卡,所述第二内核层包括第二硬件抽象层、第二驱动和第二专用应用程 序,所述第二内核层与所述内置Wi-Fi网卡对应; 所述启动所述内置Wi-Fi网卡,包括: 所述框架层接收到第二事件,根据所述第二事件生成第二标记,所述第二事件用于标 识所述外接Wi-Fi网卡从所述第一接口移除,所述第二标记用于指示开启所述外接Wi-Fi网 卡对应的第二内核层; 所述框架层向所述第二硬件抽象层发送所述第二标记; 所述第二硬件抽象层根据接收到的所述第二标记启动所述第二专用应用程序,并向第 二专用应用程序发送所述第二标记; 所述第二专用应用程序根据接收到的所述第二标记加载所述第二驱动,并向所述第二 驱动发送所述第二标记; 所述第二驱动根据所述第二标记开启所述内置Wi -Fi网卡。
  6. 6
    如权利要求1所述的方法,其特征在于,所述启动所述外接Wi -Fi网卡之后,还包括: 显示第一界面,所述第一界面用于将所述外接Wi -Fi网卡切换为所述内置Wi -Fi网卡。
  7. 7
    如权利要求1或2所述的方法,其特征在于,所述第一接口通过OTG数据线连接所述外 接Wi-Fi网卡。
  8. 8
    一种控制装置,其特征在于,应用于终端设备,所述终端设备包括用于连接外接Wi Fi网卡的第一接□和内置Wi-Fi网卡,所述外接Wi-Fi网卡允许的通信距离大于所述内置 Wi-Fi网卡允许的通信距离;所述控制装置包括: 检测单元,用于检测所述第一接口,所述第一接口用于连接所述外接Wi -Fi网卡; 处理单元,用于确定所述外接Wi-Fi网卡与所述第一接口连接,并启动所述外接Wi-Fi 网卡。
  9. 9
    一种终端设备,其特征在于,包括内置Wi-Fi网卡、用于连接外接Wi-Fi网卡的第一接 □和处理器,所述外接Wi-Fi网卡允许的通信距离大于所述内置Wi-Fi网卡允许的通信距 离; 所述处理器,用于调用所述存储器中存储的计算机程序,按照获得的程序执行如权利 要求1至7任一项权利要求所述的方法。
  10. 10
    一种计算机可读存储介质,其特征在于,所述存储介质存储有程序,当所述程序在 计算机上运行时,使得计算机实现执行权利要求1至7中任一项所述的方法。
Independent claims10