Hub gateway device and accessory control method

By introducing the central gateway device, using the CAN communication module and microcontroller to achieve stable connection and efficient data transmission between the vehicle and accessories, the problems of single connection, poor information exchange and poor scalability in the existing technology are solved, and the intelligence and multi-functionality of electric two-wheeled vehicles and motorcycles are improved.

CN120602264APending Publication Date: 2025-09-05JIANGSU XIAONIU ELECTRIC SCOOTER TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510718148.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-30
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

Existing electric two-wheeled vehicles and motorcycles have a single way of connecting accessories to the vehicle, lacking a unified communication protocol and an efficient control center. This results in unstable data transmission, poor functional scalability, and an inability to achieve intelligent control of complex accessory functions and collaborative work between multiple devices.

Method used

It adopts a central gateway device, which includes a shell, core control circuit and multiple communication interfaces. It uses a CAN communication module to realize data communication between the vehicle and accessories, and a microcontroller to collaboratively manage accessories. The integrated power module ensures stable power supply. The data processing module performs data format conversion and verification, and supports multiple communication protocols to adapt to the connection requirements of different vehicles and accessories.

Benefits of technology

It achieves stable connection and efficient data transmission between vehicles and accessories, improves the intelligence and multi-functionality of electric two-wheeled vehicles and motorcycles, and provides flexible and intelligent accessory control and information display functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120602264A_ABST
    Figure CN120602264A_ABST
Patent Text Reader

Abstract

The present invention relates to the field of vehicles, and discloses a hub gateway device and an accessory control method, the hub gateway device comprising: a housing comprising a core control circuit arranged in the housing, the core control circuit being used for cooperatively managing a target vehicle and a plurality of accessories contained in the target vehicle; the communication interfaces are used for connecting the target vehicle with the accessories and comprise a first communication interface used for connecting the target vehicle and a second communication interface used for connecting the accessories; the communication interface is used for performing data communication on the target vehicle, the plurality of accessories and the core control circuit; by adopting the system, the problems of single function, unsmooth information interaction, poor expansibility and insufficient adaptability existing in the connection control of the existing vehicle and accessories in the related technology are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicles, and in particular to a central gateway device and an accessory control method. Background Art

[0002] Existing electric two-wheeled vehicles and motorcycles offer a relatively simple connection and control method between the vehicle and its accessories. Many accessories often operate independently and lack effective integration with vehicle systems. For example, traditional motorcycle heated seats typically feature only a simple manual switch and lack interaction with the vehicle's overall system, making them unable to automatically adjust the temperature based on vehicle status or the external environment. Vehicle information display is also limited to the built-in display, making it difficult to achieve simultaneous multi-screen display and failing to meet users' diverse display needs.

[0003] Although some vehicles have attempted to achieve partial linkage between accessories and vehicles through simple circuit connections, the lack of a unified communication protocol and an efficient control center, and the fixed and single connection method have led to unstable data transmission, poor functional scalability, and inability to adapt to the connection requirements of different vehicles. It is also difficult to achieve intelligent control of complex accessory functions and collaborative work between multiple devices.

[0004] In view of the problems of single function, poor information interaction, poor scalability and insufficient adaptability in the existing vehicle and accessory connection control technologies, no effective solution has been proposed yet. Summary of the Invention

[0005] To this end, the present invention provides a central gateway device and accessory control method to overcome the problems of single function, poor information interaction, poor scalability and insufficient adaptability in the existing vehicle and accessory connection control in the prior art.

[0006] To achieve the above-mentioned purpose, the present invention provides a central gateway device, which is arranged in a target vehicle, comprising: a shell, including a core control circuit arranged in the shell, and the core control circuit is used to coordinately manage the target vehicle and multiple accessories contained in the target vehicle; a communication interface for connecting the target vehicle and the multiple accessories, the communication interface includes a first communication interface for connecting the target vehicle and a second communication interface for connecting the multiple accessories, and the communication interface is used for the target vehicle, the multiple accessories and the core control circuit to communicate data.

[0007] In an exemplary embodiment, the core control circuit includes: a microcontroller, used to receive a first control instruction and issue the first control instruction through a CAN communication module; the CAN communication module, connected to the microcontroller, used to communicate data with the target vehicle and the multiple accessories based on the CAN bus communication protocol and the multiple communication interfaces; a power supply module, used to power the central gateway device; a data processing module, connected to the CAN communication module, used to receive communication data forwarded by the CAN communication module, and pre-process the communication data to obtain processed communication data, and display the processed communication data on the display device of the target vehicle, wherein the multiple accessories include the display device.

[0008] In an exemplary embodiment, the microcontroller is also used to: receive the first control instruction sent by the target vehicle through the CAN communication module; parse the first control instruction to determine at least one first accessory corresponding to the first control instruction, and determine the sub-control instruction corresponding to each first accessory, wherein the multiple accessories include the at least one first accessory; and send each sub-control instruction to the corresponding first accessory through the CAN communication module.

[0009] In an exemplary embodiment, the microcontroller is also used to: receive vehicle status information of the target vehicle in real time through the CAN communication module; match preset control rules according to the vehicle status information, and generate a second control instruction based on the matching result; and send the second control instruction to the second accessory among the multiple accessories through the CAN communication module.

[0010] In an exemplary embodiment, the data processing module is further used to: upon receiving the communication data, identify the identifier, data length code and data content in the communication data according to the CAN bus communication protocol to verify the data format of the communication data; upon determining that the data format passes the verification, verify the integrity and accuracy of the data through a CRC verification algorithm, and eliminate erroneous data in the communication data based on the verification result to obtain filtered communication data; map the filtered communication data to vehicle parameters of the target vehicle according to preset mapping rules, and synchronize the vehicle parameters to the display device in real time.

