CN112256335B - Method and device for loading drive file, storage medium and electronic equipment - Google Patents

Method and device for loading drive file, storage medium and electronic equipment Download PDF

Info

Publication number
CN112256335B
CN112256335B CN202011029158.3A CN202011029158A CN112256335B CN 112256335 B CN112256335 B CN 112256335B CN 202011029158 A CN202011029158 A CN 202011029158A CN 112256335 B CN112256335 B CN 112256335B
Authority
CN
China
Prior art keywords
wifi module
driving
scanning
file
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.)
Active
Application number
CN202011029158.3A
Other languages
Chinese (zh)
Other versions
CN112256335A (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 method and a device for loading a driving file, a storage medium and electronic equipment, and belongs to the field of computers. The loading method of the driving file comprises the following steps: when a driving file of a WiFi module needs to be loaded, the tracker determines a current loading mode, and when the loading mode is a scanning mode, the tracker acquires a scanning driving file of the WiFi module and drives 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. Therefore, the tracker in the application loads different driving modes according to different working demands of the WiFi module, the problem of overlarge power consumption caused by loading all driving files in the related technology is reduced, the power consumption of the tracker is saved, and the standby time is prolonged.

Description

Method and device for loading drive file, storage medium and electronic equipment
Technical Field
The present invention relates to the field of computers, and in particular, to a method and apparatus for loading a driving file, a storage medium, and an electronic device.
Background
Currently, wireless Fidelity (WiFi) positioning refers to a positioning method that uses a tracker (tracker) to measure wireless signals of one or more WiFi around, and calculates a geographic position of the tracker. Trackers based on WiFi assisted positioning have become increasingly popular, being used for position tracking for pets, children or elderly people, and also for tracking valuables (e.g. jewelry, antiques, etc.). In order to ensure that the tracker is convenient to wear, the prior art can limit the volume and the appearance of the tracker, so that the tracker cannot meet the existing requirements in terms of battery endurance, and therefore, how to optimally design software and hardware of the tracker so as to save the power consumption of the tracker and improve the endurance is a problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a loading method and device of a driving file, a storage medium and electronic equipment, which can save power consumption of a tracker and increase standby time. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a method for loading a driving file, including:
when a driving file of the WiFi module needs to be loaded, determining a current loading mode;
when the loading mode is a scanning mode, acquiring a scanning driving 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 a loading device for driving a file, where the device includes:
the judging module is used for determining a current loading mode when the driving file of the WiFi module needs to be loaded;
the acquisition module is used for acquiring the scanning driving 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-described 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 technical scheme provided by some embodiments of the present application has the beneficial effects that at least includes:
when the loading method, the device, the storage medium and the electronic equipment work, the current loading mode is determined when the driving file of the WiFi module is required to be loaded, and when the loading mode is a scanning mode, the scanning driving file of the WiFi module is obtained, and the WiFi module is driven based on the scanning driving file, wherein the scanning driving file is used for driving the WiFi module to execute the scanning function. The tracker is through loading different drive modes to the different work demands of wiFi module, reduces the too big problem of consumption that loads all drive files and cause in the correlation technique, saves the consumption of tracker, increases 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 that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a communication system architecture according to an embodiment of the present application;
fig. 2 is a flow chart of a method for loading a driving file according to an embodiment of the present application;
FIG. 3 is another flow chart of a method for loading a driving file according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a loading device for driving files according to an embodiment of the present application;
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 apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
In designing the drawings, the following description refers to the same or similar elements in different drawings unless indicated otherwise. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the description of the present application, it should 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 terms in this application will be understood by those of ordinary skill in the art in a specific context. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The embodiments of the present application may be applied to a wireless communication system, and it should be noted that the wireless communication system mentioned in the embodiments of the present application includes, but is not limited to, a fourth generation mobile communication (4th generation mobile networks,4G) mobile communication system and three application scenario enhanced mobile broadband (Enhanced Mobile Broad Band, eMBB), URLLC, and Massive Machine-communication (mctc) of a next generation mobile communication system.
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 (Mobile Terminal), a Mobile phone (Mobile Terminal), a handset (handset), and a portable device (portable equipment), and the Terminal device may communicate with one or more core networks via a radio access network (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-built-in, or vehicle-mounted Mobile device or apparatus.
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 comprises a core network, the network device 101 may also be connected to the core network. The network device 101 may also be in communication with an internet protocol (Internet Protocol, IP) network 200, such as the internet, a private IP network, or other data network, among others. Network device 101 serves an in-coverage tracker 102 and terminal device 104. For example, referring to fig. 1, a network device 101 provides wireless access to terminal devices 104 and trackers 102 within the coverage area 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, an in-vehicle device, etc. In a terminal-to-terminal (D2D) communication system, the network Device may also be a terminal Device functioning as a base station.
The tracker 102 may be used to collect tracking information and report it to the terminal device. The tracker may include various wearable devices, hand-in devices, hand-held devices, vehicle-mounted devices, and various forms of user devices, etc. with positioning communication functions. 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 constructing a wireless lan, through which the tracker 102 and the terminal device 104 in the coverage area of an AP signal may communicate as if they are each other.
In the following method embodiments, for convenience of explanation, only the execution subject of each step is described as a tracker.
The method for loading the driving file according to the embodiment of the present application will be described in detail with reference to fig. 2 to 3.
Referring to fig. 2, a flow chart of a method for loading a driving file is provided in an embodiment of the present application. The method may comprise the steps of:
s201, when a driving file of the WiFi module needs to be loaded, determining a current loading mode.
Generally, the WiFi module is an embedded module that converts a serial port or Time To Live (TTL) level into a signal according with a WiFi wireless network communication standard, which is also called a serial port WiFi module, and belongs To an internet of things transmission layer, and a wireless network protocol stack is built in. A driver file refers to a special program file added to an operating system that contains information about the hardware device that enables the computer to communicate with the corresponding device. Different hardware corresponds to different driving files, and the tracker needs to load the corresponding driving files before controlling the WiFi module.
S202, when the loading mode is a scanning mode, acquiring a scanning driving file of the WiFi module.
In general, the loading mode includes a normal mode and a scanning mode, the WiFi module is normally connected to the hotspot in the normal mode to perform data transmission, the WiFi module only scans the frame signal information broadcast by the hotspot in the scanning mode, and the tracker does not load the driving files with functions of authentication, association and the like. The tracker determines different loading modes by determining whether an embedded subscriber identity module (EmbeddedSubscriber Identity Module, eSIM) card is active, for example: if the eSIM card is not activated, the tracker loading mode selects a normal mode; if the eSIM card is judged to be activated, the tracker loading mode selects a scanning mode. The tracker acquires a drive file that loads the scan pattern.
And S203, driving the WiFi module based on the scanning driving file.
Generally, the tracker loads the acquired driving file of the scanning mode, and the WiFi module will only execute the scanning function. The tracker only scans the frame signal information broadcast by the hot spot by the WiFi module in the scanning mode, for example: an indication parameter such as a service set identifier (Service Set Identifier, SSID), a media Access control address (Media Access Control Address, MAC), channel information, and signal strength of a wireless Access Point (AP).
From the above, it can be seen that when the tracker needs to load the driving file of the WiFi module, the tracker determines the current loading mode, and when the loading mode is the scanning mode, obtains the scanning driving file of the WiFi mode, and drives the WiFi mode based on the scanning driving file, where the scanning driving file is used to drive the WiFi mode to execute the scanning function. The tracker is through loading different drive modes to the different work demands of wiFi module, reduces the too big problem of consumption that loads all drive files and cause in the correlation technique, saves the consumption of tracker, increases standby time.
Referring to fig. 3, another flow chart of a method for loading a driving file is provided in an embodiment of the present application. The loading method of the driving file may include the steps of:
s301, detecting whether the eSIM card is already activated.
In general, eSIM refers to a card that is semi-permanently loaded into a tracker for data transfer, unlike a subscriber identity module (Subscriber Identity Module, SIM), which needs to be activated before data transfer can take place using the eSIM card. The tracker can detect whether an eSIM card has been activated by performing a data transfer test using an eSIM data transfer module, for example: if the tracker is detected to be incapable of carrying out data transmission through the eSIM card, determining that the eSIM card is not activated; if the tracker is detected to be capable of transmitting data through the eSIM card, determining that the eSIM card is activated.
S302, determining that a driving file of the WiFi module needs to be loaded when the WiFi module is detected to be powered on.
In general, module power-up refers to that the tracker controls the working state of the WiFi module through a level signal, for example: the WiFi module receives the low-level signal to stop working, and the WiFi module receives the high-level signal to start working. The tracker determines that the WiFi module receives the power-on level signal information, then determines a driving file required by controlling the working of the WiFi module, and subsequently controls the working state of the WiFi module by loading the driving file. The driving files comprise a scanning driving file for scanning by the WiFi module, an authentication driving file for authenticating by the WiFi module, an association driving file for associating by the WiFi module, an interface driving file for controlling the interface switch of the WiFi module and the like.
S303, determining that the loading mode is a normal mode, and acquiring all driving files of the WiFi module.
In general, the normal mode refers to a mode in which the tracker can perform data transmission by using the WiFi module in a normal networking manner, and includes all functions of the WiFi module. For example: the functions of the WiFi module in the normal mode comprise a scanning function, an authentication function, an association function and the like. The tracker determines that the loading mode is a normal mode by determining that the eSIM card is not activated. The WiFi module needs to determine all driving files of the WiFi module when the normal mode comprises all function trackers, and the trackers firstly find the driving file catalogue, inquire all files under the catalogue and determine all driving files relevant to the normal mode.
S304, driving the WiFi module based on the driving file.
Generally, after the tracker determines the driving files of the WiFi module, all the driving files are operated to complete configuration of the WiFi module, and the WiFi module works in a normal mode.
S305, downloading the activation parameter file to an operator server.
In general, an activation parameter file refers to file information used to activate an eSIM, such as: commitments, keys, and activation codes, etc. After the tracker transmits data through the normal mode of the WiFi module, the tracker can read information carried by the eSIM card, and related activation parameter files are automatically downloaded on an operator server based on a set program. The operators include telecommunications, mobile and telecom, and the like.
S306, activating the eSIM card based on the activation parameter file, and indicating the WiFi module to stop working.
In general, the tracker parses the downloaded activation parameter file, and then configures and verifies the tracker based on the parsed activation parameter file, so that the eSIM card can perform data transmission. After the tracker detects that the eSIM card is activated, an instruction is sent to close the WiFi module, and then data transmission operations such as reporting frame signal information and the like are all carried out 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, and the subsequent WiFi module only needs to load the scanning mode to perform auxiliary positioning, and the normal mode of the WiFi module is used for activating the eSIM card.
S307, when receiving the starting completion indication signal from the WiFi module, determining to load the driving file of the WiFi module.
In general, the indication signal is a signal indicating an operation state of the WiFi module, for example, a start signal, a stop signal, an interface channel control signal, and the like. The tracker receives the indication signal and then performs corresponding control according to the indication signal. And after the tracker receives the WiFi module determining signal, determining the driving file for loading the WiFi module from all the driving files.
And S308, when the loading mode is a scanning mode, acquiring a scanning driving file of the WiFi module.
Generally, the tracker determines that the loading mode of the WiFi module is required to be the scan mode by determining that the eSIM card has been activated. The scanning mode refers to a mode that the WiFi module only executes a scanning function, and the functions of the WiFi module in the scanning mode do not include other functions such as an authentication function and an association function. The tracker queries the drive file directory to only load the scanning drive files of the WiFi module, and does not load the authentication drive files of the WiFi module, the association drive files carried out by the WiFi module and other drive files.
S309, driving the WiFi module based on the scanning driving file.
Generally, after the tracker determines the driving file of the WiFi module, only the scanning driving file is operated to complete configuration of the WiFi module, and the WiFi module works in a scanning mode.
And 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 used for scanning the AP hotspots, acquiring related information, and determining the geographic position of the tracker according to the related information of the AP. The tracker broadcasts frame signal information to the AP by scanning, for example: the tracker analyzes the frame signal information to obtain parameters such as SSID, MAC, channel information and signal strength of the AP, the parameters are reported to the position server, the position server determines the position of each tracker by calculating and analyzing the information, and the position server sends the position 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 switches to the next channel. The tracker can acquire the frame signal information of the AP from the last stored channel number, and scan the frame signal information of the AP from the channel based on the last stored channel number when the scanning mode is currently performed to assist in positioning, so that a scanning result can be obtained quickly, the consumption of electric quantity is reduced, and the duration of the tracker is prolonged.
And S311, indicating the WiFi module to stop working.
Generally, the tracker will control 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 or not, if not activated, determines that the WiFi module loading mode is a normal mode, loads all driving files, downloads the activation parameter file to the server to activate the eSIM card, and stops the WiFi module. If the tracker detects that the eSIM card is activated, determining that the loading mode is a scanning mode, only loading the scanning driving file, using the WiFi module to acquire frame signal information broadcast by the AP wireless access point, storing the current channel number, and stopping the operation of the WiFi module. The tracker is through loading different drive modes to the different work demands of wiFi module, reduces the too big problem of consumption that loads all drive files and cause in the correlation technique, saves the consumption of tracker, increases standby time.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 4, a schematic structural diagram of a device for loading a driving file according to an exemplary embodiment of the present application is shown, and the device is hereinafter referred to as a control device 4. The control means 4 may be implemented as all or part of the terminal by software, hardware or a combination of both. Comprising the following steps:
the judging module is used for judging the current loading mode when the driving file of the WiFi module needs to be loaded;
the acquisition module is used for acquiring the scanning driving 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 driving 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 activating unit is used for downloading the activating 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 determining 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 electrified, determining that a driving file of the WiFi module needs to be loaded; or when a driving completion indication signal from the WiFi module is received, determining to load a driving file of the WiFi module; determining a drive file directory; and inquiring the scanning driving file in the driving file directory based on the file identification 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 embodiments of the present application and the embodiments of the methods of fig. 2 to 3 are based on the same concept, and the technical effects brought by the embodiments are the same, and the specific process may refer to the description of the embodiments of the methods of fig. 2 to 3, which is not repeated here.
The device 4 may be a field-programmable gate array (FPGA) for implementing relevant functions, an application specific integrated chip, a system on chip (SoC), a central processing unit (central processor unit, CPU), a network processor (network processor, NP), a digital signal processing circuit, a microcontroller (micro controller unit, MCU), a programmable controller (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 or not, if not activated, determines that the WiFi module loading mode is a normal mode, loads all driving files, downloads the activation parameter file to the server to activate the eSIM card, and stops the WiFi module. If the tracker detects that the eSIM card is activated, determining that the loading mode is a scanning mode, only loading the scanning driving file, using the WiFi module to acquire frame signal information broadcast by the AP wireless access point, storing the current channel number, and stopping the operation of the WiFi module. The tracker is through loading different drive modes to the different work demands of wiFi module, reduces the too big problem of consumption that loads all drive files and cause in the correlation technique, saves the consumption of tracker, increases standby time.
The 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 adapted to be loaded by a processor and execute the steps of the method as described above, and a specific implementation process may refer to a specific description of the embodiment shown in fig. 2 or fig. 3, which is not described herein.
The present application also provides a computer program product storing at least one instruction that is loaded and executed by the processor to implement the template control method as described in the above embodiments.
Referring to fig. 5, a schematic structural diagram of an electronic device is provided in an embodiment of the present application. 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, a memory 505, at least one communication bus 502.
Wherein a communication bus 502 is used to enable connected communications between these components.
The user interface 503 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 503 may further include a standard wired interface and a standard wireless interface.
The network interface 504 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the processor 501 may include one or more processing cores. The processor 501 connects various parts within the overall terminal 500 using various interfaces and lines, 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 invoking data stored in the memory 505. Alternatively, the processor 501 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 501 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. 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 will be appreciated that the modem may not be integrated into the processor 501 and may be implemented by a single chip.
The Memory 505 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 505 comprises a non-transitory computer readable medium (non-transitory computer-readable storage medium). 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 above-described various method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 505 may also optionally be at least one storage device located remotely from the processor 501. As shown in fig. 5, an operating system, a network communication module, a user interface module, and a loading application for driving files may be included in the memory 505, which is a type of computer storage medium.
In the electronic device 500 shown in fig. 5, the user interface 503 is mainly used for providing an input interface for a user, and acquiring data input by the user; and the processor 501 may be configured to invoke a loading application of the drive file stored in the memory 505, and specifically perform the following operations:
when a driving file of the WiFi module needs to be loaded, determining a current loading mode;
when the loading mode is a scanning mode, acquiring a scanning driving 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 one embodiment, after the processor 501 determines that the current loading mode is needed to load the driving file of the WiFi module, the method further includes:
when the loading mode is a normal mode, acquiring all driving files of the WiFi module;
and driving the WiFi module based on all the driving files of the WiFi module.
In one embodiment, after the processor 501 executes the driving the WiFi module based on all driving 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 processor 501 determines the current loading mode when the driver file of the WiFi module needs to be loaded, including:
detecting whether an eSIM card has been activated;
if the eSIM card is not activated, determining that the loading mode is a normal mode;
and if the eSIM card is activated, determining that the loading mode is a scanning mode.
In one embodiment, before determining the current loading mode when the driver file of the WiFi module needs to be loaded, the processor 501 further includes:
when the WiFi module is detected to be electrified, determining that a driving file of the WiFi module needs to be loaded; or (b)
And when a driving completion indication signal from the WiFi module is received, determining to load a driving file of the WiFi module.
In one embodiment, after the processor 501 executes the driving the WiFi module based on the scan driving file, the method further includes:
receiving frame signal information broadcast 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 one embodiment, the processor 501 executes the step of obtaining the scan driving file of the WiFi module when the loading mode is the scan mode, including:
determining a drive file directory;
and inquiring the scanning driving file in the driving file directory based on the file identification 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 repeated here.
In the embodiment of the application, the tracker detects whether the eSIM card is activated or not, if not, determines that the WiFi module loading mode is a normal mode, loads all driving files, downloads the activation parameter file to the server to activate the eSIM card, and stops the WiFi module. If the tracker detects that the eSIM card is activated, determining that the loading mode is a scanning mode, only loading the scanning driving file, using the WiFi module to acquire frame signal information broadcast by the AP wireless access point, storing the current channel number, and stopping the operation of the WiFi module. The tracker is through loading different drive modes to the different work demands of wiFi module, reduces the too big problem of consumption that loads all drive files and cause in the correlation technique, saves the consumption of tracker, increases standby time.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (6)

1. A method for loading a drive file, the method comprising:
detecting whether an 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, wherein a WiFi module in the scanning mode only scans frame signal information broadcast by a hot spot, and a tracker does not load a driving file of authentication and association functions;
when the loading mode is a scanning mode, acquiring a scanning driving 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;
receiving frame signal information broadcast 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;
indicating the WiFi module to stop working; or alternatively, the first and second heat exchangers may be,
when the loading mode is a normal mode, acquiring all driving files of the WiFi module;
driving the WiFi module based on all driving files of the WiFi module;
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.
2. The method of claim 1, wherein the detecting whether an eSIM card has been activated further comprises:
when the WiFi module is detected to be electrified, determining that a driving file of the WiFi module needs to be loaded; or (b)
And when a driving completion indication signal from the WiFi module is received, determining to load a driving file of the WiFi module.
3. The method of claim 1, wherein the obtaining the scan driver file of the WiFi module when the loading mode is a scan mode includes:
determining a drive file directory;
and inquiring the scanning driving file in the driving file directory based on the file identification corresponding to the scanning mode.
4. A loading apparatus for driving a file, comprising:
a determining unit for detecting whether the eSIM card has been activated;
the determining unit is further configured to determine that the loading mode is a normal mode if the eSIM card is not activated;
the determining unit is further configured to determine that the loading mode is a scanning mode if the eSIM card is activated, the WiFi module of the scanning mode only scans frame signal information broadcast by a hot spot, and the tracker does not load a driving file of authentication and association functions;
the acquisition module is used for acquiring the scanning driving 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;
the driving module comprises a scanning unit and a driving unit, wherein the scanning unit is used for receiving frame signal information broadcast by an AP wireless access point;
the scanning unit is also used for 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;
the scanning unit is also used for indicating the WiFi module to stop working;
the judging module comprises a loading unit and a loading unit, wherein the loading unit is used for acquiring all driving files of the WiFi module when the loading mode is a normal mode;
the loading unit is further used for driving the WiFi module based on all driving files of the WiFi module;
the judging module further comprises an activating unit used for downloading an activating parameter file to the operator server;
the activating unit is further used for activating the eSIM card based on the activation parameter file so as to perform data transmission through the eSIM card;
the activating unit is further configured to instruct the WiFi module to stop working.
5. A computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the method steps of any one of claims 1 to 3.
6. 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-3.
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 CN112256335A (en) 2021-01-22
CN112256335B true 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)

Families Citing this family (1)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7555568B2 (en) * 2004-02-28 2009-06-30 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
CN104090696B (en) * 2014-06-19 2018-01-09 京东方科技集团股份有限公司 Display panel, device and the driving method of two-sided touch-control
CN104572173B (en) * 2014-12-02 2018-09-07 惠州Tcl移动通信有限公司 WIFI drive loads method, system and mobile terminal based on mobile terminal
CN106506862B (en) * 2016-12-07 2019-05-10 Oppo广东移动通信有限公司 A kind of working mode of mobile terminal switching method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN112256335A (en) 2021-01-22

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
JP3915481B2 (en) Wireless communication device
US8818342B2 (en) Target service apparatus and method based on device to device direct communication
KR100735664B1 (en) Apparatus and method for providing service status using access class barred list in mobile communication system
KR102427401B1 (en) An electronic device providing call continuity in a weak signal environment and control method thereof
CN111869264A (en) Method for returning to high-standard network from low-standard network and communication device
KR101613170B1 (en) Apparatus and method for providing access point function in portable communication system
CN111867148B (en) Method and device for establishing device connection and data transmission
CN111343699A (en) Icon display method and device, storage medium and electronic equipment
CN111918256A (en) Intelligent device network distribution method and device based on Bluetooth and storage medium
CN114423057B (en) Channel switching method, device, AP equipment and storage medium
CN111107610A (en) Method and apparatus for connecting to access point in portable terminal
CN107846723B (en) Wireless local area network scanning method and device, computer equipment and storage medium
JP2021192521A (en) Method for establishing hot spot connection and terminal device
EP3783957B1 (en) Transmission path switching method, computer-readable storage medium and device
CN112272394B (en) Cell switching method, device, storage medium and electronic equipment
CN112256335B (en) Method and device for loading drive file, storage medium and electronic equipment
CN110602707A (en) Method and terminal for connecting wireless network
KR100722472B1 (en) Mobile communication terminal having an access point function and controlling method therefore
CN107635289B (en) Method for detecting terminal call and related product
US20070270195A1 (en) Roaming function test system and method
CN110502280B (en) Android operating system starting method and device, storage medium and terminal
CN114449657A (en) Method and device for establishing policy association, terminal and network side equipment
CN103974458A (en) Control method and device and mobile terminal

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