Multi-protocol communication method, electronic equipment and industrial tablet computer

By setting up a multi-protocol communication module on the industrial tablet computer, the problems of high system complexity and low operating efficiency caused by a single communication protocol in the existing technology are solved, and efficient transmission of multi-protocol communication is achieved.

CN120692111APending Publication Date: 2025-09-23SHENZHEN NANHANG ELECTRONICS IND
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202510702187.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-28
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

Existing portable control terminals usually adopt a single communication protocol and require an additional converter for protocol conversion, which increases system complexity and low operating efficiency.

Method used

An Ethernet module, a serial port module and a CAN bus module are set on the industrial tablet computer. The target message is obtained and converted into a target message. The target message is different from the type of the message to be converted and is sent to the corresponding module for transmission.

Benefits of technology

It realizes multi-protocol communication, reduces system complexity and improves operational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120692111A_ABST
    Figure CN120692111A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-protocol communication method, electronic equipment and an industrial tablet personal computer, the multi-protocol communication method is applied to the electronic equipment, the electronic equipment is arranged on the industrial tablet personal computer, the industrial tablet personal computer is provided with an Ethernet module, a serial port module and a CAN bus module, and the method comprises the following steps: obtaining a to-be-converted message, the message to be converted comprises any one of a CAN message, an Ethernet message and a serial port message; the to-be-converted message is converted into a target message, the target message comprises one text of a CAN message, an Ethernet message and a serial port message, and the message type of the target message is different from that of the to-be-converted message; and sending the target data to a corresponding Ethernet module, a serial port module or a CAN bus module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of industrial tablet computers, and in particular to a multi-protocol communication method, electronic equipment, and an industrial tablet computer. Background Art

[0002] With the rapid development of industry, the demand for portable control terminals for industrial field equipment is growing. Industrial field equipment typically uses multiple communication protocols, such as CAN bus, Ethernet, and serial ports (RS422 / RS485 / RS232). However, existing portable control terminals are designed for a single communication protocol and often require additional converters for protocol conversion or integration with other instruments, increasing system complexity and reducing operational efficiency. Summary of the Invention

[0003] This application aims to propose a multi-protocol communication method, electronic device and industrial tablet computer, which can reduce system complexity and improve operational efficiency.

[0004] In a first aspect, an embodiment of the present application provides a multi-protocol communication method, which is applied to an electronic device, wherein the electronic device is provided in an industrial tablet computer, and the industrial tablet computer has an Ethernet module, a serial port module, and a CAN bus module, and the method includes:

[0005] Acquire a message to be converted, wherein the message to be converted includes any one of a CAN message, an Ethernet message, and a serial port message;

[0006] Converting the message to be converted into a target message, wherein the target message includes a text of a CAN message, an Ethernet message, and a serial port message, and the target message is different from the message type of the message to be converted;

[0007] Send the target data to the corresponding Ethernet module, serial port module or CAN bus module.

[0008] According to some embodiments of the present application, when the message to be converted is the CAN message and the target message is the Ethernet message, converting the message to be converted into the target message includes:

[0009] Obtain a first mapping table, where the first mapping table includes a plurality of first mapping relationships, where the first mapping relationship is a mapping relationship between an ID address and an IP address;

[0010] Parsing the CAN message to obtain the ID address and CAN data;

[0011] Obtaining a target IP address according to the ID address and the first mapping table;

[0012] The CAN data and the target IP address are encapsulated to obtain the Ethernet message.

[0013] According to some embodiments of the present application, when the message to be converted is the Ethernet message and the target message is the CAN message, converting the message to be converted into the target message includes:

[0014] Parsing the Ethernet message to obtain the ID address and CAN data;

[0015] The ID address and the CAN data are encapsulated to obtain a CAN message.

[0016] According to some embodiments of the present application, when the message to be converted is the serial port message and the target message is the Ethernet message, converting the message to be converted into the target message includes:

[0017] Removing the check code of the serial port message to obtain an intermediate message;

[0018] An Ethernet message header is added to the intermediate message to obtain the Ethernet message.

[0019] According to some embodiments of the present application, when the message to be converted is the Ethernet message and the target message is the serial port message, converting the message to be converted into the target message includes:

[0020] Parsing the Ethernet message to obtain Ethernet data;

[0021] A check code is added to the Ethernet data to obtain a serial port message.

[0022] According to some embodiments of the present application, when the message to be converted is the CAN message and the target message is the serial port message, converting the message to be converted into the target message includes:

[0023] Obtain a second mapping table, where the second mapping table includes a plurality of second mapping relationships, where the second mapping relationship is a mapping relationship between an ID address and a register address;

[0024] Parsing the CAN message to obtain the target ID address and CAN data;

[0025] Obtaining a target register address according to the target ID address and the second mapping table;

[0026] The target register address and the CAN data are encapsulated to obtain the serial port message.

[0027] According to some embodiments of the present application, when the message to be converted is the serial port message and the target message is the CAN message, converting the message to be converted into the target message includes:

[0028] Obtain a second mapping table, where the second mapping table includes a plurality of second mapping relationships, where the second mapping relationship is a mapping relationship between an ID address and a register address;

[0029] Parsing the serial port message to obtain serial port data and target register address;

[0030] Obtaining a target ID address according to the target register address and the second mapping table;

[0031] The serial port data and the target ID address are encapsulated to obtain the CAN message.

[0032] According to some embodiments of the present application, the method further includes:

[0033] Obtaining the battery temperature of the industrial tablet computer;

[0034] If the battery temperature is lower than a preset first temperature threshold;

[0035] The battery is controlled to output a pulse current until the battery temperature rises to a preset second temperature threshold.

[0036] In a second aspect, an embodiment of the present application provides an electronic device, including:

[0037] at least one processor;

[0038] at least one memory for storing at least one program;

[0039] When at least one of the programs is executed by at least one of the processors, the multi-protocol communication method described above is implemented.

[0040] In a third aspect, an embodiment of the present application provides an industrial tablet computer, including the electronic device as described above.

[0041] In an embodiment of the present application, an Ethernet module, a serial port module and a CAN bus module are set on an industrial tablet computer, and the message to be converted is obtained and converted into a target message. The target message includes a text of a CAN message, an Ethernet message and a serial port message, and the target message is different from the type of message to be converted. The target data is sent to the corresponding Ethernet module, serial port module or CAN bus module for transmission, thereby realizing multi-protocol communication, reducing system complexity and improving operational efficiency.

[0042] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become obvious from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The present application is further described below with reference to the accompanying drawings and embodiments, wherein:

[0044] Figure 1 A flowchart of an embodiment of a multi-protocol communication method provided by this application;

[0045] Figure 2 Schematic diagram of the overall framework of the industrial tablet computer provided for this application;

[0046] Figure 3 This is a schematic diagram of an electronic device embodiment provided in this application.

[0047] Reference numerals:

[0048] Electronic device 100 , processor 110 , memory 120 . DETAILED DESCRIPTION

[0049] The following describes in detail embodiments of the present application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application and are not to be construed as limiting the present application.

[0050] In the description of this application, it should be understood that descriptions involving orientation, such as the orientation or positional relationship indicated by up, down, etc., are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing this application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on this application.

[0051] In the description of this application, "a plurality" refers to more than two. The use of "first" or "second" is solely for the purpose of distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of technical features indicated, or implicitly indicating the order of the technical features indicated.

[0052] In the description of this application, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in this application based on the specific content of the technical solution.

[0053] The embodiment of the present application provides a multi-protocol communication method, which is applied to an electronic device, wherein the electronic device is provided on an industrial tablet computer, and the industrial tablet computer has an Ethernet module, a serial port module and a CAN bus module, such as Figure 1 As shown, the method includes:

[0054] Step S100: Acquire a message to be converted, where the message to be converted includes any one of a CAN message, an Ethernet message, and a serial port message;

[0055] Step S200: converting the message to be converted into a target message, where the target message includes a text of a CAN message, an Ethernet message, and a serial port message, and the target message and the message to be converted are of different message types;

[0056] Step S300: Send the target data to the corresponding Ethernet module, serial port module or CAN bus module.

[0057] In an embodiment of the present application, an Ethernet module, a serial port module and a CAN bus module are set on an industrial tablet computer, and the message to be converted is obtained and converted into a target message. The target message includes a text of a CAN message, an Ethernet message and a serial port message, and the target message is different from the type of message to be converted. The target data is sent to the corresponding Ethernet module, serial port module or CAN bus module for transmission, thereby realizing multi-protocol communication, reducing system complexity and improving operational efficiency.

