Canopen-based master station gateway

By designing a CANopen-based master gateway, combined with a GPS module and optional interfaces, the problems of resource waste and poor real-time performance of existing equipment were solved, information synchronization and cost reduction were achieved, and the practicality and economy of the product were improved.

CN221886511UActive Publication Date: 2024-10-22BEIJING JUYING ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202323539729.X
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2024-10-22
Estimated Expiration
2033-12-25

AI Technical Summary

Technical Problem

Existing gateway devices typically have two interfaces, leading to wasted resources and increased costs. They also lack GPS functionality, have poor real-time performance, and are insufficient in terms of versatility and practicality.

Method used

Design a master station gateway based on CANopen, which includes an MCU module, a GPS module, a SIM card slot, RS485 and CAN communication modules, and optional RS485 and CAN interfaces. Through shared protection circuits and optional interfaces, information synchronization and flexible interface selection are achieved.

Benefits of technology

It enables real-time information synchronization and location tracking, reduces production and sales costs, improves product usability and economy, and adapts to different interface requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221886511U_ABST
    Figure CN221886511U_ABST
Patent Text Reader

Abstract

The utility model discloses a main station gateway based on canopen. The main station gateway comprises an MCU (Microprogrammed Control Unit) module, a GPS (Global Positioning System) module, an SIM (Subscriber Identity Module) card seat, an RS485 and CAN (Controller Area Network) communication module, an RS232 communication module, an RS232 interface and an RS485 and CAN selectable interface, the SIM card seat is electrically connected with the GPS module, and the GPS module is electrically connected with the MCU module; the RS232 interface is electrically connected with the MCU module through the RS232 communication module; the RS485 optional interface and the CAN optional interface are electrically connected with the MCU module through the RS485 communication module and the CAN communication module. According to the utility model, the functions of the 485 interface and the CAN interface can be considered at the same time, and the production cost is reduced and the universality of the product is improved by arranging the RS485 and CAN communication module and the RS485 and CAN selectable interfaces.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of master station gateways, and in particular to a master station gateway based on CANOPEN. Background Art

[0002] In various industrial control and communication systems, Modbus bus and CAN bus are two common data communication methods. In order to meet the use requirements of both, existing gateway devices usually design two interfaces or a single interface. When designing two interfaces, it includes both the CAN interface and the RS485 interface. Two sets of transceiver circuits are designed inside the gateway to realize the use of the two interfaces. When only a single interface is needed, the other interface is often wasted and the production cost is increased. When designing one interface, it can often only meet one of the CAN interface and the RS485 interface. When different interfaces are needed, different gateway devices are often required to be purchased, which also increases the cost to a certain extent. While the versatility is poor, the practicality is also greatly affected and it is not very convenient to use. At the same time, the existing gateway device does not have a GPS function, and cannot achieve information synchronization, and the real-time performance is poor.

[0003] Therefore, there is an urgent need for a master station gateway based on CANopen to overcome the above defects. Utility Model Content

[0004] In view of the deficiencies in the prior art, the utility model provides a master station gateway based on CANOPEN.

[0005] The utility model discloses a master station gateway based on CANopen, including an MCU module, a GPS module, a SIM card holder, RS485 and CAN communication modules, and RS485 and CAN optional interfaces;

[0006] The SIM card holder is electrically connected to the GPS module, and the GPS module is electrically connected to the MCU module;

[0007] The RS485 and CAN optional interfaces are electrically connected to the MCU module via RS485 and CAN communication modules.

[0008] As a further improvement of the utility model, it also includes a power module, and the power module includes a 7-24V to 4.2V voltage conversion circuit and a 4.2V to 3.3V voltage conversion circuit;

[0009] The 7-24V to 4.2V voltage conversion circuit is used to power the RS485 and CAN communication modules and the GPS module;

[0010] The 4.2V to 3.3V voltage conversion circuit is used to power the MCU module.

[0011] As a further improvement of the present invention, the MCU module includes a single chip microcomputer.

[0012] As a further improvement of the present utility model, the GPS module includes an Air780EG module;

