Vehicle control method and device based on Internet of Things equipment, vehicle and storage medium
The network-connected domain controller obtains device configuration information of IoT devices and obtains vehicle control permissions, which solves the problem that IoT devices cannot reasonably control vehicles, and achieves reasonable safety control of vehicles and data security guarantees.
Patent Information
- Application Number
- CN202510069331.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2045-01-16
AI Technical Summary
The prior art cannot reasonably control vehicles through IoT devices, which can easily cause damage to vehicles and drivers.
The networked domain controller detects the device configuration information of the Internet of Things devices, generates a standard service interface and device registration request, and sends it to the cloud to obtain vehicle control permissions, and configures the service interface based on this permission to obtain the target service interface to achieve reasonable control of the vehicle.
Effectively prevent vehicles from erroneously executing overriding instructions of IoT devices, ensuring driving safety, and exercising permission control of data transmission between vehicles and IoT devices to ensure data security.
Smart Images

Figure CN119906742A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle Internet of Things, and in particular to a vehicle control method, device, vehicle and storage medium based on Internet of Things equipment. Background Art
[0002] With the development of Internet of Things technology, vehicles are evolving from traditional cars to intelligent connected cars, and have expanded from single vehicles to the full ecological interconnection of people, vehicles, machines, and homes.
[0003] Currently, most vehicles only support interconnection with mobile phones and tablets, and can perform simple controls on vehicles such as turning on the air conditioner and car doors through mobile phones and tablets. The control types are relatively simple and cannot achieve complex vehicle control; and most IoT devices cannot connect to vehicles, and cannot reasonably control vehicles after connecting. For IoT devices connected to vehicles, if their control permissions are not strictly managed, it is very likely to cause damage to the vehicle and the driver and passengers. Summary of the invention
[0004] In view of this, the present invention provides a vehicle control method, device, vehicle and storage medium based on Internet of Things devices to solve the problem that the prior art cannot reasonably control the vehicle through the Internet of Things devices, which is easy to cause damage to the vehicle and additional personnel.
[0005] In a first aspect, the present invention provides a vehicle control method based on an Internet of Things device, which is applied to a networked domain controller of a vehicle, and the method comprises:
[0006] When it is detected that the IoT device is connected to the gateway interface of the network connection domain controller, the device configuration information of the IoT device is obtained;
[0007] Based on the device configuration information, multiple standard service interfaces and device registration requests are generated, and the device registration requests are sent to the cloud, so that the cloud obtains the vehicle control authority according to the device configuration information in the device registration request and sends the vehicle control authority to the network domain controller;
[0008] Based on the vehicle control authority, multiple standard service interfaces are configured with permissions to obtain the target service interface;
[0009] The target service interface is used to obtain the target control instructions sent by the IoT device under the vehicle control authority, and the vehicle is controlled according to the target control instructions.
[0010] Beneficial effects: The networked domain controller is used to obtain the device configuration information of the IoT device, generate multiple standard service interfaces, and generate a device registration request and send it to the cloud, so that the cloud can obtain the vehicle control authority based on the device configuration information and send it to the networked domain controller. Then, the networked domain controller will configure the permissions of multiple standard service interfaces based on the vehicle control authority, and obtain the target service interface that is consistent with the vehicle control authority of the IoT device. In this way, the IoT device can issue a target control instruction consistent with its authority scope through the target service interface, so that the networked domain controller can reasonably control the vehicle according to the target control instruction, prevent the vehicle from mistakenly executing the unauthorized instructions of certain devices, thereby effectively ensuring the driving safety of the vehicle, and can control the authority of data transmission between the vehicle and the IoT device to ensure data security.
[0011] In some optional implementations, multiple standard service interfaces are configured with permissions based on the vehicle control permissions to obtain a target service interface, including:
[0012] Determine the interface permissions of IoT devices based on vehicle control permissions;
[0013] Based on the interface permissions of the IoT device, the role information and permission information of each standard service interface are configured to obtain the target service interface corresponding to the IoT device.
[0014] Beneficial effect: The present invention determines the interface authority of each standard service interface for accessing the Internet of Things device according to the vehicle control authority range of the Internet of Things device, and then adds the role information of the Internet of Things device to the corresponding standard service interface and binds the corresponding authority information to obtain the target service interface, so that the specific Internet of Things device can legally and effectively operate within the vehicle control authority range it possesses by calling the target service interface, thereby realizing the reasonable control of the vehicle by the Internet of Things device and effectively ensuring driving safety.
[0015] In some optional implementations, the networked domain controller is connected to different types of functional controllers of the vehicle via a multi-channel bus; and the vehicle is controlled according to the target control instruction, including:
[0016] Determine a target function controller and a target operation corresponding to the target control instruction; wherein the function controller includes at least one of an electronic control unit, a drive controller, and a driving domain controller;
[0017] The target operation is sent to the target function controller so that the target function controller executes the target operation and controls the vehicle accordingly.
[0018] Beneficial effects: The IoT device sends out target control instructions within the scope of its vehicle control authority through the target service interface. The networked domain controller parses the target control instructions, clarifies the target function controller that the IoT device wants to control and the target operation it wants to perform, and controls the vehicle accordingly to meet the user's reasonable usage needs within the scope of authority and ensure vehicle safety and information security.
[0019] In some optional implementations, after sending the device registration request to the cloud, the method further includes:
[0020] Receive the state random number sent by the cloud, and send the state random number to the IoT device; wherein the state random number is generated by the cloud after receiving the device registration request;
[0021] Receive the first calculation result returned by the IoT device based on the state random number, and send the first calculation result to the cloud, so that after the cloud detects that the second calculation result stored in itself is consistent with the first calculation result, it determines the authority level of the IoT device according to the device configuration information, and queries to obtain the vehicle control authority corresponding to the authority level.
[0022] Beneficial effect: When the networked domain controller requests device registration from the cloud, the present invention compares the first calculation result obtained by the IoT device based on the state random number sent by the cloud with the second calculation result of the cloud to verify the legitimacy of the connected IoT device. After the device legitimacy verification is passed, the cloud determines the vehicle control authority of the IoT device based on the device configuration information and sends it to the networked domain controller, preventing the erroneous allocation of authority to illegal devices and effectively ensuring system security.
[0023] In some optional implementations, the networked domain controller includes multiple gateway interfaces of different types; before detecting that the IoT device is connected to the gateway interface of the networked domain controller, the method further includes:
[0024] Based on a preset polling frequency, a handshake connection request is sent to the IoT device through multiple different types of gateway interfaces; wherein the type of the gateway interface includes at least one of a universal serial bus interface, a wireless interface, a Bluetooth interface, a near field communication interface, and a magnetic interface;
[0025] After receiving a confirmation response returned by at least one IoT device based on the handshake connection request, a connection is established with at least one IoT device.
[0026] Beneficial effect: The present invention provides various types of gateway interfaces for connection of IoT devices, such as a universal serial bus interface, a wireless interface, a Bluetooth interface, a near-field communication interface, and a magnetic interface, etc., which improves the expansion capability of the IoT gateway and can meet the connection requirements of different devices.
[0027] In some optional embodiments, the method further comprises:
[0028] Determine the vehicle power level and the number of IoT devices connected to the gateway interface;
[0029] When it is detected that the power gear is off, or the number of devices is less than the first number threshold, or no new IoT device is connected to the gateway interface within a preset time, the current polling frequency of the gateway interface is adjusted to the first polling frequency;
[0030] When it is detected that the power gear is on, and the number of devices is not less than the first number threshold and not greater than the second number threshold, the current polling frequency of the gateway interface is adjusted to the second polling frequency; wherein the second polling frequency is greater than the first polling frequency;
[0031] When it is detected that the power gear is on and the number of devices is greater than the second number threshold, the current polling frequency of the gateway interface is adjusted to a third polling frequency; wherein the third polling frequency is greater than the second polling frequency.
[0032] Beneficial effect: The present invention switches the working mode of the Internet of Things gateway in combination with the number of devices currently connected to the Internet of Things and the power gear of the vehicle. When the number of devices is small and the power is not supplied, the Internet of Things gateway is controlled to work at a lower polling frequency, thereby reducing energy consumption; when the number of devices is large and the power is supplied, the Internet of Things gateway is controlled to work at a higher polling frequency, thereby reducing the interaction delay between the Internet of Things devices and the entire vehicle.
[0033] In some optional embodiments, the method further comprises:
[0034] Record bus transmission data sent by different types of functional controllers of the vehicle according to a preset data format, split and package the bus transmission data based on a preset data volume, and obtain multiple storage files;
[0035] Store multiple storage files and record the storage time of each storage file;
[0036] When it is detected that there is an overdue storage file whose storage time exceeds the preset storage time in the storage file, the overdue storage file is deleted.
[0037] Beneficial effects: The present invention packages bus transmission data and stores it in a corresponding format, making it easy to quickly obtain data generated by different vehicle controllers, thereby providing data support for vehicle fault analysis. In addition, overdue storage files that exceed the preset storage time are cleared in a timely manner, saving storage space.
[0038] In some optional embodiments, the method further comprises:
[0039] Receive data download tasks sent by the cloud;
[0040] Parse the data download task and determine the target storage file requested to be downloaded from the cloud;
[0041] The target storage file is sent to the cloud, so that the cloud sends the target storage file to the user after detecting that the integrity check of the target storage file has passed.
[0042] Beneficial effects: The present invention utilizes the networked domain controller to parse the data download tasks sent from the cloud, pulls the corresponding target storage files and sends them to the cloud, which is convenient for R&D personnel to analyze vehicle faults based on the data in the target storage files, and the implementation cost of data transmission is relatively low.
[0043] In a second aspect, the present invention provides a vehicle control device based on an Internet of Things device, which is applied to a networked domain controller of a vehicle, and the device includes:
[0044] A first processing module is used to obtain device configuration information of the Internet of Things device when it is detected that the Internet of Things device is connected to the gateway interface of the network connection domain controller;
[0045] The second processing module is used to generate multiple standard service interfaces and device registration requests based on the device configuration information, and send the device registration request to the cloud, so that the cloud obtains the vehicle control authority according to the device configuration information in the device registration request and sends the vehicle control authority to the network connection domain controller;
[0046] The third processing module is used to configure the permissions of multiple standard service interfaces based on the vehicle control permissions to obtain the target service interface;
[0047] The fourth processing module is used to use the target service interface to obtain the target control instruction sent by the Internet of Things device under the vehicle control authority, and control the vehicle according to the target control instruction.
[0048] In a third aspect, the present invention provides a vehicle, including a networked domain controller, which executes the vehicle control method based on an Internet of Things device according to the first aspect or any corresponding embodiment thereof.
[0049] In a fourth aspect, 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 vehicle control method based on an Internet of Things device according to the first aspect or any corresponding embodiment thereof.
[0050] Beneficial effects of the present invention:
[0051] The networked domain controller is used to obtain the device configuration information of the IoT device, generate multiple standard service interfaces, and generate a device registration request and send it to the cloud, so that the cloud can obtain the vehicle control authority based on the device configuration information and send it to the networked domain controller. Then, the networked domain controller will configure the permissions of multiple standard service interfaces based on the vehicle control authority, and obtain the target service interface that matches the vehicle control authority of the IoT device. In this way, the IoT device can issue a target control instruction consistent with its authority scope through the target service interface, so that the networked domain controller can reasonably control the vehicle according to the target control instruction, prevent the vehicle from mistakenly executing the unauthorized instructions of certain devices, thereby effectively ensuring the driving safety of the vehicle, and can control the authority of data transmission between the vehicle and the IoT device to ensure data security. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] 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.
[0053] Figure 1 is a flow chart of a vehicle control method based on an Internet of Things device according to an embodiment of the present invention;
[0054] Figure 2 is a schematic diagram of the structure of an electronic and electrical architecture according to an embodiment of the present invention;
[0055] Figure 3 is a schematic diagram of the structure of a drive controller according to an embodiment of the present invention;
[0056] Figure 4 is a schematic diagram of the structure of a networked domain controller according to an embodiment of the present invention;
[0057] Figure 5 is a flow chart of another vehicle control method based on an Internet of Things device according to an embodiment of the present invention;
[0058] Figure 6 This is a schematic diagram of a process for legal verification of an Internet of Things device according to an embodiment of the present invention;
[0059] Figure 7 is a flow chart of another vehicle control method based on an Internet of Things device according to an embodiment of the present invention;
[0060] Figure 8 is a schematic diagram of switching working modes of an Internet of Things gateway according to an embodiment of the present invention;
[0061] Fig. 9 is a schematic diagram of a process for extending a connection of an Internet of Things device according to an embodiment of the present invention;
[0062] Fig.10 is a schematic diagram of a process of data packaging and storage according to an embodiment of the present invention;
[0063] Fig.11 is a schematic diagram of a data package download process according to an embodiment of the present invention;
[0064] Fig.12 is a structural block diagram of a vehicle control device based on an Internet of Things device according to an embodiment of the present invention;
[0065] Fig.13 Schematic diagram of the structure of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION
[0066] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0067] Vehicles are developing from traditional cars to intelligent connected cars, and have expanded from single vehicles to the full ecological interconnection of people, vehicles, computers, and homes. Currently, most vehicles only support interconnection with mobile phones, tablets, etc., and the expandable Internet of Things (IOT) devices are of a single category and small in number. Most IOT devices cannot connect to vehicles, and cannot control the vehicles after connection.
[0068] In addition, with the rapid increase in vehicle functions, occasional problems are also gradually increasing. Data before and after vehicle failures are needed to analyze the problems. Currently, a central gateway is connected to multiple domain controller nodes. The central gateway packages the vehicle data and transmits it to the cockpit 4G module on the cloud via Ethernet or controller area network data protocol (Controller Area Network Flexible Data-rate, CANFD). This solution uses Ethernet, which will result in excessive costs. If CANFD is used, it will result in insufficient bandwidth and cannot meet the requirements.
[0069] Therefore, the embodiment of the present invention provides a vehicle control solution based on IoT devices, supports IoT device expansion and data collection, obtains the vehicle control authority of IoT devices by sending device configuration information of IoT devices to the cloud, thereby generating a target service interface corresponding to the control authority, so that IoT devices can control the vehicle accordingly, which can solve the problem that the expansion connection of IoT devices is single and has poor compatibility and cannot reasonably control the vehicle. And it can transmit various vehicle data to the cloud, reducing the cost of data collection.
[0070] According to an embodiment of the present invention, an embodiment of a vehicle control method based on an Internet of Things device 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.
[0071] In this embodiment, a vehicle control method based on an Internet of Things device is provided, which can be used for a vehicle's networked domain controller. Figure 1 is a flow chart of a vehicle control method based on an Internet of Things device according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0072] Step S101, when it is detected that the IoT device is connected to the gateway interface of the network connection domain controller, the device configuration information of the IoT device is obtained.
[0073] Specifically, the networked domain controller is connected to different types of functional controllers of the vehicle through a multi-channel bus, wherein the functional controller may be an electronic control unit (ECU) such as a power steering controller, a brake controller, a power domain controller, or a controller of a drive controller, an intelligent driving domain controller, an entertainment system controller, etc. In addition, the networked domain controller includes multiple different types of gateway interfaces, and the types of gateway interfaces may be Universal Serial Bus (USB) interfaces, wireless (WIFI) interfaces, Bluetooth (BT) interfaces, Near-Field Communication (NFC) interfaces, and magnetic interfaces, but the present invention is not limited thereto.
[0074] The embodiment of the present invention provides an electronic and electrical architecture that supports the expansion of IOT devices, such as Figure 2As shown, the architecture includes a networked domain controller, an intelligent driving domain controller, a minimum system for the whole vehicle, several extended drive controllers, a cloud service module, and multiple IOT devices. Among them, the networked domain controller and the intelligent driving domain controller are connected using a high-speed data bus, and the multiple extended drive controllers are respectively connected to the networked entertainment domain controller. The networked domain controller and the cloud service module communicate via 4G / 5G wireless. The networked domain controller is connected to the minimum system of the whole vehicle through multiple buses, and each of the above controllers has a built-in chip. It should be noted that the networked domain controller can be an entertainment networked domain controller, which can control the vehicle's audio system, video playback system and other entertainment systems.
[0075] It should be noted that the minimum system of the whole vehicle is to ensure that the vehicle has the minimum controllers included in the X-axis and Y-axis control, which generally include steering power controller, brake controller, power controller, etc.; the cloud service module has the ability to issue instructions, analyze data, store, process vehicle-side data and train large models. It has an HMI interface for human-computer interaction, can issue instructions and tasks, and support file transfer protocols such as HTTP. It can store, analyze and process data uploaded by the vehicle; IOT equipment is an external device independent of the vehicle, with the ability to communicate with the outside, with its own energy device or without an energy device, and provided with electricity by an external energy device, such as: smart fragrance, Bluetooth speakers, etc.
[0076] In addition, the intelligent driving domain controller has powerful AI processing capabilities and NPU computing power, and can receive data from sensors such as cameras and radars, and restore the scene modeling of the external environment based on the image information collected by the camera and the point cloud information of the millimeter-wave radar, provide decision support for the assisted driving system, output steering, braking, vehicle control, acceleration and deceleration and other control instructions, and control and plan the vehicle's driving according to the scene and preset conditions. In addition, the intelligent driving domain controller is connected to the networked domain controller system through Ethernet to realize information interaction inside and outside the car.
[0077] In some optional embodiments, such as Figure 3 As shown in the figure, the extended drive controller includes multiple I / O drives, power supplies, and power supply interfaces. The drive controller can send out radio frequency signals and relay control instructions to drive various components and execution modules, including but not limited to windows, door locks, air conditioners, headlights, doors, etc., and supply power to the above modules. The extended drive controller is connected to the networked domain controller through the bus interface for information transmission, and the number of drive controllers can be increased or decreased as needed.
[0078] Specifically, the networked domain controller is the core node for expanding the connection of IoT devices. The networked domain controller integrates traditional gateway functions, such as Figure 4As shown, the network domain controller includes: several wired low-speed transceivers (used to connect with the expansion drive controller and the minimum system of the whole vehicle), the Internet of Things gateway, the microcontroller processing module (Microcontroller Unit, MCU), the main control module (System on a ship, SOC), the network module, the power module and the storage module.
[0079] In some optional embodiments, see again Figure 4 The microcontroller processing module MCU has multiple CAN and LIN (high-speed and low-speed) interfaces, which are connected to the vehicle's minimum system and expansion drive controller. At the same time, the microcontroller processing module MCU has several drive interfaces to connect the enable interface of the internal module and control the working mode of the internal module. In addition, the microcontroller processing module MCU has the ability to route data in the vehicle and process signal logic, ensuring low latency and high security of driving data transmission.
[0080] In some optional embodiments, see again Figure 4 The IoT gateway has expansion interfaces such as USB, WIFI, Bluetooth, NFC and magnetic interfaces for the expansion of IOT devices. The IoT gateway can discover and manage the device list of Internet devices connected to the vehicle. It can also convert multiple protocol communication protocols into a unified standard service interface for the vehicle to call the interface of the IOT device or the IOT device to call the vehicle control interface. At the same time, the IoT gateway also has a high-speed bus to connect to the main control module SOC.
[0081] In some optional embodiments, see again Figure 4 The main control module SOC is the core processing unit of the network domain controller. It integrates a high-performance graphics processing unit to handle complex graphical interfaces. The main control module SOC allows multiple operating systems such as QNX, Linux and Android to run on the same hardware platform. In addition, the main control module SOC has several high-bandwidth data interfaces for connecting storage modules, power modules, Ethernet switching modules, network modules, etc.
[0082] In some optional embodiments, see again Figure 4 The networking module has a high-bandwidth spectrum antenna and a high-speed bus interface, where the antenna is used to connect to the cloud service module, and the high-speed bus interface is used to connect to the main control module SOC.
[0083] In some optional embodiments, see again Figure 4The power module has multiple power supply output interfaces, high voltage protection function and DC-to-DC module, which provide low-voltage power supply and redundant power supply for the core chip inside the networked domain controller. Among them, the DC-to-DC module can convert DC 12V voltage into 5-7V and 2.5-3.5V voltage.
[0084] Step S102, based on the device configuration information, generate multiple standard service interfaces and device registration requests, and send the device registration requests to the cloud, so that the cloud obtains the vehicle control authority according to the device configuration information in the device registration request and sends the vehicle control authority to the networked domain controller.
[0085] It should be noted that in the vehicle system, the service interface is a channel for realizing interaction between different functional modules. The standard service interface is established in accordance with certain specifications and standards. Each interface undertakes specific service functions and corresponds to different vehicle-related services, such as vehicle information query interface, remote start interface, air conditioning control interface, etc. These standard service interfaces are generated according to the specific functions of the equipment.
[0086] Specifically, the network domain controller will convert the communication protocol, control function and other device configuration information of the IOT device to obtain multiple standard service interfaces for vehicles to call these interfaces for information transmission or for IOT devices to call these interfaces to control the vehicle. Among them, the IoT gateway is the key hub connecting IoT devices and the cloud, which can realize the conversion between different protocols and the pre-processing and forwarding of data. In this process, the IoT gateway will convert various information of the connected IoT devices (such as device ID number, device descriptor, device configuration information) into standard service interfaces, which helps to achieve unified management and interoperability of devices.
[0087] For example, the device ID is a unique identifier for each IoT device. For example, an IoT device may have a device ID assigned by another network. The IoT gateway will map this device ID to a common identification format, such as using a uniform resource identifier (URI) as the device identification part of the standard service interface. In this way, the upper-layer application can uniquely identify the IoT device through this URI.
[0088] Exemplarily, the device descriptor contains various attribute information of the device, such as device type (such as smart speakers), device functions (such as playback functions), etc. The IoT gateway will parse the original descriptor of the device based on different protocol formats and convert it into a common description format. Taking smart speakers as an example, the original descriptor may be a text file containing functional description information of the smart speakers. The IoT gateway will extract this information, reorganize it in a standard format, and generate a new description file. This file can be provided to upper-level applications through standard service interfaces, so that upper-level applications can clearly understand the functional attributes of the corresponding IoT devices.
[0089] Exemplarily, the device configuration information includes the device's network configuration (such as IP address, subnet mask, etc.), working mode configuration (such as smart speaker on, off, volume setting, playback content setting), etc. The IoT gateway will integrate and convert these configuration information and provide them to upper-level applications through standard service interfaces so that upper-level applications can query and modify the device's network configuration and working mode configuration. Taking smart speakers as an example, the IoT gateway generates corresponding function call interfaces based on the smart speaker's on, off, volume setting, playback content setting and other functional configuration information and provides them to upper-level applications as standard service interfaces, so that vehicles can call these interfaces for information transmission, or smart speakers can call these interfaces to use vehicle-related functions. For example, smart speakers can query the vehicle's local storage of music and play it, and the vehicle transmits the playback content to the smart speaker through the corresponding interface.
[0090] Specifically, after the networked domain controller and the IOT device establish a connection, they can transmit information. The networked domain controller controls the Internet of Things gateway to request the device ID number, device descriptor and device configuration information of the IOT device. After receiving the request, the IOT device replies with the device ID number, device descriptor and device configuration information. The Internet of Things gateway converts the above information into a standard service interface to apply to the main control module SOC for registration and vehicle control authority of the IOT device.
[0091] Further, see again Figure 4 After receiving the permission call request, the main control module SOC compares the device ID number of the IOT device with the devices in the registry stored in itself to determine whether the IOT device is in the registry. If the IOT device is a device that has been connected and registered before, it will directly work according to the vehicle control authority configured last time; if the IOT device does not exist in the registry, the main control module SOC sends a device registration request to the cloud to obtain the vehicle control authority of the IOT device from the cloud.
[0092] Step S103: performing authority configuration on multiple standard service interfaces based on the vehicle control authority to obtain a target service interface.
[0093] Existing technologies often only allow users to perform simple controls on vehicles through mobile phones, tablets, etc., such as opening car doors, turning on air conditioning, etc. The types of IoT devices that can be connected are limited and have poor compatibility. It is impossible to achieve the connection between other IoT devices such as smart speakers, computers and vehicles. Even if they can be connected, they can often only achieve vehicle control of IoT devices, but cannot achieve reasonable control of IoT devices over corresponding functions of the vehicle.
[0094] This application establishes a connection with different types of IoT devices through the gateway interface of the IoT gateway, preliminarily solves the problem of poor compatibility of related technical equipment types, and converts the device configuration information of the IoT device into a standard service interface for the IoT device to control the corresponding functions of the vehicle. However, since the functions of the standard service interface are not universal for all devices, different types of IoT devices can control different vehicle functions, and the same type of IoT device can control different vehicle functions due to differences in device ID, user, etc. For example, users are allowed to query local stored music through smart speakers, but they cannot query local address books through smart speakers to leak the owner's privacy; for example, users are allowed to control vehicle doors, air conditioners, etc. through mobile phones, or users are allowed to control the brake controller of unmanned vehicles through special measuring equipment, but smart speakers are never allowed to obtain these vehicle control permissions, otherwise it will cause serious harm to the vehicle body and the safety of drivers and passengers.
[0095] Therefore, it is necessary to set permissions for these standard service interfaces, set which devices can use the corresponding functions, or set which functions of the standard service interfaces are open to which devices, so as to obtain a target service interface with reasonable permission settings, so that IoT devices can reasonably control vehicle-related functions, thereby further solving compatibility issues after IoT devices are connected to vehicles and vehicle control safety issues.
[0096] Specifically, after receiving the vehicle control authority issued by the cloud, the networked domain controller will perform corresponding authority configuration operations such as function disabling / enabling and role authority allocation on the generated standard service interface, and obtain the target service interface that meets the vehicle control authority of the IOT device, so that the IOT device can control the vehicle within the scope of authority.
[0097] Step S104, using the target service interface to obtain the target control instruction sent by the Internet of Things device under the vehicle control authority, and controlling the vehicle according to the target control instruction.
[0098] Specifically, the IOT device sends a series of target control instructions to the networked domain controller by calling the target service interface. After receiving these target control instructions, the networked domain controller controls the vehicle in accordance with the vehicle control authority. In this way, the control scope of the target control instructions will not exceed the authority scope of the IOT device, preventing the vehicle from mistakenly executing unauthorized instructions of certain IOT devices, thereby effectively ensuring the vehicle driving safety, and performing authority control on data transmission between the vehicle and the IOT device to ensure data security.
[0099] The vehicle control method based on the Internet of Things device provided in this embodiment uses the networked domain controller to obtain the device configuration information of the Internet of Things device, generates multiple standard service interfaces, and generates a device registration request and sends it to the cloud, so that the cloud obtains the vehicle control authority based on the device configuration information and sends it to the networked domain controller. Then, the networked domain controller will configure the permissions of multiple standard service interfaces based on the vehicle control authority, and obtain the target service interface that is consistent with the vehicle control authority of the Internet of Things device, so that the Internet of Things device can issue a target control instruction consistent with its authority scope through the target service interface, so that the networked domain controller can reasonably control the vehicle according to the target control instruction, prevent the vehicle from mistakenly executing the unauthorized instructions of certain devices, thereby effectively ensuring the driving safety of the vehicle, and can perform permission control on the data transmission between the vehicle and the Internet of Things device to ensure data security.
[0100] In this embodiment, a vehicle control method based on an Internet of Things device is provided, which can be used for a vehicle's networked domain controller. Figure 5 is a flow chart of a vehicle control method based on an Internet of Things device according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:
[0101] Step S501: When it is detected that the IoT device is connected to the gateway interface of the network connection domain controller, the device configuration information of the IoT device is obtained. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.
[0102] Step S502, based on the device configuration information, generate multiple standard service interfaces and device registration requests, and send the device registration requests to the cloud, so that the cloud obtains the vehicle control authority according to the device configuration information in the device registration request and sends the vehicle control authority to the networked domain controller.
[0103] Specifically, after sending the device registration request to the cloud, the networked domain controller receives the state random number sent by the cloud, and sends the state random number to the IoT device, wherein the state random number is generated by the cloud after receiving the device registration request. Then, the networked domain controller receives the first calculation result returned by the IoT device based on the state random number, and sends the first calculation result to the cloud, so that after the cloud detects that the second calculation result stored in itself is consistent with the first calculation result, it determines the permission level of the IoT device according to the device configuration information, and obtains the vehicle control permission corresponding to the permission level through query.
[0104] In some optional implementations, if the IOT device has not been registered before, the main control module SOC of the network domain controller will initiate a registration and authentication process to the cloud. The registration and authentication process is as follows: Figure 6 As shown, the main control module of the networked domain controller sends a device registration request to the cloud service module, and the cloud service module sends a seed (16-bit random number). The Internet of Things gateway of the networked domain controller forwards the sent seed to the IOT device according to the corresponding interface protocol. The IOT device uses the agreed encryption algorithm (the security authentication algorithm specified by the car manufacturer built into the IOT device) to calculate the seed, and returns the first calculation result obtained to the Internet of Things gateway, and the Internet of Things gateway sends the first calculation result to the cloud service module. The cloud service module checks the first calculation result calculated by the IOT device with the second calculation result calculated by itself. If they are consistent, the verification is passed. The cloud queries the permission level corresponding to the permission according to the type of the connected IOT device, grants the IOT device the vehicle control permission according to the permission agreed by the permission level, and sends the IOT device's vehicle control permission list to the networked domain controller. At the same time, if they are consistent, the verification is passed, and the main control module SOC will assign an address IP to the legal IOT device.
[0105] The present invention uses the networked domain controller to request device registration from the cloud, and compares the first calculation result obtained by the IoT device based on the state random number sent by the cloud with the second calculation result of the cloud to verify the legitimacy of the connected IoT device. After the device legitimacy verification is passed, the cloud determines the vehicle control authority of the IoT device according to the device configuration information and sends it to the networked domain controller, preventing the erroneous allocation of authority to illegal devices, and effectively ensuring the security of the system.
[0106] Step S503: Based on the vehicle control authority, authority configuration is performed on multiple standard service interfaces to obtain a target service interface.
[0107] Specifically, the above step S503 includes:
[0108] Step S5031, based on the vehicle control authority, determine the interface authority of the Internet of Things device.
[0109] Specifically, it is necessary to clarify the scope of vehicle control permissions of IoT devices (such as general IoT devices, professional IoT devices, and IoT devices for maintenance), determine which operations can be performed and which cannot, and thus determine the operating permissions for each standard service interface for accessing IoT devices.
[0110] For example, some general IoT devices may be configured with permission to use interfaces such as vehicle information query and remote start. However, for some interfaces involving in-depth vehicle maintenance and debugging, such as engine parameter adjustment interface and driving domain controller parameter adjustment interface, the general IoT devices will not be granted corresponding permissions, but will be limited to specific IoT devices.
[0111] Step S5032: Based on the interface authority of the IoT device, the role information and authority information of each standard service interface are configured to obtain the target service interface corresponding to the IoT device.
[0112] Specifically, after obtaining the interface permissions of the IoT device to each standard service interface, the role information of the IoT device is added to the corresponding standard service interface, and the corresponding permission information is bound to the role information, such as some service interfaces prohibit the use of the IoT device, some service interfaces only allow the IoT device to query, and some service interfaces allow the IoT device to perform deep control, etc., so as to obtain the target service interface. After the above permission configuration process based on vehicle control permissions, a specific IoT device can legally and effectively operate within the scope of its vehicle control permissions by calling the target service interface.
[0113] The present invention determines the interface authority of each standard service interface for accessing the Internet of Things device according to the vehicle control authority range possessed by the Internet of Things device, and then adds the role information of the Internet of Things device to the corresponding standard service interface and binds the corresponding authority information to obtain the target service interface, so that the specific Internet of Things device can legally and effectively operate within the vehicle control authority range possessed by it by calling the target service interface, thereby realizing the reasonable control of the vehicle by the Internet of Things device and effectively ensuring driving safety.
[0114] Step S504: using the target service interface to obtain the target control instruction sent by the IoT device under the vehicle control authority, and controlling the vehicle according to the target control instruction.
[0115] Specifically, the above step S504 includes:
[0116] Step S5041, using the target service interface to obtain the target control instruction sent by the Internet of Things device under the vehicle control authority.
[0117] Specifically, when the IoT device calls the target service interface, since the target service interface has configured the interface permissions of the IoT device accordingly, the instructions issued by the IoT device through these target service interfaces are within the scope of its vehicle control permissions and are consistent with the permission level of the IoT device.
[0118] Step S5042, determining the target function controller and target operation corresponding to the target control instruction.
[0119] Specifically, the function controller can be an electronic control unit such as a power steering controller and a brake controller, a drive controller, a driving domain controller, an audio controller, etc., which parses the target control instructions to clarify the target function controller that the IOT device wants to control and the target operation it wants to perform.
[0120] Step S5043: sending the target operation to the target function controller so that the target function controller executes the target operation and controls the vehicle accordingly.
[0121] Specifically, the networked domain controller will send the target operation to the corresponding target function controller through bus, wireless, etc. For example, when conducting a collision test on a vehicle, it is necessary to emergency control the vehicle's brakes. The emergency braking command can be sent to the vehicle's networked domain controller through a specific IoT test device, and then the networked domain controller sends the emergency braking command to the brake controller to control the vehicle to stop. For example, for some more common IoT devices such as smart speakers, their vehicle information query interface permissions can be granted to query some audio information stored locally in the vehicle and play it.
[0122] In an embodiment of the present invention, the Internet of Things device sends a target control instruction within the scope of its vehicle control authority through a target service interface. The networked domain controller parses the target control instruction, clarifies the target function controller that the Internet of Things device wants to control and the target operation it wants to perform, and controls the vehicle accordingly to meet the user's reasonable usage needs within the scope of authority and ensure vehicle safety and information security.
[0123] In this embodiment, a vehicle control method based on an Internet of Things device is provided, which can be used for a vehicle's networked domain controller. Figure 7 is a flow chart of a vehicle control method based on an Internet of Things device according to an embodiment of the present invention. Figure 7 As shown, the process includes the following steps:
[0124] Step S701: Based on a preset polling frequency, a handshake connection request is sent to an IoT device through multiple different types of gateway interfaces.
[0125] Specifically, when the vehicle is in normal working state and no IOT device is connected to the network domain controller, the IoT gateway is in low-power standby state, and the IoT gateway polls the peripheral interface at a fixed preset polling frequency, which can be configured through the alignment of the main control module. It should be noted that when the IoT gateway is in low-power mode, it polls the peripheral interface at a relatively slow first polling frequency, and only part of the circuit inside the IoT gateway module is running, thereby reducing energy consumption.
[0126] Step S702: after receiving a confirmation reply returned by at least one IoT device based on the handshake connection request, establishing a connection with at least one IoT device.
[0127] Specifically, when the IoT gateway polls at least one peripheral interface with an IoT device connected (a confirmation reply is made to the handshake connection request sent by the IoT gateway), the IoT gateway switches to a normal working state, at which time the IoT gateway and the IoT device establish a connection, and both parties transmit information according to the standard protocol of the interface. For example, if the IoT device is connected via a USB interface, information is transmitted according to the standard USB protocol. The types of gateway interfaces include at least one of a universal serial bus interface, a wireless interface, a Bluetooth interface, a near field communication interface, and a magnetic interface.
[0128] It should be noted that when the IoT gateway is in normal mode, it polls the peripheral interface at a second polling frequency that is greater than the first polling frequency. At this time, the gateway supports full functions and the chip is in normal power consumption.
[0129] The present invention provides various types of gateway interfaces for connection of IoT devices, such as a universal serial bus interface, a wireless interface, a Bluetooth interface, a near-field communication interface, and a magnetic interface, thereby improving the expansion capability of the IoT gateway and being able to meet the connection requirements of different devices.
[0130] Furthermore, the IoT gateway determines the vehicle power level and the number of IoT devices connected to the gateway interface, and switches the working mode according to the power level and the number of devices, as follows:
[0131] 1) When it is detected that the power gear is off, or the number of devices is less than a first number threshold, or no new IoT device is connected to the gateway interface within a preset time, the current polling frequency of the gateway interface is adjusted to the first polling frequency.
[0132] 2) When it is detected that the power gear is on and the number of devices is not less than the first number threshold and not greater than the second number threshold, the current polling frequency of the gateway interface is adjusted to the second polling frequency; wherein the second polling frequency is greater than the first polling frequency;
[0133] 3) When it is detected that the power gear is on and the number of devices is greater than the second number threshold, the current polling frequency of the gateway interface is adjusted to a third polling frequency; wherein the third polling frequency is greater than the second polling frequency.
[0134] In some optional embodiments, such as Figure 8 As shown in the figure, when the vehicle is in OFF gear, the IoT gateway is in low power consumption mode. There are two jump states: one is when the vehicle power gear is in ON gear and the external connection is 1≤IOT device≤3, the gateway switches to normal working mode; the other is when the vehicle power gear is in ON gear and the external connection is ≥3 IOT devices, the gateway switches to fast mode. It should be noted that in fast mode, the third polling frequency of the peripheral interface is twice as high as the second polling frequency in normal mode to reduce the interaction delay between IOT devices and the vehicle.
[0135] In some optional embodiments, see again Figure 8 The IoT gateway is in fast mode. When the number of connected IOT devices is 1≤IOT devices≤3, it will jump to normal working state. When no device is connected for 5 minutes or the vehicle is in OFF state, it will jump to low power consumption mode.
[0136] In some optional embodiments, see again Figure 8 , the IoT gateway is in normal mode. When the number of IoT devices is ≥3, it jumps to the fast state. When there is no device connected for 5 minutes or the vehicle is in OFF mode, it jumps to the low power mode.
[0137] The present invention switches the working mode of the Internet of Things gateway in combination with the number of devices currently connected to the Internet of Things device and the power gear of the vehicle. When the number of devices is small and the power supply is not supplied, the Internet of Things gateway is controlled to work at a lower polling frequency, thereby reducing energy consumption; when the number of devices is large and the power supply is supplied, the Internet of Things gateway is controlled to work at a higher polling frequency, thereby reducing the interaction delay between the Internet of Things device and the whole vehicle.
[0138] Step S703: When it is detected that the IoT device is connected to the gateway interface of the network connection domain controller, the device configuration information of the IoT device is obtained. Figure 5 The specific description of step S501 in the illustrated embodiment will not be repeated here.
[0139] Step S704: Generate multiple standard service interfaces and device registration requests based on the device configuration information, and send the device registration request to the cloud, so that the cloud obtains the vehicle control authority according to the device configuration information in the device registration request and sends the vehicle control authority to the network domain controller. Figure 5 The specific description of step S502 in the illustrated embodiment will not be repeated here.
[0140] Step S705: Based on the vehicle control authority, multiple standard service interfaces are configured with authority to obtain the target service interface. Figure 5 The specific description of step S503 in the illustrated embodiment will not be repeated here.
[0141] Step S706, using the target service interface to obtain the target control instruction sent by the IoT device under the vehicle control authority, and controlling the vehicle according to the target control instruction. Figure 5 The specific description of step S504 in the illustrated embodiment will not be repeated here.
[0142] Step S707 , recording the bus transmission data sent by different types of functional controllers of the vehicle according to a preset data format, splitting and packaging the bus transmission data based on a preset data volume, and obtaining multiple storage files.
[0143] Specifically, when the vehicle is in the awake state and the network domain controller is in normal operation, it detects bus data. The microcontroller processing module MCU in the network controller records the data on each bus, converts it into a specific data format according to the timestamp, CAN channel number, frame ID, DLC length, and data content, and puts it into the data cache of the chip. When the bus is dormant and there is no data after the vehicle is turned off, the recording stops. The microcontroller processing module MCU then converts the data from the cache into the bus data format and transmits it to the main control module SOC.
[0144] Furthermore, the main control module SOC packages the received data to obtain multiple storage files. It should be noted that the bus transmission data is packaged into files in two situations: one is when the data volume is equal to 1000MB and stored as one file; the other is when there is no data on the bus after the vehicle is turned off, even if the file is less than 1000MB, it is recorded as one file.
[0145] Step S708, storing multiple storage files and recording the storage time of each storage file.
[0146] Specifically, the main control module SOC stores the storage file in the DDR storage module of the networked domain controller, where the storage file name can be "record start time-record end time", for example, the storage file name is "202405261531-202405261632", and records the storage time of each storage file in the storage module.
[0147] Step S709: when it is detected that there is an overdue storage file in the storage file whose storage time exceeds the preset storage time, the overdue storage file is deleted.
[0148] Specifically, if the file storage time exceeds the preset storage time, for example, 7 days, the corresponding overdue storage file will be deleted. During the deletion period, it can be exported through the USB interface reserved by the networked domain controller.
[0149] The present invention packages bus transmission data and stores them in a corresponding format, so as to facilitate rapid acquisition of data generated by different vehicle controllers, thereby providing data support for vehicle fault analysis. In addition, overdue storage files that exceed the preset storage time are cleared in time, saving storage space.
[0150] Step S710, receiving a data download task sent by the cloud.
[0151] Specifically, engineers or after-sales personnel can create data download tasks in the cloud service module interface. The data download tasks include identification information such as data time period, vehicle configuration / series / VIN code, etc. The cloud will send the data download tasks to different vehicles and the vehicle's network domain controller based on the identification information, wake up the network module, and wake up the microprocessor control module MCU. The MCU then wakes up the main control module SOC, and the main control module SOC parses the data download task.
[0152] Step S711, analyzing the data download task to determine the target storage file requested to be downloaded from the cloud.
[0153] Specifically, the main control module SOC parses the data download task and pulls the corresponding file from the storage module. If the requested time range is within one file, the entire file is uploaded. If the requested time spans two or more files, the corresponding files are uploaded through the file transfer protocol.
[0154] Step S712, sending the target storage file to the cloud, so that the cloud sends the target storage file to the user after detecting that the integrity check of the target storage file has passed.
[0155] Specifically, the network connection module uploads the corresponding target storage file using the HTTP protocol. After receiving the file, the cloud service module performs an integrity check on it. If the check fails, it will be retransmitted. If the check succeeds, the task is completed and the corresponding file will be sent to engineers or after-sales personnel to analyze the vehicle failure.
[0156] The present invention utilizes the networked domain controller to parse the data download tasks sent from the cloud, pulls the corresponding target storage files and sends them to the cloud, which is convenient for R&D personnel to analyze vehicle faults based on the data in the target storage files, and the implementation cost of data transmission is relatively low.
[0157] The vehicle control solution based on the Internet of Things device of the present invention is described in detail below with reference to a specific application example.
[0158] like Fig. 9 As shown in the figure, this application example provides an IoT device expansion connection process, as follows:
[0159] Step a1: The network domain controller is in normal working state, and the IoT gateway polls the peripheral interface at a fixed frequency in low power mode.
[0160] Step a2: The IoT gateway polls and finds that there is an IoT device on the peripheral interface, switches to normal working mode and performs handshake confirmation with the IoT device.
[0161] Step a3, the IoT gateway and the IoT device shake hands successfully, requesting the device ID number, device descriptor, and device configuration information of the IoT device, and passing the information to the main control module to request registration and permissions.
[0162] Step a4: After receiving the registration request, the main control module compares it with the device information in the registration table to determine whether the device is in the registration table. If not, a registration authentication is initiated.
[0163] In step a5, the cloud service module searches the table to find the corresponding permission level according to the type of access device, and grants the IOT device the vehicle control permission according to the permission agreed in the list.
[0164] Step a6: The main control module requests verification from the cloud, and the cloud sends a random number (seed). The IoT device calculates the seed using the agreed encryption algorithm and returns the calculation result to the cloud service module for security authentication.
[0165] Step a7: If the results are consistent, the verification is successful, and the device is determined to be a legitimate device. The permission corresponding level list is queried according to the type of access device, and the vehicle control permission of the IoT device is granted according to the permission agreed in the list, and a vehicle control permission list is generated.
[0166] like Fig.10 As shown, this application example provides a data packaging storage process, which is as follows:
[0167] Step b1, the vehicle is awakened, the entertainment network domain controller starts to work normally, and the MCU packages the CAN data of each bus in sequence and temporarily puts it into the cache.
[0168] Step b2, sending the data in the cache to the SOC via the connection bus.
[0169] Step b3, the SOC puts the data into the storage area, and uses the data recording start time and end time as the file name.
[0170] Step b4, when the data exceeds 1000M continuously, it is stored as a file; when the whole vehicle is OFF, there is no data on the bus and recording is stopped. At this time, it is stored as a file regardless of whether it is full of 1000M.
[0171] Step b5: The saved data is recorded for one week. If the data exceeds one week, it will be erased in chronological order.
[0172] like Fig.11 As shown, this application example provides a data package download process, which is as follows:
[0173] Step c1, the cloud service module creates a data download task (including the time period for pulling data and the vehicle range, which can be based on the vehicle model and configuration VIN) and sends it.
[0174] Step c2, the TSP wireless network is decomposed according to the task and sent to the designated vehicle. The network module in the network domain controller wakes up the MCU, the MCU wakes up the SOC, the SOC parses the data download task and requests the SOC to call the storage file in the storage module.
[0175] Step c3, SOC uploads the stored file according to the requested time period. If the requested time range is within one file, the entire file is uploaded. If the requested time spans 2 or more times, all the included files are uploaded via the file transfer protocol.
[0176] Step c4, the cloud service module receives the stored file and performs integrity verification. If the verification is qualified, the single vehicle is uploaded successfully. After all vehicles are uploaded, this task is completed.
[0177] In this embodiment, a vehicle control device based on an Internet of Things device is also provided, which 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.
[0178] This embodiment provides a vehicle control device based on an Internet of Things device, such as Fig.12 As shown, including:
[0179] The first processing module 1201 is used to obtain device configuration information of the Internet of Things device when it is detected that the Internet of Things device is connected to the gateway interface of the network connection domain controller;
[0180] The second processing module 1202 is used to generate multiple standard service interfaces and device registration requests based on the device configuration information, and send the device registration request to the cloud, so that the cloud obtains the vehicle control authority according to the device configuration information in the device registration request and sends the vehicle control authority to the network connection domain controller;
[0181] The third processing module 1203 is used to configure the permissions of multiple standard service interfaces based on the vehicle control permissions to obtain the target service interface;
[0182] The fourth processing module 1204 is used to obtain the target control instruction sent by the Internet of Things device under the vehicle control authority by using the target service interface, and control the vehicle according to the target control instruction.
[0183] In some optional implementations, the networked domain controller includes multiple gateway interfaces of different types; the device is also used for:
[0184] Based on a preset polling frequency, a handshake connection request is sent to the IoT device through multiple different types of gateway interfaces; wherein the type of the gateway interface includes at least one of a universal serial bus interface, a wireless interface, a Bluetooth interface, a near field communication interface, and a magnetic interface;
[0185] After receiving a confirmation response returned by at least one IoT device based on the handshake connection request, a connection is established with at least one IoT device.
[0186] In some optional embodiments, the device is also used for:
[0187] Determine the vehicle power level and the number of IoT devices connected to the gateway interface;
[0188] When it is detected that the power gear is off, or the number of devices is less than the first number threshold, or no new IoT device is connected to the gateway interface within a preset time, the current polling frequency of the gateway interface is adjusted to the first polling frequency;
[0189] When it is detected that the power gear is on, and the number of devices is not less than the first number threshold and not greater than the second number threshold, the current polling frequency of the gateway interface is adjusted to the second polling frequency; wherein the second polling frequency is greater than the first polling frequency;
[0190] When it is detected that the power gear is on and the number of devices is greater than the second number threshold, the current polling frequency of the gateway interface is adjusted to a third polling frequency; wherein the third polling frequency is greater than the second polling frequency.
[0191] In some optional implementations, after sending the device registration request to the cloud, the apparatus is further configured to:
[0192] Receive the state random number sent by the cloud, and send the state random number to the IoT device; wherein the state random number is generated by the cloud after receiving the device registration request;
[0193] Receive the first calculation result returned by the IoT device based on the state random number, and send the first calculation result to the cloud, so that after the cloud detects that the second calculation result stored in itself is consistent with the first calculation result, it determines the authority level of the IoT device according to the device configuration information, and queries to obtain the vehicle control authority corresponding to the authority level.
[0194] In some optional implementations, the third processing module 1203 is further configured to:
[0195] Determine the interface permissions of IoT devices based on vehicle control permissions;
[0196] Based on the interface permissions of the IoT device, the role information and permission information of each standard service interface are configured to obtain the target service interface corresponding to the IoT device.
[0197] In some optional implementations, the networked domain controller is connected to different types of functional controllers of the vehicle via a multi-channel bus; the fourth processing module 1204 is also used for:
[0198] Determine a target function controller and a target operation corresponding to the target control instruction; wherein the function controller includes at least one of an electronic control unit, a drive controller, and a driving domain controller;
[0199] The target operation is sent to the target function controller so that the target function controller executes the target operation and controls the vehicle accordingly.
[0200] In some optional embodiments, the device is also used for:
[0201] Record bus transmission data sent by different types of functional controllers of the vehicle according to a preset data format, split and package the bus transmission data based on a preset data volume, and obtain multiple storage files;
[0202] Store multiple storage files and record the storage time of each storage file;
[0203] When it is detected that there is an overdue storage file whose storage time exceeds the preset storage time in the storage file, the overdue storage file is deleted.
[0204] In some optional embodiments, the device is also used for:
[0205] Receive data download tasks sent by the cloud;
[0206] Parse the data download task and determine the target storage file requested to be downloaded from the cloud;
[0207] The target storage file is sent to the cloud, so that the cloud sends the target storage file to the user after detecting that the integrity check of the target storage file has passed.
[0208] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0209] The vehicle control device based on the Internet of Things device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.
[0210] The embodiment of the present invention further provides a vehicle, such as Fig.13 As shown, the vehicle has a networked domain controller, wherein the networked domain controller has the above Fig.12 The vehicle control device based on IoT devices is shown.
[0211] 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.
[0212] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0213] 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 vehicle control method based on an Internet of Things device, characterized in that: A networked domain controller applied to a vehicle, the method comprising: When it is detected that an IoT device is connected to the gateway interface of the networked domain controller, device configuration information of the IoT device is obtained; Based on the device configuration information, multiple standard service interfaces and device registration requests are generated, and the device registration requests are sent to the cloud, so that the cloud obtains the vehicle control authority according to the device configuration information in the device registration request and sends the vehicle control authority to the networked domain controller; Based on the vehicle control authority, multiple standard service interfaces are configured with authority to obtain a target service interface; The target service interface is used to obtain the target control instruction sent by the Internet of Things device under the vehicle control authority, and the vehicle is controlled according to the target control instruction.
2. The method according to claim 1, characterized in that The step of configuring permissions for multiple standard service interfaces based on the vehicle control permissions to obtain a target service interface includes: Based on the vehicle control authority, determine the interface authority of the Internet of Things device; Based on the interface authority of the Internet of Things device, the role information and authority information of each of the standard service interfaces are configured to obtain the target service interface corresponding to the Internet of Things device.
3. The method according to claim 2, characterized in that The networked domain controller is connected to different types of functional controllers of the vehicle via a multi-channel bus; the vehicle is controlled according to the target control instruction, including: Determining a target function controller and a target operation corresponding to the target control instruction; wherein the function controller includes at least one of an electronic control unit, a drive controller, and a driving domain controller; The target operation is sent to the target function controller so that the target function controller executes the target operation and controls the vehicle accordingly.
4. The method according to any one of claims 1 to 3, characterized in that After sending the device registration request to the cloud, the method further includes: Receive a state random number sent by the cloud, and send the state random number to the IoT device; wherein the state random number is generated by the cloud after receiving the device registration request; Receive the first calculation result returned by the IoT device based on the state random number, and send the first calculation result to the cloud, so that after the cloud detects that the second calculation result stored in itself is consistent with the first calculation result, it determines the authority level of the IoT device according to the device configuration information, and queries to obtain the vehicle control authority corresponding to the authority level.
5. The method according to any one of claims 1 to 3, characterized in that: The networked domain controller includes multiple gateway interfaces of different types; Before detecting that the Internet of Things device is connected to the gateway interface of the networked domain controller, the method further includes: Based on a preset polling frequency, a handshake connection request is sent to the IoT device through a plurality of gateway interfaces of different types; wherein the type of the gateway interface includes at least one of a universal serial bus interface, a wireless interface, a Bluetooth interface, a near field communication interface, and a magnetic interface; After receiving a confirmation reply returned by at least one IoT device based on the handshake connection request, a connection is established with at least one IoT device.
6. The method according to claim 5, characterized in that The method further comprises: Determine the vehicle power level and the number of IoT devices connected to the gateway interface; When it is detected that the power gear is off, or the number of devices is less than a first number threshold, or no new IoT device is connected to the gateway interface within a preset time, the current polling frequency of the gateway interface is adjusted to the first polling frequency; When it is detected that the power gear is on, and the number of devices is not less than the first number threshold and not greater than the second number threshold, adjusting the current polling frequency of the gateway interface to a second polling frequency; wherein the second polling frequency is greater than the first polling frequency; When it is detected that the power gear is on and the number of devices is greater than the second number threshold, the current polling frequency of the gateway interface is adjusted to a third polling frequency; wherein the third polling frequency is greater than the second polling frequency.
7. The method according to claim 3, characterized in that The method further comprises: Record bus transmission data sent by different types of functional controllers of the vehicle according to a preset data format, split and package the bus transmission data based on a preset data volume to obtain multiple storage files; Storing a plurality of the storage files and recording the storage time of each storage file; When it is detected that there is an overdue storage file in the storage file whose storage time exceeds the preset storage time, the overdue storage file is deleted.
8. The method according to claim 7, characterized in that The method further comprises: Receive data download tasks sent by the cloud; Parse the data download task to determine the target storage file requested to be downloaded from the cloud; The target storage file is sent to the cloud, so that the cloud sends the target storage file to the user after detecting that the integrity check of the target storage file has passed.
9. A vehicle control device based on an Internet of Things device, characterized in that: A networked domain controller for a vehicle, the device comprising: A first processing module is used to obtain device configuration information of the Internet of Things device when it is detected that the Internet of Things device is connected to the gateway interface of the networked domain controller; A second processing module is used to generate a plurality of standard service interfaces and device registration requests based on the device configuration information, and send the device registration request to the cloud, so that the cloud obtains the vehicle control authority according to the device configuration information in the device registration request and sends the vehicle control authority to the networked domain controller; A third processing module is used to configure permissions for multiple standard service interfaces based on the vehicle control permissions to obtain a target service interface; The fourth processing module is used to use the target service interface to obtain the target control instruction sent by the Internet of Things device under the vehicle control authority, and control the vehicle according to the target control instruction.
10. A vehicle, characterized in that: It includes a networked domain controller, which executes the vehicle control method based on the Internet of Things device as described in any one of claims 1 to 8.
11. 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 vehicle control method based on an Internet of Things device according to any one of claims 1 to 8.
Citation Information
Patent Citations
Internet-of-Things user information configuration method and device and computer equipment
CN111934899A
Data verification method and device
CN112689982A
Vehicle control method and vehicle control system
CN119299492A
Program update processing
WO2023151440A1
Cited By
Data transmission method and device of 5G edge computing security control gateway module
CN120186723A
A data transmission method and device for a 5G edge computing security control gateway module
CN120186723B
Cement tank transport vehicle tank body control system and method and vehicle
CN121492831A