CN108243407B - Method for managing network interfaces of multiple wireless module devices and terminal device - Google Patents

Method for managing network interfaces of multiple wireless module devices and terminal device Download PDF

Info

Publication number
CN108243407B
CN108243407B CN201711395959.XA CN201711395959A CN108243407B CN 108243407 B CN108243407 B CN 108243407B CN 201711395959 A CN201711395959 A CN 201711395959A CN 108243407 B CN108243407 B CN 108243407B
Authority
CN
China
Prior art keywords
network interface
module
wireless
modules
network
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
CN201711395959.XA
Other languages
Chinese (zh)
Other versions
CN108243407A (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.)
Shenzhen Hongdian Technologies Corp
Original Assignee
Shenzhen Hongdian Technologies Corp
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 Shenzhen Hongdian Technologies Corp filed Critical Shenzhen Hongdian Technologies Corp
Priority to CN201711395959.XA priority Critical patent/CN108243407B/en
Publication of CN108243407A publication Critical patent/CN108243407A/en
Application granted granted Critical
Publication of CN108243407B publication Critical patent/CN108243407B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/183Processing at user equipment or user record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/26Network addressing or numbering for mobility support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention is suitable for the technical field of wireless network communication, and provides a method for managing a plurality of wireless module equipment network interfaces and terminal equipment, wherein the method comprises the following steps: identifying network interface names on a plurality of wireless module hardware structures; renaming the network interface name according to a preset rule; and renaming the network interface again by using the network interface name of the preset identifier when dialing is switched. The invention can effectively solve the problems of conflict and inconvenience of irregularity generated by the network interface in program control and management when a plurality of wireless modules are used simultaneously, and the problem that dialing fails and cannot be normally used due to the fact that the network port is occupied during dialing switching.

Description

