CN218481824U - Device supporting multiple interface types and downloading multiple equipment firmware in parallel - Google Patents

Device supporting multiple interface types and downloading multiple equipment firmware in parallel Download PDF

Info

Publication number
CN218481824U
CN218481824U CN202222409134.1U CN202222409134U CN218481824U CN 218481824 U CN218481824 U CN 218481824U CN 202222409134 U CN202222409134 U CN 202222409134U CN 218481824 U CN218481824 U CN 218481824U
Authority
CN
China
Prior art keywords
pin
level
uart
control unit
mcu control
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
CN202222409134.1U
Other languages
Chinese (zh)
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.)
Xiamen Rigo Communication Equipment Co ltd
Original Assignee
Xiamen Rigo Communication Equipment 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 Xiamen Rigo Communication Equipment Co ltd filed Critical Xiamen Rigo Communication Equipment Co ltd
Priority to CN202222409134.1U priority Critical patent/CN218481824U/en
Application granted granted Critical
Publication of CN218481824U publication Critical patent/CN218481824U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The utility model discloses a device for supporting multiple interface types and downloading multiple equipment firmware in parallel, which comprises a PC, a first level conversion unit, an on-site detection unit and an MCU control unit; the MCU control unit is respectively connected with the PC, the first level conversion unit and the on-site detection unit. The device supports various interface types (such as RS232, RS485, UART TTL level and the like), and can simplify the connection of a PC end and a plurality of programs to be downloaded or data lines of a device end to be tested; the device also supports the parallel downloading of a plurality of equipment firmware, can simultaneously and reliably download the firmware to a plurality of equipment, and improves the production efficiency.

Description