[0011] In an exemplary embodiment, the first communication interface includes at least one of the following: a CAN communication interface, a 485 interface, a single serial port, and the second communication interface includes at least one of the following: a composite interface for power transmission and signal transmission, a data transmission interface for media data transmission.

[0012] In an exemplary embodiment, the power module includes an independent battery connected to a vehicle power supply of the target vehicle, and is configured to charge the independent battery through the vehicle power supply when the power level of the independent battery is less than a preset threshold.

[0013] According to another aspect of an embodiment of the present invention, a method for controlling an accessory is also provided, which is applied to the above-mentioned central gateway device, including: connecting multiple third communication interfaces corresponding to the multiple accessories with the multiple communication interfaces one by one, and identifying the accessory types of the multiple accessories through a CAN communication module to establish a communication connection between the central gateway device and the multiple accessories, wherein the central gateway device includes the CAN communication module; receiving a first control instruction sent by the target vehicle through the first communication interface, and sending the first control instruction to the first accessory corresponding to the first control instruction through the CAN communication module to control the first accessory.

[0014] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is configured to execute the multi-device integrated dimming method when running.

[0015] According to another aspect of an embodiment of the present invention, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the multi-device integrated dimming method through the computer program.

[0016] According to another aspect of the embodiments of the present invention, a computer program product is provided, including a computer program, which implements the steps of the method described in each embodiment of the present application when executed by a processor.

[0017] Compared with the existing technology, the beneficial effects of the present invention are: through the multiple interfaces of the central gateway device, various accessories are stably connected with the vehicle, and the CAN communication protocol is used to realize the efficient transmission of information and instructions between accessories and between accessories and vehicles, thereby improving the intelligence and multifunctionality of the vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0019] Figure 1 This is a structural block diagram of an optional central gateway device according to an embodiment of the present invention;

[0020] Figure 2 This is a structural block diagram of an optional core control circuit according to an embodiment of the present invention;

[0021] Figure 3 Schematic diagram of an optional central gateway device according to an embodiment of the present invention;

[0022] Figure 4 This is a flow chart of an optional accessory control method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0023] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] In order to solve the technical problems existing in the related art, a central gateway device is provided in this embodiment. Figure 1 1 is a system block diagram of a central gateway device according to an embodiment of the present application, the system comprising:

[0026] The housing 11 includes a core control circuit 12 disposed therein, the core control circuit being configured to collaboratively manage the target vehicle 13 and a plurality of accessories 14 included in the target vehicle 13;

[0027] A communication interface 15 for connecting the target vehicle 13 and the multiple accessories 14, the communication interface 15 including a first communication interface 152 for connecting the target vehicle 13 and a second communication interface 154 for connecting the multiple accessories, the communication interface 15 is used for data communication between the target vehicle 13, the multiple accessories 14 and the core control circuit 12.

[0028] Through the above system, a central gateway device is proposed, which is arranged in the target vehicle, including a shell and a communication interface. The shell includes a core control circuit, which is used to coordinate the management of the target vehicle and multiple accessories of the target vehicle; and the communication interface includes a first communication interface with the target vehicle and a second communication interface connected to the multiple accessories. The target vehicle, the core control circuit and the multiple accessories are connected together through the communication interface, and the data communication process is completed through the core control circuit; the above system is adopted to solve the problems of single function, poor information interaction, poor scalability and insufficient adaptability of the existing vehicle and accessory connection control in the prior art.

[0029] Optionally, the structure of the core control circuit 12 is as follows: Figure 2 Shown, including:

[0030] The microcontroller 122 is configured to receive a first control instruction and issue the first control instruction via the CAN communication module 124;

[0031] The CAN communication module 124 is connected to the microcontroller 122 and is used to communicate data with the target vehicle and the multiple accessories based on the CAN bus communication protocol and the multiple communication interfaces;

[0032] The power module 126 is used to supply power to the central gateway device;

[0033] The data processing module 128 is connected to the CAN communication module 124, and is used to receive the communication data forwarded by the CAN communication module, pre-process the communication data, obtain processed communication data, and display the processed communication data on the display device of the target vehicle, wherein the multiple accessories include the display device.

[0034] This embodiment provides more specific components and operation processes, aiming to further illustrate how the central gateway device can efficiently control accessories and communicate with the target vehicle.

[0035] Microcontroller 122: Microcontroller 122 is the brain of the central gateway device, responsible for receiving first control instructions. These instructions can come from the vehicle's onboard system, user interface, or preset automatic control rules. After receiving the instructions, microcontroller 122 forwards these instructions to the corresponding accessories via CAN communication module 124, achieving precise control of the accessories. For example, when a user sets the temperature of a heated seat cushion via the vehicle's touchscreen, microcontroller 122 receives this instruction and sends the temperature setting instruction to the heated seat cushion via a specific CAN communication interface, ensuring that the seat cushion operates according to the user's settings.

[0036] CAN communication module 124: CAN communication module 124 is the communication bridge between microcontroller 122 and accessories. Based on the CAN bus communication protocol, it can communicate data with the target vehicle and multiple accessories through multiple communication interfaces. This means that even if multiple accessories are connected simultaneously, each accessory can exchange data with the CAN communication module through its own independent CAN communication interface, ensuring high-speed and stable data transmission. For example, a tire pressure monitor, heated seat cushion, and driving recorder can be connected to different interfaces simultaneously. The microcontroller 122 can send control commands or receive status data to each of them through CAN communication module 124, enabling independent control of their respective functions and parallel data processing.

[0037] Power Management Module 126: This module is responsible for powering the entire hub gateway device, ensuring stable operation under all circumstances. This module typically includes circuits for voltage regulation, overcurrent protection, and a separate lithium battery to provide a continuous power supply to the hub gateway when the vehicle's power supply is unavailable or unstable. The gateway also connects to the vehicle's power system and automatically charges the lithium battery when the vehicle's power supply is available, ensuring the battery is always operational.

[0038] Data processing module 128: The data processing module 128 is closely connected to the CAN communication module 124. Its main task is to pre-process the received communication data and convert it into a format that can be recognized by the target vehicle display device. This process includes identifying the identifier, data length code and data content in the data frame, performing CRC check to verify the integrity and accuracy of the data, and converting the data into physical quantities such as speed, power, etc. according to preset mapping rules. The processed data will be displayed on the vehicle's dashboard or external display screen to provide users with real-time and intuitive information feedback. For example, when the data processing module receives the raw data of the vehicle's speed, it will convert the format to adapt it to the display standards of different display screens, ensuring that users can see consistent vehicle speed information on multiple display devices.

[0039] In summary, through the coordinated work of the microcontroller, CAN communication module, power management module and data processing module, the central gateway device of the present invention can achieve stable connection and efficient data transmission with the vehicle and multiple accessories, provide flexible and intelligent accessory control and information display functions, and significantly improve the user experience and intelligence level of electric two-wheeled vehicles and motorcycles.

[0040] Optionally, the microcontroller 122 is also used to: receive the first control instruction sent by the target vehicle through the CAN communication module; parse the first control instruction to determine at least one first accessory corresponding to the first control instruction, and determine the sub-control instruction corresponding to each first accessory, wherein the multiple accessories include the at least one first accessory; and send each sub-control instruction to the corresponding first accessory through the CAN communication module.

[0041] This embodiment explains in depth how the microcontroller 122 processes the first control instruction from the target vehicle and accurately distributes it to the corresponding accessories, thereby implementing a complex and sophisticated control process. The following is a detailed description of this embodiment:

[0042] Microcontroller 122 receives control instructions: When the control system of the target vehicle (i.e., electric two-wheeled vehicle or motorcycle) issues a first control instruction, these instructions are transmitted via the vehicle's CAN bus system to the CAN communication module 124 of the central gateway. Microcontroller 122 closely monitors the CAN communication module and immediately receives any new control instructions it detects.

[0043] Parsing the Control Instruction: After receiving the first control instruction, the microcontroller 122 first parses it. This process involves identifying key information within the instruction, including the source, type, and the intended accessory. For example, if the first control instruction is to adjust the temperature of a heated seat cushion, the microcontroller will extract this specific requirement from the instruction.

[0044] Determining Target Accessories and Sub-Commands: After parsing the first control command, microcontroller 122 further determines which specific accessories, namely, at least one first accessory, the command applies to. It also breaks down the first control command into several sub-commands, each corresponding to an operation on a specific accessory. For example, a control command might include two requests: adjusting the heated seat temperature and displaying the current speed. The microcontroller would then split the command into two sub-commands: "Set heated seat temperature" and "Update speed information."

[0045] Sending Sub-Control Instructions: After parsing and splitting the control instructions, microcontroller 122 sends each sub-control instruction to the corresponding first accessory via CAN communication module 124. Because the central gateway device is designed with multiple independent CAN communication interfaces, different accessories can receive instructions through their own interfaces, avoiding command conflicts and data aliasing. For example, the "heated seat temperature setting" sub-command will be sent to the heated seat via a designated CAN interface, while the "speed information update" sub-command will be sent to the display device via another interface for real-time updates.

[0046] Through this process, the microcontroller ensures that each accessory receives the correct control instructions, enabling precise and efficient functional control. This mechanism not only simplifies the interaction between the vehicle control system and accessories, but also significantly improves control accuracy and response speed, bringing a more intelligent and convenient user experience to users of electric two-wheelers and motorcycles.

[0047] In summary, the microcontroller plays a core role in this embodiment. It can not only receive and parse control instructions from the vehicle, but also further split the instructions and accurately send each sub-instruction to the relevant accessories, ensuring the flexibility and efficiency of the central gateway device in the multi-accessory collaborative control scenario.

[0048] Optionally, the microcontroller 122 is also used to: receive the vehicle status information of the target vehicle in real time through the CAN communication module; match the preset control rules according to the vehicle status information, and generate a second control instruction based on the matching result; and send the second control instruction to the second accessory among the multiple accessories through the CAN communication module.

[0049] This embodiment demonstrates how the microcontroller 122 utilizes real-time vehicle status information to automatically generate and execute a second control instruction, thereby intelligently controlling a second accessory on the electric two-wheeled vehicle or motorcycle in response to the vehicle's dynamic environment and state changes. Specifically, the processing flow includes:

[0050] Real-time vehicle status information reception: The microcontroller 122 continuously monitors the target vehicle's real-time status information transmitted via the CAN bus via the CAN communication module. This information may include vehicle speed, battery charge, engine temperature, ambient temperature, brake status, steering signals, etc. Real-time reception of this data allows the microcontroller to instantly understand the vehicle's operating status and external environmental conditions.

[0051] Matching Preset Control Rules: After receiving vehicle status information, microcontroller 122 matches this information with preset control rules. Preset control rules are predefined based on the specific needs of the vehicle and the functional characteristics of the accessories, aiming to achieve automated and intelligent accessory control. For example, preset rules may include: automatically turning on heated gloves and heated seats when the vehicle speed exceeds 30 km / h and the ambient temperature is below 5°C; and automatically reducing the brightness of the ambient lighting to conserve power when the battery charge drops below 20%.

[0052] Generating Second Control Instructions: After matching a pre-set control rule that meets the requirements, the microcontroller 122 automatically generates corresponding second control instructions. These instructions are generated based on the current vehicle state information and the logical judgment results of the pre-set rules. The purpose is to automatically adjust or control the function of the second accessory to adapt to the dynamically changing vehicle environment or improve vehicle operating efficiency.

[0053] Sending a Second Control Command to a Second Accessory: After generating the second control command, microcontroller 122 transmits the command to a second accessory among the multiple accessories via the CAN communication module. "Second accessories" here refer to accessories that automatically adjust their functions based on vehicle status information, such as heated gloves, automatic wiper systems, and adaptive lighting control. For example, if the generated command is to turn on heated gloves, the microcontroller transmits this command to the heated gloves via a specific CAN communication interface, ensuring their automatic activation when needed.

[0054] Through this process, the central gateway device automatically executes the secondary control instructions based on real-time vehicle status information, intelligently controlling the secondary accessory, thereby improving vehicle safety, comfort, and energy efficiency. This intelligent control based on real-time data brings a new level of automation to electric two-wheelers and motorcycles, making the driving experience safer, more convenient, and more intelligent.

[0055] In summary, the microcontroller 122 plays the role of an automated control engine in this embodiment. It can utilize real-time vehicle status information, automatically match preset control rules, generate and execute a second control instruction, and realize intelligent control of the second accessory, thereby significantly improving the adaptability and intelligence level of electric two-wheeled vehicles and motorcycles in complex environments.

[0056] In an optional embodiment, the present invention also integrates a variety of environmental sensors (such as temperature sensors, humidity sensors, light sensors, etc.) in the central gateway to monitor the environmental conditions around the vehicle in real time.

[0057] Based on the above environmental sensors, the present invention proposes an adaptive control strategy for automatically adjusting the working state of vehicle accessories according to the real-time environmental data collected by the environmental sensors, for example:

[0058] When the ambient temperature is lower than a certain threshold, the heated seat cushion is automatically activated and adjusted to the appropriate temperature.

[0059] When the light intensity is low, the vehicle's lighting system brightness is automatically adjusted, or the user is reminded to turn on the lights.

[0060] According to the humidity sensor data, the vehicle's anti-fog system is automatically adjusted to ensure driving safety.

[0061] In another optional embodiment, the present invention also integrates a data analysis module in the central gateway to monitor and analyze the operating data of the vehicle and accessories in real time, use machine learning algorithms to predict potential failures of the vehicle, and send early warning signals to users in advance.

[0062] On the other hand, the data analysis module can also intelligently optimize the power management strategy based on the vehicle's driving status and the usage of accessories, extend the vehicle's battery life, and remind users to use accessories reasonably to save power.

[0063] Optionally, the data processing module 128 is further used to: upon receiving the communication data, identify the identifier, data length code and data content in the communication data according to the CAN bus communication protocol to verify the data format of the communication data; upon determining that the data format passes the verification, verify the integrity and accuracy of the data through a CRC verification algorithm, and eliminate erroneous data in the communication data according to the verification result to obtain filtered communication data; map the filtered communication data to the vehicle parameters of the target vehicle according to preset mapping rules, and synchronize the vehicle parameters to the display device in real time.

[0064] This embodiment explains in detail how the data processing module 128 processes the communication data received via the CAN bus communication protocol, ensures the accuracy and integrity of the data, converts it into vehicle parameters, and synchronizes it to the display device in real time. The specific steps are as follows:

[0065] Identifying the communication data format: Upon receiving communication data, the data processing module 128 first verifies the data format based on the CAN bus communication protocol. This process involves identifying key fields within the data frame, including the identifier (ID), data length code (DLC), and data content. The ID determines the priority and purpose of the data frame, the DLC indicates the length of the data segment, and the data content contains specific vehicle status information or control signals.

[0066] Data format verification: Data processing module 128 checks the identifier, data length code, and data content to ensure that the data is formatted correctly according to the CAN bus communication protocol. If the data format passes verification—that is, the identifier, data length code, and data content are as expected—the module proceeds with further processing. Conversely, if the data format is incorrect, the module ignores or discards the data frame to avoid errors in subsequent processing.

[0067] CRC Verification and Error Data Removal: For properly formatted communication data, the data processing module 128 further verifies the integrity and accuracy of the data using a CRC (Cyclic Redundancy Check) algorithm. CRC verification detects bit errors that may have occurred during transmission by calculating the checksum of the data frame and comparing it with the checksum carried in the transmitted data. If the CRC verification passes, the module retains the data. If the CRC verification fails, the module deems a data transmission error and removes the corresponding data frame, preventing erroneous information from affecting the normal operation of the vehicle or the user's accurate understanding of the vehicle's status.

[0068] Mapping data into vehicle parameters: After filtering the communication data through format and CRC checks, the data processing module 128 converts it into vehicle parameters according to pre-set mapping rules. These rules typically include data unit conversion, range adjustment, and correspondence with specific vehicle parameters, ensuring that the data can be displayed in the correct format and semantics on the target vehicle's instrument panel or external display. For example, "0x3F5" in the communication data may represent the vehicle's current speed. After conversion according to the mapping rules, the data processing module will display it as "45 km / h."

