Vehicle control method and device based on internet of things equipment, vehicle and storage medium

By obtaining IoT device configuration information and authenticating vehicle control permissions through the connected domain controller, the target service interface is generated, solving the problem of unreasonable IoT device control and achieving safe and compatible vehicle control.

CN119906742BActive Publication Date: 2025-10-10CHONGQING CHANGAN AUTOMOBILE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510069331.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-10-10
Estimated Expiration
2045-01-16

AI Technical Summary

Technical Problem

Existing technologies are unable to effectively manage the vehicle control permissions of IoT devices, resulting in unreasonable vehicle control, potential safety hazards, and poor connection compatibility between IoT devices and vehicles.

Method used

The device configuration information of IoT devices is obtained through the networked domain controller, a standard service interface is generated, and vehicle control permissions are obtained through cloud authentication. The target service interface is configured based on the permissions to achieve reasonable vehicle control.

Benefits of technology

It ensures vehicle driving safety and data security, improves the compatibility and control rationality of IoT devices and vehicles, prevents unauthorized commands, and ensures system security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119906742B_ABST
    Figure CN119906742B_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of vehicle Internet of Things, and discloses a vehicle control method and device based on an Internet of Things equipment, a vehicle and a storage medium, wherein the present application acquires equipment configuration information of the Internet of Things equipment by using a network connection area controller, generates a plurality of standard service interfaces, simultaneously generates an equipment registration request and sends it to the cloud, and the cloud obtains control vehicle authority according to the equipment configuration information and sends it to the network connection area controller. Then, the network connection area controller configures authority for the plurality of standard service interfaces based on the control vehicle authority, obtains a target service interface that is consistent with the control vehicle authority, so that the Internet of Things equipment can issue a target control instruction that is consistent with the authority range thereof through the target service interface, so that the network connection area controller controls the vehicle according to the target control instruction, prevents the vehicle from executing an out-of-authority instruction of the equipment by mistake, effectively guarantees the driving safety of the vehicle, can control the authority of data transmission between the vehicle and the Internet of Things equipment, and guarantees data security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle Internet of Things technology, and in particular to a vehicle control method, device, vehicle, and storage medium based on Internet of Things devices. 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 connectivity with mobile phones and tablets, allowing for simple controls like turning on the air conditioner and opening the doors. These controls are limited and incapable of complex vehicle control. Furthermore, most IoT devices are unable to connect to vehicles, and even when connected, they are unable to provide proper control. Failure to strictly manage the control permissions of IoT devices connected to vehicles can potentially damage the vehicle and its 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 existing technology cannot reasonably control the vehicle through 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 vehicle's networked domain controller, the method comprising:

[0006] When it is detected that the IoT device is connected to the gateway interface of the network-connected 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 based on 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 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 simultaneously generate a device registration request and send it to the cloud. This allows the cloud to obtain vehicle control permissions based on the device configuration information and send it to the networked domain controller. The networked domain controller then configures permissions for the multiple standard service interfaces based on the vehicle control permissions, obtaining a target service interface that matches the vehicle control permissions of the IoT device. The IoT device can then issue target control instructions consistent with its permission scope through the target service interface, allowing the networked domain controller to reasonably control the vehicle in accordance with the target control instructions, preventing the vehicle from mistakenly executing unauthorized instructions from certain devices, thereby effectively ensuring vehicle driving safety. Furthermore, the networked domain controller can control the permissions of data transmitted between the vehicle and the IoT device to ensure data security.

[0011] In some optional implementations, permission configuration is performed on multiple standard service interfaces based on 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 based on 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 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 embodiments, the networked domain controller is connected to different types of functional controllers of the vehicle via a multi-channel bus; controlling the vehicle according to the target control instructions includes:

[0016] 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;