Device supporting multiple interface types and downloading multiple equipment firmware in parallel
Technical Field
The present invention relates to a device for downloading firmware, and more particularly to a device for supporting multiple interface types and downloading multiple device firmware in parallel.
Background
When electronic product equipment leaves a factory, sometimes application programs designated by a customer need to be downloaded into the product equipment in batch. In the prior art, most of downloading firmware (such as an ISP serial port downloading mode) can only be realized by downloading programs by a single pair of product equipment; the existing firmware downloading devices for realizing large-scale firmware downloading are also generally adopting network transmission, or storing the firmware in an online server/database for downloading by terminal equipment, and depending on the existence of the network, the transmission speed is limited by factors such as network speed and the like. In addition, most firmware downloading devices are of a single type of interface, and in actual use, an interface conversion line is usually connected externally according to an interface of product equipment, so that the defects of complex wiring, low downloading efficiency and the like exist.
SUMMERY OF THE UTILITY MODEL
An object of the utility model is to solve and be difficult to batch equipment download firmware among the prior art, even realized that batch download also has speed limit scheduling problem to and wiring complicated, the inefficiency scheduling problem that leads to because the interface type is single.
The utility model provides a technical scheme that its technical problem adopted is: an apparatus for supporting multiple interface types and downloading multiple device firmware in parallel is provided, comprising:
the PC is used for storing firmware;
the first level conversion unit is used for realizing conversion between a UART TTL level and an RS232 level;
the first level conversion unit is used for realizing conversion between a UART TTL level and an RS485 level;
the in-place detection unit is used for detecting the in-place state of the equipment;
the MCU control unit is connected with the in-place detection unit through an I/O interface; the first level conversion unit and the second level conversion unit are respectively connected through a UART interface; and the device is connected with the PC through a USB interface so as to download the firmware to the corresponding equipment.
Preferably, the MCU control unit includes at least one USB interface, a plurality of UART interfaces, and a plurality of IO interfaces.
Preferably, the first level shift unit includes an SP3232 level shift chip; a pin 7 and a pin 14 of the SP3232 level conversion chip are connected with an RX end of the RS232 interface type device, and a pin 8 and a pin 13 of the SP3232 level conversion chip are connected with a TX end of the RS232 interface type device; and a pin 9 and a pin 12 of the SP3232 level conversion chip are connected with a UART RX end of the MCU control unit, and a pin 10 and a pin 11 of the SP3232 level conversion chip are connected with a UART TX end of the MCU control unit.
Preferably, the second level conversion unit includes an SP3485 level conversion chip and a triode, pin 2 and pin 3 of the SP3485 level conversion chip are connected in parallel to a collector C of the triode, pin 1 of the SP3485 level conversion chip is connected to a UART RX end of the MCU control unit, pin 4 is connected to a UART TX end of the MCU control unit, pin 6 of the SP3485 level conversion chip is connected to an a end of an RS485 interface type device, and pin 7 of the SP3485 level conversion chip is connected to a B end of an RS485 interface type device; the base electrode of the triode is connected with two resistors in parallel, and the emitting electrode of the triode is grounded.
Preferably, the in-place detection unit comprises a wiring terminal; one end of the wiring terminal is connected with the IO port of the MCU control unit, and the other end of the wiring terminal is grounded.
Preferably, the apparatus for supporting multiple interface types and downloading multiple device firmware in parallel further comprises: a collision avoidance circuit; the conflict avoiding circuit comprises a multi-path selection switch, the multi-path selection switch comprises four input ends and an output end, the first input end is connected with a TX end of UART TTL interface type equipment, the second input end is connected with a TX end of RS232 interface type equipment, the third input end is connected with a TX end of RS485 interface type equipment, and the fourth input end is suspended; the output end is connected with the UART RX end of the MCU control unit.
Preferably, the apparatus for supporting multiple interface types and downloading multiple device firmware in parallel further comprises: an LDO module; the LDO module is respectively connected with the PC and the MCU control unit to supply power.
The utility model discloses following beneficial effect has:
the utility model realizes the conversion between UART TTL level and RS232 level and between UART TTL level and RS485 level through the level conversion unit, and can simplify the connection between the PC end and a plurality of data lines of the program to be downloaded or the equipment end to be tested;
the utility model discloses a MCU the control unit has a plurality of UART interfaces, supports a plurality of equipment firmware of parallel download, can download firmware to a plurality of equipment simultaneously, reliably, improves production efficiency.
The present invention will be described in further detail with reference to the drawings and examples, but the present invention is not limited to the examples.
Drawings
FIG. 1 is an architectural diagram of an embodiment of the present invention;
fig. 2 is a pin diagram of an STM32F412RET6 chip of the present invention;
fig. 3 is a circuit diagram of a first level shift unit according to the present invention;
fig. 4 is a circuit diagram of a second level shift unit according to the present invention;
FIG. 5 is a circuit diagram of the in-place detection circuit of the present invention;
fig. 6 is a schematic diagram of the collision avoidance circuit of the present invention.
Detailed Description
Referring to fig. 1, the structure diagram of the embodiment of the present invention is shown. The utility model provides a support multiple interface type and parallel device of downloading a plurality of equipment firmware, include:
the PC 1 is used for storing firmware;
the first level conversion unit 3 is used for realizing conversion between a UART TTL level and an RS232 level;
the first level conversion unit 4 is used for realizing conversion between a UART TTL level and an RS485 level;
an in-place detection unit 5 for detecting the in-place state of the device;
the MCU control unit 2 is connected with the in-place detection unit 5 through an I/O interface; the first level conversion unit 3 and the second level conversion unit 4 are respectively connected through UART interfaces; and the PC 1 is connected with a corresponding device through a USB interface so as to download the firmware to the corresponding device.
Specifically, the MCU control unit 2 includes 1 USB interface, 5 UART interfaces, and 12 IO interfaces.
Specifically, in the apparatus for supporting multiple interface types and downloading multiple device firmware in parallel, the RS232 interface may be connected to 4 RS232 interface type devices 6, the UART interface may be connected to 4 UART TTL interface type devices 7, and the RS485 interface may be connected to 4 RS485 interface type devices 8.
Specifically, the device supporting multiple interface types and downloading multiple device firmware in parallel further comprises an LDO module 6; the LDO module 6 with PC 1 with the MCU control unit 2 is connected, PC 1 passes through the USB line 5V voltage of input to LDO module 6, and 3V voltage of LDO module 6 output is the MCU control unit 2 power supply.
In this embodiment, the MCU control unit 2 is an STM32F412RET6 type chip, and a pin diagram of the chip is shown in fig. 2.
Referring to fig. 3, the first level shifter unit 3 includes an SP3232 level shifter chip U1, a capacitor C31, a capacitor C32, a capacitor C33, a capacitor C34, a capacitor C35, a resistor R31, a resistor R32, a resistor R33, a resistor R34, and a power VCC3.3; a pin 1 of the SP3232 level conversion chip U1 is connected to one end of a capacitor C31, the other end of the capacitor C31 is connected to a pin 3, a pin 2 is connected to one end of a capacitor C34, the other end of the capacitor C34 is grounded, a pin 4 is connected to one end of the capacitor C32, the other end of the capacitor C32 is connected to a pin 5, the pin 6 is connected to one end of a capacitor C35, the other end of the capacitor C35 is grounded, a pin 7 is connected to one end of a resistor R32, the other end of the resistor R32 is used for connecting an RX end of an RS232 interface type device 6, a pin 8 is connected to one end of a resistor R34, the other end of the resistor R34 is used for connecting a TX end of the RS232 interface type device 6, a pin 9 is connected to a UART RX end of the MCU control unit 2, a UART 11 is connected to the TX end of the MCU control unit 2, a pin 12 is connected to the RX end of the MCU control unit 2, a pin 13 is connected to one end of a resistor R33, the other end of the resistor R33 is used for connecting to a TX end of the RS232 interface type device 6, a pin 14 is connected to one end of the resistor R31, the other end of the VCC interface type device 6 is connected to a pin 15, and the pin 16 is connected to a pin C16; the model of the SP3232 level conversion chip U1 is SP3232EEA.
Referring to fig. 4, the second level shifter unit 4 includes an SP3485 level shifter chip U2, a transistor Q1, a capacitor C41, a resistor R42, a resistor R43, and a power VCC3.3; pin 1 of the SP3485 level conversion chip U2 is connected to the UART RX end of the MCU control unit 2, pin 2 and pin 3 are connected in parallel and then connected to one end of a resistor R43, the other end of R43 is connected to a power VCC3.3, pin 2 and pin 3 are connected in parallel and then connected to the collector of a transistor Q1, pin 4 is connected to the UART TX end of the MCU control unit 2, pin 5 is grounded, pin 6 is connected to the a end of an RS485 interface type device 8, pin 7 is connected to the B end of the RS485 interface type device 8, pin 8 is connected to the power VCC3.3, pin 8 is connected to one end of a capacitor C41, and the other end of the capacitor C41 is grounded; the emitting electrode of the triode Q1 is grounded, the base electrode of the triode Q1 is connected with one end of a resistor R41, the other end of the resistor R41 is connected with the UART TX end of the MCU control unit 2, the base electrode of the triode Q1 is connected with one end of a resistor R42, and the other end of the resistor R42 is connected with the emitting electrode; the model of the SP3485 level conversion chip U2 is SP2485ESA, and the model of the triode Q1 is S9014.
Referring to fig. 5, for the in-place detection unit 5, the in-place detection unit includes a power supply VCC3.3, a resistor R51 and a connection terminal J1, the connection terminal J1 includes a terminal 1 and a terminal 2, the terminal 1 is connected to an IO port of the MCU control unit 2, the terminal 1 is connected to one end of the resistor R51, the other end of the resistor R51 is connected to the power supply VCC3.3, and the terminal 2 is grounded. When the device is connected to the UART interface of the MCU control unit 2, two ends of the corresponding connecting terminal J1 are short-circuited to the ground, the IO interface is pulled down, the MCU control unit 2 acquires on-site state information by scanning the status of the IO interface and performs interface detection before firmware downloading with the device through the UART interface, if the on-site state information is successful, the information is reported to the PC 1 to remind that the device is ready, otherwise, fault information is prompted. At the same time, the MCU control unit 2 can be connected with a plurality of devices with the same interface, if a plurality of types of interface devices are in place at the same time, the MCU control unit 2 reports the illegal connection information to the PC 1, and simultaneously controls the conflict avoiding circuit to keep the UART RX end disconnected and suspended, thereby protecting the interface circuit.
Because the same UART RX end on the MCU control unit 2 is connected to the receiving ends of three different level interfaces, if the three receiving ends are directly connected in parallel, the RX end of the UART may not work normally, so a collision avoidance circuit is provided to avoid the situation that the RX end of the UART cannot work normally.
Referring to fig. 6, the collision avoidance circuit is shown; the collision avoidance circuit comprises a multi-way selection switch 9, the multi-way selection switch 9 comprises four input ends and an output end, the first input end is connected with a TX end of a UART TTL interface type device 7, the second input end is connected with a TX end of an RS232 interface type device 6, the third input end is connected with a TX end of an RS485 interface type device 8, and the fourth input end is suspended; the output end is connected with the UART RX end of the MCU control unit. The MCU control unit 2 controls the multiple selector switch 9 to communicate with the RX receiving end of which level according to the presence information, and if the presence information is empty or multiple interface types of devices are connected at the same time, the MCU control unit 2 controls the multiple selector switch 9 to keep the UART RX end disconnected in a suspended state, thereby protecting the interface circuit.
When the device works, the PC 1 performs data interaction with the MCU control unit 2 through a USB interface to request to read the in-place state of equipment, the MCU control unit 2 reports the in-place information and the connection state information of the equipment after receiving an instruction of the PC 1, if the existing equipment is in place and has no error connection information, the PC 1 downloads corresponding firmware into the ready equipment through the device, after the downloading of the firmware is finished, the MCU control unit 2 reports successful downloading information of the equipment numbered corresponding to the UART interface to the PC 1, and the PC 1 prompts successful downloading information of the equipment firmware; if the MCU control unit 2 detects that the firmware downloading is abnormal through the UART interface, error information is reported to the PC 1 through the USB interface, and the PC 1 reminds a user that the firmware downloading fault occurs to corresponding interface equipment according to the error information reported by the MCU control unit 2.
It is thus clear that the utility model provides a support multiple interface type and the device of a plurality of equipment firmware of parallel download can support multiple interface type, the parallel download equipment firmware of a plurality of interfaces, finally plays and simplifies the data line connection between PC end and a plurality of waiting to download the procedure or the equipment end that awaits measuring, can download the firmware to a plurality of equipment reliably simultaneously, improves production efficiency.
The above description is only for the preferred embodiment of the present invention, and should not be construed as limiting the present invention, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention should be included within the protection scope of the present invention.

Claims (7)

1. An apparatus for supporting multiple interface types and downloading multiple device firmware in parallel, comprising:
the PC is used for storing firmware;
the first level conversion unit is used for realizing conversion between a UART TTL level and an RS232 level;
the first level conversion unit is used for realizing conversion between a UART TTL level and an RS485 level;
the on-position detection unit is used for detecting the on-position state of the equipment;
the MCU control unit is connected with the in-place detection unit through an I/O interface; the first level conversion unit and the second level conversion unit are respectively connected through a UART interface; and the device is connected with the PC through a USB interface so as to download the firmware to the corresponding equipment.
2. The apparatus of claim 1, wherein the MCU control unit comprises at least one USB interface, a plurality of UART interfaces, and a plurality of IO interfaces.
3. The apparatus of claim 1, wherein the first level shift unit comprises an SP3232 level shift chip; a pin 7 and a pin 14 of the SP3232 level conversion chip are connected with an RX end of the RS232 interface type device, and a pin 8 and a pin 13 of the SP3232 level conversion chip are connected with a TX end of the RS232 interface type device; and a pin 9 and a pin 12 of the SP3232 level conversion chip are connected with a UART RX end of the MCU control unit, and a pin 10 and a pin 11 of the SP3232 level conversion chip are connected with a UART TX end of the MCU control unit.
4. The apparatus according to claim 1, wherein the second level shifter comprises an SP3485 level shifter chip and a transistor, pin 2 and pin 3 of the SP3485 level shifter chip are connected in parallel to a collector C of the transistor, pin 1 of the SP3485 level shifter chip is connected to a UART RX of the MCU control unit, pin 4 is connected to a UART TX of the MCU control unit, pin 6 of the SP3485 level shifter chip is connected to an a of an RS485 interface type device, and pin 7 of the SP3485 level shifter chip is connected to a B of an RS485 interface type device; the base electrode of the triode is connected with two resistors in parallel, and the emitting electrode of the triode is grounded.
5. The apparatus for supporting multiple interface types and downloading multiple device firmware in parallel according to claim 1, wherein the presence detection unit comprises a connection terminal; one end of the wiring terminal is connected with the IO port of the MCU control unit, and the other end of the wiring terminal is grounded.
6. The apparatus for supporting multiple interface types and downloading multiple device firmware in parallel according to claim 1, further comprising: a collision avoidance circuit; the conflict avoiding circuit comprises a multi-path selection switch, the multi-path selection switch comprises four input ends and an output end, the first input end is connected with a TX end of UART TTL interface type equipment, the second input end is connected with a TX end of RS232 interface type equipment, the third input end is connected with a TX end of RS485 interface type equipment, and the fourth input end is suspended; the output end is connected with the UART RX end of the MCU control unit.
7. The apparatus for supporting multiple interface types and downloading multiple device firmware in parallel according to claim 1, further comprising: an LDO module; the LDO module is respectively connected with the PC and the MCU control unit to supply power.
CN202222409134.1U 2022-09-09 2022-09-09 Device supporting multiple interface types and downloading multiple equipment firmware in parallel Active CN218481824U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202222409134.1U CN218481824U (en) 2022-09-09 2022-09-09 Device supporting multiple interface types and downloading multiple equipment firmware in parallel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202222409134.1U CN218481824U (en) 2022-09-09 2022-09-09 Device supporting multiple interface types and downloading multiple equipment firmware in parallel

