Resource sharing method, device and equipment for vehicle terminal and mobile terminal, and medium

Through Starflash communication technology and resource virtualization methods, the problem of low resource sharing and low performance between vehicle terminals and mobile terminals is solved, and efficient resource utilization and dynamic management are achieved.

CN119536974APending Publication Date: 2025-02-28CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311117719.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-31
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The resource sharing utilization rate and usage performance of the vehicle terminal and mobile terminal are low, and the existing technology cannot effectively solve the problem of physical isolation of resources, resulting in low resource utilization and performance.

Method used

Through Star Flash Communication Technology, the communication connection between the vehicle terminal and the mobile terminal is established, the available computing resource parameters and storage resource parameters of each device are obtained, resource virtualization is carried out, the computing resource pool and storage resource pool are generated, and the resources are dynamically allocated to meet application needs.

Benefits of technology

It improves the resource utilization and usage performance of the vehicle terminal and mobile terminal, realizes centralized management and dynamic expansion of resources, and solves the problems of low resource isolation and utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119536974A_ABST
    Figure CN119536974A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent driving, and discloses a resource sharing method, device and equipment for a vehicle terminal and a mobile terminal and a medium, the method is applied to a management terminal, the management terminal is the vehicle terminal or the mobile terminal, and the method comprises the following steps: establishing communication connection with a managed terminal through a star flash communication technology; obtaining available computing resource parameters and available storage resource parameters of the management terminal and the managed terminal; performing resource virtualization through the available computing resource parameters and the available storage resource parameters to generate a computing resource pool and a storage resource pool; and when the application program in the management terminal or the managed terminal executes the computing task or the storage task, allocating computing resources or storage resources to the computing task from the computing resource pool or the storage resource pool. According to the invention, the problems of low utilization rate and low use performance of shared resources are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent driving, and in particular to a method, device, equipment and medium for sharing resources between a vehicle and a mobile terminal. Background Art

[0002] Driven by the new four characteristics of automobiles (electrification, networking, intelligence, and sharing), the functions of automobiles are no longer limited to traditional travel and transportation tools. Automobiles have gradually become the "third mobile space" in people's lives. In users' cars and mobile terminals, users' personalized applications are increasing day by day, and users need a better operating experience, which brings certain challenges to the computing power and storage resources of the car or mobile terminal. In the space of the car, the car and the user's mobile terminal can be connected and resources can be integrated, providing users with a seamless connection channel for running large applications and opening up the underlying computing power and storage resource pool, so as to improve the good operation of the application.

[0003] At present, there have been some achievements in the direction of vehicle-to-mobile terminal interconnection and resource integration. For example, Chinese patent CN114356569A discloses a resource allocation method, device, equipment and storage medium for vehicle-to-machine interconnection. The solution provided by this patent can enter the resource sharing mode when the vehicle-to-machine and the mobile terminal are interconnected. When a target application needs to perform a computing task, computing resources are allocated to the target application based on the total amount of computing resources of the mobile device and the total amount of computing resources of the vehicle-to-machine to meet the computing resource requirements of the target application. However, in essence, the computing resources or storage resources of this type of method are still physically isolated, and the utilization rate and performance of resources are relatively low. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a method, device, equipment and medium for sharing resources between a vehicle and a mobile terminal to solve the problem of low utilization rate and performance of shared resources.

[0005] In the first aspect, an embodiment of the present invention provides a resource sharing method between a vehicle terminal and a mobile terminal, which is applied to a management terminal, and the management terminal is a vehicle terminal or a mobile terminal. The method includes: establishing a communication connection with a managed terminal through Star Flash communication technology, when the management terminal is a vehicle terminal, the managed terminal includes one or more mobile terminals, and when the management terminal is a mobile terminal, the managed terminal includes at least one vehicle terminal; obtaining available computing resource parameters and available storage resource parameters of the management terminal and the managed terminal; performing resource virtualization through the available computing resource parameters and the available storage resource parameters to generate a computing resource pool and a storage resource pool; when an application in the management terminal or the managed terminal executes a computing task or a storage task, allocating computing resources or storage resources to the computing task from the computing resource pool or the storage resource pool.

[0006] According to the above technical means, the vehicle side and the mobile terminal are networked through the star flash communication technology, and then the available computing resource parameters and available storage resource parameters of each device are obtained on the communication layer, and then the obtained resource parameters are virtualized through the resource virtualization technology, and the available resources of each terminal are included in the computing resource pool and the storage resource pool, so that the vehicle side resources and the mobile side resources can be shared and centrally managed. Generally speaking, because all physical resources must meet the current and even future "peak" computing needs, and the virtualized computing resource pool can solve the "peak" problem through dynamic expansion / adjustment, allowing multiple containers to run on the vehicle side or mobile terminal to utilize this additional "idle" capacity without adding a large number of physical resources. Before virtualization, in order to ensure the reliability and availability of application software and avoid conflicts and mutual influences between them, each physical terminal generally does not run multiple important applications, so that physical resources are generally not effectively utilized, and the isolation characteristics of virtualization solve this problem well, thereby improving the utilization of hardware. In particular, the ultra-short frame, fast interference coordination, and cross-layer scheduling optimization technologies used in Star Flash communication can ensure low-latency, high-reliability, and high-concurrency data transmission requirements between the vehicle and the mobile terminal after virtualization, meeting the communication requirements of virtualization. Based on the above technical means, the utilization rate and performance of shared resources between the vehicle and the mobile terminal are improved.

[0007] In an optional implementation, a communication connection is established with the managed terminal through the Star Flash communication technology, including: device discovery through the Star Flash SLE communication interface and the Star Flash SLE communication interface of the managed terminal; when the managed terminal is discovered, determining whether the system account logged into the management terminal is the same as the system account of the managed terminal; when the system accounts are different, authenticating the managed terminal; when the system accounts are the same or the authentication of the managed terminal is passed, pairing with the managed terminal to complete the communication connection.

[0008] According to the above-mentioned technical means, the embodiment of the present invention performs device discovery through the Star Flash-SLE communication interface. SLE uses Polar channel coding to improve transmission reliability, reduce retransmission and save power consumption, fully considers energy-saving factors, and can meet the low-power consumption requirements of mobile terminals for device connection. After the vehicle computer and the mobile terminal complete the device connection, the Star Flash communication unit switches the communication interface to the SLB communication interface. The Star Flash-SLB communication uses ultra-short frames, fast interference coordination, cross-layer scheduling optimization and other technologies to ensure low-latency, high-reliability, and high-concurrency data transmission requirements between the vehicle computer and the mobile terminal. The communication between the vehicle end and the mobile terminal takes into account the advantages of energy saving and high-quality data transmission.

[0009] In an optional implementation, resource virtualization is performed using available computing resource parameters and available storage resource parameters, including: determining whether the available computing resource sub-parameters corresponding to each terminal in the available computing resource parameters meet preset computing power conditions; performing computing power resource virtualization on the available computing resource sub-parameters that meet the preset computing power conditions; determining whether the available storage resource sub-parameters corresponding to each terminal in the available storage resource parameters meet preset storage conditions; performing storage resource virtualization on the available storage resource sub-parameters that meet the preset storage conditions; and disconnecting from unavailable terminals among the managed terminals, whose available computing resource sub-parameters do not meet the preset computing power conditions and whose available storage resource sub-parameters do not meet the preset storage conditions.

[0010] According to the above technical means, this embodiment only virtualizes resources that meet the preset computing power conditions and preset storage conditions, and kicks terminal devices that do not meet the preset computing power conditions and preset storage conditions out of the network, thereby reducing the waste of communication resources.

[0011] In an optional implementation, when an application in a management terminal or a managed terminal executes a computing task, computing resources are allocated to the computing task from a computing resource pool, including: determining the master node information of the master node, where the master node is a terminal with a first target application software installed, and the first target application software is software that needs to execute the computing task; obtaining the computing task, and evaluating the computing power resource demand of the computing task to obtain the computing power resource consumption; splitting the computing task into a number of computing subtasks according to the computing power resource consumption; allocating corresponding sub-computing resources to each computing subtask from the computing resource pool; determining the target computing terminal from the managed terminal and / or the management terminal according to the allocated sub-computing resources; sending each computing subtask and the master node information to each target computing terminal, so that the target computing terminal executes the computing subtask, and each target computing terminal feeds back the computing results to the master node according to the master node information.

[0012] According to the above technical means, the embodiment of the present invention regards the terminal installed with the first target application software that needs to perform the computing task as the master node, and the terminal that does not install the first target application software as the slave node. When allocating computing resources, the management terminal disassembles the computing task according to the resource consumption of the computing task, and then allocates resources to the disassembled computing subtasks through the computing resource pool, thereby determining the target computing terminal that needs to perform the computing subtask from all managed terminals and management terminals, and finally correspondingly assigning the master node information and the disassembled computing subtasks to each target computing terminal, so that after the target computing terminal completes the computing task, the computing result can be accurately fed back to the master node corresponding to the master node information, so that any terminal device of the vehicle terminal and mobile terminal in the network can borrow the computing resource pool to help the first target application software installed by itself to perform the computing task, thereby improving the flexibility of resource sharing.

[0013] In an optional implementation, when an application in a management terminal or a managed terminal executes a storage task, storage resources are allocated to the storage task from a storage resource pool, including: determining the master node information of the master node, where the master node is a terminal with a second target application software installed, and the second target application software is software that needs to execute the storage task; obtaining the storage task, and evaluating the storage resource demand of the storage task to obtain the storage resource consumption; splitting the storage task into several storage subtasks according to the storage resource consumption; allocating corresponding sub-storage resources to each storage subtask from the storage resource pool; determining the target storage terminal from the managed terminal and / or the management terminal according to the allocated sub-storage resources; sending each storage subtask and the master node information to each target storage terminal accordingly, so that the target storage terminal executes the storage subtask, and each target storage terminal feeds back the storage address to the master node according to the master node information.

[0014] According to the above technical means, the embodiment of the present invention regards the terminal installed with the second target application software that needs to perform the computing task as the master node, and the terminal without the second target application software installed as the slave node. When allocating storage resources, the management terminal disassembles the storage task according to the resource consumption of the storage task, and then allocates resources to the disassembled sub-computing tasks through the storage resource pool, thereby determining the target storage terminal that needs to perform the storage sub-task from all managed terminals and management terminals, and finally correspondingly assigning the master node information and the disassembled storage sub-task to each target storage terminal, so that after the target storage terminal completes the storage task, the storage address can be accurately fed back to the master node corresponding to the master node information, so that any terminal device, including the vehicle terminal and mobile terminal in the network, can borrow the storage resource pool to help the second target application software installed by itself to perform the storage task, thereby improving the flexibility of resource sharing.

[0015] In an optional implementation, the total number of management terminals plus managed terminals is not less than 3, and the method also includes: monitoring the device status of the slave node during the execution of the program task being split into program subtasks; wherein the program task is a computing task or a storage task, the program subtask is a computing subtask or a storage subtask, the slave node is a terminal on which the third target application software is not installed, and the third target application software is the first target application software or the second target application software; when the device status of the first slave node indicates that the first slave node is about to go offline, migrating the first program subtask and the master node information being executed on the first slave node to the second slave node, and the device status of the second slave node indicates that the second slave node will not go offline within a preset time.

[0016] According to the above technical means, when the number of terminals is not less than 3, the management terminal will monitor the device status of each slave node during the execution of the program task. If a slave node is executing a program subtask and the slave node is about to go offline, the management terminal will migrate the task executed on the slave node that is about to go offline to the slave node that will not go offline, thereby ensuring the reliability of the execution of the program task and making the resource sharing system composed of the vehicle side and the mobile terminal have a fault-tolerant mechanism.

[0017] In an optional implementation, the method further includes: when the device status of the first slave node indicates that the first slave node is offline, determining whether the first program subtask has completed migration; if the first program subtask has not completed migration, resending the first program subtask and the master node information to the second slave node.

[0018] According to the above technical means, if a slave node suddenly goes offline and the program subtask on the slave node has not completed the migration, the management terminal will resend the program subtask on the offline slave node to other non-offline slave nodes to further ensure the reliability of task execution.

[0019] In an optional implementation, the method also includes: when the master node migration function is turned on, determining a temporary master node from each slave node; sending a synchronization instruction to the master node so that the master node synchronously copies the third target application software to the temporary master node, and the master node synchronizes the task progress data of the program task to the temporary master node; sending a monitoring instruction to the temporary master node so that the temporary master node monitors the device status of the master node, and when it is monitored that the device status of the master node is offline, the temporary master node imports the task progress data into the third target application software and continues to execute the program task.

[0020] According to the above-mentioned technical means, if the node to be offline is the master node, and the third target application software for executing the program task on the master node has not been installed on other slave nodes, then when the master node is offline, it will cause the task to be unable to migrate and cannot be re-issued, resulting in the problem that the task cannot continue to be executed. Based on this, this embodiment configures the master node migration function, and when the master node migration function is turned on, a temporary master node will be selected from other slave nodes, so that the master node will synchronously copy the third target application software to the temporary master node, and the master node will synchronize the task progress data of the program task to the temporary master node. Once the master node is offline, since the temporary master node has copied the third target application software during the task execution process, the management terminal will enable the temporary master node, so that the temporary master node continues to execute the program task, which significantly improves the reliability of task execution.

[0021] In an optional implementation, the method further includes: sending a monitoring instruction to a temporary master node, so that when the temporary master node detects that the device status of the master node is back online, the temporary master node sends the current new task progress data to the master node, so that the master node continues to execute the program task.

[0022] In the second aspect, the present invention provides a resource sharing device between a vehicle terminal and a mobile terminal, which is applied to a management terminal, and the management terminal is a vehicle terminal or a mobile terminal. The device includes: a Star Flash communication self-organizing network module, which is used to establish a communication connection with the managed terminal through Star Flash communication technology. When the management terminal is a vehicle terminal, the managed terminal includes one or more mobile terminals. When the management terminal is a mobile terminal, the managed terminal includes at least one vehicle terminal; a computing / storage resource access module, which is used to obtain the available computing resource parameters and available storage resource parameters of the management terminal and the managed terminal; a computing / storage resource virtualization module, which is used to perform resource virtualization through the available computing resource parameters and the available storage resource parameters to generate a computing resource pool and a storage resource pool; a resource allocation module, which is used to allocate computing resources or storage resources to the computing task from the computing resource pool or the storage resource pool when the application in the management terminal or the managed terminal executes a computing task or a storage task.

[0023] In a third aspect, an embodiment of the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0024] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding embodiment thereof.

[0025] Beneficial effects of the present invention:

[0026] (1) The vehicle-side and mobile terminal are networked through the Star Flash communication technology, and then the available computing resource parameters and available storage resource parameters of each device are obtained on the communication layer. Then, the obtained resource parameters are virtualized through the resource virtualization technology, and the available resources of each terminal are included in the computing resource pool and storage resource pool, so that the vehicle-side resources and mobile-side resources can be shared and centrally managed. Generally speaking, because all physical resources must meet the current and even future "peak" computing needs, the virtualized computing resource pool can solve the "peak" problem through dynamic expansion / adjustment, allowing multiple containers to run on the vehicle or mobile terminal to utilize this additional "idle" capacity without adding a large amount of physical resources. Before virtualization, in order to ensure the reliability and availability of application software and avoid conflicts and mutual influences between them, each physical terminal generally does not run multiple important applications, so that physical resources are generally not effectively utilized. The isolation characteristics of virtualization solve this problem well, thereby improving the utilization of hardware. In particular, the ultra-short frame, fast interference coordination, and cross-layer scheduling optimization technologies used in Star Flash communication can ensure low-latency, high-reliability, and high-concurrency data transmission requirements between the vehicle and the mobile terminal after virtualization, meeting the communication requirements of virtualization. Based on the above technical means, the utilization rate and performance of shared resources between the vehicle and the mobile terminal are improved.

[0027] (2) The embodiment of the present invention uses the Star Flash-SLE communication interface to perform device discovery. SLE uses Polar channel coding to improve transmission reliability, reduce retransmission and save power consumption, fully considers energy-saving factors, and can meet the low-power consumption requirements of mobile terminals for device connection. After the vehicle computer and the mobile terminal complete the device connection, the Star Flash communication unit switches the communication interface to the SLB communication interface. The Star Flash-SLB communication uses ultra-short frames, fast interference coordination, cross-layer scheduling optimization and other technologies to ensure low-latency, high-reliability, and high-concurrency data transmission requirements between the vehicle computer and the mobile terminal. The communication between the vehicle end and the mobile terminal takes into account the advantages of energy saving and high-quality data transmission.

[0028] (3) The embodiment of the present invention only virtualizes resources that meet the preset computing power conditions and the preset storage conditions, and kicks the terminal devices that do not meet the preset computing power conditions and the preset storage conditions out of the network, thereby reducing the waste of communication resources.

[0029] (4) In the embodiment of the present invention, the terminal installed with the first target application software that needs to perform the computing task or the second target application software that needs to perform the storage task is regarded as the master node, and the terminal without the first or second target application software installed is regarded as the slave node. When computing resources are allocated, the management terminal disassembles the task according to the resource consumption of the task, and then allocates resources to the disassembled subtasks through the resource pool, thereby determining the target computing / storage terminal that needs to perform the subtask from all managed terminals and management terminals, and finally correspondingly assigning the master node information and the disassembled computing / storage subtasks to each target computing terminal, so that after the target computing / storage terminal completes the computing task, the computing result or storage address can be accurately fed back to the master node corresponding to the master node information, so that any terminal device, including the vehicle terminal and the mobile terminal in the network, can borrow the computing resource pool or the storage resource pool to help the first target application software installed by itself perform the computing task, thereby improving the flexibility of resource sharing.

[0030] (5) When the number of terminals is not less than 3, the management terminal provided in the embodiment of the present invention will monitor the device status of each slave node during the execution of the program task. If a slave node is executing a program subtask and the slave node is about to go offline, the management terminal will migrate the task executed on the slave node that is about to go offline to a slave node that will not go offline, thereby ensuring the reliability of program task execution and making the resource sharing system composed of the vehicle end and the mobile terminal have a fault-tolerant mechanism. In addition, if a slave node suddenly goes offline and the program subtask on the slave node has not completed the migration, the management terminal will re-send the program subtask on the offline slave node to other slave nodes that are not offline, further ensuring the reliability of task execution. In addition, if the node to be offline is the master node, and the third target application software for executing the program task on the master node has not been installed on other slave nodes, then when the master node is offline, the task cannot be migrated or re-issued, resulting in the problem that the task cannot continue to be executed. Based on this, this embodiment configures the master node migration function, and when the master node migration function is turned on, a temporary master node will be selected from other slave nodes, so that the master node will synchronously copy the third target application software to the temporary master node, and the master node will synchronize the task progress data of the program task to the temporary master node. Once the master node is offline, since the temporary master node has copied the third target application software during the task execution process, the management terminal will enable the temporary master node, so that the temporary master node continues to execute the program task, which significantly improves the reliability of task execution. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 is a flow chart of a resource sharing method between a vehicle terminal and a mobile terminal according to some embodiments of the present invention;

[0033] Figure 2 is a schematic diagram of a structure of a self-organizing network of internal devices in a vehicle space according to some embodiments of the present invention;

[0034] Figure 3 is a diagram of a software system architecture for storage and computing resource sharing functions according to some embodiments of the present invention;

[0035] Figure 4 is a second flow chart of a resource sharing method between a vehicle terminal and a mobile terminal according to some embodiments of the present invention;

[0036] Figure 5 is a third flow chart of a resource sharing method between a vehicle terminal and a mobile terminal according to some embodiments of the present invention;

[0037] Figure 6 is a fourth flow chart of a resource sharing method between a vehicle terminal and a mobile terminal according to some embodiments of the present invention;

[0038] Figure 7 is a fifth flow chart of a resource sharing method between a vehicle terminal and a mobile terminal according to some embodiments of the present invention;

[0039] Figure 8 is a sixth flow chart of a resource sharing method between a vehicle end and a mobile terminal according to some embodiments of the present invention;

[0040] Fig. 9 is a schematic diagram of the structure of a resource sharing device between a vehicle terminal and a mobile terminal according to some embodiments of the present invention;

[0041] Fig.10 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The following will describe the embodiments of the present invention with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention, not for limiting the scope of protection of the present invention.

[0043] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0044] According to an embodiment of the present invention, an embodiment of a resource sharing method between a vehicle side and a mobile terminal is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0045] In this embodiment, a method for sharing resources between a vehicle terminal and a mobile terminal is provided, which is applied to a management terminal, and the management terminal is a vehicle terminal or a mobile terminal. Figure 1 1 is a flow chart of a method for sharing resources between a vehicle terminal and a mobile terminal according to an embodiment of the present invention, and the flow includes the following steps:

[0046] Step S101, establish a communication connection with the managed terminal through the Star Flash communication technology. When the management terminal is a vehicle terminal, the managed terminal includes one or more mobile terminals. When the management terminal is a mobile terminal, the managed terminal includes at least one vehicle terminal.

[0047] Specifically, in an embodiment of the present invention, a communication network is established between the vehicle side and the mobile terminal through the Star Flash communication technology. Star Flash communication technology is a new generation of short-range wireless communication technology. Compared with traditional Bluetooth, WIFI and other communication technologies, it has the characteristics of low latency, low power consumption, high reliability, high synchronization, high concurrency, and support for large data volume transmission. It can further meet the needs of self-organizing networking and data transmission between the vehicle computer and the mobile terminal and between the mobile terminal, and ensure the stability of resource sharing between the vehicle side and the mobile terminal.

[0048] The basic architecture of the Star Flash communication technology is a network of a management node G node and several managed nodes T nodes. In addition, it also supports a single device playing multiple roles in extended networking. Based on this, in the embodiment of the present invention, the management node is called a management terminal, and the managed node is called a managed terminal. Among them, the management terminal as the management node can be a vehicle end or a mobile terminal such as a mobile phone or a tablet computer. However, in order to ensure the management performance, it is often more appropriate to use a vehicle end with more powerful computing power for the management node. The managed terminal as the managed node can be a vehicle end or a mobile terminal. For example, if the management node is a vehicle end, then the managed node is one or more mobile terminals. If the management node is a mobile terminal, then the managed node includes at least one vehicle end and may also include one or more mobile terminals. The management node can be flexibly selected according to the needs of the user, and the embodiment of the present invention does not make any special restrictions on this.

[0049] When the management terminal as the management node is selected, the managed terminal establishes a communication connection with the management terminal through the Star Flash communication technology. Figure 2 The figure shows a component architecture diagram in which the vehicle terminal serves as a management terminal and the mobile terminal serves as a managed terminal.

[0050] exist Figure 2 In the process, the vehicle side needs to provide storage resources and computing power resources on the vehicle side, and the vehicle side includes the Star Flash communication unit, computing unit, and storage unit. The Star Flash communication unit includes the SLB communication interface and the SLE communication interface. The SLB communication interface and the SLE communication interface are used to establish a connection network between the vehicle and the mobile terminal and provide a data transmission channel; the vehicle side computing unit mainly includes the vehicle side driving domain controller and the cockpit domain controller. If the vehicle adopts a central computing architecture, the computing unit is the central computer, which is the hardware part of the computing power resources provided by the vehicle side; the vehicle side storage unit includes the vehicle side storage unit and the controller side storage unit, which is the hardware part of the storage resources provided by the vehicle side.

[0051] Similarly, the mobile terminal provides storage resources and computing resources of the mobile terminal through the shared system. The mobile terminal also includes a Star Flash communication unit, a computing unit, and a storage unit. The function of the Star Flash communication unit is consistent with that of the vehicle-side communication unit. The computing unit of the mobile terminal includes the CPU and GPU resources of the mobile device, which are responsible for the execution and calculation of tasks. The GPU is mainly responsible for computing tasks related to graphics and image processing; the mobile storage unit includes running memory and body memory. The running memory is responsible for real-time data caching of running programs, and the body memory is responsible for local storage of non-real-time data.

[0052] In the management terminal, the vehicle-side and mobile terminal based on the Star Flash communication technology need to maintain a storage and computing resource sharing function software system to realize the software sharing function. The software system includes a Star Flash communication self-organizing network module, a computing / storage resource access module, a computing / storage resource virtualization module, a device management module, a task scheduling management module, a storage data management module, a resource monitoring module, and an application open interface module. Among them, the Star Flash communication self-organizing network module is a software layer that realizes data interaction between terminals based on the Star Flash communication unit arranged on the vehicle-side and the mobile terminal; the functions of other modules will be introduced in subsequent steps. In addition, the storage and computing resource sharing function software system provided by the embodiment of the present invention also includes an application open interface module, which is an API and SDK provided for vehicle-side applications and mobile-side applications, and is used for the development of vehicle-side applications and mobile terminal applications. By embedding the SDK and API calls in the application, the application software that executes the task can use the resources of the resource pool, such as the Star Flash communication networking API, computing power resource pool API, storage resource pool API, etc. Figure 3 As shown, a software system architecture diagram of storage and computing resource sharing function is shown, taking a vehicle terminal, a mobile terminal 1 and a mobile terminal 2 as examples.

[0053] Step S102: Obtain available computing resource parameters and available storage resource parameters of the management terminal and the managed terminal.

[0054] Specifically, after the management terminal and the managed terminal establish a Star Flash communication connection, the embodiment of the present invention also reads the available computing resource parameters and the available storage resource parameters in each terminal, which is specifically implemented through the aforementioned "computing / storage resource access module". This module is to obtain the available computing and storage resources of the vehicle-side and mobile terminal in the self-organizing network. The main parameters that need to be obtained are: the total amount of computing resources, the total amount of storage resources, the available amount of computing resources, the available amount of storage resources, the power of the device, etc. Only after reading the parameters of these available resources and connecting the parameters to the computing / storage resource virtualization module can the subsequent virtualization steps be executed.

[0055] Step S103: Perform resource virtualization through available computing resource parameters and available storage resource parameters to generate a computing resource pool and a storage resource pool.

[0056] Specifically, through the computing / storage resource virtualization module proposed in the above steps, the resource data of each node in the self-organizing network is aggregated and virtualized into a unified allocable resource pool. Through resource virtualization, the barriers of indivisible resources between devices can be broken, so that upper-level applications can better use computing and storage resources. In this embodiment, the CPU, memory and other resources can be directly managed by software layer middleware including but not limited to Hypervisior. The Hypervisor is deployed on the management terminal to realize the virtualization of device resources, open up the communication between virtual devices, and support data transmission, message synchronization and resource sharing between virtual resources. The generated computing resource pool and storage resource pool are resource pools generated after the computing and storage resources of the vehicle side and mobile terminal are virtualized. The computing resource pool can provide flexible, flexible scheduling and expansion functions for the applications of the vehicle machine and mobile terminal. The storage resource pool aggregates the available resources of the vehicle machine and mobile terminal into a shareable storage space, and the upper-level applications can apply for use on demand.

[0057] Step S104: when the application in the management terminal or the managed terminal executes a computing task or a storage task, computing resources or storage resources are allocated to the computing task from the computing resource pool or the storage resource pool.

[0058] Specifically, the embodiment of the present invention manages the vehicle terminal and mobile terminal in the network through the aforementioned device management module, and provides the function of viewing the basic information of all connected devices, such as viewing the device ID, device connection duration, device computing resources, device storage resources and other information, and can also perform a disconnection operation. After disconnection, the computing and storage resources of the disconnected device are released from the resource pool. Based on the management terminal and the managed terminal in the above network, the task scheduling management module and the storage data management module belong to the resource allocation module.

[0059] The computing tasks of the vehicle side and mobile terminals are managed through the task scheduling management module. When the vehicle side has computing tasks that need to use the resources of the computing power resource pool, the computing tasks will be scheduled to other networking terminals for calculation according to the computing power resource requirements of the tasks. The task scheduling module can be implemented based on a linked list, queue, or tree data structure, and regularly scans the computing tasks to be executed on the device, and schedules tasks and allocates computing power resources according to resource requirements and task priorities.