[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 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; 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 Effects: This invention utilizes a networked domain controller to request device registration from the cloud. The first calculation result, obtained by the IoT device based on the random state number sent by the cloud, is compared with a second calculation result on the cloud to verify the legitimacy of the connected IoT device. After the device passes the legitimacy verification, the cloud determines the vehicle control permissions of the IoT device based on the device configuration information and sends it to the networked domain controller. This prevents the erroneous assignment of permissions to illegal devices and effectively ensures system security.

[0023] In some optional embodiments, 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 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;

[0025] After receiving a confirmation response returned by at least one IoT device based on the handshake connection request, a connection is established with the at least one IoT device.

[0026] Beneficial effects: The present invention provides multiple types of gateway interfaces for connection of IoT devices, such as universal serial bus interface, wireless interface, Bluetooth interface, near-field communication interface and 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, adjusting the current polling frequency of the gateway interface 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 based on the number of devices currently connected to the Internet of Things and the power level 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 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 to 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 in the storage file whose storage time exceeds the preset storage time, the overdue storage file is deleted.

[0037] Beneficial Effects: By packaging bus-transmitted data and storing it in a corresponding format, the present invention facilitates rapid access to data generated by different vehicle controllers, thereby providing data support for vehicle fault analysis. Furthermore, overdue stored files that have exceeded a preset storage time are promptly cleared, 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 for download on 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 target storage file passes the integrity check.

[0042] Beneficial effects: The present invention utilizes the networked domain controller to parse the data download tasks issued by the cloud, pulls the corresponding target storage files and sends them to the cloud, which facilitates 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 vehicle's networked domain controller, and the device includes:

[0044] The first processing module is configured to obtain device configuration information of the IoT device when detecting that the IoT device is connected to the gateway interface of the network-connected 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 requests to the cloud, so that the cloud obtains the vehicle control permission based on the device configuration information in the device registration request and sends the vehicle control permission to the network domain controller;

[0046] The third processing module is used to configure permissions for multiple standard service interfaces based on vehicle control permissions to obtain a 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 comprising 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 device configuration information of the Internet of Things device is acquired by using the network connection domain controller, a plurality of standard service interfaces are generated, a device registration request is generated and sent to the cloud, so that the cloud obtains the vehicle control permission according to the device configuration information and sends it to the network connection domain controller. Then, the network connection domain controller configures the permission of the plurality of standard service interfaces based on the vehicle control permission, obtains the target service interface consistent with the vehicle control permission of the Internet of Things device, so that the Internet of Things device can issue the target control instruction consistent with the permission range through the target service interface, so that the network connection domain controller controls the vehicle according to the target control instruction, prevents the vehicle from executing the unauthorized instruction of some devices, and effectively guarantees the safety of vehicle driving, and can control the permission of data transmission between the vehicle and the Internet of Things device, and guarantee the data security. BRIEF DESCRIPTION OF DRAWINGS

[0052] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings needed in the specific embodiments or prior art description will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.

[0053] Figure 1 It is a flowchart of a vehicle control method based on an Internet of Things device according to an embodiment of the present application;

[0054] Figure 2 It is a structural schematic diagram of an electronic and electrical architecture according to an embodiment of the present application;

[0055] Figure 3 It is a structural schematic diagram of a drive controller according to an embodiment of the present application;

[0056] Figure 4 It is a structural schematic diagram of a network connection domain controller according to an embodiment of the present application;

[0057] Figure 5 It is a flowchart of another vehicle control method based on an Internet of Things device according to an embodiment of the present application;

[0058] Figure 6 It is a flowchart of a legal verification of an Internet of Things device according to an embodiment of the present application;

[0059] Figure 7 It is a flowchart of another vehicle control method based on an Internet of Things device according to an embodiment of the present application;

[0060] Figure 8 It is a switching schematic diagram of an Internet of Things gateway working mode according to an embodiment of the present application;

[0061] Figure 9 This is a schematic diagram of a process for expanding connections of an IoT device according to an embodiment of the present invention;

[0062] Figure 10 This is a schematic diagram of a data packaging and storage process according to an embodiment of the present invention;

[0063] Figure 11 This is a schematic diagram of a data package download process according to an embodiment of the present invention;

[0064] Figure 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] Figure 13 2 is a schematic structural diagram of a vehicle according to an embodiment of the present invention. DETAILED DESCRIPTION

