CN115858206B - Data processing method, device, electronic equipment and storage medium - Google Patents
Data processing method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115858206B CN115858206B CN202310185113.2A CN202310185113A CN115858206B CN 115858206 B CN115858206 B CN 115858206B CN 202310185113 A CN202310185113 A CN 202310185113A CN 115858206 B CN115858206 B CN 115858206B
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title abstract description 23
- 238000012545 processing Methods 0.000 claims abstract description 48
- 238000000034 method Methods 0.000 claims abstract description 39
- 230000008569 process Effects 0.000 claims abstract description 12
- 230000006870 function Effects 0.000 claims description 54
- 238000004891 communication Methods 0.000 claims description 29
- 230000005540 biological transmission Effects 0.000 claims 2
- 238000004806 packaging method and process Methods 0.000 claims 2
- 230000004044 response Effects 0.000 description 50
- 238000010586 diagram Methods 0.000 description 20
- 238000004590 computer program Methods 0.000 description 7
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000005314 correlation function Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Computer And Data Communications (AREA)
Abstract
The disclosure provides a data processing method, a device, an electronic device and a storage medium, wherein the method comprises the following steps: 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 data carried by the first access information according to the register address, and obtaining a processing result; wherein the first service is partitioned by an application program.
Description
Technical Field
The disclosure relates to the field of computer technology, and in particular, to a data processing method, a data processing device, electronic equipment and a storage medium.
Background
Communication between applications or devices is typically accomplished by establishing a connection at the application level or device level; accordingly, the communication body is also usually all application programs or all devices, and decoupling between services is difficult.
Disclosure of Invention
The present disclosure provides a data processing method, apparatus, electronic device, and storage medium, so as 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 data carried by the first access information according to the register address, and obtaining a processing result;
wherein the first service is partitioned by an application program.
According to a second aspect of the present disclosure, there is provided a data processing apparatus comprising:
a receiving unit, configured to receive first access information, and confirm 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 data carried by the first access information according to the register address and obtains a processing result;
wherein the first service is partitioned by the device.
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 memory stores instructions executable by the at least one processor to enable the at least one processor to perform the methods described in the present disclosure.
According to a fourth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method described in 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 data carried by the first access information according to the register address, and obtaining a processing result; wherein the first service is obtained by dividing an application program; thus, access to a certain service in the application program can be realized, one party 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 description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The above, as well as additional purposes, features, and advantages of exemplary embodiments of the present disclosure will become readily apparent from the following detailed description when 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, in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
FIG. 1 illustrates an alternative flow diagram of a data processing method provided by an embodiment of the present disclosure;
FIG. 2 shows an alternative schematic diagram of a data processing method provided by an embodiment of the present disclosure;
FIG. 3 shows a dependency graph before each module corresponding to the data processing method provided in the embodiments of the present disclosure;
FIG. 4 shows another alternative flow diagram of a data processing method provided by an embodiment of the present disclosure;
FIG. 5 illustrates a state machine diagram for reading information provided by embodiments of the present disclosure;
FIG. 6 illustrates a state machine diagram for writing information provided by an embodiment of the present disclosure;
FIG. 7 illustrates a schematic diagram of a secondary station device configuration service provided by an embodiment of the present disclosure;
FIG. 8 shows yet another schematic diagram of a data processing method provided by an embodiment of the present disclosure;
FIG. 9 is a schematic diagram showing an alternative configuration of a data processing apparatus provided by an embodiment of the present disclosure;
fig. 10 shows a schematic diagram of a composition structure 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 comprehensible, the technical solutions in the embodiments of the present disclosure will be clearly described in conjunction with the accompanying drawings in the embodiments of the present disclosure, and it is apparent that the described embodiments are only some embodiments of the present disclosure, but not all embodiments. Based on the embodiments in this disclosure, all other embodiments that a person skilled in the art would obtain without making any inventive effort are within the scope of protection of this disclosure.
In the related art, communication between applications or devices is generally implemented by establishing a connection at an application level or a device level; for example, a related art proposes a communication control method, apparatus, vehicle, and storage medium between master and slave devices, which are executed by a master device, the method including: and acquiring a first identifier of the slave device, determining connection control information according to the first identifier, and establishing communication connection between the master device and the slave device according to the connection control information. Accordingly, the communication body is also usually all application programs or all devices, and the bottom layer and the upper layer are difficult to decouple. And, when the function of an application or a device is changed, or the communication mode is changed, a large modification is required; decoupling is difficult when multi-service is developed, and parallel development tasks cannot be realized; the modification of the single function often requires modification of the whole communication code, disconnection of the established communication connection, reconnection after the completion of the modification, difficult decoupling, and influence on the function realization of the whole framework. In addition, the related art has high requirements on the communication mode, for example, the physical layer is an integrated circuit bus (Inter-Integrated Circuit, IIC or I2C) protocol, and the implementation mode is also IIC, and once the physical layer confirms the communication mode, the physical layer is solidified, so that other communication modes cannot be adapted.
In view of the drawbacks of the related art, the present disclosure provides a data processing method to solve at least some or all of the above technical problems.
Fig. 1 shows an alternative flow diagram of a data processing method according to an embodiment of the 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 as an apparatus) divides an application program into at least one service based on a function in advance, and configures each service. Alternatively, the apparatus may divide the code corresponding to the application into at least one service according to different functions, where each service is used to implement one or more functions of the application. The application program may be an application program corresponding to the device (such as an application program/code corresponding to the display), or may be software installed in the electronic device.
In specific implementation, the device initializes the secondary station equipment corresponding to the service and determines the device address corresponding to the service; confirming service information corresponding to a service based on the slave station equipment; registering the service to the slave station equipment, and setting the read-write authority of the register address corresponding to the service. The service information corresponding to the service may include a bus identifier (Identity document, ID) corresponding to the service, a device address corresponding to the service, a register address, a start address in a register, a register occupation size, and a read-write permission of the register address. 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 then 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 an external device, so that the external device carries address information corresponding to the corresponding service when sending access information to the device. 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 a specific implementation, the apparatus may be based on receiving, from the station device, the externally transmitted first access information.
Step S102, confirming a first service corresponding to the register address based on the register address.
In some embodiments, the device confirms a first service corresponding to the register address based on the register address, so that the first service processes data carried by the first access information according to the register address, and obtains a processing result.
In some embodiments, the device responds to the first access information as read information, and obtains data corresponding to the read information from data corresponding to the service based on the first access information; and confirming that the data corresponding to the read information is the processing result.
In the implementation, the device confirms a first service corresponding to a register address included in the address information based on the address information carried by the first access information, and the first service obtains data corresponding to the read information from the data corresponding to the first service.
In other embodiments, the device responds to the first access information as writing information, and writes data corresponding to the writing information in the data corresponding to the first service based on the first access information; and confirming the writing result as the processing result.
In the implementation, the device confirms a first service corresponding to a 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 writing information into the data corresponding to the service.
In some optional embodiments, the apparatus may further destroy service information corresponding to the second service; and logging out the second service from the secondary station equipment. Decoupling of the service is achieved.
Fig. 2 shows an alternative schematic diagram of a data processing method according to an embodiment of the present disclosure, and will be described according to the steps.
As shown in fig. 2, the apparatus splits an Application (APP) into at least one Service, namely, service 1, service2 and Service3 in fig. 2; the at least one service is communicated with the outside based on the secondary station equipment (I2C iSlave); the slave device communicates with an external Master device (I2C Master) based on an I2C BUS driver (I2C BUS).
In some embodiments, as shown in fig. 2, the access information of the external master station device or the slave station device (wherein the access information carries the address information of the service) is transmitted to the slave station device through the I2C bus driver, and the slave station device confirms a register corresponding to the service based on the register address, processes the 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 disclosure.
As shown in fig. 3, each service is inter-dependent with a slave device, which relies on the I2C bus driver.
Thus, by the data processing method provided by the embodiment of the disclosure, the plurality of services split by the application program are packaged into the IIC (I2C) device, and communication is performed between the secondary station device and each service, and when a certain service or a communication mode needs to be changed, the method can be realized by independently logging out a certain service, so that the functions of other services are not influenced, and the decoupling difficulty is reduced. In addition, in the embodiment of the present disclosure, the communication method is not limited, and the bottom layer may adopt a communication method such as I2C or SPI.
Fig. 4 shows another alternative flow diagram of a data processing method according to an embodiment of the disclosure, which will be described according to the 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 divides the code corresponding to the application program into at least one service based on engineering, and configures each service. In specific implementation, the device initializes the I2C bus driver, allocates resources (service information) for each service, and initializes the hardware device.
In some embodiments, the apparatus further initializes a secondary station device to which the service corresponds; confirming address information corresponding to a service based on the slave station equipment; registering the service with the slave station equipment, and setting the read-write permission of the service.
The service information comprises a bus identifier, a device address, a starting address, a register address and register occupation information. Similar to allocating a set of registers for each service, subsequent read and write operations are similar to I2C device read and write registers. The transferred data (read-write data) corresponds to the value of the register.
Step S302, monitoring whether the first access information is received.
In some embodiments, the device may further obtain service information of a service, that is, obtain a data structure of the service, for example, if the service is a diagnostic service, and 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 that the first access information is received and the first access information is read information, step S303 is executed; or if the device monitors that the first access information is received and the first access information is the writing information, step S304 is performed.
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 a first service based on a register address carried by the first access information, and obtains data corresponding to the read information from data corresponding to the first service; and confirming that the data corresponding to the read information is 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 state machine diagram for reading information provided by an embodiment of the present disclosure.
As shown in fig. 5, after receiving the read information (i2c_read_islave_event), first, data corresponding to the read information, that is, a first Service (Search Service) corresponding to the first access information, is acquired, and then, a read operation (i2c_read_service_event) is performed, so as to obtain a processing result.
Step S304, processing the data corresponding to the service based on the register address and the writing 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, and writes data corresponding to the written information in the data corresponding to the first service based on the first access information; and confirming the writing result as the processing result.
For example, if the service corresponding to the first access information is a backlight processing service, the data required to be written into the register is a set backlight value.
Fig. 6 shows a state machine diagram of writing information provided by an embodiment of the present disclosure.
As shown in fig. 6, after receiving the write information (i2c_write_islave_event), data corresponding to the write information, that is, a Service (Search Service) corresponding to the first access information, is first acquired, and then a write operation (i2c_write_service_event) is performed, to obtain a processing result.
Thus, by the data processing method provided by the embodiment of the present disclosure, a physical communication channel is not limited, and the bottom layer may be I2C, SPI, etc.; the static configurable 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, so that the method is flexible and convenient; the method comprises the steps of (1) an objectifying idea, dividing an application program into a plurality of services, and further realizing a plurality of entities; the device (application program) is increased and reduced to be stripped from the bottom layer driver, the driver code does not need to be modified, the device is simple and easy to use, the upper layer application is decoupled to the greatest extent, the upper layer is strong in direct decoupling with the bottom layer, and the change of each part has little influence on other parts and does not need to be modified.
Fig. 7 shows a schematic diagram of a secondary station device configuration service provided by an embodiment of the present disclosure, and will be described according to respective steps.
Fig. 7 is a detailed flowchart of the configuration service in step S301, where the information transmitted in fig. 7 is a correlation function.
As shown in fig. 7, the service transmits an i2c_islave_init function to the slave station apparatuses for initializing all the slave station apparatuses, allocating resources for each service (confirming address information of each service); after the secondary station equipment responds to the i2c_islave_init function to complete initialization, response information is returned to the service, if the secondary station equipment succeeds, the response information is 0, and if the secondary station equipment fails, the response information is the failure reason.
The service transmits an i2c_islave_service_register function to the slave station device for registering the service to the slave station device; after the slave station equipment responds to the i2c_islave_service_register function to complete service registration, response information is returned to the service, the response information is 0 if successful, and the response information is the failure reason if failed.
The service transmits an i2c_islave_service_setauth function to the slave station equipment so that the slave station equipment sets the address space read-write permission; after the slave station equipment responds to the i2c_islave_service_setAuth function to set 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 the failure reason.
The service sends an i2c_islave_service_regPtr function to the slave station equipment so as to acquire a starting address space of the service; after the slave station device responds to the i2c_islave_service_regptr function, response information is returned to the service, if successful, the response information is 0, and if failed, the response information is the failure reason.
The service sends an i2c_islave_service_regPtr function to the slave station equipment so as to acquire a starting address space of the service; after the slave station device responds to the i2c_islave_service_regptr function, response information is returned to the service, if successful, the response information is 0, and if failed, the response information is the failure reason.
The slave station apparatus acquires the relevant data from the service based on the read information, or the slave station apparatus 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, performs service cancellation, and destroys related resources; after the slave station equipment logs out the service in response to the i2c_islave_service_unregister function, response information is returned to the service, if the response information is 0, and if the response information is failure, the response information is the failure reason.
The service transmits an i2c_bus_deinit function to the slave station equipment, realizes inverse initialization of i2c bus driving, and destroys related resources; the secondary station device sends an i2c_iSlave_deinit function to the service to realize inverse initialization of the secondary station device and destroy related resources.
Fig. 8 shows still another schematic diagram of a data processing method provided by an embodiment of the present disclosure.
Fig. 8 shows a detailed flow diagram of the configuration service described in steps S301 to S304, and the information transmitted in fig. 8 is a correlation function.
As shown in fig. 8, the service transmits an i2c_islave_init function to the slave station apparatuses for initializing all the slave station apparatuses, allocating resources for each service (confirming address information of each service); after the secondary station equipment responds to the i2c_islave_init function to complete initialization, response information is returned to the service, if the secondary station equipment succeeds, the response information is 0, and if the secondary station equipment fails, the response information is the failure reason.
The slave station device sends an i2c_islave_register function to the I2C bus driver, and registers the slave station device; after the i2c bus driving response i2c_islave_register function registers the slave station equipment, response information is returned to the service, if successful, the response information is 0, and if failed, the response information is the failure reason.
The service transmits an i2c_islave_service_register function to the slave station device for registering the service to the slave station device; after the slave station equipment responds to the i2c_islave_service_register function to complete service registration, response information is returned to the service, the response information is 0 if successful, and the response information is the failure reason if failed.
The service transmits an i2c_islave_service_setauth function to the slave station equipment so that the slave station equipment sets the address space read-write permission; after the slave station equipment responds to the i2c_islave_service_setAuth function to set 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 the failure reason.
The service sends an i2c_islave_service_regPtr function to the slave station equipment so as to acquire a starting address space of the service; after the slave station device responds to the i2c_islave_service_regptr function, response information is returned to the service, if successful, the response information is 0, and if failed, the response information is the failure reason.
The service sends an i2c_islave_service_regPtr function to the slave station equipment so as to acquire a starting address space of the service; after the slave station device responds to the i2c_islave_service_regptr function, response information is returned to the service, if successful, the response information is 0, and if failed, the response information is the failure reason.
The I2C bus drives to send an i2c_read_iSlave_event function to the slave station equipment, and the i2c_read_iSlave_event function is used for reading data in the service; 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 a register corresponding to the service, the service returns a reading result to the slave station equipment, and the slave station equipment returns the reading result to the I2C bus driver.
The I2C bus drives to send an i2c_write_iSlave_event function to the slave station device, and the i2c_write_iSlave_event 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, is used for writing corresponding data in a register corresponding to the service, returns a writing result to the slave station equipment, and returns the reading result to the I2C bus driver.
The service sends an i2c_islave_service_unregister function to the slave station equipment, performs service cancellation, and destroys related resources; after the slave station equipment logs out the service in response to the i2c_islave_service_unregister function, response information is returned to the service, if the response information is 0, and if the response information is failure, the response information is the failure reason.
The service transmits an i2c_bus_deinit function to the slave station equipment, realizes inverse initialization of i2c bus driving, and destroys related resources; the secondary station device sends an i2c_iSlave_deinit function to the service to realize inverse initialization of the secondary station device and destroy related resources.
The slave station device sends an i2c_islave_unregister function to the I2C bus driver, and the i2c_islave_unregister function is used for logging off the slave station device to destroy corresponding resources.
Fig. 9 is a schematic diagram showing an alternative configuration of a data processing apparatus provided in an embodiment of the present disclosure, and explanation will be made according to the respective 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 confirm 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 402 is configured to confirm, based on the register address, a first service corresponding to the register address, so that the first service processes data carried by the first access information according to the register address, and obtain a processing result;
wherein the first service is partitioned by the device.
In some embodiments, the data processing apparatus 400 further comprises a registration unit 403.
The registration unit 403 is configured to divide the application program 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 secondary station device corresponding to a service; confirming address information corresponding to a service based on the slave station equipment; registering the service with the slave station equipment, and setting the read-write permission of the service.
In some embodiments, the address information includes:
bus identification, device address, start address, register address, and register occupancy information.
The processing unit 402 is specifically configured to, in response to the first access information being read information, obtain data corresponding to the read information from data corresponding to the service based on the first access information;
and confirming that the data corresponding to the read information is the processing result.
The processing unit 402 is specifically configured to, in response to the first access information being write information, write data corresponding to the read information in data corresponding to the service based on the first access information;
and confirming the writing result as the processing result.
The registration unit 403 is further configured to destroy address information corresponding to the second service; and logging out the second service from the secondary station equipment.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
Fig. 10 illustrates 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. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary 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 required for the operation of the electronic device 800 can also be stored. The computing 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 the bus 804.
Various components in electronic device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; 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, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. 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.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the respective methods and processes described above, such as a data processing method. For example, in some embodiments, the data processing method may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 800 via the ROM 802 and/or the communication unit 809. When a computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the data processing method described above may be performed. 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 circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code 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 code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. 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. The 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 portable 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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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 incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
The foregoing is merely specific embodiments of the disclosure, but the protection scope of the disclosure is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the disclosure, and it is intended to cover the scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (9)
1. A method of data processing, the method comprising:
dividing the application program into at least one service based on the function; packaging the at least one service as an integrated circuit bus device, the at least one service comprising a first service and a second service;
receiving first access information, and confirming a register address corresponding to the first access information according to address information corresponding to a service 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 data carried by the first access information according to the register address, and obtaining a processing result;
destroying address information corresponding to the second service; logging off the second service to the secondary station device;
wherein the at least one service is based on communication transmissions by the secondary station device with an external primary station device.
2. The method of claim 1, wherein after the dividing the application into at least one service based on the function, the method further comprises:
each service is configured.
3. The method of claim 2, wherein configuring each service comprises, for each service:
initializing a secondary station device corresponding to the service;
confirming service information corresponding to a service based on the slave station equipment;
registering the service to the slave station equipment, and setting the read-write authority of the register address corresponding to the service.
4. A method according to 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 validating the 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, includes:
responding to the first access information as read information, and acquiring data corresponding to the read information from the data corresponding to the service based on the first access information;
and confirming that the data corresponding to the read information is the processing result.
6. The method according to claim 1, wherein the validating the 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, includes:
responding to the first access information as writing information, and writing data corresponding to the writing information in the data corresponding to the service based on the first access information;
and confirming the writing result as the processing result.
7. A data processing apparatus, the apparatus comprising:
a registration unit for dividing the application program into at least one service based on the function; packaging the at least one service as an integrated circuit bus device, the at least one service comprising a first service and a second service;
a receiving unit, configured to receive first access information, and confirm a register address of a first service corresponding to the first access information according to address information corresponding to the service 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 data carried by the first access information according to the register address and obtains a processing result;
the registration unit is further used for destroying address information corresponding to the second service; logging off the second service to the secondary station device;
wherein the at least one service is based on communication transmissions by the secondary station device with an external primary station device.
8. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-6.
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 CN115858206A (en) | 2023-03-28 |
CN115858206B true 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 (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7673045B1 (en) * | 2000-06-15 | 2010-03-02 | Microsoft Corporation | Multiple site automated logout |
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 |
CN115237500A (en) * | 2022-07-29 | 2022-10-25 | 浪潮(北京)电子信息产业有限公司 | A data processing method, apparatus, device and medium for a pooling platform |
CN115237673A (en) * | 2022-06-29 | 2022-10-25 | 联宝(合肥)电子科技有限公司 | Data processing method, device, electronic device and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6922685B2 (en) * | 2000-05-22 | 2005-07-26 | Mci, Inc. | Method and system for managing partitioned data resources |
CN111258786B (en) * | 2020-01-20 | 2023-09-05 | 北京有竹居网络技术有限公司 | Decoupling method, device, terminal and storage medium in layered architecture |
CN113495796A (en) * | 2020-04-08 | 2021-10-12 | 腾讯科技(深圳)有限公司 | Service calling method and related equipment |
US12379934B2 (en) * | 2021-05-20 | 2025-08-05 | Intel Corporation | Decoupling silicon initialization and bootloader by providing silicon initialization service |
CN114003291B (en) * | 2021-11-02 | 2024-09-10 | 武汉深之度科技有限公司 | Application program running method and device, computing equipment and storage medium |
CN115454972A (en) * | 2022-09-28 | 2022-12-09 | 中国农业银行股份有限公司 | Data processing method, device, equipment and storage medium |
-
2023
- 2023-02-27 CN CN202310185113.2A patent/CN115858206B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7673045B1 (en) * | 2000-06-15 | 2010-03-02 | Microsoft Corporation | Multiple site automated logout |
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 |
CN115237673A (en) * | 2022-06-29 | 2022-10-25 | 联宝(合肥)电子科技有限公司 | Data processing method, device, electronic device and storage medium |
CN115237500A (en) * | 2022-07-29 | 2022-10-25 | 浪潮(北京)电子信息产业有限公司 | A data processing method, apparatus, device and medium for a pooling platform |
Also Published As
Publication number | Publication date |
---|---|
CN115858206A (en) | 2023-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110007936B (en) | Data processing method and device | |
EP2500818A1 (en) | Method and device for displaying application image | |
CN113886019B (en) | Virtual machine creation method, device, system, medium and equipment | |
CN111193803A (en) | Spring group-based micro-service construction method and spring group micro-service framework | |
CN113157365B (en) | Program running method, program running device, electronic equipment and computer readable medium | |
CN116450184B (en) | System upgrading method and device, electronic equipment and storage medium | |
CN110674050B (en) | Memory out-of-range detection method and device, electronic equipment and computer storage medium | |
CN115269033B (en) | Method and system for loading external service component package by aPaaS platform | |
CN112416632A (en) | Event communication method and device, electronic equipment and computer readable medium | |
CN113518183B (en) | Camera calling method and device and electronic equipment | |
CN115858206B (en) | Data processing method, device, electronic equipment and storage medium | |
CN115373869A (en) | Process processing method and device based on AAR and electronic equipment | |
CN111596992B (en) | Navigation bar display method and device and electronic equipment | |
CN110086880B (en) | Method and apparatus for creating instances of network requests | |
CN112817701B (en) | Timer processing method, device, electronic equipment and computer readable medium | |
CN116501529A (en) | Fault processing method and device, storage medium and electronic equipment | |
CN112506819B (en) | Dual-system-based external equipment control method, device, equipment and storage medium | |
CN111381898B (en) | Interface calling method and device, mobile terminal and storage medium | |
CN102301337A (en) | Method for preserving service in a highly available environment | |
CN114398098B (en) | Application script execution method, device, electronic equipment and computer readable medium | |
US11809880B2 (en) | Dynamically verifying ingress configuration changes | |
CN114911633B (en) | Remote procedure call retry method, device and equipment | |
CN117675897A (en) | Application interaction method, device, equipment and storage medium | |
CN118519589B (en) | Data processing method, distributed storage system, product, equipment and medium | |
CN118394611B (en) | Out-of-band installation operating system progress identification method, device, equipment and 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 |