[0058] In some embodiments of the present application, Figure 2 As shown, the industrial tablet computer includes a domestically produced main control chip, a multi-protocol communication module, an ADC acquisition module, discrete input and output modules, a reinforced structural housing, metal waterproof buttons, and a domestically produced power management module. The multi-protocol communication module includes an Ethernet module, a CAN bus module, and a serial port module. The main control chip communicates with the Ethernet, CAN bus, and serial port modules via an internal bus.

[0059] In this implementation, the industrial tablet connects to the industrial network via Ethernet and CAN bus modules to receive control commands. The ADC module collects analog sensor signals. Discrete input and output modules control actuators. The serial port module allows for communication with legacy devices. The tablet's fully domestically produced design ensures data security, and its reinforced housing withstands operating temperatures of -40°C to 60°C and vibration environments.

[0060] The CAN bus module supports standard frames (11-bit ID) and extended frames (29-bit ID), is compatible with the ISO 11898 standard, and is suitable for automotive electronics and industrial control networks.

[0061] The Ethernet module supports 10 / 100 / 1000Mbps self-adaption and has a built-in hardware protocol stack (such as TCP / IP) for high-speed data transmission.

[0062] The serial port module includes RS422, RS485, and RS485 interfaces. RS422 is full-duplex differential communication with strong anti-interference capabilities and a transmission distance of up to 1200 meters. RS485 is half-duplex multipoint communication, supporting 32-node networking. RS485 is point-to-point communication and is compatible with traditional industrial equipment.

[0063] The ADC acquisition module has 16-bit precision, supports 16-channel analog signal acquisition (0-10V / 4-20mA), and has a built-in filtering algorithm.

[0064] The discrete input and output module supports 16-channel optoelectronically isolated digital signal inputs (supporting dry and wet contacts) and 4-channel relay outputs (load capacity 4A / 250V AC).

[0065] The reinforced structural shell adopts magnesium-aluminum alloy frame + silicone coating, meets IP67 protection level (dustproof and waterproof), and can withstand 1.5 meters drop.

[0066] The metal waterproof button is a mechanical button (travel life is greater than 1 million times), with a nickel-plated surface to prevent oil corrosion.

[0067] The screen of the industrial tablet computer uses tempered glass and capacitive touch screen, and supports glove operation.

[0068] The main control chip is an ARM processor, which can be the Rockchip RK3568J. The CAN bus module includes a CAN controller, which can be the Honglixin HYM65HVD230. The Ethernet module includes an Ethernet PHY, which can be the Yutai Microelectronics YT8511H.

[0069] The power management module includes a power management chip and a DC / DC converter. The power management chip can use Rockchip RK809-5, and the DC / DC converter can use Chengxinwei CX8855.

[0070] In some embodiments of the present application, when the message to be converted is a CAN message and the target message is an Ethernet message, step S200 is further described. The step S200 of "converting the message to be converted into the target message" includes:

[0071] Step S210: Obtain a first mapping table, the first mapping table including a plurality of first mapping relationships, the first mapping relationship being a mapping relationship between an ID address and an IP address;

[0072] Step S211: Parse the CAN message to obtain the ID address and CAN data;

[0073] Step S212: Obtain the target IP address according to the ID address and the first mapping table;

[0074] Step S240: Encapsulate the CAN data and the target IP address to obtain an Ethernet message.

[0075] In this embodiment, after receiving a CAN message, the CAN bus module parses the CAN message to obtain the ID address and CAN data. Based on the ID address, the module queries the first mapping table to obtain the target IP address. The CAN message and target IP address are then encapsulated into a UDP message, i.e., an Ethernet message, which is then transmitted via the Ethernet module.

[0076] In some embodiments of the present application, when the message to be converted is an Ethernet message and the target message is a CAN message, step S200 is further described. The step S200 of "converting the message to be converted into the target message" includes:

[0077] Step S221: Parse the Ethernet message to obtain the ID address and CAN data;

[0078] Step S222: Encapsulate the ID address and CAN data to obtain a CAN message.

[0079] In this embodiment, after receiving the Ethernet message, that is, the UDP message, the Ethernet module parses the UDP message to obtain the ID address and CAN data, encapsulates the ID address and CAN data to obtain a CAN message, and then sends it to the CAN bus module.

[0080] In some embodiments of the present application, when the message to be converted is a serial port message and the target message is an Ethernet message, step S200 is further described. The step S200 of "converting the message to be converted into the target message" includes:

[0081] Step S231: remove the check code of the serial port message to obtain the intermediate message;

[0082] Step S232: Add an Ethernet message header to the intermediate message to obtain an Ethernet message.

[0083] In this embodiment, after receiving an RTU message (i.e., a serial message), the serial port module removes the CRC checksum from the serial message to obtain an intermediate message. An Ethernet message header (i.e., a TCP header) is added to the intermediate message to obtain a TCP message (i.e., an Ethernet message). The Ethernet module then transmits the Ethernet message.

[0084] In some embodiments of the present application, when the message to be converted is an Ethernet message and the target message is a serial port message, step S200 is further described. The step S200 of "converting the message to be converted into the target message" includes:

[0085] Step S241: Parse the Ethernet message to obtain Ethernet data;

[0086] Step S242: Add a check code to the Ethernet data to obtain a serial port message.

[0087] In this embodiment, after receiving the Ethernet message, the Ethernet module parses the Ethernet message to obtain Ethernet data, namely PDU data, adds a CRC check code to the PDU data to obtain an RTU message, and then sends the RTU message through the serial port module.

[0088] In some embodiments of the present application, when the message to be converted is a CAN message and the target message is a serial port message, step S200 is further described. The step S200 of "converting the message to be converted into the target message" includes:

[0089] Step S251: obtaining a second mapping table, the second mapping table including a plurality of second mapping relationships, the second mapping relationship being a mapping relationship between an ID address and a register address;

[0090] Step S252: Parse the CAN message to obtain the target ID address and CAN data;

[0091] Step S253: Obtain the target register address according to the target ID address and the second mapping table;

[0092] Step S254: Encapsulate the target register address and CAN data to obtain a serial port message.

[0093] In this embodiment, after receiving a CAN message, the CAN bus module parses the CAN message to obtain a target ID address and CAN data, queries a second mapping table based on the target ID address, obtains a target register address, encapsulates the target register address and CAN data, obtains a serial message, and then sends the serial message through the serial port module.

[0094] In some embodiments of the present application, when the message to be converted is a serial port message and the target message is a CAN message, step S200 is further described. The step S200 of "converting the message to be converted into the target message" includes:

[0095] Step S261: obtaining a second mapping table, the second mapping table including a plurality of second mapping relationships, the second mapping relationship being a mapping relationship between an ID address and a register address;

[0096] Step S262: Parse the serial port message to obtain the serial port data and the target register address;

[0097] Step S263: Obtain the target ID address according to the target register address and the second mapping table;

[0098] Step S264: Encapsulate the serial port data and the target ID address to obtain a CAN message.

[0099] In this embodiment, after receiving a serial message, the serial port module parses the serial message to obtain the serial data and the target register address. Based on the target register address and the second mapping table, the target ID address is obtained. The serial data and the target ID address are encapsulated to obtain a CAN message, which is then sent via the CAN bus module.

[0100] In some embodiments of the present application, a dedicated hardware arbitration module is integrated into the main control chip to detect the data flow of the communication protocol interface of the CAN bus module, Ethernet module, and serial port module in real time and dynamically allocate processing priorities:

[0101] a) Highest priority (real-time control): CAN bus module, response delay less than 1ms;

[0102] b) Second priority (large data transmission): Ethernet module, bandwidth utilization greater than or equal to 90%;

[0103] c) Lowest priority (low-speed device): serial port module, polling interval is configurable.

[0104] In this embodiment, when multiple protocols initiate transmission requests simultaneously, the arbitration module allocates bus usage rights in order of priority; and enables a cache queue for low-priority data.

[0105] In some embodiments of the present application, the method further comprises:

[0106] Step S400: obtaining the battery temperature of the industrial tablet computer;

[0107] Step S410: If the battery temperature is lower than a preset first temperature threshold;

[0108] Step S420: controlling the battery to output a pulse current until the battery temperature rises to a preset second temperature threshold.

[0109] In this embodiment, a battery temperature sensor monitors the battery temperature. If the battery temperature falls below a first temperature threshold, the battery is controlled to output alternating positive and negative high-frequency pulse currents, thereby raising the battery temperature. When the battery temperature rises to a preset second temperature threshold, the battery is controlled to stop outputting the pulse currents.

[0110] In some embodiments of the present application, the frequency of the pulse current is 5 kHz, and to balance the heating rate with the risk of lithium deposition, the current is 0.5 C. The duty cycle of the pulse current is 50%, and the positive and negative pulses are symmetrical to avoid net charge accumulation leading to lithium deposition.