[0013] The DATA pin of the SIM card holder is electrically connected to the USIN_DATA pin of the Air780EG module, the RST pin of the SIM card holder is electrically connected to the USIN_RST pin of the Air780EG module, and the CLK pin of the SIM card holder is electrically connected to the USIN_CLK pin of the Air780EG module;

[0014] The 1PPS pin of the Air780EG module is electrically connected to the PB14 pin of the microcontroller, the PWRKEY pin of the Air780EG module is electrically connected to the PB15 pin of the microcontroller, the RESET_N pin of the Air780EG module is electrically connected to the PB16 pin of the microcontroller, and the RESET_N pin is also connected to GND through capacitor C22.

[0015] As a further improvement of the utility model, the RS485 and CAN communication module includes a 485 transceiver circuit, a CAN transceiver circuit and a protection circuit; the 485 transceiver circuit includes a MAX485 transceiver, and the CAN transceiver circuit includes a CAN transceiver;

[0016] The RO terminal of the MAX485 transceiver is electrically connected to the PA3 terminal of the single-chip microcomputer, and the DI terminal of the MAX485 transceiver is electrically connected to the PA2 terminal of the single-chip microcomputer; the TXD terminal of the CAN transceiver is electrically connected to the PA12 terminal of the single-chip microcomputer, and the RXD terminal of the CAN transceiver is electrically connected to the PA11 terminal of the single-chip microcomputer;

[0017] The A end of the MAX485 transceiver and the CANH end of the CAN transceiver are connected in parallel and electrically connected to the RS485 and CAN optional interfaces through the protection circuit;

[0018] The B end of the MAX485 transceiver and the CANL end of the CAN transceiver are connected in parallel and electrically connected to the RS485 and CAN optional interfaces through the protection circuit.

[0019] As a further improvement of the utility model, the protection circuit includes a diode D5, a diode D6, a resistor R6, a resistor R7, a resistor R15, and a resistor R16;

[0020] The A end of the MAX485 transceiver, the CANH end of the CAN transceiver, and the cathode of the diode D5 are connected in parallel and electrically connected to one end of the resistor R6, and the other end of the resistor R6 and one end of the resistor R15 are connected in parallel and connected to the positive electrode of the RS485 and CAN optional interface;

[0021] The B end of the MAX485 transceiver, the CANL end of the CAN transceiver, and the cathode of the diode D6 are connected in parallel and electrically connected to one end of the resistor R7, and the other end of the resistor R7 and one end of the resistor R16 are connected in parallel and electrically connected to the cathode of the RS485 and CAN optional interface;

[0022] The anode of the diode D5 and the anode of the diode D6 are connected to GND respectively, and the VREF end of the CAN transceiver, the other end of the resistor R15 and the other end of the resistor R16 are connected in parallel and connected to GND via the capacitor C23.

[0023] As a further improvement of the present utility model, the RS485 and CAN optional interface includes one of an RS485 interface and a CAN interface.

[0024] As a further improvement of the utility model, it also includes an RS232 communication module and an RS232 interface, wherein the RS232 communication module includes a MAX232 transceiver;

[0025] The T2IN terminal of the MAX232 transceiver is electrically connected to the PA9 terminal of the single-chip microcomputer, the R2OUT terminal of the MAX232 transceiver is electrically connected to the PA10 terminal of the single-chip microcomputer, and the T2OUT terminal of the MAX232 transceiver and the R2IN terminal of the MAX232 transceiver are respectively connected in series with resistors R11 and R12 and then electrically connected to the RS232 interface.

[0026] As a further improvement of the utility model, it also includes a power indicator light, an operation indicator light, and a reset button;

[0027] The positive electrode of the power indicator light is electrically connected to the PB4 terminal of the single-chip computer through the resistor R9, the positive electrode of the operation indicator light is electrically connected to the PB3 terminal of the single-chip computer through the resistor R10, and one end of the reset button is electrically connected to the PA15 terminal of the single-chip computer.

[0028] The cathode of the power indicator light, the cathode of the operation indicator light, and the other end of the reset button are connected to GND respectively.

[0029] As a further improvement of the utility model, it also includes a housing;