[0066] To make the purpose, technical solutions, and advantages of the embodiments of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying 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 making creative efforts shall fall within the scope of protection of the present invention.

[0067] Vehicles are evolving from traditional cars to intelligent connected vehicles, and have expanded from single vehicles to the full ecosystem of human-vehicle-machine-home-office interconnection. 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 Flexible Data-rate (CANFD). This solution uses Ethernet, which will result in excessive costs. If CANFD is used, the bandwidth will be insufficient and cannot meet the requirements.

[0069] Therefore, the vehicle control scheme based on the Internet of Things device is provided in the embodiment of the present application, the IOT device expansion and data collection are supported, the control vehicle permission of the IOT device is obtained by sending the device configuration information of the IOT device to the cloud, and the target service interface corresponding to the control permission is generated, so that the IOT device controls the vehicle correspondingly, and the problems of single compatibility and poor control of the IOT device expansion connection and the reasonable control of the vehicle can be solved. And various vehicle data can be transmitted to the cloud, thereby reducing the cost of data collection.

[0070] According to the embodiment of the present application, a vehicle control method based on the Internet of Things device is provided, and it should be noted that the steps shown in the flowchart can be executed in a computer system such as a set of computer executable instructions, and although the 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 the embodiment, a vehicle control method based on the Internet of Things device is provided, which can be used for the network connection domain controller of the vehicle, Figure 1 is a flowchart of the vehicle control method based on the Internet of Things device according to the embodiment of the present application, as Figure 1 shown, the flow includes the following steps:

[0072] In step S101, when it is detected that the Internet of Things device is connected to the gateway interface of the network connection domain controller, the device configuration information of the Internet of Things device is obtained.

[0073] Specifically, the network connection domain controller is connected to different types of function controllers of the vehicle through a multi-bus, wherein the function controller can be an electronic control unit (ECU) such as a steering assist controller, a brake controller, and a power domain controller, and can also be a drive controller, an intelligent driving domain controller, and an entertainment system controller. In addition, the network connection domain controller includes a plurality of different types of gateway interfaces, and the types of gateway interfaces can be a universal serial bus (USB) interface, a wireless (WIFI) interface, a Bluetooth interface (BT) interface, a near field communication (NFC) interface, and a magnetic attraction interface, and the present application is not limited thereto.

[0074] The embodiment of the present application provides an electronic and electrical architecture supporting IOT device expansion, as Figure 2As shown in the figure, the architecture includes a connected domain controller, an intelligent driving domain controller, a minimum vehicle system, several extended drive controllers, a cloud service module, and multiple IOT devices. Among them, the connected domain controller and the intelligent driving domain controller are connected using a high-speed data bus, and the multiple extended drive controllers are connected to the connected entertainment domain controller respectively. The connected domain controller and the cloud service module communicate via 4G / 5G wireless. The connected domain controller is connected to the minimum vehicle system via multiple buses. Each of the above controllers has an embedded chip. It should be noted that the connected domain controller can be an entertainment connected 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 entire vehicle is to ensure that the vehicle has the minimum controllers included in the X-axis and Y-axis control, which generally include the 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 supports file transfer protocols such as HTTP. It can store, analyze, and process data uploaded by the vehicle; IOT devices are external devices independent of the vehicle, with the ability to communicate with the outside world, with their own energy devices or without energy devices and powered by external energy devices, such as smart fragrances, Bluetooth speakers, etc.