[0111] In some embodiments of the present application, a battery management system reads the battery voltage, internal resistance, and current temperature to assess the battery health status. The battery uses an ultra-low temperature electrolyte formula and a composite negative electrode material.

[0112] In some embodiments of the present application, the “controlling the battery output pulse current” in step S420 is further described. Step S420 includes:

[0113] Step S421: Controlling the battery to output a first pulse current at a preset first discharge rate for a first preset time;

[0114] Step S421: controlling the battery to output a second pulse current at a preset second discharge rate, where the second discharge rate is greater than the first discharge rate.

[0115] In this embodiment, a first pulse current is output at a first discharge rate (e.g., 0.1C) for a first preset time (e.g., 30 seconds), with a frequency of 1kHz. The discharge rate is then gradually increased to a second discharge rate (e.g., 0.5C, 1C), and a second pulse current is output at a frequency of 5kHz. This prevents a sudden increase in internal resistance or local overheating of the battery caused by electrolyte solidification at low temperatures.

[0116] The battery temperature, voltage and internal resistance are collected every 10 seconds. If a sudden voltage drop (indicating the risk of lithium deposition) or a temperature rise rate greater than 5°C / min is detected, the current is reduced to the preset safety threshold.

[0117] The first temperature threshold is not limited to a value; for example, it can be set to -20°C. The second temperature threshold is not limited to a value and can be determined based on the device's operating temperature; for example, it can be set to -20°C. Upon reaching the second temperature threshold, the output pulse current heating stops and the device switches to normal discharge mode. If the heating timeout occurs (for example, if the second temperature threshold is not reached within 10 minutes), a low-temperature alarm is triggered and the output is cut off.

[0118] In some embodiments of the present application, when the pulse current exceeds 1.2C, the output pulse current is immediately terminated and switched to the bypass circuit.

[0119] In some embodiments of the present application, multiple temperature probe detection and temperature equalization design are used to ensure that the temperature difference between battery cells is less than 2°C.

[0120] In some embodiments of the present application, lithium metal is partially dissolved by the reverse phase of the pulse current (ie, negative current), and the dendrite growth is reduced in combination with the LiNO3 additive.

[0121] In some embodiments of the present application, an H-bridge driver circuit generates alternating positive and negative pulse currents to control the current direction and amplitude. The H-bridge driver circuit includes four MOSFETs that achieve bidirectional current drive by alternating diagonal switches. The driver chip receives PWM signals from the main control chip and provides high-side / low-side drive voltages. The pulse current passes through the positive electrode of the battery, the H-bridge driver circuit, the shunt, and the negative electrode of the battery in sequence, forming a closed loop.

[0122] In some embodiments of the present application, the battery temperature sensor is a chip-type NTC thermistor installed on the surface of the battery cell.

[0123] In some embodiments of the present application, a protection circuit module is also included to prevent abnormal conditions such as overvoltage, overcurrent, and temperature gradient exceeding the limit.

[0124] In some embodiments of the present application, during the low-temperature startup phase, when the battery temperature is less than -20°C, power is supplied only to the battery management system, H-bridge driver circuit, battery temperature sensor, and RTC clock. When the temperature is between -20°C and 0°C, the low-power core of the main control chip is activated, the CAN bus module, Ethernet module, and serial port module maintain basic monitoring, the screen remains off, and the ADC acquisition module and discrete input and output modules operate at current limiting. When the temperature is greater than or equal to 0°C, the industrial tablet computer resumes all functions and operates at full capacity.

[0125] In addition, the embodiment of the present application provides an electronic device 100, such as Figure 3 As shown, including:

[0126] at least one processor 110;

[0127] at least one memory 120, for storing at least one program;

[0128] When at least one program is executed by at least one processor 110 , the multi-protocol communication method described above is implemented.

[0129] The electronic device 100 provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same beneficial effects. To avoid repetition, it will not be described here.

[0130] In addition, an embodiment of the present application provides an industrial tablet computer, including the electronic device as described above.

[0131] The industrial tablet computer provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same beneficial effects. To avoid repetition, it will not be described here.

[0132] In addition, an embodiment of the present application provides a computer-readable storage medium, which stores a program executable by a processor. When the program executable by the processor is executed by the processor, it is used to implement the multi-protocol communication method as described above.

[0133] The computer-readable storage medium provided in the embodiment of the present application can implement each process implemented in the above method embodiment and achieve the same beneficial effects. To avoid repetition, it will not be described here.