[0030] The MCU module, GPS module, SIM card holder, RS485 and CAN communication modules, and the power module are all installed on a control mainboard, and the control mainboard is placed in the housing;

[0031] The RS485 and CAN optional interfaces, the SIM card holder and the reset button are respectively installed on the side of the housing, and the power indicator light and the operation indicator light are installed on the front of the housing;

[0032] The shell is labeled with text and patterns corresponding to the RS485 and CAN optional interfaces, the SIM card holder, the reset button, the power indicator light and the operation indicator light.

[0033] Compared with the prior art, the beneficial effects of the utility model are:

[0034] The utility model realizes the 4G function of the master station gateway by designing a GPS module and a SIM card holder. At the same time, the design of the GPS module also realizes the acquisition of real-time positioning information of the master station gateway, which can achieve information synchronization and improve real-time performance. At the same time, the 4G function also satisfies the gateway to upload the collected information to the cloud platform for further processing and storage of the information.

[0035] The utility model simplifies the internal circuit structure by designing RS485 and CAN communication modules and RS485 and CAN optional interfaces, and by using the 485 transceiver circuit and the CAN transceiver circuit to share the protection circuit output. At the same time, by designing RS485 and CAN optional interfaces, the RS485 interface or the CAN interface can be welded according to different usage scenarios and requirements, and the production and sales costs and inventory can be effectively reduced on the basis of taking RS485 and CAN communications into consideration. When the RS485 interface is welded, it can be used as a modbus master station to access the slave machine information, and when the CAN interface is welded, it can be used as a canopen host to inspect the slave machine information, which greatly improves the practicality and economy of the product. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 This is a schematic diagram of the structure of a master station gateway based on CANOPEN disclosed in an embodiment of the utility model;

[0037] Figure 2 This is a circuit structure diagram of a power module of a master station gateway based on CANOPEN disclosed in an embodiment of the utility model;

[0038] Figure 3 This is a circuit structure diagram of an MCU module of a master station gateway based on canopen disclosed in an embodiment of the utility model;

[0039] Figure 4This is a circuit diagram of a SIM card holder based on a canopen master station gateway disclosed in an embodiment of the utility model;

[0040] Figure 5 This is a circuit structure diagram of a GPS module based on a canopen master station gateway disclosed in an embodiment of the utility model;

[0041] Figure 6 This is a circuit diagram of RS485 and CAN communication modules of a master gateway based on canopen disclosed in an embodiment of the utility model;

[0042] Figure 7 This is a circuit diagram of an RS232 communication module of a master station gateway based on canopen disclosed in an embodiment of the utility model;

[0043] Figure 8 This is a circuit diagram of a power indicator light, a running indicator light, and a reset button of a master station gateway based on CANOPEN disclosed in an embodiment of the utility model.

[0044] In the figure:

[0045] 1. MCU module; 2. GPS module; 3. RS485 and CAN communication module; 4. RS232 communication module; 5. Power module; 6. SIM card holder; 7. RS485 and CAN optional interface; 8. RS232 interface; 9. Power indicator light; 10. Operation indicator light; 11. Reset button. DETAILED DESCRIPTION

[0046] In order to make the purpose, technical solution and advantages of the embodiment of the utility model clearer, the technical solution in the embodiment of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiment of the utility model. Obviously, the described embodiment is a part of the embodiment of the utility model, not all of the embodiments. Based on the embodiment of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the utility model.

[0047] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention 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 limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0048] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0049] The utility model is further described in detail below in conjunction with the accompanying drawings:

[0050] like Figure 1 As shown, a master station gateway based on CANOPEN provided by the utility model includes an MCU module 1, a GPS module 2, a SIM card holder 6, an RS485 and CAN communication module 3, an RS232 communication module 4, an RS232 interface 8 and an RS485 and CAN optional interface 7; the SIM card holder 6 is electrically connected to the GPS module 2, and the GPS module 2 is electrically connected to the MCU module 1; the RS232 interface 8 is electrically connected to the MCU module 1 through the RS232 communication module 4; the RS485 and CAN optional interface 7 is electrically connected to the MCU module 1 through the RS485 and CAN communication module 3.

[0051] In the above embodiment, the 4G function of the master station gateway is realized by designing the GPS module 2 and the SIM card holder 6. At the same time, the design of the GPS module 2 also realizes the acquisition of real-time positioning information of the master station gateway, which can achieve information synchronization and improve real-time performance. At the same time, the 4G function also satisfies the gateway to upload the collected information to the cloud platform for further processing and storage of the information; by designing the RS485 and CAN communication modules 3 and the RS485 and CAN optional interfaces 7, the internal circuit structure is simplified by outputting the shared protection circuit of the 485 transceiver circuit and the CAN transceiver circuit. At the same time, by designing the RS485 and CAN optional interfaces 7, the RS485 interface or the CAN interface can be welded according to different usage scenarios and requirements. On the basis of taking into account RS485 and CAN communications, the production and sales costs and inventory can be effectively reduced; when the RS485 interface is welded, it can be used as a modbus master station to access the sub-machine information, and when the CAN interface is welded, it can be used as a canopen host to inspect the sub-machine information, which greatly improves the practicality and economy of the product.

[0052] Specific:

[0053] like Figure 2 As shown, in the above embodiment, preferably, a power module 5 is also included, and the power module 5 includes a 7-24V to 4.2V voltage conversion circuit (such as Figure 2 The part shown in A), 4.2V to 3.3V voltage conversion circuit (such as Figure 2 The 7-24V to 4.2V voltage conversion circuit is used to power the RS485 and CAN communication modules 3, the GPS module 1 and the RS232 communication module 4; the 4.2V to 3.3V voltage conversion circuit is used to power the MCU module 1.

[0054] In the above embodiment, preferably, the 7-24V to 4.2V voltage conversion circuit (such as Figure 2 The part shown in A in the figure includes fuse F1, diode D1, diode D2, buck chip XL1509-ADJ, diode D3, capacitor C1, capacitor C2, capacitor C3, resistor R1, resistor R2, wherein the VI of the buck chip XL1509-ADJ The N pin, one end of the capacitor C1, and the negative electrode of the diode D2 are connected in parallel and then electrically connected to the negative electrode of the diode D1 through the fuse F1, and the positive electrode of the diode D1 is electrically connected to the external input power supply; the OUT pin of the buck chip XL1509-ADJ and the negative electrode of the diode D3 are connected in parallel and then electrically connected to one end of the inductor L1, the FB pin of the buck chip XL1509-ADJ and one end of the resistor R1 are connected in parallel and then connected to one end of the resistor R2, the other end of the resistor R2, one end of the capacitor C2, the other end of the inductor L1, and one end of the capacitor C3 are connected in parallel to output a 4.2V voltage, and the CE pin of the buck chip XL1509-ADJ, the GND pin, the other end of the capacitor C1, the positive electrode of the diode D2, the positive electrode of the diode D3, the other end of the resistor R1, the other end of the capacitor C2, and the other end of the capacitor C3 are connected in parallel and then connected to GND. The external input power supply voltage value in this embodiment can be 7-24V.

[0055] In the above embodiment, preferably, the 4.2V to 3.3V voltage conversion circuit (such as Figure 2 The part shown in B in the figure includes an MD5333 chip, a capacitor C5, a capacitor C6, and a capacitor C7, wherein pins 2 and 4 of the MD5333 chip are connected in parallel to a 4.2V voltage, pin 3 of the MD5333 chip, one end of the capacitor C5, one end of the capacitor C6, and one end of the capacitor C7 are connected in parallel to output a 3.3V voltage, and pin 1 of the MD5333 chip, the other end of the capacitor C5, the other end of the capacitor C6, and the other end of the capacitor C7 are connected in parallel to GND.

[0056] like Figure 3 As shown, in the above embodiment, preferably, the MCU module 1 includes a single-chip microcomputer. In this embodiment, the single-chip microcomputer is preferably a STM32F103C8T6 high-performance single-chip microcomputer to meet the high-speed data processing requirements.

[0057] like Figure 4-5As shown, in the above embodiment, preferably, the GPS module 2 includes an Ai r780EG module; the DATA pin of the SIM card holder 6 is electrically connected to the USIN_DATA pin of the Ai r780EG module, the RST pin of the SIM card holder 6 is electrically connected to the USIN_RST pin of the Ai r780EG module, and the CLK pin of the SIM card holder 6 is electrically connected to the USIN_CLK pin of the Ai r780EG module; the VCC pin of the SIM card holder 6, one end of the resistor R19, and one end of the capacitor C20 are connected in parallel and then connected to SIMVDD, the other end of the resistor R19 and the other end of the capacitor C20 are connected in parallel and then connected to GND, and the GND pin of the SIM card holder 6 is connected to GND; the 1PPS pin of the Ai r780EG module is electrically connected to the PB14 pin of the single-chip microcomputer; Ai The RESET_N pin of the r780EG module, one end of the capacitor C22, and one end of the resistor R28 are connected in parallel and electrically connected to the PB16 pin of the microcontroller. The other end of the capacitor C22 is connected to GND. The other end of the resistor R28, one end of the resistor R27, and one end of the resistor R13 are connected in parallel and connected to one end of the capacitor C4. The other end of the capacitor C4 is connected to GND. The PWRKEY pin of the r780EG module and the other end of the resistor R27 are connected in parallel and electrically connected to the PB15 pin of the microcontroller.

[0058] In the above embodiment, preferably, the 4G function of the main station gateway is realized through the SIM card holder 6 and the GPS module 2, and the gateway can upload the collected information to the cloud platform in the mqtt protocol format for further processing and storage of the information; at the same time, the design of the GPS module also realizes the acquisition of real-time positioning information of the main station gateway, and can achieve 1pps time synchronization and real-time positioning information acquisition, thereby improving real-time performance.

[0059] like Figure 6 As shown, in the above embodiment, preferably, the RS485 and CAN communication module 3 includes a 485 transceiver circuit, a CAN transceiver circuit and a protection circuit; the 485 transceiver circuit includes a MAX485 transceiver, and the CAN transceiver circuit includes a CAN transceiver; the RO end of the MAX485 transceiver is electrically connected to the PA3 end of the single-chip microcomputer, and the DI end of the MAX485 transceiver is electrically connected to the PA2 end of the single-chip microcomputer; the TXD end of the CAN transceiver is electrically connected to the PA12 end of the single-chip microcomputer, and the RXD end of the CAN transceiver is electrically connected to the PA11 end of the single-chip microcomputer; the A end of the MAX485 transceiver and the CANH end of the CAN transceiver are connected in parallel and electrically connected to the RS485 and CAN optional interface through the protection circuit; the B end of the MAX485 transceiver and the CANL end of the CAN transceiver are connected in parallel and electrically connected to the RS485 and CAN optional interface 7 through the protection circuit.

[0060] In the above embodiment, preferably, the protection circuit includes a diode D5, a diode D6, a resistor R6, a resistor R7, a resistor R15, and a resistor R16; wherein the A end of the MAX485 transceiver, one end of the resistor R5, the CANH end of the CAN transceiver, and the cathode of the diode D5 are connected in parallel and electrically connected to one end of the resistor R6, and the other end of the resistor R6 and one end of the resistor R15 are connected in parallel and connected to the positive electrode of the RS485 and CAN optional interface 7; the B end of the MAX485 transceiver, one end of the resistor R8, the CANL end of the CAN transceiver, and the cathode of the diode D6 After being connected in parallel, it is electrically connected to one end of the resistor R7, and the other end of the resistor R7 and one end of the resistor R16 are electrically connected in parallel to the negative electrode of the RS485 and CAN optional interface 7; the positive electrode of the diode D5 and the positive electrode of the diode D6 are connected to GND respectively, the VREF end of the CAN transceiver, the other end of the resistor R15, and the other end of the resistor R16 are connected in parallel and connected to GND through the capacitor C23; the VCC end of the MAX485 transceiver, one end of the capacitor C14, and the other end of the resistor R5 are connected in parallel and connected to a 4.2V voltage, and the other end of the capacitor C14 and the other end of the resistor R8 are connected in parallel and connected to GND.

[0061] like Figure 7 As shown, in the above embodiment, preferably, the RS232 communication module 4 includes a MAX232 transceiver; the T2IN terminal of the MAX232 transceiver is electrically connected to the PA9 terminal of the single-chip microcomputer, the R2OUT terminal of the MAX232 transceiver is electrically connected to the PA10 terminal of the single-chip microcomputer, and the T2OUT terminal of the MAX232 transceiver and the R2IN terminal of the MAX232 transceiver are electrically connected to the RS232 interface 8 after being connected in series with the resistor R11 and the resistor R12 respectively.

[0062] like Figure 8 As shown, in the above embodiment, preferably, it also includes a power indicator light 9, an operation indicator light 10, and a reset button 11; wherein, the positive electrode of the power indicator light 9 is electrically connected to the PB4 terminal of the single-chip computer through a resistor R9, and the positive electrode of the operation indicator light 10 is electrically connected to the PB3 terminal of the single-chip computer through a resistor R10, and the reset button 11 has buttons S1 and S2, one end of button S1 and one end of button S2 are connected in parallel and then connected to GND, the other end of button S1 is electrically connected to the PA15 terminal of the single-chip computer, and the other end of button S2 is connected to a 3.3V voltage through a resistor R29, and the other end of button S1 and the other end of button S2 are also arranged in parallel. The negative electrode of the power indicator light 9 and the negative electrode of the operation indicator light 10 are connected to GND respectively. The reset button 11 in this embodiment is a 4.5*4.5*5 button.

[0063] In the above embodiment, preferably, it also includes a housing; the MCU module 1, the GPS module 2, the SIM card holder 6, the RS485 and CAN communication modules 3, the RS232 communication module 4, and the power module 5 are all installed on the control mainboard, and the control mainboard is placed in the housing; the RS485 and CAN optional interfaces 7, the RS232 interface 8, the SIM card holder 6, and the reset button 11 are respectively installed on the side of the housing, and the power indicator light 9 and the operation indicator light 10 are installed on the front of the housing; the housing corresponds to the RS485 and CAN optional interfaces, the RS232 interface 8, the SIM card holder 6, the reset button 11, the power indicator light 9, and the operation indicator light 10. The logo can be a text or pattern logo so that the operator can understand the wiring requirements of different interfaces.

[0064] In the above embodiment, preferably, both sides of the back plate of the shell can also extend outward horizontally to form hanging ears to facilitate the installation of the shell.

[0065] In the above embodiment, preferably, the user can weld the 485 interface or the CAN interface through the RS485 and CAN optional interface 7 according to the use requirements to meet different usage scenarios, thereby reducing the production cost and improving its economy and practicality.

[0066] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may be subject to various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A master station gateway based on canopen, characterized in that: Including MCU module, GPS module, SIM card holder, RS485 and CAN communication modules and RS485 and CAN optional interfaces; The SIM card holder is electrically connected to the GPS module, and the GPS module is electrically connected to the MCU module; The RS485 and CAN optional interfaces are electrically connected to the MCU module via RS485 and CAN communication modules.

2. The master station gateway according to claim 1, characterized in that: It also includes a power module, which includes a 7-24V to 4.2V voltage conversion circuit and a 4.2V to 3.3V voltage conversion circuit; The 7-24V to 4.2V voltage conversion circuit is used to power the RS485 and CAN communication modules and the GPS module; The 4.2V to 3.3V voltage conversion circuit is used to power the MCU module.

3. The master station gateway according to claim 2, characterized in that: The MCU module includes a single chip microcomputer.

4. The master station gateway according to claim 3, characterized in that: The GPS module includes an Air780EG module; The DATA pin of the SIM card holder is electrically connected to the USIN_DATA pin of the Air780EG module, the RST pin of the SIM card holder is electrically connected to the USIN_RST pin of the Air780EG module, and the CLK pin of the SIM card holder is electrically connected to the USIN_CLK pin of the Air780EG module; The 1PPS pin of the Air780EG module is electrically connected to the PB14 pin of the microcontroller, the PWRKEY pin of the Air780EG module is electrically connected to the PB15 pin of the microcontroller, the RESET_N pin of the Air780EG module is electrically connected to the PB16 pin of the microcontroller, and the RESET_N pin is also connected to GND through capacitor C22.

5. The master station gateway according to claim 3, characterized in that: The RS485 and CAN communication module includes a 485 transceiver circuit, a CAN transceiver circuit and a protection circuit; the 485 transceiver circuit includes a MAX485 transceiver, and the CAN transceiver circuit includes a CAN transceiver; The RO terminal of the MAX485 transceiver is electrically connected to the PA3 terminal of the single-chip microcomputer, and the DI terminal of the MAX485 transceiver is electrically connected to the PA2 terminal of the single-chip microcomputer; the TXD terminal of the CAN transceiver is electrically connected to the PA12 terminal of the single-chip microcomputer, and the RXD terminal of the CAN transceiver is electrically connected to the PA11 terminal of the single-chip microcomputer; The A end of the MAX485 transceiver and the CANH end of the CAN transceiver are connected in parallel and electrically connected to the RS485 and CAN optional interfaces through the protection circuit; The B end of the MAX485 transceiver and the CANL end of the CAN transceiver are connected in parallel and electrically connected to the RS485 and CAN optional interfaces through the protection circuit.

6. The master station gateway according to claim 5, characterized in that: The protection circuit includes a diode D5, a diode D6, a resistor R6, a resistor R7, a resistor R15, and a resistor R16; The A end of the MAX485 transceiver, the CANH end of the CAN transceiver, and the cathode of the diode D5 are connected in parallel and electrically connected to one end of the resistor R6, and the other end of the resistor R6 and one end of the resistor R15 are connected in parallel and connected to the positive electrode of the RS485 and CAN optional interface; The B end of the MAX485 transceiver, the CANL end of the CAN transceiver, and the cathode of the diode D6 are connected in parallel and electrically connected to one end of the resistor R7, and the other end of the resistor R7 and one end of the resistor R16 are connected in parallel and electrically connected to the cathode of the RS485 and CAN optional interface; The anode of the diode D5 and the anode of the diode D6 are connected to GND respectively, and the VREF end of the CAN transceiver, the other end of the resistor R15 and the other end of the resistor R16 are connected in parallel and connected to GND via the capacitor C23.

7. The master station gateway according to claim 6, characterized in that: The RS485 and CAN optional interfaces include one of an RS485 interface and a CAN interface.

8. The master station gateway according to claim 3, characterized in that: It also includes an RS232 communication module and an RS232 interface, wherein the RS232 communication module includes a MAX232 transceiver; The T2IN terminal of the MAX232 transceiver is electrically connected to the PA9 terminal of the single-chip microcomputer, the R2OUT terminal of the MAX232 transceiver is electrically connected to the PA10 terminal of the single-chip microcomputer, and the T2OUT terminal of the MAX232 transceiver and the R2IN terminal of the MAX232 transceiver are respectively connected in series with resistors R11 and R12 and then electrically connected to the RS232 interface.

9. The master station gateway according to claim 3, characterized in that: It also includes a power indicator light, a running indicator light, and a reset button; The positive electrode of the power indicator light is electrically connected to the PB4 terminal of the single-chip computer through the resistor R9, the positive electrode of the operation indicator light is electrically connected to the PB3 terminal of the single-chip computer through the resistor R10, and one end of the reset button is electrically connected to the PA15 terminal of the single-chip computer. The cathode of the power indicator light, the cathode of the operation indicator light, and the other end of the reset button are connected to GND respectively.

10. The master station gateway according to claim 9, characterized in that: Also includes a housing; The MCU module, GPS module, SIM card holder, RS485 and CAN communication modules, and the power module are all installed on a control mainboard, and the control mainboard is placed in the housing; The RS485 and CAN optional interfaces, the SIM card holder and the reset button are respectively installed on the side of the housing, and the power indicator light and the operation indicator light are installed on the front of the housing; The shell is labeled with text and patterns corresponding to the RS485 and CAN optional interfaces, the SIM card holder, the reset button, the power indicator light and the operation indicator light.