[0076] Furthermore, the intelligent driving domain controller boasts powerful AI processing capabilities and NPU computing power. It receives data from sensors such as cameras and radars, and uses camera-collected image information and millimeter-wave radar point cloud information to model and restore the external environment. This provides decision support for the assisted driving system, outputs control commands for steering, braking, vehicle control, acceleration, and deceleration, and controls and plans vehicle movement based on the scenario and preset conditions. Furthermore, the intelligent driving domain controller connects to the networked domain controller system via Ethernet, enabling information exchange between the vehicle and the outside world.

[0077] In some optional embodiments, such as Figure 3 As shown, the extended drive controller includes multiple I / O drivers, power supplies, and power supply interfaces. It can issue RF signals and relay control commands to drive various components and actuator modules, including but not limited to windows, door locks, air conditioning, headlights, doors, and more, while also providing power to these modules. The extended drive controller connects to the networked domain controller via a bus interface for information transmission, and the number of drive controllers can be increased or decreased as needed.

[0078] Specifically, the network domain controller is the core node for expanding the connection of IoT devices. The network domain controller integrates traditional gateway functions, such as Figure 4As shown in the figure, 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 MCU features multiple CAN and LIN (high-speed and low-speed) interfaces for connecting to the vehicle's minimum systems and expansion drive controllers. The MCU also includes several driver interfaces for connecting to the enable interfaces of internal modules and controlling their operating modes. Furthermore, the MCU provides in-vehicle data routing and signal logic processing capabilities, ensuring low latency and high security for data transmission during driving.

[0080] In some optional embodiments, see again Figure 4 The IoT gateway features expansion interfaces such as USB, Wi-Fi, Bluetooth, NFC, and magnetic interfaces for connecting IoT devices. It can discover and manage the device list of connected vehicles' internet-connected devices. It also converts multiple communication protocols into a unified, standard service interface, allowing vehicles to access IoT device interfaces and vice versa. The IoT gateway also features a high-speed bus connection to the main control module's SOC.

[0081] In some optional embodiments, see again Figure 4 The main control module (SOC) is the core processing unit of the networked 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. Furthermore, the main control module (SOC) has several high-bandwidth data interfaces for connecting to storage modules, power modules, Ethernet switching modules, network modules, and more.

