Disclosure of Invention
The utility model aims to solve the technical problem that not enough the providing a multi-functional data acquisition transmission circuit for industrial control equipment to above-mentioned prior art, this a multi-functional data acquisition transmission circuit for industrial control equipment can be through RS-232, data information among RS-485 and the ethernet communication interface collection industrial control equipment, adapt to different interfaces, the industrial control equipment of different agreements, and can pass to well accuse and the server on with the data of gathering through LORA wireless communication module and 4G communication module, the collection and the transmission of data have been realized. The problems of high cost, troublesome operation and the like caused by multiple types of data interfaces and different protocols of industrial control equipment are solved. The cost of data acquisition and transmission of the industrial control equipment by enterprises is reduced, and the applicability is improved.
In order to realize the technical purpose, the utility model discloses the technical scheme who takes does:
a multifunctional data acquisition transmission circuit for industrial control equipment comprises a power supply circuit, an RS232 serial port communication circuit, an RS485 serial port communication circuit, a Bluetooth interface circuit, an LED indicating circuit, a controller, an LORA wireless communication circuit, a 4G communication circuit and an Ethernet communication circuit; power supply circuit, RS232 serial communication circuit, RS485 serial communication circuit, bluetooth interface circuit, LED indicating circuit, LORA wireless communication circuit, 4G communication circuit and ethernet communication circuit all are connected with the controller, RS232 serial communication circuit, RS485 serial communication circuit, bluetooth interface circuit, LED indicating circuit, controller, LORA wireless communication circuit, 4G communication circuit and ethernet communication circuit all are connected with power supply circuit.
As a further improved technical solution of the present invention, the power circuit is used for converting +12V dc voltage into +5V, +3.3V and +3.6V dc voltage for power supply; pin 16 of MAX232 level conversion chip in the RS232 serial port communication circuit is connected with +3.3V DC voltage of power supply circuit, pin 8 of MAX485 level conversion chip in the RS485 serial port communication circuit is connected with +5V DC voltage of power supply circuit, pin 5 of CC2541 bluetooth chip in the bluetooth interface circuit is connected with +3.3V DC voltage of power supply circuit, pin 1, pin 32, pin 48, pin 64, pin 19 and pin 13 of controller STM32F103RCT6 chip are connected with +3.3V DC voltage of power supply circuit, pin 6 and pin 13 of LORA module in the LORA wireless communication circuit are connected with +5V DC voltage of power supply circuit, pin 23, pin 24 and pin 25 of L710-CN chip in the 4G communication circuit are connected with +3.6V DC voltage of power supply circuit, pin 28, pin 5500 in the Ethernet communication circuit, Pin 32, pin 36, pin 37, pin 43, pin 44, and pin 45 are connected to the +3.3V dc voltage of the power circuit, and pin 9 and pin 12 of the RJ45 interface in the ethernet communication circuit are connected to the +3.3V of the power circuit.
As a further improved technical solution of the present invention, the RS232 serial port communication circuit includes MAX232 level shift chip, capacitor C4, capacitor C5, capacitor C6, capacitor C8, capacitor C11 and DB9 interface, pin 1 of the MAX232 level shift chip is connected with one end of capacitor C4, pin 3 of the MAX232 level shift chip is connected with the other end of capacitor C4, pin 4 of the MAX232 level shift chip is connected with one end of capacitor C8, pin 5 of the MAX232 level shift chip is connected with the other end of capacitor C8, pin 11 of the MAX232 level shift chip is connected with pin 53 of the controller, pin 12 is connected with pin 54 of the controller, pin 15 is connected with GND, pin 16 is connected with one end of capacitor C5, pin 2 of the MAX232 level shift chip is connected with one end of capacitor C6, the other ends of capacitor C5 and capacitor C6 are connected with GND, pin 14 of the MAX232 level shift chip is connected with pin 2 of DB9 interface, the pin 13 of the MAX232 level conversion chip is connected with the pin 3 of the DB9 interface, the pin 6 of the MAX232 level conversion chip is connected with one end of a capacitor C11, and the other end of the capacitor C11 is simultaneously connected with GND and the pin 5 of the DB9 interface.
The utility model discloses a further improved technical scheme, RS485 serial ports communication circuit includes MAX485 level conversion chip, electric capacity C10 and input J1, electric capacity C10's one end is connected with MAX485 level conversion chip's pin 8 and +5V DC voltage simultaneously, and the other end is connected with MAX485 level conversion chip's pin 5 and GND simultaneously, MAX485 level conversion chip's pin 1 is connected with the pin 52 of controller, and MAX485 level conversion chip's pin 2 and pin 3 are connected with the pin 40 of controller simultaneously, and MAX485 level conversion chip's pin 4 is connected with the pin 51 of controller, and MAX485 level conversion chip's pin 7 is connected with input J1's pin 2, and MAX485 level conversion chip's pin 6 is connected with input J1's pin 1.
As the utility model discloses further modified technical scheme, bluetooth interface circuit includes CC2541 bluetooth chip and electric capacity C7, pin 2 of CC2541 bluetooth chip is connected with pin 29 of controller, and pin 3 of CC2541 bluetooth chip is connected with pin 30 of controller, and pin 4 and GND of CC2541 bluetooth chip are connected, electric capacity C7's one end is connected with pin 5 of CC2541 bluetooth chip, and the other end is connected with GND.
As a further improved technical solution of the present invention, the LED indicating circuit includes a resistor R1, a resistor R2, a resistor R5, a resistor R9, a light emitting diode LED1, a light emitting diode LED2, a light emitting diode LED3, and a light emitting diode LED4, the resistor R1 and the light emitting diode LED1 are connected in series, one end of the resistor R1 is connected to the pin 14 of the controller, one end of the light emitting diode LED1 is connected to GND, the resistor R2 and the light emitting diode LED2 are connected in series, one end of the resistor R2 is connected to the pin 15 of the controller, one end of the light emitting diode LED2 is connected to GND, the resistor R24 and the light emitting diode LED3 are connected in series, one end of the resistor R5 is connected to the pin 61 of the controller, one end of the light emitting diode LED 9 is connected to GND, the resistor R9 and the light emitting diode LED4 are connected in series, one end of the resistor R9 is connected to the pin 62 of the controller, and one end.
As the technical scheme of the further improvement of the utility model, the controller adopts chip STM32F103RCT 6.
As a further improved technical proposal of the utility model, the LORA wireless communication circuit comprises a LORA wireless communication module, a capacitor C28 and a capacitor C29, pin 1 and pin 8 of LORA wireless communication module are connected with pin 36 of controller, pin 2 and pin 9 of LORA wireless communication module are connected with pin 35 of controller, pin 3 and pin 10 of LORA wireless communication module are connected with pin 16 of controller, pin 4 and pin 11 of LORA wireless communication module are connected with pin 17 of controller, pin 5 and pin 12 of LORA wireless communication module are connected with pin 34 of controller, pin 6 of LORA wireless communication module is connected with the one end of electric capacity C28, the other end of electric capacity C28 is connected with GND, pin 13 of LORA wireless communication module is connected with the one end of electric capacity C29, the other end of electric capacity 29 is connected with GND, pin 7 and pin 14 of LORA wireless communication module are connected with GND.
As a further improved technical solution of the present invention, the 4G communication circuit employs an L710-CN chip, the pin 1, the pin 3, the pin 4, the pin 10, the pin 13, the pin 18, the pin 26, the pin 28, the pin 34, the pin 39, the pin 40, the pin 42, the pin TG1, the pin TG2, the pin TG3, the pin TG4, the pin TG5, the pin TG6, the pin TG7, the pin TG8, the pin TG9, the pin TG10, the pin TG11, the pin TG12, the pin TG13, the pin TG14, the pin 15, the pin 16, the pin TG17, the pin TG18, the pin 19, and the pin TG19 of the L710-CN chip are connected to one end of a capacitor C19, the pin 3 and the pin 4 of the L710-CN chip are connected to one end of a triode R19, the other end of the resistor R19 is connected to the resistor R19, the other end of the capacitor C19, and the other end of the resistor R19 are connected to the resistor Q72, and the resistor 19, the other end of, The other end of the capacitor C56 and the emitter of the triode Q5 are both connected with GND, the collector of the triode Q5 is connected with one end of a resistor R42 and one end of a resistor R46 respectively, the other end of the resistor R46 is connected with the base of the triode Q4, a resistor R42, a light emitting diode LED6 and a resistor R40 are connected in series, the other end of the resistor R40 is connected with the collector of the triode Q4, the emitter of the triode Q4 is connected with GND, the pin 6 of the L710-CN chip is connected with the other end of the capacitor C38, the pin 7 of the L710-CN chip is connected with one end of a key S2 and one end of a capacitor C31 respectively, the other ends of a key S2 and a capacitor C31 are connected with GND simultaneously, the pin 8 of the L710-CN chip is connected with one end of a resistor R25 and one end of a capacitor C41, the other end of a resistor R25 is connected with the pin 9 of the L710-CN chip, the other, the other end of the resistor R31 is connected to ground, the pin 23, the pin 24 and the pin 25 of the L710-CN chip are simultaneously connected to one ends of a capacitor C47, a capacitor C48, a capacitor C49, a capacitor C50, a capacitor C51, a capacitor C52 and a capacitor C44, the other ends of a capacitor C47, a capacitor C48, a capacitor C49, a capacitor C50, a capacitor C51, a capacitor C52 and a capacitor C44 are connected to GND, the pin 29, the pin 30, the pin 31 and the pin 32 of the L710-CN chip are sequentially connected to the pin 1, the pin 6, the pin 3 and the pin 2 of the SIM card slot respectively, the pin 1 of the SIM card slot is connected to one end of a capacitor C55, the other end of a capacitor C55 is connected to GND, the pin 6 of the SIM card slot is connected to one end of a capacitor C59, the other end of the capacitor C59 is connected to the pin 59, the pin TG 72, the pin 59 of the L710-CN chip is connected to the resistor R59 and the other end of the resistor TG 72, the resistor R36Q 59, the base of a triode Q2 is connected with one end of a resistor R19, the other ends of the resistor R17 and the resistor R19 are simultaneously connected with a pin 6 of an L710-CN chip, the emitter of a triode Q2 is connected with one end of a resistor R21, the other end of the resistor R21 is connected with a pin 42 of a controller, the pin 38 of the L710-CN chip is connected with the emitter of a triode Q3, the base of a triode Q3 is connected with one end of a resistor R27, the other end of the resistor R27 is connected with the pin 6 of the L710-CN chip, the collector of the triode Q3 is connected with a resistor R23 and a resistor R24 in series, the other end of the resistor R6384 is connected with a pin 43 of the controller, the collector of the triode Q3 is connected with a resistor R22, the other end of the resistor R22 is connected with a +3.6V direct current voltage, the pin 41 of the L710-CN chip is connected with one end of the resistor R20, the resistor R20 is respectively connected with a pin 1 of the, pin 2 and pin 3 of the 4G antenna are both connected to GND.
As a further improved technical solution of the present invention, the ethernet communication circuit employs a W5500 chip, an inductor L3 is connected in series with a capacitor C32, an analog voltage A3.3V is generated at a junction of the inductor L3 and the capacitor C32, the other end of the inductor L3 is connected with a +3.3V dc voltage, the other end of the capacitor C32 is connected with GND, a capacitor C33, a capacitor C34, a capacitor C35, a capacitor C36 and a capacitor C37 are connected in parallel, one end is connected with the analog voltage A3.3V, one end is connected with GND, a pin 30 of the W5500 chip is connected with one ends of a resistor R32, a crystal X1 and a capacitor C43, the other end of the capacitor C43 is connected with GND and a capacitor C46, a capacitor C46, a crystal X1 and a resistor R32 are connected with a pin 31 of the W5500 chip, a pin 4, a pin 8, a pin 11, a pin 21, a pin 15 and a pin 17 of the W55024 are connected with the analog voltage, a pin 5509, a pin 55014, a pin 55016, a pin 55014, The pin 19, the pin 3 and the pin 29 are connected with GND, the pin 32, the pin 33, the pin 34, the pin 35, the pin 36 and the pin 37 of the W5500 chip are sequentially and respectively connected with the pin 20, the pin 21, the pin 22, the pin 23, the pin 26 and the pin 27 of the controller, the pin 32, the pin 36 and the pin 37 of the W5500 chip are sequentially and respectively connected with a resistor R50, a resistor R51 and a resistor R52, the other ends of the resistor R50, the resistor R51 and the resistor R52 are all connected with +3.3V direct current voltage, the other ends of the pin 23, the pin 22, the pin 20 and the pin 10 of the W5500 chip are sequentially and respectively connected with a resistor R57, a capacitor C58, a capacitor C57 and a resistor R56, the resistor R57, the capacitor C58, the capacitor C57 and the resistor R56 are all connected with GND, the pin 45, the pin 44 and the pin 43 of the W5500 chip are sequentially and respectively connected with a resistor R55, the resistor R53 and the other end of the resistor R356, the resistor R3527 and the other end, a pin 42, a pin 41, a pin 40, a pin 39 and a pin 38 of the W5500 chip are sequentially and respectively connected with a resistor R47, a resistor R45, a resistor R44, a resistor R43 and a resistor R41, the other ends of the resistor R47, the resistor R45, the resistor R44, the resistor R43 and the resistor R41 are all connected with GND, a pin 27 and a pin 25 of the W5500 chip are sequentially and respectively connected with a resistor R39 and a resistor R36, a resistor R39 and a resistor R36 are sequentially and respectively connected with a pin 11 and a pin 10 of an RJ45 interface, a pin 6 and a pin 5 of the W5500 chip are sequentially and respectively connected with one ends of a capacitor C53 and a capacitor C53, and also sequentially and respectively connected with one ends of the resistor R53 and the resistor R53, the other ends of the capacitor C53 and the capacitor C53 are sequentially and respectively connected with a pin 3 and a pin 6 of the RJ 53 interface of the RJ 53, the other end of the pin R53 and the pin 3 and the pin 1 of the capacitor R5500 chip are sequentially and the pin 1, the resistor R30 and the resistor R29 are sequentially connected with one another, the other ends of the resistor R30 and the resistor R29 are simultaneously connected with the analog voltage A3.3V and the resistor R28, the resistor R28 is connected with the capacitor C42 in series, and the other end of the capacitor C42 is connected with GND.
The utility model has the advantages that: the utility model discloses utilize the data communication technique, utilize RS-232, RS-485 and ethernet communication interface to gather the data information in the industrial control equipment, adapt to the industrial control equipment of different interfaces, different agreements to can pass to well accuse and the server through LORA wireless communication module and 4G communication module with the data of gathering on, realize the collection and the transmission of data. The problems of high cost, troublesome operation and the like caused by multiple types of data interfaces and different protocols of industrial control equipment are solved. The cost of data acquisition and transmission of the industrial control equipment by enterprises is reduced, and the applicability is improved. The utility model discloses a reliable suitability of circuit is strong, and is with low costs, but wide application.
Detailed Description
The following further description of the embodiments of the present invention is made with reference to fig. 1 to 10:
as shown in fig. 1, a multifunctional data acquisition and transmission circuit for industrial control equipment comprises a power supply circuit, an RS232 serial communication circuit, an RS485 serial communication circuit, a bluetooth interface circuit, an LED indication circuit, a controller, an LORA wireless communication circuit, a 4G communication circuit and an ethernet communication circuit; power supply circuit, RS232 serial communication circuit, RS485 serial communication circuit, bluetooth interface circuit, LED indicating circuit, LORA wireless communication circuit, 4G communication circuit and ethernet communication circuit all are connected with the controller, RS232 serial communication circuit, RS485 serial communication circuit, bluetooth interface circuit, LED indicating circuit, controller, LORA wireless communication circuit, 4G communication circuit and ethernet communication circuit all are connected with power supply circuit.
The power supply circuit is used for supplying power to other circuits, the RS232 serial port communication circuit is used for printing debugging information, is convenient for engineers to install and debug, can also be used as a data acquisition interface of industrial control equipment, the RS485 serial port communication circuit is used for collecting data in industrial control equipment, the Ethernet communication circuit is used for collecting data in the industrial control equipment, the LORA wireless communication circuit is used for uploading the acquired data in the industrial control equipment to the central control terminal equipment, if the central control equipment does not exist, the data can be directly uploaded to the server through the 4G communication module, the 4G communication circuit is used for uploading the collected data in the industrial control equipment to the server, the Bluetooth interface circuit is used for debugging personnel to send instructions to the controller, and a series of data including addresses, acquisition interval time, uploading interval time, Ethernet IP addresses and 4G uploading server addresses are set. The LED indication circuit is shown for indicating the circuit operating status.
Fig. 2 is a schematic diagram of the power supply circuit of the present embodiment. The power supply circuit is used for converting the +12V direct-current voltage into +5V, +3.3V and +3.6V direct-current voltage for supplying power; pin 16 of MAX232 level conversion chip in the RS232 serial port communication circuit is connected with +3.3V DC voltage of power supply circuit, pin 8 of MAX485 level conversion chip in the RS485 serial port communication circuit is connected with +5V DC voltage of power supply circuit, pin 5 of CC2541 bluetooth chip in the bluetooth interface circuit is connected with +3.3V DC voltage of power supply circuit, pin 1, pin 32, pin 48, pin 64, pin 19 and pin 13 of controller STM32F103RCT6 chip are connected with +3.3V DC voltage of power supply circuit, pin 6 and pin 13 of LORA module in the LORA wireless communication circuit are connected with +5V DC voltage of power supply circuit, pin 23, pin 24 and pin 25 of L710-CN chip in the 4G communication circuit are connected with +3.6V DC voltage of power supply circuit, pin 28, pin 5500 in the Ethernet communication circuit, Pin 32, pin 36, pin 37, pin 43, pin 44, and pin 45 are connected to the +3.3V dc voltage of the power circuit, and pin 9 and pin 12 of the RJ45 interface in the ethernet communication circuit are connected to the +3.3V of the power circuit.
The power supply circuit inputs +12V direct current voltage through an input end J2, and the direct voltage is converted into +5V, +3.3V, +3.6V direct voltage to supply power to other modules. The +12V voltage passes through a filter capacitor C1 and then is connected with a pin 1 of a U1(LM2596_5V) chip, a pin 3 of the U1(LM2596_5V) chip is grounded, a pin 5 is an enabling end, low level enabling is carried out, a pin 2 output passes through a freewheeling diode D2, an energy storage inductor L1, a filter capacitor C2 and a pin C3 to output stable +5V voltage, a pin 4 is connected with the output +5V voltage and fed back and output to the U1(LM2596_5V) chip, and if the output voltage changes, the U1(LM2596_5V) chip is corrected according to the feedback voltage of the pin 4. The +12V voltage is connected with a pin 1 of a U4(LM2596_ ADJ) chip after passing through a filter capacitor C1, a pin 3 of the U4(LM2596_ ADJ) chip is grounded, a pin 5 is an enabling end, when a base electrode of a triode Q1 inputs a high level, the triode Q1 is conducted, the pin 5 inputs the high level, the U4(LM2596_ ADJ) chip is enabled, a pin 4 is a feedback pin, voltage division is adjusted through resistance values of resistors R3 and R4 during voltage correction, the pin 2 outputs +3.6V voltage through formula calculation, and the pin 2 outputs stable +3.6V voltage through a freewheeling diode D6, an energy storage inductor L2, a filter capacitor C12 and a filter capacitor C13. The +12V voltage is connected with a pin 1 of a U5(LM1117-3.3V) chip after passing through filter capacitors C16 and C18, a pin 2 of the U5(LM1117-3.3V) chip is grounded, a pin 3 outputs +3.3V direct-current voltage, then the direct-current voltage passes through the filter capacitors C17 and C15 and supplies power to other modules, meanwhile, a current-limiting resistor R10 and a light-emitting diode LED5 are connected in series and then grounded, and the light-emitting diode LED5 indicates that the power supply is in +3.3V normal operation.
Fig. 3 is a schematic diagram of an RS232 serial port communication circuit according to this embodiment. The RS232 serial port communication circuit comprises interfaces of a MAX232 level conversion chip, a capacitor C4, a capacitor C5, a capacitor C6, a capacitor C8, a capacitor C11 and a DB9, wherein a pin 1 of the MAX232 level conversion chip is connected with one end of the capacitor C4, a pin 3 of the MAX232 level conversion chip is connected with the other end of the capacitor C4, a pin 4 of the MAX232 level conversion chip is connected with one end of the capacitor C8, a pin 5 of the MAX232 level conversion chip is connected with the other end of the capacitor C8, a pin 11 of the MAX232 level conversion chip is connected with a pin 53 of a controller, a pin 12 of the controller is connected with a pin 54, a pin 15 of the MAX232 level conversion chip is connected with GND, a pin 16 of the capacitor C5 is connected with one end of the pin 2 of the MAX232 level conversion chip is connected with one end of the capacitor C6, the other ends of the capacitor C5 and the capacitor C6 are connected with GND, a pin 14 of the MAX232 level conversion chip is connected with a, the pin 6 of the MAX232 level conversion chip is connected with one end of a capacitor C11, and the other end of the capacitor C11 is simultaneously connected with the pin 5 of the GND and DB9 interface.
The industrial control equipment transmits data information through a DB9 interface, a U2(MAX232) chip converts a 232 level signal transmitted by the industrial control equipment through a pin 13 into a TTL level signal and transmits the TTL level signal to the controller through a pin 11, and the TTL level signal transmitted by the controller through a U2(MAX232) chip pin 12 is converted into a 232 level signal and transmits the 232 level signal to the industrial control equipment through a pin 14. The U2(MAX232) chip operates in full duplex.
Fig. 4 is a schematic diagram of an RS485 serial port communication circuit according to this embodiment. RS485 serial ports communication circuit includes MAX485 level conversion chip, electric capacity C10 and input J1, electric capacity C10's one end is connected with MAX485 level conversion chip's pin 8 and +5V DC voltage simultaneously, and the other end is connected with MAX485 level conversion chip's pin 5 and GND simultaneously, MAX485 level conversion chip's pin 1 is connected with the pin 52 of controller, and MAX485 level conversion chip's pin 2 and pin 3 are connected with the pin 40 of controller simultaneously, and MAX485 level conversion chip's pin 4 is connected with the pin 51 of controller, and MAX485 level conversion chip's pin 7 is connected with input J1's pin 2, and 485 level conversion chip's pin 6 is connected with input J1's pin 1.
The industrial control equipment transmits data information through an input end J1, a U3(MAX485) converts 485 level signals transmitted by the industrial control equipment through J2 into TTL level signals and transmits the TTL level signals to the controller through a pin 4, the TTL level signals transmitted by the controller through a U3(MAX485) chip pin 1 are converted into 232 level signals and transmitted to the industrial control equipment through J1, a pin 2 and a pin 3 of a U3(MAX485) chip are receiving and transmitting enabling ends and are connected with a controller pin 40, the U3(MAX485) chip works in a half-duplex state, so that the two pins can be controlled through only one controller pin, when the controller pin 40 is at a high level, the U3(MAX485) chip works in a transmitting mode, and when the controller pin 40 is at a low level, the U3(MAX485) chip works in a receiving mode.
Fig. 5 is a schematic diagram of the bluetooth interface circuit of this embodiment. The bluetooth interface circuit includes CC2541 bluetooth chip and electric capacity C7, pin 2 of CC2541 bluetooth chip is connected with pin 29 of controller, and pin 3 of CC2541 bluetooth chip is connected with pin 30 of controller, and pin 4 of CC2541 bluetooth chip is connected with GND, the one end of electric capacity C7 is connected with pin 5 of CC2541 bluetooth chip, and the other end is connected with GND.
The 2 pin and the 3 pin of the P1(CC2541) Bluetooth chip are respectively connected with the controller pin 29 and the pin 30, a debugging person can send a corresponding instruction to the controller through Bluetooth, and can set a series of data of an address, acquisition interval time, uploading interval time, an Ethernet IP address and a 4G uploading server address.
Fig. 6 is a schematic diagram of the LED indicating circuit of the present embodiment. The LED indicating circuit comprises a resistor R1, a resistor R2, a resistor R5, a resistor R9, a light emitting diode LED1, a light emitting diode LED2, a light emitting diode LED3 and a light emitting diode LED4, wherein the resistor R1 and the light emitting diode LED1 are connected in series, one end of the resistor R1 is connected with a pin 14 of the controller, one end of the light emitting diode LED1 is connected with GND, the resistor R2 and the light emitting diode LED2 are connected in series, one end of the resistor R2 is connected with a pin 15 of the controller, one end of the light emitting diode LED2 is connected with GND, the resistor R5 and the light emitting diode LED3 are connected in series, one end of the resistor R5 is connected with a pin 61 of the controller, one end of the light emitting diode LED3 is connected with GND, the resistor R9 and the light emitting diode LED4 are connected in series, one end of the resistor R9 is connected with a pin 62 of the.
The light emitting diodes LED1, LED2, LED3 and LED4 are respectively connected with current limiting resistors R1, R2, R5 and R9 and then connected with GND. The LED1 is used for indicating whether the circuit power supply works normally, the LED2 is used for indicating whether the Ethernet works normally, the LED3 is used for indicating whether the 4G network works normally, and the LED4 is used for indicating whether the LORA module works normally.
Fig. 7 is a schematic diagram of the controller circuit according to this embodiment. The controller employs a chip STM32F103RCT6 (U6A, U6B). The controller is used for being connected with other circuit modules and controlling the other circuit modules to normally work according to time sequence.
Fig. 8 is a schematic diagram of the LORA wireless communication circuit according to this embodiment. The LORA wireless communication circuit comprises a LORA wireless communication module, a capacitor C28 and a capacitor C29, wherein a pin 1 and a pin 8 of the LORA wireless communication module are connected with a pin 36 of a controller, a pin 2 and a pin 9 of the LORA wireless communication module are connected with a pin 35 of the controller, a pin 3 and a pin 10 of the LORA wireless communication module are connected with a pin 16 of the controller, a pin 4 and a pin 11 of the LORA wireless communication module are connected with a pin 17 of the controller, a pin 5 and a pin 12 of the LORA wireless communication module are connected with a pin 34 of the controller, a pin 6 of the LORA wireless communication module is connected with one end of a capacitor C28, the other end of the capacitor C28 is connected with GND, a pin 13 of the LORA wireless communication module is connected with one end of a capacitor C29, the other end of the capacitor 29 is connected with GND, and a pin 7 and a pin 14 of the LORA wireless communication module are connected with.
LORA wireless communication module contains two tunnel (pin 1~ pin 7 is all the way, pin 8~ pin 14 is all the way), first way pin 1 and pin 2 are the mode setting foot, with controller foot 36, foot 35 is connected, when all being in the low level, LORA wireless communication module is in the pass-through mode, can carry out data transmission communication, pin 3 and pin 4 are data signal's receipt foot and transmission foot respectively, with controller foot 16, foot 17 is connected, output TTL level carries out data transmission, pin 5 indicates module operating condition, be connected with control foot 34, when the module has data being transmitted, pin 5 is the high level, otherwise is the low level. The second route is the same.
Fig. 9 is a schematic diagram of the 4G communication circuit of the present embodiment. The 4G communication circuit adopts an L710-CN chip, a pin 1, a pin 3, a pin 4, a pin 10, a pin 13, a pin 18, a pin 26, a pin 28, a pin 34, a pin 39, a pin 40, a pin 42, a pin TG1, a pin TG2, a pin TG3, a pin TG4, a pin TG5, a pin TG6, a pin TG7, a pin TG8, a pin TG9, a pin TG10, a pin TG11, a pin TG12, a pin TG13, a pin TG3 and a pin 4 of the L710-CN chip are connected with one end of a capacitor C13, a pin 5 of the L710-CN chip is connected with one end of a resistor R13, the other end of the resistor R13 is respectively connected with a resistor R13, a capacitor C13, a base of a capacitor C72, a resistor R13 and an emitter of the other end of the resistor R13 are connected with GND, the collector of a triode Q5 is connected with one end of a resistor R42 and one end of a resistor R46 respectively, the other end of the resistor R46 is connected with the base of a triode Q4, a resistor R42, a light emitting diode LED6 and a resistor R40 are connected in series, the other end of a resistor R40 is connected with the collector of a triode Q4, the emitter of a triode Q4 is connected with GND, a pin 6 of an L710-CN chip is connected with the other end of a capacitor C38, a pin 7 of the L710-CN chip is connected with one end of a key S2 and one end of a capacitor C31 respectively, the other ends of a key S2 and a capacitor C31 are connected with GND simultaneously, a pin 8 of the L710-CN chip is connected with one end of a resistor R25 and a capacitor C41, the other end of the resistor R25 is connected with a pin 9 of the L710-CN chip, the other end of the capacitor C41 is connected with GND, a pin 14 of the L710-CN chip is connected with one end of, Pin 24 and pin 25 are connected to one end of capacitor C47, capacitor C48, capacitor C49, capacitor C50, capacitor C51, capacitor C52 and capacitor C44, the other ends of capacitor C47, capacitor C48, capacitor C49, capacitor C50, capacitor C51, capacitor C52 and capacitor C44 are connected to GND, pin 29, pin 30, pin 31 and pin 32 of L710-CN chip are connected to pin 1, pin 6, pin 3 and pin 2 of SIM card slot (P5), pin 1 of SIM card slot is connected to one end of capacitor C55, the other end of capacitor C55 is connected to GND, pin 6 of SIM card slot is connected to one end of capacitor C59, the other end of capacitor C59 is connected to GND, pin TG 59, pin 59 and pin 59 are connected to GND, pin 710-CN chip is connected to pin 37 of TG-CN chip, the other end of resistor R59 is connected to collector TG 59 of TG 59 and GND, the base of a triode Q2 is connected with one end of a resistor R19, the other ends of a resistor R17 and a resistor R19 are simultaneously connected with a pin 6 of an L710-CN chip, the emitter of a triode Q2 is connected with one end of a resistor R21, the other end of the resistor R21 is connected with a pin 42 of a controller, a pin 38 of the L710-CN chip is connected with the emitter of a triode Q3, the base of a triode Q3 is connected with one end of a resistor R27, the other end of the resistor R27 is connected with the pin 6 of the L710-CN chip, the collector of the triode Q3 is connected with a resistor R23 and a resistor R24 in series, the other end of the resistor R24 is connected with a pin 43 of the controller, the collector of a triode Q3 is connected with a resistor R22, the other end of the resistor R22 is connected with a +3.6V DC voltage, a pin 41 of the L710-CN chip is connected with one end of a resistor R20, a resistor R20 is respectively connected with a pin 1 of a 4G antenna (J59, pin 2 and pin 3 of the 4G antenna are both connected to GND.
The U7(L710-CN)4G chip pin 38 is a data signal transmitting pin and is connected with an emitter of a triode Q3, the base of a triode Q3 is at a high level of +1.8V, the triode Q3 is conducted, a signal transmitted by the U7(L710-CN)4G chip reaches a serial data signal receiving pin-pin 43 of the controller through current limiting resistors R23 and R24, the U7(L710-CN)4G chip pin 37 is a data signal receiving pin and is connected with a resistor R18, the other end of the resistor R18 is connected with the triode Q2, the base of the triode Q2 is at a high level of +1.8V, the triode Q2 is conducted, the controller data signal transmitting pin-pin 42 is connected with the emitter of the triode Q2 through a current limiting resistor R21, and the data signal of the controller reaches a U7(L710-CN)4G chip data signal receiving pin. The pin 41 of the U7(L710-CN)4G chip is connected with a current limiting resistor R20, the other end of the current limiting resistor R20 is connected with a pin 1 of a 4G antenna, and the 4G antenna receives a 4G signal and sends the 4G signal to a U7(L710-CN)4G chip through the pin 1. The U7(L710-CN)4G chip is respectively connected with the SIM card through a pin 29, a pin 32 and a pin 30 to provide power supply, reset signals, clock signals and data signals for the SIM card, and the SIM card sends the received data signals to the server through the 4G network. When the U7(L710-CN)4G chip works normally, the pin 5 outputs high level, the pin 5 is connected with the base electrode of the triode Q5 after being connected with the current-limiting resistor R48 in series, the triode Q5 is conducted, the collector electrode is high level, the base electrode of the triode Q4 is connected with the collector electrode of the triode Q5 through the current-limiting resistor R46, the triode Q4 is conducted, the light-emitting diode LED6 is bright, and the 4G communication module is indicated to work normally.
Fig. 10 is a schematic diagram of an ethernet communication circuit according to this embodiment. The Ethernet communication circuit adopts a W5500 chip, an inductor L3 is connected with a capacitor C32 in series, an analog voltage A3.3V is generated at the joint of the inductor L3 and the capacitor C32, the other end of the inductor L3 is connected with a +3.3V direct-current voltage, the other end of the capacitor C32 is connected with GND, the capacitor C33, the capacitor C34, the capacitor C35, the capacitor C36 and the capacitor C37 are connected in parallel, one end of the capacitor C A3.3V is connected with the analog voltage, one end of the capacitor C A3.3V is connected with GND, a pin 30 of the W5500 chip is respectively connected with a resistor R32, a crystal X1 and one end of a capacitor C43, the other end of the capacitor C43 is respectively connected with GND and the capacitor C46, the other ends of the capacitor C46, the crystal X1 and a resistor R32 are connected with a pin 31 of the W5500 chip, a pin 4, a pin 8, a pin 11, a pin 21, a pin 15 and a pin 17 of the W5500 chip are connected with the analog voltage A3.3V, a pin 9, a pin 14, the pin 32, the pin 33, the pin 34, the pin 35, the pin 36 and the pin 37 of the W5500 chip are sequentially and respectively connected with the pin 20, the pin 21, the pin 22, the pin 23, the pin 26 and the pin 27 of the controller, the pin 32, the pin 36 and the pin 37 of the W5500 chip are sequentially and respectively connected with a resistor R50, a resistor R51 and a resistor R52, the other ends of the resistor R50, the resistor R51 and the resistor R52 are all connected with +3.3V direct-current voltage, the pin 23, the pin 22, the pin 20 and the pin 10 of the W5500 chip are sequentially and respectively connected with a resistor R57, a capacitor C58, a capacitor C57 and a resistor R56, the other ends of the resistor R57, the capacitor C58, the capacitor C57 and the resistor R56 are all connected with GND, the pin 45, the pin 44 and the pin 43 of the W5500 chip are sequentially and respectively connected with a resistor R55, a resistor R8 and a resistor R3V 3 + 3V-voltage pin 42, and the other ends of the DC voltage of the W5500 chip are connected with GN, Pin 41, pin 40, pin 39 and pin 38 are sequentially connected with a resistor R47, a resistor R45, a resistor R44, a resistor R43 and a resistor R41 respectively, the other ends of a resistor R47, a resistor R45, a resistor R44, a resistor R43 and a resistor R41 are all connected with GND, pin 27 and pin 25 of the W5500 chip are sequentially connected with a resistor R39 and a resistor R36 respectively, a resistor R39 and a resistor R36 are sequentially connected with pin 11 and pin 10 of the RJ45 interface respectively, pin 6 and pin 5 of the W5500 chip are sequentially connected with one ends of a capacitor C53 and a capacitor C53 respectively, and are further sequentially connected with one ends of a resistor R53 and a resistor R53 respectively, the other ends of a capacitor C53 and a capacitor C53 are sequentially connected with pin 3 and pin 6 of the RJ 53 interface respectively, the other ends of a resistor R53 and a resistor R53 are sequentially connected with pin 3 and pin 3 of the RJ 53 interface, the other end of the capacitor R55072 is sequentially connected with pin 1 and pin of the pin 5502 chip interface respectively, the resistor R30 and the resistor R29 are sequentially connected with one another, the other ends of the resistor R30 and the resistor R29 are simultaneously connected with the analog voltage A3.3V and the resistor R28, the resistor R28 is connected with the capacitor C42 in series, and the other end of the capacitor C42 is connected with GND.
The circuit adopts a U8(W5500) chip. An isolation inductor L3 is connected in series with the filter capacitor C32, and the isolation inductor L3 isolates the +3.3V digital power supply from the analog power supply A3.3V to supply power to the circuit. The pins 30 and 31 of the U8(W5500) chip are connected with a 25M crystal oscillator X1 in parallel, and the necessary clock frequency is provided for the W5500 chip through two load capacitor streets GND with 18 PF. W5500 communicates with the controller using SPI interfaces (pin 32, pin 33, pin 34, pin 35) to operate as an SPI slave. The pin 36 and the pin 37 of the U8(W5500) chip are respectively an interrupt output pin and a reset pin of the W5500 chip, and are connected with the controller, the low level is effective, the pin 10 of the U8(W5500) chip is connected with the resistor R56 in series and then grounded to provide bias voltage for an analog circuit in the chip, the capacitor C57 is connected with the pin 20 in series and is an external reference capacitor, the pin 22 outputs 1.2V regulated voltage, the pin 27 is connected with the RJ45 interface pin 11 in series after the resistor R39 as an active status indicator, the low level indicates a carrier sense signal with a physical medium sublayer, the pin 25 is connected with the RJ4 interface pin R36 and is connected with the RJ4 interface pin 82910 as a network connection indicator, the low level indicates that connection is established, the pin 1 and the pin 2 are differential signal transmitting pairs and are respectively connected with the RJ45 interface pin 2, the pin 1 and are respectively connected with the pull-up resistors R29 and R30 as data signal transmitting terminals, the pin 5 and the pin 6 are differential signal receiving pairs and are respectively connected, The pins 3 are connected with each other and are respectively connected with pull-down resistors R38 and R37 to serve as data signal receiving terminals.
Before the system is powered on, the special SIM card for the Internet of things is installed in a SIM card slot (P5), the industrial control equipment is connected with the circuit Ethernet interface through a network cable, and the circuit DB9 interface is connected with the industrial control equipment through a serial port cable. After the system is powered on, the system is initialized firstly, if the system is used for the first time, the Ethernet IP address, the circuit physical address, the 4G network IP address, the data acquisition interval time and the data uploading interval time are firstly sent to the circuit for configuration through the Bluetooth according to corresponding instructions, the configuration information is stored in the flash and still exists after the power is cut off, after the system is powered on next time, the data is read from the flash without reconfiguration, and if the user needs to modify the information, corresponding information modification instructions can be sent to the circuit through the Bluetooth again. After the system initialization is completed, the circuit reads required data information from a corresponding address through the Ethernet communication interface, the 485 communication interface and the 232 communication interface according to user configuration information, and uploads the acquired data information to a central control unit or a server through the LORA wireless transmission module and the 4G communication module, so that the purpose of acquiring and transmitting the data information of the industrial control equipment is achieved.
The protection scope of the present invention includes but is not limited to the above embodiments, the protection scope of the present invention is subject to the claims, and any replacement, deformation, and improvement that can be easily conceived by those skilled in the art made by the present technology all fall into the protection scope of the present invention.