CN108563606B - USB power supply grain condition detection host with multiple communication modes - Google Patents

USB power supply grain condition detection host with multiple communication modes Download PDF

Info

Publication number
CN108563606B
CN108563606B CN201810859488.1A CN201810859488A CN108563606B CN 108563606 B CN108563606 B CN 108563606B CN 201810859488 A CN201810859488 A CN 201810859488A CN 108563606 B CN108563606 B CN 108563606B
Authority
CN
China
Prior art keywords
pin
capacitor
resistor
power supply
chip
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810859488.1A
Other languages
Chinese (zh)
Other versions
CN108563606A (en
Inventor
朱鹏飞
王志民
刘文敬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Banghai Intelligent Technology Co ltd
Original Assignee
Zhengzhou Banghai Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Banghai Intelligent Technology Co ltd filed Critical Zhengzhou Banghai Intelligent Technology Co ltd
Priority to CN201810859488.1A priority Critical patent/CN108563606B/en
Publication of CN108563606A publication Critical patent/CN108563606A/en
Application granted granted Critical
Publication of CN108563606B publication Critical patent/CN108563606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/17Interprocessor communication using an input/output type connection, e.g. channel, I/O port
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to a USB power supply grain condition detection host with various communication modes, which comprises an extension machine shell and a circuit board arranged in the shell, wherein the circuit board is provided with a control circuit, the control circuit comprises a USB power supply module, a CPU processing unit, a serial port communication module, a signal indication module and a master-slave communication module, and the CPU processing unit is respectively connected with the USB power supply module, the serial port communication module, the signal indication module and the master-slave communication module; the invention has the advantages of simple power supply mode, simple communication mode, simple operation, strong adaptability, economy and practicability.

Description

USB power supply grain condition detection host with multiple communication modes
Technical Field
The invention relates to the technical field of grain storage detection, in particular to a USB power supply grain condition detection host with various communication modes.
Background
Taking a grain condition measurement and control system in the grain storage industry as an example, the grain condition host and the slave in the current market have single communication mode, and the power supply mode is complex.
The power supply mode is as follows: the host machine is powered by an independent power supply, a 220V power supply and a matched power adapter;
communication mode: the independent port is used, RS232 communication is adopted, but most of the current computers do not have corresponding ports, and a USB-to-RS 232 converter is needed to be added;
high power and high cost: other extensions and a host in the market at present adopt point-to-point communication, the power of a single node is larger, the communication is unstable, the external wiring of the host is complex, the equipment volume is larger, and the cost is higher;
master-slave communication mode is single: only a single communication mode is adopted, different devices cannot be matched, and the adaptability is poor;
poor anti-jamming capability: when point-to-point wireless communication is adopted, when signal interference occurs outside or the distance between a host and an extension is relatively long, abnormal data transmission occurs. The installation is complex: the wiring of the master machine and the slave machine is complex, and the equipment is inconvenient to install;
therefore, improvements and innovations of the grain condition detecting extension machine are imperative.
Disclosure of Invention
Aiming at the situation, in order to overcome the defects of the prior art, the invention aims to provide a USB power supply grain condition detection host with various communication modes.
The technical scheme of the invention is as follows:
the USB power supply grain condition detection host with various communication modes comprises an extension housing and a circuit board arranged in the housing, wherein a control circuit is arranged on the circuit board, and the USB power supply grain condition detection host is characterized in that the control circuit comprises:
USB power supply module: a USB connected with a computer is adopted to supply power to provide a working power supply for the system;
CPU processing unit: for system task processing, communication with a slave, and signal command indication;
serial port communication module: the USB interface is directly connected with a computer for communication;
the signal indication module: for sending out signal indication information;
master-slave communication module: the host computer and the slave computer can adopt RS485, ethernet or 433 wireless communication, and are used for completing the functions of receiving host computer commands and uploading data;
and the CPU processing unit is respectively connected with the USB power supply module, the serial port communication module, the signal indication module and the master-slave machine communication module.
The USB power supply module and the serial port communication module comprise a USB converter U4, a signal common mode filter U3, a chip U5 and a USB interface P2, wherein the 1 pin of the USB converter U4 is connected with a CPU processing unit (connected with the 30 pin of the chip U1 in the CPU processing unit through a connector TXD), the 5 pin of the USB converter U4 is connected with the CPU processing unit (connected with the 29 pin of the chip U1 in the CPU processing unit through a connector RXD), the 6 pin and the 7 pin of the USB converter U4 are connected in parallel, the 8 pin of the USB converter U4 is respectively connected with one end of a resistor R11, one end of a resistor R12, one end of a resistor R13 and one end of a resistor R14, the common end is a 5V power output end VCC5V (connected with a 5V power output connector VCC 5V), the other end of the resistor R11 is connected with the 9 pin of the USB converter U4, the other end of the resistor R12 is connected with the 10 pin of the USB converter U4, the other end of the resistor R13 is connected with the 11 pin of the USB converter U4, the other end of the resistor R14 is connected with the 14 pin of the USB converter U4, the 15 pin of the USB converter U4 is respectively connected with the 4 pin of the signal common mode filter U3 and one end of the resistor R6 through the resistor R8, the other end of the resistor R6 is respectively connected with one end of the capacitor C9, the positive electrode of the polar capacitor C10, the 4 pin and the 17 pin of the USB converter U4, the 16 pin of the USB converter U4 is respectively connected with the 3 pin of the signal common mode filter U3 through the resistor R7, the other end of the capacitor C9 is respectively connected with the 4 pin (ground pin) of the USB interface P2, the 2 pin of the chip U5, the negative electrode of the polar capacitor C3, one end of the capacitor C4 and the negative electrode of the polar capacitor C10, the common ground (connected with the ground joint GND) and the 1 pin of the signal common mode filter U3 is respectively connected with the 6 pin of the chip U5 and the 3 pin (data line positive electrode) of the USB interface P2, the signal common mode filter U3 is respectively connected with the 1 pin of the chip U5 and the 2 pin (data line negative electrode) of the USB interface P2, the 1 pin (power supply pin) of the USB interface P2 is respectively connected with the 5 pin of the chip U5, the positive electrode of the polar capacitor C3, the other end of the capacitor C4, one end of the capacitor C7, one end of the resistor R10 and 19 pins and 20 pins of the USB converter U4 through fuses, the common end is connected with the 8 pin of the USB converter U4, the other end of the resistor R10 is connected with the 22 pin of the USB converter U4, the other end of the capacitor C7 is respectively connected with one end of the capacitor C5, one end of the capacitor C6, one end of the resistor R9, one end of the capacitor C8 and 25 pins and 26 pins of the USB converter U4, the common end of the resistor R9 is connected with the 23 pin of the USB converter U4, the other end of the capacitor C8 is connected with the 24 pin of the USB converter U4, the other end of the capacitor C5 is respectively connected with one end of the crystal oscillator M1 and the 27 pin of the USB converter U4, and the other end of the capacitor C6 is respectively connected with the other end of the crystal oscillator M1 and the USB converter U4, and the USB converter U4 is connected with the power supply circuit 28.
The invention has the following beneficial technical effects:
1. the power supply mode is simple: the USB is directly connected, so that the mode is simple;
2. the communication mode is simple: a USB to serial port is used for realizing the communication between a host and a computer;
3. the operation is simple: the host computer is only required to be connected with the computer through a USB line.
4. The adaptability is strong: 433 wireless communication, RS485 communication or Ethernet communication can be adopted according to different requirements on site, compared with single wireless communication, the data transmission mode is more flexible and safer, and the RS485 communication or the Ethernet communication can be selected under the condition that the wireless communication has stronger interference, so that the interference of the communication is avoided;
5. economical and practical: and other matched equipment is not required, and the host computer only needs to simultaneously provide power supply and communication through the USB, so that the cost is reduced.
Drawings
Fig. 1 is a schematic diagram of a circuit frame of the present invention.
Fig. 2-8 are circuit schematic diagrams of CPU processing units of the present invention.
Fig. 9 is a schematic circuit diagram of a USB power module and a serial port communication module according to the present invention (USB power communication circuit).
Fig. 10 is a schematic circuit diagram of the power supply module of the present invention.
FIG. 11 is a schematic circuit diagram of an RTC standby power module of the present invention.
Fig. 12 is a schematic circuit diagram of the signal indicating module of the present invention.
Fig. 13 is a schematic circuit diagram of a master-slave communication module according to the present invention:
fig. 14 is a schematic view of the overall module of the present invention.
Detailed Description
The following describes the embodiments of the present invention in further detail with reference to the drawings.
As shown in fig. 1 to 14, the present invention comprises a sub-set housing and a circuit board mounted in the housing, the circuit board having a control circuit thereon, the control circuit comprising:
USB power supply module: a USB connected with a computer is adopted to supply power to provide a working power supply for the system;
CPU processing unit: for system task processing, communication with a slave, and signal command indication;
serial port communication module: the USB interface is directly connected with a computer for communication;
the signal indication module: for sending out signal indication information;
master-slave communication module: the host computer and the slave computer can adopt RS485, ethernet or 433 wireless communication, and are used for completing the functions of receiving host computer commands and uploading data;
and the CPU processing unit is respectively connected with the USB power supply module, the serial port communication module, the signal indication module and the master-slave machine communication module.
In order to ensure the use effect, the USB power supply module and the serial port communication module comprise a USB converter U4, a signal common mode filter U3, a chip U5 and a USB interface P2, wherein the 1 pin of the USB converter U4 is connected with a CPU processing unit (connected with the 30 pin of the chip U1 in the CPU processing unit through a connector TXD), the 5 pin of the USB converter U4 is connected with the CPU processing unit (connected with the 29 pin of the chip U1 in the CPU processing unit through a connector RXD), the 6 pin and the 7 pin of the USB converter U4 are connected with the ground in parallel, the 8 pin of the USB converter U4 is respectively connected with one end of a resistor R11, one end of a resistor R12, one end of a resistor R13 and one end of a resistor R14, the common end is a 5V power output end VCC5V (connected with the 5V power output connector VCC 5V), the other end of the resistor R11 is connected with the 9 pin of the USB converter U4, the other end of the resistor R12 is connected with the 10 pin of the USB converter U4, the other end of the resistor R13 is connected with the 11 pin of the USB converter U4, the other end of the resistor R14 is connected with the 14 pin of the USB converter U4, the 15 pin of the USB converter U4 is respectively connected with the 4 pin of the signal common mode filter U3 and one end of the resistor R6 through the resistor R8, the other end of the resistor R6 is respectively connected with one end of the capacitor C9, the positive electrode of the polar capacitor C10, the 4 pin and the 17 pin of the USB converter U4, the 16 pin of the USB converter U4 is respectively connected with the 3 pin of the signal common mode filter U3 through the resistor R7, the other end of the capacitor C9 is respectively connected with the 4 pin (ground pin) of the USB interface P2, the 2 pin of the chip U5, the negative electrode of the polar capacitor C3, one end of the capacitor C4 and the negative electrode of the polar capacitor C10, the common ground (connected with the ground joint GND) and the 1 pin of the signal common mode filter U3 is respectively connected with the 6 pin of the chip U5 and the 3 pin (data line positive electrode) of the USB interface P2, the 2 pin of the signal common mode filter U3 is respectively connected with the 1 pin of the chip U5 and the 2 pin (data line negative electrode) of the USB interface P2, the 1 pin (power supply pin) of the USB interface P2 is respectively connected with the 5 pin of the chip U5, the positive electrode of the polar capacitor C3, the other end of the capacitor C4, one end of the capacitor C7, one end of the resistor R10 and the 19 pin and the 20 pin of the USB converter U4 through fuses, the common end is connected with the 8 pin of the USB converter U4, the other end of the resistor R10 is connected with the 22 pin of the USB converter U4, the other end of the capacitor C7 is respectively connected with one end of the capacitor C5, one end of the capacitor C6, one end of the resistor R9, one end of the capacitor C8 and the 25 pin and 26 pin of the USB converter U4, the common end of the resistor R9 is connected with the 23 pin of the USB converter U4, the other end of the capacitor C8 is connected with the 24 pin of the USB converter U4, the other end of the capacitor C5 is respectively connected with one end of the crystal oscillator M1 and the 27 pin of the USB converter U4, and the other end of the capacitor C6 is respectively connected with the other end of the crystal oscillator M1 and the USB converter U4, and the USB converter U4 is connected with the power supply circuit 28;
the model number of the USB converter U4 is PL2303TA;
the model U5 of the chip is NUP2201MR6;
the model of the signal common mode filter U3 is ACM2012-900-2P;
the fuse F1 and the chip U5 form a USB interface protection circuit, so that the short circuit of a power supply is prevented, and the interference of static electricity on a system is eliminated; the capacitors C3 and C4 form a front-stage input power supply filter circuit of the USB converter, filter the input power supply, provide power for the USB converter U4 and a rear-stage CPU processing unit, and filter common mode interference in signal transmission by using the signal common mode filter U3; the capacitors C5, C6, C7, C8, the crystal oscillator M1, the resistors R9, R10, R11, R12, R13 and R14 are peripheral hardware circuits of the USB converter U4, and form a communication interface circuit of the CPU processing unit and the PC together with the USB converter U4.
The control circuit further comprises a power supply module, the power supply module comprises a three-terminal voltage regulator U2, a 2 pin (input pin) of the three-terminal voltage regulator U2 is connected with the negative electrode of the protector T1, the common end is connected with a 5V power output end VCC5V in the USB power supply module, the positive electrode of the protector T1 is respectively connected with a 1 pin (grounding pin) of the three-terminal voltage regulator U2, one end of a resistor R15, one end of a capacitor C11 and the negative electrode of a polar capacitor C2, the other end of the resistor R15 is connected with the other end of the capacitor C11, the common end is grounded (connected with a grounding port connected with a grounding joint GND), and the 3 pin (output pin) of the three-terminal voltage regulator U2 is connected with the positive electrode of the polar capacitor C2 and serves as a 3.3V power output end VCC3.3V (connected with a 3.3V power output joint VCC3.3V).
The protector T1 is a one-way patch TVS tube;
the three-terminal voltage stabilizer U2 is XC6214P332PR;
the protector T1, the three-terminal voltage stabilizer U2, the capacitors C2 and C11 and the resistor R15 form a power supply circuit of the CPU processing unit, power is supplied to the system through external power supply, the protector T1 provides protection effect for an input port of the power supply circuit, and the surge or electrostatic interference which possibly occurs when the USB interface is connected is absorbed, so that the system circuit is prevented from being damaged by interference.
The control circuit further comprises an RTC standby power supply module, the RTC standby power supply module comprises a battery BT1, the positive electrode of the battery BT1 is respectively connected with one end of a resistor R26 and one end of a capacitor C24, the common end serves as a standby power supply output end VBAT (connected with a standby power supply output joint VBAT), the other end of the capacitor C24 is connected with the negative electrode of the battery BT1, the common end is grounded, the other end of the resistor R26 is connected with the negative electrode of a diode D4, and the positive electrode of the diode D4 is connected with a 3.3V power supply output end VCC3.3V of the power supply module.
The diode D4, the resistor R26, the battery BT1 and the capacitor C24 form an RTC standby power supply circuit, so that the normal operation of an RTC clock in the CPU processing unit is ensured, and a system power-down protection function is provided.
The CPU processing unit comprises a chip U1, a pin 3 of the chip U1 is respectively connected with one end of a crystal oscillator M2 and one end of a capacitor C17, a pin 4 of the chip U1 is respectively connected with the other end of the crystal oscillator M2 and one end of a capacitor C18, the other end of the capacitor C17 is connected with the other end of the capacitor C18, the common terminal is grounded, a pin 5 of the chip U1 is respectively connected with one end of a crystal oscillator M3 and one end of a capacitor C19, a pin 6 of the chip U1 is respectively connected with the other end of the crystal oscillator M3 and one end of a capacitor C20, the other end of the capacitor C19 is connected with the other end of the capacitor C20, the common terminal is grounded, a pin 60 of the chip U1 is respectively connected with a collector electrode of a triode Q1 and one end of a resistor R18, an emitter electrode of the triode Q1 is respectively connected with the other end of the resistor R19 and 1 pin of a port P3, a common terminal is connected with a 3.3V power supply output end VCC3.3V of a power supply module, the other end of the resistor R20 is connected with the 5 pin of the port P3, the 2 pin of the port P3 is connected with the 42 pin of the chip U1, the 3 pin of the port P3 is connected with the 43 pin of the chip U1, the 4 pin of the port P3 is grounded, the 6 pin of the port P3 is connected with the 7 pin of the chip U1, the 1 pin of the chip U1 is connected with the standby power supply output end VBAT of the RTC standby power supply module, the 32 pin of the chip U1 is respectively connected with the 48 pin, the 64 pin, the 19 pin, the 13 pin, one end of the capacitor C13, one end of the capacitor C14, one end of the capacitor C15, one end of the capacitor C16, one end of the capacitor C23, one end of the resistor R1, one end of the resistor R17 and one end of the resistor R5, the common end is connected with the 3.3V power supply output end VCC3.3V of the power supply module (connected with the 3.3V input port connected with the power supply output connector VCC3.3V), and the other end of the capacitor C13 is respectively connected with the other end of the capacitor C14, the other end of the capacitor C15, the other end of the capacitor C16 is connected with the other end of the capacitor C23, the common ground is grounded, the pins 31, 47, 63, 18 and 12 of the chip U1 are connected in parallel (the common end is connected with a grounding port corresponding to the grounding joint GND), the other end of the resistor R1 is respectively connected with one end of the capacitor C1 and the pin 7 of the chip U1, the other end of the capacitor C1 is grounded, the pin 28 of the chip U1 is grounded through the resistor R16, the other end of the resistor 17 is connected with the pin 56 of the chip U1, the other end of the resistor R5 is connected with the pin 2 of the chip U1, the pin 46 of the chip U1 is connected with the pin 5 of the port P1, the pin 49 of the chip U1 is connected with the pin 4 of the port P1, the pin 3 of the port P1 is connected with the pin 7 of the chip U1, the pin 2 of the port P1 is grounded, the pin 1 of the port P1 is connected with the power supply module 3.3V power supply output end VCC3.3V, the pin 29 of the chip U1 is connected with the pin 5 of the USB converter U4, and the pin 30 of the chip U1 is connected with the pin 1 of the USB converter U4.
The CPU processing unit is provided with a 32-bit high-performance Cortex-M3 kernel processor, the processor is provided with a communication port for a PC, receives commands from the PC, transmits data to the extension through 433 wireless, RS485 or Ethernet communication modes with the communication port of the extension after processing, can receive data from the extension, and transmits the processed data to the PC to achieve the aim of bidirectional communication between the PC and the extension; the capacitors C17, C18, C19 and C20 and the crystal oscillators M2 and M3 form a system clock circuit, and an accurate running clock is provided for the system.
The signal indicating module comprises a buzzer U6, light emitting diodes DS1, DS2 and DS3 and 2 light emitting diodes DS4 connected in parallel, wherein the positive electrode of the light emitting diode DS1 is connected with one end of a resistor R2, the positive electrode of the light emitting diode DS2 is connected with one end of a resistor R3, the positive electrode of the light emitting diode DS3 is connected with one end of a resistor R4, the positive electrodes of the 2 light emitting diodes DS4 are respectively connected with one ends of resistors R23 and R24, the other end of the resistor R2 is respectively connected with the other end of the resistor R3, the other end of the resistor R4, the other end of the resistor R24 and the other end of the resistor R23, the common end is connected with a 3.3V power output end VCC3.3V of the power supply module (connected with a 3.3V input port corresponding to a power output joint VCC3.3V), the cathodes of the 2 light emitting diodes DS4 are respectively connected with pins 53 and 52 of the chip U1, the cathode of the light emitting diode DS1 is connected with pin 17 of the chip U1 in the CPU processing unit, the cathode of the light emitting diode DS2 is connected with pin 16 of the chip U1 in the CPU processing unit, the cathode of the light emitting diode DS2 is grounded, the power input end of the buzzer U6 is connected with one end of the capacitor C22, the 5V power output end VCC5V of the USB power supply module is commonly connected, the signal input end of the buzzer U6 is connected with the collector of the triode Q2, the emitter of the triode Q2 is connected with the other end of the capacitor C22, the common end is connected with a grounding port corresponding to the grounding joint GND, and the base of the triode Q2 is connected with pin 62 of the chip U1 in the CPU processing unit through a resistor R25 (the pin 62 of the chip U1 is connected with the BEEP joint).
The signal indication information is sent out through each light emitting diode and the buzzer, the buzzer prompt circuit comprises a buzzer U6, a resistor R25, a triode Q2 and a capacitor C22, a port BEEP (62 feet) of a chip U1 in the CPU processing unit is used for controlling the triode Q7 to be conducted or cut off, and whether the buzzer works is controlled.
The master-slave communication module comprises communication ports P4 and P5, a pin 1 of the communication port P4 is grounded (connected with a grounding port corresponding to a grounding joint GND), a pin 2 of the communication port P4 is respectively connected with one end of a capacitor C21, one end of a resistor R21 and one end of a resistor R22, the other end of the resistor R21 is connected with a 3.3V power supply output end VCC3.3V of the power supply module, the other end of the resistor R22 is connected with a 5V power supply output end VCC5V in the USB power supply module, a pin 3 of the communication port P4 is connected with a pin 16 of a chip U1 in a CPU processing unit, a pin 4 of the communication port P4 is connected with a pin 17 of the chip U1 in the CPU processing unit, a pin 5 of the communication port P4 is grounded, a pin 8 of the communication port P4 is connected with a pin 23 of the chip U1 in the CPU processing unit, a pin 9 of the communication port P4 is connected with a pin 24 of the chip U1 in the CPU processing unit, a pin 1 of the communication port P5 is connected with a pin 20 of the chip U1 in the CPU processing unit, a pin 3 of the communication port P5 is connected with a pin 16 of the chip U1 in the CPU processing unit, and a pin 5 of the communication port P4 is connected with a pin 5 of the chip 1 in the CPU processing unit is connected with the chip 4, and the pin 2 is connected with the pin 2.
The communication ports P4 and P5 form a standard communication module interface circuit, can be connected with various communication modules, such as an RS485 communication module, a 433 wireless communication module, an Ethernet communication module and the like, realize bidirectional communication between a host and a slave, and the resistors R21, R22 and the capacitor C21 form a power supply selection and input filter circuit, so that matched working power supplies (3.3V power supply and 5V power supply) can be selected according to different communication modules.
In summary, compared with the prior art, the invention has the following advantages:
1. the power supply mode is simple: the USB is directly connected, so that the mode is simple;
2. the communication mode is simple: a USB to serial port is used for realizing the communication between a host and a computer;
3. the operation is simple: the host computer is only required to be connected with the computer through a USB line.
4. The adaptability is strong: 433 wireless communication, RS485 communication or Ethernet communication can be adopted according to different requirements on site, compared with single wireless communication, the data transmission mode is more flexible and safer, and the RS485 communication or the Ethernet communication can be selected under the condition that the wireless communication has stronger interference, so that the interference of the communication is avoided;
5. economical and practical: and other matched equipment is not required, and the host computer only needs to simultaneously provide power supply and communication through the USB, so that the cost is reduced.

Claims (1)

1. The USB power supply grain condition detection host with various communication modes comprises an extension housing and a circuit board arranged in the housing, wherein a control circuit is arranged on the circuit board, and the USB power supply grain condition detection host is characterized in that the control circuit comprises:
USB power supply module: a USB connected with a computer is adopted to supply power to provide a working power supply for the system;
CPU processing unit: for system task processing, communication with a slave, and signal command indication;
serial port communication module: the USB interface is directly connected with a computer for communication;
the signal indication module: for sending out signal indication information;
master-slave communication module: the host computer and the slave computer can adopt RS485, ethernet or 433 wireless communication, and are used for completing the functions of receiving host computer commands and uploading data;
the CPU processing unit is respectively connected with the USB power supply module, the serial port communication module, the signal indication module and the master-slave communication module;
the USB power supply module and the serial port communication module comprise a USB converter U4, a signal common mode filter U3, a chip U5 and a USB interface P2, wherein a pin 1 of the USB converter U4 is connected with a CPU processing unit, a pin 5 of the USB converter U4 is connected with the CPU processing unit, a pin 6 and a pin 7 of the USB converter U4 are connected in parallel, a pin 8 of the USB converter U4 is respectively connected with one end of a resistor R11, one end of a resistor R12, one end of a resistor R13 and one end of a resistor R14, the common end is a 5V power supply output VCC5V, the other end of the resistor R11 is connected with a pin 9 of the USB converter U4, the other end of the resistor R12 is connected with a pin 10 of the USB converter U4, the other end of the resistor R13 is connected with a pin 11 of the USB converter U4, the other end of the resistor R14 is connected with a pin 14 of the USB converter U4, a pin 15 of the USB converter U4 is respectively connected with the pin 4 of the signal common mode filter U3 and one end of the resistor R6 through a resistor R8, the other end of the resistor R6 is respectively connected with one end of a capacitor C9, the positive electrode of a polar capacitor C10 and the 4 pin and the 17 pin of a USB converter U4, the 16 pin of the USB converter U4 is respectively connected with the 3 pin of a signal common mode filter U3 through a resistor R7, the other end of the capacitor C9 is respectively connected with the 4 pin of a USB interface P2, the 2 pin of a chip U5, the negative electrode of the polar capacitor C3, one end of the capacitor C4 and the negative electrode of the polar capacitor C10, the common terminal is grounded, the 1 pin of the signal common mode filter U3 is respectively connected with the 6 pin of the chip U5 and the 3 pin of the USB interface P2, the 2 pin of the signal common mode filter U3 is respectively connected with the 1 pin of the chip U5 and the 2 pin of the USB interface P2, the 1 pin of the USB interface P2 is respectively connected with the 5 pin of the chip U5, the positive electrode of the polar capacitor C3, the other end of the capacitor C4, one end of the capacitor C7, one end of the resistor R10 and the 19 pin and the 20 pin of the USB converter U4, the common terminal is connected with the other end of the USB converter U4, the pin 8 pin of the USB converter U4 is connected with the USB interface P22, the other end of the capacitor C7 is respectively connected with one end of the capacitor C5, one end of the capacitor C6, one end of the resistor R9, one end of the capacitor C8 and 25 pins and 26 pins of the USB converter U4, the common ground is grounded, the other end of the resistor R9 is connected with 23 pins of the USB converter U4, the other end of the capacitor C8 is connected with 24 pins of the USB converter U4, the other end of the capacitor C5 is respectively connected with one end of the crystal oscillator M1 and 27 pins of the USB converter U4, and the other end of the capacitor C6 is respectively connected with the other end of the crystal oscillator M1 and 28 pins of the USB converter U4 to form a USB power supply communication circuit;
the control circuit further comprises a power supply module, the power supply module comprises a three-terminal voltage stabilizer U2, a 2 pin of the three-terminal voltage stabilizer U2 is connected with the negative electrode of a protector T1, the common end of the three-terminal voltage stabilizer U2 is connected with a 5V power output end VCC5V in the USB power supply module, the positive electrode of the protector T1 is respectively connected with a 1 pin of the three-terminal voltage stabilizer U2, one end of a resistor R15, one end of a capacitor C11 and the negative electrode of a polar capacitor C2, the other end of the resistor R15 is connected with the other end of the capacitor C11, the common end is grounded, the 3 pin of the three-terminal voltage stabilizer U2 is connected with the positive electrode of the polar capacitor C2, and the common end is used as a 3.3V power output end VCC3.3V;
the control circuit further comprises an RTC standby power supply module, the RTC standby power supply module comprises a battery BT1, the positive electrode of the battery BT1 is respectively connected with one end of a resistor R26 and one end of a capacitor C24, the common end is used as a standby power supply output end VBAT, the other end of the capacitor C24 is connected with the negative electrode of the battery BT1, the common end is grounded, the other end of the resistor R26 is connected with the negative electrode of a diode D4, and the positive electrode of the diode D4 is connected with a 3.3V power supply output end VCC3.3V of the power supply module;
the CPU processing unit comprises a chip U1, a pin 3 of the chip U1 is respectively connected with one end of a crystal oscillator M2 and one end of a capacitor C17, a pin 4 of the chip U1 is respectively connected with the other end of the crystal oscillator M2 and one end of a capacitor C18, the other end of the capacitor C17 is connected with the other end of the capacitor C18, the common terminal is grounded, a pin 5 of the chip U1 is respectively connected with one end of a crystal oscillator M3 and one end of a capacitor C19, a pin 6 of the chip U1 is respectively connected with the other end of the crystal oscillator M3 and one end of a capacitor C20, the other end of the capacitor C19 is connected with the other end of the capacitor C20, the common terminal is grounded, a pin 60 of the chip U1 is respectively connected with a collector electrode of a triode Q1 and one end of a resistor R18, an emitter electrode of the triode Q1 is respectively connected with the other end of the resistor R19 and 1 pin of a port P3, a common terminal is connected with a 3.3V power supply output end VCC3.3V of a power supply module, the other end of the resistor R20 is connected with the 5 pin of the port P3, the 2 pin of the port P3 is connected with the 42 pin of the chip U1, the 3 pin of the port P3 is connected with the 43 pin of the chip U1, the 4 pin of the port P3 is grounded, the 6 pin of the port P3 is connected with the 7 pin of the chip U1, the 1 pin of the chip U1 is connected with the standby power supply output end VBAT of the RTC standby power supply module, the 32 pin of the chip U1 is respectively connected with the 48 pin, the 64 pin, the 19 pin, the 13 pin, one end of the capacitor C13, one end of the capacitor C14, one end of the capacitor C15, one end of the capacitor C16, one end of the capacitor C23, one end of the resistor R1, one end of the resistor R17 and one end of the resistor R5, the common end is connected with the 3.3V power supply output end VCC3.3V of the power supply module, the other end of the capacitor C13 is respectively connected with the other end of the capacitor C14, the other end of the capacitor C15, the other end of the capacitor C16 and the other end of the capacitor C23, and the other end of the common end of the capacitor C23, and the common ground, the pin of the pin 31 of the chip U1, the other end of the resistor R1 is connected with one end of the capacitor C1 and the 7 pin of the chip U1 in parallel, the other end of the resistor R1 is grounded, the 28 pin of the chip U1 is grounded through the resistor R16, the other end of the resistor 17 is connected with the 56 pin of the chip U1, the other end of the resistor R5 is connected with the 2 pin of the chip U1, the 46 pin of the chip U1 is connected with the 5 pin of the port P1, the 49 pin of the chip U1 is connected with the 4 pin of the port P1, the 3 pin of the port P1 is connected with the 7 pin of the chip U1, the 2 pin of the port P1 is grounded, the 1 pin of the port P1 is connected with the 3.3V power output end VCC3.3V of the power supply module, the 29 pin of the chip U1 is connected with the 5 pin of the USB converter U4, and the 30 pin of the chip U1 is connected with the 1 pin of the USB converter U4.
The signal indication module comprises a buzzer U6, light emitting diodes DS1, DS2 and DS3 and 2 light emitting diodes DS4 connected in parallel, wherein the positive electrode of the light emitting diode DS1 is connected with one end of a resistor R2, the positive electrode of the light emitting diode DS2 is connected with one end of the resistor R3, the positive electrode of the light emitting diode DS3 is connected with one end of a resistor R4, the positive electrodes of the 2 light emitting diodes DS4 are respectively connected with one ends of resistors R23 and R24, the other end of the resistor R2 is respectively connected with the other end of the resistor R3, the other end of the resistor R4 and the other end of the resistor R23, the common end is connected with a 3.3V power output end VCC3.3V of a power supply module, the negative electrodes of the 2 light emitting diodes DS4 are respectively connected with a pin 53 and a pin 52 pin of the chip U1, the negative electrode of the light emitting diode DS1 is connected with a pin 17 of the chip U1 in a CPU processing unit, the negative electrode of the light emitting diode DS2 is connected with a pin 16 of the chip U1 in the CPU processing unit, the negative electrode of the light emitting diode DS2 is grounded, the other end of the buzzer U6 is respectively connected with the other end of the capacitor U22, the common end of the capacitor C2 is connected with the base electrode of the power supply module V2 and the triode Q2 is connected with the base electrode Q2 of the power supply module Q2, and the common end of the triode Q2 is connected with the power supply module Q2;
the master-slave communication module comprises communication ports P4 and P5, a pin 1 of the communication port P4 is grounded, a pin 2 of the communication port P4 is respectively connected with one end of a capacitor C21, one end of a resistor R21 and one end of a resistor R22, the other end of the resistor R21 is connected with a 3.3V power supply output end VCC3.3V of the power supply module, the other end of the resistor R22 is connected with a 5V power supply output end VCC5V in the USB power supply module, a pin 3 of the communication port P4 is connected with a pin 16 of a chip U1 in the CPU processing unit, a pin 4 of the communication port P4 is connected with a pin 17 of the chip U1 in the CPU processing unit, a pin 5 of the communication port P4 is grounded, a pin 8 of the communication port P4 is connected with a pin 23 of the chip U1 in the CPU processing unit, a pin 9 of the communication port P4 is connected with a pin 24 of the chip U1 in the CPU processing unit, a pin 1 of the communication port P5 is connected with a pin 20 of the chip U1 in the CPU processing unit, and a pin 5 of the communication port P5 is connected with a pin 21 of the chip U1 in the CPU processing unit, and the pins 5 are connected with the pins 22 and the pins 4 and 2 and 5 of the ports are connected in parallel.
CN201810859488.1A 2018-08-01 2018-08-01 USB power supply grain condition detection host with multiple communication modes Active CN108563606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810859488.1A CN108563606B (en) 2018-08-01 2018-08-01 USB power supply grain condition detection host with multiple communication modes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810859488.1A CN108563606B (en) 2018-08-01 2018-08-01 USB power supply grain condition detection host with multiple communication modes

Publications (2)

Publication Number Publication Date
CN108563606A CN108563606A (en) 2018-09-21
CN108563606B true CN108563606B (en) 2023-12-19

Family

ID=63555967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810859488.1A Active CN108563606B (en) 2018-08-01 2018-08-01 USB power supply grain condition detection host with multiple communication modes

Country Status (1)

Country Link
CN (1) CN108563606B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109343414A (en) * 2018-11-12 2019-02-15 郑州源创智控有限公司 Actuator controller for silo ventilation

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577369A (en) * 2013-11-11 2014-02-12 浙江大学 USB flash disk with transcription function
CN204044810U (en) * 2014-07-04 2014-12-24 深圳市江波龙电子有限公司 USB device and work system
CN104778140A (en) * 2014-01-15 2015-07-15 深圳市可橙科技有限公司 USB (Universal Serial Bus) automatic identification and conduction system of star-shaped framework and method thereof
CN206648602U (en) * 2017-03-07 2017-11-17 华晶精密制造股份有限公司 Multi-path laser line footpath abnormality detection system
CN208351462U (en) * 2018-08-01 2019-01-08 郑州源创智控有限公司 A kind of USB power supply grain feelings detection host with communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI393026B (en) * 2008-07-15 2013-04-11 Asustek Comp Inc Electronic apparatus capable of serving as host and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577369A (en) * 2013-11-11 2014-02-12 浙江大学 USB flash disk with transcription function
CN104778140A (en) * 2014-01-15 2015-07-15 深圳市可橙科技有限公司 USB (Universal Serial Bus) automatic identification and conduction system of star-shaped framework and method thereof
CN204044810U (en) * 2014-07-04 2014-12-24 深圳市江波龙电子有限公司 USB device and work system
CN206648602U (en) * 2017-03-07 2017-11-17 华晶精密制造股份有限公司 Multi-path laser line footpath abnormality detection system
CN208351462U (en) * 2018-08-01 2019-01-08 郑州源创智控有限公司 A kind of USB power supply grain feelings detection host with communication

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
终端系统双处理器的USB通信电路设计;侯方西;;单片机与嵌入式系统应用(第12期);27-29 *

Also Published As

Publication number Publication date
CN108563606A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN111090605B (en) USB-to-UART circuit for MCU software upgrade
CN113162831A (en) Cascadable self-addressing tilt angle sensor and addressing method thereof
CN108563606B (en) USB power supply grain condition detection host with multiple communication modes
CN102339119B (en) Intelligent monitoring device for a power supply
CN110245048B (en) Intelligent management system and management method for chassis
CN113437990B (en) Chip detector
CN113157474B (en) Server power supply black box data analysis system
CN205263726U (en) Support IO expansion board of blade server of single deck tape -recorder hot plug
CN104901407A (en) Power source management circuit of commercial vehicle diagnostic protocol adapter
CN208367624U (en) A kind of USB power supply communication circuit for grain feelings detection host of powering
CN208351462U (en) A kind of USB power supply grain feelings detection host with communication
CN108762461A (en) The USB power supply communication circuits of host are detected for grain feelings of powering
CN206863526U (en) A kind of multi-function robot master control system circuit
CN106508052B (en) A kind of two-parameter wire type flame sensor fire detecting arrangement
CN113885374A (en) Important equipment power failure real-time alarm device and implementation method thereof
CN210627477U (en) Low-power consumption environmental monitoring equipment based on 4G network
CN107085559B (en) Hot plug logic circuit
CN112467863A (en) Dual-power switching communication device and method for glucometer
CN217404756U (en) Control system and circuit for robot mainboard
CN218998072U (en) Optical module code writing board
CN219958353U (en) Wireless control device
CN111309564A (en) Sensor inquiry device
CN216079354U (en) Monitoring terminal for tracing leakage of gas pipeline
CN215186796U (en) Cascadable self-addressing tilt angle sensor
CN211554676U (en) Computer remote control assembly

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210330

Address after: Room 1503, building 5, Longding Chuangfu center, 310 Lianhua street, high tech Zone, Zhengzhou City, Henan Province, 450000

Applicant after: Zhengzhou Banghai Intelligent Technology Co.,Ltd.

Address before: Room 511, 5 / F, building 9, shengshijiaye, No. 316, Lianhua street, high tech Zone, Zhengzhou City, Henan Province

Applicant before: ZHENGZHOU YUANCHUANG INTELLIGENT CONTROL Co.,Ltd.

GR01 Patent grant
GR01 Patent grant