[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 output interfaces, high voltage protection function and DC-DC conversion module, which provides low-voltage power supply and redundant power supply for the core chip inside the networked domain controller. Among them, the DC-DC conversion module can convert DC 12V voltage into 5-7V and 2.5-3.5V voltage.

[0084] In step S102, 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.

[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 connected domain controller converts the IoT device's communication protocols, control functions, and other device configuration information to obtain multiple standard service interfaces, which can be used by vehicles to transmit information or by IoT devices to control the vehicle. The IoT gateway is a key hub connecting IoT devices and the cloud, enabling conversion between different protocols and data pre-processing and forwarding. During this process, the IoT gateway converts various information about connected IoT devices (such as device ID numbers, device descriptors, and device configuration information) into standard service interfaces, which helps achieve unified device management and interoperability.

[0087] For example, a 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 maps this device ID to a universal identification format, such as a Uniform Resource Identifier (URI), as the device identification portion of a standard service-based interface. This allows upper-layer applications to uniquely identify the IoT device through this URI.

[0088] For example, the device descriptor contains various attribute information of the device, such as the device type (such as a smart speaker), device function (such as playback function), etc. The IoT gateway will parse the original descriptor of the device based on the format setting of different protocols and convert it into a universal description format. Taking a smart speaker as an example, the original descriptor may be a text file containing the functional description information of the smart speaker. The IoT gateway will extract this information, reorganize it according to the standard format, and generate a new description file. This file can be provided to the upper-level application through the standard service interface, so that the upper-level application can clearly understand the functional attributes of the corresponding IoT device.

[0089] Exemplarily, 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 this configuration information and provide it to upper-layer applications through standard service interfaces so that upper-layer 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 function configuration information such as on, off, volume setting, playback content setting, and provides them to upper-layer applications as standard service interfaces, so that vehicles can call these interfaces for information transmission, or for smart speakers to call these interfaces to use vehicle-related functions. For example, smart speakers can query the vehicle's locally stored 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 last configured vehicle control permission; if the IOT device does not exist in the registry, the main control module SOC will send a device registration request to the cloud to obtain the vehicle control permission of the IOT device from the cloud.

[0092] Step S103 : performing permission configuration on multiple standard service interfaces based on the vehicle control permission 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 and turning on air conditioning. 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 and computers and vehicles. Even if the connection can be achieved, it is often only possible to achieve vehicle control of IoT devices, but not to achieve reasonable control of the corresponding functions of the vehicle by IoT devices.

[0094] This application establishes connections with different types of IoT devices through the gateway interface of the IoT gateway, preliminarily solving the problem of poor compatibility of related technical equipment types, and converting 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 locally stored music through smart speakers, but they cannot query local address books through smart speakers, which will 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 dedicated 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 the permissions of 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 the compatibility issues after the IoT devices are connected to the vehicle and the vehicle control safety issues.

[0096] Specifically, after receiving the vehicle control authority issued by the cloud, the connected domain controller will perform corresponding permission configuration operations such as function disabling / enabling and role permission 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 the authority.

[0097] Step S104: Utilize the target service interface to obtain the target control instruction sent by the IoT device under the vehicle control authority, and control 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 range of the target control instructions will not exceed the authority range of the IOT device, preventing the vehicle from mistakenly executing the unauthorized instructions of certain IOT devices, thereby effectively ensuring the safety of vehicle driving, and performing authority control on data transmission between the vehicle and IOT devices to ensure data security.

[0099] The vehicle control method based on IoT devices provided in this embodiment utilizes a networked domain controller to obtain device configuration information of IoT devices, generate multiple standard service interfaces, and simultaneously generate a device registration request and send it to the cloud. This allows the cloud to obtain vehicle control permissions based on the device configuration information and send the request to the networked domain controller. The networked domain controller then configures permissions for the multiple standard service interfaces based on the vehicle control permissions, obtaining a target service interface that matches the vehicle control permissions of the IoT device. The IoT device can then issue a target control instruction consistent with its permission range through the target service interface, allowing the networked domain controller to properly control the vehicle in accordance with the target control instruction, preventing the vehicle from mistakenly executing unauthorized instructions from certain devices. This effectively ensures vehicle driving safety and enables permission control over data transmission between the vehicle and the IoT 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 network 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 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] In step S502, 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.

[0103] Specifically, after sending a device registration request to the cloud, the connected domain controller receives the state random number sent by the cloud and sends it to the IoT device. The state random number is generated by the cloud after receiving the device registration request. The connected domain controller then receives a first calculation result returned by the IoT device based on the state random number and sends the first calculation result to the cloud. Upon detecting that the second calculation result stored in the cloud is consistent with the first calculation result, the cloud determines the permission level of the IoT device based on the device configuration information and queries for the vehicle control permissions corresponding to that permission level.

[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. The Internet of Things gateway sends the first calculation result to the cloud service module. The cloud service module compares 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 type of the connected IOT device, grants the IOT device the vehicle control permission according to the permission agreed upon 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] This invention uses a networked domain controller to request device registration from the cloud. The first calculation result, obtained by the IoT device based on the random state number sent by the cloud, is compared with a second calculation result on the cloud to verify the legitimacy of the connected IoT device. After the device passes the legitimacy verification, the cloud determines the IoT device's vehicle control permissions based on the device configuration information and sends it to the networked domain controller. This prevents the erroneous assignment of permissions to illegal devices and effectively ensures system security.

[0106] Step S503 : performing permission configuration on multiple standard service interfaces based on the vehicle control permission to obtain a target service interface.

[0107] Specifically, the above step S503 includes:

[0108] Step S5031: Determine the interface authority of the IoT device based on the vehicle control authority.

[0109] Specifically, it is necessary to clarify the scope of vehicle control permissions possessed by 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 permissions 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, 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 an IoT device for each standard service interface, the role information of the IoT device is added to the corresponding standard service interface, and corresponding permission information is bound to the role information. For example, some service interfaces prohibit the IoT device from using, some service interfaces only allow the IoT device to query, and some service interfaces allow the IoT device to perform deep control, etc., thereby obtaining 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 IoT device based on the vehicle control authority range possessed by the IoT device, then adds the role information of the IoT device to the corresponding standard service interface and binds the corresponding authority information to obtain the target service interface, so that the specific IoT 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 IoT device and effectively ensuring driving safety.

[0114] Step S504: Utilize the target service interface to obtain the target control instruction sent by the IoT device under the vehicle control authority, and control the vehicle according to the target control instruction.

[0115] Specifically, the above step S504 includes:

[0116] Step S5041: Utilize the target service interface to obtain the target control instruction sent by the IoT device under the vehicle control authority.

[0117] Specifically, when the IoT device calls the target service interface, since the target service interface has already configured the interface permissions of the IoT device accordingly, the instructions issued by the IoT device through these target service interfaces are all within the scope of its vehicle control permissions and are consistent with the permission level of the IoT device.

[0118] Step S5042: Determine 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: Send 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 the 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, they can be granted permission to access the vehicle information query interface 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 the 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 network 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 operation and no IoT devices are connected to the connected domain controller, the IoT gateway is in a low-power standby state. The IoT gateway polls peripheral interfaces at a fixed, preset polling frequency, which can be configured through master module alignment. It should be noted that when the IoT gateway is in low-power mode, it polls peripheral interfaces at a relatively slow, first polling frequency, and only a portion of the circuitry within the IoT gateway module is operational, thereby reducing energy consumption.

[0126] Step S702: After receiving a confirmation response returned by at least one IoT device based on the handshake connection request, establish a connection with the at least one IoT device.

[0127] Specifically, when the IoT gateway polls and detects that at least one peripheral interface has an IoT device connected (a confirmation response is made to the handshake connection request sent by the IoT gateway), the IoT gateway switches to normal operation. At this 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 transmission will be carried out according to the standard USB protocol. The type of 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.

[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 multiple types of gateway interfaces for connecting IoT devices, such as universal serial bus interface, wireless interface, Bluetooth interface, near-field communication interface, and magnetic interface, which improves the expansion capability of the IoT gateway and can 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 operating mode based on 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, 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;

[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 the OFF position, the IoT gateway operates in low-power mode. At this point, there are two transition states: one is when the vehicle power is in the ON position and the number of externally connected IoT devices is 1≤≤3, the gateway switches to normal operation mode; the other is when the vehicle power is in the ON position and the number of externally connected IoT devices is ≥3, the gateway switches to fast mode. It should be noted that in fast mode, the third polling frequency of the peripheral interface is doubled compared to the second polling frequency in normal mode, reducing 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 position, 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 gear, it jumps to the low power mode.

[0137] The present invention switches the working mode of the IoT gateway based on the number of devices currently connected to the IoT and the power level of the vehicle. When the number of devices is small and the power supply is not working, the IoT 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 working, the IoT gateway is controlled to work at a higher polling frequency, thereby reducing the interaction delay between the IoT devices and the entire vehicle.

[0138] Step S703: When it is detected that the IoT device is connected to the gateway interface of the network-connected domain controller, the device configuration information of the IoT device is obtained. Figure 5 The detailed description of step S501 in the illustrated embodiment will not be repeated here.

[0139] Step S704: Based on the device configuration information, multiple standard service interfaces and device registration requests are generated, and the device registration request is sent to the cloud, so that the cloud obtains the vehicle control authority based on the device configuration information in the device registration request and sends the vehicle control authority to the network domain controller. Figure 5 The detailed 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 to obtain the target service interface. Figure 5 The detailed description of step S503 in the illustrated embodiment will not be repeated here.

[0141] Step S706: Use the target service interface to obtain the target control instruction sent by the IoT device under the vehicle control authority, and control the vehicle according to the target control instruction. Figure 5 The detailed description of step S504 in the illustrated embodiment will not be repeated here.

[0142] Step S707 , recording 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 awake and the connected domain controller is operating normally, it detects bus data. The microcontroller (MCU) in the connected domain controller records the data on each bus and converts it into a specific data format based on timestamp, CAN channel number, frame ID, DLC length, and data content, storing it in the chip's data buffer. Recording stops when the vehicle is turned off and the bus goes into hibernation and no data is available. The MCU then converts the data from the buffer into a bus data format and transmits it to the main control module (SOC).

[0144] Furthermore, the main control module (SOC) packages the received data into multiple storage files. It should be noted that bus transmission data is packaged into files in two situations: one is when the data volume is equal to 1000MB, in which case it is stored as a single file; the other is when the bus has no data after the vehicle is turned off, in which case even if the file is less than 1000MB, it is still recorded as a single file.

[0145] Step S708: Store the multiple storage files and record 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 "recording start time-recording end time", for example, the storage file name is "202405261531-202405261632", and the storage time of each storage file in the storage module is recorded.

[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] By packaging bus-transmitted data and storing it in a corresponding format, the present invention facilitates rapid access to data generated by different vehicle controllers, providing data support for vehicle fault analysis. Furthermore, overdue stored files that have exceeded a preset storage time are promptly cleared, 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: parse 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, all corresponding files are uploaded through the file transfer protocol.

[0154] In step S712, 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.

[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 the engineer or after-sales personnel to analyze the vehicle fault.

[0156] The present invention utilizes a networked domain controller to parse data download tasks issued from the cloud, pulls corresponding target storage files and sends them to the cloud, making it 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 following describes in detail the vehicle control solution based on the Internet of Things device of the present invention with reference to a specific application example.

[0158] like Figure 9 As shown in the figure, this application example provides an IoT device expansion connection process, which is as follows:

[0159] In 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] In 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] In step a3, the IoT gateway and the IoT device successfully shake hands, 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 permission.

[0162] Step a4: After receiving the registration request, the main control module compares the device information with 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] In step a6, the main control module requests verification from the cloud. 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 level list is queried according to the type of access device, and the IoT device is granted vehicle control permission according to the permissions agreed in the list, and a vehicle control permission list is generated.

[0166] like Figure 10 As shown, this application example provides a data packaging and storage process, which is as follows:

[0167] In 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 stores it in the cache.

[0168] Step b2: Send the data in the cache to the SOC via the connection bus.

[0169] In step b3, the SOC stores the data in 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 vehicle is turned off, there is no data on the bus and recording stops. 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, and data exceeding one week will be erased in chronological order.

[0172] like Figure 11 As shown, this application example provides a data package download process, which is as follows:

[0173] In 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 VIN) and sends it.

[0174] In step c2, the TSP wireless network decomposes the tasks and sends them to the designated vehicles. 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 files 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 two or more files, all included files are uploaded via the file transfer protocol.

[0176] In 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. The device is used to implement the above-mentioned embodiments and preferred embodiments. The details that have been described will not be repeated here. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.

[0178] This embodiment provides a vehicle control device based on an Internet of Things device, such as Figure 12 Shown, including:

[0179] The first processing module 1201 is configured to obtain device configuration information of the IoT device when detecting that the IoT device is connected to the gateway interface of the network-connected domain controller;

[0180] The second processing module 1202 is configured to generate multiple standard service interfaces and device registration requests based on the device configuration information, and send the device registration requests to the cloud, so that the cloud obtains the vehicle control authority based on the device configuration information in the device registration request and sends the vehicle control authority to the network domain controller;

[0181] The third processing module 1203 is used to configure permissions for multiple standard service interfaces based on the vehicle control permissions to obtain a target service interface;

[0182] The fourth processing module 1204 is configured to obtain, by using the target service interface, a target control instruction sent by the IoT device under the vehicle control authority, and control the vehicle according to the target control instruction.

[0183] In some optional embodiments, the networked domain controller includes multiple gateway interfaces of different types; the device is further configured to:

[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 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;

[0185] After receiving a confirmation response returned by at least one IoT device based on the handshake connection request, a connection is established with the at least one IoT device.

[0186] In some optional embodiments, the device is further used to:

[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, adjusting the current polling frequency of the gateway interface 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; 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 embodiments, 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 further configured to:

[0198] 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;

[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 further used to:

[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 to 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 expired storage file whose storage time exceeds the preset storage time in the storage file, the expired storage file is deleted.

[0204] In some optional embodiments, the device is further used to:

[0205] Receive data download tasks sent by the cloud;

[0206] Parse the data download task and determine the target storage file requested for download on 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 target storage file passes the integrity check.

[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 Figure 13 As shown, the vehicle has a networked domain controller, wherein the networked domain controller has the above Figure 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 above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as a computer code that can be recorded in a storage medium, or implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, 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 drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. 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 portion 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 form in which the computer program instruction exists in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc. 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 that can be accessed by the computer.

[0213] Although the embodiments of the present invention have been described with reference to 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. 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 connected domain controller for a vehicle, the method comprising: When an IoT device is detected to be connected to the gateway interface of the networked domain controller, obtaining the device ID number, device descriptor, and device configuration information of the IoT device; Based on the device ID number, the device descriptor, and 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; 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; The step of configuring permissions for multiple standard service interfaces based on the vehicle control permissions to obtain a target service interface includes: Determining the interface authority of the IoT device based on the vehicle control authority; Based on the interface authority of the Internet of Things device, the role information and authority information of each standard service interface are configured to obtain the target service interface corresponding to the Internet of Things device.

2. The method according to claim 1, characterized in that The networked domain controller is connected to different types of functional controllers of the vehicle via a multi-channel bus; and controlling the vehicle according to the target control instruction includes: 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.

3. The method according to any one of claims 1 to 2, characterized in that After sending the device registration request to the cloud, the method further includes: Receiving a state random number sent by the cloud, and sending 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.

4. The method according to any one of claims 1 to 2, 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 response returned by at least one Internet of Things device based on the handshake connection request, a connection is established with at least one of the Internet of Things devices.

5. The method according to claim 4, 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.

6. The method according to claim 2, 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 the plurality of 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.

7. The method according to claim 6, characterized in that The method further comprises: Receive data download tasks sent by the cloud; Analyze 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.

8. A vehicle control device based on an Internet of Things device, characterized in that: A connected domain controller for a vehicle, the device comprising: A first processing module is configured to obtain a device ID number, a device descriptor, and device configuration information of the IoT device when detecting that the IoT device is connected to the gateway interface of the networked domain controller; a second processing module, configured to generate a plurality of standard service interfaces and a device registration request based on the device ID number, the device descriptor, and the device configuration information, and send the device registration request to the cloud, so that the cloud obtains the vehicle control authority based on 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; A fourth processing module is configured to obtain, by using the target service interface, a target control instruction sent by the IoT device under the vehicle control authority, and control the vehicle according to the target control instruction; The third processing module is further configured to: Determining the interface authority of the IoT device based on the vehicle control authority; Based on the interface authority of the Internet of Things device, the role information and authority information of each standard service interface are configured to obtain the target service interface corresponding to the Internet of Things device.

9. A vehicle, characterized in that: It includes a networked domain controller, which executes the vehicle control method based on the Internet of Things device according to any one of claims 1 to 7.

10. 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 7.

Citation Information

Patent Citations

  • Internet-of-Things user information configuration method and device and computer equipment

    CN111934899A

  • Vehicle control method and vehicle control system

    CN119299492A