CN113254075A - Instruction execution method, instruction execution device, electronic device, and storage medium - Google Patents

Instruction execution method, instruction execution device, electronic device, and storage medium Download PDF

Info

Publication number
CN113254075A
CN113254075A CN202110644357.3A CN202110644357A CN113254075A CN 113254075 A CN113254075 A CN 113254075A CN 202110644357 A CN202110644357 A CN 202110644357A CN 113254075 A CN113254075 A CN 113254075A
Authority
CN
China
Prior art keywords
instruction
library
user dynamic
execution method
function
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
CN202110644357.3A
Other languages
Chinese (zh)
Other versions
CN113254075B (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.)
Quectel Wireless Solutions Co Ltd
Original Assignee
Quectel Wireless Solutions 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 Quectel Wireless Solutions Co Ltd filed Critical Quectel Wireless Solutions Co Ltd
Priority to CN202110644357.3A priority Critical patent/CN113254075B/en
Publication of CN113254075A publication Critical patent/CN113254075A/en
Application granted granted Critical
Publication of CN113254075B publication Critical patent/CN113254075B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • 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

Abstract

The embodiment of the invention relates to the field of data processing, and discloses an instruction execution method, an instruction execution device, electronic equipment and a storage medium. The instruction execution method comprises the following steps: responding to the AT instruction, and judging whether the AT instruction is an AT instruction in a user dynamic instruction library; the user dynamic instruction library is a pre-loaded instruction library and comprises AT instructions and AT instruction processing functions; if yes, calling an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library; if not, calling an AT instruction processing function corresponding to the AT instruction in the default instruction library. The technical scheme provided by the embodiment of the application can reduce the development workload of manufacturers.

Description