Method for managing network interfaces of multiple wireless module devices and terminal device
Technical Field
The invention belongs to the technical field of wireless network communication, and particularly relates to a method for managing network interfaces of multiple wireless module devices and a terminal device.
Background
The wireless module is a communication module used in wireless terminal products of mobile networks, supports high-speed access of all mobile networks, can provide services such as high-speed wireless data and internet access for users, supports functions such as voice transmission, packet data transmission, short message receiving and sending and the like, and can help users to realize application of a plurality of embedded products quickly and easily, such as: the application of the mobile phone, the smart phone, the multimedia mobile phone, the touch screen communication device, the vehicle-mounted equipment, the USB modem, the wireless router and the like.
At present, two or more wireless modules are used in a wireless internet device, and for a multi-module wireless device, when a network driver interface specification NDIS dials, generation of a network interface needs to be involved, but drivers of different manufacturer modules are different, and a default network interface is also different, and a universal serial bus interface USB x, an ethernet interface ETH x, a wireless wide area network interface WWAN x, and the like are common. In the prior art, when multiple modules or modules of different manufacturers are used, because of the irregularity of the network interface generation, conflicts and inconveniences occur in program control and management, which directly results in poor code compatibility, readability and stability. When the PPP dialing and the NDIS dialing are switched, the network port is occupied, thereby causing the problems of dialing failure and abnormal use.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and a terminal device for managing multiple wireless module device network interfaces, so as to solve the problems in the prior art that the randomness generated by the network interfaces conflicts and inconveniences in program control and management, and dialing fails due to the occupied network ports during dialing handover, and the dialing cannot be normally used.
A first aspect of an embodiment of the present invention provides a method for managing network interfaces of multiple wireless module devices, including:
identifying network interface names on a plurality of wireless module hardware interfaces;
renaming the network interface name according to a preset rule;
and renaming the network interface again by using the network interface name of the preset identifier when dialing is switched.
A second aspect of an embodiment of the present invention provides a multiple radio module device network interface management apparatus, including:
the identification module is used for identifying network interface names on the hardware interfaces of the wireless modules;
the first renaming module is used for renaming the network interface name according to a preset rule;
and the second renaming module is used for renaming the network interface again by using the network interface name of the preset identifier when dialing is switched.
A third aspect of an embodiment of the present invention provides a terminal device for managing network interfaces of multiple wireless module devices, including: comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
identifying network interface names on a plurality of wireless module hardware interfaces;
renaming the network interface name according to a preset rule;
and renaming the network interface again by using the network interface name of the preset identifier when dialing is switched.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of:
identifying network interface names on a plurality of wireless module hardware interfaces;
renaming the network interface name according to a preset rule;
and renaming the network interface again by using the network interface name of the preset identifier when dialing is switched.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: when a plurality of wireless modules are applied to a wireless terminal product, the network interface names on hardware interfaces of the plurality of wireless modules can be obtained, the obtained network interface names are renamed according to a preset rule, and when the terminal is switched in dialing, the network interface names are renamed again by using the network interface names with preset marks, so that the compatibility, readability and strong stability of codes in program control and management are optimized; the function that the modules do not influence each other when dialing simultaneously and the modules dial simultaneously and are on-line and run independently is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of an implementation of a multiple wireless module device network interface management method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart illustrating an implementation process of a method for identifying network interface names corresponding to a plurality of wireless modules according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a plurality of wireless module connections provided by an embodiment of the present invention;
FIG. 4 is a schematic block diagram of identification and renaming management of multiple wireless module interface names provided by an embodiment of the present invention;
FIG. 5 is a schematic block diagram of multiple radio optimization management provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of a network interface management apparatus for a plurality of wireless module devices according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a terminal device managed by multiple wireless module device network interfaces according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Fig. 1 is a schematic diagram illustrating an implementation flow of a method for managing network interfaces of multiple wireless module devices according to an embodiment of the present invention. The method is applied to a terminal supporting a plurality of wireless modules, and as shown in the figure, the method can comprise the following steps:
step S101, identifying network interface names on a plurality of wireless module hardware interfaces.
In the embodiment of the present invention, the plurality of wireless modules may be wireless network modules of different manufacturers or wireless network modules of different drivers, such as ethernet or wireless wide area network; the corresponding interface names are network interface names generated by the driving wireless modules of different manufacturers or network interface names produced by the driving wireless modules of different protocols.
In addition, in a normal case, what network interface name is generated by default, and what interface name is directly used; the invention aims at the situation that two or more wireless network modules are used in a wireless internet device, when a plurality of network modules with different protocols or wireless modules of different manufacturers are used, the generation of a network interface needs to be related when a network driving interface specification NDIS dials, but the driving of the wireless network modules with different manufacturers or different protocols is different, and the network interface names correspondingly generated by the driving of each wireless network module are irregular, so that the network interface names correspondingly generated by the plurality of wireless network modules need to be identified, so that the control and the management of a program when the plurality of wireless network modules are used.
And step S102, renaming the network interface name according to a preset rule.
In the embodiment of the present invention, the network interface names include different wireless network modules accessed and network interface names supported by the device itself, such as ethernet ETH1, ethernet ETH2, ethernet ETH3, and the like; the preset rules comprise that all identified network interface names are renamed uniformly according to the sequence of the access modules on the hardware or other preset rules with the same name and different serial numbers.
It should be noted that after renaming the plurality of wireless network interfaces, the software may uniformly operate the network card with the network interface name of the module modem x, where x is a natural number, for example, turning on or turning off the corresponding network card, identifying the network protocol IP of the corresponding network card, or assigning the network protocol IP of the corresponding network card; it is not necessary to distinguish which manufacturer's module or which network card driving method. If the process is the process corresponding to the first module, only the program operation with the network interface name of the module Modern1 is carried out; if the process is the process corresponding to the second module, only the network interface name is the module Modern2, and the program does not need to consider the real generated network interface name in the dialing process.
Optionally, in step S102, renaming the network interface name according to a preset rule specifically includes:
a1, identifying the sequence of the plurality of wireless modules on the hardware.
For a plurality of wireless network modules, which can access an application device through a usb stub of a usb serial bus, as shown in the schematic structural diagram of fig. 3 for connecting a plurality of wireless modules, a plurality of wireless network modules Module 1, Module 2, Module 3, etc. are connected with a microprocessor MCU through the usb stub of the usb serial bus, and a wireless network card SIM1, SIM2, SIM3, etc. with identification are correspondingly inserted into the plurality of wireless network modules; meanwhile, the microprocessor MCU also comprises other network interfaces. Therefore, the module sequence on the hardware is identified for a plurality of wireless network modules which are accessed through the path of the Universal Serial Bus (USB) in the software.
And A2, renaming the initial names of the network interfaces correspondingly according to the sequence of the modules.
Optionally, step a2 specifically includes: the network interface names are respectively named as Ethernet interface ETH x, universal serial bus interface USB x and wireless wide area network interface WWAN x, and are renamed to be the network interface name of module Modem x, wherein x is a natural number.
The initial names of the network interfaces are default generated network interface names corresponding to the identified wireless network modules; the renaming is performed according to a sequence of modules, specifically, according to an identified sequence of module accesses on hardware, a default generated initial network interface name is uniformly renamed, for example, the identified initial network interface name may be an ethernet interface ETH1 (or an ethernet interface ETH2, an ethernet interface ETH3, etc.), a universal serial bus interface USB0 (or a universal serial bus interface USB1, a universal serial bus interface USB2), a wireless wide area network interface WWAN0 (or a wireless wide area network interface WWAN1, a wireless wide area network interface WWAN2), etc., and the identified module sequence corresponds to a uniform rename module Modern1, a module Modern2, a module Modern 3, etc., as shown in fig. 4, which is a schematic block diagram of multiple wireless module interface name identification and renaming management.
Step S103, when dialing is switched, the network interface is renamed again by using the network interface name of the preset identification.
In the embodiment of the invention, the dialing mode comprises network drive interface specification NDIS dialing and point-to-point protocol PPP dialing; the dialing switching comprises switching a network driving interface specification NDIS dialing mode into a point-to-point protocol PPP dialing mode, or switching the point-to-point protocol PPP dialing mode into a network driving interface specification NDIS dialing mode; the predetermined identifier can be English abbreviation of corresponding wireless network module manufacturer or other unique identifier corresponding to the protocol; at this time, the name of the network interface which needs to be renamed is the module Modern x corresponding to each module, wherein x is a natural number, or the network interface is named according to other preset rules.
In addition, renaming is also performed again when the network interface name is renamed and the current dialing is forbidden.
Optionally, in step S103, renaming, by using the network interface name of the predetermined identifier, the network interface again when the dialing is switched specifically includes:
b1, hanging up the network interfaces of the plurality of wireless modules.
When dialing is switched or dialing is forbidden, the equipment can automatically generate the network interface name according to the switched dialing mode, so that a network module used in the current dialing mode needs to be hung up when dialing is switched, and the problem that the network interface name generated after dialing switching cannot be named due to the fact that the network interface name is occupied is avoided.
And B2, correspondingly renaming the network interface name module Modern x to be a network interface name with a manufacturer English abbreviation or other preset identification, wherein x is a natural number.
After the network interface corresponding to the currently used wireless module is hung up, the corresponding network interface name module Modem x is used, where x is a natural number, as shown in a schematic block diagram of identification and renaming management of a plurality of wireless module interface names in fig. 4, after dial switching is performed, the network interface name module Modem0, module Modem1, module Modem2 and the like which are renamed for the first time are used for corresponding LSmodem0, SIMmodem1, and zhongxing module ztemoom 2 with predetermined identifiers.
Optionally, when the dialing is switched, after renaming the network interface again by using the network interface name of the predetermined identifier, the method further includes:
and when the dialing mode is switched back to the original dialing mode again, correspondingly naming the network interface name using the preset identifier as a module Modern x, wherein x is a natural number.
As shown in the schematic block diagram of the interface name recognition and renaming management of multiple wireless modules shown in fig. 4, after the dialing mode is switched back to the original dialing mode again, the network interface named by the network interface name of the predetermined identifier is to be renamed back to the network interface name module Modern x corresponding to the module on the hardware, where x is a natural number, that is, the network interface names of the LSmodem0, SIMmodem1, and module ztemom 2 with the predetermined identifier are renamed back to the original module network interface name modules Modem0, module Modem1, and module Modem 2.
It should be noted that, when a plurality of wireless network modules are used each time, the generated network interface names are renamed uniformly; when dialing is switched, continuing to rename the network interface name with the preset identification correspondingly; when the dialing is switched back to the original dialing again, the corresponding network interface name with the preset identification is renamed to the network interface name of the original module sequence correspondingly; the unified renaming method of the present invention can be applied cyclically according to specific work needs.
By the embodiment of the invention, when a plurality of wireless network modules or wireless network modules of different manufacturers are used, and the wireless network modules of different manufacturers are used simultaneously, the interface names of the wireless network modules of different manufacturers are identified and renamed uniformly, so that the conflict of the plurality of wireless modules in program control and management is avoided, and the compatibility, readability and stability of program codes are optimized; the function that the wireless modules of different drivers of different manufacturers dial simultaneously without influencing each other is realized, the function that a plurality of wireless modules dial simultaneously and come on line and operate independently is realized simultaneously, and the problem that network interfaces occupy conflicts when a plurality of wireless modules dial and a plurality of dialing modes and module processes are forbidden randomly is solved.
Fig. 2 is a schematic flow chart illustrating an implementation of the management method for identifying multiple wireless module interfaces according to the embodiment of the present invention. As shown the method may comprise the steps of:
step S201, generating network interface drivers of different wireless modules.
In the embodiment of the invention, different wireless modules comprise wireless modules of different manufacturers and wireless modules of different drivers, and when different wireless modules are used, network port drivers of different wireless modules need to be added manually; the network port driver comprises network port drivers of modules of different manufacturers and network port drivers of modules of different protocols; after the corresponding network interface driver is generated, a file corresponding to the current wireless module interface is generated.
Step S202, inquiring a file path generated by the current wireless module according to the network interface.
In the embodiment of the invention, a plurality of wireless network modules are accessed into the equipment through the multi-port repeater USBHub of the universal serial bus, due to the difference of universal serial bus USB interface hardware and the different network interface time generated by driving, the sequencing of the network interfaces is uncertain, and the equipment software is required to inquire the file path generated by the current wireless module according to the network interface so as to identify the network interface name of the current wireless module.
Step S203, if the network interface name corresponding to the current wireless module is identified according to the file path, obtaining the network interface name of the current wireless module.
In the embodiment of the present invention, the file path may be a network interface path corresponding to a plurality of wireless network modules accessed by the device, or an interface path corresponding to another network interface supported by the device; the current network module is a wireless module of different manufacturers or different protocols, which is accessed by equipment through hardware; the acquired network interface name of the current wireless module is a network interface name generated by default through a corresponding network interface accessed by the device through hardware.
It should be noted that, a plurality of wireless network modules accessed by hardware may generate corresponding serial numbers, and the software acquires a corresponding default generated network interface name of the current wireless module according to whether a current queried file path corresponds to the serial number corresponding to the current wireless module, that is, whether the current queried file path corresponds to the current wireless module interface, if a network interface name corresponding to the current wireless module is identified.
Step S204, if the network interface name corresponding to the current wireless module cannot be identified under the file path, defaulting the interface name corresponding to the current file path to one of an ethernet interface ETHx, a universal serial bus interface USBx, and a wireless wide area network interface WWAN x, where x is a natural number.
In this embodiment of the present invention, there is a possibility that the queried file path is not a file path generated by corresponding drivers of multiple wireless network modules accessed by the device, that is, the queried file path does not correspond to a serial number generated by a current wireless network module accessed by the device, that is, a network interface name corresponding to the current wireless module cannot be identified under the current file path, and an interface name corresponding to the current file path is default to be one of an ethernet interface ETH x, a universal serial bus interface USB x, and a wireless wide area network interface WWAN x, where x is a natural number.
It should be noted that, when the queried file path is not matched with the current wireless module, the default named network interface name corresponding to the current file is one of an ethernet interface ETH x, a universal serial bus interface USB x, and a wireless wide area network interface WWAN x, where the default named network interface name is different from the network interface name accessed by the device.
The embodiment of the invention confirms the network interface name in the software system corresponding to the wireless network module accessed on the equipment, avoids the problem of uncertain sequencing of the network interface caused by different hardware of the Universal Serial Bus (USB) interface and different time of the network interface generated by driving, and provides necessary basis for uniformly controlling and managing a plurality of wireless modules.
Fig. 5 is a schematic block diagram illustrating the optimization management of multiple wireless modules according to an embodiment of the present invention. As shown, a plurality of interfaces may be provided: interface 1, interface 2, interface 3, etc.; each interface can be inserted into a corresponding wireless network module, and the wireless module inserted into each interface can also implement switching, such as: the interface 1 can be accessed by the module a, or can be replaced by one of the module b, the module d, the module e, the module g, the module h and the like; the device is accessed through a universal serial USB bus interface, the network interface names generated by the modules are identified by software, the identified network interface names are named as corresponding module network interface names Modern0, Modern1, Modern2 and the like in a unified mode, and the device performs unified operation on the renamed module network interface names Modern x according to a universal flow.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
Fig. 6 is a schematic diagram of a network interface management apparatus for multiple wireless module devices according to an embodiment of the present invention. For convenience of explanation, only portions related to the embodiments of the present invention are shown.
The network module device network interface management apparatus includes:
an identification module 61, configured to identify network interface names on the plurality of wireless module hardware interfaces;
the first renaming module 62 is configured to rename the network interface name according to a preset rule;
and a second renaming module 63, configured to rename the network interface again by using the network interface name of the predetermined identifier when the dialing is switched.
Further the identification module further comprises:
the drive generation module is used for generating network interface drives of different wireless modules;
the query module is used for querying a file path generated according to the network interface at present;
the processing module is used for identifying the network interface name corresponding to the current wireless module according to the file path, and if the network interface name is identified, the network interface name of the current wireless module is obtained; if the network interface name corresponding to the current wireless module cannot be identified under the file path, defaulting the interface name corresponding to the current file path to be one of an Ethernet interface ETH x, a universal serial bus interface USB x and a wireless wide area network interface WWAN x, wherein x is a natural number.
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely illustrated, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the mobile terminal is divided into different functional units or modules to perform all or part of the above described functions. Each functional module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional modules are only used for distinguishing one functional module from another, and are not used for limiting the protection scope of the application. The specific working process of the module in the mobile terminal may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 7 is a schematic diagram of a terminal device managed by multiple wireless module device network interfaces according to an embodiment of the present invention. As shown in fig. 7, the terminal device 7 for network interface management of a plurality of wireless module devices of this embodiment includes: a processor 70, a memory 71, and a computer program 72, such as a plurality of network module driver generators and a plurality of network module renamers, stored in the memory 71 and operable on the processor 70. The processor 70, when executing the computer program 72, implements the steps in the various multiple radio module device network interface management method embodiments described above, such as steps 101 through 103 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, implements the functions of each module/unit in each device embodiment described above, for example, the functions of the modules 61 to 63 shown in fig. 6.
Illustratively, the computer program 72 may be partitioned into one or more modules/units that are stored in the memory 71 and executed by the processor 70 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 72 in the terminal device 7 managed by the plurality of wireless module device network interfaces. For example, the computer program 72 may be partitioned into a synchronization module, a summarization module, an acquisition module, a return module (a module in a virtual device).
The plurality of wireless module device network interface management terminal devices 7 may be computing devices such as a desktop computer, a notebook computer, a palm computer, and a cloud server. The terminal device managed by the plurality of wireless module device network interfaces may include, but is not limited to, a processor 70, a memory 71. Those skilled in the art will appreciate that fig. 7 is merely an example of a terminal device 7 managed by a plurality of wireless module device network interfaces and does not constitute a limitation of a terminal device 7 managed by a plurality of wireless module device network interfaces and may include more or fewer components than shown, or some components may be combined, or different components, e.g., the terminal device managed by the plurality of wireless module device network interfaces may also include input output devices, network access devices, buses, etc.
The Processor 70 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 71 may be an internal storage unit of the terminal device 7 managed by the plurality of wireless module device network interfaces, such as a hard disk or a memory of the terminal device 7 managed by the plurality of wireless module device network interfaces. The memory 71 may also be an external storage device of the multiple wireless module device network interface management terminal device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are equipped on the multiple wireless module device network interface management terminal device 7. Further, the memory 71 may include both an internal storage unit and an external storage device of the terminal device 7 managed by the plurality of wireless module device network interfaces. The memory 71 is used to store the computer program and other programs and data required by the terminal device managed by the plurality of wireless module device network interfaces. The memory 71 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. A method for network interface management for a plurality of wireless module devices, comprising:
identifying network interface names on a plurality of wireless module hardware interfaces;
renaming the network interface name according to a preset rule; identifying the sequence of modules on hardware by a plurality of accessed wireless network modules through a Universal Serial Bus (USB) path in software, and renaming initial network interface names generated by default according to the sequence of the modules correspondingly according to the identified sequence of the modules accessed on the hardware;
and renaming the network interface again by using the network interface name of the preset identifier when dialing is switched.
2. The method for multiple wireless module device network interface management according to claim 1, wherein said identifying network interface names on a plurality of wireless module hardware interfaces comprises:
generating network interface drivers of different wireless modules;
inquiring a file path generated by the current wireless module according to the network interface;
if the network interface name corresponding to the current wireless module is identified according to the file path, acquiring the network interface name of the current wireless module;
if the network interface name corresponding to the current wireless module cannot be identified according to the file path, defaulting the interface name corresponding to the current file path to be one of an Ethernet interface ETH x, a universal serial bus interface USB x and a wireless wide area network interface WWAN x, wherein x is a natural number.
3. The method for multiple wireless module device network interface management according to claim 1, wherein said renaming the initial name of the network interface in a sequence of modules comprises:
the network interface names are respectively named as Ethernet interface ETH x, universal serial bus interface USB x and wireless wide area network interface WWAN x, and are renamed to be the network interface name of module Modem x, wherein x is a natural number.
4. The method of multiple radio module device network interface management according to claim 3, wherein said renaming said network interface using a network interface name of a particular identity at dial up handover comprises:
hanging up the network interfaces of the plurality of wireless modules;
and correspondingly renaming the network interface name module Modem x as a network interface name with a manufacturer English abbreviation or other preset marks, wherein x is a natural number.
5. The method of multiple radio module device network interface management according to claim 1, wherein said renaming said network interface at dial up switching using a predetermined identified network interface name further comprises:
and if the dialing mode is switched back to the original dialing mode again, correspondingly naming the network interface name using the preset identifier as a module Modem x, wherein x is a natural number.
6. A multiple radio module device network interface management apparatus, comprising:
the identification module is used for identifying network interface names on the hardware interfaces of the wireless modules;
the first renaming module is used for renaming the network interface name according to a preset rule; identifying the sequence of modules on hardware by a plurality of accessed wireless network modules through a Universal Serial Bus (USB) path in software, and renaming initial network interface names generated by default according to the sequence of the modules correspondingly according to the identified sequence of the modules accessed on the hardware;
and the second renaming module is used for renaming the network interface again by using the network interface name of the preset identifier when dialing is switched.
7. The plurality of wireless module device network interface management apparatus of claim 6, wherein the identification module further comprises:
the drive generation module is used for generating network interface drives of different wireless modules;
the query module is used for querying a file path generated according to the network interface at present;
the processing module is used for identifying the network interface name corresponding to the current wireless module according to the file path, and if the network interface name is identified, the network interface name of the current wireless module is obtained; if the network interface name corresponding to the current wireless module cannot be identified under the file path, defaulting the interface name corresponding to the current file path to be one of an Ethernet interface ETH x, a universal serial bus interface USB x and a wireless wide area network interface WWAN x, wherein x is a natural number.
8. A terminal device for multiple radio module device network interface management, comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor implements the steps of the method according to any of claims 1 to 5 when executing said computer program.
9. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201711395959.XA 2017-12-21 2017-12-21 Method for managing network interfaces of multiple wireless module devices and terminal device Active CN108243407B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711395959.XA CN108243407B (en) 2017-12-21 2017-12-21 Method for managing network interfaces of multiple wireless module devices and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711395959.XA CN108243407B (en) 2017-12-21 2017-12-21 Method for managing network interfaces of multiple wireless module devices and terminal device