[0069] Finally, the data processing module 128 synchronizes the converted vehicle parameters to the display device in real time. This synchronization process can be carried out through communication methods such as the CAN bus, 485 interface, or serial port. This ensures that users can view accurate vehicle status information such as speed, battery life, and tire pressure in a timely manner, whether on the vehicle's built-in display screen or an external smartwatch, mobile app, or large-screen monitor, allowing them to make reasonable driving decisions and improve driving safety and convenience.

[0070] In summary, the data processing module 128 in the present invention undertakes the key tasks of data format verification, erroneous data elimination and data mapping conversion. Through a series of rigorous processing processes, it ensures the accuracy of communication data and real-time updating of vehicle parameters, providing a solid data foundation for the intelligent driving of electric two-wheeled vehicles and motorcycles.

[0071] In an exemplary embodiment, the first communication interface 152 includes at least one of the following: a CAN communication interface, a 485 interface, and a single serial port; the second communication interface 154 includes at least one of the following: a composite interface for power transmission and signal transmission, and a data transmission interface for media data transmission.

[0072] This embodiment introduces in detail the design and functions of two types of communication interfaces on the central gateway device - the first communication interface 152 and the second communication interface 154, aiming to ensure that diverse communication needs and data transmission can be achieved between the device and vehicles and accessories.

[0073] 1. First communication interface 152:

[0074] 1.1. The CAN (Controller Area Network) communication interface is a high-speed communication network widely used in the automotive industry, particularly suitable for applications with high real-time requirements, such as collecting vehicle sensor data and sending control commands. Through the ISO 11898-2 standard CAN bus interface, the central gateway enables efficient and stable data exchange with the onboard systems of electric two-wheelers and motorcycles, achieving real-time transmission of complex vehicle status information and highly reliable component control.

[0075] 1.2. The RS-485 communication interface is a balanced electrical standard primarily used for long-distance, wide-area industrial data communications. It supports full-duplex and half-duplex communication and has strong anti-interference capabilities. If the target vehicle's built-in communication interface is a RS-485 interface, the hub gateway can connect to the vehicle through this interface to transmit information such as vehicle status and control commands. Although the transmission rate is slightly lower than CAN communication, it can still meet the information transmission needs of most vehicles.

[0076] 1.3. A single serial port, also known as a serial communication interface, is another common communication method, particularly suitable for short-distance, simple communication scenarios. It is low-cost and easy to implement, suitable for communication environments with small data volumes and relatively low real-time requirements. When connecting to older vehicles or vehicles with custom interfaces, a single serial port provides a flexible communication option for the hub gateway, ensuring that the gateway can achieve basic information transmission even on vehicles without CAN or 485 interfaces.

[0077] 2. Second communication interface 154:

[0078] 2.1. A composite interface for power and signal transmission. A composite interface is a communication interface that integrates both power and signal transmission functions. In hub gateway devices, composite interfaces are typically used to connect accessories such as heated seat cushions and ambient lighting that require both power and control signal inputs. It provides a stable power supply while ensuring accurate transmission of control commands, simplifies accessory connection, avoids the complex wiring of separate power and signal cables, and makes installation and maintenance easier.

[0079] 2.2. A data transmission interface for media data transmission. The data transmission interface focuses on the transmission of media data, such as video, audio and other multimedia files. In the central gateway device of the present invention, such an interface is mainly used to connect accessories such as driving recorders, external display screens or audio systems. The high-definition video captured by the driving recorder can be transmitted to the central gateway in real time through this interface, and then synchronized to the user's mobile phone app or external display screen, so that the user can view and play back the driving video at any time; similarly, the data transmission interface can also be used to transmit audio data such as music and navigation voice, so as to achieve seamless connection between the multimedia entertainment and information systems in the car.

[0080] Through the integrated design of the first communication interface 152 and the second communication interface 154, the central gateway device can adapt to a wide range of communication needs, ensuring not only a stable connection with the vehicle but also efficient communication with a variety of accessories. This design flexibility and compatibility greatly expands the central gateway's applicability. Whether it is modern smart electric two-wheelers and motorcycles, older models, or accessories with special communication requirements, the central gateway can provide the appropriate connection method and data transmission services, thereby promoting the intelligent upgrade of vehicles.

[0081] In summary, in this embodiment, the design of the first communication interface 152 and the second communication interface 154 fully considers various scenarios of communication between vehicles and accessories. Through diversified interface types and transmission protocols, the central gateway device can achieve efficient and stable information exchange with vehicles and accessories, providing users of electric two-wheeled vehicles and motorcycles with a richer and more intelligent driving experience.

[0082] Optionally, in addition to the existing CAN, 485 and single serial port communication methods, the central gateway device in the present invention also adds support for multiple wireless communication protocols such as Bluetooth, WIFI, NFC, etc., making the connection between the vehicle and accessories more flexible.

[0083] Based on the above communication protocols, the most appropriate communication protocol can be automatically selected for data transmission according to the actual communication needs of the vehicle and accessories. For example, it can switch to WiFi when high-bandwidth transmission is required and switch to Bluetooth in low-power scenarios.

[0084] Optionally, the power module 126 includes an independent battery, which is connected to the vehicle power supply of the target vehicle and is configured to charge the independent battery through the vehicle power supply when the power level of the independent battery is less than a preset threshold.

