Signal conversion device and signal conversion method applied to motorcycle
By designing a signal conversion device including a conversion module, the problems of the existing device's small scope of application and cumbersome modifications are solved. It realizes flexible processing and automatic analysis of RS485 signals in different formats, and improves the applicability and user experience of the device.
Patent Information
- Application Number
- CN202310914329.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-24
- Publication Date
- 2025-01-24
AI Technical Summary
The existing RS485-CAN signal conversion device has a small scope of application and is complicated to modify, and has high requirements for users. It is unable to effectively process RS485 signals in different formats.
Design a signal conversion device that contains the first interface to receive the RS485 signal that receives motorcycles. The second interface is used to send a CAN or CAN FD signal supported by the target device. No need to manually analyze or modify the device.
The application of the signal conversion device has been improved, the modification process is simplified, the requirements for users are reduced, so that the device can seamlessly handle different types of RS485 signals.
Smart Images

Figure CN119363504A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission conversion of motorcycles, and in particular to a signal conversion device and a signal conversion method applied to motorcycles. Background Art
[0002] With the development of science and technology, there are more and more types of electronic devices, and more and more types of interfaces used by electronic devices to connect to external devices. For example, the RS485 communication bus is a serial communication bus that can be used in the communication network of motorcycles. When it is necessary to develop, repair or test the components in the motorcycle, it can be connected to the external electronic device through the interface of the RS485 communication bus to receive the signal in the motorcycle. When the external electronic device can only support signals in the CAN or CAN FD protocol format, the RS485-CAN signal conversion device is usually used to convert the RS485 signal of the motorcycle into a signal in the CAN or CAN FD protocol format, and then sent to the external electronic device through the CAN / serial port conversion device. However, there is no unified standard for the message format of RS485 signals in the industry. The existing RS485-CAN signal conversion device can only perform data analysis on RS485 signals of a specific format. For RS485 signals of different formats, the software program of the signal conversion device needs to be modified, which requires the user to have programming ability. In addition, the signal conversion device cannot match the analytical formula for different types of RS485 signals. When the signal conversion device needs to parse and convert different types of RS485 signals, the analytical formula of the signal conversion device needs to be modified and matched. As a result, the application scope of the signal conversion device is too small, the modification is cumbersome, and the requirements for users are too high. Summary of the invention
[0003] In view of the above, it is necessary to provide a signal conversion device and a signal conversion method for motorcycles to solve the technical problems that the application scope of the signal conversion device is too small, the modification is cumbersome, and the user requirements are too high.
[0004] In one aspect, the present application provides a signal conversion device for converting signals between a motorcycle and a target device, wherein the motorcycle is provided with a bus for transmitting a first signal, and the signal conversion device comprises:
[0005] a first interface, used to connect the bus to receive the first signal, wherein the data format of the first signal is a first format, and the first signal includes status information and identification information of the motorcycle, and the identification information is used to indicate the type of the status information;
[0006] a second interface, used to connect to the target device to send a second signal to the target device, wherein a data format of the second signal is a second format different from the first format, and the second format is a data format supported by the target device receiving the second signal, and the second signal includes a first identification field and a first data field, the first identification field is the same as the identification information, and the first data field is used to indicate the status information;
[0007] A conversion module is connected to the first interface and the second interface, and is used to convert the first signal into the second signal, and to load a parsing data file to parse the second signal to obtain and store the identification information and the status information.
[0008] According to an optional embodiment of the present application, the conversion module includes:
[0009] a conversion unit, connected to the first interface and the second interface, the conversion unit being used to convert the first signal into the second signal;
[0010] A parsing unit is connected to the conversion unit, the parsing unit is used to load the parsing data file to parse the second signal, and the parsing unit is provided with a storage space for storing the identification information and the status information.
[0011] According to an optional embodiment of the present application, the first interface is an RS485 interface, and the second interface is a CAN interface.
[0012] According to an optional embodiment of the present application, the bus includes a first communication line and a second communication line, and the first communication line and the second communication line are used to transmit the first signal; the first interface includes a first terminal and a second terminal, the first terminal is used to connect to the first communication line, and the second terminal is used to connect to the second communication line to receive the first signal.
[0013] According to an optional embodiment of the present application, the parsed data file is a DBC file.
[0014] According to an optional embodiment of the present application, the parsing unit loads the parsing data file to parse the second signal, including:
[0015] The parsing unit loads the DBC file and extracts the first identification field and the first data field in the second signal;
[0016] The parsing unit parses the first data field according to the first identification field to obtain the state information.
[0017] According to an optional embodiment of the present application, the first signal includes a start field, a second identification field, a second data field, a check field and an end field; the start field and the end field are fixed data, the first identification field includes the identification information, the data field includes the status information, and the check field is used to check the first signal;
[0018] The conversion unit is used to convert the first signal into a second signal, comprising:
[0019] The converting unit extracts the second identification field and the second data field in the first signal;
[0020] The second identification field and the second data field are filled into the first identification field and the first data field of the second signal respectively, so as to convert the first signal into the second signal.
[0021] According to an optional embodiment of the present application, the conversion module is further used for:
[0022] receiving a third signal sent by the target device through the second interface, wherein the third signal includes a work instruction and the data format of the third signal is the second format;
[0023] converting the third signal into a fourth signal, wherein the data format of the fourth signal is the first format;
[0024] The fourth signal is sent to the bus of the motorcycle through the first interface, so that the motorcycle can obtain the working instruction from the fourth signal and operate according to the working instruction.
[0025] On the other hand, the present application provides a signal conversion method, which is applied to the signal conversion device as described above, and the signal conversion method includes:
[0026] receiving a first signal transmitted by a bus of a motorcycle, wherein the data format of the first signal is a first format, and the first signal includes status information and identification information of the motorcycle, and the identification information is used to indicate a type of the status information;
[0027] Converting the first signal into a second signal, wherein a data format of the second signal is a second format different from the first format, and the second format is a data format supported by a target device receiving the second signal, and the second signal includes a first identification field and a first data field, the first identification field is the same as the identification information, and the second data field is used to indicate the status information;
[0028] The parsing data file is loaded to parse the second signal to obtain and store the identification information and the status information, and the second signal is sent to the target device.
[0029] According to an optional embodiment of the present application, the signal conversion method further includes:
[0030] receiving a third signal sent by the target device, wherein the third signal includes a work instruction, and a data format of the third signal is the second format;
[0031] converting the third signal into a fourth signal, wherein the data format of the fourth signal is the first format;
[0032] The fourth signal is sent to a bus of the motorcycle, so that the motorcycle obtains the working instruction from the fourth signal and operates according to the working instruction.
[0033] Through the above implementation, the first interface of the signal conversion device is used to receive the first signal transmitted by the bus of the motorcycle, the data format of the first signal is the first format, the conversion module is used to convert the first signal into a second signal, and send the second signal to the target device through the second interface, and the conversion module can also load the parsing data file to parse the second signal, obtain and store the identification information and status information in the second signal. Therefore, the signal conversion device first converts the first signal into the second signal, and then loads the parsing data file to parse the second signal to obtain the identification information and status information, without manually parsing the first signal, and by loading the parsing data file to parse the second signal, there is no need to modify the conversion module for different types of first signals, and only the parsing data file needs to be matched and modified, so the application scope of the signal conversion device can be improved, the modification is simple, and the requirements on the user are not high. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a module schematic diagram of a signal conversion device provided in one embodiment of the present application.
[0035] Figure 2 It is a module schematic diagram of a signal conversion device provided in another embodiment of the present application.
[0036] Figure 3 This is an application environment diagram of a signal conversion device provided in one embodiment of the present application.
[0037] Figure 4 It is a schematic diagram of the format of the RS485 message frame provided in the embodiment of the present application.
[0038] Figure 5 This is a schematic diagram of the format of the CAN FD extended frame provided in an embodiment of the present application.
[0039] Figure 6 It is a flow chart of a signal conversion method provided by an embodiment of the present application.
[0040] Figure 7 This is a partial flow chart of a signal conversion method provided in one embodiment of the present application.
[0041] Main component symbols
[0042] Signal conversion device 10
[0043] The first interface 11
[0044] First terminal 110
[0045] The second terminal 111
[0046] The second interface 12
[0047] Conversion module 13
[0048] Conversion unit 130
[0049] Analysis Unit 131
[0050] Motorcycle 20
[0051] First communication line 201
[0052] Second communication line 202
[0053] Target device 30 DETAILED DESCRIPTION
[0054] It should be noted that in this application, "at least one" means one or more, and "more" means two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0055] The embodiments of the present application provide a signal conversion device and a signal conversion method, which can improve the application scope of the signal conversion device, are simple to modify, and have low requirements on users. They will be described in detail below in conjunction with the corresponding drawings.
[0056] like Figure 1 As shown, the signal conversion device 10 provided in the present application can be used for signal conversion between a motorcycle and a target device, and a bus for transmitting a first signal is provided on the motorcycle. In the present application, the signal conversion device 10 includes a first interface 11, a second interface 12 and a conversion module 13.
[0057] Among them, the first interface 11 is used to connect the bus of the motorcycle to receive the first signal transmitted on the bus, the data format of the first signal is the first format, and the first signal includes the status information and identification information of the motorcycle. The second interface 12 is used to connect the target device to send the second signal to the target device, the data format of the second signal is the second format different from the first format, and the second format is the data format supported by the target device receiving the second signal, and the second signal includes a first identification field and a first data field, the first identification field is the same as the identification information, and the first data field is used to indicate the status information. The conversion module 13 connects the first interface 11 and the second interface 12, and the conversion module 13 is used to convert the first signal into the second signal. The conversion module 13 is also used to load the parsing data file to parse the second signal to obtain and store the identification information and the status information.
[0058] Thus, the conversion module 13 of the signal conversion device 10 first converts the first signal into the second signal, and sends it to the target device through the second interface 12, so that the target device can receive the second signal containing the status information of the motorcycle. The conversion module 13 loads the parsing data file to parse the second signal to obtain the identification information and the status information, and there is no need to manually parse the first signal. Moreover, by loading the parsing data file to parse the second signal, there is no need to modify the conversion module for different types of first signals, and only the parsing data file needs to be matched and modified. Therefore, the application scope of the signal conversion device 10 can be improved, the modification is simple, and the requirements on the user are not high.
[0059] The signal conversion device 10 provided in the embodiment of the present application can be used in the stages of testing, research and development, and maintenance of motorcycles. In the stages of testing, research and development, and maintenance, it is necessary to obtain the status information of the motorcycle to determine whether the motorcycle is normal, meets the performance requirements, or which part has a problem based on the status information. Therefore, it is necessary to convert the first signal including the status information in the motorcycle into a second signal that can be supported by the target device, so that the target device can receive the second signal, thereby enabling the target device to obtain the status information from the second signal.
[0060] In addition, since the conversion module 13 of the signal conversion device 10 provided in the embodiment of the present application can also parse the second signal to obtain and store identification information and status information, when it is necessary to trace back the status of the motorcycle during the testing, research and development, and maintenance stages, the second signal can be regenerated based on the stored identification signal and status information and provided to the target device, so that the target device can obtain the status information of the motorcycle during the testing, research and development, and maintenance stages from the regenerated second signal, thereby making the status information of the motorcycle traceable.
[0061] Furthermore, if Figure 2As shown, the conversion module 13 may include a conversion unit 130 and a parsing unit 131, the conversion unit 130 is connected to the first interface 11 and the second interface 12, and the conversion unit 130 is used to convert the first signal into a second signal. The parsing unit 131 is connected to the conversion unit 130, and the parsing unit 131 is used to load a data file to parse the second signal to obtain identification information and status information. The parsing unit 131 is provided with a storage space for storing identification information and status information. Thus, when it is necessary to trace back the status of the motorcycle in the stages of testing, research and development, and maintenance, the second signal can be regenerated according to the data information and identification information stored in the storage space and sent to the target device. It can be understood that the parsing unit 131 can be a chip with data processing and storage functions, and the storage space can refer to registers in the chip, etc.
[0062] In one embodiment of the present application, the status information of the motorcycle may include but is not limited to vehicle speed, acceleration, voltage, power, etc. Correspondingly, the data information stored in the storage unit 131 may include the vehicle speed, acceleration, voltage, power, etc. obtained at each stage of the motorcycle.
[0063] See also Figure 3 In one embodiment of the present application, the first interface 11 can be connected to the bus of the vehicle control unit (VCU), body control module (BCM), instrument panel (Dashboard) or motor control unit (MCU) of the motorcycle.
[0064] Among them, the vehicle controller is the core controller of the motorcycle. The vehicle controller has the functions of driving control, component management, energy management, status monitoring, fault handling, and information interaction with other devices in the motorcycle.
[0065] The body controller is the hub of information management and communication in motorcycles. The body controller includes body devices (rearview mirrors, doors, trunk), interior devices (lighting, rear air conditioning, rear controls), convenience devices (lighting, side pedals, sun visors) and safety devices (remote keyless entry, anti-start system, alarm system). The body controller can manage various power loads of the motorcycle and has diagnostic functions. In addition, the body controller also provides motor drive technology (DC, PWM wide pulse modulation technology).
[0066] Instruments usually include speedometer, tachometer, oil pressure gauge, water temperature gauge, fuel gauge, charging gauge and voltage stabilizer, etc. The voltage stabilizer is used to stabilize the voltage of the instrument power supply and suppress the fluctuation amplitude to ensure the accuracy of the instrument. Most of the instrument displays are based on various sensor devices in the motorcycle. The sensor device changes its resistance value according to the state change of the monitored object and displays it through the instrument.
[0067] The motor controller is the core controller that controls the start, operation, forward and backward movement, speed and stop of the motor in the motorcycle. The motor controller obtains the vehicle requirements of the motorcycle from the vehicle controller and obtains electrical energy from the battery pack in the power system. After modulation by the built-in inverter in the motor controller, the current and voltage required to control the motor are obtained, and the obtained current and voltage are provided to the motor, so that the motor speed and torque meet the requirements of the vehicle.
[0068] The various controllers and instruments on the motorcycle 20 can communicate and interact based on the bus, which is a standard that defines the electrical characteristics of the driver and receiver in the balanced digital multi-point system. The first interface 11 is connected to the bus so that data information on the bus can be received. The bus can be an RS485 bus. In this case, the first interface is an RS485 interface, so the first format is the RS485 bus communication format.
[0069] Please continue to refer to 3, the bus may include a first communication line 201 and a second communication line 202, the first communication line 201 and the second communication line 202 are used to transmit the first signal. The first interface 11 includes a first terminal 110 and a second terminal 111, the first terminal 110 is used to connect to the first communication line 201, and the second terminal 111 is used to connect to the second communication line 202 to receive the first signal.
[0070] In one embodiment of the present application, the target device 30 may be a device supporting the LAN CAN FD bus protocol format, such as a computer device. In this case, the second interface is a CAN interface, and the second format is the LAN CAN FD bus protocol format. The second interface 12 may be connected to the target device 30 via a CAN bus. Alternatively, the second interface 12 may be connected to the target device 30 via a CAN / serial port converter, and the CAN / USB converter may be, for example, a PCAN converter, a CAN-USB converter, a VN1610 converter, and the like.
[0071] When the second interface is a CAN interface, the second signal is a CAN signal, and the parsing data file loaded by the conversion module 13 is a DBC (Database CAN) file. The DBC file is a CAN database file, which is a format file for defining the CAN bus communication protocol, and contains the information ID, length field, period, name, length, position and other information of the CAN signal. The parsing unit 130 can obtain what kind of information the second signal represents through the first identification field in the second signal and the DBC file, and then obtain the data information according to the content in the first data field of the second signal and the corresponding content in the DBC file, so as to know the status information of the motorcycle 20. Among them, the DBC file can be stored in the parsing unit 131 of the signal conversion device 10 or other storage, and can also be stored in the target device 30. When the second signal needs to be parsed, the signal conversion device 10 can load and obtain it from its parsing unit 131, other storage or target device 30. In this way, the second signal can be automatically parsed without the user manually parsing and analyzing the second signal, so that the parsed data information is efficient and accurate.
[0072] In addition, the user may create and modify the DBC file as required, so that the parsing unit 131 can parse the second signal to be parsed according to the DBC file.
[0073] Therefore, the parsing unit 131 is used to load the parsing data file to parse the second signal, specifically including: the parsing unit 131 loads the DBC file and extracts the first identification field and the first data field in the second signal, and the parsing unit parses the first data field according to the first identification field to obtain status information, thereby realizing the parsing of the second signal.
[0074] See also Figure 4 , a schematic diagram of the format of an RS485 message frame (i.e., a frame of the first signal) provided by an embodiment of the present application, wherein the RS485 message frame includes a start field, a second identification field, a second data field, a check field, and an end field. The start field and the end field represent the start and end of a frame signal. The first identification field includes identification information for indicating the source of this frame signal or representing which information (such as vehicle speed, acceleration, power, voltage, etc.). The data field includes status information. The check field is used to check whether the signal is correct (sum check can be used). Among them, the start field and the end field can be fixed data, for example, the start field is two bytes and is fixed to 0x43, 0x46, the first identification field is one byte generated according to the specific situation, the check field is one byte, and the end field is two bytes and is fixed to 0x45, 0x44.
[0075] Furthermore, a frame of the first signal may also include a length field for indicating the length of the data field. The length field may be a fixed byte, for example, the length field is 1 byte and is fixed to 0x40 (indicating that the length of the data field is 64 bytes).
[0076] Therefore, the conversion unit 13 converts the first signal into the second signal, which can specifically include: the conversion unit 13 extracts the second identification field and the second data field in the first signal, and fills the second identification field and the second data field into the first identification field and the first data field of the second signal respectively, so as to convert the first signal into the second signal.
[0077] See also Figure 5 , is a format diagram of a CAN FD extended frame (i.e., a frame of the second signal) provided in an embodiment of the present application, wherein the CAN FD extended frame includes a frame start, an arbitration field, a control field, a data field, a cyclic redundancy check field, a response field, and a frame end. The data in the arbitration field is an identifier, and the data in the data field is the actual data content, that is, the arbitration field is the first identifier field of the second signal, and the data field is the first data field of the second signal. Therefore, when the first signal is converted into the second signal, the identifier in the first signal can be filled into the arbitration field of the second signal, and the data field in the first signal can be directly filled into the data field of the second signal, so that the arbitration field includes identifier information, and the data field includes status information, thereby making the second signal include identifier information and status information.
[0078] It can be understood that after the target device 30 receives the second signal, it can also parse the second signal to obtain status information and identification information, and the target device 30 can also be used to display the second signal and the parsed status information and identification information, so that the user can directly view and know the status of the motorcycle 20.
[0079] In some embodiments, the conversion module 13 can also be used to receive a third signal sent by the target device 30 through the second interface 12, the third signal can include a work instruction, and the data format of the third signal is the second format. The conversion module 13 can also be used to convert the third signal into a fourth signal, the format of the fourth signal is the first format, and then send the fourth signal to the bus of the motorcycle 20 through the first interface 11, so that the motorcycle 20 can obtain the work instruction from the fourth signal and operate according to the work instruction. Thus, the signal conversion device 10 of the present application can realize the bidirectional conversion of the signal in the first format and the signal in the second format, and the target device 30 can send the work instruction to the motorcycle 20 through the signal conversion device 10, so that the motorcycle 20 operates according to the work instruction.
[0080] For example, when testing the motorcycle 20, the target device 30 can send a third signal carrying a work instruction to the signal conversion device 10 through the second interface 12 according to the test requirements. The conversion module 13 in the signal conversion device 10 converts the third signal into a fourth signal and then sends it to the bus of the motorcycle 20 through the first interface 11. The motorcycle 20 obtains the work instruction from the fourth signal and runs according to the work instruction. During the operation according to the work instruction, the motorcycle 20 sends a first signal including the state information of the process to the signal conversion device 10 through the first interface 11. The conversion module 13 of the signal conversion device 10 converts the first signal into a second signal and then sends it to the target device 30 through the second interface 12, and parses the second signal to obtain identification information and state information. The target device 30 parses and obtains the state information and identification information from the second signal and displays them. According to the state information and identification information, it can be concluded whether the state of the motorcycle 20 during the operation according to the work instruction meets the test requirements, thereby realizing automatic testing of the motorcycle 20 and facilitating judgment of the situation of the motorcycle 20. Of course, in other stages of the motorcycle 20, the signal conversion device 10 of the embodiment of the present application can also be used to achieve format conversion of the signal output by the motorcycle 20. At this time, if the first format is the RS485 bus communication format and the second format is the local area network CAN FD bus protocol format, the data in the arbitration field of the third signal can be filled into the first identification field of the fourth signal, and the data in the data field of the third signal can be filled into the first data field of the fourth signal.
[0081] In some embodiments, CANoe software may be installed in the target device 30 , and the third signal may be sent to the signal conversion apparatus 10 via the IG module in the CANoe software.
[0082] See also Figure 6 , Figure 6 This is a flow chart of a signal conversion method provided in an embodiment of the present application. In at least one specific implementation manner, the signal conversion method is applied to the aforementioned signal conversion device 10.
[0083] like Figure 6 As shown, the signal conversion method includes:
[0084] S110, receiving a first signal transmitted by a bus of a motorcycle, wherein the data format of the first signal is a first format.
[0085] The first signal includes the state information and identification information of the motorcycle, and the identification information is used to indicate the type of the state information. The first interface 11 of the signal conversion device 10 receives the first signal transmitted on the bus of the motorcycle 20 .
[0086] S120: Convert the first signal into a second signal, wherein a data format of the second signal is a second format different from the first format, and the second format is a data format supported by a target device receiving the second signal.
[0087] The second signal includes a first identification field and a first data field, the first identification field is the same as the identification information, and the second data field is used to indicate the status information. The first signal is converted into the second signal by the conversion module 13. The specific steps of the conversion module 13 converting the first signal into the second signal are detailed in the description of the aforementioned signal conversion device 10, which will not be repeated here.
[0088] S130 , loading the parsing data file to parse the second signal to obtain and store identification information and status information, and sending the second signal to the target device 30 .
[0089] The second signal is parsed by the parsing unit 131 in the conversion module 13, and the second signal is stored in the storage space of the second signal parsing unit 131, and the second signal is sent to the target device 30 through the second interface 12. The parsed data file may be a DBC file, which may be stored in the signal conversion device 10 or in the target device 30. When the second signal needs to be parsed, it is loaded from the storage space or memory storing the DBC file in the signal conversion device 10 or the target device 30.
[0090] like Figure 7 As shown, in one embodiment of the present application, the signal conversion method may further include:
[0091] S210, receiving a third signal sent by the target device, where the third signal includes a work instruction and the data format of the third signal is the second format;
[0092] S220, converting the third signal into a fourth signal, wherein the data format of the fourth signal is the first format;
[0093] S230: Send the fourth signal to the bus of the motorcycle, so that the motorcycle can obtain the working instruction from the fourth signal and operate according to the working instruction.
[0094] The specific implementation method of the signal conversion method in the embodiment of the present application is detailed in the aforementioned signal conversion device 10, which will not be repeated here.
[0095] The signal conversion device 10 of the embodiment of the present application includes, but is not limited to, a memory and a processor, and a computer program stored in the memory and executable on the processor, such as a signal conversion program.
[0096] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the computing core and control center of the signal conversion device 10, and uses various interfaces and lines to connect various parts of the signal conversion device 10, and obtain the control system of the signal conversion device 10 and various installed applications, program codes, etc.
[0097] The processor obtains the control system of the signal conversion device 10 and various installed applications. The processor obtains the application to implement the steps in the above-mentioned signal conversion method embodiments, such as Figure 6 as well as Figure 7 .
[0098] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in a memory and acquired by a processor to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing a specific function, and the instruction segments are used to describe the acquisition process of the computer program in the signal conversion device 10.
[0099] The memory can be used to store computer programs and / or modules. The processor implements various functions of the signal conversion device 10 by running or acquiring computer programs and / or modules stored in the memory, and calling data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store the control system, at least one application required for a function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the vehicle-mounted device, etc. In addition, the memory can include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMediaCard, SMC), a secure digital (SecureDigital, SD) card, a flash card (FlashCard), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
[0100] The memory may be an external memory and / or an internal memory of the signal conversion device 10. Furthermore, the memory may be a memory in a physical form, such as a memory stick, a TF card (Trans-flash Card), and the like.
[0101] If the module / unit integrated in the signal conversion device 10 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is obtained by the processor, the steps of each of the above-mentioned method embodiments can be implemented.
[0102] The computer program includes computer program code, which may be in source code form, object code form, accessible file or some intermediate form, etc. Computer readable media may include: any entity or device capable of carrying computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory).
[0103] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division, and there may be other division methods in actual implementation. The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment.
[0104] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A signal conversion device applied to a motorcycle, used for signal conversion between a motorcycle and a target device, wherein the motorcycle is provided with a bus for transmitting a first signal, characterized in that: The signal conversion device comprises: a first interface, used to connect the bus to receive the first signal, wherein the data format of the first signal is a first format, and the first signal includes status information and identification information of the motorcycle, and the identification information is used to indicate the type of the status information; a second interface, used to connect to the target device to send a second signal to the target device, wherein a data format of the second signal is a second format different from the first format, and the second format is a data format supported by the target device receiving the second signal, and the second signal includes a first identification field and a first data field, the first identification field is the same as the identification information, and the first data field is used to indicate the status information; A conversion module is connected to the first interface and the second interface, and is used to convert the first signal into the second signal, and to load a parsing data file to parse the second signal to obtain and store the identification information and the status information.
2. The signal conversion device according to claim 1, characterized in that: The conversion module comprises: a conversion unit, connected to the first interface and the second interface, the conversion unit being used to convert the first signal into the second signal; A parsing unit is connected to the conversion unit, the parsing unit is used to load the parsing data file to parse the second signal, and the parsing unit is provided with a storage space for storing the identification information and the status information.
3. The signal conversion device according to claim 2, characterized in that: The first interface is an RS485 interface, and the second interface is a CAN interface.
4. The signal conversion device according to claim 3, characterized in that: The bus includes a first communication line and a second communication line, and the first communication line and the second communication line are used to transmit the first signal; the first interface includes a first terminal and a second terminal, the first terminal is used to connect to the first communication line, and the second terminal is used to connect to the second communication line to receive the first signal.
5. The signal conversion device according to claim 3, characterized in that: The parsed data file is a DBC file.
6. The signal conversion device according to claim 5, characterized in that: The parsing unit loads the parsing data file to parse the second signal, including: The parsing unit loads the DBC file and extracts the first identification field and the first data field in the second signal; The parsing unit parses the first data field according to the first identification field to obtain the state information.
7. The signal conversion device according to claim 6, characterized in that: The first signal includes a start field, a second identification field, a second data field, a check field and an end field; the start field and the end field are fixed data, the first identification field includes the identification information, the data field includes the status information, and the check field is used to check the first signal; The conversion unit is used to convert the first signal into a second signal, comprising: The converting unit extracts the second identification field and the second data field in the first signal; The second identification field and the second data field are filled into the first identification field and the first data field of the second signal respectively, so as to convert the first signal into the second signal.
8. The signal conversion device according to claim 1, characterized in that: The conversion module is also used for: receiving a third signal sent by the target device through the second interface, wherein the third signal includes a work instruction and the data format of the third signal is the second format; converting the third signal into a fourth signal, wherein the data format of the fourth signal is the first format; The fourth signal is sent to the bus of the motorcycle through the first interface, so that the motorcycle can obtain the working instruction from the fourth signal and operate according to the working instruction.
9. A signal conversion method, characterized in that: Applicable to the signal conversion device according to any one of claims 1 to 8, the signal conversion method comprising: receiving a first signal transmitted by a bus of a motorcycle, wherein the data format of the first signal is a first format, and the first signal includes status information and identification information of the motorcycle, and the identification information is used to indicate a type of the status information; Converting the first signal into a second signal, wherein a data format of the second signal is a second format different from the first format, and the second format is a data format supported by a target device receiving the second signal, and the second signal includes a first identification field and a first data field, the first identification field is the same as the identification information, and the second data field is used to indicate the status information; The parsing data file is loaded to parse the second signal to obtain and store the identification information and the status information, and the second signal is sent to the target device.
10. The signal conversion method according to claim 9, characterized in that: Also includes: receiving a third signal sent by the target device, wherein the third signal includes a work instruction, and a data format of the third signal is the second format; converting the third signal into a fourth signal, wherein the data format of the fourth signal is the first format; The fourth signal is sent to a bus of the motorcycle, so that the motorcycle obtains the working instruction from the fourth signal and operates according to the working instruction.
Citation Information
Patent Citations
On-vehicle display device and method for locomotive signal equipment fault information
CN111605581A
Protocol conversion device based on HART technology
CN113839903A
Signal test method, device and equipment and computer storage medium
CN116418720A