CN115858206A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115858206A
CN115858206A CN202310185113.2A CN202310185113A CN115858206A CN 115858206 A CN115858206 A CN 115858206A CN 202310185113 A CN202310185113 A CN 202310185113A CN 115858206 A CN115858206 A CN 115858206A
Authority
CN
China
Prior art keywords
service
information
access information
register address
address
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
CN202310185113.2A
Other languages
Chinese (zh)
Other versions
CN115858206B (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.)
LCFC Hefei Electronics Technology Co Ltd
Original Assignee
LCFC Hefei Electronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by LCFC Hefei Electronics Technology Co Ltd filed Critical LCFC Hefei Electronics Technology Co Ltd
Priority to CN202310185113.2A priority Critical patent/CN115858206B/en
Publication of CN115858206A publication Critical patent/CN115858206A/en
Application granted granted Critical
Publication of CN115858206B publication Critical patent/CN115858206B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The present disclosure provides a data processing method, an apparatus, an electronic device, and a storage medium, wherein the method includes: receiving first access information, and confirming a register address corresponding to the first access information according to address information carried by the first access information; confirming a first service corresponding to the register address based on the register address, so that the first service processes the data carried by the first access information according to the register address, and acquiring a processing result; wherein the first service is obtained by dividing an application program.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
Communication between applications or devices is usually achieved by establishing connections at the application level or the device level; accordingly, the communication subject is also usually an entire application or an entire device, and decoupling between services is difficult.
Disclosure of Invention
The present disclosure provides a data processing method, an apparatus, an electronic device, and a storage medium, to at least solve the above technical problems in the prior art.
According to a first aspect of the present disclosure, there is provided a data processing method comprising:
receiving first access information, and confirming a register address corresponding to the first access information according to address information carried by the first access information;
confirming a first service corresponding to the register address based on the register address, so that the first service processes the data carried by the first access information according to the register address, and obtains a processing result;
wherein the first service is obtained by dividing an application program.
According to a second aspect of the present disclosure, there is provided a data processing apparatus comprising:
the receiving unit is used for receiving first access information and confirming a register address of a first service corresponding to the first access information according to address information carried by the first access information;
the processing unit is used for confirming a first service corresponding to the register address based on the register address so that the first service processes the data carried by the first access information according to the register address and obtains a processing result;
wherein the first service is obtained by device division.
According to a third aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods of the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of the present disclosure.
The method comprises the steps of receiving first access information, and confirming a register address of a first service corresponding to the first access information according to address information carried by the first access information; confirming a first service corresponding to the register address based on the register address, so that the first service processes the data carried by the first access information according to the register address, and acquiring a processing result; wherein the first service is obtained by dividing an application program; therefore, access to a certain service in the application program can be realized, one side of the communication main body becomes the service obtained by dividing the application program, and the decoupling of the bottom layer and the upper layer is simplified.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the present disclosure are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 is a schematic flow chart diagram illustrating an alternative data processing method provided by an embodiment of the present disclosure;
FIG. 2 is an alternative diagram of a data processing method provided by the embodiment of the disclosure;
fig. 3 shows a dependency graph before each module corresponding to the data processing method provided by the embodiment of the present disclosure;
FIG. 4 is a schematic flow chart diagram illustrating an alternative data processing method provided by the embodiment of the present disclosure;
FIG. 5 is a diagram illustrating a state machine for reading information provided by an embodiment of the present disclosure;
FIG. 6 shows a state machine diagram for writing information provided by an embodiment of the present disclosure;
fig. 7 is a schematic diagram illustrating a slave device configuration service provided by an embodiment of the present disclosure;
FIG. 8 is a schematic diagram illustrating a data processing method provided by an embodiment of the present disclosure;
FIG. 9 is a schematic diagram illustrating an alternative structure of a data processing apparatus according to an embodiment of the present disclosure;
fig. 10 shows a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to make the objects, features and advantages of the present disclosure more apparent and understandable, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only a part of the embodiments of the present disclosure, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
In the related art, communication between applications or devices is usually performed by establishing a connection at an application level or a device level, so as to implement communication; for example, in the related art, a communication control method, an apparatus, a vehicle, and a storage medium between a master device and a slave device are proposed, which are executed by the master device, and which include: the method comprises the steps of obtaining a first identification of slave equipment, determining connection control information according to the first identification, and establishing communication connection between the master equipment and the slave equipment according to the connection control information. Accordingly, the communication subject is also typically an entire application or an entire device, and the bottom layer is difficult to decouple from the upper layer. Moreover, when the function of the application program or the device is changed or the communication mode is changed, a large modification is required; decoupling is difficult when multiple services are developed, and parallel development tasks cannot be realized; modifying a single function often requires modifying an overall communication code, disconnecting an established communication connection, and reconnecting after modification is completed, so that decoupling is difficult, and function implementation of an overall framework is affected. In addition, the related art has a high requirement on the communication method, for example, if the physical layer is an Inter-Integrated Circuit bus (IIC or I2C) protocol, the physical layer needs to be implemented in the IIC, and once the physical layer confirms that the communication method is solidified, the physical layer cannot be adapted to other communication methods.
In view of the above-mentioned shortcomings in the art, the present disclosure provides a data processing method to solve at least some or all of the above-mentioned problems.
Fig. 1 shows an alternative flow diagram of a data processing method provided by an embodiment of the present disclosure.
Step S101, receiving first access information, and confirming a register address of a first service corresponding to the first access information according to address information carried by the first access information.
In some embodiments, a data processing apparatus (hereinafter, referred to simply as an apparatus) divides an application program into at least one service based on a function in advance, and configures each service. Optionally, the apparatus may divide the code corresponding to the application program into at least one service according to different functions, where each service is used to implement one or more functions of the application program. The application may be an application corresponding to the device (for example, an application/code corresponding to the display), or may be software installed in the electronic device.
In specific implementation, the device initializes the slave station equipment corresponding to the service and determines a device address corresponding to the service; confirming service information corresponding to the service based on the slave station equipment; and registering the service to the slave station equipment, and setting the read-write permission of the register address corresponding to the service. The service information corresponding to the service may include an Identity (ID) corresponding to the service, a device address, a register address, a start address in a register, a register occupation size, and a read/write permission of the register address corresponding to the service. The device address is address information of a device corresponding to the service. For example, the service is divided by an application program corresponding to the display, and the device address corresponding to the service is the device address corresponding to the display.
In some optional embodiments, after the device confirms the service information corresponding to the service, the device may further send the service information corresponding to the service to the outside, so that the address information corresponding to the corresponding service is carried when the access information is sent to the device by the outside. Wherein the address information includes a device address and a register address.
In some embodiments, the device receives first access information sent by the outside, and confirms a register address of a first service corresponding to the first access information based on address information carried by the first access information.
In particular, the apparatus may be based on receiving, from the station device, first access information transmitted from the outside.
Step S102, confirming a first service corresponding to the register address based on the register address.
In some embodiments, the apparatus confirms, based on the register address, a first service corresponding to the register address, so that the first service processes the data carried by the first access information according to the register address, and obtains a processing result.
In some embodiments, in response to that the first access information is read information, the device acquires data corresponding to the read information from data corresponding to the service based on the first access information; and confirming the data corresponding to the read information as the processing result.
In specific implementation, the device confirms the first service corresponding to the register address included in the address information based on the address information carried by the first access information, and the first service acquires the data corresponding to the read information from the data corresponding to the first service.
In other embodiments, in response to that the first access information is write information, the apparatus writes, in the data corresponding to the first service, the data corresponding to the write information based on the first access information; and confirming that the writing result is the processing result.
In specific implementation, the device confirms the first service corresponding to the register address included in the address information based on the address information carried by the first access information, and writes the data corresponding to the write-in information in the data corresponding to the service.
In some optional embodiments, the apparatus may further destroy service information corresponding to the second service; logging off the second service to the slave device. Decoupling of services is achieved.
Fig. 2 shows an alternative schematic diagram of a data processing method provided by the embodiment of the present disclosure, which will be described according to various steps.
As shown in fig. 2, the device splits an Application (APP) into at least one Service, namely, scrvice1, service2 and Service3 in fig. 2; the at least one service is transmitted in communication with the outside on the basis of a slave device (I2C iSlave); and the slave station equipment carries out communication transmission with external Master station equipment (I2C Master) based on I2C BUS drive (I2C BUS).
In some embodiments, as shown in fig. 2, access information (carrying address information of a service) of an external master station device or a slave station device is transmitted to the slave station device through an I2C bus driver, and the slave station device confirms a register corresponding to the service based on a register address, processes data corresponding to the service stored in the register, and obtains a processing result.
Fig. 3 shows a dependency graph before each module corresponding to the data processing method provided in the embodiment of the present disclosure.
As shown in fig. 3, the respective services are interdependent with slave devices, which rely on I2C bus drivers.
Therefore, according to the data processing method provided by the embodiment of the disclosure, a plurality of services into which an application program is split are packaged into IIC (I2C) devices, and the slave station device communicates with each service, so that when a certain service or communication mode needs to be changed, the service can be independently cancelled, functions of other services are not affected, and decoupling difficulty is reduced. In addition, in the embodiment of the present disclosure, the communication method is not limited to the communication method, and the bottom layer may adopt a communication method such as I2C or SPI.
Fig. 4 shows an alternative flow chart of the data processing method provided by the embodiment of the present disclosure, which will be described according to various steps.
Step S301, dividing the application program into at least one service based on functions, and configuring each service.
In some embodiments, the data processing apparatus partitions code corresponding to the application program into at least one service based on the project, and configures each service. In specific implementation, the device initializes the I2C bus driver, allocates resources (service information) to each service, and initializes hardware devices.
In some embodiments, the apparatus further initializes a slave device to which the service corresponds; confirming address information corresponding to the service based on the slave station equipment; and registering the service to the slave station equipment, and setting the read-write permission of the service.
The service information comprises bus identification, device address, starting address, register address and register occupation information. Similar to assigning a set of registers for each service, the subsequent read and write operations are similar to the I2C devices reading and writing registers. The transferred data (read and write data) corresponds to the value of the register.
Step S302, monitoring whether the first access information is received.
In some embodiments, the apparatus may further obtain service information of the service, that is, obtain a data structure of the service, for example, if the service is a diagnostic service, obtain a specific format of the diagnostic structure.
In some embodiments, the first access information may include read information or write information; if the device monitors to receive first access information, and the first access information is read information, executing step S303; alternatively, if the device monitors to receive the first access information, and the first access information is the write information, step S304 is executed.
Step S303, processing the data corresponding to the service based on the register address and the read information, and obtaining a processing result.
In some embodiments, after detecting that the first access information is received, the device jumps to a service layer (a layer where each service is located), confirms the first service based on a register address carried by the first access information, and acquires data corresponding to the read information from data corresponding to the first service; and confirming the data corresponding to the read information as the processing result.
For example, if the service corresponding to the first access information is a fault handling service, the data corresponding to the read information is fault data.
Fig. 5 shows a schematic diagram of a state machine for reading information according to an embodiment of the present disclosure.
As shown in fig. 5, after receiving the read information (i 2c _ read _ iSlave _ event), first obtain data corresponding to the read information, that is, a first Service (Search Service) corresponding to the first access information, and then perform a read operation (i 2c _ read _ Service _ event), so as to obtain a processing result.
Step S304, processing the data corresponding to the service based on the register address and the write information, and obtaining a processing result.
In some embodiments, after detecting that the first access information is received, the apparatus jumps to a service layer, and writes data corresponding to the write information in data corresponding to the first service based on the first access information; and confirming that the writing result is the processing result.
For example, if the service corresponding to the first access information is a backlight processing service, the data to be written into the register is a set backlight value.
Fig. 6 shows a schematic diagram of a state machine for writing information according to an embodiment of the present disclosure.
As shown in fig. 6, after receiving the write information (i 2c _ write _ iSlave _ event), first obtain the data corresponding to the write information, that is, the Service (Search Service) corresponding to the first access information, and then perform the write operation (i 2c _ write _ Service _ event), so as to obtain the processing result.
Thus, by the data processing method provided by the embodiment of the disclosure, a physical communication channel is not limited, and the bottom layer may be I2C, SPI, or the like; the static configuration is realized, the parameters and address information of each service and the characteristic parameters of communication modes such as I2C and the like can be configured through macro definition and the like, and the configuration is flexible and convenient; the method comprises the following steps of (1) objectification idea, namely dividing an application program into a plurality of services, and further realizing a plurality of entities; the increase and reduction of equipment (application program) are stripped from the bottom layer drive, the drive codes do not need to be modified, the equipment is simple and easy to use, the upper layer application is decoupled to the maximum extent, the direct decoupling performance of the upper layer and the bottom layer is strong, and the change of each part has little influence on other parts and even does not need to be modified.
Fig. 7 is a schematic diagram of a slave device configuration service provided by an embodiment of the present disclosure, and will be described according to various steps.
Fig. 7 shows a detailed flowchart of the configuration service described in step S301, and the information transmitted in fig. 7 is a correlation function.
As shown in fig. 7, the service sends an i2c _ iSlave _ init function to the slave device, which is used to initialize all the slave devices and allocate resources for each service (to confirm address information of each service); and after the slave station equipment responds to the i2c _ iSlave _ init function and completes initialization, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ iSlave _ service _ register function to the slave station equipment, and the function is used for registering the service to the slave station equipment; and after the slave station equipment responds to the i2c _ iSlave _ service _ register function to complete service registration, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ iSlave _ service _ setaddress function to the slave station equipment so as to enable the slave station equipment to set address space read-write permission; and after the slave station equipment responds to the i2c _ iSlave _ service _ setaddress function to set the address space read-write permission, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ iSlave _ service _ regPtr function to the slave station equipment to acquire an initial address space of the service; and after the slave station equipment responds to the i2c _ iSlave _ service _ regPtr function, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ iSlave _ service _ regPtr function to the slave station equipment to acquire an initial address space of the service; and after the slave station equipment responds to the i2c _ iSlave _ service _ regPtr function, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The slave device acquires the relevant data from the service based on the read information, or the slave device writes the relevant data to the service based on the write information, which will be described in detail later.
The service sends an i2c _ iSlave _ service _ unregister function to the slave station equipment, service logout is carried out, and related resources are destroyed; and after the slave station equipment responds to the i2c _ iSlave _ service _ unregister function to log out the service, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ bus _ deinit function to the slave station equipment, the i2c bus drive is reversely initialized, and related resources are destroyed; and the slave station equipment sends an i2c _ iSlave _ default function to the service to realize the reverse initialization of the slave station equipment and destroy the related resources.
Fig. 8 shows another schematic diagram of a data processing method provided by the embodiment of the present disclosure.
Fig. 8 shows a detailed flowchart of the configuration service described in step S301 to step S304, and the information transmitted in fig. 8 is a correlation function.
As shown in fig. 8, the service sends an i2c _ iSlave _ init function to the slave device, which is used to initialize all the slave devices and allocate resources for each service (to confirm address information of each service); and after the slave station equipment responds to the i2c _ iSlave _ init function and completes initialization, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The slave station equipment sends an I2C _ iSlave _ register function to the I2C bus driver, and registers the slave station equipment; and after the I2C bus drive response I2C _ iSlave _ register function registers the slave station equipment, returning response information to the service, wherein if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ iSlave _ service _ register function to the slave station equipment, and the function is used for registering the service to the slave station equipment; and after the slave station equipment responds to the i2c _ iSlave _ service _ register function to complete service registration, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ iSlave _ service _ setaddress function to the slave station equipment so as to enable the slave station equipment to set address space read-write permission; and after the slave station device responds to the i2c _ iSlave _ service _ setaddress function to set the address space read-write permission, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ iSlave _ service _ regPtr function to the slave station equipment to acquire an initial address space of the service; and after the slave station equipment responds to the i2c _ iSlave _ service _ regPtr function, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ iSlave _ service _ regPtr function to the slave station equipment to acquire an initial address space of the service; and after the slave station equipment responds to the i2c _ iSlave _ service _ regPtr function, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The I2C bus driver sends an I2C _ read _ iSlave _ event function to the slave station equipment, and the function is used for reading data in service; and the slave station equipment responds to the I2C _ read _ iSlave _ event function, sends the I2C _ read _ service _ event function to the service, and is used for reading corresponding data from the register corresponding to the service, returning the reading result to the slave station equipment by the service, and returning the reading result to the I2C bus driver by the slave station equipment.
The I2C bus driver sends an I2C _ write _ iSlave _ event function to the slave equipment, and the function is used for writing data into the service; the slave station equipment responds to the I2C _ write _ iSlave _ event function, sends the I2C _ write _ service _ event function to the service, and is used for writing corresponding data in a register corresponding to the service, the service returns a writing result to the slave station equipment, and the slave station equipment returns the reading result to the I2C bus driver.
The service sends an i2c _ iSlave _ service _ unregister function to the slave station equipment, service logout is carried out, and related resources are destroyed; and after the slave station device responds to the i2c _ iSlave _ service _ unregister function to log out the service, response information is returned to the service, if the response information is successful, the response information is 0, and if the response information is failed, the response information is a failure reason.
The service sends an i2c _ bus _ deinit function to the slave station equipment, the i2c bus drive is reversely initialized, and related resources are destroyed; and the slave station equipment sends an i2c _ iSlave _ default function to the service to realize the reverse initialization of the slave station equipment and destroy the related resources.
And the slave station equipment sends an I2C _ iSlave _ unit function to the I2C bus driver, and the function is used for logging out the slave station equipment and destroying the corresponding resource.
Fig. 9 shows an alternative structural diagram of a data processing apparatus provided in an embodiment of the present disclosure, which will be described according to various steps.
In some embodiments, the data processing apparatus 400 comprises a receiving unit 401 and a processing unit 402.
The receiving unit 401 is configured to receive first access information, and determine, according to address information carried in the first access information, a register address of a first service corresponding to the first access information;
the processing unit 402 is configured to determine, based on the register address, a first service corresponding to the register address, so that the first service processes the data carried by the first access information according to the register address, and obtains a processing result;
wherein the first service is obtained by device division.
In some embodiments, the data processing apparatus 400 further comprises a registration unit 403.
The registering unit 403 is configured to divide the application into at least one service based on a function before receiving the first access information; each service is configured.
The registration unit 403 is specifically configured to initialize a slave station device corresponding to a service; confirming address information corresponding to the service based on the slave station equipment; and registering the service to the slave station equipment, and setting the read-write permission of the service.
In some embodiments, the address information comprises:
bus identification, device address, start address, register address, and register occupancy information.
The processing unit 402 is specifically configured to, in response to that the first access information is read information, obtain data corresponding to the read information from data corresponding to the service based on the first access information;
and confirming the data corresponding to the read information as the processing result.
The processing unit 402 is specifically configured to, in response to that the first access information is write information, write data corresponding to the read information in data corresponding to the service based on the first access information;
and confirming that the writing result is the processing result.
The registration unit 403 is further configured to destroy address information corresponding to the second service; logging off the second service to the slave station device.
The present disclosure also provides an electronic device and a readable storage medium according to an embodiment of the present disclosure.
FIG. 10 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 10, the electronic device 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data necessary for the operation of the electronic apparatus 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the electronic device 800 are connected to the I/O interface 805, including: an input unit 806 such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the electronic device 800 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 801 executes the respective methods and processes described above, such as the data processing method. For example, in some embodiments, the data processing method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto the electronic device 800 via the ROM 802 and/or the communication unit 809. When loaded into RAM 803 and executed by the computing unit 801, a computer program may perform one or more steps of the data processing method described above. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the data processing method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server may be a cloud server, a server of a distributed system, or a server with a combined blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, "a plurality" means two or more unless specifically limited otherwise.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present disclosure, and all the changes or substitutions should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method of data processing, the method comprising:
receiving first access information, and confirming a register address corresponding to the first access information according to address information carried by the first access information;
confirming a first service corresponding to the register address based on the register address, so that the first service processes the data carried by the first access information according to the register address, and obtains a processing result;
wherein the first service is obtained by dividing an application program.
2. The method of claim 1, wherein prior to receiving the first access information, the method further comprises:
dividing the application into at least one service based on function;
each service is configured.
3. The method of claim 2, wherein configuring each service comprises performing the following for each service:
initializing slave station equipment corresponding to the service;
confirming service information corresponding to the service based on the slave station equipment;
and registering the service to the slave station equipment, and setting the read-write permission of the register address corresponding to the service.
4. The method of claim 3, wherein the service information comprises:
bus identification, device address, start address, register address, and register occupancy information.
5. The method according to claim 1, wherein the determining, based on the register address, the first service corresponding to the register address, so that the first service processes the data carried by the first access information according to the register address, and obtains a processing result, includes:
in response to that the first access information is read information, acquiring data corresponding to the read information from data corresponding to the service based on the first access information;
and confirming the data corresponding to the read information as the processing result.
6. The method according to claim 1, wherein the determining, based on the register address, the first service corresponding to the register address, so that the first service processes the data carried by the first access information according to the register address, and obtains a processing result, includes:
in response to that the first access information is write information, writing data corresponding to the write information in data corresponding to the service based on the first access information;
and confirming that the writing result is the processing result.
7. The method of claim 1, further comprising:
destroying address information corresponding to the second service;
logging off the second service to the slave device.
8. A data processing apparatus, characterized in that the apparatus comprises:
the receiving unit is used for receiving first access information and confirming a register address of a first service corresponding to the first access information according to address information carried by the first access information;
the processing unit is used for confirming a first service corresponding to the register address based on the register address so that the first service processes the data carried by the first access information according to the register address and obtains a processing result;
wherein the first service is obtained by device division.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 1-7.
CN202310185113.2A 2023-02-27 2023-02-27 Data processing method, device, electronic equipment and storage medium Active CN115858206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310185113.2A CN115858206B (en) 2023-02-27 2023-02-27 Data processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310185113.2A CN115858206B (en) 2023-02-27 2023-02-27 Data processing method, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115858206A true CN115858206A (en) 2023-03-28
CN115858206B CN115858206B (en) 2023-07-11

Family

ID=85659534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310185113.2A Active CN115858206B (en) 2023-02-27 2023-02-27 Data processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115858206B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147611A1 (en) * 2000-05-22 2002-10-10 Greene William S. Method and system for realizing a rendezvous service in a management operations center implemented in a global ecosystem of interrelated services
US7673045B1 (en) * 2000-06-15 2010-03-02 Microsoft Corporation Multiple site automated logout
CN111258786A (en) * 2020-01-20 2020-06-09 北京无限光场科技有限公司 Decoupling method and device in layered architecture, terminal and storage medium
CN112199208A (en) * 2020-09-09 2021-01-08 福建天泉教育科技有限公司 Method and terminal for providing additional function interface on android system
CN112965955A (en) * 2021-03-17 2021-06-15 北京奇艺世纪科技有限公司 Data migration method and device, computer equipment and storage medium
CN113495796A (en) * 2020-04-08 2021-10-12 腾讯科技(深圳)有限公司 Service calling method and related equipment
US20220019444A1 (en) * 2021-05-20 2022-01-20 Intel Corporation Decoupling Silicon Initialization and Bootloader by providing Silicon Initialization Service
CN114003291A (en) * 2021-11-02 2022-02-01 武汉深之度科技有限公司 Application program running method and device, computing equipment and storage medium
CN115237500A (en) * 2022-07-29 2022-10-25 浪潮(北京)电子信息产业有限公司 Data processing method, device, equipment and medium of pooling platform
CN115237673A (en) * 2022-06-29 2022-10-25 联宝(合肥)电子科技有限公司 Data processing method and device, electronic equipment and storage medium
CN115454972A (en) * 2022-09-28 2022-12-09 中国农业银行股份有限公司 Data processing method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147611A1 (en) * 2000-05-22 2002-10-10 Greene William S. Method and system for realizing a rendezvous service in a management operations center implemented in a global ecosystem of interrelated services
US7673045B1 (en) * 2000-06-15 2010-03-02 Microsoft Corporation Multiple site automated logout
CN111258786A (en) * 2020-01-20 2020-06-09 北京无限光场科技有限公司 Decoupling method and device in layered architecture, terminal and storage medium
CN113495796A (en) * 2020-04-08 2021-10-12 腾讯科技(深圳)有限公司 Service calling method and related equipment
CN112199208A (en) * 2020-09-09 2021-01-08 福建天泉教育科技有限公司 Method and terminal for providing additional function interface on android system
CN112965955A (en) * 2021-03-17 2021-06-15 北京奇艺世纪科技有限公司 Data migration method and device, computer equipment and storage medium
US20220019444A1 (en) * 2021-05-20 2022-01-20 Intel Corporation Decoupling Silicon Initialization and Bootloader by providing Silicon Initialization Service
CN114003291A (en) * 2021-11-02 2022-02-01 武汉深之度科技有限公司 Application program running method and device, computing equipment and storage medium
CN115237673A (en) * 2022-06-29 2022-10-25 联宝(合肥)电子科技有限公司 Data processing method and device, electronic equipment and storage medium
CN115237500A (en) * 2022-07-29 2022-10-25 浪潮(北京)电子信息产业有限公司 Data processing method, device, equipment and medium of pooling platform
CN115454972A (en) * 2022-09-28 2022-12-09 中国农业银行股份有限公司 Data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN115858206B (en) 2023-07-11

Similar Documents

Publication Publication Date Title
CN107783818B (en) Deep learning task processing method, device, equipment and storage medium
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
WO2020207454A1 (en) Information pushing method and device
EP2500818A1 (en) Method and device for displaying application image
CN110007936B (en) Data processing method and device
CN109766319B (en) Compression task processing method and device, storage medium and electronic equipment
CN113849312A (en) Data processing task allocation method and device, electronic equipment and storage medium
CN108052449B (en) Operating system running state detection method and device
CN115904761A (en) System on chip, vehicle and video processing unit virtualization method
CN113886019B (en) Virtual machine creation method, device, system, medium and equipment
CN114417780A (en) State synchronization method and device, electronic equipment and storage medium
CN116450184B (en) System upgrading method and device, electronic equipment and storage medium
CN110333843B (en) Method and device for realizing high-precision timer of virtual machine and electronic equipment
CN116257320B (en) DPU-based virtualization configuration management method, device, equipment and medium
CN110674050A (en) Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN116302271A (en) Page display method and device and electronic equipment
CN115858206A (en) Data processing method and device, electronic equipment and storage medium
CN114374703B (en) Cloud mobile phone information acquisition method, device, equipment and storage medium
CN114816684A (en) Business processing method, device, equipment, readable storage medium and product
CN113961370A (en) Method, device, server and storage medium for communication between BMC and BIOS
CN114091909A (en) Collaborative development method, system, device and electronic equipment
CN115373869A (en) Process processing method and device based on AAR and electronic equipment
CN113986476A (en) Sensor equipment virtualization method and device, electronic equipment and storage medium
CN113127082A (en) Data processing method, server, service node, system and storage medium
CN113781154A (en) Information rollback method, system, electronic equipment 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