[0085] This embodiment describes the charging mechanism of the independent battery in the power module 126 and its intelligent interaction with the target vehicle power supply, ensuring that the hub gateway device can maintain a stable working state under any circumstances. The following is a detailed description:

[0086] Power module 126 is equipped with an independent battery to power the hub gateway device when the vehicle power is unavailable or unstable. This design is particularly important for electric two-wheeled vehicles and motorcycles, as the vehicle may not be able to continuously power external devices before and after startup, when the battery is low, or when a power failure occurs. The presence of an independent battery ensures that the hub gateway can continue to operate even if the vehicle power fails, ensuring uninterrupted communication between the vehicle and accessories.

[0087] The power module 126 is also designed with an interface for electrical connection to the target vehicle's power supply. When the vehicle is operating normally, the hub gateway device automatically connects to the vehicle's power supply, using the vehicle's power to charge the independent battery. This mechanism ensures that the independent battery remains charged during vehicle use, reducing the risk of device malfunction due to battery depletion.

[0088] In this embodiment, the power module 126 incorporates an intelligent charging strategy. It continuously monitors the charge level of the independent battery and automatically triggers a charging process when the charge level falls below a preset threshold. For example, the preset threshold could be set at 30%. Once the battery charge level falls below this level, the power module initiates the charging process by connecting to the vehicle power source, converting energy from the vehicle power source into power for the independent battery until the charge level returns to a safe level.

[0089] In addition to the charging function, the power module 126 also has an automatic switching and protection mechanism. When the independent battery is fully charged, the device will prioritize battery power to conserve vehicle power. When the battery power falls below a preset threshold, the power module will automatically switch to vehicle power supply mode and start the charging process until the battery power is restored. In addition, the power module is equipped with safety mechanisms such as overcurrent protection and overcharge protection to ensure that the independent battery and the entire hub gateway device will not be damaged during the charging or power supply process, ensuring the long-term stable operation of the device.

[0090] In short, the intelligent connection and charging strategy between the independent battery in power module 126 and the vehicle power supply are key to the stable operation of the hub gateway device. This mechanism not only ensures that the device can continue to operate even when the vehicle power supply is unreliable, but also effectively extends the service life of the independent battery through automatic charging and power conservation strategies, thereby improving the overall reliability of the hub gateway device and the user experience.

[0091] In an exemplary embodiment, the present invention proposes an optional hub gateway device, the structure of which is as follows: Figure 3 As shown, it includes: a central gateway body 1; multiple CAN communication interfaces 2 that can be connected to accessories; multiple communication interfaces 3 for connecting to vehicles (i.e. the target vehicle mentioned above); an internal battery 4 of the central gateway; and a power interface 5 for connecting to the vehicle.

[0092] The central gateway 1 comprises a housing, core control circuitry housed within it, and communication interfaces for connecting to vehicles and accessories. The core control circuitry includes a microcontroller, a CAN communication module, a power management module, and a data processing module. The microcontroller, serving as the central gateway's control core, utilizes advanced algorithms and a real-time operating system to efficiently analyze data, coordinating and processing all data and instructions between the gateway, the vehicle, and accessories.

[0093] The CAN communication module is based on the CAN bus communication protocol and is equipped with no less than two independent CAN communication interfaces. Each CAN communication interface has independent data transmission and reception functions and can be connected to different external accessories. Through multiple CAN communication interfaces, parallel, high-speed and stable data transmission is achieved between the central gateway and multiple accessories, ensuring that information and instructions can be conveyed accurately. For example, when the external accessories connected to the central gateway at the same time include heated seat cushions, tire pressure monitors and driving recorders, each accessory can exchange data with the gateway through different CAN communication interfaces without interfering with each other. Among them, the CAN communication module transmits the temperature setting instructions sent by the vehicle to the heated seat cushion through the corresponding interface, and at the same time feeds back the working status of the heated seat cushion to the vehicle through the interface; transmits the tire pressure data collected by the tire pressure monitor to the gateway for processing, etc.

[0094] The power management module is powered by an independent lithium battery (i.e., the aforementioned internal battery 4 within the central gateway). This provides a stable power supply for the entire central gateway and includes features such as voltage stabilization and overcurrent protection, ensuring stable operation in the complex power environments of vehicles. The gateway also connects to the vehicle's power supply, using it to charge the independent battery and ensure sufficient battery charge.

[0095] The data processing module uses protocol parsing rules and algorithms to parse and process data received by the CAN communication module. Its workflow is as follows: First, it identifies the identifier, data length code, and data content within the data frame according to the CAN bus protocol. Then, it uses a CRC checksum algorithm to verify data integrity and accuracy, eliminating erroneous data. Subsequently, based on pre-set mapping rules, the parsed data is converted into corresponding physical quantities. For example, a linear transformation algorithm is used to convert raw data such as vehicle speed and battery level into a format suitable for different external display screens. Ultimately, this data is converted into instructions or information that can be recognized by the microcontroller and accessories.

[0096] The communication interface includes an interface for connecting to the vehicle and an interface for connecting to accessories. The interface for connecting to the vehicle supports multiple communication methods such as CAN, 485 or a single serial port. The corresponding connection method can be selected to connect to the vehicle according to the type of communication interface of the vehicle itself. When the vehicle has a CAN bus interface, the gateway is connected to the vehicle through the CAN interface, and the high speed and reliability of CAN communication are used to achieve rapid interaction of large amounts of data; when the vehicle only has a 485 interface or a single serial port, the gateway is connected to the vehicle through the 485 interface or a single serial port to ensure that the gateway can adapt to various vehicles and achieve stable communication with the vehicle. The interface for connecting accessories includes various types, such as a power and signal composite interface for connecting accessories such as heated seat cushions, and a video and data transmission interface for external display screens. Through these communication interfaces, the central gateway can achieve fast and stable connection with various accessories with different functions and interface standards.