Publications (2)

Publication Number Publication Date
CN108243407A CN108243407A (en) 2018-07-03
CN108243407B true CN108243407B (en) 2021-07-13

Family

ID=62701094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711395959.XA Active CN108243407B (en) 2017-12-21 2017-12-21 Method for managing network interfaces of multiple wireless module devices and terminal device

Country Status (1)

Country Link
CN (1) CN108243407B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113810747B (en) * 2020-06-15 2023-04-07 海信视像科技股份有限公司 Display equipment and signal source setting interface interaction method
CN112003960B (en) * 2020-08-06 2022-11-15 杭州安恒信息技术股份有限公司 Network interface management method and device of industrial control equipment and electronic device
CN113438749B (en) * 2021-05-17 2022-09-06 深圳市广和通无线股份有限公司 Multi-public-network connection driving method and device, computer equipment and storage medium
CN113923120B (en) * 2021-09-29 2023-08-18 广州鲁邦通物联网科技股份有限公司 Module ID renaming method of wireless communication module and terminal equipment
CN114610206A (en) * 2022-03-17 2022-06-10 深圳创维-Rgb电子有限公司 Wireless device distinguishing method, device, equipment and readable storage medium
CN115277630B (en) * 2022-08-12 2024-05-17 东软集团股份有限公司 Method, device and equipment for renaming network adapter interface

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7035850B2 (en) * 2000-03-22 2006-04-25 Hitachi, Ltd. Access control system
CN101739256A (en) * 2009-12-30 2010-06-16 中国运载火箭技术研究院 Universal interface system for integration optimizing software
CN102929732A (en) * 2012-10-18 2013-02-13 北京奇虎科技有限公司 Method and device for calling file by application program and client-side equipment
CN104732331A (en) * 2015-02-13 2015-06-24 腾讯科技(深圳)有限公司 Grouping management method, device and system
CN105182111A (en) * 2015-08-17 2015-12-23 上海斐讯数据通信技术有限公司 Mobile terminal performance test method and system
CN106484820A (en) * 2016-09-26 2017-03-08 华为技术有限公司 A kind of renaming method, access method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7877369B2 (en) * 2007-11-02 2011-01-25 Paglo Labs, Inc. Hosted searching of private local area network information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7035850B2 (en) * 2000-03-22 2006-04-25 Hitachi, Ltd. Access control system
CN101739256A (en) * 2009-12-30 2010-06-16 中国运载火箭技术研究院 Universal interface system for integration optimizing software
CN102929732A (en) * 2012-10-18 2013-02-13 北京奇虎科技有限公司 Method and device for calling file by application program and client-side equipment
CN104732331A (en) * 2015-02-13 2015-06-24 腾讯科技(深圳)有限公司 Grouping management method, device and system
CN105182111A (en) * 2015-08-17 2015-12-23 上海斐讯数据通信技术有限公司 Mobile terminal performance test method and system
CN106484820A (en) * 2016-09-26 2017-03-08 华为技术有限公司 A kind of renaming method, access method and device