Publications (1)

Publication Number Publication Date
CN218481824U true CN218481824U (en) 2023-02-14

Family

ID=85166899

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202222409134.1U Active CN218481824U (en) 2022-09-09 2022-09-09 Device supporting multiple interface types and downloading multiple equipment firmware in parallel

Country Status (1)

Country Link
CN (1) CN218481824U (en)

Similar Documents

Publication Publication Date Title
CN105302755B (en) A kind of PCIE boards and its monitoring method with monitoring function
EP2688258B1 (en) Single board communication method, system and single board
CN101005380A (en) Power patch panel with guided MAC capability
CN206400530U (en) A kind of industrial bus system of adaptive three kinds of industrial bus agreements
CN104238396A (en) Automatic accessory recognizing system and implementation method
CN207337386U (en) A kind of server master board test device
CN218481824U (en) Device supporting multiple interface types and downloading multiple equipment firmware in parallel
CN203786242U (en) Portable multifunctional interface cable test device
WO2018226748A1 (en) Rack controller with native support for intelligent patching equipment installed in multiple racks
CN103176118A (en) Peripheral Component Interconnect Express (PCI-E) signal testing device
CN212031656U (en) Operational amplifier test module of integrated circuit test system
CN106502911A (en) Multiple terminals access device
JPH0320778B2 (en)
CN113985321B (en) Cable connection performance testing device and method with intelligent self-learning capability
CN109753396A (en) A kind of cable self checking method, system and the server of storage system
CN212586414U (en) Signal detection operation table for shield machine electrical cabinet
CN108490338B (en) Test apparatus, test method, computer apparatus, and computer-readable storage medium
CN207965644U (en) A kind of industrial personal computer apparatus front panel key detection device
CN109101376A (en) A kind of USB speed measuring device and system
CN220040613U (en) Testing device of PD equipment
CN110297733A (en) A kind of peripheral equipment integrated control method and system
KR100876624B1 (en) Collective cradle with searchable karaoke selection remote control
CN208334616U (en) A kind of ohmmeter calibrating installation
CN104216815B (en) Fan state indication device
CN207560025U (en) A kind of CAN communication test simulation system

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant