CN115802520A - Multi-module adapting method and device based on 5G dialing - Google Patents

Multi-module adapting method and device based on 5G dialing Download PDF

Info

Publication number
CN115802520A
CN115802520A CN202211445671.XA CN202211445671A CN115802520A CN 115802520 A CN115802520 A CN 115802520A CN 202211445671 A CN202211445671 A CN 202211445671A CN 115802520 A CN115802520 A CN 115802520A
Authority
CN
China
Prior art keywords
module
communication module
dialing
accessed
communication
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
CN202211445671.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.)
Zhejiang Jiechuang Ark Digital Technology Co ltd
Original Assignee
Zhejiang Jiechuang Ark Digital Technology 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 Zhejiang Jiechuang Ark Digital Technology Co ltd filed Critical Zhejiang Jiechuang Ark Digital Technology Co ltd
Priority to CN202211445671.XA priority Critical patent/CN115802520A/en
Publication of CN115802520A publication Critical patent/CN115802520A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Communication Control (AREA)

Abstract

The invention discloses a multi-module adapting method and device based on 5G dialing, and relates to the technical field of Internet of things. One embodiment of the method comprises: responding to the accessed 5G communication module, automatically detecting hardware parameters of the accessed 5G communication module, and determining the identification of the accessed 5G communication module from a plurality of preset 5G communication modules according to the detected hardware parameters; calling a 5G dialing code of the accessed 5G communication module which is deployed in the local in advance by using the determined identification of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module; the method comprises the steps that 5G dialing codes of a plurality of 5G communication modules including the 5G dialing codes of the accessed 5G communication modules are locally and pre-deployed, and the 5G dialing codes of the 5G communication modules are mutually isolated and decoupled. This embodiment can make 5G terminal convenient and fast ground match different module models, can make 5G terminal manufacturer face 5G module market that changes greatly certainly simultaneously.

Description

Multi-module adapting method and device based on 5G dialing
Technical Field
The invention relates to the technical field of Internet of things, in particular to a multi-module adapting method and device based on 5G dialing.
Background
With the rapid development of the internet, 5G (fifth generation mobile communication technology) has gradually gone into thousands of households, and it is probably no longer a difficult problem to realize internet connection through 5G dialing, but for each 5G user, access of a 5G signal needs to be realized through a 5G terminal, the 5G terminal is a bridge for connecting network infrastructure and industrial application, and a 5G communication module is an important carrier for realizing network access of terminal equipment.
However, the development of the 5G communication module is restricted by various restrictions due to the current change of international situation, and the types of the 5G communication module in the market are various, but for each terminal manufacturer, the access development cost based on the 5G communication module is extremely high, and due to the module market change and supply and demand problems, the module is very easy to be short or stopped for maintenance, the terminal manufacturer needs to continuously change the model of the module, and simultaneously change the development platform accessed by the module for redevelopment, and in addition, the maintenance of the old platform cannot be stopped, so that the development cost of users is multiplied, and huge manpower and material resources are also invested in the later maintenance.
In addition, because the interface information and the calling mode of the 5G module are more complex, in the corresponding program, the coupling degree of each module code is extremely high, and the modules are closely linked, so that a large number of personnel are required for collaborative development and testing, and the cost is higher. In addition, because the module codes are located in the same partition and are not isolated from each other, when the module codes need to be replaced or added, the module codes need to be modified again in a hard coding mode, and the previous module code is easy to change while the module codes are modified, so that the module used before can not be identified again. Moreover, due to the problems of unstable market, unstable module yield and the like of the current 5G modules, the modules need to be continuously replaced when enterprises develop the 5G modules, and therefore software development and labor cost are greatly increased.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for adapting a multi-module based on 5G dialing, which can enable a 5G terminal to conveniently and quickly match different module types, and at the same time, enable a 5G terminal manufacturer to easily face a 5G module market that is varied.
To achieve the above object, according to one aspect of the present invention, a multimode group adaptation method based on 5G dialing is provided.
The 5G dialing-based multi-module adaptation method is used for realizing adaptation between a 5G terminal and a 5G communication module; the method is executed by a 5G terminal and comprises the following steps: responding to an accessed 5G communication module, automatically detecting hardware parameters of the accessed 5G communication module, and determining the identifier of the accessed 5G communication module from a plurality of preset 5G communication modules according to the detected hardware parameters; calling a 5G dialing code of the accessed 5G communication module, which is deployed locally in advance, by using the determined identifier of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module; the 5G dialing codes of the 5G communication modules including the 5G dialing codes of the accessed 5G communication modules are locally and pre-deployed, and the 5G dialing codes of the 5G communication modules are mutually isolated and decoupled.
Optionally, the 5G dialing code of any 5G communication module includes execution code of the following actions: interface registration, AT port setting, packet Data Protocol (PDP) setting, 5G mode setting, frequency band setting, flight mode setting, network residence, dialing, module static information acquisition, module dynamic information acquisition and submodule monitoring.
Optionally, the module static information includes at least one of: an integrated circuit card identification code ICCID, an international mobile equipment identification code IMEI, an international mobile subscriber identification code IMSI and a telephone NUMBER PHONE _ NUMBER; the module dynamic information comprises at least one of the following: identifying a password PIN, a TEMPERATURE TEMPERATURE, an IP address, a reverse address resolution protocol RARP, a signal to interference plus noise ratio SINR and physical cell identifications PCIs.
Optionally, the 5G dialing code is written using JAVA; and, the method further comprises: in the 5G dialing code, tagging a plurality of module classes with external annotations; the module access interfaces are realized by the plurality of module classes, the number of the plurality of module classes is equal to that of the plurality of 5G communication modules, the plurality of module classes are in one-to-one correspondence with the plurality of 5G communication modules, and the 5G dialing code of each 5G communication module is contained in the corresponding module class; the external annotation has an annotation name and annotation additional parameters, and the external annotation used for marking any two module classes has the same annotation name and different annotation additional parameters; when the 5G dialing codes are compiled, locally instantiating each module class into a module class instance, positioning each module class instance through the comment names, and locally storing the corresponding relation between the module class instance name of each module class and comment additional parameters in external comments marking the module class.
Optionally, the invoking a locally pre-deployed 5G dialing code of the accessed 5G communication module by using the determined identifier of the accessed 5G communication module includes: determining a target annotation additional parameter corresponding to the identifier of the accessed 5G communication module according to a pre-stored corresponding relation between the identifier of the 5G communication module and the annotation additional parameter; and determining a target module class instance corresponding to the target annotation additional parameter according to a prestored corresponding relation between the annotation additional parameter and the module class instance name, and executing the 5G dialing code in the target module class instance.
Optionally, the method further comprises: when a new 5G communication module needs to be added, a new module class corresponding to the new 5G communication module is created in a program, the new module class is enabled to realize the module access interface, and an external annotation is formed through the annotation name and new annotation additional parameters to mark the new module class; when the 5G dialing code is compiled, locally instantiating the new module class as a new module class instance, and locally storing the corresponding relation between the name of the new module class instance and the new annotation additional parameter; in response to determining the identification of the new 5G communication module according to the detected hardware parameter, determining the new annotation additional parameter corresponding to the identification of the new 5G communication module according to the pre-stored corresponding relationship between the identification of the 5G communication module and the annotation additional parameter; and determining the new module class instance corresponding to the new annotation additional parameter according to the prestored corresponding relation between the annotation additional parameter and the module class instance name, and executing the 5G dialing code in the new module class instance.
To achieve the above object, according to another aspect of the present invention, there is provided a multimode group adaptation device based on 5G dialing.
The multimode group adapting device based on 5G dialing of the embodiment of the invention can comprise: a detection unit and an adaptation unit. Wherein the detection unit is used for: responding to the accessed 5G communication module, automatically detecting hardware parameters of the accessed 5G communication module, and determining the identification of the accessed 5G communication module from a plurality of preset 5G communication modules according to the detected hardware parameters. The adaptation unit is used for: calling a 5G dialing code of the accessed 5G communication module, which is deployed locally in advance, by using the determined identifier of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module; the 5G dialing codes of the 5G communication modules including the 5G dialing codes of the accessed 5G communication modules are locally and pre-deployed, and the 5G dialing codes of the 5G communication modules are mutually isolated and decoupled.
Optionally, the 5G dialing code of any 5G communication module includes execution code of the following actions: interface registration, AT port setting, packet Data Protocol (PDP) setting, 5G mode setting, frequency band setting, flight mode setting, network residence, dialing, module static information acquisition, module dynamic information acquisition and submodule monitoring; the module static information includes at least one of: an integrated circuit card identification code ICCID, an international mobile equipment identification code IMEI, an international mobile subscriber identification code IMSI and a telephone NUMBER PHONE _ NUMBER; the module dynamic information comprises at least one of the following: the method comprises the steps of identifying a password PIN, a TEMPERATURE TEMPERATURE, an IP address, a reverse address resolution protocol RARP, a signal to interference plus noise ratio SINR and physical cell identifications PCIs.
Optionally, the 5G dialing code is written using JAVA; and the adaptation unit may be further configured to: in the 5G dialing code, tagging a plurality of module classes with external annotations; the module access interfaces are realized by the plurality of module classes, the number of the plurality of module classes is equal to that of the plurality of 5G communication modules, the plurality of module classes are in one-to-one correspondence with the plurality of 5G communication modules, and the 5G dialing code of each 5G communication module is contained in the corresponding module class; the external annotation has an annotation name and annotation additional parameters, and the external annotation used for marking any two module classes has the same annotation name and different annotation additional parameters; when the 5G dialing codes are compiled, locally instantiating each module class into a module class instance, positioning each module class instance through the comment names, and locally storing the corresponding relation between the module class instance name of each module class and comment additional parameters in external comments marking the module class.
Optionally, the adaptation unit may be further configured to: determining a target annotation additional parameter corresponding to the identifier of the accessed 5G communication module according to a pre-stored corresponding relation between the identifier of the 5G communication module and the annotation additional parameter; and determining a target module class instance corresponding to the target annotation additional parameter according to a pre-stored corresponding relation between the annotation additional parameter and the module class instance name, and executing a 5G dialing code in the target module class instance.
Optionally, the adaptation unit may be further configured to: when a new 5G communication module needs to be added, a new module class corresponding to the new 5G communication module is created in a program, the new module class is enabled to realize the module access interface, and an external annotation is formed through the annotation name and new annotation additional parameters to mark the new module class; when the 5G dialing code is compiled, locally instantiating the new module class into a new module class instance, and locally storing the corresponding relation between the name of the new module class instance and the new annotation additional parameter; in response to determining the identification of the new 5G communication module according to the detected hardware parameter, determining the new annotation additional parameter corresponding to the identification of the new 5G communication module according to the pre-stored corresponding relationship between the identification of the 5G communication module and the annotation additional parameter; and determining the new module class instance corresponding to the new annotation additional parameter according to the prestored corresponding relation between the annotation additional parameter and the module class instance name, and executing the 5G dialing code in the new module class instance.
To achieve the above object, according to still another aspect of the present invention, there is provided an electronic apparatus.
An electronic device of the present invention includes: one or more processors; and a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the 5G dialing-based multi-mode group adaptation method provided by the present invention.
To achieve the above object, according to still another aspect of the present invention, there is provided a computer-readable storage medium.
A computer-readable storage medium of the present invention stores thereon a computer program, which when executed by a processor implements the multi-mode group adapting method based on 5G dialing provided by the present invention.
According to the technical scheme of the invention, the embodiment of the invention has the following advantages or beneficial effects:
after the 5G terminal accesses the 5G communication module, automatically detecting the hardware parameter of the accessed 5G communication module, and determining the identifier of the accessed 5G communication module from a plurality of preset 5G communication modules according to the detected hardware parameter. Then, the 5G terminal calls a 5G dialing code of the accessed 5G communication module, which is deployed locally in advance, by using the determined identifier of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module; the 5G dialing codes of the 5G communication modules including the 5G dialing codes of the accessed 5G communication modules are locally and pre-deployed, and the 5G dialing codes of the 5G communication modules are mutually isolated and decoupled. Like this, through the automated inspection of module model and the isolation and the decoupling zero completely of each 5G communication module code piece, realize the automatic adaptation between 5G terminal and the 5G communication module, be favorable to the test and the maintenance of procedure development and later stage. When the modules need to be added or replaced, the code blocks of the modules are completely isolated and decoupled, and other codes cannot be influenced by related operations, so that the later maintenance cost is reduced.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram illustrating the main steps of a multi-mode group adapting method based on 5G dialing in an embodiment of the present invention;
FIG. 2 is a schematic diagram of the implementation of 5G dialing codes in accordance with an embodiment of the present invention;
fig. 3 is a schematic diagram of the components of the multimode adapter device based on 5G dialing in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device for implementing a multi-mode group adapting method based on 5G dialing in the embodiment of the present invention.
Detailed Description
Exemplary embodiments of the invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that the embodiments of the present invention and the technical features of the embodiments may be combined with each other without conflict.
Fig. 1 is a schematic diagram illustrating the main steps of a multimode group adaptation method based on 5G dialing according to an embodiment of the present invention.
As shown in fig. 1, the multimode group adaptation method based on 5G dialing according to the embodiment of the present invention is executed by a 5G terminal, and may specifically be executed according to the following steps:
step S101: responding to the accessed 5G communication module, automatically detecting hardware parameters of the accessed 5G communication module, and determining the identification of the accessed 5G communication module from a plurality of preset 5G communication modules according to the detected hardware parameters.
In the embodiment of the present invention, after a 5G terminal accesses a certain 5G communication module, a hardware parameter of the accessed 5G communication module is automatically detected through an automatic detection program pre-deployed locally, and the hardware parameter is used as feature data of the 5G communication module to indicate a model (i.e., an identifier) of the corresponding 5G communication module, that is, to locate the specific 5G communication module.
Step S102: and calling the 5G dialing code of the accessed 5G communication module which is deployed in advance at the local place by using the determined identification of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module.
In practical application, the 5G terminal locally pre-deploys the 5G dialing codes of the plurality of 5G communication modules including the 5G dialing codes of the accessed 5G communication modules, and the 5G dialing codes of the 5G communication modules are isolated and decoupled from each other through an isolation mechanism to be described below. It is understood that the 5G dialing code of each 5G communication module includes execution codes for module dialing behavior and information acquisition behavior.
In one embodiment, the 5G dialing code of any 5G communication module comprises execution code for: interface registration, AT port (namely ATTENTION port) setting, packet data protocol PDP setting, 5G mode setting, frequency band setting, flight mode setting, network residence, dialing, module static information acquisition, module dynamic information acquisition and submodule monitoring, and the 5G terminal based on 5G dialing and the 5G communication module can be docked through the actions. Illustratively, the above module static information includes at least one of: an integrated circuit card identification code ICCID, an international mobile equipment identification code IMEI, an international mobile subscriber identification code IMSI and a telephone NUMBER PHONE _ NUMBER; the above module dynamic information includes at least one of the following: the method comprises the steps of identifying a password PIN, a TEMPERATURE TEMPERATURE, an IP address, a reverse address resolution protocol RARP, a signal to interference plus noise ratio SINR and physical cell identifications PCIs.
In this step, the 5G terminal determines the 5G dialing code of the accessed 5G communication module according to the 5G communication module identifier acquired in step S101 and executes the 5G dialing code, thereby implementing the connection between the 5G terminal and the accessed 5G communication module. Through the steps, the 5G software module automatically detects and distinguishes the accessed module types by enumerating hardware equipment, and calls the corresponding module dialing behaviors and the information acquisition function according to different module types, so that the quick connection between the terminal and the communication module can be realized based on an isolation decoupling mechanism between communication module code blocks, the code modification workload can be reduced in the subsequent module replacement link, and the stability and the usability of a software system are enhanced.
Fig. 2 is an execution schematic diagram of a 5G dialing code according to an embodiment of the present invention, and as shown in fig. 2, a set of general dialing processes is designed for a 5G software module, which includes initialization, access mode configuration, flight mode configuration, working mode configuration, registration configuration, dialing configuration, and IPV4/IPV6 configuration.
Specifically, referring to fig. 2, after determining the identifier of the accessed 5G communication module, the 5G terminal first performs corresponding interface registration by using a 5G interface registration table, then sets an AT port, sets a PDP (access point APN parameter), sets a 5G mode, sets a frequency band, sets a flight mode, executes network camping and dials. And then, the 5G terminal respectively acquires the static information and the dynamic information (recording the IP address of the module) of the module, monitors the submodule, namely detects whether a monitoring network is started or not, detects the online condition of the module, judges whether the conditions of network interface disconnection and module hardware connection disconnection exist or not, and finally detects the log submodule to finish the dialing action and the information acquisition function. And returning to the previous step to redial when the module is judged not to be on line or the off-line condition exists, and restarting the module when the redialing is invalid for multiple times.
The isolation mechanism of the 5G communication module code block and the code block calling mechanism based on the module identification.
In practical application, the 5G dialing codes of each 5G communication module can be written in JAVA. In the source code writing process, a plurality of module classes may first be marked with external annotations. The annotation (annotation) is a special modifier in JAVA, and the external annotation refers to an annotation written by the relevant person in addition to the annotation built in the system. The module class is a class (class) associated with the 5G communication modules, the number of the module classes is equal to the number of the 5G communication modules, each module class corresponds to the 5G communication modules one by one, namely, any 5G communication module has a unique module class corresponding to the 5G communication module, and the 5G dialing code of each 5G communication module is written in the corresponding module class, namely, in the class body of the module class.
Particularly, the above modules can implement the same module access interface (interface) through class and interface implementation manners (instances), so as to have the same external 5G communication module access function. In addition, each of the above external annotations has an annotation name, which is generally written after the start of the annotation, and an annotation appended parameter, which can be written in the annotation body. For the external annotation marking any two module classes, the external annotation has the same annotation name and different annotation additional parameters, the same annotation name can realize the query of the subsequent module class examples, and the different annotation additional parameters are beneficial to realizing the isolation and the independent call of each module dialing code.
Thereafter, in the compiling process for the 5G dialing code, each module class may be instantiated as a module class instance first, and a search is performed by the same comment name above to locate each module class instance, after which the correspondence between the module class instance name of each module class and the comment additional parameter in the external comment marking the module class is stored locally. In this way, the mutual isolation and decoupling of the 5G dialing codes of each 5G communication module is completed.
After the identification of the accessed 5G communication module is obtained, the 5G terminal can determine a target annotation additional parameter corresponding to the identification of the accessed 5G communication module according to the pre-stored corresponding relation between the identification of the 5G communication module and the annotation additional parameter, and then the 5G terminal determines a target module class example corresponding to the target annotation additional parameter according to the pre-stored corresponding relation between the annotation additional parameter and the module class example name, wherein the target module class example contains the 5G dialing code of the accessed 5G communication module, and finally the 5G dialing code in the target module class example is executed, so that the 5G terminal can be connected with the 5G communication module.
Based on the decoupling isolation mechanism, when a new 5G communication module needs to be added, a new module class corresponding to the new 5G communication module is created in a program, the new module class is enabled to realize the module access interface, and an external comment is formed through the comment name and the new comment additional parameter to mark the new module class. When the 5G dialing code is compiled, the new module class is instantiated locally as a new module class instance, and the corresponding relation between the name of the new module class instance and the new annotation additional parameter is stored locally. After the 5G terminal determines the identifier of the new 5G communication module according to the detected hardware parameter (namely, the identifier of the module which is detected to be in butt joint is the identifier of the new 5G communication module), the new annotation additional parameter corresponding to the identifier of the new 5G communication module is determined according to the corresponding relationship between the identifier of the 5G communication module and the annotation additional parameter which is stored in advance, the new module class instance corresponding to the new annotation additional parameter is determined according to the corresponding relationship between the annotation additional parameter and the module class instance name which are stored in advance, and finally the 5G dialing code in the new module class instance is executed, so that the butt joint between the 5G terminal and the new 5G communication module is realized.
Through the mechanism, corresponding annotation additional parameters can be obtained according to module identifiers determined based on hardware parameters of the communication modules, and then required module class examples are obtained by utilizing the obtained annotation additional parameters, so that the terminal and the communication modules are connected by executing corresponding dialing codes in the module class examples, the method can realize complete decoupling and isolation of each communication module code block, when the communication modules need to be added, only a new module class needs to be created, a new annotation additional parameter is set, and corresponding external annotations are created to mark the module classes, the system can automatically instantiate each module class and record the corresponding relation between the module class and the annotation additional parameters in a program compiling stage, the system can automatically address the corresponding module class examples according to the module identifiers and execute the corresponding dialing codes to complete dialing, and in the process, the original dialing codes of other modules do not need to be changed, so that the maintenance workload of the software system is reduced, and the expandability of a 5G module docking scene is improved. [ King 1]
In the technical scheme of the embodiment of the invention, the 5G dialing is used for realizing the butt joint with different communication modules, so that the unstable market change of the modules can be effectively coped with, the development cost of 5G terminal development on 5G module replacement is reduced, and the later maintenance cost is reduced.
It should be noted that, for the convenience of description, the foregoing method embodiments are described as a series of acts, but those skilled in the art will appreciate that the present invention is not limited by the order of acts described, and that some steps may in fact be performed in other orders or concurrently. In addition, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required to implement the invention.
To facilitate a better implementation of the above-described aspects of embodiments of the present invention, the following also provides relevant means for implementing the above-described aspects.
Referring to fig. 3, a multimode adapter device 300 based on 5G dialing according to an embodiment of the present invention may include: a detection unit 301 and an adaptation unit 302.
Wherein the detection unit 301 is configured to: responding to the accessed 5G communication module, automatically detecting hardware parameters of the accessed 5G communication module, and determining the identification of the accessed 5G communication module from a plurality of preset 5G communication modules according to the detected hardware parameters. The adaptation unit 302 is configured to: calling a 5G dialing code of the accessed 5G communication module, which is deployed locally in advance, by using the determined identifier of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module; the 5G dialing codes of the 5G communication modules including the 5G dialing codes of the accessed 5G communication modules are locally and pre-deployed, and the 5G dialing codes of the 5G communication modules are mutually isolated and decoupled.
In the embodiment of the invention, the 5G dialing code of any 5G communication module comprises an execution code of the following actions: interface registration, AT port setting, packet Data Protocol (PDP) setting, 5G mode setting, frequency band setting, flight mode setting, network residence, dialing, module static information acquisition, module dynamic information acquisition and submodule monitoring; the module static information includes at least one of: an integrated circuit card identification code ICCID, an international mobile equipment identification code IMEI, an international mobile subscriber identification code IMSI and a telephone NUMBER PHONE _ NUMBER; the module dynamic information comprises at least one of the following: identifying a password PIN, a TEMPERATURE TEMPERATURE, an IP address, a reverse address resolution protocol RARP, a signal to interference plus noise ratio SINR and physical cell identifications PCIs.
In an optional technical scheme, the 5G dialing code is written in JAVA; and, the adapting unit 302 may be further configured to: in the 5G dialing code, tagging a plurality of module classes with external annotations; the module access interfaces are realized by the plurality of module classes, the number of the plurality of module classes is equal to that of the plurality of 5G communication modules, the plurality of module classes are in one-to-one correspondence with the plurality of 5G communication modules, and the 5G dialing code of each 5G communication module is contained in the corresponding module class; the external annotation has an annotation name and annotation additional parameters, and the external annotation used for marking any two module classes has the same annotation name and different annotation additional parameters; when the 5G dialing code is compiled, each module class is instantiated locally into a module class instance, each module class instance is located through the comment name, and the corresponding relation between the module class instance name of each module class and the comment additional parameter in the external comment marking the module class is stored locally.
Preferably, the adapting unit 302 is further configured to: determining a target annotation additional parameter corresponding to the identifier of the accessed 5G communication module according to a pre-stored corresponding relation between the identifier of the 5G communication module and the annotation additional parameter; and determining a target module class instance corresponding to the target annotation additional parameter according to a prestored corresponding relation between the annotation additional parameter and the module class instance name, and executing the 5G dialing code in the target module class instance.
Furthermore, in an embodiment of the present invention, the adapting unit 302 may further be configured to: when a new 5G communication module needs to be added, a new module class corresponding to the new 5G communication module is created in a program, the new module class is enabled to realize the module access interface, and an external annotation is formed through the annotation name and a new annotation additional parameter to mark the new module class; when the 5G dialing code is compiled, locally instantiating the new module class as a new module class instance, and locally storing the corresponding relation between the name of the new module class instance and the new annotation additional parameter; in response to determining the identification of the new 5G communication module according to the detected hardware parameter, determining the new annotation additional parameter corresponding to the identification of the new 5G communication module according to the pre-stored corresponding relationship between the identification of the 5G communication module and the annotation additional parameter; and determining the new module class instance corresponding to the new annotation additional parameter according to the prestored corresponding relation between the annotation additional parameter and the module class instance name, and executing the 5G dialing code in the new module class instance.
According to the technical scheme of the embodiment of the invention, automatic butt joint with different communication modules is realized through 5G dialing, and the code blocks of all the communication modules are mutually isolated and decoupled, so that modules in the later period are convenient and quick to change, the method can be widely applied to the field of 5G digitization, the adaptation development cost of enterprise modules is effectively reduced, the product practicability and maintainability are increased, and the method has a wide application prospect.
The invention also provides electronic equipment. The electronic device of the embodiment of the invention comprises: one or more processors; and a storage device for storing one or more programs, which when executed by the one or more processors, cause the one or more processors to implement the 5G dialing-based multi-mode group adaptation method provided by the present invention.
Referring now to FIG. 4, a block diagram of a computer system 400 suitable for use with the electronic device implementing an embodiment of the invention is shown. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 4, the computer system 400 includes a Central Processing Unit (CPU) 401 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM403, various programs and data necessary for the operation of the computer system 400 are also stored. The CPU401, ROM 402, and RAM403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input portion 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as needed, so that a computer program read out therefrom is mounted into the storage section 408 as needed.
In particular, the processes described in the main step diagrams above may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the main step diagram. In the above-described embodiment, the computer program can be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The computer program performs the above-described functions defined in the system of the present invention when executed by the central processing unit 401.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present invention may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a detection unit and an adaptation unit. Where the names of these units do not in some cases constitute a limitation of the unit itself, for example, a detection unit may also be described as a "unit providing 5G communication module identification of access to an adaptation unit".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carrying one or more programs which, when executed by the apparatus, cause the apparatus to perform steps comprising: responding to an accessed 5G communication module, automatically detecting hardware parameters of the accessed 5G communication module, and determining the identifier of the accessed 5G communication module from a plurality of preset 5G communication modules according to the detected hardware parameters; calling a 5G dialing code of the accessed 5G communication module, which is deployed locally in advance, by using the determined identifier of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module; the 5G dialing codes of the 5G communication modules including the 5G dialing codes of the accessed 5G communication modules are locally and pre-deployed, and the 5G dialing codes of the 5G communication modules are mutually isolated and decoupled.
In the technical scheme of the embodiment of the invention, after the 5G terminal accesses the 5G communication module, the hardware parameter of the accessed 5G communication module is automatically detected, and the identifier of the accessed 5G communication module is determined from a plurality of preset 5G communication modules according to the detected hardware parameter. Then, the 5G terminal calls a 5G dialing code of the accessed 5G communication module, which is deployed locally in advance, by using the determined identifier of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module; the 5G dialing codes of the 5G communication modules including the 5G dialing codes of the accessed 5G communication modules are locally and pre-deployed, and the 5G dialing codes of the 5G communication modules are mutually isolated and decoupled. Like this, through the automated inspection of module model and the isolation and the decoupling zero completely of each 5G communication module code piece, realize the automatic adaptation between 5G terminal and the 5G communication module, be favorable to the test and the maintenance of procedure development and later stage. When the modules need to be added or replaced, the code blocks of the modules are completely isolated and decoupled, and other codes cannot be influenced by related operation, so that the later maintenance cost is reduced.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A multimode group adaptation method based on 5G dialing is characterized in that the method is used for realizing adaptation between a 5G terminal and a 5G communication module; the method is executed by a 5G terminal and comprises the following steps:
responding to an accessed 5G communication module, automatically detecting hardware parameters of the accessed 5G communication module, and determining the identifier of the accessed 5G communication module from a plurality of preset 5G communication modules according to the detected hardware parameters;
calling a 5G dialing code of the accessed 5G communication module, which is deployed locally in advance, by using the determined identifier of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module; the 5G dialing codes of the 5G communication modules including the 5G dialing codes of the accessed 5G communication modules are locally and pre-deployed, and the 5G dialing codes of the 5G communication modules are mutually isolated and decoupled.
2. The method of claim 1, wherein the 5G dialing code for any 5G communication module comprises code for performing the following acts: interface registration, AT port setting, packet Data Protocol (PDP) setting, 5G mode setting, frequency band setting, flight mode setting, network residence, dialing, module static information acquisition, module dynamic information acquisition and submodule monitoring.
3. The method of claim 2, wherein the module static information comprises at least one of: an integrated circuit card identification code ICCID, an international mobile equipment identification code IMEI, an international mobile subscriber identification code IMSI and a telephone NUMBER PHONE _ NUMBER;
the module dynamic information comprises at least one of the following: the method comprises the steps of identifying a password PIN, a TEMPERATURE TEMPERATURE, an IP address, a reverse address resolution protocol RARP, a signal to interference plus noise ratio SINR and physical cell identifications PCIs.
4. In the 5G dialing code, tagging a plurality of module classes with external annotations; the module access interfaces are realized by the plurality of module classes, the number of the plurality of module classes is equal to that of the plurality of 5G communication modules, the plurality of module classes are in one-to-one correspondence with the plurality of 5G communication modules, and the 5G dialing code of each 5G communication module is contained in the corresponding module class; the external annotation has an annotation name and annotation additional parameters, and the external annotation used for marking any two module classes has the same annotation name and different annotation additional parameters;
when the 5G dialing codes are compiled, locally instantiating each module class into a module class instance, positioning each module class instance through the comment names, and locally storing the corresponding relation between the module class instance name of each module class and comment additional parameters in external comments marking the module class.
5. The method of claim 4, wherein invoking a pre-deployed local 5G dialing code for the accessed 5G communication module using the determined identity of the accessed 5G communication module comprises:
determining a target annotation additional parameter corresponding to the identifier of the accessed 5G communication module according to a pre-stored corresponding relation between the identifier of the 5G communication module and the annotation additional parameter;
and determining a target module class instance corresponding to the target annotation additional parameter according to a prestored corresponding relation between the annotation additional parameter and the module class instance name, and executing the 5G dialing code in the target module class instance.
6. The method of claim 5, further comprising:
when a new 5G communication module needs to be added, a new module class corresponding to the new 5G communication module is created in a program, the new module class is enabled to realize the module access interface, and an external annotation is formed through the annotation name and new annotation additional parameters to mark the new module class;
when the 5G dialing code is compiled, locally instantiating the new module class into a new module class instance, and locally storing the corresponding relation between the name of the new module class instance and the new annotation additional parameter;
in response to determining the identification of the new 5G communication module according to the detected hardware parameter, determining the new annotation additional parameter corresponding to the identification of the new 5G communication module according to the pre-stored corresponding relationship between the identification of the 5G communication module and the annotation additional parameter;
and determining the new module class instance corresponding to the new annotation additional parameter according to the prestored corresponding relation between the annotation additional parameter and the module class instance name, and executing the 5G dialing code in the new module class instance.
7. A multimode group adaptation device based on 5G dialing is characterized in that the device is used for realizing adaptation between a 5G terminal and a 5G communication module; the device is arranged at a 5G terminal and comprises:
a detection unit to: responding to an accessed 5G communication module, automatically detecting hardware parameters of the accessed 5G communication module, and determining the identifier of the accessed 5G communication module from a plurality of preset 5G communication modules according to the detected hardware parameters;
an adaptation unit for: calling a 5G dialing code of the accessed 5G communication module, which is deployed locally in advance, by using the determined identifier of the accessed 5G communication module so as to realize the connection between the 5G terminal and the accessed 5G communication module; the 5G dialing codes of the 5G communication modules including the 5G dialing codes of the accessed 5G communication modules are locally and pre-deployed, and the 5G dialing codes of the 5G communication modules are mutually isolated and decoupled.
8. The apparatus of claim 7, wherein the 5G dialing code for any 5G communication module comprises code for performing the following actions: interface registration, AT port setting, packet Data Protocol (PDP) setting, 5G mode setting, frequency band setting, flight mode setting, network residence, dialing, module static information acquisition, module dynamic information acquisition and submodule monitoring;
the module static information includes at least one of: an integrated circuit card identification code ICCID, an international mobile equipment identification code IMEI, an international mobile subscriber identification code IMSI and a telephone NUMBER PHONE _ NUMBER;
the module dynamic information comprises at least one of the following: identifying a password PIN, a TEMPERATURE TEMPERATURE, an IP address, a reverse address resolution protocol RARP, a signal to interference plus noise ratio SINR and physical cell identifications PCIs.
9. An electronic device, comprising:
one or more processors;
a storage device to store one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
CN202211445671.XA 2022-11-18 2022-11-18 Multi-module adapting method and device based on 5G dialing Pending CN115802520A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211445671.XA CN115802520A (en) 2022-11-18 2022-11-18 Multi-module adapting method and device based on 5G dialing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211445671.XA CN115802520A (en) 2022-11-18 2022-11-18 Multi-module adapting method and device based on 5G dialing