Also Published As

Publication number Publication date
CN108243407A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
CN108243407B (en) Method for managing network interfaces of multiple wireless module devices and terminal device
CN105376107B (en) Terminal testing method and proxy server
CN109041140B (en) Method for rapidly switching wireless network, intelligent hardware and terminal equipment
CN112637371B (en) Node address determination method and device, electronic equipment and storage medium
US8856271B2 (en) Data accessing method used for customer premises equipment, and customer premises equipment
CN110572365A (en) multi-protocol server management method, system, terminal device and storage medium
CN114338594B (en) ARP (Address resolution protocol) response-substituting method, device, equipment and storage medium in Kubernetes environment
CN110244983B (en) Method for fixing serial port number, terminal equipment and storage medium
CN108337739B (en) Method and device for establishing wireless debugging connection and data processing method
US20220131719A1 (en) Forwarding domain allocation method and apparatus, storage medium, and electronic device
CN112235175A (en) Access method and access device of network bridge equipment and network bridge equipment
CN110704158A (en) Method, apparatus and storage medium for forwarding access requests within a container cluster
EP3311290B1 (en) Extended message signaled interrupts (msi) message data
CN111542035A (en) Cloud service connection method, system and related equipment
CN101714925B (en) Method and system for managing ports of communication equipment, management equipment and communication equipment
WO2024141124A1 (en) Lpa automatic compilation method and system for esim device, and medium
CN114896188B (en) Method and system for automatic network sharing adaptation of USB (universal serial bus) equipment
CN104753746A (en) Device accessing method and control server
US11750762B2 (en) Information processing apparatus, information processing system, and non-transitory computer readable medium
CN103490913A (en) Pre-boot execution environment testing device, method and system
CN111124445B (en) Home gateway upgrading method and home gateway
CN107454021B (en) Communication method and device
CN112543121A (en) Multi-device group control method, electronic device, and computer-readable storage medium
CN112486583A (en) System, method, apparatus and storage medium for configuring parameters
CN115397033B (en) Wireless communication method, wireless communication device, wireless communication module, medium, and program product

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