Instruction execution method, instruction execution device, electronic device, and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to an instruction execution method, an instruction execution apparatus, an electronic device, and a storage medium.
Background
The AT command is a way for the external device to interact with the high-pass module. The AT command is a character string started by the AT and is sent to the high-pass module by the external equipment through a serial port or a USB port. And after the high-pass module finishes processing, returning the result to the external equipment. There is a corresponding response regardless of whether the AT command execution is successful or not.
However, in the current solution, if some customers have their own AT command requirements, the requirements can only be transmitted to Original Equipment Manufacturers (OEMs), and the OEMs develop the requirements according to the customer requirements. For OEM manufacturers, different customers may have different AT order requirements, development effort is large and maintenance is difficult. And some AT commands depend on the application implementation of the customer, which cannot be realized by OEM manufacturers.
Disclosure of Invention
An embodiment of the present invention provides an instruction execution method, an instruction execution apparatus, an electronic device, and a storage medium, which can reduce development workload of manufacturers.
To solve the foregoing technical problem, in a first aspect, an embodiment of the present invention provides an instruction execution method, including: responding to the AT instruction, and judging whether the AT instruction is an AT instruction in a user dynamic instruction library; the user dynamic instruction library is a pre-loaded instruction library and comprises AT instructions and AT instruction processing functions; if yes, calling an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library; if not, calling an AT instruction processing function corresponding to the AT instruction in the default instruction library.
In a second aspect, an embodiment of the present invention provides an instruction execution apparatus, including: the device comprises a judgment module, a first processing module and a second processing module; the judging module is used for responding to the AT instruction and judging whether the AT instruction is an AT instruction in a user dynamic instruction library; the user dynamic instruction library comprises AT instructions and AT instruction processing functions; the first processing module is used for calling an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library after the AT instruction is determined to be the AT instruction in the user dynamic instruction library; and the second processing module is used for calling an AT instruction processing function corresponding to the AT instruction in the default instruction library after determining that the AT instruction is not the AT instruction in the user dynamic instruction library.
In a third aspect, an embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the instruction execution method as mentioned in the above embodiments.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the instruction execution method mentioned in the above embodiment.
According to the instruction execution method, the instruction execution device, the electronic device and the storage medium provided by the embodiment of the invention, the high-pass module is pre-loaded with the user dynamic instruction library, and the user dynamic instruction library stores the user-defined AT instruction and the AT instruction processing function, so that when the high-pass module receives the user-defined AT instruction, the AT instruction can be processed. When the AT instruction needs to be added by the user, the AT instruction only needs to be added in the user dynamic instruction library, and compared with the method for notifying the manufacturer to develop, the method is more convenient and fast, the user waiting time is reduced, and the development workload of the manufacturer is reduced.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a flow chart of a method of instruction execution in an embodiment of the present application;
FIG. 2 is a flow chart of a method of instruction execution in yet another embodiment of the present application;
FIG. 3 is a flow chart of a method of instruction execution in another embodiment of the present application;
FIG. 4 is a flow chart of a method of instruction execution in yet another embodiment of the present application;
FIG. 5 is a block diagram of an instruction execution apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that in various embodiments of the invention, numerous technical details are set forth in order to provide a better understanding of the present application. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not constitute any limitation to the specific implementation manner of the present invention, and the embodiments may be mutually incorporated and referred to without contradiction.
The AT command processing types of the high-pass module are classified into two types, one type is processed in a Baseband chip (BP), the other type is processed in an application chip (AP), and a service program for processing the AT command in the AP is ATFWD. After ATFWD is enabled, it registers the supported AT command with the BP. After receiving the AT command, the BP inquires whether the AT command can be processed by the BP, if so, the BP processes, if not, the BP inquires whether the AT command is registered by the AP, and if so, the BP forwards the AT command to an ATFWD service program of the AP for processing. If AT instructions need to be added according to the application scene of the high-pass module, the high-pass module needs to communicate with an OEM (original equipment manufacturer), the OEM is informed of the requirements, and the high-pass module is developed by the OEM to support the added AT instructions. This results in heavy OEM development effort and difficult maintenance, and some ATs instruct the OEM that it cannot implement.
In the embodiment of the present application, the instruction execution method shown in fig. 1 includes the following steps.
Step 101: and responding to the AT command, and judging whether the AT command is an AT command in a user dynamic command library. The user dynamic instruction library is a pre-loaded instruction library, and comprises an AT instruction and an AT instruction processing function. If yes, go to step 102, and if not, go to step 103.
Step 102: and calling an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library.
Step 103: and calling an AT instruction processing function corresponding to the AT instruction in the default instruction library.
In the embodiment of the application, because the high-pass module is pre-loaded with the user dynamic instruction library, and the user dynamic instruction library stores the AT instruction and the AT instruction processing function defined by the user, when the high-pass module receives the AT instruction defined by the user, the AT instruction can be processed. When the AT instruction needs to be added by the user, the AT instruction only needs to be added in the user dynamic instruction library, and compared with the method for notifying the manufacturer to develop, the method is more convenient and fast, the user waiting time is reduced, and the development workload of the manufacturer is reduced.
In one embodiment, prior to responding to the AT instruction, the instruction execution method further comprises: and loading the plug-in containing the user dynamic instruction library. In the application, the AT instruction in the high-pass module is expanded based on a plug-in mode, and the original program of the high-pass module is not involved, so that a user can develop the AT instruction without an ATFWD source code. Because the AT command realized by the user is separated from the AT command realized by the manufacturer, the condition that the AT commands realized by the user and the manufacturer are conflicted is reduced.
It should be noted that, as can be understood by those skilled in the art, the user dynamic instruction library may also be loaded to the high-pass module by other ways, and this embodiment is merely an example.
Optionally, the user dynamic instruction library further includes an operation function for instructing to set the reporting function; after loading the plug-in containing the user dynamic instruction library, the instruction execution method further comprises the following steps: the reporting function is set in the user dynamic instruction library by calling the operation function, so that the user dynamic instruction library calls the reporting function to report an Unsolicited Result Code (URC). Specifically, since the user dynamic instruction library cannot directly call the function in the ATFWD, the reporting function is set in the user dynamic instruction library by operating the function. The user dynamic instruction library can define a variable, store the function, and call the reporting function. And the user sends the URC defined by the user by defining the reporting function.
It should be noted that, as can be understood by those skilled in the art, in practical application, a reporting function may be set as needed, so that the reporting function reports different events, and the reported events are not limited in this embodiment.
In one embodiment, the instruction execution method is applied to an application chip of a high-pass module, and the high-pass module comprises the application chip and a baseband chip. Before responding to the AT instruction, the instruction execution method further comprises the following steps: registering AT instructions in a user dynamic instruction library and a default instruction library to a baseband chip of the high-pass module; after receiving the AT instruction, the baseband chip sends the AT instruction to the application chip if the AT instruction is determined to be the AT instruction registered by the application chip. Specifically, after receiving the AT command, the baseband chip of the high-pass module first queries whether the AT command is an AT command that can be processed by the baseband chip. If the AT instruction can be processed by the baseband chip, the baseband chip processes the AT instruction. If the AT command is not an AT command that can be processed by the baseband chip, whether the AT command is an AT command registered by the application chip (i.e., an AT command in the user dynamic command library and the default command library) is queried. If the AT instruction is registered by the application chip, the baseband chip forwards the AT instruction to the application chip. The application chip judges whether the AT instruction is an AT instruction in a user dynamic instruction library or not; if yes, calling an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library; if not, calling an AT instruction processing function corresponding to the AT instruction in the default instruction library. The ATFWD service routine of (1). In this embodiment, the AT instruction in the user dynamic instruction library is registered with the baseband chip, so that the baseband chip can acquire the AT instruction stored in the user dynamic instruction library, and then when receiving the AT instruction, the AT instruction is forwarded to the application chip, so that the application chip processes the AT instruction defined by the user.
In one embodiment, the user dynamic instruction library further comprises a get AT instruction list function. Before registering the AT instructions in the user dynamic instruction library and the default instruction library with the baseband chip of the high-pass module, the instruction execution method further comprises the following steps: and calling an AT instruction list acquiring function to acquire an AT instruction list in the user dynamic instruction library. Specifically, the user dynamic instruction library AT least comprises an AT instruction list acquiring function, so that the high-pass module acquires a user-defined AT instruction list by calling the function.
Optionally, after the AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library is called, or after the AT instruction processing function corresponding to the AT instruction in the default instruction library is called, the instruction execution method further includes: and returning the processing result of the AT instruction to the baseband chip. Specifically, after the application chip of the high-pass module calls the AT instruction processing function corresponding to the AT instruction, the processing result is returned to the baseband chip, so that the baseband chip can obtain the AT instruction processing result and execute the subsequent operation. For example, if the baseband chip does not receive the processing result of the AT instruction within the preset time, an alarm message is sent. If so, an error message is sent to inform the user that the high-pass module cannot process the AT command.
It should be noted that, those skilled in the art can understand that the baseband chip can also perform other operations, and this embodiment is merely an example.
Optionally, the user dynamic instruction library further comprises an initialization function; after loading the plug-in containing the user dynamic instruction library, the instruction execution method further comprises the following steps: and calling the initialization function to execute the initialization operation in the initialization function. Specifically, the initialization function defines the relevant code of the initialization operation that the user needs to perform. After the plug-in including the user dynamic instruction library is loaded, the initialization function is called. Wherein the initialization function is called once during the lifecycle of the plug-in loading.
It should be noted that, as can be understood by those skilled in the art, a user may need to place the logic of the initialization operation in the initialization function so as to perform the relevant initialization operation according to the defined logic, and the embodiment is not limited.
Optionally, the ATFWD in the application chip initiates a request for creating a communication channel to the baseband chip to create a communication channel between the baseband chip and the application chip, so that when the baseband chip receives an AT instruction registered by the application chip, the AT instruction can be transmitted to the application chip through the communication channel.
The above embodiments can be mutually combined and cited, for example, the following embodiments are examples after being combined, but not limited thereto; the embodiments can be arbitrarily combined into a new embodiment without contradiction.
In one embodiment, the instruction execution method shown in fig. 2 is applied to an application chip of a high-pass module, and the high-pass module comprises the application chip and a baseband chip. The instruction execution method includes the following steps.
Step 201: and loading the plug-in containing the user dynamic instruction library.
Step 202: and registering AT instructions in a user dynamic instruction library and a default instruction library to a baseband chip of the high-pass module. After receiving the AT instruction, the baseband chip sends the AT instruction to the application chip if the AT instruction is determined to be the AT instruction registered by the application chip.
Step 203: and judging whether an AT command is received. If yes, go to step 204, and if not, continue to wait for the AT command, i.e., continue to go to step 203.
Step 204: and responding to the AT command, and judging whether the AT command is an AT command in a user dynamic command library. The user dynamic instruction library is a pre-loaded instruction library, and comprises an AT instruction and an AT instruction processing function. If yes, go to step 205, and if not, go to step 206.
Step 205: and calling an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library.
Step 206: and calling an AT instruction processing function corresponding to the AT instruction in the default instruction library.
In one embodiment, the instruction execution method shown in fig. 3 is applied to an application chip of a high-pass module, and the high-pass module comprises the application chip and a baseband chip. The instruction execution method includes the following steps.
Step 301: and loading a plug-in including a user dynamic instruction library, and setting the reporting function in the user dynamic instruction library by calling the operation function.
Specifically, the reporting function is set in the user dynamic instruction library by calling the operation function, so that the user dynamic instruction library calls the reporting function to report the unsolicited result code URC.
Step 302: and registering AT instructions in a user dynamic instruction library and a default instruction library to a baseband chip of the high-pass module. After receiving the AT instruction, the baseband chip sends the AT instruction to the application chip if the AT instruction is determined to be the AT instruction registered by the application chip.
Step 303: and judging whether an AT command is received. If yes, go to step 304, and if not, continue to wait for the AT command, i.e., continue to step 303.
Step 304: and responding to the AT command, and judging whether the AT command is an AT command in a user dynamic command library. The user dynamic instruction library is a pre-loaded instruction library, and comprises an AT instruction and an AT instruction processing function. If yes, go to step 305, and if not, go to step 306.
Step 305: and calling an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library. Step 307 is then performed.
Step 306: and calling an AT instruction processing function corresponding to the AT instruction in the default instruction library.
In one embodiment, the instruction execution method shown in fig. 4 is applied to an application chip of a high-pass module, and the high-pass module comprises the application chip and a baseband chip. The instruction execution method includes the following steps.
Step 401: and loading the plug-in containing the user dynamic instruction library.
Specifically, the application chip includes an ATFWD program and a user dynamic instruction library implemented by a user. The ATFWD program is a processing program of an AT instruction in an operating system Linux, and an application chip is expanded in a plug-in-based mode. The user-implemented user dynamic instruction library may be a dynamic database generated by a customer compilation. Several functions with fixed names and types are realized in the user dynamic instruction library, including an initialization function, an AT instruction list acquisition function, an AT instruction processing function and an operation function. And the ATFWD dynamically loads the user dynamic instruction library by using a dlopen () function, acquires a function in the user dynamic instruction library by using a dlsysm system library function, and loads the function into the ATFWD program. Wherein dlopen () is a computer function that opens a specified dynamic link library file in a specified mode and returns a handle to the calling process of dlsysm ().
Step 402: and calling the initialization function to execute the initialization operation in the initialization function.
Step 403: and registering AT instructions in a user dynamic instruction library and a default instruction library to a baseband chip of the high-pass module. After receiving the AT instruction, the baseband chip sends the AT instruction to the application chip if the AT instruction is determined to be the AT instruction registered by the application chip.
Step 404: whether an AT command is received. If yes, go to step 405, otherwise, continue to wait for the AT command, i.e., continue to step 404.
Step 405: and responding to the AT command, and judging whether the AT command is an AT command in a user dynamic command library. The user dynamic instruction library is a pre-loaded instruction library, and comprises an AT instruction and an AT instruction processing function. If yes, go to step 406, and if not, go to step 407.
Step 406: and calling an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library. Step 408 is then performed.
Step 407: and calling an AT instruction processing function corresponding to the AT instruction in the default instruction library.
Step 408: and returning the processing result of the AT instruction to the baseband chip.
Specifically, after the ATFWD program of the application chip receives the AT command, it is preferred to search whether the user dynamic command library implemented by the user supports the AT command. If the support is provided, an AT instruction processing function of the user dynamic instruction library is called, and after the processing is completed, the result is returned to the baseband chip. If not, calling a corresponding AT instruction processing function in the ATFWD program, and after the processing is finished, returning the result to the baseband chip.
Optionally, in the process of executing the instruction execution method shown in fig. 4, the application chip sets the reporting function in the user dynamic instruction library by calling the operation function, so that the user dynamic instruction library calls the reporting function to report the URC.
In one embodiment, an example of a user implemented function with fixed names and types in the user dynamic instruction library is as follows:
typedef struct{
char*cmd;
ql_cu_at_handler_f*handler;
}ql_cu_at_def_t;
int ql_cu_at_init(void);
ql_cu_at_def_t*ql_cu_at_get_list(void);
int ql_cu_at_set_urc_handler(ql_cu_at_send_urc_f*func);
the above function example is a data structure form of AT commands implemented by a user. The user defines the AT designation to be implemented in the plug-in as an array of such structures, which the ATFWD fetches by a get AT instruction list function (e.g., the function named ql _ cu _ AT _ get _ list). Wherein, char cmd is the name of the AT command, and the ATFWD program judges whether the AT command is implemented in the plug-in or the ATFWD according to the name; ql _ cu _ AT _ handler _ f _ handler is an AT instruction processing function, and the defined AT instruction is called when being executed; ql _ cu _ at _ def _ t is a self-defined name of a structure body, and can also be defined as other names, and is only an example; int ql _ cu _ at _ init (void) represents an initialization function, the function is executed after the plug-in is loaded, and a user can put some initialization operations into the function to execute; ql _ cu _ AT _ def _ t _ ql _ cu _ AT _ get _ list (void) indicates that all the custom-defined AT instruction lists are obtained and called by the ATFWD program; int ql _ cu _ at _ set _ URC _ handler (ql _ cu _ at _ send _ URC _ f _ func) represents a reporting function, and if a URC needs to be sent in a user plug-in, a URC sending function returned by the function can be called.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the same logical relationship is included, which are all within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
An embodiment of the present application further provides an instruction execution apparatus, as shown in fig. 5, including: a judging module 501, a first processing module 502 and a second processing module 503. The judging module 501 is configured to respond to an AT instruction, and judge whether the AT instruction is an AT instruction in a user dynamic instruction library; the user dynamic instruction library comprises AT instructions and AT instruction processing functions. The first processing module 502 is configured to, after determining that the AT instruction is an AT instruction in the user dynamic instruction library, invoke an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library. The second processing module 503 is configured to, after determining that the AT instruction is not an AT instruction in the user dynamic instruction library, call an AT instruction processing function corresponding to the AT instruction in the default instruction library.
It should be understood that the present embodiment is a system embodiment corresponding to the above method embodiment, and the present embodiment can be implemented in cooperation with the above method embodiment. The related technical details mentioned in the above method embodiments are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related art details mentioned in the present embodiment can also be applied to the above-described method embodiments.
It should be noted that, all the modules involved in this embodiment are logic modules, and in practical application, one logic unit may be one physical unit, may also be a part of one physical unit, and may also be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, a unit which is not so closely related to solve the technical problem proposed by the present invention is not introduced in the present embodiment, but this does not indicate that there is no other unit in the present embodiment.
An embodiment of the present application further provides an electronic device, as shown in fig. 6, including: at least one processor 601; and a memory 602 communicatively coupled to the at least one processor 601; wherein the memory stores instructions executable by the at least one processor 601, the instructions being executable by the at least one processor 601 to enable the at least one processor 601 to perform the above-described method embodiments.
Where the memory 602 and the processor 601 are coupled by a bus, the bus may comprise any number of interconnected buses and bridges that couple one or more of the various circuits of the processor 601 and the memory 602 together. The bus may also connect various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 601 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 601.
The processor 601 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. While memory 602 may be used to store data used by processor 601 in performing operations.
An embodiment of the present application further provides a computer-readable storage medium storing a computer program. The computer program realizes the above-described method embodiments when executed by a processor.
That is, as can be understood by those skilled in the art, all or part of the steps in the method for implementing the embodiments described above may be implemented by a program instructing related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific embodiments for practicing the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.

Claims (10)

1. An instruction execution method, comprising:
responding to an AT instruction, and judging whether the AT instruction is the AT instruction in the user dynamic instruction library; the user dynamic instruction library is a pre-loaded instruction library and comprises AT instructions and AT instruction processing functions;
if yes, calling an AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library;
and if not, calling an AT instruction processing function corresponding to the AT instruction in a default instruction library.
2. The instruction execution method of claim 1, wherein prior to the responding to the AT instruction, the instruction execution method further comprises:
and loading the plug-in containing the user dynamic instruction library.
3. The instruction execution method of claim 1, wherein the instruction execution method is applied to an application chip of a high-pass module, and the high-pass module comprises the application chip and a baseband chip;
before the responding to the AT instruction, the instruction execution method further comprises:
registering AT instructions in the user dynamic instruction library and the default instruction library to a baseband chip of the high-pass module; after receiving the AT instruction, the baseband chip sends the AT instruction to the application chip if the AT instruction is determined to be the AT instruction registered by the application chip.
4. The instruction execution method of claim 3, wherein the user dynamic instruction library further comprises a get AT instruction list function;
before registering the AT instructions in the user dynamic instruction library and the default instruction library with the baseband chip of the high-pass module, the instruction execution method further includes:
and calling the function for obtaining the AT instruction list to obtain the AT instruction list in the user dynamic instruction library.
5. The instruction execution method of claim 3, wherein after the calling the AT instruction processing function corresponding to the AT instruction in the user dynamic instruction library or after the calling the AT instruction processing function corresponding to the AT instruction in the default instruction library, the instruction execution method further comprises:
and returning the processing result of the AT instruction to the baseband chip.
6. The instruction execution method of claim 3, wherein the user dynamic instruction library further comprises an initialization function;
after the loading of the plug-in containing the user dynamic instruction library, the instruction execution method further comprises:
and calling the initialization function to execute the initialization operation in the initialization function.
7. The instruction execution method of claim 2, wherein the user dynamic instruction library further comprises an operation function for instructing to set a reporting function;
after the loading of the plug-in containing the user dynamic instruction library, the instruction execution method further comprises:
and setting the reporting function in the user dynamic instruction library by calling the operation function so that the user dynamic instruction library calls the reporting function to report the unsolicited result code URC.
8. An instruction execution apparatus, comprising: the device comprises a judgment module, a first processing module and a second processing module;
the judging module is used for responding to an AT instruction and judging whether the AT instruction is an AT instruction in a user dynamic instruction library; the user dynamic instruction library comprises AT instructions and AT instruction processing functions;
the first processing module is used for calling an AT instruction processing function corresponding to the AT instruction in a user dynamic instruction library after the AT instruction is determined to be the AT instruction in the user dynamic instruction library;
and the second processing module is used for calling an AT instruction processing function corresponding to the AT instruction in a default instruction library after determining that the AT instruction is not the AT instruction in the user dynamic instruction library.
9. An electronic device, comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the instruction execution method of any one of claims 1 to 7.
10. A computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the instruction execution method of any one of claims 1 to 7.
CN202110644357.3A 2021-06-09 2021-06-09 Instruction execution method, instruction execution device, electronic device, and storage medium Active CN113254075B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110644357.3A CN113254075B (en) 2021-06-09 2021-06-09 Instruction execution method, instruction execution device, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110644357.3A CN113254075B (en) 2021-06-09 2021-06-09 Instruction execution method, instruction execution device, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN113254075A true CN113254075A (en) 2021-08-13
CN113254075B CN113254075B (en) 2024-02-13

Family

ID=77187387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110644357.3A Active CN113254075B (en) 2021-06-09 2021-06-09 Instruction execution method, instruction execution device, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN113254075B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361263A (en) * 2022-09-01 2022-11-18 上海睿赛德电子科技有限公司 AT command processing system and method based on embedded system
CN116055578A (en) * 2023-03-06 2023-05-02 北京朝歌数码科技股份有限公司 Lightweight AT protocol stack, communication method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5504901A (en) * 1989-09-08 1996-04-02 Digital Equipment Corporation Position independent code location system
US20080092149A1 (en) * 2006-10-05 2008-04-17 Rowbotham Graham D Modular architecture for a device interface component
CN103379519A (en) * 2012-04-18 2013-10-30 广州银禾网络通信有限公司 Smartphone-based mobile communication network testing method
US20150370560A1 (en) * 2014-06-09 2015-12-24 Lehigh University Methods for enforcing control flow of a computer program
CN107436752A (en) * 2017-07-20 2017-12-05 龙芯中科技术有限公司 Abnormal in-situ FTIR spectroelectrochemitry method, apparatus and computer-readable recording medium
CN110113403A (en) * 2019-04-28 2019-08-09 深圳市创维群欣安防科技股份有限公司 A kind of processing method, device and the computer equipment of AT instruction
CN111459564A (en) * 2020-04-26 2020-07-28 深圳康佳电子科技有限公司 Method and system for realizing boot phase initialization compatibility and computer equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5504901A (en) * 1989-09-08 1996-04-02 Digital Equipment Corporation Position independent code location system
US20080092149A1 (en) * 2006-10-05 2008-04-17 Rowbotham Graham D Modular architecture for a device interface component
CN103379519A (en) * 2012-04-18 2013-10-30 广州银禾网络通信有限公司 Smartphone-based mobile communication network testing method
US20150370560A1 (en) * 2014-06-09 2015-12-24 Lehigh University Methods for enforcing control flow of a computer program
CN107436752A (en) * 2017-07-20 2017-12-05 龙芯中科技术有限公司 Abnormal in-situ FTIR spectroelectrochemitry method, apparatus and computer-readable recording medium
CN110113403A (en) * 2019-04-28 2019-08-09 深圳市创维群欣安防科技股份有限公司 A kind of processing method, device and the computer equipment of AT instruction
CN111459564A (en) * 2020-04-26 2020-07-28 深圳康佳电子科技有限公司 Method and system for realizing boot phase initialization compatibility and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
黄树超: "高通与At指令:ATFWD解析", 《CNBLOGS.COM/SCHIPS/P/AT_COMMAND_IN_QUALCOMM_3_ATFWD.HTML》, pages 1 - 6 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361263A (en) * 2022-09-01 2022-11-18 上海睿赛德电子科技有限公司 AT command processing system and method based on embedded system
CN116055578A (en) * 2023-03-06 2023-05-02 北京朝歌数码科技股份有限公司 Lightweight AT protocol stack, communication method and system

Also Published As

Publication number Publication date
CN113254075B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
EP4020252A1 (en) Data analysis method and device, apparatus, and storage medium
CN113254075B (en) Instruction execution method, instruction execution device, electronic device, and storage medium
CN108803577B (en) Diagnosis method, upper computer and lower computer
RU2176816C2 (en) Supporting host computer with capability information of slave computer
EP4207707A1 (en) Data transmission system, data transmission method, smart vehicle and device
US10078532B2 (en) Resource management method and device for terminal system among multiple operating systems
CN110377476B (en) Terminal testing method, terminal and readable storage medium
CN114424611A (en) Control of network functions
CN115422277A (en) Data source connection pool control method and device and server
CN115576627A (en) Middleware configuration management method, device, equipment, storage medium and operating machine
CN112134922B (en) Service calling method and device based on micro-service and storage medium
CN113836212A (en) Method for automatically generating Json data by database data, readable medium and electronic equipment
JP5502051B2 (en) Method for processing step execution results in software application control managed objects
CN112559199A (en) Device and method for controlling android Bluetooth in glibc environment and terminal equipment
US20090183172A1 (en) Middleware Bridge System And Method
CN115150271B (en) Gateway upgrading and data routing method, device, equipment and storage medium
US20230254381A1 (en) Service Request Handling
US20240155041A1 (en) Message Handling in a Fifth Generation Network
US20230309005A1 (en) Service request handling
CN115809102A (en) Data source configuration device, method and equipment
CN108255512B (en) Software configuration method and device for network system of terminal equipment
CN118012762A (en) Auxiliary method for message passing mechanism test of embedded operating system
CN116032968A (en) Internet of things equipment communication method and Internet of things equipment
CN116339727A (en) Application development method and device based on micro front end
CN116418668A (en) Adaptive configuration method, device and storage medium

Legal Events

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