Business processing method and device, computer equipment and storage medium

Through the combination of WASM parsing execution layer and adaptive glued intermediate layer, the problem of difficulty in using multiple electronic devices is solved, and a better user experience is achieved.

CN120011003APending Publication Date: 2025-05-16BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311517411.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the ad hoc network system, it is difficult for the application to make full use of the hardware resources of all electronic devices associated with the user, resulting in poor user experience.

Method used

The WASM parsing execution layer converts the service processing request into the target code, and uses the adaptive glue intermediate layer to determine the target hardware and target electronic devices based on the target hierarchical coding table, and finally controls the target hardware to execute the target code.

Benefits of technology

It realizes the full use of all the hardware resources associated with users in the ad hoc network system, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120011003A_ABST
    Figure CN120011003A_ABST
Patent Text Reader

Abstract

The invention provides a business processing method and device, computer equipment and a storage medium, and relates to the technical field of electronic equipment. Comprising the steps that a service processing request sent by an application program in first electronic equipment is received, and the first electronic equipment is any one of multiple pieces of electronic equipment associated with a target user; a WASM analysis execution layer is utilized to convert the service processing request into a target code; in the adaptive gluing middle layer, target hardware and target electronic equipment where the target hardware is located are determined based on a target hierarchical coding table corresponding to a target service type of the service processing request, and the target electronic equipment is electronic equipment associated with a target user; and controlling target hardware in the target electronic equipment, and executing the target code. Therefore, the optimal target hardware can be selected from all the electronic devices associated with the target user to process the service processing request, so that all hardware resources associated with the target user can be fully utilized, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electronic equipment, and in particular to a business processing method, device, computer equipment and storage medium. Background Art

[0002] There are many types of electronic devices with various capability requirements, ranging from voice-controlled switches to mobile devices, and even intelligent servers and ad hoc network devices. Therefore, when multiple electronic devices associated with a user form an ad hoc network system, how the application on any electronic device can fully utilize the capabilities of all electronic devices associated with the user has become a key research direction. Summary of the invention

[0003] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0004] The first embodiment of the present disclosure provides a service processing method, including:

[0005] Receiving a service processing request sent by an application in a first electronic device, wherein the first electronic device is any electronic device among a plurality of electronic devices associated with a target user;

[0006] Utilize the WASM parsing execution layer to convert the business processing request into target code;

[0007] Determine, by using the adaptive gluing intermediate layer, the target hardware and the target electronic device where the target hardware is located based on the hierarchical coding table corresponding to the business type of the business processing request, wherein the target electronic device is an electronic device associated with the target user;

[0008] The target hardware in the target electronic device is controlled to execute the target code.

[0009] The second aspect of the present disclosure provides a service processing device, including:

[0010] A receiving module, configured to receive a service processing request sent by an application in a first electronic device, wherein the first electronic device is any electronic device among a plurality of electronic devices associated with a target user;

[0011] A conversion module, used to convert the business processing request into target code by using the WASM parsing execution layer;

[0012] A determination module, configured to determine, by using an adaptation gluing intermediate layer, a target hardware and a target electronic device where the target hardware is located based on a hierarchical coding table corresponding to a service type of the service processing request, wherein the target electronic device is an electronic device associated with the target user;

[0013] A control module is used to control the target hardware in the target electronic device to execute the target code.

[0014] The third aspect of the present disclosure provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the business processing method provided in the first aspect of the present disclosure is implemented.

[0015] The fourth aspect of the present disclosure provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the business processing method provided in the first aspect of the present disclosure is implemented.

[0016] The business processing method, device, computer equipment and storage medium provided by the present disclosure have the following beneficial effects:

[0017] In the disclosed embodiment, after receiving a business processing request sent by an application in a first electronic device, the WASM parsing execution layer is used to convert the business processing request into a target code, and in the adaptation and gluing middle layer, based on the target hierarchical coding table corresponding to the target business type of the business processing request, the target hardware and the target electronic device where the target hardware is located are determined, and finally the target hardware in the target electronic device is controlled to execute the target code. Thus, after an application in any electronic device associated with a target user initiates a business processing request, the best target hardware can be selected from all electronic devices associated with the target user in the adaptation and gluing middle layer based on the target hierarchical coding table to process the business processing request, thereby making full use of all hardware resources associated with the target user and improving the user experience.

[0018] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 A flowchart of a business processing method provided by an embodiment of the present disclosure;

[0021] Figure 2 A flowchart of a business processing method provided by another embodiment of the present disclosure;

[0022] Figure 3 A schematic diagram of the structure of a service processing device provided by an embodiment of the present disclosure;

[0023] Figure 4 A block diagram of an exemplary device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0025] The following describes the service processing method, apparatus, computer equipment, and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.

[0026] Figure 1 A flowchart of a business processing method provided by an embodiment of the present disclosure.

[0027] like Figure 1 As shown, the business processing method may include the following steps:

[0028] Step 101: receiving a service processing request sent by an application in a first electronic device, wherein the first electronic device is any electronic device among a plurality of electronic devices associated with a target user.

[0029] In the embodiment of the present disclosure, multiple electronic devices associated with the target user can form an ad hoc network system. The multiple electronic devices associated with the target user are electronic devices associated with the target user and in a turned-on state. The electronic devices associated with the target user can be embedded devices or non-embedded devices, which is not limited in the present disclosure.

[0030] The application program may be implemented in any programming language, such as C language, Python language, Java language, etc. This disclosure does not limit this.

[0031] Step 102: Use WASM to parse and execute the layer to convert the business processing request into target code.

[0032] Among them, the WebAssembly (WASM for short) parsing and execution layer can integrate a variety of parsing and execution tools, thereby realizing the conversion of multiple programming languages ​​into machine code or intermediate code.

[0033] The target code may be in the form of machine code or intermediate code, which is not limited in the present disclosure.

[0034] Optionally, the WASM parsing execution layer can integrate at least one parsing execution tool: wasmer, wasmer-go, wasmer-python, wasmer-java, wasmt ime, wasmer-C and wasmer-C++.

[0035] Among them, the parsing and execution tool provides the ability to parse and execute WASM modules in different programming languages ​​and environments.

[0036] For example, Wasmer-Go is a Go language binding for Wasmer, which allows developers to use the functions provided by Wasmer in the Go language, thereby parsing and executing Wasm modules in the Go language environment. Wasmer-Python is a Python binding for Wasmer, which allows developers to use Wasmer in Python to parse and execute Wasm modules.

[0037] Optionally, after receiving a business processing request, you can first determine the target programming language used by the business processing request, then select a target parsing execution tool corresponding to the target programming language from multiple execution parsing tools in the WASM parsing execution layer, and finally convert the business processing request into target code based on the target parsing execution tool.

[0038] In the disclosed embodiment, the runtime environment can be isolated by parsing the execution layer through WASM.

[0039] Step 103, in the adaptation and gluing middle layer, based on the target classification coding table corresponding to the target service type of the service processing request, determine the target hardware and the target electronic device where the target hardware is located.

[0040] The target electronic device is an electronic device associated with a target user, and the target hardware in the target electronic device is used to execute the service processing request.

[0041] Among them, the adaptation and gluing middle layer can support the policy selection and configuration of the same function, that is, the most suitable hardware can be selected in the adaptation and gluing middle layer to process the business processing request.

[0042] The service type may include video playback service, network communication service, etc., which is not limited in the present disclosure. The target service type may be any one of the video playback service, network communication service, etc.

[0043] In the disclosed embodiment, a hierarchical coding table corresponding to each business type can be generated in advance. Thus, after receiving a business processing request, a target hierarchical coding table can be determined based on the target business type corresponding to the business processing request. The target hierarchical coding table includes the capabilities of all candidate hardware that can execute the business processing request, the first identifier of the candidate hardware, and the second identifier of the electronic device where the candidate hardware is located.

[0044] Optionally, a hierarchical coding table corresponding to each business type can be generated in the following manner: based on the business type, the hardware in each electronic device associated with the target user is divided to obtain candidate hardware corresponding to each business type, and then a hierarchical coding table corresponding to each business type is generated based on the capabilities of the candidate hardware corresponding to each business type, the first identifier of the candidate hardware and the second identifier of the electronic device where the candidate hardware is located.

[0045] In some embodiments, candidate hardware corresponding to a service type may come from different electronic devices. For example, the electronic devices associated with the target user include mobile phones, computers, and televisions. If the service type is a video playback service, the mobile phones, computers, and televisions all have hardware with video playback functions. Therefore, the hardware with video playback functions in the mobile phones, computers, and televisions can all be candidate hardware corresponding to the video playback service.

[0046] The candidate hardware corresponding to the service type may also be a combination of multiple hardware. For example, a combination of hardware A and hardware B may execute the service corresponding to the service type. Hardware A and hardware B may be hardware in different electronic devices or hardware in the same electronic device, and this disclosure does not limit this.

[0047] The first identifier of the candidate hardware may be a model, version number, callback address, or symbol of the candidate hardware, etc. This disclosure does not limit this.

[0048] The second identifier corresponding to the electronic device may be the type of the electronic device, such as a mobile phone, a computer, a television, etc. This disclosure does not limit this.

[0049] It should be noted that the capabilities of hardware that can achieve the same function may be different. For example, both telephoto cameras and wide-angle cameras can be used for shooting, but the telephoto camera shoots at a farther distance and the wide-angle camera shoots at a wider range. Therefore, a hierarchical coding table corresponding to each business type can be generated based on the capabilities of the candidate hardware, the first identifier of the candidate hardware, and the second identifier of the electronic device where the candidate hardware is located.

[0050] In some possible implementations, the adaptation glue middle layer may provide different interfaces for different service types for invocation by an application program on an electronic device associated with a target user.

[0051] In some possible implementations, libraries of multiple programming languages ​​and development, debugging and simulation tool sets can be provided, and application development only needs to follow the functional description in the hierarchical coding table, use the corresponding functional capabilities through the corresponding interface, thereby reducing the workload of application development and improving application development efficiency.

[0052] In the disclosed embodiment, the target hardware and the target electronic device may also be determined from the target classification coding table according to a preset strategy, wherein the preset strategy may be user-defined, or may be determined according to the user's usage habits.

[0053] For example, the preset policy corresponding to the video playback service may be performance priority, power consumption priority, etc. If the preset policy is performance priority, the hardware with the best performance may be selected to process the service processing request according to the capability of the candidate hardware corresponding to the target service type.

[0054] Step 104, controlling the target hardware in the target electronic device to execute the target code.

[0055] In the disclosed embodiment, after the target hardware is determined, the target hardware in the target electronic device can be controlled to execute the target code to process the service processing request.

[0056] In the disclosed embodiment, after receiving a business processing request sent by an application in a first electronic device, the WASM parsing execution layer is used to convert the business processing request into a target code, and in the adaptation and gluing middle layer, based on the target hierarchical coding table corresponding to the target business type of the business processing request, the target hardware and the target electronic device where the target hardware is located are determined, and finally the target hardware in the target electronic device is controlled to execute the target code. Thus, after an application in any electronic device associated with a target user initiates a business processing request, the best target hardware can be selected from all electronic devices associated with the target user in the adaptation and gluing middle layer based on the target hierarchical coding table to process the business processing request, thereby making full use of all hardware resources associated with the target user and improving the user experience.

[0057] Figure 2 A flowchart of a business processing method provided by an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the business processing method may include the following steps:

[0058] Step 201 : Based on the service type, the hardware in each electronic device associated with the target user is divided to obtain candidate hardware corresponding to each service type.

[0059] Step 202: Determine a third identifier corresponding to the candidate hardware according to the first identifier of the candidate hardware and the second identifier of the electronic device where the candidate hardware is located.

[0060] Specifically, the first identifier and the second identifier may be combined to obtain a third identifier corresponding to the candidate hardware.

[0061] Step 203: Generate a hierarchical coding table corresponding to each service type according to the capability of the candidate hardware and the third identifier of the candidate hardware.

[0062] In the embodiment of the present disclosure, the candidate hardware may be divided based on the capability of the candidate hardware to determine the candidate hardware with the same capability. In the hierarchical coding table, each capability may correspond to one or more candidate hardware. The present disclosure does not limit this.

[0063] Step 204: When the number of electronic devices associated with the target user increases or decreases, the hierarchical coding table corresponding to the service type associated with the hardware is updated according to the hardware in the increased or decreased electronic devices.

[0064] If the target user's electronic device is deleted or turned off, it is determined that the number of electronic devices has decreased. If it is detected that an electronic device associated with the target user is turned on, or the target user adds a new electronic device, it is determined that the number of electronic devices has increased.

[0065] If the number of electronic devices associated with the target user increases or decreases, the hierarchical coding table associated with the hardware in the increased or decreased electronic devices needs to be updated, thereby improving the accuracy of the extension coding table.

[0066] Step 205: receiving a service processing request sent by an application in a first electronic device, wherein the first electronic device is any electronic device among a plurality of electronic devices associated with a target user.

[0067] Step 206: Use the WASM parsing execution layer to convert the business processing request into target code.

[0068] The specific implementation forms of step 205 to step 206 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be repeated here.

[0069] Step 207: When the target hierarchical coding table contains third identifiers corresponding to multiple candidate hardware, determine the third identifier corresponding to the target hardware from the target hierarchical coding table based on a preset strategy.

[0070] When the target hierarchical coding table contains the third identifiers corresponding to multiple candidate hardwares, it means that multiple candidate hardwares can process the service processing request. Therefore, based on the policy and in combination with the capability of each candidate hardware in the target hierarchical coding table, the third identifier corresponding to the optimal target hardware can be selected.

[0071] Step 208: Determine the target hardware and the target electronic device where the target hardware is located according to the third identifier corresponding to the target hardware.

[0072] It should be noted that, since the third identifier includes the first identifier of the hardware and the second identifier of the electronic device where the hardware is located, the target hardware and the target electronic device can be accurately determined based on the third identifier.

[0073] Step 209: Control the target hardware in the target electronic device to execute the target code.

[0074] In the disclosed embodiment, after generating a hierarchical coding table according to the hardware in each electronic device associated with the target user, if the electronic devices associated with the target user increase or decrease, the hierarchical coding table corresponding to the business type associated with the hardware is updated according to the hardware in the increased or decreased electronic devices, and then the target hardware and the target electronic device are determined according to the updated hierarchical coding table. In this way, the electronic devices of the target user can be dynamically identified and the hierarchical coding table can be updated, providing support for fully utilizing the hardware resources associated with the user.

[0075] In the disclosed embodiments, the capabilities of the hardware in the electronic devices within the system can be classified and uniformly coded on the application side, and libraries in multiple programming languages ​​and a set of development, debugging, and simulation tools can be provided. Application development only needs to use the corresponding functional capabilities according to the functional description in the hierarchical coding table.

[0076] In the embodiments of the present disclosure, the functions and hardware capabilities within the system can be implemented in multiple languages. The system provides an adaptive gluing middle layer to support policy selection and configuration of the same function (such as performance priority, power consumption priority, price priority, and comprehensive settings), and provides an extensible WASM-based parsing and execution layer in the compilation stage. It integrates multiple parsing and execution tools, converts multiple languages ​​into machine code or intermediate code, and connects to provide the functional capabilities of the adaptive gluing middle layer.

[0077] In the disclosed embodiment, corresponding to different embedded hardware devices, there are respective hardware capability description files and electronic device function description files, and the functions of the devices are identified in the compilation and linking stage, and the implementation of the hardware functions that can be alternatively executed at runtime is generated in the corresponding hierarchical coding table, which can be callback addresses or symbols for scheduling by the adaptation glue middle layer at runtime.

[0078] In the disclosed embodiment, during the operation of the electronic device, the system will identify all devices associated with the user and all hardware devices that the user is authorized to use during use based on the cloud authentication of the user account at startup. When the user runs an application on an embedded device, the corresponding interface will evaluate and use the hardware capabilities of all the user's associated devices based on the policy set on the adapter glue middle layer, and jointly provide the best capability support for the application, enhance the user experience, and make full use of all the hardware resources of the user's devices. At the same time, auxiliary facilities are also configured to prompt the user of changes in functional capabilities and provide guidance on expanding capabilities.

[0079] In order to implement the above embodiments, the present disclosure also proposes a service processing device.

[0080] Figure 3 A schematic diagram of the structure of a business processing device provided in an embodiment of the present disclosure.

[0081] like Figure 3 As shown, the service processing device 300 may include:

[0082] The receiving module 301 is used to receive a service processing request sent by an application in a first electronic device, wherein the first electronic device is any electronic device among a plurality of electronic devices associated with a target user.

[0083] The conversion module 302 is used to convert the business processing request into target code by using the WASM parsing execution layer.

[0084] The determination module 303 is used to determine the target hardware and the target electronic device where the target hardware is located by using the adaptation gluing intermediate layer based on the hierarchical coding table corresponding to the service type of the service processing request, wherein the target electronic device is an electronic device associated with the target user;

[0085] The control module 304 is used to control the target hardware in the target electronic device and execute the target code.

[0086] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.

[0087] The business processing device of the disclosed embodiment, after receiving the business processing request sent by the application in the first electronic device, uses the WASM parsing execution layer to convert the business processing request into a target code, and in the adaptation and gluing intermediate layer, based on the target hierarchical coding table corresponding to the target business type of the business processing request, determines the target hardware and the target electronic device where the target hardware is located, and finally controls the target hardware in the target electronic device to execute the target code. Thus, after the application in any electronic device associated with the target user initiates a business processing request, the best target hardware can be selected from all electronic devices associated with the target user based on the target hierarchical coding table in the adaptation and gluing intermediate layer to process the business processing request, thereby making full use of all hardware resources associated with the target user and improving the user experience.

[0088] In order to implement the above embodiments, the present disclosure also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the business processing method proposed in the above embodiments of the present disclosure is implemented.

[0089] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the business processing method proposed in the above embodiments of the present disclosure is implemented.

[0090] Figure 4 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. Figure 4 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0091] like Figure 4 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0092] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0093] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0094] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disk read only memory (hereinafter referred to as: CD-ROM), a digital versatile disk read only memory (hereinafter referred to as: DVD-ROM) or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.

[0095] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0096] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0097] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.

[0098] The description of the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.

[0099] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0100] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.

[0101] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0102] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0103] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0104] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0105] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.

Claims

1. A business processing method, characterized in that: include: Receiving a service processing request sent by an application in a first electronic device, wherein the first electronic device is any electronic device among a plurality of electronic devices associated with a target user; Utilize the WASM parsing execution layer to convert the business processing request into target code; In the adaptation and gluing middle layer, based on the target hierarchical coding table corresponding to the target service type of the service processing request, the target hardware and the target electronic device where the target hardware is located are determined, wherein the target electronic device is an electronic device associated with the target user; The target hardware in the target electronic device is controlled to execute the target code.

2. The method according to claim 1, characterized in that Also includes: Based on the business type, the hardware in each electronic device associated with the target user is divided to obtain candidate hardware corresponding to each business type; A hierarchical coding table corresponding to each of the business types is generated according to the capability of the candidate hardware corresponding to each of the business types, the first identification of the candidate hardware and the second identification of the electronic device where the candidate hardware is located.

3. The method according to claim 2, characterized in that The step of generating a hierarchical coding table corresponding to each of the service types according to the capability of the candidate hardware corresponding to each of the service types, the first identifier of the candidate hardware, and the second identifier of the electronic device where the candidate hardware is located comprises: Determining a third identifier corresponding to the candidate hardware according to the first identifier of the candidate hardware and the second identifier of the electronic device where the candidate hardware is located; The hierarchical coding table corresponding to each of the service types is generated according to the capability of the candidate hardware and the third identifier of the candidate hardware.

4. The method according to claim 3, characterized in that The determining, based on a target hierarchical coding table corresponding to a target service type of the service processing request, target hardware and a target electronic device where the target hardware is located comprises: In a case where the target hierarchical coding table contains third identifiers corresponding to a plurality of candidate hardware, determining the third identifier corresponding to the target hardware from the target hierarchical coding table based on a preset strategy; The target hardware and the target electronic device where the target hardware is located are determined according to the third identifier corresponding to the target hardware.

5. The method according to claim 2 or 3, characterized in that: Also includes: In the case where the number of electronic devices associated with the target user increases or decreases, the hierarchical coding table corresponding to the service type associated with the hardware is updated according to the hardware in the increased or decreased electronic devices.

6. The method according to claim 2, characterized in that The adaptation and gluing middle layer provides different interfaces for different service types, so as to be called by the application programs on the electronic devices associated with the target users.

7. The method according to claim 1, characterized in that The WASM parsing execution layer integrates at least one parsing execution tool: wasmer, wasmer-go, wasmer-python, wasmer-java, wasmtime, wasmer-C and wasmer-C++.

8. The method according to claim 7, characterized in that The WASM parsing execution layer is used to convert the business processing request into a target code, including: Determining a target programming language used by the business processing request; Selecting a target parsing execution tool corresponding to the target programming language from a plurality of execution parsing tools in the WASM parsing execution layer; Based on the target parsing execution tool, the business processing request is converted into the target code.

9. A service processing device, characterized in that: The device comprises: A receiving module, configured to receive a service processing request sent by an application in a first electronic device, wherein the first electronic device is any electronic device among a plurality of electronic devices associated with a target user; A conversion module, used to convert the business processing request into target code by using the WASM parsing execution layer; A determination module, configured to determine, in the adaptation and gluing intermediate layer, a target hardware and a target electronic device where the target hardware is located based on a hierarchical coding table corresponding to a service type of the service processing request, wherein the target electronic device is an electronic device associated with the target user; A control module is used to control the target hardware in the target electronic device to execute the target code.

10. A computer device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the business processing method as claimed in any one of claims 1 to 8 is implemented.

11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the service processing method according to any one of claims 1 to 8 is implemented.