[0097] The following further describes the usage scenarios and functions of the above-mentioned central gateway device in combination with two optional embodiments:

[0098] Example 1: Multi-accessory collaborative control and vehicle adaptation application:

[0099] A user owns an older electric motorcycle equipped with only a single serial communication interface. The user installed the central gateway of the present invention on the motorcycle and connected the gateway to the vehicle via the single serial port. The user also connected an external heated seat cushion, a tire pressure monitor, and an external display screen. The heated seat cushion is connected to one of the gateway's CAN communication interfaces via a power and signal composite interface, the tire pressure monitor is connected to another CAN communication interface, and the external display screen is connected to the gateway via video and data transmission interfaces.

[0100] When riding in cold weather, the user issues a heated seat cushion heating command through the vehicle's onboard computer system. The command is transmitted via a single serial port to the central gateway, which then sends the command to the heated seat cushion via the corresponding CAN communication interface, enabling manual heating. At the same time, when the vehicle detects that the ambient temperature is below 5°C, the central gateway automatically turns on the heated seat cushion and adjusts the heating level based on temperature changes. The tire pressure monitor collects tire pressure data in real time and transmits it to the gateway via the CAN communication interface. After processing by the data processing module, it not only feeds back abnormal tire pressure information to the vehicle's onboard computer system, but also synchronously transmits tire pressure data to an external display screen for display. While the vehicle is in motion, information such as the vehicle's speed and battery level is transmitted to the central gateway via a single serial port, which then displays it synchronously on the external display screen for easy viewing by the user.

[0101] Example 2: Efficient communication application between a new vehicle and multiple accessories:

[0102] The user's new electric two-wheeler has an advanced CAN bus communication interface. The user connects the central gateway to the vehicle through the CAN interface and connects to a driving recorder, ambient lighting, and a large external display. The driving recorder and ambient lighting are connected to different CAN communication interfaces of the gateway.

[0103] When the user starts the vehicle, the dashcam automatically starts recording, and the video data it captures is transmitted to the central gateway via the CAN communication interface. The user can use the mobile phone app to connect to the vehicle's on-board system through the cellular data network, WiFi or Bluetooth function, and then the on-board system connects to and accesses the central gateway to obtain the driving record video. The ambient lights installed in the front, back, left, right or bottom of the vehicle body obtain the vehicle's driving status (such as acceleration, deceleration) or the music rhythm recognized by the on-board system through the central gateway, and then automatically control the light color and flashing frequency according to the set rules. The vehicle's speed, power, navigation and other information are quickly transmitted to the central gateway via the CAN bus. After being processed by the data processing module, it is synchronously displayed on the external display screen, providing users with a clear and comprehensive display of vehicle information.

[0104] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0105] The embodiment of the present application also provides an accessory control method, which is applied to the above-mentioned central gateway device. The process is as follows: Figure 4 As shown, Figure 4 : is a flowchart of an accessory control method according to an embodiment of the present application, comprising the following steps:

[0106] Step S402: Connecting the plurality of third communication interfaces corresponding to the plurality of accessories to the plurality of communication interfaces in a one-to-one correspondence, and identifying the accessory types of the plurality of accessories through a CAN communication module to establish a communication connection between the central gateway device and the plurality of accessories, wherein the central gateway device includes the CAN communication module;

[0107] Step S404: receiving a first control instruction sent by the target vehicle through the first communication interface, and sending the first control instruction to a first accessory corresponding to the first control instruction through the CAN communication module to control the first accessory.

[0108] Through the above method, the accessory is first connected to the CAN communication interface of the central gateway through the corresponding communication interface. The central gateway automatically identifies the accessory type through the CAN communication module, performs initialization configuration, and establishes a communication connection with the accessory. The user then issues a control instruction for the accessory (such as a temperature adjustment instruction for a heated seat cushion) through the vehicle's onboard system or other control terminal. The instruction is transmitted to the central gateway through the connection channel between the vehicle and the gateway (CAN, 485 or a single serial port). After receiving the instruction, the microcontroller of the central gateway sends the instruction to the corresponding accessory through the corresponding CAN communication module interface to realize manual control of the accessory. The above method solves the problems of single function, poor information interaction, poor scalability, and insufficient adaptability in the existing vehicle and accessory connection control in the prior art.

[0109] An embodiment of the present application further provides a storage medium, which includes a stored program, wherein the program executes any of the above methods when it is run.

[0110] Optionally, in this embodiment, the storage medium may be configured to store program codes for executing the following steps:

[0111] S1, connecting the multiple third communication interfaces corresponding to the multiple accessories to the multiple communication interfaces in a one-to-one correspondence, and identifying the accessory types of the multiple accessories through a CAN communication module to establish a communication connection between the central gateway device and the multiple accessories, wherein the central gateway device includes the CAN communication module;

[0112] S2: Receive a first control instruction sent by the target vehicle through the first communication interface, and send the first control instruction to a first accessory corresponding to the first control instruction through the CAN communication module to control the first accessory.

[0113] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store program codes.

[0114] An embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0115] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0116] Optionally, in this embodiment, the processor may be configured to execute the following steps through a computer program:

