CN114158066A - Wireless communication module configuration generation method and device, electronic equipment and storage medium - Google Patents

Wireless communication module configuration generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114158066A
CN114158066A CN202111403068.0A CN202111403068A CN114158066A CN 114158066 A CN114158066 A CN 114158066A CN 202111403068 A CN202111403068 A CN 202111403068A CN 114158066 A CN114158066 A CN 114158066A
Authority
CN
China
Prior art keywords
wireless communication
communication module
instruction
instruction set
configuration data
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.)
Granted
Application number
CN202111403068.0A
Other languages
Chinese (zh)
Other versions
CN114158066B (en
Inventor
朱静强
王孙骏
胡俊杰
郜留东
高政
宋小平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Kongtrolink Information Technology Co ltd
Original Assignee
Hangzhou Kongtrolink Information 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 Hangzhou Kongtrolink Information Technology Co ltd filed Critical Hangzhou Kongtrolink Information Technology Co ltd
Priority to CN202111403068.0A priority Critical patent/CN114158066B/en
Priority claimed from CN202111403068.0A external-priority patent/CN114158066B/en
Publication of CN114158066A publication Critical patent/CN114158066A/en
Application granted granted Critical
Publication of CN114158066B publication Critical patent/CN114158066B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a wireless communication module configuration generation method, a wireless communication module configuration generation device, an electronic device and a storage medium, wherein the method comprises the following steps: first device information of a first wireless communication module is acquired. And inquiring a data set to obtain dialing configuration data corresponding to the first wireless communication module. By the method, efficient automatic generation of dialing configuration is realized.

Description

Wireless communication module configuration generation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for generating a configuration of a wireless communication module, an electronic device, and a storage medium.
Background
At present, with the rapid development of mobile communication technology, wireless communication modules are widely applied to the fields of base station monitoring, vehicle monitoring, wireless meter reading, industrial data acquisition systems, water wave meteorological monitoring and the like due to the advantages of low cost, long transmission distance, distributivity, independence, mobility and the like.
However, in the market, the wireless communication modules are various in types, and different wireless communication modules have different device information, communication ports and dialing instruction sets, and when one module is added, corresponding dialing configuration needs to be made for the module, so that the wireless module can be dialed according to instructions in the configuration, and dial-up networking is realized. In the prior art, a method of manually configuring by technicians is generally adopted, so that the workload is remarkably increased.
Therefore, how to efficiently realize automatic generation of dialing configuration of the wireless communication module becomes a focus of current research.
Disclosure of Invention
The application provides a method and a device for generating configuration of a wireless communication module, an electronic device and a storage medium, which are used for realizing efficient generation of dialing configuration of the wireless communication module.
In a first aspect, the present application provides a method for generating a wireless communication module configuration, including: acquiring first equipment information of a first wireless communication module; querying a data set to obtain dialing configuration data corresponding to the first wireless communication module, where the dialing configuration data corresponding to the first wireless communication module includes the first device information; the data set comprises dialing configuration data corresponding to each known wireless communication module, the dialing configuration data comprises equipment information of the wireless communication module and an instruction set of the wireless communication module, and the instruction set comprises instructions under each function.
In a possible implementation manner, the dialing configuration data further includes a communication port corresponding to the wireless communication module; before the querying the data set and obtaining the dialing configuration data corresponding to the first wireless communication module, the method further includes: creating a communication port corresponding to the first wireless communication module based on the first device information; the method further comprises the following steps: if the dialing configuration data corresponding to the first wireless communication module does not exist in the data set, loading an instruction set of each known wireless communication module from the data set, and performing instruction testing by sending the instruction set of each known wireless communication module to a communication port corresponding to the first wireless communication module; establishing an instruction set of the first wireless communication module, wherein the instruction set of the first wireless communication module comprises instructions under the functions which pass the test; and establishing dialing configuration data corresponding to the first wireless communication module according to the first device information, the communication port corresponding to the first wireless communication module and the instruction set of the first wireless communication module, and storing the dialing configuration data to the data set.
In one possible implementation, in the instruction set of each known wireless communication module, the instructions under the respective functions are described in the form of a vertex activity graph; the instruction sets of the known wireless communication modules are arranged in a contiguous table manner.
In a possible implementation manner, the performing an instruction test by sending an instruction set of each known wireless communication module to a communication port corresponding to the first wireless communication module includes: traversing instruction sets of the known wireless communication modules in a depth-first mode; in the traversing process, aiming at a currently traversed instruction set, acquiring and skipping a first instruction in the instruction set, wherein the first instruction is used for identifying a wireless communication module; for each instruction except the first instruction in the instruction set, sequentially executing the following processing until the instruction response fails, and traversing the instruction set of the next known wireless communication module: sending the instruction to a communication port corresponding to the first wireless communication module; and if the instruction response is correct, adding the instruction to the instruction set of the first wireless communication module.
In a possible implementation manner, if there is a failure in response of the instruction of the first function under the instruction sets of the known wireless communication modules, acquiring an alternative instruction in the alternative instruction set of the first function, and performing an instruction test by sending the alternative instruction to the communication port corresponding to the first wireless communication module; and adding the tested instruction in the alternative instruction set of the first function as the instruction under the first function to the instruction set of the first wireless communication module.
In a possible implementation manner, the obtaining of the candidate instruction in the candidate instruction set of the first function and performing an instruction test by sending the candidate instruction to a communication port corresponding to the first wireless communication module includes: sequentially acquiring alternative instructions in the alternative instruction set of the first function according to a strategy that the in-degree of the instructions is from large to small; and sending the currently acquired instruction to a communication port corresponding to the first wireless communication module so as to perform instruction testing on the instruction.
In one possible implementation, the functions include: the system is used for identifying the starting point, the manufacturer information, the SIM card state, the international mobile subscriber identity, the network registration state, the network type and the signal strength of the wireless communication module.
In one possible implementation, the first device information includes a vendor identification and a product identification code.
In a second aspect, the present application provides a wireless communication module configuration generating apparatus, including: the acquisition module is used for acquiring first equipment information of the first wireless communication module; a data set management module, configured to query a data set and obtain dialing configuration data corresponding to the first wireless communication module, where the dialing configuration data corresponding to the first wireless communication module includes the first device information; the data set comprises dialing configuration data corresponding to each known wireless communication module, the dialing configuration data comprises equipment information of the wireless communication module and an instruction set of the wireless communication module, and the instruction set comprises instructions under each function.
In a possible implementation manner, the dialing configuration data further includes a communication port corresponding to the wireless communication module; the device further comprises: the identification module is used for creating a communication port corresponding to the first wireless communication module based on the first equipment information before the data set management module inquires a data set and obtains dialing configuration data corresponding to the first wireless communication module; the instruction set generating module is used for loading the instruction set of each known wireless communication module from the data set if the dialing configuration data corresponding to the first wireless communication module does not exist in the data set, and performing instruction testing by sending the instruction set of each known wireless communication module to the communication port corresponding to the first wireless communication module; the instruction set generating module is further configured to establish an instruction set of the first wireless communication module, where the instruction set of the first wireless communication module includes instructions under the functions that are passed through the test; the instruction set generating module is further configured to establish dialing configuration data corresponding to the first wireless communication module according to the first device information, the communication port corresponding to the first wireless communication module, and the instruction set of the first wireless communication module, and store the dialing configuration data in the data set.
In one possible implementation, in the instruction set of each known wireless communication module, the instructions under the respective functions are described in the form of a vertex activity graph; the instruction sets of the known wireless communication modules are arranged in a contiguous table manner.
In a possible implementation manner, the instruction set generating module is specifically configured to traverse instruction sets of known wireless communication modules in a depth-first manner; the instruction set generating module is specifically configured to, in a traversal process, acquire and skip a first instruction in an instruction set of a current traversal, where the first instruction is used to identify a wireless communication module; for each instruction except the first instruction in the instruction set, sequentially executing the following processing until the instruction response fails, and traversing the instruction set of the next known wireless communication module: sending the instruction to a communication port corresponding to the first wireless communication module; and if the instruction response is correct, adding the instruction to the instruction set of the first wireless communication module.
In a possible implementation manner, the instruction set generating module is further configured to, if there is a failure in response of the instruction of the first function in the instruction sets of the known wireless communication modules, obtain an alternative instruction in the alternative instruction set of the first function, and perform an instruction test by sending the alternative instruction to the communication port corresponding to the first wireless communication module; the instruction set generating module is further configured to add, to the instruction set of the first wireless communication module, an instruction in the alternative instruction set of the first function, which passes the test, as an instruction in the first function.
In a possible implementation manner, the instruction set generating module is specifically configured to sequentially obtain alternative instructions in the alternative instruction set of the first function according to a policy that an in-degree of the instruction is from large to small; the instruction set generating module is specifically further configured to send a currently acquired instruction to a communication port corresponding to the first wireless communication module, so as to perform instruction testing on the instruction.
In one possible implementation, the functions include: the system is used for identifying the starting point, the manufacturer information, the SIM card state, the international mobile subscriber identity, the network registration state, the network type and the signal strength of the wireless communication module.
In one possible implementation, the first device information includes a vendor identification and a product identification code.
In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor; the memory stores computer-executable instructions; the processor executes computer-executable instructions stored by the memory to implement the method of any of the first aspects.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for execution by a processor to perform the method of any of the first aspects.
In a fifth aspect, the present application provides a computer program product comprising a computer program for execution by a processor of the method according to any one of the first aspect.
According to the configuration generation method and device for the wireless communication module, the electronic device and the storage medium, the first device information of the first wireless communication module is obtained, and the dialing configuration data corresponding to the first wireless communication module is obtained through the query data set. Through the scheme, the dialing configuration of the wireless communication module can be realized without manual dialing configuration of the wireless communication module by personnel, so that the configuration efficiency is improved, and efficient dialing configuration is realized.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic view of an application scenario of a wireless communication module configuration generation method provided in the present application;
fig. 2 is a flowchart illustrating a method for generating a configuration of a wireless communication module according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a method for generating a configuration of a wireless communication module according to a second embodiment of the present application;
FIG. 4 is a diagram illustrating an instruction set loading data of a conventional wireless communication module;
fig. 5 is a schematic flowchart of a method for generating a configuration of a wireless communication module according to a third embodiment of the present application;
fig. 6 is a schematic structural diagram of a wireless communication module configuration generating apparatus according to a fourth embodiment of the present application;
fig. 7 is a block diagram of a wireless communication module configuration generating apparatus according to a sixth embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present application.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with aspects of the present application.
The terms involved are explained first:
wireless communication: long-distance transmission communication among a plurality of nodes without propagation through conductors or cables;
the AT commands: and the instruction is applied to connection and communication between the terminal equipment and the PC application.
Fig. 1 is a schematic view of an application scenario of a wireless communication module configuration generation method provided in an embodiment of the present application, and as shown in fig. 1, the scenario includes: a first wireless communication module 1, a USB2, and a terminal 3 integrated with a wireless communication module configuration generating device.
Exemplified in connection with the illustrated scenario: when the first wireless communication module 1 is connected to the terminal 3 through the USB2, the wireless communication module configuration generating module in the terminal acquires the first device information of the first wireless communication module, queries the data set management module, and acquires the corresponding dialing configuration data. Thereby realizing the dialing configuration of the wireless communication module which is conveniently and efficiently generated.
The following describes an example of the embodiments of the present application with reference to the following embodiments.
Example one
Fig. 2 is a flowchart illustrating a method for generating a wireless communication module configuration according to an embodiment of the present application, where the method includes the following steps:
s101, acquiring first equipment information of a first wireless communication module;
s102, inquiring a data set to obtain dialing configuration data corresponding to the first wireless communication module, wherein the dialing configuration data corresponding to the first wireless communication module comprises the first equipment information; the data set comprises dialing configuration data corresponding to each known wireless communication module, the dialing configuration data comprises equipment information of the wireless communication module and an instruction set of the wireless communication module, and the instruction set comprises instructions under each function.
In practical applications, the executing entity of the embodiment may be a wireless communication module configuration generation apparatus, and the wireless communication module configuration generation apparatus is implemented in various ways. For example, the program may be software, or a medium storing a related computer program, such as a usb disk; alternatively, the apparatus may also be a physical device integrated with or installed with an associated computer program, the physical device supporting USB interface connection, for example, a chip, an intelligent terminal, a computer, a server, and the like.
The wireless communication module can be a device module supporting long-distance transmission communication. By taking the scene of the internet of things as an example, the wireless communication module is an information inlet of various intelligent terminals accessed to the internet of things and is a link for connecting the sensing layer and the network layer of the internet of things. The application vector can include but is not limited to: the monitoring system comprises a monitoring camera, a smart grid, a tablet computer, a mobile phone terminal, a vehicle-mounted system and the like. In one example, the first device information includes a vendor identification and a product identification code.
Optionally, the functions include but are not limited to: a starting point for identifying the wireless communication module, vendor information (MI), SIM card status (SS), International Mobile Subscriber Identity (IMSI), network registration status (NR), Network Type (NT), and Signal Strength (SST).
Combining a scene example: the types of the wireless communication modules are many, the dialing configuration of different types of wireless communication modules is different, and the dialing configuration of the wireless communication modules is required for realizing the normal communication of the wireless communication modules. Taking an example scenario of replacement as an example, when a wireless communication module in a certain device needs to be replaced, a new wireless communication module (not currently configured) may be connected to the wireless communication module configuration generating apparatus. In one example, the wireless communication module and the wireless communication module configuration generation apparatus may be connected by USB. After connection, the wireless communication module configuration generation device can automatically acquire the equipment information of the currently connected wireless communication module; and then, inquiring a data set to obtain dialing configuration data corresponding to the wireless communication module, wherein the data set comprises the dialing configuration data corresponding to a plurality of known wireless communication modules. The "known wireless communication module" herein refers to a wireless communication module that has established dialing configuration data in a data set. After the dialing configuration data is obtained, the dialing configuration can be carried out on the currently accessed wireless communication module based on the dialing configuration data, so that the dialing configuration is automatically completed, and the configuration efficiency and reliability are improved.
In practical application, dial configuration data in a data set needs to be established. Optionally, the dialing configuration data may be obtained by external import, and correspondingly, the method further includes: and importing the dialing configuration data corresponding to the wireless communication module into the data set. The import mode may be various, for example, but not limited to, the import is transmitted through a USB interface. Optionally, the dialing configuration data may also be generated according to the currently accessed wireless communication module and stored in the data set, and a specific generation method is described in an example in the embodiment described later.
In one example, the dialing configuration data further includes a communication port corresponding to the wireless communication module. The method further comprises the following steps: and creating a communication port corresponding to the first wireless communication module based on the first device information.
In the method for generating a configuration of a wireless communication module provided in this embodiment, first device information of a first wireless communication module is acquired. And inquiring a data set to obtain dialing configuration data corresponding to the first wireless communication module. And subsequently, based on the first device information, creating a communication port corresponding to the first wireless communication module. An instruction set for the first wireless communication module is established. And establishing dialing configuration data corresponding to the first wireless communication module according to the first equipment information, the communication port corresponding to the first wireless communication module and the instruction set of the first wireless communication module, and storing the dialing configuration data into the data set to realize efficient dialing configuration.
Example two
Fig. 3 is a schematic flowchart of a method for generating a configuration of a wireless communication module according to a second embodiment of the present application, where on the basis of the first embodiment, this embodiment illustrates a procedure for establishing dialing configuration data corresponding to the wireless communication module, and as shown in fig. 3, on the basis of the first embodiment, the method further includes:
s104, establishing a communication port corresponding to the first wireless communication module based on the first equipment information;
correspondingly, the method further comprises the following steps:
s105, if the dialing configuration data corresponding to the first wireless communication module does not exist in the data set, loading an instruction set of each known wireless communication module from the data set, and performing instruction testing by sending the instruction set of each known wireless communication module to a communication port corresponding to the first wireless communication module;
s106, establishing an instruction set of the first wireless communication module, wherein the instruction set of the first wireless communication module comprises instructions under each function which passes the test;
s107, according to the first device information, the communication port corresponding to the first wireless communication module and the instruction set of the first wireless communication module, establishing dialing configuration data corresponding to the first wireless communication module, and storing the dialing configuration data to the data set.
Combining a scene example: if the currently accessed wireless communication module is an unknown wireless communication module, that is, the data set does not have the dialing configuration data corresponding to the wireless communication module, the corresponding dialing configuration data is established for the wireless communication module. Specifically, the instruction sets of the known wireless communication modules are loaded from the data set, and then the instruction sets are sent to the communication ports corresponding to the first wireless communication module to perform instruction testing; the instruction passing the test is used as the instruction of the wireless communication module accessed currently; after the instructions of the wireless communication module under each function are obtained, the instruction set of the wireless communication module is obtained, and finally, dialing configuration data corresponding to the wireless communication module is established based on the equipment information, the corresponding communication port and the instruction set of the wireless communication module which is accessed currently. Optionally, the established dialing configuration data may be stored in a data set, so as to update and perfect the data set.
In one example, in the instruction set of each known wireless communication module, the instructions under the respective functions are described in the form of a vertex activity graph; the instruction sets of the known wireless communication modules are arranged in a contiguous table manner. As an example, fig. 4 is a schematic diagram illustrating loading data in an instruction set of a known wireless communication module, as shown in fig. 4, M1, M2, and M3 are respectively different wireless communication modules, and the corresponding functions of each wireless communication module include: starting point, manufacturer information, SIM card status, IMSI, network registration status, network type and signal strength. The starting point is used to identify the wireless communication module, for example, 0.1 is used to identify the M1 module and 0.2 is used to identify the M2 module.
Since the instructions under a certain function may be the same for different wireless communication modules, to simplify the instruction set to increase the loading speed, in one example, the instructions under each function are described in the form of a vertex activity graph. By way of example, in the figure, the command of the M1 module under the vendor information is 1.1, the command of the M1 module under the SIM card state is 2.1, the command of the M1 module under the IMSI function is 3.1, the command of the M1 module under the network registration state is 4.1, the command of the M1 module under the network format is 5.1, and the command of the M1 module under the signal strength is 6.1. The arrows in the figure represent the form of the vertex activity map. In another example, the instruction sets of each known wireless communication module are arranged in an adjacency list. By way of example in the figure, the M1 module, M2 module, and M3 module are arranged adjacent to each other.
In the process of performing the instruction test, the instruction set of each known wireless communication module can be traversed. Optionally, in S105, the sending an instruction set of each known wireless communication module to the communication port corresponding to the first wireless communication module to perform an instruction test may specifically include:
the instruction set of each known wireless communication module is traversed in a depth-first manner.
In the traversing process, aiming at a currently traversed instruction set, acquiring and skipping a first instruction in the instruction set, wherein the first instruction is used for identifying a wireless communication module; for each instruction except the first instruction in the instruction set, sequentially executing the following processing until the instruction response fails, and traversing the instruction set of the next known wireless communication module: sending the instruction to a communication port corresponding to the first wireless communication module; and if the instruction response is correct, adding the instruction to the instruction set of the first wireless communication module.
Wherein depth-first means that each branch path is deep into the end point. Specifically, since the first command in the command set of the wireless communication module is used for identification, no command test needs to be performed on such commands, and accordingly, the first command in the currently traversed command set, such as commands 0.1, 0.2, and 0.3 in fig. 4, i.e., the first commands in the command sets of the M1 module, the M2 module, and the M3 module, respectively, are skipped. And sequentially sending the currently traversed instruction to the communication port of the currently connected wireless communication module aiming at other instructions, and taking the instruction as the instruction of the wireless communication module if the instruction response is correct. Otherwise, if the instruction response is wrong, skipping the currently traversed instruction set, and traversing the instruction set of the next module.
Exemplified in connection with fig. 4: taking the currently traversed module as an M1 module as an example, skipping the first instruction 0.1, sending the instruction 1.1 to the communication port of the currently connected wireless communication module aiming at the next instruction 1.1, and if the instruction response is correct, taking the instruction 1.1 as an instruction in the instruction set of the wireless communication module under the vendor information; if the instruction response is wrong, skipping the instruction set of the M1 module, using the instruction set of the M2 module as the instruction set of the current traversal, and continuing the traversal to execute the instruction test.
Optionally, on the basis of the above example, the method further includes:
if the response of the instruction with the first function fails under the instruction sets of the known wireless communication modules, acquiring an alternative instruction in the alternative instruction set with the first function, and performing instruction testing by sending the alternative instruction to a communication port corresponding to the first wireless communication module;
and adding the tested instruction in the alternative instruction set of the first function as the instruction under the first function to the instruction set of the first wireless communication module.
Wherein an alternative instruction refers to a single instruction known in the device.
Combining a scene example: it is assumed that after traversing the instruction sets of all known wireless communication modules in the data set, there are still instructions that are not established. For example, in the instruction testing process, if there is no instruction test under a certain function, the instruction testing is performed on the candidate instruction set of the function by using the method of sending the instruction to the communication port of the wireless communication module, and the candidate instruction that passes the test is used as the instruction under the function in the instruction set of the wireless communication module. Thereby establishing the instruction set of the currently connected wireless communication module.
The order of the instruction test can be preset. In an example, the obtaining of the candidate instruction in the candidate instruction set of the first function and performing an instruction test by sending the candidate instruction to the communication port corresponding to the first wireless communication module may specifically include:
sequentially acquiring alternative instructions in the alternative instruction set of the first function according to a strategy that the in-degree of the instructions is from large to small;
and sending the currently acquired instruction to a communication port corresponding to the first wireless communication module so as to perform instruction testing on the instruction.
In this embodiment, an instruction test of the candidate instruction is performed according to the in-degree of the instruction, and the instruction passing the test is recorded, so as to obtain the instruction set of the first wireless communication module.
Still in conjunction with the above embodiments and fig. 4, there is illustrated: when the instruction set of the known wireless communication module M1 is tested, an instruction 0.1 is taken out firstly, and the vertex is only used for identifying different wireless communication modules, so that the test is not carried out; taking out 0.1 next adjacent vertex 1.1, and sending a command corresponding to 1.1 to the communication port; if the instruction responds correctly, the MI is fetchedi1The next adjacent vertex 2.1 of the communication port sends an instruction corresponding to the 2.1 to the communication port, and the subsequent 3.1, 4.1, 5.1 and 6.1 are processed in the way; if the instruction does not respond correctly, a 0.2 instruction is fetchedWhen the instructions of a certain function in the known wireless communication module instruction set can not correctly respond, the instructions are taken out from the alternative instruction set of the function according to the degree of entry of the alternative instructions from large to small, and the test is carried out in sequence until the test is successful; searching the next adjacent vertex of the vertex corresponding to the instruction from the adjacent table, if the next adjacent vertex is found, continuing to test the subsequent function, and if the next adjacent vertex is not found, selecting the instruction of the corresponding function from the alternative instructions to test; and when the instructions corresponding to all functions pass the test, generating an unknown module instruction set, and adding the instruction set into the known wireless communication module instruction set.
In the method for generating a configuration of a wireless communication module provided in this embodiment, a communication port corresponding to the first wireless communication module is created based on the first device information. An instruction set for the first wireless communication module is established. And establishing dialing configuration data corresponding to the first wireless communication module according to the first device information, the communication port corresponding to the first wireless communication module and the instruction set of the first wireless communication module, and storing the dialing configuration data to the data set. Through the scheme, the dialing configuration data of the currently connected wireless communication module can be established under the condition that the data set does not contain the corresponding dialing configuration data, so that the dialing configuration is completed, the configuration reliability is ensured, and the data set is updated.
EXAMPLE III
Fig. 5 is a schematic flowchart of a method for generating a wireless communication module configuration according to a third embodiment of the present application, and as shown in fig. 5, this embodiment is described by way of example with reference to the foregoing embodiments, and specifically includes the following steps:
s201, acquiring first equipment information of a first wireless communication module;
s202, based on the first device information, a communication port corresponding to the first wireless communication module is created;
s203, inquiring a data set, and judging whether dialing configuration data corresponding to the first wireless communication module exists or not; if yes, go to step 204; otherwise, S205-S207 are executed.
The dialing configuration data corresponding to the first wireless communication module comprises the first equipment information; the data set comprises dialing configuration data corresponding to each known wireless communication module, the dialing configuration data comprise equipment information of the wireless communication module and an instruction set of the wireless communication module, and the instruction set comprises instructions under each function;
s204, generating the configuration S205 of the first wireless communication module, loading the instruction set of each known wireless communication module from a data set, and performing instruction testing by sending the instruction set of each known wireless communication module to a communication port corresponding to the first wireless communication module;
s206, establishing an instruction set of the first wireless communication module, wherein the instruction set of the first wireless communication module comprises instructions under each function which passes the test;
s207, according to the first device information, the communication port corresponding to the first wireless communication module and the instruction set of the first wireless communication module, establishing dialing configuration data corresponding to the first wireless communication module, and storing the dialing configuration data to the data set. In one example, after performing S207, S202 or S204 may be performed.
In the method for generating a configuration of a wireless communication module provided in this embodiment, a communication port corresponding to a first wireless communication module is created by obtaining configuration generation information of the first wireless communication module, and an instruction set of the first wireless communication module is established, so that dial configuration data corresponding to the first wireless communication module is obtained, and efficient dial configuration is implemented.
Example four
Fig. 6 is a schematic structural diagram of a wireless communication module configuration generating apparatus according to a fourth embodiment of the present application, and as shown in fig. 6, the apparatus includes:
an obtaining module 61, configured to obtain first device information of a first wireless communication module;
a data set management module 62, configured to query a data set to obtain dialing configuration data corresponding to the first wireless communication module, where the dialing configuration data corresponding to the first wireless communication module includes the first device information; the data set comprises dialing configuration data corresponding to each known wireless communication module, the dialing configuration data comprises equipment information of the wireless communication module and an instruction set of the wireless communication module, and the instruction set comprises instructions under each function.
As an example, the wireless communication module configuration generating device may be program software, or a medium storing a related computer program, such as a usb disk; alternatively, the apparatus may also be a physical device integrated with or installed with an associated computer program, the physical device supporting USB interface connection, for example, a chip, an intelligent terminal, a computer, a server, and the like.
In one example, the wireless communication module and the wireless communication module configuration generation apparatus may be connected by USB. After connection, the acquisition module 61 of the wireless communication module configuration generation device can automatically acquire the device information of the currently connected wireless communication module; then, the data set management module 62 queries a data set to obtain dialing configuration data corresponding to the wireless communication module, where the data set includes dialing configuration data corresponding to a plurality of known wireless communication modules. The "known wireless communication module" herein refers to a wireless communication module that has established dialing configuration data in a data set.
In one example, the dialing configuration data further includes a communication port corresponding to the wireless communication module.
In the wireless communication module configuration generating apparatus provided in this embodiment, the obtaining module obtains first device information of the first wireless communication module. And the data set management module inquires a data set to obtain dialing configuration data corresponding to the first wireless communication module. And subsequently, based on the first device information, creating a communication port corresponding to the first wireless communication module. An instruction set for the first wireless communication module is established. And establishing dialing configuration data corresponding to the first wireless communication module according to the first equipment information, the communication port corresponding to the first wireless communication module and the instruction set of the first wireless communication module, and storing the dialing configuration data into the data set to realize efficient dialing configuration.
EXAMPLE five
An embodiment of the present application provides a wireless communication module configuration generating apparatus, and on the basis of the fourth embodiment, the apparatus further includes:
the identification module is used for creating a communication port corresponding to the first wireless communication module based on the first equipment information;
and the instruction set generating module is used for loading the instruction set of each known wireless communication module from the data set if the dialing configuration data corresponding to the first wireless communication module does not exist in the data set, and performing instruction testing by sending the instruction set of each known wireless communication module to the communication port corresponding to the first wireless communication module.
The instruction set generating module is further used for establishing an instruction set of the first wireless communication module, wherein the instruction set of the first wireless communication module comprises instructions under the functions which pass the test;
the instruction set generating module is further configured to establish dialing configuration data corresponding to the first wireless communication module according to the first device information, the communication port corresponding to the first wireless communication module, and the instruction set of the first wireless communication module, and store the dialing configuration data in the data set;
in one example, in the instruction set of each known wireless communication module, the instructions under the respective functions are described in the form of a vertex activity graph;
the instruction sets of the known wireless communication modules are arranged in a contiguous table manner.
In one example, the instruction set generating module is specifically configured to traverse the instruction sets of the known wireless communication modules in a depth-first manner;
the instruction set generating module is specifically configured to, in a traversal process, acquire and skip a first instruction in an instruction set for a current traversal instruction set, where the first instruction is used to identify the wireless communication module; for each instruction except the first instruction in the instruction set, sequentially executing the following processing until the instruction response fails, and traversing the instruction set of the next known wireless communication module: sending the instruction to a communication port corresponding to the first wireless communication module; and if the instruction response is correct, adding the instruction to the instruction set of the first wireless communication module.
In an example, the instruction set generating module is further configured to, if there is a failure in response of the instruction of the first function in the instruction sets of the known wireless communication modules, obtain an alternative instruction in the alternative instruction set of the first function, and perform an instruction test by sending the alternative instruction to the communication port corresponding to the first wireless communication module;
and the instruction set generation module is further configured to add an instruction that passes the test in the alternative instruction set of the first function to the instruction set of the first wireless communication module as an instruction under the first function.
In an example, the instruction set generating module is specifically configured to sequentially acquire, according to a policy that an instruction in-degree is from large to small, alternative instructions in an alternative instruction set of the first function;
the instruction set generating module is specifically configured to send a currently acquired instruction to a communication port corresponding to the first wireless communication module, so as to perform instruction testing on the instruction.
Combining a scene example: if the currently accessed wireless communication module is an unknown wireless communication module, that is, the data set does not have the dialing configuration data corresponding to the wireless communication module, the corresponding dialing configuration data is established for the wireless communication module. Specifically, the instruction set generating module loads the instruction sets of the known wireless communication modules from the data set, and then sends the instruction sets to the communication ports corresponding to the first wireless communication module to perform instruction testing; the instruction passing the test is used as the instruction of the wireless communication module accessed currently; after the instructions of the wireless communication module under each function are obtained, the instruction set of the wireless communication module is obtained, and finally, dialing configuration data corresponding to the wireless communication module is established based on the equipment information, the corresponding communication port and the instruction set of the wireless communication module which is accessed currently. Optionally, the established dialing configuration data may be stored in a data set, so as to update and perfect the data set.
In the wireless communication module configuration generating apparatus provided in this embodiment, a communication port corresponding to the first wireless communication module is created based on the first device information. An instruction set for the first wireless communication module is established. And establishing dialing configuration data corresponding to the first wireless communication module according to the first device information, the communication port corresponding to the first wireless communication module and the instruction set of the first wireless communication module, and storing the dialing configuration data to the data set. Through the scheme, the dialing configuration data of the currently connected wireless communication module can be established under the condition that the data set does not contain the corresponding dialing configuration data, so that the dialing configuration is completed, the configuration reliability is ensured, and the data set is updated.
EXAMPLE six
Fig. 7 is a block diagram illustrating an apparatus generated by a wireless communication module configuration according to an exemplary embodiment, which may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
The apparatus 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
EXAMPLE seven
Fig. 8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 8, the electronic device includes:
a processor (processor)291, the electronic device further including a memory (memory) 292; a Communication Interface 293 and bus 294 may also be included. The processor 291, the memory 292, and the communication interface 293 may communicate with each other via the bus 294. Communication interface 293 may be used for the transmission of information. Processor 291 may call logic instructions in memory 294 to perform the methods of the embodiments described above.
Further, the logic instructions in the memory 292 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 292 is a computer-readable storage medium for storing software programs, computer-executable programs, such as program instructions/modules corresponding to the methods in the embodiments of the present application. The processor 291 executes the functional application and data processing by executing the software program, instructions and modules stored in the memory 292, so as to implement the method in the above method embodiments.
The memory 292 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device, and the like. Further, the memory 292 may include a high speed random access memory and may also include a non-volatile memory.
The present application provides a non-transitory computer-readable storage medium, in which computer-executable instructions are stored, and when executed by a processor, the computer-executable instructions are used to implement the method according to the foregoing embodiments.
The present application provides a computer program product, including a computer program, which when executed by a processor implements the method according to the foregoing embodiments.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for generating a configuration of a wireless communication module, comprising:
acquiring first equipment information of a first wireless communication module;
querying a data set to obtain dialing configuration data corresponding to the first wireless communication module, where the dialing configuration data corresponding to the first wireless communication module includes the first device information; the data set comprises dialing configuration data corresponding to each known wireless communication module, the dialing configuration data comprises equipment information of the wireless communication module and an instruction set of the wireless communication module, and the instruction set comprises instructions under each function.
2. The method of claim 1, wherein the dialing configuration data further includes a communication port corresponding to a wireless communication module; before the querying the data set and obtaining the dialing configuration data corresponding to the first wireless communication module, the method further includes:
creating a communication port corresponding to the first wireless communication module based on the first device information;
the method further comprises the following steps:
if the dialing configuration data corresponding to the first wireless communication module does not exist in the data set, loading an instruction set of each known wireless communication module from the data set, and performing instruction testing by sending the instruction set of each known wireless communication module to a communication port corresponding to the first wireless communication module;
establishing an instruction set of the first wireless communication module, wherein the instruction set of the first wireless communication module comprises instructions under the functions which pass the test;
and establishing dialing configuration data corresponding to the first wireless communication module according to the first device information, the communication port corresponding to the first wireless communication module and the instruction set of the first wireless communication module, and storing the dialing configuration data to the data set.
3. The method of claim 2, wherein in the instruction set of each known wireless communication module, the instructions under each function are described in the form of a vertex activity graph; the instruction sets of the known wireless communication modules are arranged in a contiguous table manner.
4. The method of claim 3, wherein the performing the command test by sending a command set of each known wireless communication module to the communication port corresponding to the first wireless communication module comprises:
traversing instruction sets of the known wireless communication modules in a depth-first mode;
in the traversing process, aiming at a currently traversed instruction set, acquiring and skipping a first instruction in the instruction set, wherein the first instruction is used for identifying a wireless communication module; for each instruction except the first instruction in the instruction set, sequentially executing the following processing until the instruction response fails, and traversing the instruction set of the next known wireless communication module: sending the instruction to a communication port corresponding to the first wireless communication module; and if the instruction response is correct, adding the instruction to the instruction set of the first wireless communication module.
5. The method of claim 4, further comprising:
if the response of the instruction with the first function fails under the instruction sets of the known wireless communication modules, acquiring an alternative instruction in the alternative instruction set with the first function, and performing instruction testing by sending the alternative instruction to a communication port corresponding to the first wireless communication module;
and adding the tested alternative instruction in the alternative instruction set of the first function as an instruction under the first function to the instruction set of the first wireless communication module.
6. The method according to claim 5, wherein the obtaining of the candidate instruction in the candidate instruction set of the first function and performing the instruction test by sending the candidate instruction to the communication port corresponding to the first wireless communication module comprises:
sequentially acquiring alternative instructions in the alternative instruction set of the first function according to a strategy that the in-degree of the instructions is from large to small;
and sending the currently acquired instruction to a communication port corresponding to the first wireless communication module so as to perform instruction testing on the instruction.
7. The method of claim 4, wherein the functions comprise: the system is used for identifying the starting point, the manufacturer information, the SIM card state, the international mobile subscriber identity, the network registration state, the network type and the signal strength of the wireless communication module.
8. A wireless communication module configuration generation apparatus, comprising:
the acquisition module is used for acquiring first equipment information of the first wireless communication module;
a data set management module, configured to query a data set and obtain dialing configuration data corresponding to the first wireless communication module, where the dialing configuration data corresponding to the first wireless communication module includes the first device information; the data set comprises dialing configuration data corresponding to each known wireless communication module, the dialing configuration data comprises equipment information of the wireless communication module and an instruction set of the wireless communication module, and the instruction set comprises instructions under each function.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1-7.
10. A computer-readable storage medium having computer-executable instructions stored therein, which when executed by a processor, are configured to implement the method of any one of claims 1-7.
CN202111403068.0A 2021-11-24 Wireless communication module configuration generation method and device, electronic equipment and storage medium Active CN114158066B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111403068.0A CN114158066B (en) 2021-11-24 Wireless communication module configuration generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111403068.0A CN114158066B (en) 2021-11-24 Wireless communication module configuration generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114158066A true CN114158066A (en) 2022-03-08
CN114158066B CN114158066B (en) 2024-07-30

Family

ID=

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7062545B1 (en) * 2000-10-10 2006-06-13 At&T Corp. System and method for managing dial platform configuration
CN101321099A (en) * 2007-06-06 2008-12-10 艾威梯软件技术(北京)有限公司 Method, device and system for automatic IP network access
CN102438329A (en) * 2011-10-12 2012-05-02 深圳市路畅科技有限公司 Dialing method of vehicle-mounted navigation device supporting multimode 3G (the 3rd generation) network
CN108572844A (en) * 2017-03-10 2018-09-25 杭州义益钛迪信息技术有限公司 A kind of adaptive method with dialing parameters of USB wireless communication modules
CN112543514A (en) * 2020-11-09 2021-03-23 深圳市广和通无线股份有限公司 Method and device for link recovery processing under narrowband Internet of things

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7062545B1 (en) * 2000-10-10 2006-06-13 At&T Corp. System and method for managing dial platform configuration
CN101321099A (en) * 2007-06-06 2008-12-10 艾威梯软件技术(北京)有限公司 Method, device and system for automatic IP network access
CN102438329A (en) * 2011-10-12 2012-05-02 深圳市路畅科技有限公司 Dialing method of vehicle-mounted navigation device supporting multimode 3G (the 3rd generation) network
CN108572844A (en) * 2017-03-10 2018-09-25 杭州义益钛迪信息技术有限公司 A kind of adaptive method with dialing parameters of USB wireless communication modules
CN112543514A (en) * 2020-11-09 2021-03-23 深圳市广和通无线股份有限公司 Method and device for link recovery processing under narrowband Internet of things

Similar Documents

Publication Publication Date Title
EP2975821B1 (en) Network connection method and apparatus
KR101727249B1 (en) Method, device, program and recording medium for testing terminal
CN107105478B (en) Network registration method and device
CN110383887B (en) Cell reselection method and device
CN106201610A (en) Web application accesses the method and device of the primary function of terminal
CN106454998A (en) Wireless local area network access method and apparatus, and terminal
CN104837181A (en) Network access method and device
EP3972302A1 (en) Network registration method, apparatus and system, and storage medium
CN104881342A (en) Terminal testing method and device
CN111158748A (en) Information acquisition method and device and storage medium
CN107070707B (en) Method and device for determining initialization mode of router
CN105260201A (en) Application installation methods and devices, and smart devices
CN104618987A (en) Method and device for accessing network
CN107395760B (en) Method and device for loading configuration file
CN106376053A (en) Network stationing method and device for terminal, and terminal
CN114158066B (en) Wireless communication module configuration generation method and device, electronic equipment and storage medium
US11064415B2 (en) Wireless communication method and apparatus
CN112383661B (en) Mobile terminal automatic test method and device, electronic equipment and storage medium
CN114158066A (en) Wireless communication module configuration generation method and device, electronic equipment and storage medium
CN112492665B (en) Random access method and device, PLMN (public land mobile network) identifier sending method and device
CN114449542B (en) Cell registration method, device and medium
CN103888612B (en) Call transferring method, device and terminal
CN105873154A (en) Network access method and device
CN112272405A (en) Terminal search network injection method, device, medium and electronic equipment
US20210037578A1 (en) Method, apparatus and system for establishing connection between terminal and core network to be accessed

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant