Application deployment method, device, storage medium and terminal device of vehicle-mounted edge computing device based on K3s

By deploying K3S -based vehicle edge computing devices in the vehicle local area network, the problem of lack of elastic marginal computing between the vehicle system and the cloud, the dedicated, reliable marginal computing and storage services are realized, and the stability and stability of the vehicle system are improved. efficiency.

CN114564212BActive Publication Date: 2025-01-28ZHEJIANG XITUMENG DIGITAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210234519.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-10
Publication Date
2025-01-28
Estimated Expiration
2042-03-10

AI Technical Summary

Technical Problem

In the prior art, the lack of elastic edge computing devices between the on-board system and the cloud leads to sensitivity to wireless network speed and quality, affecting the stability and efficiency of the on-board system.

Method used

In the vehicle and the cloud, the vehicle -based local area network is a K3S -based vehicle -based marginal computing device. By check whether the system environment meets the requirements of the K3S container arrangement engine deployment, the K3S container arrangement engine is deployed. operate.

Benefits of technology

A dedicated, reliable and elastic marginal computing and storage services are provided, reducing the dependence on the wireless network, and improving the calculation efficiency and stability of the vehicle system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114564212B_ABST
    Figure CN114564212B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides an application deployment method, device, storage medium and terminal device based on a K3s vehicle-mounted edge computing device, the method comprising: checking whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine; deploying the K3s container orchestration engine when the system environment meets the deployment conditions of the K3s container orchestration engine; and completing the application deployment operation based on the load balancer provided by the K3s container orchestration engine. Using the application deployment method based on a K3s vehicle-mounted edge computing device provided by the embodiment of the present application, a vehicle-mounted edge computing device is deployed in the vehicle-mounted local area network between the vehicle and the cloud, providing the vehicle with dedicated, reliable and flexible edge computing and storage services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic communication technology, and in particular to the field of application deployment technology of a vehicle-mounted edge computing device based on K3s, and in particular to an application deployment method, device, storage medium and terminal device of a vehicle-mounted edge computing device based on K3s. Background Art

[0002] In the prior art, there is a lack of an on-board and flexible edge computing device and system between the vehicle-mounted system and the cloud. The vehicle-mounted system and the cloud directly interact through a wireless network, which is sensitive to the impact of the wireless network rate and quality. Summary of the invention

[0003] The embodiments of the present application provide an application deployment method, device, storage medium and terminal device of a vehicle-mounted edge computing device based on K3s. A vehicle-mounted edge computing device is deployed in the vehicle-mounted local area network between the vehicle and the cloud to provide the vehicle with dedicated, reliable and flexible edge computing and storage services.

[0004] On the one hand, an embodiment of the present application provides an application deployment method of a vehicle-mounted edge computing device based on K3s, which is applied to the vehicle-mounted edge computing device, including:

[0005] Check whether the current system environment meets the deployment conditions of the K3s container orchestration engine;

[0006] When the system environment meets the deployment conditions of the K3s container orchestration engine, deploy the K3s container orchestration engine;

[0007] The application deployment operation is completed based on the load balancer provided by the K3s container orchestration engine.

[0008] In the application deployment method of the K3s-based vehicle-mounted edge computing device described in the embodiment of the present application, the step of checking whether the currently running system environment meets the K3s container orchestration engine deployment conditions includes:

[0009] Download the binary K3s container orchestration engine-armhf file from the github of the K3s container orchestration engine, and run the K3s container orchestration engine-armhf file to check whether the system environment meets the deployment conditions.

[0010] In the application deployment method of the K3s-based vehicle-mounted edge computing device described in the embodiment of the present application, before checking whether the currently running system environment meets the K3s container orchestration engine deployment conditions, the method also includes:

[0011] Group processes through cgroup, allocate and control resources for each group, and start systemd service;

[0012] Switch the default packet filtering framework from nftables to iptalbes;

[0013] Restart the vehicle-mounted edge computing device to make the configuration data effective.

[0014] In the application deployment method of the K3s-based vehicle-mounted edge computing device described in the embodiment of the present application, the load balancer provided by the K3s container orchestration engine completes the application deployment operation, including:

[0015] Multiple Pods are deployed through Deployment, and the load balancer is exposed to the in-vehicle LAN so that the in-vehicle system can call the load balancer to perform application deployment operations.

[0016] In the application deployment method of the K3s-based vehicle-mounted edge computing device described in the embodiment of the present application, after the load balancer provided by the K3s container orchestration engine completes the application deployment operation, the method further includes:

[0017] Monitoring the voltage change state of the vehicle power supply and converting the voltage change state into a pulse signal;

[0018] Determine the running state of the vehicle according to the pulse signal and whether there is a data communication signal between the control module of the on-board diagnostic system and the on-board computer;

[0019] Determine whether to start the vehicle-mounted edge computing device according to the operating status.

[0020] In the application deployment method of the K3s-based vehicle-mounted edge computing device described in an embodiment of the present application, the operating state is one of car start-up, car shutdown, air conditioning system start-up, and air conditioning system shutdown.

[0021] In the application deployment method of the K3s-based vehicle edge computing device described in an embodiment of the present application, the vehicle power supply voltage detection module includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a power supply and a comparator U2; one end of the resistor R1 is connected to the power supply end of the vehicle-mounted OBD-Ⅱ interface, and the other end of the resistor R1 is connected to the in-phase end of the comparator U2; one end of the resistor R4 is connected to the other end of the resistor R1, and the other end of the resistor R4 is grounded; one end of the resistor R3 is connected to one end of the resistor R1, and the other end of the resistor R3 is connected to the inverting end of the comparator U2; one end of the resistor R2 is connected to the other end of the resistor R3, and the other end of the resistor R2 is grounded; the power supply end of the comparator U2 is connected to the power supply, the ground end of the comparator U2 is grounded, and the output end of the comparator U2 is connected to the processor.

[0022] Accordingly, another aspect of the embodiment of the present application further provides an application deployment device of a vehicle-mounted edge computing device based on K3s, including:

[0023] The environment check module is used to check whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine;

[0024] A first deployment module, configured to deploy the K3s container orchestration engine when the system environment meets the K3s container orchestration engine deployment conditions;

[0025] The second deployment module is used to complete the application deployment operation based on the load balancer provided by the K3s container orchestration engine.

[0026] Correspondingly, on the other hand, an embodiment of the present application further provides a storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the application deployment method of the K3s-based vehicle-mounted edge computing device as described above.

[0027] Correspondingly, on the other hand, an embodiment of the present application further provides a terminal device, including a processor and a memory, wherein the memory stores multiple instructions, and the processor loads the instructions to execute the application deployment method of the K3s-based vehicle-mounted edge computing device as described above.

[0028] The embodiment of the present application provides an application deployment method, device, storage medium and terminal device based on a K3s vehicle-mounted edge computing device. The method checks whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine; when the system environment meets the deployment conditions of the K3s container orchestration engine, the K3s container orchestration engine is deployed; and the application deployment operation is completed based on the load balancer provided by the K3s container orchestration engine. The embodiment of the present application can deploy an on-board edge computing device in the vehicle-mounted local area network between the vehicle and the cloud, providing the vehicle with dedicated, reliable and flexible edge computing and storage services. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.

[0030] Figure 1 A flowchart of an application deployment method for a K3s-based vehicle-mounted edge computing device provided in an embodiment of the present application.

[0031] Figure 2 A circuit diagram of the vehicle power supply voltage detection module in the application deployment device of the K3s-based vehicle edge computing device provided in an embodiment of the present application.

[0032] Figure 3 A schematic diagram of the structure of an application deployment device for a K3s-based vehicle-mounted edge computing device provided in an embodiment of the present application.

[0033] Figure 4 Another structural schematic diagram of an application deployment device for a K3s-based vehicle-mounted edge computing device provided in an embodiment of the present application.

[0034] Figure 5 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0036] The embodiment of the present application provides an application deployment method of a vehicle-mounted edge computing device based on K3s, and the application deployment method of the vehicle-mounted edge computing device based on K3s can be applied to a terminal device. The terminal device can be a smart phone, a computer, or other device.

[0037] In the prior art, there is no on-board, flexible edge computing device and system between the vehicle-mounted system and the cloud. The vehicle-mounted system interacts directly with the cloud through a wireless network, which is sensitive to the impact of the wireless network rate and quality.

[0038] In order to solve the above technical problems, the embodiment of the present application provides an application deployment method of a vehicle-mounted edge computing device based on K3s. Using the application deployment method of a vehicle-mounted edge computing device based on K3s provided in the embodiment of the present application, a vehicle-mounted edge computing device is deployed in the vehicle-mounted local area network between the vehicle and the cloud, providing the vehicle with dedicated, reliable, and flexible edge computing and storage services.

[0039] See also Figure 1-2 , Figure 1 A flow chart of an application deployment method for a vehicle-mounted edge computing device based on K3s provided in an embodiment of the present application. The application deployment method for a vehicle-mounted edge computing device based on K3s is applied to a terminal device.

[0040] It should be explained that the K3s container orchestration engine is a lightweight Kubernetes distribution that has been certified by CNCF (Cloud Native Computing Foundation). It has been highly lightweight and enhanced for edge computing, IoT and other scenarios, eliminating third-party storage drivers, cloud providers and unreleased features of Kubernetes. All control panel components are simplified and encapsulated in a single binary file and process. Local storage volumes are used by default, which minimizes external dependencies and only requires kernel (kernel) and cgroup (control group, a function of the Linux kernel, used to limit, control and separate the resources of process groups) to mount. For example, the binary file size of the K3s container orchestration engine v1.21.3 armhf version is only 42.6M, and it has built-in contained (a container runtime) and kubectl (command line management tool). The K3s container orchestration engine changes the deployment and operation methods, and is suitable for edge computing, IoT, and ARM devices.

[0041] The processing system relied on by the vehicle-mounted edge computing device in the present invention is based on an ARM device, preferably a Raspberry Pi 4B (hereinafter referred to as Raspberry Pi), but other ARM devices can also be used. Raspberry Pi is a microcomputer the size of a credit card, which uses an ARM microcontroller chip and can be installed with Linux or Windows operating systems.

[0042] Raspberry Pi 4B was released on June 24, 2019. Its main features include a 64-bit 1.5GHz 4-core (28nm process) CPU, 2GB / 4GB / 8GB LPDDR4 memory, full-throughput Gigabit Ethernet port, and dual-band 802.11ac wireless network card. The power supply requirement is Type C (5V3A) or network cable POE power supply, and the power consumption is about 3.4W~7.6W. The static power consumption is 3.6W, and the power consumption is 6.4W when running CPU-intensive benchmarks.

[0043] The innovation of the present invention lies mainly in that an edge computing device is deployed in the vehicle-mounted local area network between the vehicle and the cloud, providing the vehicle with dedicated, reliable and flexible edge computing and storage services.

[0044] The vehicle-mounted edge computing device is physically installed in the vehicle, wirelessly accesses the vehicle-mounted LAN through the vehicle-mounted WiFi, and is located in the same Gigabit LAN as each vehicle-mounted system. Since it is the same LAN, each vehicle-mounted system can use the edge computing and storage capabilities provided by the device of the present invention with almost zero network latency. Compared with the cloud, the computing and storage speeds are faster and more stable. Since the device of the present invention is exclusive to the vehicle, the service is more stable and reliable. Since the vehicle-mounted edge computing device is composed of a K3s high-availability cluster, it can be elastically scaled and the nodes can be expanded.

[0045] Each vehicle-mounted system can make full use of the edge computing and storage capabilities of the local area network provided by the vehicle-mounted edge computing device, break through its own hardware limitations, and create richer usage scenarios and better usage experience. The characteristic calculations in some scenarios can be completed locally on the vehicle-mounted edge computing device, and the calculation results are then interacted with the cloud to reduce the network transmission volume between the vehicle and the cloud and improve computing efficiency; some personal information with privacy characteristics can be calculated and processed locally or anonymized before interacting with the cloud to protect personal privacy in the car; some data can be stored locally on the vehicle-mounted edge computing device or can be pre-loaded before use, such as movies, songs, game data, etc.; the logs of the vehicle driving system can be backed up on the vehicle-mounted edge computing device, with an extra backup in case of emergency; each vehicle-mounted system can use the vehicle-mounted edge computing device as an IT infrastructure to improve the experience of the above-mentioned usage scenarios from all aspects.

[0046] The method may include the following steps:

[0047] Step 101, check whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine.

[0048] In this embodiment, before deploying the K3s container orchestration engine in the vehicle-mounted edge computing device, it is necessary to check whether the currently running system environment meets the deployment conditions.

[0049] In a specific embodiment, a binary K3s container orchestration engine-armhf file may be downloaded from the github of the K3s container orchestration engine, and the K3s container orchestration engine-armhf file may be run to check whether the system environment meets the deployment conditions.

[0050] In some embodiments, in order for the on-board edge computing device to operate smoothly, necessary data configuration operations need to be performed on the on-board edge computing device.

[0051] Specifically, the processes are grouped through cgroup, and then resources are allocated and controlled for each group to start the systemd service; because the Raspberry Pi uses nftables by default, the K3s container orchestration engine network function needs to use iptables instead of nftables, and the default packet filtering framework needs to be switched from nftables to iptalbes; restart the on-board edge computing device to make the configuration data take effect.

[0052] It needs to be explained that nftables is a new packet filtering framework that aims to replace the existing iptables, ip6tables, arptables and ebtables. nftables aims to solve many limitations of the existing {ip / ip6}tables tools. Compared with the old iptables, the most striking features of nftables include: improved performance, support for query tables, transactional rule updates, automatic application of all rules, etc.

[0053] nftables mainly consists of three components: kernel implementation, libnl netlink communication and nftables user space. The kernel provides a netlink configuration interface and runtime rule set evaluation, libnl contains basic functions for communicating with the kernel, and the user space can interact with users through the newly introduced command line tool nft.

[0054] Iptables is not a real firewall. We can think of it as a client proxy. Through the proxy, users can execute their security settings into the corresponding "security framework". This "security framework" is the real firewall. The name of this framework is netfilter. Netfilter is the real security framework of the firewall. Netfilter is located in the kernel space. Iptables is actually a command line tool located in the user space. We use this tool to operate the real framework.

[0055] netfilter / iptables (hereinafter referred to as iptables) constitutes a packet filtering firewall under the Linux platform. Like most Linux software, this packet filtering firewall is free. It can replace expensive commercial firewall solutions to complete functions such as packet filtering, packet redirection and network address translation (NAT).

[0056] Step 102: When the system environment meets the deployment conditions of the K3s container orchestration engine, deploy the K3s container orchestration engine.

[0057] In this embodiment, when the system environment meets the deployment conditions of the K3s container orchestration engine, the K3s container orchestration engine can be deployed. A 3Master node cluster is formed. The Master node of K3s participates in scheduling by default, and the Master node also acts as an Agent node.

[0058] Initial Master node installation of the cluster:

[0059] #curl -sfL http: / / rancher-mirror.cnrancher.com / k3s / k3s-install.sh |INSTALL_K3S_MIRROR=cn sh -s - server --cluster-init --private-registry / etc / rancher / registery.yaml

[0060] Install other Master nodes and join the cluster:

[0061] #curl -sfL http: / / rancher-mirror.cnrancher.com / k3s / k3s-install.sh |INSTALL_K3S_MIRROR=cn K3S_URL="https: / / <ip> : <port>" sh -s - server --token " <token>" --private-registry / etc / rancher / registery.yaml

[0062] Agent node installation and joining the cluster:

[0063] #curl -sfL http: / / rancher-mirror.cnrancher.com / k3s / k3s-install.sh |INSTALL_K3S_MIRROR=cn K3S_URL="https: / / <ip> : <port>" INSTALL_K3S_EXEC="--private-registry / etc / rancher / registery.yaml" K3S_TOKEN=" <token>" sh -

[0064] registery.yaml is the configuration of the private image repository. Since the cluster uses the K3s built-in containerd container runtime, the configuration of the private repository needs to be loaded for use by the built-in containerd.

[0065] similar

[0066] mirrors:

[0067] myharbor.io:

[0068] endpoint:

[0069] - "http: / / <ip:port>"

[0070] configs:

[0071] "ip":

[0072] auth:

[0073] username: <username>

[0074] password: <password>

[0075] Step 103, completing the application deployment operation based on the load balancer provided by the K3s container orchestration engine.

[0076] In this embodiment, multiple Pods are deployed through Deployment, and the load balancer is exposed to the in-vehicle LAN so that the vehicle system can call the load balancer to perform application deployment operations.

[0077] In some embodiments, after the load balancer provided by the K3s container orchestration engine completes the application deployment operation, the method further includes:

[0078] Monitoring the voltage change state of the vehicle power supply and converting the voltage change state into a pulse signal;

[0079] Determine the running state of the vehicle according to the pulse signal and whether there is a data communication signal between the control module of the on-board diagnostic system and the on-board computer;

[0080] Determine whether to start the vehicle-mounted edge computing device according to the operating status.

[0081] In this embodiment, if there is no power supply specially adapted for the Raspberry Pi in the vehicle, the cigarette lighter can be used to directly extend the USB or use an outdoor mobile power supply. If the device is only allowed to be started when the vehicle is in operation, the power supply can be monitored and controlled.

[0082] It should be explained that the operating state is one of the following: the vehicle is on, the vehicle is off, the air conditioning system is on, and the air conditioning system is off.

[0083] The vehicle-mounted power supply voltage detection module includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a power supply and a comparator U2; one end of the resistor R1 is connected to the power supply end of the vehicle-mounted OBD-Ⅱ interface, and the other end of the resistor R1 is connected to the in-phase end of the comparator U2; one end of the resistor R4 is connected to the other end of the resistor R1, and the other end of the resistor R4 is grounded; one end of the resistor R3 is connected to one end of the resistor R1, and the other end of the resistor R3 is connected to the inverting end of the comparator U2; one end of the resistor R2 is connected to the other end of the resistor R3, and the other end of the resistor R2 is grounded; the power supply end of the comparator U2 is connected to the power supply, the ground end of the comparator U2 is grounded, and the output end of the comparator U2 is connected to the processor.

[0084] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.

[0085] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0086] As can be seen from the above, the application deployment method of the vehicle-mounted edge computing device based on K3s provided in the embodiment of the present application checks whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine; when the system environment meets the deployment conditions of the K3s container orchestration engine, the K3s container orchestration engine is deployed; and the application deployment operation is completed based on the load balancer provided by the K3s container orchestration engine. Using the application deployment method of the vehicle-mounted edge computing device based on K3s provided in the embodiment of the present application, a vehicle-mounted edge computing device is deployed in the vehicle-mounted local area network between the vehicle and the cloud, providing the vehicle with dedicated, reliable, and flexible edge computing and storage services.

[0087] The embodiment of the present application also provides an application deployment device of a vehicle-mounted edge computing device based on K3s, and the application deployment device of the vehicle-mounted edge computing device based on K3s can be integrated in a terminal device. The terminal device can be a smart phone, a tablet computer, or other device.

[0088] See also Figure 3 , Figure 3 A schematic diagram of the structure of an application deployment device of a vehicle-mounted edge computing device based on K3s provided in an embodiment of the present application. The application deployment device 30 of a vehicle-mounted edge computing device based on K3s may include:

[0089] The environment check module 31 is used to check whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine;

[0090] A first deployment module 32, configured to deploy the K3s container orchestration engine when the system environment meets the K3s container orchestration engine deployment conditions;

[0091] The second deployment module 33 is used to complete the application deployment operation based on the load balancer provided by the K3s container orchestration engine.

[0092] In some embodiments, the environment check module 31 is used to download the binary K3s container orchestration engine-armhf file from the github of the K3s container orchestration engine, and run the K3s container orchestration engine-armhf file to check whether the system environment meets the deployment conditions.

[0093] In some embodiments, the device also includes a data configuration module, which is used to group processes through cgroup, and then allocate and control resources for each group to start the systemd service; switch the default packet filtering framework from nftables to iptalbes; restart the on-board edge computing device to make the configuration data take effect.

[0094] In some embodiments, the second deployment module 32 is used to deploy multiple Pods through Deployment, and expose the load balancer to the in-vehicle local area network so that the vehicle system can call the load balancer to perform application deployment operations.

[0095] In some embodiments, the device also includes a detection module for monitoring the voltage change state of the vehicle power supply and converting the voltage change state into a pulse signal; judging the operating state of the vehicle based on the pulse signal and whether there is a data communication signal between the control module of the vehicle diagnostic system and the vehicle computer; and determining whether to start the vehicle edge computing device based on the operating state.

[0096] In some embodiments, the operating state is one of vehicle start, vehicle shutdown, air conditioning system start, and air conditioning system shutdown.

[0097] In some embodiments, the vehicle-mounted power supply voltage detection module includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a power supply and a comparator U2; one end of the resistor R1 is connected to the power supply end of the vehicle-mounted OBD-Ⅱ interface, and the other end of the resistor R1 is connected to the in-phase end of the comparator U2; one end of the resistor R4 is connected to the other end of the resistor R1, and the other end of the resistor R4 is grounded; one end of the resistor R3 is connected to one end of the resistor R1, and the other end of the resistor R3 is connected to the inverting end of the comparator U2; one end of the resistor R2 is connected to the other end of the resistor R3, and the other end of the resistor R2 is grounded; the power supply end of the comparator U2 is connected to the power supply, the ground end of the comparator U2 is grounded, and the output end of the comparator U2 is connected to the processor.

[0098] In specific implementation, the above modules can be implemented as independent entities, or can be arbitrarily combined to be implemented as the same entity or several entities.

[0099] From the above, it can be seen that the application deployment device 30 of the K3s-based vehicle-mounted edge computing device provided in the embodiment of the present application checks whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine through the environment check module 31; the first deployment module 32 deploys the K3s container orchestration engine when the system environment meets the deployment conditions of the K3s container orchestration engine; the second deployment module 33 completes the application deployment operation based on the load balancer provided by the K3s container orchestration engine.

[0100] See also Figure 4 , Figure 4 Another structural diagram of an application deployment device for an on-board edge computing device based on K3s provided in an embodiment of the present application, the application deployment device 30 for an on-board edge computing device based on K3s includes a memory 120, one or more processors 180, and one or more applications, wherein the one or more applications are stored in the memory 120 and configured to be executed by the processor 180; the processor 180 may include an environment inspection module 31, a first deployment module 32, and a second deployment module 33. For example, the structure and connection relationship of the above components may be as follows:

[0101] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable codes. The applications can be composed of various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices. Accordingly, the memory 120 may also include a memory controller to provide the processor 180 with access to the memory 120.

[0102] The processor 180 is the control center of the device, and uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the device and processes data by running or executing applications stored in the memory 120, and calling data stored in the memory 120, so as to monitor the device as a whole. Optionally, the processor 180 may include one or more processing cores; preferably, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs.

[0103] Specifically in this embodiment, the processor 180 will load the executable code corresponding to the process of one or more applications into the memory 120 according to the following instructions, and the processor 180 will run the application stored in the memory 120 to implement various functions:

[0104] The environment check module 31 is used to check whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine;

[0105] A first deployment module 32, configured to deploy the K3s container orchestration engine when the system environment meets the K3s container orchestration engine deployment conditions;

[0106] The second deployment module 33 is used to complete the application deployment operation based on the load balancer provided by the K3s container orchestration engine.

[0107] In some embodiments, the environment check module 31 is used to download the binary K3s container orchestration engine-armhf file from the github of the K3s container orchestration engine, and run the K3s container orchestration engine-armhf file to check whether the system environment meets the deployment conditions.

[0108] In some embodiments, the device also includes a data configuration module, which is used to group processes through cgroup, and then allocate and control resources for each group to start the systemd service; switch the default packet filtering framework from nftables to iptalbes; restart the on-board edge computing device to make the configuration data take effect.

[0109] In some embodiments, the second deployment module 32 is used to deploy multiple Pods through Deployment, and expose the load balancer to the in-vehicle local area network so that the vehicle system can call the load balancer to perform application deployment operations.

[0110] In some embodiments, the device also includes a detection module for monitoring the voltage change state of the vehicle power supply and converting the voltage change state into a pulse signal; judging the operating state of the vehicle based on the pulse signal and whether there is a data communication signal between the control module of the vehicle diagnostic system and the vehicle computer; and determining whether to start the vehicle edge computing device based on the operating state.

[0111] In some embodiments, the operating state is one of vehicle start, vehicle shutdown, air conditioning system start, and air conditioning system shutdown.

[0112] In some embodiments, the vehicle-mounted power supply voltage detection module includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a power supply and a comparator U2; one end of the resistor R1 is connected to the power supply end of the vehicle-mounted OBD-Ⅱ interface, and the other end of the resistor R1 is connected to the in-phase end of the comparator U2; one end of the resistor R4 is connected to the other end of the resistor R1, and the other end of the resistor R4 is grounded; one end of the resistor R3 is connected to one end of the resistor R1, and the other end of the resistor R3 is connected to the inverting end of the comparator U2; one end of the resistor R2 is connected to the other end of the resistor R3, and the other end of the resistor R2 is grounded; the power supply end of the comparator U2 is connected to the power supply, the ground end of the comparator U2 is grounded, and the output end of the comparator U2 is connected to the processor.

[0113] The embodiment of the present application also provides a terminal device, which can be a smart phone, a computer, a tablet computer, or other device.

[0114] See also Figure 5 , Figure 5 The schematic diagram of the structure of the terminal device provided in the embodiment of the present application is shown, and the terminal device can be used to implement the application deployment method of the vehicle-mounted edge computing device based on K3s provided in the above embodiment. The terminal device 1200 can be a smart phone or a tablet computer.

[0115] like Figure 5 As shown, the terminal device 1200 may include an RF (Radio Frequency) circuit 110, a memory 120 including one or more (only one is shown in the figure) computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a transmission module 170, a processor 180 including one or more (only one is shown in the figure) processing cores, and a power supply 190. Those skilled in the art will understand that Figure 4 The structure of the terminal device 1200 shown in the figure does not constitute a limitation on the terminal device 1200, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0116] The RF circuit 110 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices. The RF circuit 110 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity module (SIM) cards, memories, etc. The RF circuit 110 can communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices through wireless networks.

[0117] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the application deployment method of the vehicle-mounted edge computing device based on K3s in the above-mentioned embodiment. The processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120. The vibration reminder mode can be automatically selected according to the current scene of the terminal device to perform application deployment of the vehicle-mounted edge computing device based on K3s, which can not only ensure that scenes such as meetings are not disturbed, but also ensure that users can perceive incoming calls, thereby improving the intelligence of the terminal device. The memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 120 may further include a memory remotely arranged relative to the processor 180, and these remote memories may be connected to the terminal device 1200 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 a combination thereof.

[0118] The input unit 130 can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and other input devices 132. The touch-sensitive surface 131, also known as a touch display screen or a touch pad, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch-sensitive surface 131), and drive corresponding connection devices according to a pre-set program. Optionally, the touch-sensitive surface 131 may include a touch detection device and a touch controller. The touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 180, and can receive and execute commands sent by the processor 180. In addition, the touch-sensitive surface 131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 131, the input unit 130 may further include other input devices 132. Specifically, other input devices 132 may include but are not limited to one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, etc.

[0119] The display unit 140 may be used to display information input by the user or information provided to the user and various graphical user interfaces of the terminal device 1200, which may be composed of graphics, text, icons, videos and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141. When the touch-sensitive surface 131 detects a touch operation on or near it, it is transmitted to the processor 180 to determine the type of touch event. Subsequently, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in Figure 5 In the embodiment, the touch-sensitive surface 131 and the display panel 141 are implemented as two independent components to realize the input and output functions. However, in some embodiments, the touch-sensitive surface 131 and the display panel 141 can be integrated to realize the input and output functions.

[0120] The terminal device 1200 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 141 according to the brightness of the ambient light, and the proximity sensor may turn off the display panel 141 and / or the backlight when the terminal device 1200 is moved to the ear. As a type of motion sensor, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; As for other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that can also be configured in the terminal device 1200, they will not be repeated here.

[0121] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 1200. The audio circuit 160 can transmit the received audio data to the speaker 161 after converting the received audio data into an electrical signal, which is converted into a sound signal for output by the speaker 161; on the other hand, the microphone 162 converts the collected sound signal into an electrical signal, which is received by the audio circuit 160 and converted into audio data, and then the audio data is output to the processor 180 for processing, and then sent to another terminal through the RF circuit 110, or the audio data is output to the memory 120 for further processing. The audio circuit 160 may also include an earplug jack to provide communication between an external headset and the terminal device 1200.

[0122] The terminal device 1200 can help users send and receive emails, browse web pages, and access streaming media through the transmission module 170 (such as a Wi-Fi module), which provides users with wireless broadband Internet access. Figure 5 The transmission module 170 is shown, but it is understandable that it is not a necessary component of the terminal device 1200 and can be omitted as needed without changing the essence of the invention.

[0123] The processor 180 is the control center of the terminal device 1200. It uses various interfaces and lines to connect various parts of the entire mobile phone. By running or executing software programs and / or modules stored in the memory 120, and calling data stored in the memory 120, it executes various functions of the terminal device 1200 and processes data, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 180.

[0124] The terminal device 1200 also includes a power supply 190 for supplying power to various components. In some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so that the power management system can realize functions such as managing discharge and power consumption. The power supply 190 can also include any components such as one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, and power status indicators.

[0125] Although not shown, the terminal device 1200 may also include a camera (such as a front camera, a rear camera), a Bluetooth module, etc., which will not be described in detail here. Specifically in this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 also includes a memory 120 and one or more programs, wherein one or more programs are stored in the memory 120 and are configured to be executed by one or more processors 180. One or more programs include instructions for performing the following operations:

[0126] Environment check instructions are used to check whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine;

[0127] A first deployment instruction is used to deploy the K3s container orchestration engine when the system environment meets the K3s container orchestration engine deployment conditions;

[0128] The second deployment instruction is used to complete the application deployment operation based on the load balancer provided by the K3s container orchestration engine.

[0129] In some embodiments, the environment check instruction is used to download a binary K3s container orchestration engine-armhf file from github of the K3s container orchestration engine, and run the K3s container orchestration engine-armhf file to check whether the system environment meets the deployment conditions.

[0130] In some embodiments, the program also includes data configuration instructions for grouping processes through cgroup, and then allocating and controlling resources for each group to start the systemd service; switching the default packet filtering framework from nftables to iptalbes; and restarting the on-board edge computing device to make the configuration data take effect.

[0131] In some embodiments, the second deployment instruction is used to deploy multiple Pods through Deployment, exposing the load balancer to the in-vehicle local area network so that the vehicle system can call the load balancer to perform application deployment operations.

[0132] In some embodiments, the program also includes detection instructions for monitoring the voltage change state of the vehicle power supply and converting the voltage change state into a pulse signal; judging the operating state of the vehicle based on the pulse signal and whether there is a data communication signal between the control module of the vehicle diagnostic system and the vehicle computer; and determining whether to start the vehicle edge computing device based on the operating state.

[0133] In some embodiments, the operating state is one of vehicle start, vehicle shutdown, air conditioning system start, and air conditioning system shutdown.

[0134] In some embodiments, the vehicle-mounted power supply voltage detection module includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a power supply and a comparator U2; one end of the resistor R1 is connected to the power supply end of the vehicle-mounted OBD-Ⅱ interface, and the other end of the resistor R1 is connected to the in-phase end of the comparator U2; one end of the resistor R4 is connected to the other end of the resistor R1, and the other end of the resistor R4 is grounded; one end of the resistor R3 is connected to one end of the resistor R1, and the other end of the resistor R3 is connected to the inverting end of the comparator U2; one end of the resistor R2 is connected to the other end of the resistor R3, and the other end of the resistor R2 is grounded; the power supply end of the comparator U2 is connected to the power supply, the ground end of the comparator U2 is grounded, and the output end of the comparator U2 is connected to the processor.

[0135] The embodiment of the present application also provides a terminal device. The terminal device may be a smart phone, a computer or other device. The terminal device includes a processor and a memory, the memory stores a plurality of instructions, and the processor loads the instructions to execute the application deployment method of the vehicle-mounted edge computing device based on K3s as described in any of the above embodiments.

[0136] An embodiment of the present application also provides a storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the application deployment method of the K3s-based vehicle-mounted edge computing device described in any of the above embodiments.

[0137] It should be noted that, for the application deployment method of the vehicle-mounted edge computing device based on K3s described in this application, ordinary testers in this field can understand that the whole or part of the process of implementing the application deployment method of the vehicle-mounted edge computing device based on K3s described in the embodiment of this application can be completed by controlling the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, such as stored in the memory of a terminal device, and executed by at least one processor in the terminal device, and the execution process may include the process of the embodiment of the application deployment method of the vehicle-mounted edge computing device based on K3s. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM, ReadOnly Memory), a random access memory (RAM, Random Access Memory), etc.

[0138] For the application deployment device of the K3s-based vehicle-mounted edge computing device in the embodiment of the present application, its various functional modules can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software functional modules. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium, such as a read-only memory, a disk or an optical disk.

