Business processing method, electronic device, processing device, vehicle and medium
By determining the target execution equipment for business needs in the distributed system in the vehicle, the problem of insufficient computing capabilities of equipment in the vehicle is solved, the flexible processing of business needs and the rational use of computing resources is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202311635145.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2025-05-30
AI Technical Summary
The computing power of the equipment in the vehicle is difficult to meet the high-demand business needs of users, and the use of high-computing chips will increase hardware cost and complexity.
By implementing the business processing method in a distributed system, the first device determines the target device for executing the business needs based on the computing power requirements of the business needs, its own computing power information and other equipment's computing power information. This method enables business requirements to be executed by any device in the distributed system, realizing computing power sharing and reasonable use.
It realizes flexible processing of business needs, shares computing resources of equipment in distributed systems, reduces the hardware cost and complexity of a single device, and improves the user's driving experience.
Smart Images

Figure CN120066688A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing, and particularly to a service processing method, an electronic device, a processing device, a vehicle, and a computer-readable storage medium. Background Art
[0002] To meet the increasing user requirements, more and more devices in vehicles have been made intelligent and have certain computing capabilities. However, user requirements may have relatively high requirements for the computing capabilities of devices. If each device is equipped with a chip with a relatively high computing capability, it is difficult to control the hardware costs of the devices and the entire vehicle. Summary of the Invention
[0003] This application provides a service processing method, an electronic device, a processing device, a vehicle, and a computer-readable storage medium.
[0004] An embodiment of this application provides a service processing method for a distributed system. The distributed system includes a first device and a second device communicatively connected to the first device. The method is for the first device and includes:
[0005] Obtain a service requirement;
[0006] Determine a target device for executing the service requirement according to a first computing power requirement of the service requirement, a first computing power information of the first device, and a second computing power information of the second device. The target device is a device among the first device and the second device.
[0007] In an embodiment of this application, the first device in the distributed system can obtain a service requirement and determine a target device from the first device itself and the second device according to the first computing power requirement of the service requirement, the first computing power information of the first device, and the second computing power information of the second device. In this way, when the first device in the embodiment of this application obtains a service requirement, it can determine a target device for executing the service requirement from the first device itself and the second device communicatively connected to the first device itself in the distributed system, so that the service requirement can be executed by the first device or the second device in the distributed system, thereby enabling flexible processing of the service requirement and sharing of the computing power of the first device and the second device in the distributed system, and to a certain extent, enabling the computing power of the first device and the second device to be reasonably used. The embodiment of this application can determine a target device according to the first computing power requirement, the first computing power information, and the second computing power information, thereby ensuring the reliable determination of the target device to a certain extent.
[0008] In some embodiments of this application, when the first computing power information meets a first preset condition, the target device is the first device.
[0009] In this way, the implementation mode of the present application enables the target device to be the first device whose second computing power meets the first preset condition, so that the target device can be reliably determined.
[0010] In some implementation modes of the present application, the first preset condition is that the computing power of the first device indicated by the first computing power information can meet the first computing power requirement.
[0011] In this way, the target device in the implementation mode of the present application can be the first device whose computing power can meet the computing power requirement of the service requirement, so that the target device can be reliably determined.
[0012] In some implementation modes of the present application, the method further includes:
[0013] Execute a control instruction, which is determined according to the service requirement and is used to instruct the target device to execute the service requirement.
[0014] In this way, the implementation mode of the present application enables the first device to execute the service requirement according to the control instruction determined by the service requirement, so that the service requirement can be reliably executed.
[0015] In some implementation modes of the present application, the method further includes:
[0016] When the service requirement is a display service requirement, send the execution result of the display service requirement to the display device in the second device.
[0017] In this way, in the implementation mode of the present application, when the service requirement of the target device in the vehicle is a display service requirement, the execution result of the display service requirement can be sent to the second device. Furthermore, the execution result of the display service requirement, such as the image processing result, can be displayed on different display devices with display functions in the vehicle, and multiple users in the vehicle can watch the same video, thus improving the driving experience of the users to a certain extent.
[0018] In some implementation modes of the present application, when the second computing power information meets the second preset condition, the target device is the second device.
[0019] In this way, the target device in the implementation mode of the present application can be the second device whose second computing power information meets the second preset condition, thus ensuring the reasonable setting of the target device to a certain extent.
[0020] In some implementation modes of the present application, the second preset condition is that the computing power of the second device indicated by the second computing power information can meet the first computing power requirement.
[0021] In this way, the target device in the implementation manner of the present application can be a second device whose computing power can meet the computing power requirements of the service requirements, to a certain extent ensuring the reasonable determination of the target device.
[0022] In some implementation manners of the present application, the method further includes:
[0023] Sending a control instruction to the target device, where the control instruction is determined according to the service requirements, and the control instruction is used to instruct the target device to execute the service requirements.
[0024] In this way, the first device in the implementation manner of the present application can send a control instruction to the second device, so that the second device or the target device can execute the service requirements according to the received control instruction, thereby enabling the reliable completion of the execution of the service requirements.
[0025] In some implementation manners of the present application, the method further includes:
[0026] When the service requirement is a display service requirement and the first device is a display device, displaying the execution result of the display service requirement.
[0027] In this way, the first device that is a display device in the implementation manner of the present application can display the execution result of the display service requirement according to the data fed back by the target device, so that the execution result generated by the second device can be displayed on the first device. Furthermore, when the execution result of the display service requirement is simultaneously displayed on the second device, the same content can be simultaneously displayed on the first device and the second device of the vehicle, and different users in the vehicle can respectively view the same image through the first device and the second device, and the driving experience of the users can be improved to a certain extent.
[0028] In some implementation manners of the present application, there are multiple second devices.
[0029] In some implementation manners of the present application, when the second computing power information of at least two second devices meets a second preset condition, the target device is the one among the at least two second devices that earlier feeds back that it can meet the first computing power requirement.
[0030] In this way, the implementation manner of the present application enables the target device to be determined by one of the second devices that earlier feeds back the first computing power requirement, so that the service requirements can be completed by one second device or one target device. To a certain extent, it ensures the reasonable execution of the service requirements.
[0031] The implementation manner of the present application provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and when the computer program is executed by the processor, the above-mentioned service processing method is implemented.
[0032] An embodiment of the present application provides a processing device for a distributed system. The distributed system includes a first device and a second device communicatively connected to the first device. The device is for the first device and includes:
[0033] A transceiver unit for obtaining service requirements;
[0034] A processing unit for determining a target device for executing the service requirements based on a first computing power requirement of the service requirements, a first computing power information of the first device, and a second computing power information of the second device. The target device is a device among the first device and the second device.
[0035] An embodiment of the present application provides a vehicle, including a vehicle body;
[0036] The vehicle body is equipped with the above-mentioned electronic device or the above-mentioned processing device.
[0037] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by one or more processors, implements the above-mentioned service processing method.
[0038] For the electronic device, processing device, and vehicle provided by the embodiments of the present application, when the first device obtains service requirements, it can determine a target device for executing the service requirements from itself and the second device communicatively connected to itself within the distributed system, so that the service requirements can be executed by the first device or the second device within the distributed system, thereby enabling flexible processing of the service requirements, sharing the computing power of the first device and the second device within the distributed system, and to a certain extent, enabling the computing power of the first device and the second device to be reasonably used. The embodiments of the present application can determine the target device according to the first computing power requirement, the first computing power information, and the second computing power information, thereby ensuring the reliable determination of the target device to a certain extent.
[0039] Additional aspects and advantages of the embodiments of the present application will be given in part in the following description, become apparent in part from the following description, or be understood through the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the description of the embodiments in conjunction with the following drawings, where:
[0041] Figure 1 is a flowchart of a service processing method in some embodiments of the present application;
[0042] Figure 2 is a schematic diagram of an application scenario in some embodiments of the present application;
[0043] Figure 3 Schematic diagram of the application scenario of some embodiments of the present application;
[0044] Figure 4 Schematic diagram of the application scenario of some embodiments of the present application. Specific embodiments
[0045] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and should not be construed as a limitation to the embodiments of the present application.
[0046] Different from general computer devices, some devices in a vehicle, such as a display, usually have an independent processor or controller, that is, some devices in a vehicle have a certain computing ability. Further, when a user uses the display screen in a vehicle, such as watching a movie through the display, the display can complete the movie playback task without relying on other controllers (such as a domain controller) in the vehicle.
[0047] However, the computing ability of devices such as a display is limited. If a user needs to play a large game or perform other operations with high computing power requirements, due to the insufficient computing ability of the processor or controller of the display itself, the user's needs are difficult to achieve or meet.
[0048] Furthermore, if a chip with higher computing power is installed or set in a display screen or other devices to meet the user's needs, on the one hand, the hardware cost of a single device will be relatively high, and on the other hand, due to the continuous complexity of the user's needs, the chips with sufficient computing power at the current stage may still not be able to meet the user's needs in later use.
[0049] Based on the above possible problems, please refer to Figure 1 , the embodiments of the present application provide a service processing method for a first device in a distributed system, and the distributed system includes a first device and a second device communicatively connected to the first device. Further, the service processing method provided by the embodiments of the present application includes:
[0050] 01: Obtain service requirements;
[0051] 02: Determine a target device for executing the service requirements according to the first computing power requirement of the service requirements, the first computing power information of the first device, and the second computing power information of the second device, where the target device is a device among the first device and the second device.
[0052] An embodiment of the present application further provides an electronic device, which includes a memory and a processor. The service processing method provided by the embodiment of the present application can be implemented by the electronic device of the embodiment of the present application. Specifically, a computer program is stored in the memory, and the processor is configured to obtain a service requirement; determine a target device for executing the service requirement according to the first computing power requirement of the service requirement, the first computing power information of the first device, and the second computing power information of the second device, where the target device is a device among the first device and the second device.
[0053] An embodiment of the present application further provides a processing device, which can be used for the first device in a distributed system. The distributed system includes the first device and a second device communicatively connected to the first device. The service processing method provided by the embodiment of the present application can be implemented by the processing device of the embodiment of the present application. Specifically, the processing device includes a processing unit and a transceiver unit. The processing unit is configured to obtain a service requirement. The transceiver unit is configured to determine a target device for executing the service requirement according to the first computing power requirement of the service requirement, the first computing power information of the first device, and the second computing power information of the second device, where the target device is a device among the first device and the second device.
[0054] That is, when the user of the first device of the embodiment of the present application performs an operation, such that the first device needs to process a certain service requirement, the first computing power requirement corresponding to the service requirement can be determined according to a pre-set program or unit, and the first computing power information of itself can be determined, and the second computing power information of each second device communicatively connected to itself in the distributed system can be determined according to a pre-set program or unit. Furthermore, the first device determines a target device for completing or executing the service requirement from itself and other second devices according to the first computing power requirement, the first computing power information, and the second computing power information.
[0055] Among them, the specific setting method and specific form of the distributed system in the embodiment of the present application are contents that can be set according to actual situations. For example, in some embodiments, the distributed system may be a soft bus distributed system, and subsequent distributed systems can be understood as soft bus distributed systems.
[0056] In addition, the computing capabilities of each device (i.e., the first device and the second device) in the distributed system of the embodiment of the present application may be different, or rather, the computing power of each device is different. In addition, an instruction or service requirement of any device in the distributed system can be executed by any device in the distributed system. For example, the service requirement of the first device can be executed by itself and the second device, and the service requirement of the second device can be executed by itself and the first device.
[0057] It can be understood that the business requirements in the embodiments of the present application can be understood as performing certain functions or completing a certain data processing task, specifically, the content that can be set according to the actual situation. For example, in some embodiments, the business requirements may include "performing noise reduction processing on the pictures captured by the vehicle camera".
[0058] It can also be understood that in some embodiments of the present application, there may be one second device in the embodiments of the present application. In other embodiments, the second device includes multiple ones.
[0059] It should also be noted that the first device and the second device in the embodiments of the present application can be understood as two different devices. However, it should be understood that both the first device and the second device in the embodiments of the present application can execute the above-mentioned service processing method provided by the embodiments of the present application and can produce the same effect.
[0060] Furthermore, both the first device and the second device in the embodiments of the present application can be understood as various devices of the vehicle, such as vehicle displays including but not limited to the main control screen (or called the central control screen), the co-pilot cockpit screen, the rear row cockpit screen, etc., and can also be understood as user terminal devices, such as smart phones and smart bracelets, etc. Optionally, in some embodiments, the first device in the distributed system refers to one device T in the set S composed of "various devices of the vehicle (including but not limited to vehicle displays) and user terminal devices (including but not limited to smart phones and smart bracelets)", and the second device in the distributed system refers to other devices in the set S except the device T.
[0061] It can be understood that the business requirements in the embodiments of the present application can be understood as performing certain functions or completing a certain data processing task. In some embodiments, the business requirements may include "performing noise reduction processing on the pictures captured by the vehicle camera".
[0062] Furthermore, the acquisition method of the first computing power requirement of the business requirements is the content set according to the actual situation. For example, the first computing power requirement of the business requirements can be estimated according to the data volume involved in the business requirements, that is, the computing power required for the execution of the business requirements can be evaluated according to the magnitude of the data required to be processed when the business requirements are executed. For example, compared with the analytical processing business requirements, the transaction processing business requirements involve less data, so the computing power required for the execution of the transaction processing business requirements is lower.
[0063] It can also be understood that the determination process (or acquisition process) of the first computing power information of the first device and the determination process (or acquisition process) of the second computing power information of the second device are both content that can be set according to the actual situation. For example, in some embodiments, both the first device and the second device can determine their own computing power information based on the difference between the maximum number of processes that can be run and the current number of running processes of their own.
[0064] Moreover, it can be clear that the manner in which the first device obtains the second computing power information of the second device is content that can be set according to the actual situation. For example, in some embodiments of the present application, between the first device and the second device that are communicatively connected in a distributed system, their computing power information can be shared regularly. As a result, the first device can know the second computing power information of the second device, and the second device can know the first computing power information of the first device and the second computing power information of other second devices.
[0065] It can also be clear that the target device in the embodiments of the present application can be one of the first device and all the second devices. Moreover, the manner of determining the target device is content that can be set according to the actual situation. For example, when the first device confirms that its own computing power is sufficient, that is, when the first device determines according to its own first computing power information that the first computing power requirement of the service requirement can be satisfied by itself, the first device can confirm itself as the target device, and then make itself execute the service requirement.
[0066] For another example, when the first device confirms that the second computing power information of the second device can satisfy the first computing power requirement of the service requirement, the second device can be confirmed by the first device as the target device, and then make the second device execute the service requirement.
[0067] In summary, when the first device in the embodiments of the present application obtains a service requirement, it can determine the target device for executing the service requirement from itself and the second devices communicatively connected to itself in the distributed system, so that the service requirement can be executed by the first device or the second device in the distributed system, thereby enabling flexible processing of the service requirement, sharing the computing power of the first device and the second devices in the distributed system, and to a certain extent, enabling the computing power of the first device and the second devices to be reasonably used. The embodiments of the present application can determine the target device according to the first computing power requirement, the first computing power information, and the second computing power information, thereby ensuring the reliable determination of the target device to a certain extent.
[0068] In some embodiments of the present application, when the first computing power information meets the first preset condition, the target device is the first device.
[0069] Specifically, the first device in the embodiments of the present application can determine itself as the target device that can execute or process the service requirement when its own first computing power information meets the preset condition set in advance.
[0070] It can be understood that the first preset condition is content that can be set according to the actual situation. For example, in some embodiments, the first computing power requirement includes the computing power required for the execution of the service requirement, the first computing power information includes the current remaining computing power of the first device, and the first preset condition is that the computing power required for the execution of the service requirement is less than or equal to a preset ratio (such as 80%) of the current remaining computing power of the first device.
[0071] In this way, the embodiment of the present application enables the target device to be the first device whose second computing power meets the first preset condition, so that the target device can be reliably determined.
[0072] In some embodiments of the present application, the first preset condition is that the computing power of the first device indicated by the first computing power information can meet the first computing power requirement.
[0073] Specifically, in the embodiment of the present application, if the computing power of the first device can meet the computing power requirement of the service requirement, it indicates that the first computing power information of the first device can meet the first preset condition. Among them, the computing power of the first device can be obtained according to the first computing power information, and the computing power requirement of the service requirement can be obtained according to the first computing power requirement.
[0074] It can be understood that the "computing power of the first device" can be understood as the current remaining computing power of the first device, can also be understood as the maximum computing power of the first device, or can also be understood in other forms.
[0075] It can also be understood that when the computing power of the first device is higher than or equal to the computing power requirement of the service requirement, it can be determined that the computing power of the first device can meet the computing power requirement of the service requirement. In other embodiments, when the difference between the computing power of the first device and the computing power requirement of the service requirement is a certain value (such as 10% of the computing power of the first device), the first device can be confirmed as the target device.
[0076] In this way, the target device in the embodiment of the present application can be the first device whose computing power can meet the computing power requirement of the service requirement, so that the target device can be reliably determined.
[0077] In some embodiments of the present application, the method further includes:
[0078] Execute a control instruction, where the control instruction is determined according to the service requirement, and the control instruction is used to instruct the target device to execute the service requirement.
[0079] The processor in the embodiment of the present application is further used to execute the control instruction, where the control instruction is determined according to the service requirement, and the control instruction is used to instruct the target device to execute the service requirement.
[0080] The processing unit according to the embodiment of the present application is further configured to execute a control instruction, which is determined according to service requirements and is used to instruct a target device to execute the service requirements.
[0081] Specifically, when a user of the first device according to the embodiment of the present application performs a certain operation, causing the first device itself to execute a certain service requirement, the first device may generate a control instruction for executing the service requirement.
[0082] Moreover, when the first device itself is confirmed as the target device, the first device may execute corresponding actions according to the control instruction, thereby completing the execution of the service requirement.
[0083] In this way, the embodiment of the present application enables the first device to execute the service requirement according to the control instruction determined by the service requirement, ensuring the reliable execution of the service requirement.
[0084] In some embodiments of the present application, the method further includes:
[0085] When the service requirement is a display service requirement, sending the execution result of the display service requirement to a display device in the second device.
[0086] The processor according to the embodiment of the present application is further configured to send the execution result of the display service requirement to a display device in the second device when the service requirement is a display service requirement.
[0087] The processing unit according to the embodiment of the present application is further configured to send the execution result of the display service requirement to a display device in the second device when the service requirement is a display service requirement.
[0088] Specifically, in order for different users in the same vehicle cockpit space to watch the same video, the embodiment of the present application also enables any device, when generating video information, that is, when the service requirement executed by the target device is a display service requirement, and after the target device completes the execution of the display service requirement to obtain an execution result and can display the video information corresponding to the execution result by itself, the target device may send the execution result to the display device in the second device, so that the display devices in the distributed system can display the same video information.
[0089] Therefore, when the first device is the target device, and then the first device completes the service requirement or the display service requirement and thus obtains the corresponding execution result, the first device may send the execution result of the service requirement to the display device in the second device that is communicatively connected to itself in the distributed system, so that both the first device and the second device display the corresponding video information according to the execution result of the service requirement.
[0090] Optionally, in some embodiments of the present application, after obtaining the execution result of the service requirement, the target device or the first device may send a display prompt message to each display device among all the second devices.
[0091] Moreover, after the display device receives the display prompt message, the display device may feedback the display prompt message to the user, so that the user can confirm whether the display device can perform a display action according to the execution result of the service requirement.
[0092] After the display device feedbacks a display confirmation message to the target device according to the user, the first device may send the execution result of the service requirement to the display device, so that the display device can display corresponding image information according to the execution result of the service requirement.
[0093] In this way, the embodiments of the present application enable the target device in the vehicle to send the execution result of the display service requirement to the second device when the service requirement is a display service requirement. Furthermore, the execution result of the display service requirement, such as the image processing result, can be displayed on different display devices with display functions in the vehicle, and multiple users in the vehicle can watch the same video, thus improving the driving experience of the users to a certain extent.
[0094] In some embodiments of the present application, when the second computing power information meets the second preset condition, the target device is the second device.
[0095] Specifically, the first device in the embodiments of the present application may confirm that the second device is the target device when the second computing power information of the second device meets the second preset condition.
[0096] It can be understood that the second preset condition is content that can be set according to the actual situation. For example, in some embodiments, the first computing power requirement includes the computing power required for the execution of the service requirement, the second computing power information includes the current remaining computing power of the second device, and the second preset condition is that the current remaining computing power of the second device is higher than or equal to the computing power required for the execution of the service requirement.
[0097] In this way, the target device in the embodiments of the present application can be the second device whose second computing power information meets the second preset condition, thus ensuring the reasonable setting of the target device to a certain extent.
[0098] In some embodiments of the present application, the second preset condition is that the computing power of the second device indicated by the second computing power information can meet the first computing power requirement.
[0099] Specifically, in the embodiments of the present application, if the computing power of the second device can meet the computing power requirement of the service requirement, it indicates that the first computing power information of the second device can meet the first preset condition. Among them, the computing power of the second device can be obtained according to the second computing power information.
[0100] Among them, it can be understood that the computing power of the second device can be understood as the current remaining computing power of the second device, the maximum computing power of the second device, or other forms.
[0101] It can also be understood that when the computing power of the second device is higher than or equal to the computing power required by the service demand, it can be determined that the computing power of the second device can meet the computing power required by the service demand. In some other embodiments, when the difference between the computing power of the second device and the computing power required by the service demand is a certain value, such as 10% of the computing power of the second device, the second device can be confirmed as the target device.
[0102] In this way, the target device in the embodiment of the present application can be the second device whose computing power can meet the computing power required by the service demand, which to a certain extent ensures the reasonable determination of the target device.
[0103] Optionally, in some embodiments of the present application, specific reference can be made to Figure 2 , Figure 2 , which is a schematic diagram of an application scenario in some embodiments of the present application. That is, after obtaining the service demand, the first device 200 in the embodiment of the present application can evaluate the execution computing power of the service demand, that is, the first computing power demand, through the first computing power evaluation unit 211 inside itself.
[0104] The first device 210 can complete the execution of the service demand when its first computing power information meets the first preset condition.
[0105] When the first computing power information of the first device 210 cannot meet the first preset condition, the first device 210 can also send the first computing power demand to each second device 220, or broadcast the first computing power demand of the service demand to each second device 220 in the distributed system 200. Thus, it is avoided that the first device unconditionally requests other devices to help process its own service demand, resulting in the situation where the first device has idle computing power or idle resources but does not process any service demand.
[0106] After receiving the first computing power demand broadcast by the first device 210, any second device 220 can determine whether it can meet the required computing power of the service demand according to its own second computing power information.
[0107] If it is determined that it cannot execute the service demand, or if it is determined that its second computing power information does not meet the second preset condition, the second device 220 can send a negative feedback message to the first device 210 to indicate that it refuses to execute or cannot execute the service demand.
[0108] In contrast, if it is determined that the second computing power information of itself meets the second preset condition, the second device 220 may send a positive feedback message to the first device 210 to indicate that it agrees to execute the service requirement. It can be understood that if the first device 210 receives the positive feedback message, the first device 210 may use the second device that sends the positive feedback message as the target device mentioned above.
[0109] It can be understood that the positive feedback message and the negative feedback message in the embodiments of the present application are content that can be set according to actual situations. For example, in some embodiments, both the positive feedback message and the negative feedback message are represented by a Boolean type of data. That is, if the value of the data is "true", the data is a positive feedback message, and if the value of the data is "false", the data is a negative feedback message.
[0110] Optionally, in some embodiments of the present application, when the second computing power information of the second device 220 does not meet the second preset condition, the second device 220 does not send a negative feedback message to the first device 210. Therefore, after the first device 210 broadcasts the first computing power requirement, if it receives a message sent by any second device 220 in response to the first computing power requirement (which may be the above positive feedback message), it will confirm the second device 220 that sends the message as the target device.
[0111] It can be understood that when the first device 210 determines the target device, the first device 210 may cause the target device to execute the service requirement.
[0112] In some embodiments of the present application, the method further includes:
[0113] Sending a control instruction to the target device, where the control instruction is determined according to the service requirement and is used to instruct the target device to execute the service requirement.
[0114] The processor in the embodiments of the present application is further configured to send a control instruction to the target device, where the control instruction is determined according to the service requirement and is used to instruct the target device to execute the service requirement.
[0115] The processing unit in the embodiments of the present application is further configured to send a control instruction to the target device, where the control instruction is determined according to the service requirement and is used to instruct the target device to execute the service requirement.
[0116] Specifically, the first device in the embodiments of the present application may generate a control instruction for executing the service requirement. In addition, the first device may also send the control instruction to the second device when it determines that the second device is the target device. When the second device receives the control instruction, the second device may perform corresponding operations according to the control instruction to complete the execution or processing of the service requirement.
[0117] Optionally, such asFigure 2 As shown, when the first computing power information of the first device 210 in the embodiment of the present application cannot meet the first preset condition, while the second computing power information of the second device 220 meets the second preset condition, and the first device receives the positive feedback information sent by the second device 220, the first device sends an execution instruction to the second device 220, so that the second device that sends the positive feedback information performs corresponding operations according to the control instruction.
[0118] In this way, the first device in the embodiment of the present application can send a control instruction to the second device, so that the second device or the target device can execute the service requirement according to the received control instruction, thereby reliably completing the execution of the service requirement.
[0119] In some embodiments of the present application, the method further includes:
[0120] When the service requirement is a display service requirement and the first device is a display device, display the execution result of the display service requirement.
[0121] The processor in the embodiment of the present application is further configured to display the execution result of the display service requirement when the service requirement is a display service requirement and the first device is a display device.
[0122] The processing unit in the embodiment of the present application displays the execution result of the display service requirement when the service requirement is a display service requirement and the first device is a display device.
[0123] Specifically, in the embodiment of the present application, to meet the requirement that multiple users can watch the same video in the same vehicle cockpit space, any device that generates image information, that is, any second device, after completing the display service requirement corresponding to the control instruction according to the received control instruction and generating an execution result that can be used for display, the second device can also send the execution result of the display service requirement to other devices (such as the first device) that include display components (such as a display screen). Thus, the first device can display the corresponding image according to the execution result of the display service requirement.
[0124] Optionally, the target device or the second device can send a prompt message to the first device with a display function and other second devices with a display function after obtaining the execution result of the display service requirement. After receiving the prompt message, the first device and other second devices can give feedback to the user to enable the user to determine whether the execution result of the display service requirement can be displayed.
[0125] If any one of the first device with a display function and other second devices with a display function sends a display confirmation message to the target device or the second device according to a user operation, the target device or the second device according to the embodiment of the present application can feedback the execution result of the display service requirement, so that the device receiving the execution result of the display service requirement can display corresponding image information according to the execution result of the display service requirement.
[0126] In this way, the first device, which is a display device according to the embodiment of the present application, can display the execution result of the display service requirement according to the data fed back by the target device. Thus, the execution result generated by the second device can be displayed on the first device. Furthermore, when the execution result of the display service requirement is simultaneously displayed on the second device, the same content can be simultaneously displayed on the first device and the second device of the vehicle, and different users in the vehicle can respectively view the same image through the first device and the second device, and the driving experience of the users can be improved to a certain extent.
[0127] Optionally, in some embodiments of the present application, there are multiple second devices.
[0128] Specifically, in the embodiment of the present application, there can be multiple second devices. Furthermore, when the target device is a second device, the target device can be one of the multiple second devices, or two or more devices among the multiple second devices.
[0129] In some embodiments of the present application, when the second computing power information of at least two second devices meets the second preset condition, the target device is the one among the at least two second devices that can feedback earlier to meet the first computing power requirement.
[0130] Specifically, any second device according to the embodiment of the present application can, after receiving the first computing power requirement, determine that its own second computing power information meets the second preset condition, that is, determine that it can execute the service requirement, and then send a corresponding feedback message to the first device, so that the first device can determine that it can be the target device.
[0131] Moreover, when multiple second devices all send corresponding feedback messages to the first device, the first device can determine the second device that sends the feedback message earliest as the target device.
[0132] For a clearer illustration of the embodiment of the present application, please refer to again Figure 2 . Among them, after obtaining the service requirement, the first device 210 can evaluate the computing power requirement of the service requirement through the first computing power evaluation unit 211 inside itself to obtain the first computing power requirement.
[0133] Then, the first device 210 may send the first computing power requirement to each second device 220 , or in other words, broadcast the first computing power requirement of the service demand to each second device 220 in the distributed system 200 .
[0134] After any second device 220 receives the first computing power requirement broadcasted by the first device 210, it can determine whether it can execute the service requirement based on its own second computing power information.
[0135] If it is determined that it can perform the business requirement, the second device 220 can send a positive feedback message (that is, the above feedback message) to the first device 210 to indicate that it agrees to perform the business requirement. It can be understood that if the first device 210 receives the positive feedback message, the first device 210 can use the second device that sends the positive feedback message as the above target device.
[0136] Furthermore, if multiple second devices 220 send the above feedback information to the first device 210, the first device determines the sender of the feedback information received earliest as the target device.
[0137] Optionally, in some embodiments, when one of the first device and all the second devices is determined as the target device, the target device may send a notification message to other devices to inform the other devices that "the target device for processing the business needs has been determined" to reduce resource consumption of other devices to a certain extent.
[0138] In this way, the implementation method of the present application enables the target device to be determined by a second device that earlier feeds back the first computing power requirement, so that the business requirement can be completed by a second device or a target device, thus ensuring the reasonable execution of the business requirement to a certain extent.
[0139] Optionally, in certain embodiments of the present application, please refer to Figure 3 , Figure 3 A schematic diagram of an application scenario in certain embodiments of the present application.
[0140] That is, after the second device or target device completes the corresponding business processing according to the control instruction, it can send the execution result to the vehicle display, user device (such as mobile phone) and other external devices in the distributed system. Therefore, the target device can use its own computing power to complete the processing of business needs, thereby reducing the computing power load of other display components in the vehicle, and then support more vehicle display components or display devices to display the same picture (corresponding execution results), thereby realizing "one machine with multiple screens".
[0141] It should also be noted that Figure 3 The fact that one of the second devices includes two computing units is only an example. In most cases, the first device or the second device may include only one computing unit.
[0142] In this way, in the implementation manner of the present application, after the second device in the vehicle generates the processing result corresponding to the instruction, the processing result can be sent to one or more other devices in the distributed system, so that the other devices can display the processing result. Furthermore, the same picture or video can be displayed on different devices with display functions, thereby meeting the requirement that different users can watch the same movie or TV show when they are in the same vehicle cockpit space, and the driving and riding experience of the users can be improved to a certain extent.
[0143] Optionally, in some implementation manners of the present application, after the target completes the processing of the service requirement, it will also generate a corresponding processing result. Moreover, the processing result can be sent to the requester of the service requirement, and the requester may include the target device itself and other devices, or there may be a situation where the first device is the upstream data party and the requester is the second device, another downstream data party.
[0144] Generally, the second device can record the identification information of the initiator of the service requirement or control instruction in a specific file, so as to determine the recipient of the processing result of the service requirement or control instruction by reading the identification information of the initiator in the file after generating the processing result.
[0145] In the implementation manner of the present application, the second device can determine the recipient of the processing result of the control instruction received this time according to the recipient of the processing result of the instruction sent by other devices received previously, that is, according to the recipient of the processing result corresponding to the last received control instruction.
[0146] Exemplarily, if the second device determines the service requirement corresponding to the control instruction after completing the processing result corresponding to the control instruction according to the latest received control instruction, and there is a similar or matching situation between the service requirement corresponding to the control instruction and the service requirement corresponding to the last received control instruction. For example, if the last received control instruction was used to make the music player in device A perform a play action, and the control instruction executed this time is used to make the music player in device A perform a song-skipping operation, then it is determined that the service requirement corresponding to the control instruction and the service requirement corresponding to the last received control instruction match.
[0147] In contrast, if the last received control instruction was used to make the music player in device A perform a play action, and the control instruction executed this time is used to make the music player in device B perform a song-skipping operation, then it is determined that the service requirement corresponding to the control instruction and the service requirement corresponding to the last received control instruction do not match.
[0148] Moreover, when the service requirements corresponding to the control instruction match the service requirements corresponding to the previously received control instruction, the second device can directly send the execution result of the control instruction to the execution result recipient corresponding to the previously received control instruction, that is, device A.
[0149] It should also be noted that since the current service requirements match the previous service requirements, it indicates that the currently received control instruction and the previously received control instruction are issued by the same device, that is, both are issued by the same first device. Therefore, the second device can directly send the execution result of the service requirements to the first device, so that the first device can perform subsequent operations based on the received execution result.
[0150] For a clearer illustration of the embodiments of the present application, reference may specifically be made to Figure 4 , Figure 4 which is a schematic diagram of the application scenario of some embodiments of the present application. That is, in the embodiments of the present application, when a certain device in the distributed system 200 becomes the target device 230, or in other words, becomes the target device 230 of any one or more of the device No. 1 240, device No. 2 250, and device No. 3 260, taking the device No. 1 240 as an example, the device No. 1 can send the instruction for processing the service requirements to the target device 230.
[0151] After receiving the instruction from the device No. 1, the target device 230 can call its own computing unit No. 1 and computing unit No. 2 to process the service requirements corresponding to the instruction, thereby generating the corresponding execution result.
[0152] When the target device generates the execution result corresponding to the instruction, the target device can determine whether the service requirements corresponding to the control instruction being processed at this time match the service requirements of the previously received control instruction, or in other words, whether the service requirements corresponding to the currently received control instruction match the service requirements corresponding to the previously received control instruction on the target device, so as to determine whether the current instruction is coherent with the previously received instruction.
[0153] If they match or are coherent, for example, if the service requirements corresponding to the instruction sent by the device No. 1 240 at this time are to display the second frame of the picture on the device No. 1 240, and the service requirements corresponding to the previously received instruction are to display the first frame of the picture on the device No. 1 240, then the target device 230 can directly send the currently generated execution result to the device No. 1 240.
[0154] Furthermore, when the execution result is displayable content or data (such as the above-mentioned second frame of the image), the target device also sends a display prompt message to other devices in the distributed system 200 while sending the execution result to the device No. 1 240, that is, sends a display prompt message to the device No. 2 250 and the device No. 3 260.
[0155] If the target device receives the confirmation information for the display prompt message sent by the second device 250 and the third device 260, the target device may send the execution result of the instruction of the first device 240 to the second device 250 and the third device 260, so that the first display screen 242 of the first device 240, the second display screen 252 of the second device 250, and the third display screen 262 of the third device 260 can all display the same picture or image.
[0156] An embodiment of the present application further provides a vehicle, which includes a vehicle body. The vehicle body is equipped with the above-mentioned electronic device or the above-mentioned processing device.
[0157] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the above-mentioned service processing method is implemented.
[0158] In the description of this specification, the descriptions with reference to terms such as "specifically", "further", "specially", "understandably", etc. mean that the specific features, structures, materials or characteristics described in connection with the embodiments or examples are included in at least one embodiment or example of the present application. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.
[0159] Any process or method description shown in the flowchart or described in other ways herein can be understood as representing a module, segment or part of the code of executable instructions including one or more steps for implementing a specific logical function or process. The scope of the preferred embodiments of the present application includes additional implementations, where the functions may be executed in a substantially simultaneous manner or in the reverse order according to the involved functions, rather than in the order shown or discussed, which should be understood by those skilled in the technical field of the embodiments of the present application.
[0160] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present application. Those of ordinary skill in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present application.
Claims
1. A service processing method for a distributed system, characterized in that, the distributed system includes a first device and a second device communicatively connected to the first device, the method is for the first device, and the method includes: Obtaining a service requirement; Determining a target device for executing the service requirement according to the first computing power requirement of the service requirement, the first computing power information of the first device, and the second computing power information of the second device, where the target device is a device among the first device and the second device.
2. The method according to claim 1, characterized in that, when the first computing power information meets a first preset condition, the target device is the first device.
3. The method according to claim 2, characterized in that, the first preset condition is that the computing power of the first device indicated by the first computing power information can meet the first computing power requirement.
4. The method according to claim 2, characterized in that, the method further includes: Executing a control instruction, where the control instruction is determined according to the service requirement, and the control instruction is used to instruct the target device to execute the service requirement.
5. The method according to claim 4, characterized in that, the method further includes: When the service requirement is a display service requirement, sending the execution result of the display service requirement to a display device among the second devices.
6. The method according to claim 1, characterized in that, when the second computing power information meets a second preset condition, the target device is the second device.
7. The method according to claim 6, characterized in that, the second preset condition is that the computing power of the second device indicated by the second computing power information can meet the first computing power requirement.
8. The method according to claim 6, characterized in that, the method further includes: Sending a control instruction to the target device, where the control instruction is determined according to the service requirement, and the control instruction is used to instruct the target device to execute the service requirement.
9. The method according to claim 8, characterized in that, the method further includes: When the service requirement is a display service requirement and the first device is a display device, displaying the execution result of the display service requirement.
10. The method according to claim 6, characterized in that, the second device includes multiple ones.
11. The method according to claim 10, characterized in that, when the second computing power information of at least two second devices meets the second preset condition, the target device is the one among the at least two second devices that can satisfy the first computing power requirement and gives an earlier feedback.
12. An electronic device, characterized in that, it includes a memory and a processor, and a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1-11 is implemented.
13. A processing device for a distributed system, characterized in that, The distributed system includes a first device and a second device communicatively connected to the first device. The apparatus for the first device includes: a transceiver unit configured to obtain a service requirement; a processing unit configured to determine a target device for executing the service requirement according to a first computing power requirement of the service requirement, first computing power information of the first device, and second computing power information of the second device, where the target device is one of the first device and the second device.
14. A vehicle, characterized in that it includes a vehicle body; the vehicle body is equipped with the electronic device according to claim 12, or is equipped with the processing device according to claim 13.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and when the computer program is executed by one or more processors, the method according to any one of claims 1-11 is implemented.
Citation Information
Patent Citations
Computing power distribution method and device and edge network
CN115292031A
Data processing method, computing power device and communication system
CN115550452A
Data processing method, computing power node equipment and computer readable storage medium
CN116166423A
Information processing method and apparatus, device, and storage medium
WO2022143750A1