Electric power-assisted bicycle parameter setting method and system
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- NEW ANANDA DRIVE TECHN SHANGHAI
- Filing Date
- 2025-07-18
- Publication Date
- 2026-07-23
AI Technical Summary
Existing electric bicycle controller parameter setting methods are inefficient and cannot efficiently match different bicycle models or motor types, resulting in a reduced user riding experience. Furthermore, the parameter settings of smart devices are complex and pose safety hazards.
The instrument and electric-assisted bicycle are connected via CAN bus communication. The host computer and the upper computer communication switching circuit and safety verification are used to achieve efficient reading and setting of parameters, avoiding the need to connect to external terminal devices one by one. CAN extended frames and data security verification are used to ensure data transmission security.
It improves the efficiency of parameter setting, simplifies the debugging and modification process, ensures data transmission security, prevents unauthorized device tampering, and enhances the user riding experience and system security.
Smart Images

Figure CN2025109215_23072026_PF_FP_ABST
Abstract
Description
Electric-assisted bicycle parameter setting method and system Technical Field
[0001] This invention relates to the field of signal transmission, and more specifically, to a method and system for setting parameters of an electric-assisted bicycle. Background Technology
[0002] In recent years, with the rise of cycling culture, the integration of battery technology and smart functions, and increased awareness of environmental sustainability, the e-bike industry has developed rapidly. The e-bike controller, as the core component of an e-bike, controls the entire e-bike system, including the motor, instrument panel, battery, lights, and anti-lock braking system. However, different models or motor types require different controller software. These software differences typically lie in motor and control parameters, which are usually written into the controller along with the software during manufacturing and stored as factory parameters in the controller's internal memory. If subsequent adjustments or modifications are made by the user, the actual controller parameters may not match the factory parameters, leading to a decreased riding experience or even system malfunction.
[0003] Patent document CN101486322A discloses a parameter setting system and method for an electric bicycle controller. Currently, existing parameter setting methods for electric-assist bicycle controllers all rely on external parameter setting terminals or host computer software. The electric-assist bicycle controller needs a communication interface and communicates with the parameter setting terminal or host computer software via serial communication, allowing the terminal or software to read and write controller parameters. With the increasing intelligence of electric-assist bicycles, devices in the overall vehicle control system, such as instruments, batteries, and anti-lock braking systems, all require similar parameter settings. If this method is used to connect and set the parameters of each of these intelligent devices individually, it will lead to low parameter setting efficiency. Summary of the Invention
[0004] To address the shortcomings of existing technologies, the purpose of this invention is to provide a method and system for setting parameters of an electric-assisted bicycle.
[0005] According to the present invention, a parameter setting system for an electric-assisted bicycle includes a host computer and an instrument. The instrument is connected to other devices of the electric-assisted bicycle via a CAN bus. The other devices include a motor controller. The instrument and each of the other devices have a node device ID.
[0006] The instrument includes a host, and the host includes a communication switching circuit that can be electrically connected to external devices.
[0007] The host computer has two operating modes: a power mode and a parameter setting mode. In the power mode, the communication switching circuit provides power to the outside world. In the parameter setting mode, the host computer communicates with the host computer through the communication switching circuit.
[0008] The host computer controls the host to send and receive CAN messages, and reads and / or sets the parameters of the other devices accordingly.
[0009] Furthermore, the communication switching circuit includes: an MCU module, a switching module, and a USB module;
[0010] The switching module includes: a first analog switch and a second analog switch;
[0011] The first analog switch includes a first control terminal, a second control terminal, a first common terminal, a first normally closed terminal, a second common terminal, and a second normally closed terminal. The first control terminal and the second control terminal are respectively connected to the first IO terminal and the second IO terminal of the MCU module. The first common terminal and the second common terminal are respectively connected to the D- terminal and the D+ terminal of the USB module. When the first control terminal is high, the first common terminal and the first normally closed terminal are connected. When the second control terminal is high, the second common terminal and the second normally closed terminal are connected. The first normally closed terminal and the second normally closed terminal are used for charging protocol communication.
[0012] The second analog switch includes a third control terminal, a fourth control terminal, a third common terminal, a third normally closed terminal, a fourth common terminal, and a fourth normally closed terminal. The third control terminal and the fourth control terminal are respectively connected to the third IO terminal and the fourth IO terminal of the MCU module. The third common terminal and the fourth common terminal are respectively connected to the D- terminal and the D+ terminal of the USB module. When the third control terminal is high, the third common terminal and the third normally closed terminal are connected. When the fourth control terminal is high, the fourth common terminal and the fourth normally closed terminal are connected. The third normally closed terminal and the fourth normally closed terminal are used for serial communication.
[0013] Furthermore, the instrument also includes a button module, which is electrically connected to the host and controls the host's power switch, control, and operating mode switching.
[0014] Furthermore, the other devices also include: a battery and an anti-lock braking system (ABS) module.
[0015] Furthermore, the default operating mode of the host after powering on is power mode. After the host computer is disconnected from the host, the operating mode of the host automatically switches to power mode.
[0016] Furthermore, when the host computer receives data sent by the host computer, it first performs a security check on the sent data, and only after the check is successful does it send and receive CAN messages.
[0017] Furthermore, the CAN message uses a CAN extended frame, which includes an ID segment, an ID extension segment, and a data segment, etc.
[0018] The ID segment and ID extension segment include the protocol data unit format and the protocol data unit specific field;
[0019] The protocol data unit format is divided into the first protocol data unit format and the second protocol data unit format;
[0020] When sending a broadcast CAN message, the message number is configured using the second protocol data unit format between the first protocol data unit format and the second protocol data unit format, and the message number extension content is configured in the specific field of the protocol data unit.
[0021] When sending a directional CAN message, select to use the first protocol data unit format to configure the message number, and configure the device node ID for receiving the message in a specific field of the protocol data unit;
[0022] The device receiving the CAN message parses the data segment of the CAN message to read and / or set the corresponding parameters.
[0023] Furthermore, the ID field also includes: priority and reserved bits;
[0024] The device receiving CAN messages sorts and parses the received CAN messages according to the priority.
[0025] The reserved bits are left for the device manufacturer to configure themselves.
[0026] Furthermore, the ID extension segment also includes: the source address;
[0027] When a device sending a CAN message broadcasts a CAN message, it configures the device node ID for sending the CAN message at the source address.
[0028] According to the present invention, a parameter setting method for an electric-assisted bicycle is provided. The electric-assisted bicycle parameter setting system is used, the host computer is connected to the host computer, the working mode of the host computer is switched to the parameter setting mode, and the host computer controls the host computer to send and receive CAN messages to read and / or set the parameters of the corresponding other devices.
[0029] Compared with the prior art, the electric-assisted bicycle parameter setting method and system provided by the present invention have at least one or at least some of the following beneficial effects:
[0030] This invention avoids the cumbersome process of connecting each device of an electric-assist bicycle individually with wiring harnesses and setting parameters through different host computer software. It also eliminates the need for external terminal devices, reducing the complexity of the entire system and significantly improving the efficiency of device parameter setting. Furthermore, this parameter setting method does not require disconnecting the various devices in the electric-assist bicycle control system, making it easier for post-manufacturing debugging and modification.
[0031] Meanwhile, data security and anti-tampering verification are added to both USB and CAN communication processes, ensuring the security of data during transmission and, to a certain extent, preventing unauthorized devices from tampering with the parameters of electric-assist bicycles, which could lead to security problems in the control system. Attached Figure Description
[0032] Other features, objects, and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0033] Figure 1 is a schematic diagram of the communication method of the present invention;
[0034] Figure 2 is a schematic diagram of the control system of an electric-assisted bicycle;
[0035] Figure 3 is a schematic diagram of the main unit structure of the instrument;
[0036] Figure 4 is a schematic diagram of the overall structure of the instrument;
[0037] Figure 5 is a schematic diagram of the instrument's installation status;
[0038] Figure 6 is a circuit diagram of the communication switching circuit;
[0039] Figure 7 is a schematic diagram of the data frame of a CAN message. Detailed Implementation
[0040] The present invention will now be described in detail with reference to specific embodiments. These embodiments will help those skilled in the art to further understand the present invention, but do not limit the invention in any way. It should be noted that those skilled in the art can make several changes and improvements without departing from the concept of the present invention. These all fall within the scope of protection of the present invention.
[0041] Example 1
[0042] As shown in Figures 1 and 2, the electric-assist bicycle parameter setting system provided by this invention includes a host computer and an instrument. The instrument is connected to other devices of the electric-assist bicycle via a CAN bus. These other devices include a motor controller. Each device, including the instrument, has a node device ID. All node devices share the same communication line and communicate via the CAN communication protocol, forming an integrated network system. Physically, the communication is achieved through twisted-pair cables connecting the instrument to the motor controller, the battery to the motor controller, and the ABS to the motor controller via CAN_H and CAN_L ports.
[0043] Other equipment includes: batteries, anti-lock braking system (ABS) modules, instruments, motor controllers, and ABS, all of which are intelligent devices and can be used as parameter setting objects. The parameter setting method for the electric-assisted bicycle control system provided in this embodiment of the invention allows setting parameters such as language and units for the instrument; setting parameters such as gear, speed limit, and current limit for the motor controller; setting parameters such as the maximum capacity level and remaining capacity level of the battery; and setting parameters such as the wheel cylinder pressure threshold for the ABS. In this embodiment of the invention, the instruments, motor controllers, batteries, and ABS are built-in intelligent devices of the electric-assisted bicycle system and can all act as communication nodes to receive and transmit data with the CAN bus via the CAN communication protocol.
[0044] As shown in Figures 3, 4, and 5, the instrument includes a main unit and a button module. The button module is electrically connected to the main unit, controlling its on / off operation, control functions, and operating mode switching. The main unit includes a communication switching circuit, enabling electrical connection with external devices. The main unit's operating modes include a power mode and a parameter setting mode. In power mode, the communication switching circuit provides power to external devices. In parameter setting mode, the main unit communicates with a host computer via the communication switching circuit. The host computer controls the main unit to send and receive CAN messages and read and / or set parameters for other corresponding devices.
[0045] As shown in Figure 6, the communication switching circuit includes: MCU module 1, switching module 2 and USB module 3. The switching module includes: first analog switch U1 and second analog switch U2.
[0046] The first analog switch U1 includes a first control terminal (pin 2), a second control terminal (pin 3), a first common terminal (pin 6), a first normally closed terminal (pin 5), a second common terminal (pin 8), and a second normally closed terminal (pin 7). The first and second control terminals are connected to the first and second I / O terminals of the MCU module, respectively. The first and second common terminals are connected to the D- and D+ terminals of the USB module, respectively. When the first control terminal is high, the first common terminal and the first normally closed terminal are connected. When the second control terminal is high, the second common terminal and the second normally closed terminal are connected. The first and second normally closed terminals are used for charging protocol communication. Pin 1 of the first analog switch U1 is connected to VCC, and pin 4 is grounded.
[0047] The second analog switch U2 includes a third control terminal (pin 2), a fourth control terminal (pin 3), a third common terminal (pin 6), a third normally closed terminal (pin 5), a fourth common terminal (pin 8), and a fourth normally closed terminal (pin 7). The third and fourth control terminals are connected to the third and fourth I / O terminals of the MCU module, respectively. The third and fourth common terminals are connected to the D- and D+ terminals of the USB module, respectively. When the third control terminal is high, the third common terminal and the third normally closed terminal are connected; when the fourth control terminal is high, the fourth common terminal and the fourth normally closed terminal are connected. The third and fourth normally closed terminals are used for serial communication. Pin 1 of the second analog switch U2 is connected to VCC, and pin 4 is grounded.
[0048] Therefore, by controlling the output of MCU module 1, the host's operating mode can be switched. The physical connection for serial communication can be achieved by connecting the host computer and the main unit using a dual-ended USB-A cable. If the host computer has a USB-C port, a USB-A to USB-C cable can also be used to connect the host computer and the main unit.
[0049] The instrument panel has two main functions. First, it encompasses the display and setting functions of a traditional e-bike instrument panel, such as displaying information like speed, mileage, gear, light status, and battery level while riding. Users can switch gears and display data via the button module and modify settings like brightness and sleep time in the settings menu. Second, it can switch between power mode and parameter setting mode. The default operating mode after the main unit is powered on is power mode. After the host computer is disconnected from the main unit, the main unit's operating mode automatically switches to power mode.
[0050] When the system sets parameters for devices other than the instrument, the instrument receives data sent by the host computer via USB serial communication and performs data security and anti-tampering verification. Upon successful verification, it sends a corresponding CAN message to the CAN bus via the CAN communication protocol. After successfully uploading the CAN message to the CAN bus, the instrument replies to the host computer. During this process, the instrument displays communication status, parameter setting status, and other information. The purpose of data security and anti-tampering verification is to prevent unauthorized devices from tampering with the parameters of the electric-assist bicycle, which could lead to potential control system security issues.
[0051] The host computer software interface displays the communication connection status, "Read" and "Write" operation keys, a device selection interface, and a parameter page. The parameter page displays device parameters and allows switching between pages based on different device names. After the host computer establishes communication with the electric-assist bicycle via the instrument's USB port, users can select a single setting object for parameter settings within the host computer software interface, or select multiple setting objects simultaneously. There are two parameter setting methods: after successful communication between the host computer and the electric-assist bicycle, parameters can be directly edited and written to the setting object in the host computer software; alternatively, existing parameters can be read from the setting object, edited in the host computer software, and then written to the setting object. The host computer software reads and writes device parameters in the form of parameter lists, generating a corresponding parameter list for each device.
[0052] When the system sets the parameters of the instrument, the instrument communicates directly with the host computer via USB serial communication without the need to convert the USB serial communication to CAN communication, thus completing the parameter setting of the instrument.
[0053] As shown in Figure 7, CAN messages use CAN extended frames, which include: ID segment, ID extension segment, and data segment.
[0054] The ID segment and ID extension segment include priority, reserved bits, protocol data unit format, protocol data unit specific fields, and source address.
[0055] Priority: Indicates the priority of this message frame. It is 3 bits long and ranges from 0 to 7, with smaller values indicating higher priority. The receiving device sorts and parses the received messages according to their priority.
[0056] Reserved bit: This bit is reserved and undefined. It is 2 bits long and has a default value of 0. It can be configured by the device manufacturer.
[0057] Protocol Data Unit Format: This refers to the protocol data unit format type and also indicates the message number. It has a length of 8 bits and a data range of 0-255. Data between 0-239 indicates the selection of the first protocol data unit format, while data between 240-255 indicates the selection of the second protocol data unit format.
[0058] Protocol Data Unit (PDU) Specific Fields: These refer to bits specifically defined according to different PDU formats. Specifically, depending on the PDU format, there are two different definitions for these fields, both with a length of 8 bits. When the frame corresponds to the first PDU format, the PDU specific field is defined as the destination address, which refers to the device node ID receiving the message, i.e., the data destination of the current message. When the frame corresponds to the second PDU format, the PDU specific field is defined as the message number extension, where the parameter group extension refers to the extension bits of the data number, with a data range of 0-255.
[0059] Source address: This refers to the device node ID that sent the message, i.e., the data source of the current message, and is 8 bits in length. When a device sends a CAN message, it configures the device node ID for sending the CAN message in the source address.
[0060] Message Number: This refers to the number of different CAN messages, including the reserved bits, the protocol data unit format, and the protocol data unit specific field. The reserved bits are 0 by default. When the message frame is a data frame for a specific destination address, its format is the first protocol data unit format, meaning there are 240 different message numbers, ranging from 0 to 239. When the data frame is a broadcast frame, its format is the second protocol data unit format. The protocol data unit format (240-255) * the protocol data unit specific field (0-255) equals 16 * 256 = 4096 different message numbers, ranging from 61440 to 65535. Regardless of the protocol data unit format, when the message number reaches the maximum number, the next message number for the same source address starts from the initial number.
[0061] When sending a broadcast CAN message, select the second protocol data unit format to configure the message number, and configure the message number extension content in the protocol data unit specific field.
[0062] When sending a directional CAN message, select the first protocol data unit format to configure the message number, and configure the device node ID for receiving the message in the specific field of the protocol data unit.
[0063] The device receiving the CAN message parses the data segment of the CAN message to read and / or set the corresponding parameters.
[0064] To improve the security and integrity of message transmission, a verification process is performed on the data segment before the receiving device parses it. Specifically, the data segment consists of 8 bytes (64 bits), with the last byte being the security checksum. The security checksum is calculated by summing the first 7 bytes and taking the lower 8 bits; if they match, the verification is successful. When a device node receives a CAN message from another device node, it first verifies the data segment to determine its integrity and correctness, thus ensuring the security of data transmission. If the verification fails, the data is corrupted, and the device node must re-receive the data.
[0065] Each frame of data in the CAN communication protocol has a size limit, which is determined by the length of the data segment in each frame. The data segment length is 8 bytes, and a maximum of 8 bytes of data can be transmitted. However, in actual situations, the parameter list data sent by the device may be larger than 8 bytes. In this case, the parameter list data can be packetized and sent in sequence as multiple data frames.
[0066] Example 2
[0067] A method for setting parameters of an electric-assist bicycle is provided. Based on the electric-assist bicycle parameter setting system of Embodiment 1, the working mode of the host is switched to the parameter setting mode. The host computer controls the host to send and receive CAN messages and read and / or set the parameters of other corresponding devices.
[0068] Specifically, connect to the host computer and enter parameter setting mode. Use a USB cable to connect the host computer to the instrument's USB port. In the instrument's settings menu, open the parameter setting mode option. At this time, the signals connected to the D- and D+ pins of the instrument's USB port will switch from D1- and D1+ to D2- and D2+, and the USB port will enter communication mode. Open the host computer interface. The host computer software sends a parameter setting status command to the instrument. After receiving the command, the instrument replies with a parameter setting status confirmation command to the host computer. At this time, the communication connection status of both the instrument and the host computer software interfaces will display "connected," and the system will enter parameter setting mode.
[0069] Parameters can be directly edited and written into the parameter setting object in the host computer interface, or device parameters can be read, edited, and then written into the parameter setting object. After the system enters the parameter setting mode, assuming only the parameters of the motor controller and ABS need to be set, the motor controller and ABS can be selected in the device selection module of the host computer software, and the new parameters can be directly edited on the parameter pages of the motor controller and ABS. Alternatively, after selecting the motor controller and ABS, the original parameters of these two devices can be read first, and then modified and edited based on the original parameters. After editing, the parameters are written to these two devices.
[0070] During parameter reading, the host computer sends a parameter reading request command to the instrument via USB communication. One command is sent to the motor controller and one to the ABS (Automatic Controller). The command data includes the node ID of the motor controller or ABS. Assuming the motor controller has higher priority than the ABS, the motor controller parameter reading request command is sent first, followed by the ABS parameter reading request command. Upon receiving these commands, the instrument reassembles each command data into a data frame according to the CAN communication protocol and uploads it to the CAN bus. The data frame ID contains the instrument's ID and the ID from the motor controller or ABS, which are the source and destination addresses of the data frame. After the motor controller and ABS detect a data frame on the CAN bus with their own ID as the destination address, they receive and parse the frame data to obtain the parameter reading request command from the instrument. Subsequently, the motor controller and ABS package their internal original parameters into multiple data frames in the form of a parameter list and upload them sequentially to the CAN bus. At this point, the source address in the data frame ID is the motor controller's or ABS's ID, and the destination address is the instrument's ID. After the instrument detects a data frame with its own ID as the destination address on the CAN bus, it receives, parses, and verifies the data sequentially. Once it confirms that the parameter list of the motor controller or ABS is complete, it combines the parameter list with the corresponding device ID to generate parameter list data. Then, according to priority, it sends the parameter list data to the host computer via USB communication. After receiving the data, the host computer processes the parameter list data according to the device ID and displays the parameters on the motor controller and ABS parameter pages respectively. At this point, the device parameter reading operation is complete, and both the instrument and the host computer software interface display that the parameter reading was successful.
[0071] During parameter writing, the host computer software, according to priority, generates a parameter list data by combining the edited new parameter lists of the motor controller and ABS with the device ID and sends it to the instrument. The instrument receives the parameter list data, parses it, and verifies its integrity. After verification, it packets the parameter list into multiple data frames according to the CAN communication protocol and uploads them to the CAN bus. The source address in the data frame ID is the instrument ID, and the destination address is the ID of the motor controller or ABS. After the motor controller and ABS listen to the data frame with their own ID as the destination address on the CAN bus, they receive, parse, and verify the data in sequence. If the verification is successful, the new parameters overwrite the original parameters. At this point, the device parameter writing operation is complete, and both the instrument and the host computer software interface display that the parameter writing was successful.
[0072] After setting the parameters, disconnect the communication from the host computer software interface. At this time, the communication connection status of both the instrument and the host computer software interface will display "disconnected". The signals connected to the D- and D+ pins of the instrument's USB port will switch from D2- and D2+ to D1- and D1+, and the USB port will enter power mode. Then you can disconnect the host computer from the instrument's USB port.
[0073] At this point, the parameter settings for the electric-assist bicycle control system are complete.
[0074] Those skilled in the art will understand that, besides implementing the system and its various devices, modules, and units provided by this invention in the form of purely computer-readable program code, the same functions can be achieved entirely through logical programming of the method steps, making the system and its various devices, modules, and units of this invention function in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, the system and its various devices, modules, and units provided by this invention can be considered as a hardware component, and the devices, modules, and units included therein for implementing various functions can also be considered as structures within the hardware component; alternatively, the devices, modules, and units for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.
[0075] Specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various changes or modifications within the scope of the claims, which do not affect the essence of the present invention. Unless otherwise specified, the embodiments and features described in this application can be arbitrarily combined with each other.
Claims
1. A parameter setting system for an electric-assisted bicycle, characterized in that, The system includes a host computer and an instrument. The instrument is connected to other devices of the electric-assist bicycle via a CAN bus. The other devices include a motor controller. The instrument and each of the other devices have a node device ID. The instrument includes a host, and the host includes a communication switching circuit that can be electrically connected to external devices. The host computer has two operating modes: a power mode and a parameter setting mode. In the power mode, the communication switching circuit provides power to the outside world. In the parameter setting mode, the host computer communicates with the host computer through the communication switching circuit. The host computer controls the host to send and receive CAN messages, and reads and / or sets the parameters of the corresponding other devices.
2. The electric-assisted bicycle parameter setting system according to claim 1, characterized in that, The communication switching circuit includes: an MCU module, a switching module, and a USB module; The switching module includes: a first analog switch and a second analog switch; The first analog switch includes a first control terminal, a second control terminal, a first common terminal, a first normally closed terminal, a second common terminal, and a second normally closed terminal. The first control terminal and the second control terminal are respectively connected to the first IO terminal and the second IO terminal of the MCU module. The first common terminal and the second common terminal are respectively connected to the D- terminal and the D+ terminal of the USB module. When the first control terminal is high, the first common terminal and the first normally closed terminal are connected. When the second control terminal is high, the second common terminal and the second normally closed terminal are connected. The first normally closed terminal and the second normally closed terminal are used for charging protocol communication. The second analog switch includes a third control terminal, a fourth control terminal, a third common terminal, a third normally closed terminal, a fourth common terminal, and a fourth normally closed terminal. The third control terminal and the fourth control terminal are respectively connected to the third IO terminal and the fourth IO terminal of the MCU module. The third common terminal and the fourth common terminal are respectively connected to the D- terminal and the D+ terminal of the USB module. When the third control terminal is high, the third common terminal and the third normally closed terminal are connected. When the fourth control terminal is high, the fourth common terminal and the fourth normally closed terminal are connected. The third normally closed terminal and the fourth normally closed terminal are used for serial communication.
3. The electric-assisted bicycle parameter setting system according to claim 2, characterized in that, The instrument also includes a button module, which is electrically connected to the host and controls the host's power switch, control, and operating mode switching.
4. The electric-assisted bicycle parameter setting system according to claim 1, characterized in that, The other equipment also includes: a battery and an anti-lock braking system (ABS) module.
5. The electric-assisted bicycle parameter setting system according to claim 1, characterized in that, The default operating mode of the host after powering on is power mode. After the host computer is disconnected from the host, the operating mode of the host automatically switches to power mode.
6. The electric-assisted bicycle parameter setting system according to claim 1, characterized in that, When the host computer receives data sent by the host computer, it first performs a security check on the sent data, and only after the check is successful does it send and receive CAN messages.
7. The electric-assisted bicycle parameter setting system according to claim 1, characterized in that, The CAN message uses a CAN extended frame, which includes an ID segment, an ID extension segment, and a data segment. The ID segment and ID extension segment include the protocol data unit format and the protocol data unit specific field; The protocol data unit format is divided into the first protocol data unit format and the second protocol data unit format; When sending a broadcast CAN message, the message number is configured using the second protocol data unit format between the first protocol data unit format and the second protocol data unit format, and the message number extension content is configured in the specific field of the protocol data unit. When sending a directional CAN message, select to use the first protocol data unit format to configure the message number, and configure the device node ID for receiving the message in a specific field of the protocol data unit; The device receiving the CAN message parses the data segment of the CAN message to read and / or set the corresponding parameters.
8. The electric-assisted bicycle parameter setting system according to claim 7, characterized in that, The ID field also includes: priority and reserved bits; The device receiving CAN messages sorts and parses the received CAN messages according to the priority. The reserved bits are left for the device manufacturer to configure themselves.
9. The electric-assisted bicycle parameter setting system according to claim 7, characterized in that, The ID extension segment also includes: the source address; When a device sending a CAN message broadcasts a CAN message, it configures the device node ID for sending the CAN message at the source address.
10. A method for setting parameters of an electric-assisted bicycle, characterized in that, The electric-assisted bicycle parameter setting system according to any one of claims 1-9 is used, wherein the host computer is connected to the host computer, the host computer's working mode is switched to parameter setting mode, and the host computer controls the host computer to send and receive CAN messages, and reads and / or sets the parameters of the corresponding other devices.