[0117] S1, connecting the multiple third communication interfaces corresponding to the multiple accessories to the multiple communication interfaces in a one-to-one correspondence, and identifying the accessory types of the multiple accessories through a CAN communication module to establish a communication connection between the central gateway device and the multiple accessories, wherein the central gateway device includes the CAN communication module;

[0118] S2: Receive a first control instruction sent by the target vehicle through the first communication interface, and send the first control instruction to a first accessory corresponding to the first control instruction through the CAN communication module to control the first accessory.

[0119] An embodiment of the present application further provides a computer program product, comprising a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program product, and when the computer program is executed by a processor, the steps of the method described in each embodiment of the present application are implemented.

[0120] Optionally, in this embodiment, the computer program may be configured to implement the following steps when executed by a processor:

[0121] S1, connecting the multiple third communication interfaces corresponding to the multiple accessories to the multiple communication interfaces in a one-to-one correspondence, and identifying the accessory types of the multiple accessories through a CAN communication module to establish a communication connection between the central gateway device and the multiple accessories, wherein the central gateway device includes the CAN communication module;

[0122] S2: Receive a first control instruction sent by the target vehicle through the first communication interface, and send the first control instruction to a first accessory corresponding to the first control instruction through the CAN communication module to control the first accessory.

[0123] Optionally, specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0124] The scope of this application is defined by the appended claims rather than the foregoing description and is therefore intended to encompass within this application all changes that come within the meaning and range of equivalents of the claims. Any reference signs in the claims should not be construed as limiting the claims to which they relate. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in a device claim may also be implemented by one unit or device through software or hardware. Words such as "first" and "second" are only used to distinguish the description and do not indicate any particular order, nor should they be understood as indicating or implying relative importance.

[0125] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art may easily propose variations or substitutions within the technical scope disclosed in the present application, and such variations or substitutions shall be encompassed within the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the scope of protection of the claims, and the above embodiments shall be regarded as exemplary and non-limiting.

Claims

1. A central gateway device, characterized in that: Set on the target vehicle, including: a housing, comprising a core control circuit disposed within the housing, the core control circuit being configured to collaboratively manage the target vehicle and a plurality of accessories included in the target vehicle; A communication interface for connecting the target vehicle and the multiple accessories, the communication interface including a first communication interface for connecting the target vehicle and a second communication interface for connecting the multiple accessories, the communication interface being used for data communication between the target vehicle, the multiple accessories and the core control circuit.

2. The central gateway device according to claim 1, characterized in that: The core control circuit includes: A microcontroller, configured to receive a first control instruction and issue the first control instruction via a CAN communication module; The CAN communication module is connected to the microcontroller and is used to perform data communication with the target vehicle and the plurality of accessories based on the CAN bus communication protocol and the plurality of communication interfaces; A power module, used to supply power to the central gateway device; A data processing module is connected to the CAN communication module, and is used to receive the communication data forwarded by the CAN communication module, pre-process the communication data, obtain processed communication data, and display the processed communication data on the display device of the target vehicle, wherein the multiple accessories include the display device.

3. The central gateway device according to claim 2, characterized in that: The microcontroller is further configured to: Receiving the first control instruction sent by the target vehicle through the CAN communication module; Parsing the first control instruction to determine at least one first accessory corresponding to the first control instruction, and determining a sub-control instruction corresponding to each first accessory, wherein the plurality of accessories includes the at least one first accessory; Each sub-control instruction is sent to the corresponding first accessory through the CAN communication module.

4. The central gateway device according to claim 2, characterized in that: The microcontroller is further configured to: Receiving vehicle status information of the target vehicle in real time through the CAN communication module; Matching a preset control rule according to the vehicle state information, and generating a second control instruction according to the matching result; The second control instruction is sent to a second accessory among the multiple accessories through the CAN communication module.

5. The central gateway device according to claim 2, characterized in that: The data processing module is further used to: Upon receiving the communication data, identifying an identifier, a data length code, and data content in the communication data according to the CAN bus communication protocol to verify a data format of the communication data; If it is determined that the data format passes the verification, verifying the integrity and accuracy of the data through a CRC verification algorithm, and eliminating erroneous data in the communication data according to the verification result to obtain filtered communication data; The filtered communication data is mapped into vehicle parameters of the target vehicle according to preset mapping rules, and the vehicle parameters are synchronized to the display device in real time.

6. The central gateway device according to claim 1, characterized in that: The first communication interface includes at least one of the following: a CAN communication interface, a 485 interface, a single serial port; the second communication interface includes at least one of the following: a composite interface for power transmission and signal transmission, a data transmission interface for media data transmission.

7. The central gateway device according to claim 2, characterized in that: The power module includes an independent battery, which is connected to the vehicle power supply of the target vehicle and is used to charge the independent battery through the vehicle power supply when the power level of the independent battery is less than a preset threshold.

8. An accessory control method based on the central gateway device according to any one of claims 1 to 7, characterized in that: include: Connecting the plurality of third communication interfaces corresponding to the plurality of accessories to the plurality of communication interfaces in a one-to-one correspondence, and identifying the accessory types of the plurality of accessories through a CAN communication module to establish a communication connection between the hub gateway device and the plurality of accessories, wherein the hub gateway device includes the CAN communication module; A first control instruction sent by the target vehicle is received through the first communication interface, and the first control instruction is sent to a first accessory corresponding to the first control instruction through the CAN communication module to control the first accessory.

9. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to claim 8 through the computer program.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to claim 8 is implemented.