[0139] The above is a detailed introduction to the application deployment method, device, storage medium and terminal device of the vehicle-mounted edge computing device based on K3s provided in the embodiment of the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application; at the same time, for technicians in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.< / password> < / username> < / ip:port> < / token> < / port> < / ip> < / token> < / port> < / ip>

Claims

1. A K3s-based vehicle-mounted edge computing device application deployment method, applied to the vehicle-mounted edge computing device, characterized in that: include: Check whether the current system environment meets the deployment conditions of the K3s container orchestration engine; When the system environment meets the deployment conditions of the K3s container orchestration engine, deploy the K3s container orchestration engine; Complete application deployment operations based on the load balancer provided by the K3s container orchestration engine; After the load balancer provided by the K3s container orchestration engine completes the application deployment operation, the method further includes: Monitoring the voltage change state of the vehicle power supply and converting the voltage change state into a pulse signal; Determine the running state of the vehicle according to the pulse signal and whether there is a data communication signal between the control module of the on-board diagnostic system and the on-board computer; Determine whether to start the vehicle-mounted edge computing device according to the operating status; The operating state is one of vehicle start, vehicle shutdown, air conditioning system start, and air conditioning system shutdown; The vehicle-mounted power supply voltage detection module includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a power supply and a comparator U2; one end of the resistor R1 is connected to the power supply end of the vehicle-mounted OBD-Ⅱ interface, and the other end of the resistor R1 is connected to the in-phase end of the comparator U2; one end of the resistor R4 is connected to the other end of the resistor R1, and the other end of the resistor R4 is grounded; one end of the resistor R3 is connected to one end of the resistor R1, and the other end of the resistor R3 is connected to the inverting end of the comparator U2; one end of the resistor R2 is connected to the other end of the resistor R3, and the other end of the resistor R2 is grounded; the power supply end of the comparator U2 is connected to the power supply, the ground end of the comparator U2 is grounded, and the output end of the comparator U2 is connected to the processor.

2. The application deployment method according to claim 1, characterized in that: Checking whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine includes: Download the binary K3s container orchestration engine-armhf file from the github of the K3s container orchestration engine, and run the K3s container orchestration engine-armhf file to check whether the system environment meets the deployment conditions.

3. The application deployment method according to claim 2, characterized in that: Before checking whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine, the method further includes: Group processes through cgroup, allocate and control resources for each group, and start systemd service; Switch the default packet filtering framework from nftables to iptalbes; Restart the vehicle-mounted edge computing device to make the configuration data effective.

4. The application deployment method according to claim 2, characterized in that: The load balancer provided by the K3s container orchestration engine completes the application deployment operation, including: Multiple Pods are deployed through Deployment, and the load balancer is exposed to the in-vehicle LAN so that the in-vehicle system can call the load balancer to perform application deployment operations.

5. An application deployment device for a vehicle-mounted edge computing device based on K3s, characterized in that: include: The environment check module is used to check whether the currently running system environment meets the deployment conditions of the K3s container orchestration engine; A first deployment module, configured to deploy the K3s container orchestration engine when the system environment meets the K3s container orchestration engine deployment conditions; A second deployment module is used to complete the application deployment operation based on the load balancer provided by the K3s container orchestration engine; The device also includes a detection module for monitoring the voltage change state of the vehicle power supply and converting the voltage change state into a pulse signal; judging the running state of the vehicle according to the pulse signal and whether there is a data communication signal between the control module of the vehicle diagnostic system and the vehicle computer; determining whether to start the vehicle edge computing device according to the running state; the running state is one of the following: vehicle start, vehicle shutdown, air conditioning system start and air conditioning system shutdown; The vehicle-mounted power supply voltage detection module includes a resistor R1, a resistor R2, a resistor R3, a resistor R4, a power supply and a comparator U2; one end of the resistor R1 is connected to the power supply end of the vehicle-mounted OBD-Ⅱ interface, and the other end of the resistor R1 is connected to the in-phase end of the comparator U2; one end of the resistor R4 is connected to the other end of the resistor R1, and the other end of the resistor R4 is grounded; one end of the resistor R3 is connected to one end of the resistor R1, and the other end of the resistor R3 is connected to the inverting end of the comparator U2; one end of the resistor R2 is connected to the other end of the resistor R3, and the other end of the resistor R2 is grounded; the power supply end of the comparator U2 is connected to the power supply, the ground end of the comparator U2 is grounded, and the output end of the comparator U2 is connected to the processor.

6. A storage medium, characterized in that: The storage medium stores multiple instructions, which are suitable for loading by a processor to execute the application deployment method of the K3s-based vehicle-mounted edge computing device as described in any one of claims 1 to 4.

7. A terminal device, characterized in that: It includes a processor and a memory, the memory stores multiple instructions, and the processor loads the instructions to execute the application deployment method of the K3s-based vehicle-mounted edge computing device as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Vehicle-mounted display system, image display method, storage medium and host

    CN110955399A

  • Jenkins and K3S-based software environment rapid deployment method

    CN112346752A