[go: up one dir, main page]

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 PDF

Info

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
command
information
dial
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
Application number
CN202111142325.XA
Other languages
Chinese (zh)
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 Zhiwei Intelligent Software Development Co ltd
Original Assignee
Shenzhen Zhiwei Intelligent Software Development 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 Shenzhen Zhiwei Intelligent Software Development Co ltd filed Critical Shenzhen Zhiwei Intelligent Software Development Co ltd
Priority to CN202111142325.XA priority Critical patent/CN113810303A/en
Publication of CN113810303A publication Critical patent/CN113810303A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

本发明适用计算机技术领域,提供了一种通信模组的自适应方法,该方法包括,设置统一的拨号连接和断开连接的指令,系统接收到拨号连接的指令后,根据通讯模块的ID信息确定通讯模块对应的AT指令集和定制拨号方式,通过通讯模块对应的AT指令集并根据通讯模式的定制拨号方式对通讯模块进行拨号连接,系统收到断开连接的指令后,断开网络连接。

Figure 202111142325

The present invention is applicable to the field of computer technology, and provides an adaptive method for a communication module. The method includes: setting a unified dial-up connection and disconnection command; after the system receives the dial-up connection command, according to ID information of the communication module Determine the AT command set corresponding to the communication module and the customized dialing method, and dial up the communication module through the corresponding AT command set of the communication module and according to the customized dialing method of the communication mode. After the system receives the disconnection command, it disconnects the network connection. .

Figure 202111142325

Description

Self-adaptive method, device and equipment of communication module and storage medium
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.一种通信模组的自适应方法,其特征在于,所述方法包括下述步骤:1. an adaptive method of communication module, is characterized in that, described method comprises the steps: 接收到拨号连接的指令后,自动识别并获取通讯模块的ID信息;After receiving the dial-up connection command, automatically identify and obtain the ID information of the communication module; 根据所述ID信息自动匹配所述通讯模块对应的AT指令集和定制拨号方式;Automatically match the corresponding AT command set and customized dialing mode of the communication module according to the ID information; 通过所述AT指令集并根据所述网络制式和所述定制拨号方式对所述通讯模块进行拨号连接操作;Dial-up connection operation is performed on the communication module through the AT command set and according to the network standard and the customized dial-up mode; 建立dhcp网络服务;Establish dhcp network service; 判断是否接收到断开连接的指令;Determine whether a disconnection command is received; 若是,断开网络连接并停止dhcp网络服务;If so, disconnect the network connection and stop the dhcp network service; 若否,结束。If no, end. 2.根据权利要求1所述的通信模组的自适应方法,其特征在于,所述步骤获取用户的操作命令之前还包括以下步骤:2. The self-adaptive method of the communication module according to claim 1, wherein the step further comprises the following steps before obtaining the operation command of the user: 分别设置一个用于拨号连接的指令和断开连接的指令。Set a command for dial-up connection and a command for disconnection respectively. 3.根据权利要求1所述的通信模组的自适应方法,其特征在于,所述步骤根据所述ID信息确定所述通讯模块的AT指令集和定制拨号方式之前还包括以下步骤:3. the adaptive method of communication module according to claim 1, is characterized in that, before described step determines the AT command set of described communication module and custom dialing mode according to described ID information, also comprise the following steps: 在系统中存储常用的通讯模块的ID信息及与其对应的AT指令集和定制拨号方式。The ID information of the commonly used communication modules and their corresponding AT command sets and customized dialing methods are stored in the system. 4.根据权利要求3所述的通信模组的自适应方法,其特征在于,所述常用的通讯模块包括4G通讯模块和5G通讯模块。4 . The adaptive method for a communication module according to claim 3 , wherein the commonly used communication modules include a 4G communication module and a 5G communication module. 5 . 5.根据权利要求1所述的通信模组的自适应方法,其特征在于,所述通讯模块的ID信息包括型号、网络制式和厂商。5 . The adaptive method for a communication module according to claim 1 , wherein the ID information of the communication module includes a model, a network standard and a manufacturer. 6 . 6.根据权利要求1所述的通信模组的自适应方法,其特征在于,所述AT指令包括通用指令集和定制指令集。6 . The adaptive method for a communication module according to claim 1 , wherein the AT command includes a general command set and a custom command set. 7 . 7.根据权利要求1所述的通信模组的自适应方法,其特征在于,所述定制拨号方式包括ECM、PPP和NDIS。7 . The adaptive method for a communication module according to claim 1 , wherein the customized dialing methods include ECM, PPP and NDIS. 8 . 8.一种通信模组的自适应装置,其特征在于,所述装置包括:8. An adaptive device for a communication module, wherein the device comprises: ID信息获取模块,用于自动识别并获取通讯模块的ID信息;The ID information acquisition module is used to automatically identify and acquire the ID information of the communication module; 定制信息获取模块,用于根据所述通讯模块的ID信息自动匹配所述通讯模块对应的AT指令集和定制拨号方式;A customized information acquisition module, used for automatically matching the corresponding AT command set and customized dialing mode of the communication module according to the ID information of the communication module; 拨号连接模块,用于通过所述AT指令集根据网络制式和定制拨号方式对所述通讯模块进行拨号连接操作;A dial-up connection module for performing a dial-up connection operation on the communication module according to the network standard and the customized dial-up mode through the AT command set; 断开连接模块,用于断开网络连接;Disconnect module for disconnecting network connection; Dhcp服务模块,用于网络连接时建立dhcp服务和网络断开时停止dhcp服务。The Dhcp service module is used to establish the dhcp service when the network is connected and stop the dhcp service when the network is disconnected. 9.一种设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述方法的步骤。9. A device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the computer program as claimed in claim 1 when the processor executes the computer program The steps of any one of to 7. 10.一种可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述方法的步骤。10. A readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
CN202111142325.XA 2021-09-28 2021-09-28 Self-adaptive method, device and equipment of communication module and storage medium Pending CN113810303A (en)

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)

* Cited by examiner, † Cited by third party
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 for dialing by using Bluetooth earphone
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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 for dialing by using Bluetooth earphone
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
WO2010145288A1 (en) Wireless access platform, system and method of equipment upgrade management
EP2704358B1 (en) Method and device for managing mobile broadband device
WO2008014647A1 (en) A maintenance method for the capability management object, capability management method, the system and the terminal thereof
CN104618888B (en) A kind of mobile terminal NFC chip firmware update system and method
WO2018018607A1 (en) Method and device for fixed conversion of transmission protocol based on message protocol identification
CN106714132B (en) Intelligent display terminal, intelligent equipment, intelligent interaction method and system
CN102833782A (en) Method, device and system for acquiring error code information
CN107295500A (en) SIM card data control method, device, storage medium and computer equipment
WO2011107022A1 (en) Data card and method for dial-up networking
WO2011088648A1 (en) Mac os system device and its network connection configuration method
CN110798462B (en) A smart home system and device access method
CN110012527A (en) Awakening method and electronic equipment
CN113810303A (en) Self-adaptive method, device and equipment of communication module and storage medium
CN103237050A (en) Method and system for intelligent voice interaction
CN111405059A (en) Data transmission method of cloud equipment, electronic equipment and Internet of things system
CN110753379A (en) A dual-card implementation method and dual-card implementation system for a single communication channel device
WO2019072156A1 (en) Apn information acquisition method, storage device and mobile terminal
CN109542477A (en) Upgrading method and device applied to earphone, electronic equipment and storage medium
CN119937444A (en) Communication method, device, equipment and medium between PLC control system and monitoring software
CN115237668A (en) Intelligent household appliance connection state repairing method and device, electronic equipment and storage medium
CN112953754B (en) Configuration method and device of differentiated service, electronic equipment and storage medium
CN101340671B (en) Inquiry method and system for AT command
CN105208537A (en) Call transfer state query method and system
CN105187305B (en) LTE dongle adaptive approach and system for LTE uplink home gateways
CN116360885A (en) Startup control method, device, baseboard management controller, management equipment and medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211217

RJ01 Rejection of invention patent application after publication