CN112256335A - Drive file loading method and device, storage medium and electronic equipment - Google Patents

Drive file loading method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN112256335A
CN112256335A CN202011029158.3A CN202011029158A CN112256335A CN 112256335 A CN112256335 A CN 112256335A CN 202011029158 A CN202011029158 A CN 202011029158A CN 112256335 A CN112256335 A CN 112256335A
Authority
CN
China
Prior art keywords
wifi module
file
scanning
driving
mode
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.)
Granted
Application number
CN202011029158.3A
Other languages
Chinese (zh)
Other versions
CN112256335B (en
Inventor
翁箭峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN202011029158.3A priority Critical patent/CN112256335B/en
Publication of CN112256335A publication Critical patent/CN112256335A/en
Application granted granted Critical
Publication of CN112256335B publication Critical patent/CN112256335B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a loading method and device of a drive file, a storage medium and electronic equipment, and belongs to the field of computers. The loading method of the driver file comprises the following steps: the method comprises the steps that when a tracker needs to load a drive file of a WiFi module, a current loading mode is determined, when the loading mode is a scanning mode, a scanning drive file of the WiFi module is obtained, and the WiFi module is driven based on the scanning drive file; the scanning driving file is used for driving the WiFi module to execute a scanning function. Therefore, the tracker in the application loads different driving modes according to different working requirements of the WiFi module, the problem of overlarge power consumption caused by loading all driving files in the related technology is solved, the power consumption of the tracker is saved, and the standby time is prolonged.

Description

Drive file loading method and device, storage medium and electronic equipment
Technical Field
The invention relates to the field of computers, in particular to a method and a device for loading a drive file, a storage medium and electronic equipment.
Background
Currently, WiFi (wireless Fidelity) positioning refers to a positioning method that measures one or more surrounding WiFi wireless signals by using a tracker (tracker) to calculate the geographical position of the tracker. WiFi assisted positioning based trackers have become increasingly popular, mostly for wearing to pets, children or the elderly for location tracking, as well as for tracking valuables (e.g., jewelry, antiques, etc.). In order to ensure that the tracker is convenient to wear, the prior art limits the volume and the shape of the tracker, so that the tracker cannot meet the existing requirements in the aspect of battery endurance, and therefore, how to optimally design the software and the hardware of the tracker to save the power consumption of the tracker and improve the endurance is a problem to be solved urgently at present.
Disclosure of Invention
The embodiment of the application provides a loading method and device of a drive file, a storage medium and electronic equipment, which can save the power consumption of a tracker and increase the standby time. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for loading a driver file, including:
when a driver file of a WiFi module needs to be loaded, determining a current loading mode;
when the loading mode is a scanning mode, acquiring a scanning drive file of the WiFi module;
driving the WiFi module based on the scanning driving file; the scanning driving file is used for driving the WiFi module to execute a scanning function.
In a second aspect, an embodiment of the present application provides an apparatus for loading a driver file, where the apparatus includes:
the judgment module is used for determining the current loading mode when the drive file of the WiFi module needs to be loaded;
the acquisition module is used for acquiring a scanning drive file of the WiFi module when the loading mode is a scanning mode;
the driving module is used for driving the WiFi module based on the scanning driving file; the scanning driving file is used for driving the WiFi module to execute a scanning function.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
when the method, the device, the storage medium and the electronic equipment for loading the drive file work, when the drive file of the WiFi module needs to be loaded, the current loading mode is determined, when the loading mode is the scanning mode, the scanning drive file of the WiFi module is obtained, the WiFi module is driven based on the scanning drive file, and the scanning drive file is used for driving the WiFi module to execute the scanning function. The tracker reduces the problem of overlarge power consumption caused by loading all the drive files in the related technology by loading different drive modes to different working requirements of the WiFi module, saves the power consumption of the tracker and increases the standby time.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a communication system architecture provided in an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for loading a driver file according to an embodiment of the present application;
fig. 3 is another schematic flowchart of a method for loading a driver file according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a device for loading driver files according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The following description refers to the accompanying drawings in which like numerals refer to the same or similar elements throughout the different views, unless otherwise specified. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The embodiment of the present application can be applied to a wireless communication system, and it should be noted that the wireless communication system mentioned in the embodiment of the present application includes, but is not limited to, a fourth generation Mobile communication (4G) Mobile communication system and an Enhanced Mobile broadband (eMBB) of a next generation Mobile communication system, a URLLC (Massive Machine-Type Communications, mtc).
In the embodiment of the present application, the Terminal device (Terminal device) includes, but is not limited to, a Mobile Station (MS), a Mobile Terminal device (Mobile Terminal), a Mobile phone (Mobile phone), a handset (handset), a portable device (portable equipment), and the like, and the Terminal device may communicate with one or more core networks through a Radio Access Network (RAN), for example, the Terminal device may be a Mobile phone (or referred to as a "cellular" phone), a computer with a wireless communication function, and the Terminal device may also be a portable, pocket, hand-held, computer-embedded, or vehicle-mounted Mobile device or device.
Fig. 1 is a schematic diagram of a communication system architecture provided in the present application.
Referring to fig. 1, a communication system 01 includes a network device 101, a tracker 102, an Access Point (AP) device 103, and a terminal device 104; when the communication system 01 includes a core network, the network device 101 may also be connected to the core network. The network device 101 may also communicate with an Internet Protocol (IP) network 200, such as the Internet (Internet), a private IP network, or other data network. The network device 101 serves the in-coverage tracker 102 and the terminal device 104. For example, referring to fig. 1, a network device 101 provides wireless access to a terminal device 104 and a tracker 102 within the coverage of the network device 101. In addition, the tracker 102 and the AP device 103 may also communicate with each other.
The network device 101 may be a device for communicating with a terminal device and a tracker. The network device may be a relay station, an access point, a vehicle-mounted device, etc. In a terminal-to-terminal (D2D) communication system, the network Device may also be a terminal Device that functions as a base station.
The tracker 102 may be configured to collect tracking information and report the tracking information to a device of the terminal device. The tracker may include various wearable devices, cut-in devices, handheld devices, vehicle-mounted devices with positioning communication functions, and various forms of user equipment, etc. The tracker may also have photographing, camera shooting, and recording functions, etc.
The AP device 103 may be used as a wireless switch of a wireless network, also called a wireless access node, which is a bridge for communication between the wireless network and a wired network, and is a core device for establishing a wireless local area network, through which the tracker 102 and the terminal device 104 within the AP signal coverage area can communicate with each other.
In the following method embodiments, for convenience of description, only the execution subject of each step is described as a tracker.
The method for loading the driver file according to the embodiment of the present application will be described in detail below with reference to fig. 2 to 3.
Referring to fig. 2, a flowchart of a method for loading a driver file is provided in an embodiment of the present application. The method may comprise the steps of:
s201, when the driver file of the WiFi module needs to be loaded, determining a current loading mode.
Generally, a WiFi module refers To an embedded module that converts a serial port or Time To Live (TTL) level To comply with a WiFi wireless network communication standard, and is also called a serial WiFi module, and belongs To an internet of things transmission layer and a built-in wireless network protocol stack. A driver file is a special program file added to an operating system that contains information about hardware devices that enable a computer to communicate with the corresponding devices. Different hardware corresponds to different drive files, and the tracker needs to load the corresponding drive files before controlling the WiFi module.
S202, when the loading mode is the scanning mode, obtaining a scanning driving file of the WiFi module.
Generally, the loading mode includes a normal mode and a scanning mode, the WiFi module is normally connected to the hotspot for data transmission in the normal mode, the WiFi module only scans frame signal information broadcasted by the hotspot in the scanning mode, and the tracker does not load a driver file with functions of authentication, association and the like. The tracker determines different loading modes by determining whether an embedded subscriber Identity Module (eSIM) card is active, for example: if the eSIM card is not activated, selecting a normal mode for the tracker loading mode; if the eSIM card is judged to be activated, the tracker loading mode selects the scanning mode. The tracker obtains a driver file that loads the scan pattern.
S203, driving the WiFi module based on the scanning driving file.
Generally, the tracker loads the acquired driver file of the scanning mode, and the WiFi module will only execute the scanning function. The WiFi module scans only the frame signal information broadcasted by the hot spot in the scanning mode, for example: service Set Identifier (SSID) of a wireless Access Point (Access Point, AP), Media Access Control Address (MAC), channel information, signal strength, and other indication parameters.
As can be seen from the above, when the tracker needs to load the driver file of the WiFi module, the tracker determines a current loading mode, and when the loading mode is a scanning mode, acquires the scanning driver file of the WiFi mode, and drives the WiFi mode based on the scanning driver file, where the scanning driver file is used to drive the WiFi mode to execute a scanning function. The tracker reduces the problem of overlarge power consumption caused by loading all the drive files in the related technology by loading different drive modes to different working requirements of the WiFi module, saves the power consumption of the tracker and increases the standby time.
Referring to fig. 3, another flow chart of a method for loading a driver file is provided in an embodiment of the present application. The loading method of the driver file can comprise the following steps:
s301, whether the eSIM card is activated or not is detected.
Generally, an eSIM refers to a card for data transmission that is semi-permanently installed in a tracker, and is required to be activated before data transmission using the eSIM card, unlike a Subscriber Identity Module (SIM). The tracker can detect whether the eSIM card has been activated by performing a data transfer test using the eSIM data transfer module, for example: if the tracker is detected to be incapable of performing data transmission through the eSIM card, determining that the eSIM card is not activated; if it is detected that the tracker can perform data transmission through the eSIM card, it is determined that the eSIM card has been activated.
S302, when the WiFi module is detected to be powered on, determining that the driver file of the WiFi module needs to be loaded.
Generally, the module power-on means that the tracker controls the working state of the WiFi module through a level signal, for example: the WiFi module stops working after receiving the low level signal, and the WiFi module starts working after receiving the high level signal. The tracker determines that the WiFi module is detected to receive the power-on level signal information, then determines a drive file required for controlling the WiFi module to work, and controls the working state of the WiFi module by loading the drive file. The driving files comprise a scanning driving file scanned by the WiFi module, an authentication driving file authenticated by the WiFi module, an association driving file associated by the WiFi module, an interface driving file controlled by the WiFi module to be in on-off control, and the like.
S303, determining that the loading mode is a normal mode, and acquiring all drive files of the WiFi module.
In general, the normal mode refers to a mode in which the tracker can normally perform networking for data transmission by using the WiFi module, and includes all functions of the WiFi module. For example: the functions of the WiFi module in the normal mode include a scanning function, an authentication function, an association function, and the like. The tracker determines that the loading mode is the normal mode by determining that the eSIM card is not activated. The WiFi module needs to determine all drive files of the WiFi module when the normal mode is realized and all function trackers are included, the trackers firstly find out a drive file directory, inquire all files in the directory and determine all drive files related to the loading normal mode.
S304, driving the WiFi module based on the driving file.
Generally, after the tracker determines the driver files of the WiFi module, all the driver files are run to complete the configuration of the WiFi module, and the WiFi module will operate in a normal mode.
S305, downloading the activation parameter file to the operator server.
Generally, an activation parameter file refers to file information used to activate an eSIM, such as: a letter of promise, a key, an activation code, etc. After the tracker performs data transmission through a normal mode of the WiFi module, the tracker can read information carried by the eSIM card, and automatically downloads a relevant activation parameter file on an operator server based on a set program. The operators include Unicom, Mobile and Telecommunications, etc.
S306, activating the eSIM card based on the activation parameter file, and indicating the WiFi module to stop working.
Generally, a tracker parses a downloaded activation parameter file, and then configures and verifies the tracker based on the parsed activation parameter file, so that an eSIM card can perform data transmission. After detecting that the eSIM card is activated, the tracker sends an instruction to close the WiFi module, and then data transmission operations such as reporting frame signal information are all executed through the eSIM card. In the embodiment of the application, the tracker only needs to load the normal mode once to activate the eSIM card, the subsequent WiFi module only needs to load the scanning mode to perform the auxiliary positioning, and the normal mode of the WiFi module is used to activate the eSIM card.
And S307, determining to load the drive file of the WiFi module when receiving the starting completion indication signal from the WiFi module.
Generally, the indication signal is a signal indicating an operation state of the WiFi module, such as a start signal, a stop signal, an interface channel control signal, and the like. The tracker can make corresponding control according to the indication signal after receiving the indication signal. And after receiving the WiFi module determination signal, the tracker determines to load the driver file of the WiFi module from all the driver files.
S308, when the loading mode is the scanning mode, acquiring a scanning driving file of the WiFi module.
Generally, the tracker determines that the loading mode requiring the WiFi module is the scan mode by determining that the eSIM card has been activated. The scan mode is a mode in which the WiFi module only executes a scan function, and the function of the WiFi module in the scan mode does not include other functions such as an authentication function and an association function. The tracker inquires the drive file directory and only loads the scanning drive file of the WiFi module, and does not load the authentication drive file of the WiFi module and other drive files such as the associated drive file performed by the WiFi module.
S309, driving the WiFi module based on the scanning driving file.
Generally, after the tracker determines the driver file of the WiFi module, only the scan driver file is run to complete the configuration of the WiFi module, and the WiFi module will operate in a scan mode.
S310, receiving frame signal information broadcast by the AP wireless access point, and reporting the frame signal information to a positioning server.
Generally, the scanning function of the tracker is to scan the AP hotspot to obtain related information, and the geographical location of the tracker can be determined according to the related information of the AP. The tracker broadcasts frame signal information by scanning to the APs, such as: the tracker analyzes the frame signal information to obtain parameters such as SSID, MAC, channel information and signal strength of the AP, and then reports the parameters to the location server, the location server determines the location of each tracker through calculating and analyzing the information, and the location server sends the location information to the terminal equipment, so that WiFi positioning can be realized through the scanning mode of the tracker. Since the tracker scans the frame signal information broadcast by the AP through different channels of the WiFi module, after one channel is scanned, it will switch to the next channel. The tracker can scan the frame signal information of the AP from the channel based on the channel number saved last time when the tracker performs the scanning mode to assist the positioning according to the channel number saved last time and the frame signal information of the AP saved last time, so that the scanning result can be obtained quickly, the consumption of electric quantity is reduced, and the endurance time of the tracker is prolonged.
And S311, indicating the WiFi module to stop working.
Generally, the tracker controls the WiFi module to stop working after reporting to the location server.
When the scheme of the embodiment of the application is executed, the tracker detects whether the eSIM card is activated, if the eSIM card is not activated, the WiFi module loading mode is determined to be the normal mode, all the drive files are loaded, the activation parameter file is downloaded to the server to activate the eSIM card, and the WiFi module stops working. And if the tracker detects that the eSIM card is activated, determining that the loading mode is a scanning mode, only loading a scanning drive file, acquiring frame signal information broadcasted by the AP wireless access point by using the WiFi module, storing the current channel number, and stopping the work of the WiFi module. The tracker reduces the problem of overlarge power consumption caused by loading all the drive files in the related technology by loading different drive modes to different working requirements of the WiFi module, saves the power consumption of the tracker and increases the standby time.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 4, a schematic structural diagram of a device for loading a driver file according to an exemplary embodiment of the present application is shown, and hereinafter referred to as a control device 4. The control device 4 may be implemented as all or part of the terminal by software, hardware or a combination of both. The method comprises the following steps:
the judgment module is used for judging the current loading mode when the drive file of the WiFi module needs to be loaded;
the acquisition module is used for acquiring a scanning drive file of the WiFi module when the loading mode is a scanning mode;
the driving module is used for driving the WiFi module based on the scanning driving file; the scanning driving file is used for driving the WiFi module to execute a scanning function.
Optionally, the determining module 401 further includes:
the loading unit is used for acquiring all the drive files of the WiFi module when the loading mode is a normal mode; and driving the WiFi module based on all the driving files of the WiFi module.
The activation unit is used for downloading the activation parameter file to the operator server; activating an eSIM card based on the activation parameter file so as to perform data transmission through the eSIM card; and indicating the WiFi module to stop working.
A determination unit for detecting whether the eSIM card has been activated; if the eSIM card is not activated, determining that the loading mode is a normal mode; if the eSIM card is activated, determining that the loading mode is a scanning mode; when the WiFi module is detected to be powered on, determining that a drive file of the WiFi module needs to be loaded; or when receiving a drive completion indication signal from the WiFi module, determining to load a drive file of the WiFi module; determining a drive file directory; and inquiring the scanning drive file in the drive file directory based on the file identifier corresponding to the scanning mode.
Optionally, the driving module 403 further includes:
the scanning unit is used for receiving frame signal information broadcast by the AP wireless access point; reporting the frame signal information to a positioning server; wherein the frame signal information includes one or more of an SSID service set identifier, a MAC media access control address, a channel number, and a signal strength indication of the AP; and indicating the WiFi module to stop working.
The embodiment of the present application and the method embodiments of fig. 2 to 3 are based on the same concept, and the technical effects brought by the embodiment are also the same, and the specific process may refer to the description of the method embodiments of fig. 2 to 3, and will not be described again here.
The device 4 may be a field-programmable gate array (FPGA), an application-specific integrated chip, a system on chip (SoC), a Central Processing Unit (CPU), a Network Processor (NP), a digital signal processing circuit, a Micro Controller Unit (MCU), or a Programmable Logic Device (PLD) or other integrated chips.
When the scheme of the embodiment of the application is executed, the tracker detects whether the eSIM card is activated, if the eSIM card is not activated, the WiFi module loading mode is determined to be the normal mode, all the drive files are loaded, the activation parameter file is downloaded to the server to activate the eSIM card, and the WiFi module stops working. And if the tracker detects that the eSIM card is activated, determining that the loading mode is a scanning mode, only loading a scanning drive file, acquiring frame signal information broadcasted by the AP wireless access point by using the WiFi module, storing the current channel number, and stopping the work of the WiFi module. The tracker reduces the problem of overlarge power consumption caused by loading all the drive files in the related technology by loading different drive modes to different working requirements of the WiFi module, saves the power consumption of the tracker and increases the standby time.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are suitable for being loaded by a processor and executing the above method steps, and a specific execution process may refer to specific descriptions of the embodiment shown in fig. 2 or fig. 3, which is not described herein again.
The present application further provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the template control method according to the above embodiments.
Please refer to fig. 5, which is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 5, the electronic device 5 may include: at least one processor 501, at least one network interface 504, a user interface 503, memory 505, at least one communication bus 502.
Wherein a communication bus 502 is used to enable connective communication between these components.
The user interface 503 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 503 may also include a standard wired interface and a wireless interface.
The network interface 504 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Processor 501 may include one or more processing cores, among other things. The processor 501 connects various parts throughout the terminal 500 using various interfaces and lines, and performs various functions of the terminal 500 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 505, and calling data stored in the memory 505. Optionally, the processor 501 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 501 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 501, but may be implemented by a single chip.
The Memory 505 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 505 includes a non-transitory computer-readable medium. The memory 505 may be used to store instructions, programs, code sets, or instruction sets. The memory 505 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 505 may alternatively be at least one memory device located remotely from the processor 501. As shown in fig. 5, the memory 505, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a loading application of a driver file.
In the electronic device 500 shown in fig. 5, the user interface 503 is mainly used as an interface for providing input for a user, and acquiring data input by the user; the processor 501 may be configured to call a loading application of the driver file stored in the memory 505, and specifically perform the following operations:
when a driver file of a WiFi module needs to be loaded, determining a current loading mode;
when the loading mode is a scanning mode, acquiring a scanning drive file of the WiFi module;
driving the WiFi module based on the scanning driving file; the scanning driving file is used for driving the WiFi module to execute a scanning function.
In an embodiment, after the processor 501 executes the determining of the current loading mode when the driver file of the WiFi module needs to be loaded, the method further includes:
when the loading mode is a normal mode, acquiring all drive files of the WiFi module;
and driving the WiFi module based on all the driving files of the WiFi module.
In an embodiment, after the processor 501 executes the driving of the WiFi module based on all the driver files of the WiFi module, the method further includes:
downloading an activation parameter file to an operator server;
activating an eSIM card based on the activation parameter file so as to perform data transmission through the eSIM card;
and indicating the WiFi module to stop working.
In one embodiment, the determining, by the processor 501, the current loading mode when the driver file of the WiFi module needs to be loaded includes:
detecting whether the eSIM card is activated;
if the eSIM card is not activated, determining that the loading mode is a normal mode;
determining that the loading mode is a scanning mode if the eSIM card is activated.
In an embodiment, before the processor 501 executes the determining of the current loading mode when the driver file of the WiFi module needs to be loaded, the method further includes:
when the WiFi module is detected to be powered on, determining that a drive file of the WiFi module needs to be loaded; or
And when receiving a drive completion indication signal from the WiFi module, determining to load a drive file of the WiFi module.
In one embodiment, after the processor 501 executes the driving of the WiFi module based on the scan driver file, the method further includes:
receiving frame signal information broadcasted by an AP wireless access point;
reporting the frame signal information to a positioning server; wherein the frame signal information includes one or more of an SSID service set identifier, a MAC media access control address, a channel number, and a signal strength indication of the AP;
and indicating the WiFi module to stop working.
In an embodiment, the obtaining, by the processor 501, the scan driver file of the WiFi module when the loading mode is the scan mode includes:
determining a drive file directory;
and inquiring the scanning drive file in the drive file directory based on the file identifier corresponding to the scanning mode.
The technical concept of the embodiment of the present application is the same as that of fig. 2 or fig. 3, and the specific process may refer to the method embodiment of fig. 2 or fig. 3, which is not described herein again.
In the embodiment of the application, the tracker detects whether the eSIM card is activated, determines that the loading mode of the WiFi module is a normal mode if the eSIM card is not activated, loads all the driver files, downloads the activation parameter file to the server to activate the eSIM card, and stops the WiFi module from working. And if the tracker detects that the eSIM card is activated, determining that the loading mode is a scanning mode, only loading a scanning drive file, acquiring frame signal information broadcasted by the AP wireless access point by using the WiFi module, storing the current channel number, and stopping the work of the WiFi module. The tracker reduces the problem of overlarge power consumption caused by loading all the drive files in the related technology by loading different drive modes to different working requirements of the WiFi module, saves the power consumption of the tracker and increases the standby time.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.

Claims (10)

1. A method for loading a driver file, the method comprising:
when a driver file of a WiFi module needs to be loaded, determining a current loading mode;
when the loading mode is a scanning mode, acquiring a scanning drive file of the WiFi module;
driving the WiFi module based on the scanning driving file; the scanning driving file is used for driving the WiFi module to execute a scanning function.
2. The method according to claim 1, wherein after determining the current loading mode when the driver file of the WiFi module needs to be loaded, the method further comprises:
when the loading mode is a normal mode, acquiring all drive files of the WiFi module;
and driving the WiFi module based on all the driving files of the WiFi module.
3. The method of claim 2, wherein after driving the WiFi module based on all driver files of the WiFi module, further comprising:
downloading an activation parameter file to an operator server;
activating an eSIM card based on the activation parameter file so as to perform data transmission through the eSIM card;
and indicating the WiFi module to stop working.
4. The method of claim 1, wherein determining the current loading mode when the driver file of the WiFi module needs to be loaded comprises:
detecting whether the eSIM card is activated;
if the eSIM card is not activated, determining that the loading mode is a normal mode;
determining that the loading mode is a scanning mode if the eSIM card is activated.
5. The method of claim 1, wherein before determining the current loading mode when the driver file of the WiFi module needs to be loaded, the method further comprises:
when the WiFi module is detected to be powered on, determining that a drive file of the WiFi module needs to be loaded; or
And when receiving a drive completion indication signal from the WiFi module, determining to load a drive file of the WiFi module.
6. The method of claim 1, wherein after driving the WiFi module based on the scan driver file, further comprising:
receiving frame signal information broadcasted by an AP wireless access point;
reporting the frame signal information to a positioning server; wherein the frame signal information includes one or more of an SSID service set identifier, a MAC media access control address, a channel number, and a signal strength indication of the AP;
and indicating the WiFi module to stop working.
7. The method according to claim 1, wherein the obtaining the scan driver file of the WiFi module when the loading mode is the scan mode comprises:
determining a drive file directory;
and inquiring the scanning drive file in the drive file directory based on the file identifier corresponding to the scanning mode.
8. A device for loading a driver file, comprising:
the judgment module is used for determining the current loading mode when the drive file of the WiFi module needs to be loaded;
the acquisition module is used for acquiring a scanning drive file of the WiFi module when the loading mode is a scanning mode;
the driving module is used for driving the WiFi module based on the scanning driving file; the scanning driving file is used for driving the WiFi module to execute a scanning function.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 7.
10. An electronic device, comprising: a memory and a processor; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 7.
CN202011029158.3A 2020-09-25 2020-09-25 Method and device for loading drive file, storage medium and electronic equipment Active CN112256335B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011029158.3A CN112256335B (en) 2020-09-25 2020-09-25 Method and device for loading drive file, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011029158.3A CN112256335B (en) 2020-09-25 2020-09-25 Method and device for loading drive file, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112256335A true CN112256335A (en) 2021-01-22
CN112256335B CN112256335B (en) 2023-06-27

Family

ID=74233152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011029158.3A Active CN112256335B (en) 2020-09-25 2020-09-25 Method and device for loading drive file, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112256335B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116032A (en) * 2021-11-22 2022-03-01 康佳集团股份有限公司 WiFi module hybrid adaptive processing method, device, terminal and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193188A1 (en) * 2004-02-28 2005-09-01 Huang Evan S. Method and apparatus for operating a host computer from a portable apparatus
CN103384157A (en) * 2013-03-14 2013-11-06 上海汉枫电子科技有限公司 Low-power-consumption embedded type WIFI module
CN104572173A (en) * 2014-12-02 2015-04-29 惠州Tcl移动通信有限公司 WIFI (Wireless Fidelity) driver loading method based on mobile terminal, WIFI driver loading system based on mobile terminal and mobile terminal
WO2015192604A1 (en) * 2014-06-19 2015-12-23 京东方科技集团股份有限公司 Dual-sided touch control display panel, device and driving method
CN106506862A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 A kind of working mode of mobile terminal changing method and mobile terminal
CN106775833A (en) * 2016-11-28 2017-05-31 青岛海信移动通信技术股份有限公司 device driver loading method, terminal and system
WO2018103451A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Fast wireless fidelity connection method and apparatus
CN111082991A (en) * 2019-12-19 2020-04-28 深圳市创维软件有限公司 Automatic adaptation method of set top box WiFi channel, server and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193188A1 (en) * 2004-02-28 2005-09-01 Huang Evan S. Method and apparatus for operating a host computer from a portable apparatus
CN103384157A (en) * 2013-03-14 2013-11-06 上海汉枫电子科技有限公司 Low-power-consumption embedded type WIFI module
WO2015192604A1 (en) * 2014-06-19 2015-12-23 京东方科技集团股份有限公司 Dual-sided touch control display panel, device and driving method
CN104572173A (en) * 2014-12-02 2015-04-29 惠州Tcl移动通信有限公司 WIFI (Wireless Fidelity) driver loading method based on mobile terminal, WIFI driver loading system based on mobile terminal and mobile terminal
CN106775833A (en) * 2016-11-28 2017-05-31 青岛海信移动通信技术股份有限公司 device driver loading method, terminal and system
CN106506862A (en) * 2016-12-07 2017-03-15 广东欧珀移动通信有限公司 A kind of working mode of mobile terminal changing method and mobile terminal
WO2018103451A1 (en) * 2016-12-07 2018-06-14 广东欧珀移动通信有限公司 Fast wireless fidelity connection method and apparatus
CN111082991A (en) * 2019-12-19 2020-04-28 深圳市创维软件有限公司 Automatic adaptation method of set top box WiFi channel, server and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116032A (en) * 2021-11-22 2022-03-01 康佳集团股份有限公司 WiFi module hybrid adaptive processing method, device, terminal and medium

Also Published As

Publication number Publication date
CN112256335B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US10142845B2 (en) Network connection method and apparatus, and computer storage medium
CN108476060B (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device
US8818342B2 (en) Target service apparatus and method based on device to device direct communication
EP2302971B1 (en) Protocol processing method and apparatus for multi-sim terminal
CN111343699B (en) Icon display method and device, storage medium and electronic equipment
JP7477589B2 (en) Method and terminal device for establishing a hotspot connection - Patents.com
KR100735664B1 (en) Apparatus and method for providing service status using access class barred list in mobile communication system
CN110933704B (en) Network communication method, device, storage medium and electronic equipment
CN107852762A (en) Manage method, bluetooth master and the device of bluetooth connection
CN106961676B (en) Network searching method, device and medium
CN111356209B (en) Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment
CN112272394B (en) Cell switching method, device, storage medium and electronic equipment
CN111918256A (en) Intelligent device network distribution method and device based on Bluetooth and storage medium
US20230145738A1 (en) Information transmission method and communication device
KR20190106323A (en) Method for transmitting carrier combination for carrier aggregation and electronic device therefor
CN107222937B (en) Data transmission method, device and terminal
CN114423057A (en) Channel switching method and device, AP (access point) equipment and storage medium
CN112256335B (en) Method and device for loading drive file, storage medium and electronic equipment
CN110602707A (en) Method and terminal for connecting wireless network
CN108337719B (en) Wireless network scanning method and device, terminal equipment and storage medium
CN110493771B (en) Data network connection method, device, storage medium and terminal equipment
CN112448779B (en) Intelligent terminal equipment and method for carrying out talkback communication
CN110502280B (en) Android operating system starting method and device, storage medium and terminal
KR20210056177A (en) Electronic device for providing dual connectivy and method for operating thereof
CN106815077B (en) Data processing method based on intelligent device architecture and intelligent device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant