CN111966613B - Communication module data processing method and device, computer equipment and storage medium - Google Patents

Communication module data processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111966613B
CN111966613B CN202010702237.XA CN202010702237A CN111966613B CN 111966613 B CN111966613 B CN 111966613B CN 202010702237 A CN202010702237 A CN 202010702237A CN 111966613 B CN111966613 B CN 111966613B
Authority
CN
China
Prior art keywords
target
service
driver
module
instruction
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.)
Active
Application number
CN202010702237.XA
Other languages
Chinese (zh)
Other versions
CN111966613A (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.)
Fibocom Wireless Inc
Original Assignee
Fibocom Wireless Inc
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 Fibocom Wireless Inc filed Critical Fibocom Wireless Inc
Priority to CN202010702237.XA priority Critical patent/CN111966613B/en
Publication of CN111966613A publication Critical patent/CN111966613A/en
Application granted granted Critical
Publication of CN111966613B publication Critical patent/CN111966613B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • 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/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The application relates to a communication module data processing method, a communication module data processing device, computer equipment and a storage medium. The method comprises the following steps: the method comprises the steps of obtaining a module service control instruction, wherein the module service control instruction carries a target service type and a target control type, determining a target control instruction code and a target communication instruction corresponding to the target control type through a target service drive corresponding to the target service type, wherein the target service drive is mounted under bus drive, sending the target service type, the target control instruction code and the target communication instruction to a data conversion module corresponding to a current operating system through a virtual interface corresponding to the current operating system, generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module, and sending the target control message to a communication module through the bus drive so that the communication module generates a corresponding response message according to the target control message. The method can improve the reusability of the target service drive.

Description

Communication module data processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing communication module data, a computer device, and a storage medium.
Background
With the development of communication technology, more and more communication modules are widely applied, and convenience is brought to the life of people. In order to satisfy diversification of the communication module functional services, a driver for implementing the corresponding functional services needs to be developed for the communication module.
Currently, drivers corresponding to various functional services are mainly developed based on a specific platform, for example, a high-pass platform development high-pass GNSS (Global Navigation Satellite System) driver.
However, a driver developed based on a particular platform is highly coupled to the platform and is only applicable to the particular platform. Therefore, even if the same function service is realized, corresponding drivers need to be developed for different platforms, which leads to waste of resources.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a communication module data processing method, device, computer device, and storage medium capable of driving reusability in response to the above-described technical problems.
A communication module data processing method, the method comprising:
acquiring a module service control instruction; the module service control instruction carries a target service type and a target control type;
determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service drive corresponding to the target service type; the target service driver is mounted under the bus driver;
sending the target service type, the target control instruction code and the target communication instruction to a data conversion module corresponding to the current operating system through a virtual interface corresponding to the current operating system;
generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module;
and sending the target control message to the communication module through the bus drive so that the communication module generates a corresponding response message according to the target control message.
In one embodiment, before determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service driver corresponding to the target service type, the method further includes: and acquiring a service driver set corresponding to the communication module, and determining a target service driver corresponding to the target service type from the service driver set.
In one embodiment, generating the target control message according to the target service type, the target control instruction code and the target communication instruction comprises: using the target service type and the target control instruction code as the message header of the target control message; and taking the target communication instruction as a message body of the target control message.
In one embodiment, sending the target control message to the communication module to enable the communication module to generate a corresponding response message according to the target control message includes: the communication module analyzes the target control message to obtain a target communication instruction; processing the target communication instruction to obtain a processing result; and generating a response message according to the processing result.
In one embodiment, before the target control message is sent to the communication module through the bus driver, the method further includes: determining a target manufacturer driver corresponding to the communication module according to the module identifier corresponding to the communication module; sending the target control message to a target manufacturer driver through a data conversion module; and sending the target control message to the bus driver through the target manufacturer driver.
In one embodiment, the target service type is a positioning service, the target service driver is a positioning service driver, and the positioning service driver includes at least one of a track information acquisition instruction code, a positioning auxiliary information acquisition instruction code, a positioning tracking information acquisition instruction code, a positioning configuration parameter setting instruction code, and a positioning configuration parameter acquisition instruction code.
In one embodiment, the target service type is a module upgrade service, the target service driver is an upgrade service driver, and the upgrade service driver includes at least one of a version information acquisition instruction code, a version information update instruction code, and a version information deletion instruction code.
A communication module data processing apparatus, the apparatus comprising:
the instruction acquisition module is used for acquiring a module service control instruction; the module service control instruction carries a target service type and a target control type;
the instruction information determining module is used for determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service drive corresponding to the target service type; the target service driver is mounted under the bus driver;
the instruction information sending module is used for sending the target service type, the target control instruction code and the target communication instruction to the data conversion module corresponding to the current operating system through the virtual interface corresponding to the current operating system;
the message generating module is used for generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module;
and the message sending module is used for sending the target control message to the communication module through the bus drive so as to enable the communication module to generate a corresponding response message according to the target control message.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a module service control instruction; the module service control instruction carries a target service type and a target control type;
determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service drive corresponding to the target service type; the target service driver is mounted under the bus driver;
sending the target service type, the target control instruction code and the target communication instruction to a data conversion module corresponding to the current operating system through a virtual interface corresponding to the current operating system;
generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module;
and sending the target control message to the communication module through the bus drive so that the communication module generates a corresponding response message according to the target control message.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a module service control instruction; the module service control instruction carries a target service type and a target control type;
determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service drive corresponding to the target service type; the target service driver is mounted under the bus driver;
sending the target service type, the target control instruction code and the target communication instruction to a data conversion module corresponding to the current operating system through a virtual interface corresponding to the current operating system;
generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module;
and sending the target control message to the communication module through the bus drive so that the communication module generates a corresponding response message according to the target control message.
The communication module data processing method, the communication module data processing device, the computer equipment and the storage medium have the advantages that by acquiring the module service control instruction which carries the target service type and the target control type, determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service driver corresponding to the target service type, wherein the target service driver is mounted under a bus driver, sending the target service type, the target control instruction code and the target communication instruction to a data conversion module corresponding to the current operating system through a virtual interface corresponding to the current operating system, generating a target control message according to the target service type, the target control instruction code and the target communication instruction, and sending the target control message to the communication module through the bus drive so that the communication module generates a corresponding response message according to the target control message. The method comprises the steps of developing a target service driver based on a current operating system, mounting the target service driver under a bus driver with universality, and fully utilizing a data interaction mode of the current operating system and a communication module, thereby realizing the data interaction mode with reusability between a service driver and the communication module, improving the reusability of the service driver and saving resources.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a data processing method for a communications module;
FIG. 2 is a flow diagram illustrating a method for processing data in a communication module according to one embodiment;
FIG. 3 is a flow diagram illustrating the generation of a target control message in one embodiment;
FIG. 4 is a block diagram of a data processing method of a communication module according to an embodiment;
FIG. 5 is a block diagram of a communication module data processing apparatus according to an embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The communication module data processing method provided by the application can be applied to the application environment shown in fig. 1. The terminal 102 includes a host 104 and a communication module 106. The host 104 and the communication module 106 may communicate via PCIE (Peripheral Component Interconnect Express) or USB (Universal Serial Bus). The host includes an application 108, a target service driver 110, a data conversion module 112, and a bus driver 114. The application 108 and the target service driver 110 communicate via a virtual interface, the target service driver 110 and the data conversion module 112 communicate via a virtual interface, and the data conversion module 112 and the bus driver 114 communicate via a virtual interface. The terminal 102 may be, but is not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices.
Specifically, the host acquires a module service control instruction sent by the application program, and the module service control instruction carries a target service type and a target control type. The host determines a target control instruction code and a target communication instruction corresponding to a target control type through a target service drive corresponding to the target service type, and the target service drive is mounted under the bus drive. And the host sends the target service type, the target control instruction code and the target communication instruction to the data conversion module corresponding to the current operating system through the virtual interface corresponding to the current operating system. And the host generates a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module. The host computer sends the target control message to the communication module through the bus drive, so that the communication module generates a corresponding response message according to the target control message.
In one embodiment, as shown in fig. 2, a communication module data processing method is provided, which is described by taking the method as an example applied to the host in fig. 1, and includes the following steps:
step S202, acquiring a module service control instruction; the module service control instruction carries a target service type and a target control type.
The module service control instruction is an instruction with a control function and is used for controlling the communication module to realize corresponding functional services. The communication module refers to a module having a wireless communication function, such as a 4G module, a 5G module, and the like. The communication module can provide user-defined extension services, such as positioning services, module upgrading services and the like. The service type is used to uniquely identify the service and may include at least one of letters, numbers, characters, and the like. A service is composed of a plurality of functions related to the service. For example, the positioning service includes positioning related functions such as acquiring trajectory information, acquiring positioning assistance information, acquiring positioning tracking information, and setting positioning configuration parameters. The control type is used to uniquely identify the service-related function.
Specifically, an operating system runs on the host, and the operating system comprises a user space and a kernel space. The user space is an operation space of the user program, and the application program and the service driver developed by the user are operated. Applications include instant messaging applications, e-commerce applications, video applications, gaming applications, music applications, mapping applications, and the like. The kernel space is an operation space of the kernel, and a data conversion module, a target manufacturer driver and a bus driver are operated. The user space and the kernel space communicate through a virtual interface. The host can obtain a module service control instruction generated by the application program, and the module service control instruction carries a target service type and a target control type.
For example, the target service type is a positioning service, and the target control type is to acquire positioning information. When the user triggers and acquires the current positioning information through the application program, the application program can determine that the service corresponding to the acquired current positioning information is the positioning service, and a module service control instruction is generated according to the positioning service and the acquired current positioning information.
Step S204, determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service drive corresponding to the target service type; the target service driver is mounted under the bus driver.
The control instruction code is a command code of the host and the communication module in the communication process and is used for informing the communication module to realize a corresponding function. The communication instruction is an instruction of the host and the communication module in a communication process, and is used for instructing the communication module to realize a corresponding function.
Specifically, a service driver for implementing different functional services of the communication module is installed on the host side of the terminal, where one functional service corresponds to one service driver, for example, a location service corresponds to a location service driver, and a module upgrade service corresponds to an upgrade service driver. The user can customize the service, store the customized service information into the firmware of the communication module, and develop the service driver corresponding to the service based on the customized service information and the current operating system. The user can install the service driver in the user space of the host side and mount the service driver under the bus driver. The bus driver is a driver which can exist in all platforms, namely the bus driver is a universal driver and can be adapted to different platforms. When the host obtains the module service control instruction, the host can determine the target service driver corresponding to the target service type. The target service driver defines control instruction codes corresponding to different control types and communication instructions corresponding to different control instruction codes under the target service type, that is, the target service driver defines control instruction codes corresponding to various functions under the service and communication instructions corresponding to various control instruction codes. Through the target service drive, the host can determine a target control instruction code corresponding to the target control type and a target communication instruction corresponding to the target control instruction code.
In one embodiment, the current operating system is a windows operating system, and the windows operating system and the communication module communicate based on an MBIM (Mobile Broadband Interface Model) protocol. The MBIM protocol is a set of protocols used for the interaction of control information between the host and the communication module. The MBIM protocol defines a large class of functions as a service, one service is identified by UUID (Universally Unique Identifier) or GUID (Globally Unique Identifier), and each small function under one service corresponds to one control instruction code, i.e., one CID code (Command ID). A user can customize a service based on the MBIM protocol and generate a corresponding UUID or GUID. The user may assign a CID code and corresponding at (attention) command to each function under service. And generating a corresponding service driver according to the customized service information, and storing the customized service information into the firmware of the communication module.
For example, a location service is defined based on the MBIM protocol. The positioning service comprises the functions of track information acquisition, positioning auxiliary information acquisition, positioning tracking information acquisition, positioning configuration parameter setting and the like. The CID code corresponding to the track information acquisition function may be defined as 1, that is, the track information acquisition instruction code is 1, and the AT instruction corresponding to the track information acquisition function may be defined. The CID code corresponding to the positioning information obtaining function may be defined as 2, that is, the positioning information obtaining instruction code is 2, and the AT instruction corresponding to the positioning information obtaining function may be defined. The CID code corresponding to the positioning assistance information obtaining function may be defined as 3, that is, the positioning assistance information obtaining instruction code is 3, and the AT instruction corresponding to the positioning assistance information obtaining function may be defined. The CID code corresponding to the positioning and tracking information obtaining function may be defined as 4, that is, the positioning and tracking information obtaining instruction code is 4, and the AT instruction corresponding to the positioning and tracking information obtaining function may be defined. The CID code corresponding to the positioning configuration parameter setting function may be defined as 5, that is, the positioning configuration parameter setting instruction code is 5, and the AT instruction corresponding to the positioning configuration parameter setting function may be defined. The CID code corresponding to the positioning configuration parameter obtaining function may be defined as 6, that is, the positioning configuration parameter obtaining instruction code is 6, and the AT instruction corresponding to the positioning configuration parameter obtaining function may be defined. And generating a positioning service driver according to the customized positioning related function information, and storing the customized positioning related function information into the firmware of the communication module.
A module upgrade service is defined based on the MBIM protocol. The module upgrading service comprises the functions of version information acquisition, version information updating, version information deletion and the like. The CID code corresponding to the version information obtaining function may be defined as 1, that is, the version information obtaining instruction code is 1, and the AT instruction corresponding to the version information obtaining function may be defined. The CID code corresponding to the version information updating function may be defined as 2, that is, the version information updating instruction code is 2, and the AT instruction corresponding to the version information updating function may be defined. The CID code corresponding to the version information deletion function may be defined as 3, that is, the location version information deletion instruction code is 3, and the AT instruction corresponding to the version information deletion function may be defined. And generating an upgrade service driver according to the defined module upgrade related function information, and storing the customized module upgrade related function information into the firmware of the communication module.
Step S206, the target service type, the target control instruction code and the target communication instruction are sent to the data conversion module corresponding to the current operating system through the virtual interface corresponding to the current operating system.
And step S208, generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module.
In particular, the host needs to interact with data by means of kernel space and a communication module. Since the target service driver is located in the user space, the target service type, the target control instruction code, and the target communication instruction need to be transferred from the user space to the kernel space. The kernel space and the user space perform data interaction based on the virtual interface, so that the virtual interface corresponding to the current operating system is obtained, and the target service type, the target control instruction code and the target communication instruction are sent to the kernel space through the virtual interface. Because the kernel space and the communication module perform data interaction based on a specific protocol, the target service type, the control instruction code and the target communication instruction can be sent to the data conversion module in the kernel space through the virtual interface, that is, the target service type, the target control instruction code and the target communication instruction are sent to the data conversion module corresponding to the current operating system through the virtual interface. And generating a target control message by a data conversion module in the kernel space according to the target service type, the target control instruction code and the target communication instruction, wherein the message format of the target control message is a message format specified by a specific protocol. When the target control message is generated, the host may send the target control message to the bus driver.
In one embodiment, the target service type is UUID, the control command code is CID code, the communication command is at (attention) command, and the target control message is MBIM message.
Step S210, sending the target control message to the communication module through the bus driver, so that the communication module generates a corresponding response message according to the target control message.
Specifically, after the target control message is generated, the host may send the target control message to the bus driver, and send the target control message to the communication module through the bus driver. After receiving the target control message, the communication module can analyze the target control message to obtain a target service type, a target control instruction code and a target communication instruction. The communication module can acquire the functional service to be realized according to the target service type and the target control instruction code, realize the corresponding functional service according to the target control instruction, and generate the corresponding response message. The communication module may return the response message to the application program for presentation on the application program. For example, the communication module returns the current location information to the application program, and presents the current location information on the application program.
In the communication module data processing method, by acquiring the module service control instruction which carries the target service type and the target control type, determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service driver corresponding to the target service type, wherein the target service driver is mounted under a bus driver, sending the target service type, the target control instruction code and the target communication instruction to a data conversion module corresponding to the current operating system through a virtual interface corresponding to the current operating system, generating a target control message according to the target service type, the target control instruction code and the target communication instruction, and sending the target control message to the communication module through the bus drive so that the communication module generates a corresponding response message according to the target control message. The method comprises the steps of developing a target service driver based on a current operating system, mounting the target service driver under a bus driver with universality, and fully utilizing a data interaction mode of the current operating system and a communication module, thereby realizing the data interaction mode with reusability between a service driver and the communication module, improving the reusability of the service driver and saving resources.
For example, the high-pass platform mounts a high-pass GNSS driver on a QMUX (QMI Multiplexing Protocol) driver related to its chip function, and the high-pass GNSS driver uses QMI (Qualcomm Message Interface) service data stream specific to high-pass, and there is a large coupling with the platform characteristics. The high-pass GNSS driven mounting mode and data flow have no universality and cannot be transplanted to other platforms.
In one embodiment, before determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service driver corresponding to the target service type, the communication module performs data processing including: and acquiring a service driver set corresponding to the communication module, and determining a target service driver corresponding to the target service type from the service driver set.
Specifically, a user can customize a plurality of services and develop a service driver corresponding to each service. The user can install each service driver on the host side and mount each service driver under the bus driver. When the module service control instruction is obtained, the host obtains a service driver set corresponding to the communication module in the user space, and obtains a service driver corresponding to the target service type from the service driver set as a target service driver.
In one embodiment, the service type may be one of the service-driven attribute information. When the module service control instruction is obtained, the host can search the matched attribute information according to the target service type in the module service control instruction, and the service driver corresponding to the successfully matched attribute information is used as the target service driver. The attribute information may further include information such as a drive version number, developer information, and the like.
In this embodiment, the corresponding target service driver can be quickly found through the target service type.
In one embodiment, as shown in fig. 3, generating the target control message according to the target service type, the target control instruction code and the target communication instruction includes:
step S302, the target service type and the target control instruction code are used as the message header of the target control message.
And step S304, taking the target communication instruction as a message body of the target control message.
In one embodiment, after the data conversion module receives the target service type, the target control instruction code and the target communication instruction, the data conversion module may use the target service type and the target control instruction code as a message header of the target control message, and the communication module may obtain the corresponding functional service based on the message header of the target control message. For example, the UUID corresponding to the positioning service is 1, the CID code corresponding to the positioning information obtaining function is 2, the UUID corresponding to the upgrade service is 2, and the CID code corresponding to the version information updating function is 2, so that the positioning information obtaining function and the version information updating function can be quickly distinguished based on a message header composed of the UUID and the CID codes. The data conversion module can take the target control instruction as a message body of the target control message, and the communication module can quickly realize corresponding functional service based on the message body of the target control message. For example, the message body of the target control message is an AT instruction corresponding to the positioning information obtaining function, and the communication module executes the AT instruction to obtain the positioning information.
In one embodiment, the current operating system is a windows operating system, and the data transformation module is MBBCX (Mobile Broadband Class Extension). The MBBCX may encapsulate the target service type, the target control instruction code, and the target communication instruction as an MBIM message.
In this embodiment, the target service type and the target control instruction code are used as a message header of the target control message, and the target communication instruction is used as a message body of the target control message. Thus, the data conversion module based on the current operating system can quickly generate the target control message according to the target service type, the target control instruction code and the target communication instruction. And the target service type and the target control instruction code are used as message headers of the target control message, the communication module can rapidly distinguish functions under different services based on the message headers, the target communication instruction is used as the message header of the target control message, and the communication module can rapidly realize corresponding functions based on the message body.
In one embodiment, sending the target control message to the communication module to enable the communication module to generate a corresponding response message according to the target control message includes: the communication module analyzes the target control message to obtain a target communication instruction; processing the target communication instruction to obtain a processing result; and generating a response message according to the processing result.
Specifically, after the communication module receives the target control message, the communication module analyzes the target control message to obtain a target communication instruction, and performs corresponding processing, such as information query or parameter setting, according to the target communication instruction. Further, the communication module may generate a response message according to the processing result, and return the response message to the host. For example, when the target communication instruction is used to obtain the positioning information, the communication module may execute the target communication instruction to obtain the positioning information, and generate the response message according to the obtained positioning information. When the target communication instruction is used for setting the positioning parameter, the communication module may execute the target communication instruction to update the positioning parameter, and generate a response message according to success or failure of the setting.
In this embodiment, the communication module may perform corresponding processing based on the target communication instruction, generate a response message and return the response message, so that the host may obtain a response result of the module service control instruction in time.
In one embodiment, before the target control message is sent to the communication module through the bus driver, the communication module data processing method further includes: determining a target manufacturer driver corresponding to the communication module according to the module identifier corresponding to the communication module; sending the target control message to a target manufacturer driver through a data conversion module; and sending the target control message to the bus driver through the target manufacturer driver.
The module identifier is an identifier for uniquely identifying the communication module, and may include at least one of letters, numbers, characters, and the like. Different communication modules have different module identifications. The manufacturer driver refers to a driver of a manufacturer corresponding to the communication module, and is used for forwarding the target control message to the corresponding communication module. The manufacturer refers to the producer of the communication module. The vendor driver is also mounted under the bus driver.
Specifically, the kernel space of the operating system is populated with a framework of development drivers upon which vendors can develop the vendor drivers. Based on the module identifier of the communication module, the host may determine a target vendor driver corresponding to the communication module from the plurality of drivers in the kernel space. And then, the data conversion module sends the generated target control message to a target manufacturer driver, and the target manufacturer driver sends the target control message to the bus driver, so that the bus driver sends the target control message to the corresponding communication module.
In one embodiment, the module identifier corresponding to the communication module and the driver identifier corresponding to the vendor driver produced by the same vendor generally have the same key, e.g., vendor code. The module identification may specifically include a manufacturer code, a module model number, and a serial number. The drive identifier may specifically include a vendor code and a drive version number. Therefore, the module identification and the driver identification can be subjected to character matching to determine the corresponding target vendor driver of the communication module. And when the characters with the continuous preset number are the same, determining that the module identification and the drive identification are successfully matched, and taking the drive corresponding to the matched drive identification as the target manufacturer drive corresponding to the communication module.
In this embodiment, the corresponding target vendor driver can be quickly determined by the module identifier, so that the target control message is quickly sent to the bus driver and then to the communication module.
In a specific embodiment, as shown in fig. 4, it is an architecture diagram of a data processing method of a communication module.
The terminal comprises a windows operating system and a communication module. The windows operating system includes a user space and a kernel space. The user space includes an application program, a GNSS driver, and a WwanSvc (Wireless Wide Area Network Service). The GNSS driver is a user-defined positioning service driver, and a positioning function service (UUID) and a CID code and an AT instruction corresponding to a series of positioning related functions are defined in the GNSS driver. The WwanSvc is a background service in the windows operating system, is used for processing data related to the communication module, and may forward data sent by the GNSS Driver to an NDIS (Network Driver Interface Specification) Driver. The kernel space includes NDIS driver, MBBCX, IHV (Independent Hardware Vendor) client driver, and PCIE bus driver. The MBBCX is a module provided by the windows operating system and used for data conversion, and can convert data related to Wwan (Wireless Wide Area Network) sent by the NDIS driver into an MBIM message and send the MBIM message to the IHV client driver. The manufacturer of the communication module can develop the IHV client driver based on a driver development framework provided by the windows operating system. The GNSS driver and the IHV client driver are mounted under the PCIE bus driver.
1. The GNSS driver acquires a positioning information acquisition instruction sent by the application program, and determines a CID code and an AT instruction corresponding to the positioning information acquisition instruction.
2. The GNSS driver sends the UUID, CID code, and AT instruction to the WwanSvc through the MBB WinRT (Mobile Broadband Windows Runtime) interface.
3. WwanSvc sends the UUID, CID code, and AT command from user space to NDIS driver in kernel space.
4. The NDIS driver sends the UUID, CID code, and AT command to MBBCX.
5. And the MBBCX encapsulates the UUID, the CID code and the AT instruction into an MBIM message, and sends the MBIM message to the IHV client driver through a transceiving callback function. The sending and receiving callback function is a function registered in a windows operating system when the IHV client driver is initialized.
6. And the IHV client driver sends the MBIM message to the PCIE bus driver through an interface function. The interface function is a function exported by the PCIE bus driver.
7. The PCIE bus driver sends the MBIM message to a communication module, that is, an MBB (Mobile Broadband) device, through a DMA (Direct Memory Access) hardware engine.
8. The communication module processes the MBIM message, generates a corresponding response message, and returns the response message to the application program in the original path, namely, the response message is sent to the application program through the PCIE bus driver, the IHV client driver, the MBBCX driver, the NDIS driver, the WwanSvc driver and the GNSS driver.
In this embodiment, the GNSS driver is mounted on the PCIE bus driver, and the GNSS driver performs data interaction with the communication device using a self-defined positioning function service (UUID) through an MBB WinRT interface provided by the windows operating system. In this way, since the PCIE bus driver is a driver that all platforms will exist, the GNSS driver has versatility of mounting. Meanwhile, a data interaction mode of a windows operating system and a communication module is utilized, and most platforms are constructed based on the windows operating system, so that the data interaction of the GNSS driver and the communication module is also universal. And finally, the reusability of the GNSS drive is improved.
It should be understood that the steps in the above-described flowcharts are shown in order as indicated by the arrows, but the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a part of the steps in the above-mentioned flowcharts may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or the stages is not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a part of the steps or the stages in other steps.
In one embodiment, as shown in fig. 5, there is provided a communication module data processing apparatus including: an instruction obtaining module 502, an instruction information determining module 504, an instruction information sending module 506, a message generating module 508 and a message sending module 510, wherein:
an instruction obtaining module 502, configured to obtain a module service control instruction; the module service control instruction carries a target service type and a target control type;
an instruction information determining module 504, configured to determine, through a target service driver corresponding to a target service type, a target control instruction code and a target communication instruction corresponding to a target control type; the target service driver is mounted under the bus driver;
the instruction information sending module 506 is configured to send the target service type, the target control instruction code, and the target communication instruction to the data conversion module corresponding to the current operating system through the virtual interface corresponding to the current operating system;
a message generating module 508, configured to generate, by the data conversion module, a target control message according to the target service type, the target control instruction code, and the target communication instruction;
the message sending module 510 is configured to send the target control message to the communication module through the bus driver, so that the communication module generates a corresponding response message according to the target control message.
In an embodiment, the instruction information determining module is further configured to obtain a service driver set corresponding to the communication module, and determine a target service driver corresponding to the target service type from the service driver set.
In one embodiment, the message generation module is further configured to use the target service type and the target control instruction code as a message header of the target control message; and taking the target communication instruction as a message body of the target control message.
In one embodiment, the communication module analyzes the target control message to obtain a target communication instruction, processes the target communication instruction to obtain a processing result, and generates a response message according to the processing result.
In one embodiment, the message sending module is further configured to determine a target vendor driver corresponding to the communication module according to the module identifier corresponding to the communication module; sending the target control message to a target manufacturer driver through a data conversion module; and sending the target control message to the bus driver through the target manufacturer driver.
In one embodiment, the target service type is a positioning service, and the target service driver is a positioning service driver, and the positioning service driver includes at least one of a track information acquisition instruction code, a positioning assistance information acquisition instruction code, a positioning tracking information acquisition instruction code, a positioning configuration parameter setting instruction code, and a positioning configuration parameter acquisition instruction code.
In one embodiment, the target service type is a module upgrade service, and the target service driver is an upgrade service driver, and the upgrade service driver includes at least one of a version information acquisition instruction code, a version information update instruction code, and a version information deletion instruction code.
For specific limitations of the communication module data processing apparatus, reference may be made to the above limitations of the communication module data processing method, which are not described herein again. The respective modules in the above-described communication module data processing apparatus may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a virtual interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The virtual interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a communication module data processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring a module service control instruction; the module service control instruction carries a target service type and a target control type;
determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service drive corresponding to the target service type; the target service driver is mounted under the bus driver;
sending the target service type, the target control instruction code and the target communication instruction to a data conversion module corresponding to the current operating system through a virtual interface corresponding to the current operating system;
generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module;
and sending the target control message to the communication module through the bus drive so that the communication module generates a corresponding response message according to the target control message.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and acquiring a service driver set corresponding to the communication module, and determining a target service driver corresponding to the target service type from the service driver set.
In one embodiment, the processor, when executing the computer program, further performs the steps of: using the target service type and the target control instruction code as the message header of the target control message; and taking the target communication instruction as a message body of the target control message.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the communication module analyzes the target control message to obtain a target communication instruction; processing the target communication instruction to obtain a processing result; and generating a response message according to the processing result.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining a target manufacturer driver corresponding to the communication module according to the module identifier corresponding to the communication module; sending the target control message to a target manufacturer driver through a data conversion module; sending target control messages to bus drivers through target vendor drivers
In one embodiment, the target service type is a positioning service, and the target service driver is a positioning service driver, and the positioning service driver includes at least one of a track information acquisition instruction code, a positioning assistance information acquisition instruction code, a positioning tracking information acquisition instruction code, a positioning configuration parameter setting instruction code, and a positioning configuration parameter acquisition instruction code.
In one embodiment, the target service type is a module upgrade service, and the target service driver is an upgrade service driver, and the upgrade service driver includes at least one of a version information acquisition instruction code, a version information update instruction code, and a version information deletion instruction code.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a module service control instruction; the module service control instruction carries a target service type and a target control type;
determining a target control instruction code and a target communication instruction corresponding to a target control type through a target service drive corresponding to the target service type; the target service driver is mounted under the bus driver;
sending the target service type, the target control instruction code and the target communication instruction to a data conversion module corresponding to the current operating system through a virtual interface corresponding to the current operating system;
generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module;
and sending the target control message to the communication module through the bus drive so that the communication module generates a corresponding response message according to the target control message.
In one embodiment, the computer program when executed by the processor further performs the steps of: and acquiring a service driver set corresponding to the communication module, and determining a target service driver corresponding to the target service type from the service driver set.
In one embodiment, the computer program when executed by the processor further performs the steps of: using the target service type and the target control instruction code as the message header of the target control message; and taking the target communication instruction as a message body of the target control message.
In one embodiment, the computer program when executed by the processor further performs the steps of: the communication module analyzes the target control message to obtain a target communication instruction; processing the target communication instruction to obtain a processing result; and generating a response message according to the processing result.
In one embodiment, the computer program when executed by the processor further performs the steps of: determining a target manufacturer driver corresponding to the communication module according to the module identifier corresponding to the communication module; sending the target control message to a target manufacturer driver through a data conversion module; and sending the target control message to the bus driver through the target manufacturer driver.
In one embodiment, the target service type is a positioning service, and the target service driver is a positioning service driver, and the positioning service driver includes at least one of a track information acquisition instruction code, a positioning assistance information acquisition instruction code, a positioning tracking information acquisition instruction code, a positioning configuration parameter setting instruction code, and a positioning configuration parameter acquisition instruction code.
In one embodiment, the target service type is a module upgrade service, and the target service driver is an upgrade service driver, and the upgrade service driver includes at least one of a version information acquisition instruction code, a version information update instruction code, and a version information deletion instruction code.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for processing data of a communication module, the method comprising:
acquiring a module service control instruction; the module service control instruction carries a target service type and a target control type;
determining a target control instruction code and a target communication instruction corresponding to the target control type through a target service drive corresponding to the target service type; the target service driver is mounted under the bus driver;
sending the target service type, the target control instruction code and the target communication instruction to a data conversion module corresponding to the current operating system through a virtual interface corresponding to the current operating system;
generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module;
and sending the target control message to a communication module through the bus driver so that the communication module generates a corresponding response message according to the target control message.
2. The method according to claim 1, wherein before determining the target control instruction code and the target communication instruction corresponding to the target control type through the target service driver corresponding to the target service type, the method further comprises:
and acquiring a service driver set corresponding to the communication module, and determining a target service driver corresponding to the target service type from the service driver set.
3. The method of claim 1, wherein generating a target control message according to the target service type, a target control instruction code, and a target communication instruction comprises:
taking the target service type and the target control instruction code as a message header of the target control message;
and taking the target communication instruction as a message body of the target control message.
4. The method of claim 1, wherein sending the target control message to a communication module to cause the communication module to generate a corresponding response message according to the target control message comprises:
the communication module analyzes the target control message to obtain the target communication instruction;
processing the target communication instruction to obtain a processing result;
and generating the response message according to the processing result.
5. The method of claim 3, wherein prior to sending the targeted control message to a communication module via the bus driver, the method further comprises:
determining a target manufacturer driver corresponding to the communication module according to the module identifier corresponding to the communication module;
sending the target control message to the target manufacturer driver through the data conversion module;
and sending the target control message to the bus driver through the target manufacturer driver.
6. The method according to any one of claims 1 to 5, wherein the target service type is a positioning service, and the target service driver is a positioning service driver, and the positioning service driver includes at least one of a track information acquisition instruction code, a positioning auxiliary information acquisition instruction code, a positioning tracking information acquisition instruction code, a positioning configuration parameter setting instruction code, and a positioning configuration parameter acquisition instruction code.
7. The method according to any one of claims 1 to 5, wherein the target service type is a module upgrade service, and the target service driver is an upgrade service driver, and the upgrade service driver includes at least one of a version information acquisition instruction code, a version information update instruction code, and a version information deletion instruction code.
8. A communication module data processing apparatus, the apparatus comprising:
the instruction acquisition module is used for acquiring a module service control instruction; the module service control instruction carries a target service type and a target control type;
the instruction information determining module is used for determining a target control instruction code and a target communication instruction corresponding to the target control type through a target service drive corresponding to the target service type; the target service driver is mounted under the bus driver;
the instruction information sending module is used for sending the target service type, the target control instruction code and the target communication instruction to the data conversion module corresponding to the current operating system through a virtual interface corresponding to the current operating system;
the message generating module is used for generating a target control message according to the target service type, the target control instruction code and the target communication instruction through the data conversion module;
and the message sending module is used for sending the target control message to the communication module through the bus driver so as to enable the communication module to generate a corresponding response message according to the target control message.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202010702237.XA 2020-07-20 2020-07-20 Communication module data processing method and device, computer equipment and storage medium Active CN111966613B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010702237.XA CN111966613B (en) 2020-07-20 2020-07-20 Communication module data processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010702237.XA CN111966613B (en) 2020-07-20 2020-07-20 Communication module data processing method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111966613A CN111966613A (en) 2020-11-20
CN111966613B true CN111966613B (en) 2022-03-15

Family

ID=73360476

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010702237.XA Active CN111966613B (en) 2020-07-20 2020-07-20 Communication module data processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111966613B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112506822B (en) * 2020-12-04 2023-06-02 四川效率源信息安全技术股份有限公司 Method for mounting hard disk by PCIE card
CN112929912B (en) * 2021-03-04 2023-04-18 深圳市共进电子股份有限公司 LTE module monitoring method and device, communication equipment and readable storage medium
CN114416630A (en) * 2021-12-24 2022-04-29 深圳市广和通无线通信软件有限公司 Communication method and device based on PCIE, computer equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625209A (en) * 2003-12-02 2005-06-08 村田机械株式会社 Communication device and data conversion device
CN106940642A (en) * 2017-01-13 2017-07-11 西南电子技术研究所(中国电子科技集团公司第十研究所) The simulated-bus device system of dynamic I CD configurations
CN208707785U (en) * 2018-09-05 2019-04-05 国家体育总局体育科学研究所 A kind of more data signal source conversion processing units

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7574713B2 (en) * 2001-11-05 2009-08-11 Trendium, Inc. Methods, systems, and computer program products for instantiating a device driver for communication with a device by dynamically associating the device driver at run-time with a device-specific and/or service-specific software component
US9842072B2 (en) * 2015-03-27 2017-12-12 Toshiba Global Commerce Solutions Holdings Corporation Systems and methods for implementing a user mode virtual serial communications port emulator

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625209A (en) * 2003-12-02 2005-06-08 村田机械株式会社 Communication device and data conversion device
CN106940642A (en) * 2017-01-13 2017-07-11 西南电子技术研究所(中国电子科技集团公司第十研究所) The simulated-bus device system of dynamic I CD configurations
CN208707785U (en) * 2018-09-05 2019-04-05 国家体育总局体育科学研究所 A kind of more data signal source conversion processing units

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
嵌入式智能控制器通信协议的开发;郑勇升;《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》;20150115;I140-554 *

Also Published As

Publication number Publication date
CN111966613A (en) 2020-11-20

Similar Documents

Publication Publication Date Title
CN111966613B (en) Communication module data processing method and device, computer equipment and storage medium
US11363446B2 (en) Profile generation method, profile acquisition method, and related device and storage medium
WO2019206201A1 (en) Method for transmitting configuration file, related device and storage medium
KR101007739B1 (en) Method and system for providing fota service
WO2018077041A1 (en) Method and apparatus for running application
CN111434132A (en) Method and terminal for opening account of eSIM card
CN109791497B (en) Method, device and terminal for executing hot patch
KR20200140555A (en) Electronic device for switching between a dual standby mode and a single standby mode and method for the same
CN105302587A (en) Data updating method and apparatus
CN113168332B (en) Data processing method and device and mobile terminal
CN111949314A (en) Method and device for generating application installation package, server and storage medium
CN112860457A (en) Software development kit calling method and device, computer equipment and storage medium
CN116048628A (en) Equipment starting method and electronic equipment
CN109828770B (en) Software upgrading method, terminal equipment and server
CN107861827B (en) Card screen detection method, mobile terminal and computer readable storage medium
CN107229470B (en) System font switching method, mobile terminal and computer readable storage medium
CN114096946A (en) Method and apparatus for managing applications
CN111722938A (en) AT instruction processing method, AT instruction processing device, computer equipment and storage medium
CN111131358B (en) Information acquisition method, device and system, readable storage medium and electronic equipment
US10664436B2 (en) Application acceleration method and application acceleration device
CN114301771B (en) Virtual machine configuration method and device and electronic equipment
EP3758306A1 (en) Electronic device and operating method therefor
CN107391711B (en) Method and device for acquiring song accompaniment
CN105119944A (en) Application starting method and related device
CN113039517A (en) Audio resource calling method and device and electronic equipment

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