CN113810303A - Self-adaptive method, device and equipment of communication module and storage medium - Google Patents
Self-adaptive method, device and equipment of communication module and storage medium Download PDFInfo
- Publication number
- CN113810303A CN113810303A CN202111142325.XA CN202111142325A CN113810303A CN 113810303 A CN113810303 A CN 113810303A CN 202111142325 A CN202111142325 A CN 202111142325A CN 113810303 A CN113810303 A CN 113810303A
- Authority
- CN
- China
- Prior art keywords
- communication module
- information
- network
- module
- customized
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims abstract description 71
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000003044 adaptive effect Effects 0.000 claims description 16
- 238000004590 computer program Methods 0.000 claims description 12
- 238000010586 diagram Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 238000002054 transplantation Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
Abstract
The invention is suitable for the technical field of computers, and provides a self-adaptive method of a communication module.
Description
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a self-adaptive method, a self-adaptive device, self-adaptive equipment and a self-adaptive storage medium for a communication module.
Background
With the development of science and technology, the application of the Arm Linux embedded system in the internet and the mobile terminal is more and more extensive, wherein the 4G/5G module plays an important role in the Arm Linux embedded system, dial-up internet access is realized by using the transplantation and development of the 4G/5G module, and various customized requirements of a user on an application layer can be met. However, due to the diversification of 4G/5G module products, different dialing methods need to be provided for different 4G/5G module products in the development process of a customized embedded system, and a user needs to grasp a new dialing method again after updating or replacing the 4G/5G module, which is easy to cause troubles.
Disclosure of Invention
The invention aims to provide a self-adaptive method, a self-adaptive device, self-adaptive equipment and a self-adaptive storage medium of a communication module, and aims to solve the problem that different dialing methods are required to be used for different communication modules in the prior art.
In one aspect, the present invention provides an adaptive method for a communication module, the method comprising the following steps:
after receiving a dial-up connection instruction, automatically identifying and acquiring the ID information of the communication module;
automatically matching an AT instruction set and a customized dialing mode corresponding to the communication module according to the ID information;
carrying out dialing connection operation on the communication module through the AT instruction set according to the network standard and the customized dialing mode;
establishing a dhcp network service;
judging whether a disconnection instruction is received;
if yes, disconnecting the network connection and stopping the dhcp network service;
if not, ending.
Further, before automatically identifying and acquiring the ID information of the communication module, the method further includes the following steps:
an instruction for dial-up connection and an instruction for disconnection are set, respectively.
Further, before determining the AT instruction set and the customized dialing mode of the communication module according to the ID information, the method further includes the following steps:
the ID information of the common communication module and the AT instruction set and the customized dialing mode corresponding to the ID information are stored in the system.
Further, the common communication modules include a 4G communication module and a 5G communication module.
Further, the ID information of the communication module includes a network type, a manufacturer, and a model.
Further, the dial modes include ECM, PPP, and NDIS.
Further, the AT instructions include a general instruction set and a custom instruction set.
In another aspect, the present invention provides an adaptive apparatus for a communication module, the apparatus comprising:
the ID information acquisition module is used for automatically identifying and acquiring the ID information of the communication module;
the customized information acquisition module is used for automatically matching an AT instruction set and a customized dialing mode corresponding to the communication module according to the ID information of the communication module;
the dialing connection module is used for carrying out dialing connection operation on the communication module through the AT instruction set according to a network system and a customized dialing mode;
the disconnection module is used for disconnecting the network connection;
and the Dhcp service module is used for establishing the Dhcp service when the network is connected and stopping the Dhcp service when the network is disconnected.
In another aspect, the present invention further provides an apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the adaptive method for a communication module when executing the computer program.
In another aspect, the present invention further provides a readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps in the adaptive method for a communication module.
The invention has the beneficial effects that: the method comprises the steps of starting dial-up connection on various different communication modules by setting a unified dial-up connection command, determining the network type and the customized dial-up mode of the communication modules by acquiring the ID information of the communication modules, carrying out dial-up connection operation on the communication modules according to the network type and the customized dial-up mode of the communication modules, and simultaneously processing dhcp service, so that a user can conveniently adopt a unified dial-up connection mode on different communication modules, and the convenience of dial-up connection is improved.
Drawings
Fig. 1 is a flowchart of an adaptive method of a communication module according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an adaptive apparatus of a communication module according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The following detailed description of specific implementations of the present invention is provided in conjunction with specific embodiments:
the first embodiment is as follows:
fig. 1 shows an implementation flow of a method for automatically identifying a communication module and dialing according to an embodiment of the present invention, and for convenience of description, only the relevant portions related to the embodiment of the present invention are shown, which is detailed as follows:
the embodiment is based on a Linux embedded system, and the steps comprise:
step S101: after receiving a dial-up connection instruction, automatically identifying and acquiring the ID information of the communication module;
step S102: automatically matching an AT instruction set and a customized dialing mode of the communication module according to the ID information;
step S103: carrying out dialing connection operation on the communication module through an AT instruction set according to a network system and a customized dialing mode;
step S104: establishing a dhcp network service;
step S105: judging whether a disconnection instruction is received;
step S106: if yes, disconnecting the network connection and stopping the dhcp network service;
step S107: if not, ending.
Further, before step S101, the method further includes the steps of:
an instruction for dial-up connection and an instruction for disconnection are set, respectively.
Further, step S102 is preceded by the following steps:
the ID information of the common communication module and the AT instruction set and the customized dialing mode corresponding to the ID information are stored in the system.
Further, the common communication modules include a 4G communication module and a 5G communication module.
Further, in step S101, the ID information of the communication module includes a network type, a manufacturer, and a model.
Further, in step S102, the dialing mode includes ECM, PPP, and NDIS.
Further, the AT instruction includes a general instruction set and a custom instruction set.
Example two:
fig. 2 is a schematic structural diagram of an adaptive apparatus for providing a communication module according to an embodiment of the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown, which includes:
an ID information obtaining module 201, configured to automatically identify and obtain ID information of the communication module;
the customized information acquisition module 202 is used for automatically matching an AT instruction set and a customized dialing mode corresponding to the communication module according to the ID information of the communication module;
the dialing connection module 203 is used for carrying out dialing connection operation on the communication module through the AT instruction set according to a network system and a customized dialing mode;
a disconnection module 204 for disconnecting the network connection;
and the Dhcp service module 205 is used for establishing the Dhcp service when the network is connected and stopping the Dhcp service when the network is disconnected.
In the embodiment of the present invention, each module of the adaptive apparatus of the communication module may be implemented by a corresponding hardware or software module, and each module may be an independent software or hardware module, or may be integrated into a software or hardware module, which is not limited herein.
Example three:
fig. 3 is a schematic structural diagram of an apparatus provided in an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is shown, where the part includes:
in an embodiment of the present invention, an apparatus is provided, comprising a memory 301, a processor 302, and a computer program 303 stored in the memory and executable on the processor, which when executed by the processor implements the steps in an embodiment of the adaptive method of the communication module described above, e.g. steps S101 to S107 shown in fig. 1. Alternatively, the computer program, when executed by the processor, implements the functions of the modules in the adaptation means of the communication module described above, for example, the modules 201 to 205 shown in fig. 2.
Example four:
in an embodiment of the present invention, a readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the steps in an adaptive method embodiment of the communication module described above, for example, steps S101 to S107 shown in fig. 1. Alternatively, the computer program, when executed by the processor, implements the functions of the modules in the above-described apparatus embodiments, such as the functions of the modules shown in fig. 2.
The computer readable storage medium of the embodiments of the present invention may include any entity or device capable of carrying computer program code, a recording medium, such as a ROM/RAM, a magnetic disk, an optical disk, a flash memory, or the like.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (10)
1. A method for adapting a communication module, the method comprising the steps of:
after receiving a dial-up connection instruction, automatically identifying and acquiring the ID information of the communication module;
automatically matching an AT instruction set and a customized dialing mode corresponding to the communication module according to the ID information;
carrying out dialing connection operation on the communication module through the AT instruction set according to the network standard and the customized dialing mode;
establishing a dhcp network service;
judging whether a disconnection instruction is received;
if yes, disconnecting the network connection and stopping the dhcp network service;
if not, ending.
2. The adaptive method for communication modules according to claim 1, wherein the step of obtaining the operation command of the user further comprises the following steps:
an instruction for dial-up connection and an instruction for disconnection are set, respectively.
3. The adaptive method for a communication module according to claim 1, wherein the step of determining the AT command set and the customized dialing mode of the communication module according to the ID information further comprises the steps of:
the ID information of the common communication module and the AT instruction set and the customized dialing mode corresponding to the ID information are stored in the system.
4. The adaptive method for a communication module according to claim 3, wherein the common communication modules comprise a 4G communication module and a 5G communication module.
5. The adaptive method for a communication module of claim 1, wherein the ID information of the communication module includes a model, a network type and a manufacturer.
6. The adaptive method for communication modules according to claim 1, wherein the AT commands comprise a general command set and a custom command set.
7. The adaptive method for communication modules according to claim 1, wherein the customized dialing patterns include ECM, PPP and NDIS.
8. An apparatus for adapting a communication module, the apparatus comprising:
the ID information acquisition module is used for automatically identifying and acquiring the ID information of the communication module;
the customized information acquisition module is used for automatically matching an AT instruction set and a customized dialing mode corresponding to the communication module according to the ID information of the communication module;
the dialing connection module is used for carrying out dialing connection operation on the communication module through the AT instruction set according to a network system and a customized dialing mode;
the disconnection module is used for disconnecting the network connection;
and the Dhcp service module is used for establishing the Dhcp service when the network is connected and stopping the Dhcp service when the network is disconnected.
9. An apparatus comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1 to 7 when executing the computer program.
10. A 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 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111142325.XA CN113810303A (en) | 2021-09-28 | 2021-09-28 | Self-adaptive method, device and equipment of communication module and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111142325.XA CN113810303A (en) | 2021-09-28 | 2021-09-28 | Self-adaptive method, device and equipment of communication module and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113810303A true CN113810303A (en) | 2021-12-17 |
Family
ID=78938714
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111142325.XA Pending CN113810303A (en) | 2021-09-28 | 2021-09-28 | Self-adaptive method, device and equipment of communication module and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113810303A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080084991A1 (en) * | 2006-10-05 | 2008-04-10 | Inventec Multimedia & Telecom Corporation | Automatic switch-dialing system and method |
CN201523406U (en) * | 2009-10-20 | 2010-07-07 | 中国华录集团有限公司 | Device using Bluetooth headset for dialing |
EP2487838A1 (en) * | 2011-02-12 | 2012-08-15 | Huawei Device Co., Ltd. | Data card and method for internet access of data card |
CN105049288A (en) * | 2015-07-28 | 2015-11-11 | 中国科学院信息工程研究所 | System and method for high-integration network collection based on PPPoE (Point-to-Point Protocol over Ethernet) network access |
CN110944407A (en) * | 2019-11-21 | 2020-03-31 | 北京连山时代科技有限公司 | Dialing networking method and device |
CN111093254A (en) * | 2019-12-25 | 2020-05-01 | 迈普通信技术股份有限公司 | Multi-account matching method and dial-up router |
-
2021
- 2021-09-28 CN CN202111142325.XA patent/CN113810303A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080084991A1 (en) * | 2006-10-05 | 2008-04-10 | Inventec Multimedia & Telecom Corporation | Automatic switch-dialing system and method |
CN201523406U (en) * | 2009-10-20 | 2010-07-07 | 中国华录集团有限公司 | Device using Bluetooth headset for dialing |
EP2487838A1 (en) * | 2011-02-12 | 2012-08-15 | Huawei Device Co., Ltd. | Data card and method for internet access of data card |
CN105049288A (en) * | 2015-07-28 | 2015-11-11 | 中国科学院信息工程研究所 | System and method for high-integration network collection based on PPPoE (Point-to-Point Protocol over Ethernet) network access |
CN110944407A (en) * | 2019-11-21 | 2020-03-31 | 北京连山时代科技有限公司 | Dialing networking method and device |
CN111093254A (en) * | 2019-12-25 | 2020-05-01 | 迈普通信技术股份有限公司 | Multi-account matching method and dial-up router |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107889092A (en) | Bluetooth devices control method, device, terminal device and storage medium | |
CN110209072B (en) | User interface display method of self-recognition driver and related device | |
CN110798462B (en) | Smart home system and equipment access method | |
WO2007049856A1 (en) | Apparatus of transmitting private information in mobile terminal and its method | |
CN108958781B (en) | Remote embedded firmware online upgrading method | |
CN113810303A (en) | Self-adaptive method, device and equipment of communication module and storage medium | |
US11412558B2 (en) | IoT module adaptor | |
CN111722938A (en) | AT instruction processing method, AT instruction processing device, computer equipment and storage medium | |
CN105208537A (en) | Call transfer state query method and system | |
CN105183135A (en) | Method for saving power consumption of smart phone and smart phone | |
CN101340671B (en) | Inquiry method and system for AT command | |
CN103686013A (en) | Television peripheral recognizing method, television and television system | |
CN102572099B (en) | Status query time interval determination method, device and system for mobile terminal | |
CN102413488A (en) | Information exchange method and equipment in auto driver test system | |
CN101459919B (en) | Network selecting method and apparatus | |
CN111115396A (en) | Intelligent elevator taking control module and elevator taking method for robot | |
CN106850307B (en) | Attribute information processing method and device | |
KR20030000693A (en) | apparatus and method for wireless upgrade in FPGA EEPROM | |
CN106656639B (en) | Method and system for communicating with equipment | |
CN113163348B (en) | Expandable short message private channel docking system, method, device and storage medium | |
CN109240260B (en) | Remote fault diagnosis method based on bus automatic switching and free configuration protocol | |
CN111294778A (en) | Mobile phone networking middleware and method based on Bluetooth transmission protocol | |
CN102143608B (en) | Start card and instruction processing method thereof | |
CN115278649B (en) | Telephone number acquisition method, equipment, system and medium based on machine learning | |
CN117528493B (en) | Virtual communication method and system based on user identification module |
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 |