[0060] In addition, the storage data management module is used to manage data storage and data access. When the application on the vehicle side has data storage requirements, the data to be stored will be stored in the resource pool according to the requirements, and the data access interface will be returned to the vehicle side. The vehicle side can use this interface to obtain the data stored in the resource pool. The resource monitoring module is used to monitor the computing power resources and storage resources of all devices in the self-organizing network, and is responsible for the use of computing power resources and storage resources. Log record.

[0061] Through the technical solution provided by the embodiment of the present invention, the vehicle side and the mobile terminal are networked through the star flash communication technology, and then the available computing resource parameters and available storage resource parameters of each device are obtained on the communication layer, and then the obtained resource parameters are virtualized through the resource virtualization technology, and the available resources of each terminal are included in the computing resource pool and the storage resource pool, so that the vehicle side resources and the mobile side resources can be shared and centrally managed. Generally speaking, because all physical resources must meet the current and even future "peak" computing needs, and the virtualized computing resource pool can solve the "peak" problem through dynamic expansion / adjustment, allowing multiple containers to run on the vehicle side or mobile terminal to utilize this additional "idle" capacity without adding a large amount of physical resources. Before virtualization, in order to ensure the reliability and availability of application software and avoid conflicts and mutual influences between them, each physical terminal generally does not run multiple important applications, so that physical resources are generally not effectively utilized, and the isolation characteristics of virtualization solve this problem well, thereby improving the utilization of hardware. In particular, based on the ultra-short frames, fast interference coordination, and cross-layer scheduling optimization technologies adopted by Star Flash Communication, it can ensure the low-latency, high-reliability, and high-concurrency data transmission requirements between the vehicle and the mobile terminal after virtualization, and meet the virtualized communication requirements. Therefore, the embodiments of the present invention significantly improve the shared resource utilization and usage performance between the vehicle and the mobile terminal.

[0062] In some optional implementations, the above step S101 includes:

[0063] Step a1: Device discovery is performed through the StarShine SLE communication interface and the StarShine SLE communication interface of the managed terminal.

[0064] Step a2: when a managed terminal is found, it is determined whether the system account logged into by the management terminal is the same as the system account of the managed terminal.

[0065] Step a3: When the system accounts are different, the managed terminal is authenticated.

[0066] Step a4: when the system accounts are the same or the authentication of the managed terminal is passed, pairing is performed with the managed terminal to complete the communication connection;

[0067] Step a5, when the communication connection is completed, the working communication interface is switched to the Star Flash SLB communication interface.

[0068] Specifically, the full name of SLB of the SparkSpark SLB communication interface is SparkLink Basic, which is the basic access technology of SparkSpark communication. It is one of the supporting technologies of the access layer of the SparkSpark technology. The supporting technology of the SparkSpark SLE communication interface is SLE, which stands for SparkLink Low Energy, which is the low-power access technology of SparkSpark. On the one hand, SLB supports 20μs one-way latency, 99.999% transmission reliability and 1μs synchronization accuracy. Its notable features are low latency, high reliability, precise synchronization and high concurrency. On the other hand, SLE supports 250μs two-way interaction, receiver sensitivity as low as -110dBm and concurrent access of up to 256 users. It is mainly used to carry business scenarios with low power consumption requirements.

[0069] Based on the two types of communication interfaces of Xingshan Communication, the embodiment of the present invention provides a connection method that takes into account both energy saving and high-quality communication, so that a communication connection is established between the management terminal and the managed terminal. Figure 4 As shown, this embodiment takes the vehicle end as an example of the management terminal. First, inside the vehicle, the vehicle end and the mobile terminal discover the device through the Star Flash SLE communication interface. SLE uses Polar channel coding to improve transmission reliability, reduce retransmission and save power consumption, fully consider energy-saving factors, and can meet the low-power consumption requirements of mobile terminals for device connection. Among them, the specific process of device discovery by the vehicle end and the mobile terminal is a prior art, similar to the discovery of the UDP protocol, and will not be repeated here.

[0070] After the vehicle and the mobile terminal discover each other, the embodiment of the present invention also needs to determine whether the system account logged in by the vehicle and the mobile terminal is the same, such as the account that identifies the user identity registered in the vehicle manufacturer's background. If the system accounts are the same, the device is connected. If the vehicle and the mobile terminal are different system accounts, device pairing and authentication operations are required at the account level. This further improves the security and reliability of the terminal connection and prevents the mobile terminal of non-car owners from accessing the network, resulting in information leakage within the network. In this embodiment, the pairing and authentication operations between the vehicle and the mobile terminal can be completed by pass code input, password verification, etc. After pairing is completed, the device connection is completed.

[0071] When the vehicle-side and mobile terminal complete the device connection, the Star Flash communication unit switches the communication interface to the SLB communication interface to enable high-quality, high-speed transmission of mission data and storage data. Star Flash-SLB communication uses ultra-short frames, fast interference coordination, cross-layer scheduling optimization and other technologies to ensure low-latency, high-reliability, and high-concurrency data transmission requirements between the vehicle-side and the mobile terminal. In addition, when the data transmission between the vehicle-side and the mobile terminal is completed, the communication interface also switches seamlessly from SLB to SLE to achieve low-power real-time connection between devices, so that the communication connection method between the management terminal and the managed terminal takes into account both energy saving and high-quality communication.

[0072] In some optional implementations, the above step S103 includes:

[0073] Step b1, determining whether the available computing resource sub-parameters corresponding to each terminal in the available computing resource parameters meet the preset computing power conditions;

[0074] Step b2, virtualizing computing resources for available computing resource sub-parameters that meet preset computing power conditions;

[0075] Step b3, determining whether the available storage resource sub-parameters corresponding to each terminal in the available storage resource parameters meet the preset storage conditions;

[0076] Step b4, performing storage resource virtualization on the available storage resource sub-parameters that meet the preset storage conditions;

[0077] Step b5, disconnecting from the unavailable terminal in the managed terminals, where the available computing resource sub-parameter of the unavailable terminal does not meet the preset computing power condition and the available storage resource sub-parameter does not meet the preset storage condition.

[0078] Specifically, Figure 5As shown, the embodiment of the present invention also provides a method for each terminal to join a resource pool, which realizes the classified access of computing power resources and storage resources on the one hand, and reduces the waste of communication bandwidth on the other hand. In this embodiment, after the management terminal establishes a communication connection with the managed terminal, the management terminal and the managed terminal are both added to the self-organizing network and become a node in the network. The managed terminal needs to report the resource data of the device, that is, the available computing resource parameters and the available storage resource parameters. For the available computing resource parameters, the management terminal needs to determine whether the available computing resource sub-parameters of each managed terminal meet the preset computing power conditions. The preset computing power conditions can be customized, such as whether the utilization rate and / or operating frequency of the CPU and / or GPU exceeds a certain threshold. If the available computing resource sub-parameters meet the preset computing power conditions, the management terminal virtualizes the available computing resource parameters of the current managed terminal, and adds the available computing power resources to the computing power resource pool for use by the computing applications of the vehicle or mobile terminal; if the computing power resources of a managed terminal do not meet the preset computing power conditions, the available computing resource parameters are not virtualized.

[0079] Similarly, it is also judged whether the available storage resource sub-parameters of each managed terminal meet the preset storage conditions. The preset storage conditions can be customized, such as the total storage space size, the available storage space size, the storage device read and write rate, etc. If the available storage resource sub-parameters of the managed terminal meet the conditions, the management terminal virtualizes the available storage resource sub-parameters and adds the storage resources to the storage resource pool for use by the storage sharing applications of each terminal. The available storage resource sub-parameters that do not meet the preset storage conditions are not virtualized. Finally, this embodiment eliminates unavailable terminals that do not meet the conditions for storage resources and computing power resources. The unavailable terminals do not meet the resource sharing conditions. The management terminal disconnects the unavailable terminals among the managed terminals to make them exit the self-organizing network, thereby reducing bandwidth waste.

[0080] In some optional implementations, the above step S104 includes:

[0081] Step c1, determining the master node information of the master node, where the master node is a terminal installed with the first target application software, and the first target application software is software that needs to execute a computing task;

[0082] Step c2, obtaining a computing task, and evaluating the computing resource requirements of the computing task to obtain computing resource consumption;

[0083] Step c3, splitting the computing task into several computing subtasks according to the computing power resource consumption;

[0084] Step c4, allocating corresponding sub-computing resources to each computing subtask from the computing resource pool;

[0085] Step c5, determining a target computing terminal from the managed terminals and / or the management terminal according to the allocated sub-computing resources;

[0086] Step c6, sending each computing subtask and the master node information to each target computing terminal accordingly, so that the target computing terminal executes the computing subtask, and each target computing terminal feeds back the computing result to the master node according to the master node information.

[0087] In this embodiment, the above step S104 further includes:

[0088] Step d1, determining the master node information of the master node, the master node is a terminal installed with the second target application software, and the second target application software is software that needs to execute the storage task;

[0089] Step d2, obtaining a storage task, and evaluating the storage resource requirements of the storage task to obtain storage resource consumption;

[0090] Step d3, splitting the storage task into several storage subtasks according to the storage resource consumption;

[0091] Step d4, allocating corresponding sub-storage resources to each storage sub-task from the storage resource pool;

[0092] Step d5, determining a target storage terminal from the managed terminals and / or the management terminal according to the allocated sub-storage resources;

[0093] Step d6, sending each storage subtask and the master node information to each target storage terminal accordingly, so that the target storage terminal executes the storage subtask, and each target storage terminal feeds back the storage address to the master node according to the master node information.

[0094] Specifically, in the implementation of the present invention, in addition to the management terminal and the managed terminal, the concepts of master node and slave node are added. Among them, the master node can be a management terminal or a managed terminal. In the embodiment of the present invention, the master node refers to the node that mainly performs computing tasks or storage tasks. In other words, the computing task or storage task to be performed should be initiated by a certain app. If the app is installed on which terminal device, the terminal device installed with the app is regarded as the node that mainly performs computing tasks or storage tasks, so this embodiment is called the master node, and the terminal without the app installed to perform the task is called the slave node.

[0095] In this embodiment, in order to facilitate the understanding and distinction of concepts, the app used to initiate a computing task is called the first target application software, and the app used to initiate a storage task is called the second target application software. If the app that initiates the computing task and the storage task is the same, the first target application software and the second target application software may also refer to the same. For example: a navigation app is installed on the vehicle side. Regardless of whether the vehicle side is a management terminal or not, when the vehicle side uses the navigation app to initiate a navigation computing task and needs to call the resources of the computing resource pool, the vehicle side is the master node, and other mobile terminals in the network are slave nodes. For another example, a navigation app is installed on a mobile phone. When the mobile phone uses the navigation app to initiate a navigation computing task and needs to call the resources of the computing resource pool, the mobile phone is the master node, and the vehicle side and other mobile terminals such as mobile phones and tablets in the network are slave nodes.

[0096] In this embodiment, before allocating resources, the management terminal first determines the master node information of the master node, that is, determines which terminal device initiates the computing task or storage task. The master node may be the management terminal itself or the managed terminal. The master node information obtained includes but is not limited to the hardware identification and network address of the terminal.

[0097] When allocating computing resources, the management terminal needs to first obtain the computing tasks or storage tasks that need to be executed from the master node, and then obtain the resource consumption of the computing tasks or storage tasks through resource evaluation, and then disassemble the computing tasks or storage tasks according to the resource consumption, and disassemble them into more computing subtasks or storage subtasks, preferably evenly disassembled, so as to facilitate balanced execution of each terminal. Then, resources are allocated to the disassembled computing subtasks through the computing resource pool to determine the target computing terminal that needs to execute the computing subtask from all managed terminals and management terminals. The allocation of storage resources is similar. The detailed logic of the resource allocation can be implemented by the virtualization logic inside the aforementioned Hypervisior software layer middleware, and this embodiment will not be repeated. It should be noted that the target computing terminal or target storage terminal waiting for resource allocation can include both the master node and the slave node, that is, the management terminal will allocate computing subtasks or storage subtasks to both the master node and the slave node.

[0098] When the master node information and the disassembled computing or storage subtasks are assigned to each target computing terminal or target storage terminal. It should be noted that since the target computing terminal or target storage terminal assigned with the computing subtask or storage subtask can be either a master node or a slave node, if the target computing terminal or target storage terminal assigned with the subtask is a master node, the obtained computing result and storage address can be returned to itself. If the target computing terminal or target storage terminal assigned with the subtask is a slave node, after the target computing terminal or target storage terminal completes the computing or storage task, it can accurately feedback the computing result or storage address to the master node terminal corresponding to the master node information through the Star Flash network according to the previously received master node information. Finally, the master node integrates all the computing results or storage addresses. Through this solution, the vehicle end and any one in the network can borrow the computing resource pool and storage resource pool to help the installed application software perform computing or storage tasks, thereby improving the flexibility of resource sharing.

[0099] In some optional implementations, when the total number of the management terminal and the managed terminals is not less than 3, a resource sharing method between a vehicle terminal and a mobile terminal provided by an embodiment of the present invention further includes:

[0100] Step e1, during the execution of the program task being split into program subtasks, monitoring the device status of the slave node; wherein the program task is a computing task or a storage task, the program subtask is a computing subtask or a storage subtask, the slave node is a terminal without the third target application software installed, and the third target application software is the first target application software or the second target application software;

[0101] Step e2, when the device status of the first slave node indicates that the first slave node is about to go offline, the first program subtask and the master node information being executed on the first slave node are migrated to the second slave node, and the device status of the second slave node indicates that the second slave node will not go offline within a preset time.

[0102] Specifically, in order to ensure the stability and reliability of the storage and computing resource sharing system, the present application performs task splitting and fault-tolerant processing when performing task processing. First, when the master node has a computing task or a storage task that needs to use the resources of the networking device, the management terminal splits the task into sufficiently small subtasks. The smaller the subtask, the smaller the transmission time and computing time to migrate to the slave node (the slave node is a terminal that does not have the third target application software installed. For the concept of the slave node, please refer to the previous steps and will not be repeated here). When the slave node fails and goes offline, the impact on the overall task is smaller. In addition, in this embodiment, when the number of terminals is not less than 3, the same subtask can be sent to multiple networking nodes for fault-tolerant processing.

[0103] In particular, in this embodiment, if Figure 6 As shown, the management terminal will monitor the device status of each slave node during the execution of the program task. The real-time monitored status data includes the online status of the networking node, available resources, remaining power, device temperature, etc. The management terminal will also broadcast the monitored status data to other networking nodes in real time. For example, the monitoring information can be: whether the available resources are insufficient (can be set to ≤5% as insufficient), whether the remaining power is insufficient (can be set to ≤10% as insufficient), whether the device temperature is too high (can be set to ≥50℃ as high temperature). If one of the above conditions is met, it is considered that the slave node is at risk of going offline. The above monitoring information is only used as an example and is not limited to this. If a slave node (such as the first slave node) is executing a program subtask and detects that the slave node is about to go offline, the management terminal will migrate the subtask executed on the first slave node that is about to go offline to the second slave node that will not go offline, thereby ensuring the reliability of the execution of the program task, so that after the second slave node completes the subtask, it will feedback the execution result to the master node according to the master node information. For example, the management terminal will send a notification message to the first master node, so that the first master node will send the subtask it is executing and the master node information to the second slave node first. The sent subtask includes the task information (such as the calculation problem) and the intermediate data generated during the task execution, thereby realizing the migration of the task. Through this solution, the resource sharing system composed of the vehicle end and the mobile terminal has a fault-tolerant mechanism.

[0104] In some optional implementation manners, an embodiment of the present invention provides a method for sharing resources between a vehicle terminal and a mobile terminal, further comprising:

[0105] Step e3, when the device status of the first slave node indicates that the first slave node is offline, determining whether the first program subtask has completed migration;

[0106] Step e4: if the first program subtask has not completed the migration, the first program subtask and the master node information are resent to the second slave node.

[0107] Specifically, Figure 7 As shown, according to the above technical means, if a slave node suddenly goes offline and the program subtask on the slave node has not completed the migration, the management terminal will re-send the program subtask on the offline slave node to other non-offline slave nodes, further ensuring the reliability of task execution.

[0108] In addition, it should be noted that in this embodiment, if the number of terminals in the network is less than or equal to 2, that is, there are no other slave nodes except the current slave node, for the child node that is about to go offline, the management terminal will notify the child node to return the computing subtask or storage subtask being executed to the master node for execution. If the child node suddenly goes offline, the management terminal will no longer notify the master node to re-issue the subtask, but the master node will execute it itself.

[0109] In some optional implementation manners, an embodiment of the present invention provides a method for sharing resources between a vehicle terminal and a mobile terminal, further comprising:

[0110] Step f1, when the master node migration function is turned on, determine the temporary master node from each slave node;

[0111] Step f2, sending a synchronization instruction to the master node, so that the master node synchronously copies the third target application software to the temporary master node, and synchronizes the task progress data of the program task to the temporary master node;

[0112] Step f3, sending a monitoring instruction to the temporary master node so that the temporary master node monitors the device status of the master node, and when the device status of the master node is detected to be offline, the temporary master node imports the task progress data into the third target application software to continue executing the program task.

[0113] Specifically, the present application also provides a fault-tolerant mechanism for scenarios where the network master node may be offline. If the node to be offline is the master node, and the other slave nodes have not installed the third target application software that executes the program task on the master node, then when the master node is offline, it will cause the task to be unable to migrate and re-issued, resulting in the problem that the task cannot continue to be executed. For example: the master node is a mobile phone, and the other slave nodes are the car end and the tablet computer. A navigation app is installed on the master node, and the navigation app is not installed on the slave node. Therefore, the calculation task of the navigation app needs to be initiated by the master node. Through the resources of the computing resource pool, the calculation subtask can be assigned to the car end and the tablet computer. It should be noted that the calculation subtask usually does not need to install the navigation app to achieve, because the calculation subtask is sent to the slave node after the task is split and converted into a calculation problem. The calculation subtask only requires the CPU computing power of the slave node. Therefore, when the master node is down, because the navigation app is not installed on the slave node, even if the slave node receives the calculation subtask sent by the master node, it cannot continue to complete the navigation function, because the basic software framework of navigation is not implemented on the slave node, so the problem of the task cannot continue to be executed occurs.

[0114] Based on this, this embodiment configures the master node migration function, such as Figure 8As shown, when the management terminal turns on the master node migration function, the management terminal will select a temporary master node from other slave nodes. The temporary master node can be customized according to the user's needs. If the user does not customize it, the slave node with the most available computing resource parameters or available storage resource parameters will be used as the temporary master node. The system will determine whether the node is suitable as a temporary master node. If the user does not select it, the system will select the device with the most available resources as the temporary master node. After that, the management terminal will also determine whether the selected slave node meets the temporary master node requirements as a temporary master node, such as whether its available computing resource parameters or available storage resource parameters are greater than the preset parameter threshold. If the requirements are met, the temporary master node is determined, otherwise the temporary master node is not determined.

[0115] After determining the temporary master node, the management terminal notifies the master node of the synchronization message, so that the master node will synchronize and copy the installed third target application software to the temporary master node. At the same time, during the execution of the program task by the master node, the management terminal will monitor the task ID data of the running master node in real time, so that the temporary master node can identify the program task running by the master node according to the task ID data. In addition, during the execution of the program task by the master node, the task progress data (including the calculation progress and calculation data of the application task) will be synchronized to the temporary master node in real time according to the frequency.

[0116] When all preparations are completed, the management terminal sends a monitoring instruction to the temporary master node, so that the temporary master node can identify the device status of the master node by monitoring the task ID data in the management terminal. Once the master node is offline, the temporary master node will obtain the offline status of the master node through the task ID data. Since the temporary master node has copied the third target application software during the task execution process, the temporary master node takes over the role of the master node. At this time, the temporary master node starts the third target application software running on the master node and loads the task progress data into the copied third target application software to ensure that the application of the temporary master node can continue to complete the computing task of the master node. Through this solution, the problem of the inability to continue the task due to the downtime of the master node is solved, and the temporary master node continues to execute the program task, which significantly improves the reliability of task execution.

[0117] In some optional implementation manners, a resource sharing method between a vehicle terminal and a mobile terminal provided by an embodiment of the present invention further includes the following steps:

[0118] Step g1, sending a monitoring instruction to the temporary master node, so that when the temporary master node detects that the device status of the master node is back online, the temporary master node sends the current new task progress data to the master node, so that the master node continues to execute the program task.

[0119] Specifically, the embodiment of the present invention also controls the temporary master node through the management terminal to continuously monitor the status of the master node. Once the master node comes back online, the temporary master node will also send the current new task progress data to the master node so that the master node can continue to execute the program task, reducing the resource occupation of the temporary master node. At the same time, the original master node continues to execute the task to ensure the reliability of task execution.

[0120] In this embodiment, a resource sharing device between a vehicle and a mobile terminal is also provided, and the device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0121] This embodiment provides a resource sharing device between a vehicle terminal and a mobile terminal, such as Fig. 9 As shown, it is applied to a management terminal, which is a vehicle terminal or a mobile terminal, and the device includes:

[0122] The Starflash communication self-organizing network module 901 is used to establish a communication connection with the managed terminal through the Starflash communication technology. When the management terminal is a vehicle terminal, the managed terminal includes one or more mobile terminals. When the management terminal is a mobile terminal, the managed terminal includes at least one vehicle terminal.

[0123] The computing / storage resource access module 902 is used to obtain the available computing resource parameters and available storage resource parameters of the management terminal and the managed terminal.

[0124] The computing / storage resource virtualization module 903 is used to perform resource virtualization through available computing resource parameters and available storage resource parameters to generate a computing resource pool and a storage resource pool.

[0125] The resource allocation module 904 is used to allocate computing resources or storage resources from the computing resource pool or the storage resource pool to the computing task when the application in the management terminal or the managed terminal executes the computing task or the storage task.

[0126] In this embodiment, a resource sharing device between a vehicle and a mobile terminal is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0127] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.

[0128] The embodiment of the present invention also provides a computer device having the above Fig. 9A resource sharing device between a vehicle terminal and a mobile terminal is shown.

[0129] See also Fig.10 , Fig.10 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.10 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.10 A processor 10 is taken as an example.

[0130] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0131] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0132] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0133] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0134] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0135] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0136] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A resource sharing method between a vehicle terminal and a mobile terminal, characterized in that: Applied to a management terminal, the management terminal is a vehicle terminal or a mobile terminal, the method includes: Establishing a communication connection with a managed terminal through the star flash communication technology, when the management terminal is a vehicle terminal, the managed terminal includes one or more mobile terminals, and when the management terminal is a mobile terminal, the managed terminal includes at least one vehicle terminal; Obtaining available computing resource parameters and available storage resource parameters of the management terminal and the managed terminal; Perform resource virtualization through the available computing resource parameters and the available storage resource parameters to generate a computing resource pool and a storage resource pool; When the application in the management terminal or the managed terminal executes a computing task or a storage task, computing resources or storage resources are allocated to the computing task from the computing resource pool or the storage resource pool.

2. The method according to claim 1, characterized in that: The establishing of a communication connection with the managed terminal through the Star Flash communication technology includes: Perform device discovery via the Xingshan SLE communication interface and the Xingshan SLE communication interface of the managed terminal; When the managed terminal is found, determining whether the system account logged in by the management terminal is the same as the system account of the managed terminal; When the system accounts are different, performing authentication on the managed terminal; When the system accounts are the same or the authentication of the managed terminal is passed, pairing is performed with the managed terminal to complete the communication connection.

3. The method according to claim 1, characterized in that The performing resource virtualization by using the available computing resource parameters and the available storage resource parameters includes: Determine whether the available computing resource sub-parameters corresponding to each terminal in the available computing resource parameters meet the preset computing power conditions; Performing computing power resource virtualization on the available computing resource sub-parameters that meet the preset computing power conditions; Determine whether the available storage resource sub-parameters corresponding to each terminal in the available storage resource parameters meet the preset storage conditions; Performing storage resource virtualization on available storage resource sub-parameters that meet the preset storage conditions; Disconnecting from an unavailable terminal among the managed terminals, wherein the available computing resource sub-parameter of the unavailable terminal does not satisfy the preset computing power condition and the available storage resource sub-parameter does not satisfy the preset storage condition.

4. The method according to claim 1, characterized in that When the application in the management terminal or the managed terminal executes a computing task, allocating computing resources to the computing task from the computing resource pool includes: Determine master node information of a master node, the master node being a terminal on which a first target application software is installed, the first target application software being software required to execute the computing task; Obtaining the computing task, and evaluating the computing resource demand of the computing task to obtain the computing resource consumption; Splitting the computing task into a number of computing subtasks according to the computing power resource consumption; Allocating corresponding sub-computing resources from the computing resource pool to each of the computing subtasks; Determine a target computing terminal from the managed terminals and / or the management terminal according to the allocated sub-computing resources; Each of the computing subtasks and the master node information is sent to each of the target computing terminals accordingly, so that the target computing terminal executes the computing subtask, and each of the target computing terminals feeds back the computing results to the master node according to the master node information.

5. The method according to claim 4, characterized in that When the application in the management terminal or the managed terminal executes a storage task, allocating storage resources for the storage task from the storage resource pool includes: Determine the master node information of the master node, the master node is a terminal installed with the second target application software, the second target application software is the software required to execute the storage task; Acquire the storage task, and evaluate the storage resource demand of the storage task to obtain storage resource consumption; Splitting the storage task into a plurality of storage subtasks according to the storage resource consumption; Allocating corresponding sub-storage resources to each of the storage subtasks from the storage resource pool; Determining a target storage terminal from the managed terminal and / or the management terminal according to the allocated sub-storage resource; Each of the storage subtasks and the master node information is sent to each of the target storage terminals accordingly, so that the target storage terminal executes the storage subtask, and each of the target storage terminals feeds back the storage address to the master node according to the master node information.

6. The method according to claim 5, characterized in that The total number of the management terminal and the managed terminals is not less than 3, and the method further includes: During the execution of the program task being split into program subtasks, monitoring the device status of the slave node; wherein the program task is the computing task or the storage task, the program subtask is the computing subtask or the storage subtask, the slave node is a terminal without the third target application software installed, and the third target application software is the first target application software or the second target application software; When the device status of the first slave node indicates that the first slave node is about to go offline, the first program subtask and master node information being executed on the first slave node are migrated to the second slave node, and the device status of the second slave node indicates that the second slave node will not go offline within a preset time.

7. The method according to claim 6, characterized in that The method further comprises: When the device state of the first slave node indicates that the first slave node is offline, determining whether the first program subtask has completed migration; If the first program subtask has not completed migration, the first program subtask and the master node information are resent to the second slave node.

8. The method according to claim 6, characterized in that The method further comprises: When the master node migration function is turned on, a temporary master node is determined from each slave node; Sending a synchronization instruction to the master node, so that the master node synchronously copies the third target application software to the temporary master node, and synchronizes the task progress data of the program task to the temporary master node; Send a monitoring instruction to the temporary master node so that the temporary master node monitors the device status of the master node, and when it is detected that the device status of the master node is offline, the temporary master node imports the task progress data into the third target application software to continue executing the program task.

9. The method according to claim 8, characterized in that The method further comprises: The monitoring instruction is sent to the temporary master node, so that when the temporary master node detects that the device status of the master node is back online, the current new task progress data is sent to the master node, so that the master node continues to execute the program task.

10. A resource sharing device between a vehicle terminal and a mobile terminal, characterized in that: Applied to a management terminal, the management terminal is a vehicle terminal or a mobile terminal, and the device includes: A Star Flash communication ad hoc network module, used to establish a communication connection with a managed terminal through Star Flash communication technology. When the management terminal is a vehicle terminal, the managed terminal includes one or more mobile terminals. When the management terminal is a mobile terminal, the managed terminal includes at least one vehicle terminal. A computing / storage resource access module, used to obtain available computing resource parameters and available storage resource parameters of the management terminal and the managed terminal; A computing / storage resource virtualization module, used to perform resource virtualization through the available computing resource parameters and the available storage resource parameters to generate a computing resource pool and a storage resource pool; The resource allocation module is used to allocate computing resources or storage resources from the computing resource pool or the storage resource pool to the computing task when the application in the management terminal or the managed terminal executes the computing task or the storage task.

11. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 9 by executing the computer instructions.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Resource allocation method, device and equipment for vehicle-machine interconnection and storage medium

    CN114356569A