Publications (1)

Publication Number Publication Date
CN115802520A true CN115802520A (en) 2023-03-14

Family

ID=85438831

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211445671.XA Pending CN115802520A (en) 2022-11-18 2022-11-18 Multi-module adapting method and device based on 5G dialing

Country Status (1)

Country Link
CN (1) CN115802520A (en)

Similar Documents

Publication Publication Date Title
CN109361562B (en) Automatic testing method based on associated network equipment access
CN110096424B (en) Test processing method and device, electronic equipment and storage medium
US20220052866A1 (en) Smart home system control method and apparatus, electronic device
CN108345449A (en) A kind of information processing method, device, storage medium and computer equipment
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN112035344A (en) Multi-scenario test method, device, equipment and computer readable storage medium
CN110855471A (en) Port mapping method, device and equipment
CN104899134A (en) Automatic domain name registration server testing system and method
CN114756257B (en) Data updating method, device, communication module and readable storage medium
CN111078424A (en) Information interaction method and device, computer equipment and storage medium
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN113709243A (en) Equipment remote control method and device, electronic equipment and storage medium
WO2020000657A1 (en) Method and apparatus for establishing operation and maintenance monitoring connection, terminal device, and medium
CN110377476B (en) Terminal testing method, terminal and readable storage medium
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN107391170A (en) Support multivariant upgrade method, device and computer equipment
CN115802520A (en) Multi-module adapting method and device based on 5G dialing
CN104111862A (en) Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN113961504A (en) Mobile terminal group control method, device, system, server and storage medium
CN112380411A (en) Sensitive word processing method and device, electronic equipment, system and storage medium
CN112433938A (en) Method and device for testing application of mobile terminal
CN101459919B (en) Network selecting method and apparatus
CN114531335B (en) Method, equipment and device for detecting management information base data
WO2023032116A1 (en) Script identification device, script identification method, and script identification system
WO2023032115A1 (en) Network management device, network management method, and network management system

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