Vehicle control method and system based on vehicle networking platform, and electronic equipment
By constructing the page framework and MQTT protocol required by users and subscribing to control message topics in the Internet of Vehicles platform, the complexity and low efficiency of vehicle remote control and data reporting in the existing technology are solved, and efficient and personalized vehicle control is achieved. and data monitoring.
Patent Information
- Application Number
- CN202410732222.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing vehicle remote control and data reporting technology requires high programming skills, has slow processing speed and low efficiency, and cannot meet the personalized needs of users.
By building a page framework corresponding to user needs, a user control page is formed, and the Python environment and MQTT protocol are used to subscribe to the control message topic in the Internet of Vehicles platform to realize the sending of user instructions and the display of vehicle information.
It simplifies the operation process, improves data processing efficiency, meets the personalized needs of users, and realizes flexible remote control and real-time data monitoring of vehicles.
Smart Images

Figure CN118694800A
Abstract
Description
Technical Field
[0001] The present application relates to the field of software development technology, and specifically to a vehicle control method, system and electronic equipment based on a vehicle networking platform. Background Art
[0002] With the development of the Internet of Things, Internet of Vehicles, remote communication technology and computer technology, remote control and data reporting of vehicles have been gradually realized, mainly by writing complex program codes. In addition, a web-based interface design is also adopted to access the server through a browser to achieve remote control and data reporting of vehicles.
[0003] However, there are some problems with the relevant technology in practical application. First, the relevant technology usually requires high programming skills, which is difficult for ordinary developers to learn and modify. Secondly, when processing large amounts of data, the relevant technology will have problems such as slow processing speed and low efficiency. In addition, when realizing the remote control and data reporting functions of the vehicle, the relevant technology cannot meet the personalized needs of users, and cannot customize and design some specific functions according to the needs of users. Therefore, there is an urgent need for a new vehicle control method based on the Internet of Vehicles platform to solve at least one of the above problems.
[0004] It should be noted that the above content only provides background technical information related to the present application and does not necessarily constitute prior art. Summary of the invention
[0005] In view of the shortcomings of the prior art mentioned above, the present application provides a vehicle control method, system and electronic device based on a vehicle networking platform, so as to remotely control a target vehicle and display vehicle information through a user control page according to user needs.
[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0007] According to one aspect of an embodiment of the present application, a vehicle control method based on an Internet of Vehicles platform is provided, which is applied to a user client, including: obtaining user needs corresponding to a target vehicle, wherein the target vehicle is connected to the Internet of Vehicles platform; constructing a page frame corresponding to the user needs to form a user control page composed of the page frame, wherein the page frame includes page controls; subscribing to a control message topic corresponding to the user needs in the Internet of Vehicles platform to establish a connection between the user client and the target vehicle; displaying vehicle information uploaded to the Internet of Vehicles platform by the target vehicle through the page controls of the user control page, and / or receiving user instructions through the page controls of the user control page, and sending the user instructions to the target vehicle, wherein the user instructions are used to control the target vehicle.
[0008] In one embodiment of the present application, based on the aforementioned scheme, a page framework corresponding to the user needs is constructed to form a user control page composed of the page framework, including: deploying a Python environment and introducing a standard library in the Python environment; developing a user control page based on the Python environment using the Python language, and setting the page controls in the page framework according to user needs, wherein the user control page is composed of the page framework.
[0009] In one embodiment of the present application, based on the aforementioned scheme, subscribing to the control message topic corresponding to the user demand in the Internet of Vehicles platform to establish a connection between the user client and the target vehicle includes: the user client is established based on the MQTT protocol; obtaining a connection request with connection information, the connection information including the server port number, the server address and the vehicle identification; determining the target vehicle according to the vehicle identification, and connecting the user client to the Internet of Vehicles platform based on the server port number and the server address; subscribing to the control message topic corresponding to the user demand in the Internet of Vehicles platform through the MQTT protocol to establish a connection between the user client and the target vehicle.
[0010] In one embodiment of the present application, based on the aforementioned scheme, the vehicle information uploaded to the Internet of Vehicles platform by the target vehicle is displayed through the page control of the user control page, including at least one of the following: if the vehicle information is vehicle status information, the vehicle status information of the target vehicle is obtained, and the vehicle status information is displayed through the page control of the user control page, wherein the target vehicle is used to determine the vehicle status information through status detection, and upload the vehicle status information to the Internet of Vehicles platform; if the vehicle information is the instruction execution result and the vehicle status information, the device status information corresponding to the vehicle parts is updated based on the instruction execution result and the vehicle status information, and the vehicle status information is displayed according to the vehicle status information. The device status information is matched from a preset matching table to obtain a target display parameter corresponding to the device status information, and the device status information is displayed on the user control page according to the target display parameter, wherein the user control page includes preset display parameters corresponding to multiple preset status information, and the target vehicle includes multiple vehicle parts; if the vehicle information is abnormal vehicle information, the abnormal vehicle information of the target vehicle is obtained, and the abnormal vehicle information is displayed through the page control of the user control page to provide an alarm prompt, wherein the target vehicle is used to determine the abnormal vehicle information through abnormality detection, and upload the abnormal vehicle information to the Internet of Vehicles platform.
[0011] In one embodiment of the present application, based on the aforementioned scheme, user instructions are received through the page control of the user control page, and the user instructions are sent to the target vehicle, including: receiving user instructions input by the user through the page control of the user control page; sending the user instructions to the target vehicle, and subscribing to the instruction execution results sent by the target vehicle, wherein the target vehicle is used to execute the user instructions, generate the instruction execution results corresponding to the user instructions, and upload the instruction execution results to the Internet of Vehicles platform.
[0012] In one embodiment of the present application, based on the aforementioned scheme, the method also includes: the page control includes a user instruction control, and the user instruction control is bound to a page event and an instruction logic; event monitoring is performed on the user control page; in response to a page event corresponding to a target control, a user instruction is generated according to the instruction logic corresponding to the target control, wherein the target control is any user instruction control.
[0013] In one embodiment of the present application, based on the aforementioned solution, the method further includes: encapsulating the instruction logic and binding the encapsulated instruction logic with the user instruction control; and serializing and deserializing the encapsulated instruction logic.
[0014] In one embodiment of the present application, based on the aforementioned scheme, the method also includes: collecting certificate request information, and obtaining a transport layer security certificate based on the certificate request information; installing the transport layer security certificate to the user client, and configuring security parameters corresponding to the transport layer security certificate to achieve transport layer security authentication.
[0015] According to one aspect of an embodiment of the present application, a vehicle control system based on an Internet of Vehicles platform is provided, comprising: an Internet of Vehicles platform, a target vehicle and a user client; the Internet of Vehicles platform is connected to the target vehicle; the user client is used to obtain user needs corresponding to the target vehicle; a page frame corresponding to the user needs is constructed to form a user control page composed of the page frame, wherein the page frame includes page controls; a control message topic corresponding to the user needs is subscribed in the Internet of Vehicles platform to establish a connection between the user client and the target vehicle; the vehicle information uploaded to the Internet of Vehicles platform by the target vehicle is displayed through the page controls of the user control page, and / or, a user instruction is received through the page controls of the user control page, and the user instruction is sent to the target vehicle; the target vehicle is used to receive the user instruction sent by the user client, and control the target vehicle according to the user instruction.
[0016] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements a vehicle control method based on a vehicle networking platform as described in any one of the above embodiments.
[0017] The beneficial effects of the present application are as follows: the present application constructs a page framework corresponding to user needs to form a user control page composed of a page framework, which can meet the different needs of different users and meet the personalized needs of users; obtains the vehicle information of the target vehicle and realizes the data reporting function by subscribing to the control message topic corresponding to the user needs in the Internet of Vehicles platform; displays the vehicle information of the target vehicle through the page control of the user control page; receives user instructions through the page control of the user control page, and sends the user instructions to the target vehicle to remotely control the target vehicle.
[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0020] Figure 1 is a schematic diagram of an exemplary system architecture shown in an exemplary embodiment of the present application;
[0021] Figure 2 is a flow chart of a vehicle control method based on a vehicle networking platform shown in an exemplary embodiment of the present application;
[0022] Figure 3 is a flow chart of a vehicle control method based on a vehicle networking platform shown in another exemplary embodiment of the present application;
[0023] Figure 4 is a block diagram of a vehicle control system based on a vehicle networking platform shown in an exemplary embodiment of the present application;
[0024] Figure 5 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0025] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0026] It should be noted that the illustrations provided in the following embodiments are only used to illustrate the basic concept of the present application in a schematic manner, and therefore the illustrations only show components related to the present application rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.
[0027] In the following description, a large number of details are discussed to provide a more thorough explanation of the embodiments of the present application. However, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present application difficult to understand.
[0028] First of all, it should be noted that Python is a high-level programming language that is widely used in a variety of applications, including website development, data analysis, artificial intelligence, machine learning, etc. Python's syntax is concise and easy to read, and it supports multiple programming paradigms, including procedural, object-oriented, and functional programming.
[0029] TSP (Telematics Service Provider) is a service provider that provides intelligent automotive services based on the Internet and communication networks. It is an indispensable part of the Internet of Vehicles system, mainly involving functions such as vehicle safety, vehicle monitoring, navigation, communication, infotainment, and driving behavior analysis.
[0030] A GUI (Graphical User Interface) framework is a software framework for building graphical user interfaces. These frameworks usually provide a set of predefined components (such as buttons, text boxes, menus, etc.) and layout managers, as well as mechanisms for handling user input and event responses.
[0031] MQTT (Message Queue Telemetry Transport) is a message protocol based on the publish / subscribe paradigm. It works on the TCP / IP protocol family and is designed for remote devices with low hardware performance and poor network conditions. MQTT is a client-server based message publish / subscribe transport protocol that is lightweight, simple, open and easy to implement, so it has a wide range of applications.
[0032] EMQX is an open source, scalable MQTT message broker software used to handle MQTT connections and data transmission of massive IoT devices. It is developed in Erlang / OTP language, has the characteristics of high concurrency, low latency, and easy scalability, and can support large-scale MQTT connections and data processing. The role of EMQX is mainly reflected in the field of Internet of Things (IoT) and message communication, especially when handling massive MQTT connections and data transmission.
[0033] TBox, the full name of which is Telematics Box, is an important component of the Internet of Vehicles system, also known as the vehicle-mounted T-BOX. It is mainly used to communicate with the background system / mobile phone APP to realize the vehicle information display and control of the mobile phone APP. TBox integrates long-distance communication and information science and technology, and is committed to providing comprehensive driving data collection, remote query and control, and fault monitoring services for automobiles. TBox communicates with various modules inside the vehicle and the cloud server through built-in communication modules and sensors, realizing the functions of vehicle information collection, transmission and control. It supports multiple communication modes, such as 4G, 5G, WIFI, Bluetooth, etc., and can realize data transmission and control between vehicles and cloud servers, mobile terminals and other devices.
[0034] The subscribe function (or method) is used by the MQTT client to request the MQTT broker (Broker, such as EMQX) to receive messages on a specific topic. When the MQTT client calls the subscribe function, it sends a SUBSCRIBE control packet to the MQTT broker, specifying the topic to be subscribed and the quality of service level (QoS) of the message. Once the subscription is successful, the MQTT broker will start forwarding messages sent to the topic to the subscribed clients.
[0035] In MQTT, topic is a string used to identify a message. It allows publishers to publish messages to a specific topic and subscribers to subscribe to topics of interest to receive messages.
[0036] In the MQTT (Message Queuing Telemetry Transport) protocol, the publish function is used to publish messages from the client to the server (or from the server to the client in some cases). This function allows sending an application message to a specified topic.
[0037] In Python graphical user interface (GUI) programming, especially when using the Tkinter library, there is a class called LabelFrame, which is used to create a frame with a title, which can contain other Tkinter components (such as buttons, labels, etc.). The LabelFrame class allows you to create a visual grouping for a series of related controls and provide a title to identify the grouping.
[0038] The on_message callback function is typically used to handle messages received in real-time communications, chat applications, WebSocket connections, or other event-based systems. This function is automatically called when a new message arrives, passing data related to the new message as parameters.
[0039] Figure 1 It is a schematic diagram of an exemplary system architecture shown in an exemplary embodiment of the present application.
[0040] Reference Figure 1 As shown, the system architecture may include a data acquisition device 101 and a computer device 102. Among them, the computer device 102 may be at least one of a desktop graphics processing unit (GPU) computer, a GPU computing cluster, a neural network computer, etc. The data acquisition device 101 is used to collect user needs corresponding to the target vehicle. In this embodiment, the data acquisition device 101 obtains the above data and provides it to the computer device 102 for processing. Relevant technicians can use the computer device 102 to build a page frame corresponding to the user needs to form a user control page composed of a page frame, wherein the page frame includes a page control, subscribes to the control message topic corresponding to the user needs in the Internet of Vehicles platform to establish a connection between the user client and the target vehicle, and displays the vehicle information uploaded to the Internet of Vehicles platform by the target vehicle through the page control of the user control page, and / or, receives user instructions through the page control of the user control page, and sends the user instructions to the target vehicle, wherein the user instructions are used to control the target vehicle to realize vehicle control based on the Internet of Vehicles platform. It should be noted that the data acquisition device 101 and the computer device 102 provided in this embodiment are only an example and should not bring any restrictions to the functions and scope of use of the embodiments of the present application.
[0041] It should be noted that the vehicle control method based on the Internet of Vehicles platform provided in the embodiment of the present application is generally executed by the computer device 102.
[0042] Figure 2 is a flow chart of a vehicle control method based on a vehicle networking platform according to an exemplary embodiment of the present application. The vehicle control method based on the vehicle networking platform can be executed by a computing and processing device, which can be Figure 1 The computer device 102 shown in FIG. Figure 2 As shown, the vehicle control method based on the Internet of Vehicles platform includes at least steps S210 to S240, which are described in detail as follows:
[0043] In step S210, the user demand corresponding to the target vehicle is obtained.
[0044] In one embodiment of the present application, the target vehicle is connected to the Internet of Vehicles platform. The user needs corresponding to the target vehicle are obtained by user interviews, questionnaires, observation of users, letting users try out the initial user control page, obtaining user usage data of similar pages, etc. User needs include but are not limited to mqtt connection, remote control of vehicles, vehicle status reporting, control result response, device status display, etc.
[0045] In step S220, a page frame corresponding to the user's demand is constructed to form a user control page composed of the page frame.
[0046] In one embodiment of the present application, a Python environment is deployed, and a standard library is introduced into the Python environment; a user control page is developed based on the Python environment using the Python language, and page controls in a page frame are set according to user needs, wherein the user control page is composed of a page frame. The page frame includes page controls.
[0047] In the present embodiment, the Python environment is started, a new Python project is created, and necessary libraries are imported into the project, including standard libraries such as tkinter, mqtt, protobuf, datetime and other related libraries. A Python-based TSP platform interface, i.e., a user control page, is designed and implemented. The TSP platform interface is developed using a GUI framework, and an initial interface is created using the Tk() function of the tkinter module, and the initial interface is divided into one or more frames using the LabelFrame function (i.e., the LabelFrame class), and the above-mentioned frames include but are not limited to one or more frames in "mqtt connection", "remote control command", "vehicle status report", "control result response", "device status display", etc., and each frame is laid out and interactively designed by page controls such as button and entry, forming corresponding function buttons and interface displays. The TSP platform interface design of this application is concise and intuitive, and easy to operate.
[0048] In step S230, a control message topic corresponding to the user's needs is subscribed in the Internet of Vehicles platform to establish a connection between the user client and the target vehicle.
[0049] In one embodiment of the present application, a user client is established based on the MQTT protocol; a connection request with connection information is obtained, and the connection information includes a server port number, a server address, and a vehicle identifier; a target vehicle is determined based on the vehicle identifier, and the user client is connected to the Internet of Vehicles platform based on the server port number and the server address; a control message topic corresponding to the user's needs is subscribed to in the Internet of Vehicles platform through the MQTT protocol to establish a connection between the user client and the target vehicle. The user client can be deployed on the user terminal and the server side, and the user terminal includes a mobile phone, a tablet computer, a computer, and a smart TV.
[0050] In this embodiment, the TSP platform interface is connected to EMQX through the mqtt protocol. Connection information parameters such as port (EMQX server port number), broker (EMQX server address), and pdid (TBox identifier) are required when connecting. In the mqtt connection framework, the pdid, broker, and port input boxes are designed with entry text controls, and a "connect" and "disconnect" button are designed. The buttons are bound to the connet and disconnect functions with command, respectively. After entering the above connection information and clicking the connection, the value in the input box will be read through the get function, and when the click event of the connection button occurs, the connet function will be automatically called to successfully connect to the EMQX platform, and then subscribe to the relevant topic through the subscribe function to realize the TBox interaction with the target vehicle. The content in the above topic is published by TBOX to the EMQX platform.
[0051] In step S240, the vehicle information uploaded by the target vehicle to the Internet of Vehicles platform is displayed through the page control of the user control page, and / or the user command is received through the page control of the user control page and sent to the target vehicle.
[0052] In one embodiment of the present application, the vehicle information uploaded to the Internet of Vehicles platform by the target vehicle is displayed through the page control of the user control page, including at least one of the following: if the vehicle information is vehicle status information, the vehicle status information of the target vehicle is obtained, and the vehicle status information is displayed through the page control of the user control page, wherein the target vehicle is used to determine the vehicle status information through status detection, and upload the vehicle status information to the Internet of Vehicles platform; if the vehicle information is the command execution result and the vehicle status information, the device status information corresponding to the vehicle parts is updated based on the command execution result and the vehicle status information, and the device status information is matched from the preset matching table according to the device status information to obtain the target display parameter corresponding to the device status information, and the device status information is displayed on the user control page according to the target display parameter, wherein the user control page includes preset display parameters corresponding to multiple preset status information, and the target vehicle includes multiple vehicle parts; if the vehicle information is abnormal vehicle information, the abnormal vehicle information of the target vehicle is obtained, and the abnormal vehicle information is displayed through the page control of the user control page to give an alarm prompt, wherein the target vehicle is used to determine the abnormal vehicle information through abnormal detection, and upload the abnormal vehicle information to the Internet of Vehicles platform. The user command is used to control the target vehicle.
[0053] In this embodiment, the vehicle body status viewing function can be realized in the TSP platform interface. When the vehicle status changes, the vehicle status information will be automatically reported in the form of a string, and will also be automatically reported every preset time interval (for example, five seconds). The vehicle status information includes but is not limited to position, speed, driving direction, battery power, tire pressure, etc. After the target vehicle detects the vehicle status information through the status, it is uploaded to the Internet of Vehicles platform in the cloud through TBox. The TSP platform in the user client will call the on_message callback function to automatically obtain these data (vehicle status information) from the cloud, and display them in the "Body Status Reporting" interface after decoding in protobuf format, so that users can grasp the vehicle status at any time and conveniently retrieve various vehicle statuses.
[0054] In this embodiment, the function of displaying the device status is implemented in the TSP platform interface. Devices refer to various electronic devices, control units and modules on the vehicle, and the device status display is used to monitor, manage and control various systems and functions of the vehicle. Specifically, the device status refers to the status of devices such as doors, windows, air conditioners, seats, etc. After each remote control of the device, TBox will report the control result, that is, the command execution result and vehicle status information. The TSP platform will update the device status information corresponding to the vehicle parts in real time according to the control result and the vehicle status, and display the device status information on the user control page according to the target display parameters, for example, with different colors and numerical values to intuitively represent it. Among them, the target display parameters are determined by matching from the preset matching table according to the device status information to obtain the target display parameters corresponding to the device status information.
[0055] In this embodiment, data monitoring and alarm prompt functions are implemented in the TSP platform interface. Specifically, when an abnormal situation occurs in the vehicle, such as vehicle failure, abnormal vehicle status, etc., TBox will promptly issue an alarm prompt event, which will be displayed on the interface after TSP receives it, so that the user can take appropriate measures in time to avoid losses. Preferably, while displaying abnormal vehicle information through the page control of the user control page, the audio playback device of the user client is called to play the abnormal vehicle information to better and more timely prompt the user.
[0056] In one embodiment of the present application, user instructions are received through the page controls of the user control page, and the user instructions are sent to the target vehicle. Specifically, user instructions input by the user are received through the page controls of the user control page; the user instructions are sent to the target vehicle, and the instruction execution results sent by the target vehicle are subscribed to, wherein the target vehicle is used to execute the user instructions, generate instruction execution results corresponding to the user instructions, and upload the instruction execution results to the Internet of Vehicles platform.
[0057] In this embodiment, the remote control function of the vehicle is implemented in the TSP platform interface. The Button function is used to design buttons with corresponding functions within the "remote control command" framework. Each button will be bound to a publish function to send remote control instructions to EMQX. When a click event occurs, this function will be called and send corresponding control instructions, such as "open the door", "turn on the air conditioner", "seat heating", "seat ventilation", "find car", etc. After receiving the remote control instruction, TBox will perform the corresponding operation and return the control result, that is, the instruction execution result, to the TSP platform interface through the EMQX platform. Preferably, the instruction execution result is displayed through the TSP platform interface, and the audio playback device of the user client can also be called to play the instruction execution result.
[0058] It should be noted that due to different needs of different users, they may only need one or more of the above functions, and corresponding functions can be added according to other needs. This application does not limit this, nor should it bring any limitations to the functions and scope of use of the embodiments of this application.
[0059] In one embodiment of the present application, the page control includes a user instruction control, which is bound to a page event and instruction logic; event monitoring is performed on the user control page; in response to the page event corresponding to the target control, a user instruction is generated according to the instruction logic corresponding to the target control, wherein the target control is any user instruction control.
[0060] In this embodiment, the user instruction control is bound to the page event and the instruction logic; the user control page is monitored for events; when the page event corresponding to the target control is triggered, the user instruction is generated according to the instruction logic corresponding to the target control. Page controls include buttons, file edit boxes, etc. Most of them have execution functions or functions that trigger code to run and complete responses through "events". Page controls include many types, including but not limited to the following: button groups, such as ordinary buttons, radio buttons, check boxes, etc. Input groups, such as text boxes, password boxes, drop-down boxes (automatic selection, single selection, multiple selection), date / time selectors, sliders, etc. Display groups, such as labels, picture boxes, progress bars, list boxes (unordered lists, ordered lists, list groups), tables (basic tables, sub-table controls, tree tables, editable tables), tree controls (ordinary trees, check box trees), grid controls, etc. Layout groups, such as div containers, table layouts, elastic layout containers, grid layout containers, column layout containers, label groups, folding boards, nine-square grids, etc. Navigation and menu groups, such as Tab page controls, menu controls (vertical menus, horizontal menus), portal-like display controls (including regional layout controls), etc. File groups, such as file transfer controls, etc. In addition, there are some specific controls, such as auto-complete controls, calendar controls, etc.
[0061] In one embodiment of the present application, the instruction logic is encapsulated, and the encapsulated instruction logic is bound to the user instruction control; the encapsulated instruction logic is serialized and deserialized.
[0062] In this embodiment, before encapsulating the instruction logic, the instruction logic is defined and the instruction class is created, wherein a class containing all methods and data required to execute the instruction is created for each instruction logic. Then the instruction logic is encapsulated. Binding the user instruction control specifically involves creating a user instruction control, binding an event handler, and calling the instruction logic. Among them, an event handler is bound to each user instruction control; when the user interacts with the control (such as clicking a button), the event handler is triggered; in the event handler, the method of the corresponding instruction class instance is called to execute the instruction logic. The encapsulated instruction logic is serialized and deserialized, specifically, the serialization format is defined, and in this embodiment, ProtocolBuffers, i.e., the protobuf format, is defined. Then in the instruction class, the state and data of the instruction logic are converted into a string or byte stream in the selected serialization format. Then in the instruction class, the serialized string or byte stream is converted back to the state and data of the instruction logic. Efficient, cross-language, and cross-platform data transmission and storage can be achieved while ensuring the integrity, accuracy, and security of the data.
[0063] In one embodiment of the present application, certificate request information is collected, the certificate request information includes the organization, domain name and other relevant information, and a transport layer security certificate is obtained based on the certificate request information; the transport layer security certificate is installed on the user client, and security parameters corresponding to the transport layer security certificate are configured, the security parameters include but are not limited to encryption algorithms and parameters, such as one or more of key length, digest algorithm, etc., to achieve transport layer security authentication.
[0064] Figure 3 FIG. 1 is a flow chart of a vehicle control method based on a vehicle networking platform according to another exemplary embodiment of the present application. Figure 3 As shown, in an exemplary embodiment, import is used to import the standard library, establish an mqtt client, and subscribe to the relevant topic from EMQX, wherein the content in the topic is published by TBOX to the corresponding topic; configure TLS security authentication, and design the tkinter interface according to user needs, including but not limited to one or more of the interface size, background color, and background image; arrange Button, entry and other controls, bind the page control to the event, and encapsulate the instructions of each page control respectively, such as encapsulating the instructions in the protobuf format corresponding to each page control; configure protobuf serialization and deserialization, and start the main event loop of the Tkinter application. Among them, import is a keyword in Python, which is used to import a module or library so as to use its defined functions, classes, variables, etc. in the current Python script or program. The specific way in which the steps are executed has been described in detail in the aforementioned embodiment, and will not be repeated here.
[0065] This application constructs a page framework corresponding to user needs to form a user control page composed of a page framework, which can meet the different needs of different users and meet the personalized needs of users; obtains the vehicle information of the target vehicle by subscribing to the control message topic corresponding to the user needs in the Internet of Vehicles platform, and realizes the data reporting function; displays the vehicle information of the target vehicle through the page control of the user control page; receives user instructions through the page control of the user control page, and sends the user instructions to the target vehicle to remotely control the target vehicle.
[0066] This application uses Python language to write the simulated TSP platform interface. Users can send instructions to TBox by simply clicking a button to remotely control the vehicle and report vehicle data, which greatly simplifies the operation process and reduces the difficulty of use for users. This application can quickly process a large amount of vehicle data through the efficient execution capability of Python language, improve the efficiency of data processing, and meet the user's needs for big data processing. The interface design of this application is flexible. Users can customize some functions of the vehicle according to their needs, enhance the user experience, and meet the personalized needs of users. This application can receive TBox data vehicle status reporting, device status information and other information in real time, so that users can grasp the status of the vehicle in real time, improving the controllability and safety of the vehicle. This application is written in Python language, has good cross-platform compatibility, can run on various operating systems, and improves the applicability and flexibility of the system.
[0067] Figure 4 It is a block diagram of a vehicle control system based on an Internet of Vehicles platform shown as an exemplary embodiment of the present application.
[0068] like Figure 4 As shown, the exemplary vehicle control system based on the Internet of Vehicles platform includes: a target vehicle 410, an Internet of Vehicles platform 420 and a user client 430;
[0069] Among them, the Internet of Vehicles platform 420 is connected to the target vehicle; the user client 430 is used to obtain the user needs corresponding to the target vehicle; build a page frame corresponding to the user needs to form a user control page composed of the page frame, wherein the page frame includes page controls; subscribe to the control message topic corresponding to the user needs in the Internet of Vehicles platform to establish a connection between the user client and the target vehicle; display the vehicle information uploaded to the Internet of Vehicles platform by the target vehicle through the page controls of the user control page, and / or, receive user instructions through the page controls of the user control page, and send the user instructions to the target vehicle; the target vehicle 410 is used to receive the user instructions sent by the user client, and control the target vehicle according to the user instructions.
[0070] It should be noted that the vehicle control system based on the Internet of Vehicles platform provided in the above embodiment and the vehicle control method based on the Internet of Vehicles platform provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here. In actual application, the vehicle control system based on the Internet of Vehicles platform provided in the above embodiment can distribute the above functions to different functional modules as needed, that is, divide the internal structure of the system into different functional modules to complete all or part of the functions described above, and this is not limited here.
[0071] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, and when the one or more programs are executed by one or more processors, the electronic device implements the vehicle control method based on the Internet of Vehicles platform provided in the above-mentioned embodiments.
[0072] Figure 5 The structure diagram of the computer system suitable for implementing the electronic device of the embodiment of the present application is shown. It should be noted that: Figure 5 The computer system 500 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0073] like Figure 5 As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the methods provided in the above-mentioned various embodiments. In the RAM 503, various programs and data required for system operation are also stored. The CPU 501, the ROM 502 and the RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0074] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0075] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
[0076] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0077] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0078] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0079] Another aspect of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor of a computer, the computer executes the vehicle control method based on the Internet of Vehicles platform as provided in the above embodiments. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being assembled into the electronic device.
[0080] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0081] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the vehicle control method based on the Internet of Vehicles platform provided in each of the above embodiments.
[0082] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0083] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0084] The above embodiments are merely illustrative of the principles and effects of the present application, and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.
Claims
1. A vehicle control method based on a vehicle networking platform, characterized in that: Applied to a user client, the method comprises: Acquire user requirements corresponding to a target vehicle, wherein the target vehicle is connected to the Internet of Vehicles platform; Constructing a page frame corresponding to the user demand to form a user control page composed of the page frame, wherein the page frame includes page controls; Subscribing to a control message topic corresponding to the user demand in the Internet of Vehicles platform to establish a connection between the user client and the target vehicle; The vehicle information uploaded by the target vehicle to the Internet of Vehicles platform is displayed through the page control of the user control page, and / or the user command is received through the page control of the user control page and sent to the target vehicle, wherein the user command is used to control the target vehicle.
2. The vehicle control method based on the vehicle networking platform according to claim 1 is characterized in that: Constructing a page frame corresponding to the user demand to form a user control page composed of the page frame, including: Deploy a Python environment and introduce the standard library into the Python environment; The user control page is developed based on the Python environment using the Python language, and the page controls in the page frame are set according to user requirements, wherein the user control page is composed of the page frame.
3. The vehicle control method based on the vehicle networking platform according to claim 1 is characterized in that: Subscribing to a control message topic corresponding to the user demand in the Internet of Vehicles platform to establish a connection between the user client and the target vehicle includes: The user client is established based on the MQTT protocol; Obtaining a connection request with connection information, wherein the connection information includes a server port number, a server address, and a vehicle identification; Determine the target vehicle according to the vehicle identification, and connect the user client to the Internet of Vehicles platform based on the server port number and the server address; The control message topic corresponding to the user demand is subscribed to in the Internet of Vehicles platform through the MQTT protocol to establish a connection between the user client and the target vehicle.
4. The vehicle control method based on the vehicle networking platform according to claim 1 is characterized in that: Displaying the vehicle information uploaded by the target vehicle to the Internet of Vehicles platform through the page control of the user control page includes at least one of the following: If the vehicle information is vehicle status information, the vehicle status information of the target vehicle is obtained, and the vehicle status information is displayed through the page control of the user control page, wherein the target vehicle is used to determine the vehicle status information through status detection, and upload the vehicle status information to the Internet of Vehicles platform; If the vehicle information is the command execution result and the vehicle status information, the device status information corresponding to the vehicle parts is updated based on the command execution result and the vehicle status information, a match is performed from a preset matching table according to the device status information to obtain a target display parameter corresponding to the device status information, and the device status information is displayed on the user control page according to the target display parameter, wherein the user control page includes preset display parameters corresponding to a plurality of preset status information respectively, and the target vehicle includes a plurality of the vehicle parts; If the vehicle information is abnormal vehicle information, the abnormal vehicle information of the target vehicle is obtained, and the abnormal vehicle information is displayed through the page control of the user control page to issue an alarm prompt, wherein the target vehicle is used to determine the abnormal vehicle information through abnormality detection, and upload the abnormal vehicle information to the Internet of Vehicles platform.
5. The vehicle control method based on the vehicle networking platform according to claim 1 is characterized in that: Receiving a user instruction through a page control of the user control page and sending the user instruction to the target vehicle includes: Receiving a user instruction input by a user through a page control of the user control page; The user command is sent to the target vehicle, and the command execution result sent by the target vehicle is subscribed, wherein the target vehicle is used to execute the user command, generate the command execution result corresponding to the user command, and upload the command execution result to the Internet of Vehicles platform.
6. The vehicle control method based on the vehicle networking platform according to any one of claims 1 to 5, characterized in that: The method further comprises: The page control includes a user instruction control, and the user instruction control is bound to a page event and an instruction logic; Performing event monitoring on the user control page; In response to a page event corresponding to a target control, a user instruction is generated according to the instruction logic corresponding to the target control, wherein the target control is any user instruction control.
7. The vehicle control method based on the vehicle networking platform according to claim 6 is characterized in that: The method further comprises: Encapsulating the instruction logic, and binding the encapsulated instruction logic to the user instruction control; The encapsulated instruction logic is serialized and deserialized.
8. The vehicle control method based on the vehicle networking platform according to any one of claims 1 to 5, characterized in that: The method further comprises: Collecting certificate request information, and obtaining a transport layer security certificate based on the certificate request information; The transport layer security certificate is installed in the user client, and the security parameters corresponding to the transport layer security certificate are configured to implement transport layer security authentication.
9. A vehicle control system based on a vehicle networking platform, characterized in that: include: Internet of Vehicles platform, target vehicle and user client; The Internet of Vehicles platform is connected to the target vehicle; The user client is used to obtain user requirements corresponding to the target vehicle; construct a page frame corresponding to the user requirements to form a user control page composed of the page frame, wherein the page frame includes page controls; subscribe to a control message topic corresponding to the user requirements in the Internet of Vehicles platform to establish a connection between the user client and the target vehicle; display the vehicle information uploaded to the Internet of Vehicles platform by the target vehicle through the page controls of the user control page, and / or receive user instructions through the page controls of the user control page, and send the user instructions to the target vehicle; The target vehicle is used to receive the user instruction sent by the user client and control the target vehicle according to the user instruction.
10. An electronic device, characterized in that: The electronic device comprises: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the vehicle control method based on the Internet of Vehicles platform as described in any one of claims 1 to 8.
Citation Information
Patent Citations
A method of remotely controlling a vehicle based on a intelligent equipment
CN109936585A
Service-based car exhibition mode custom method, car exhibition mode custom device, terminal and storage medium
CN114047847A
Vehicle atmosphere lamp remote control method and readable storage medium
CN114422497A
Method for controlling vehicle equipment by passengers based on MQTT
CN114745467A
Vehicle, information processing method, system and device thereof and processor
CN115550499A