[0134] Those skilled in the art will appreciate that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media is included in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data) and is volatile and non-volatile, removable, and non-removable. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage, or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0135] The embodiments of the present application are described in detail above in conjunction with the accompanying drawings, but the present application is not limited to the above embodiments. Various changes can be made within the scope of knowledge possessed by ordinary technicians in the relevant technical field without departing from the purpose of the present application.

Claims

1. A multi-protocol communication method, characterized in that: Applied to an electronic device, the electronic device is provided on an industrial tablet computer, the industrial tablet computer has an Ethernet module, a serial port module and a CAN bus module, the method includes: Acquire a message to be converted, wherein the message to be converted includes any one of a CAN message, an Ethernet message, and a serial port message; Converting the message to be converted into a target message, wherein the target message includes a text of a CAN message, an Ethernet message, and a serial port message, and the target message is different from the message type of the message to be converted; Send the target data to the corresponding Ethernet module, serial port module or CAN bus module.

2. The multi-protocol communication method according to claim 1, wherein: In a case where the message to be converted is the CAN message and the target message is the Ethernet message, converting the message to be converted into the target message includes: Obtain a first mapping table, where the first mapping table includes a plurality of first mapping relationships, where the first mapping relationship is a mapping relationship between an ID address and an IP address; Parsing the CAN message to obtain the ID address and CAN data; Obtaining a target IP address according to the ID address and the first mapping table; The CAN data and the target IP address are encapsulated to obtain the Ethernet message.

3. The multi-protocol communication method according to claim 1, wherein: In a case where the message to be converted is the Ethernet message and the target message is the CAN message, converting the message to be converted into the target message includes: Parsing the Ethernet message to obtain the ID address and CAN data; The ID address and the CAN data are encapsulated to obtain a CAN message.

4. The multi-protocol communication method according to claim 1, wherein: In a case where the message to be converted is the serial port message and the target message is the Ethernet message, converting the message to be converted into the target message includes: Removing the check code of the serial port message to obtain an intermediate message; An Ethernet message header is added to the intermediate message to obtain the Ethernet message.

5. The multi-protocol communication method according to claim 1, wherein: In a case where the message to be converted is the Ethernet message and the target message is the serial port message, converting the message to be converted into the target message includes: Parsing the Ethernet message to obtain Ethernet data; A check code is added to the Ethernet data to obtain a serial port message.

6. The multi-protocol communication method according to claim 1, wherein: In a case where the message to be converted is the CAN message and the target message is the serial port message, converting the message to be converted into the target message includes: Obtain a second mapping table, where the second mapping table includes a plurality of second mapping relationships, where the second mapping relationship is a mapping relationship between an ID address and a register address; Parsing the CAN message to obtain the target ID address and CAN data; Obtaining a target register address according to the target ID address and the second mapping table; The target register address and the CAN data are encapsulated to obtain the serial port message.

7. The multi-protocol communication method according to claim 1, wherein: In a case where the message to be converted is the serial port message and the target message is the CAN message, converting the message to be converted into the target message includes: Obtain a second mapping table, where the second mapping table includes a plurality of second mapping relationships, where the second mapping relationship is a mapping relationship between an ID address and a register address; Parsing the serial port message to obtain serial port data and target register address; Obtaining a target ID address according to the target register address and the second mapping table; The serial port data and the target ID address are encapsulated to obtain the CAN message.

8. The multi-protocol communication method according to claim 1, wherein: The method further comprises: Obtaining the battery temperature of the industrial tablet computer; If the battery temperature is lower than a preset first temperature threshold; The battery is controlled to output a pulse current until the battery temperature rises to a preset second temperature threshold.

9. An electronic device, characterized in that: include: at least one processor; at least one memory for storing at least one program; When at least one of the programs is executed by at least one of the processors, the multi-protocol communication method according to any one of claims 1 to 8 is implemented.

10. An industrial tablet computer, characterized in that: Comprising the electronic device as claimed in claim 9.

Citation Information

Patent Citations

  • Power battery system, heating control method and device, equipment and storage medium

    CN119261676A

  • Embedded configurable multi-protocol communication network converter

    CN202495966U

  • Multi -function communication protocol conversion module

    CN205901791U

  • Serial ports and CAN bus protocol converter based on STM32

    CN206302426U

  • Intelligent control terminal based on PLC and man -machine interface

    CN206684563U