[go: up one dir, main page]

CN114020284B - A program burning circuit and program burning method based on RS485 - Google Patents

A program burning circuit and program burning method based on RS485 Download PDF

Info

Publication number
CN114020284B
CN114020284B CN202111283273.8A CN202111283273A CN114020284B CN 114020284 B CN114020284 B CN 114020284B CN 202111283273 A CN202111283273 A CN 202111283273A CN 114020284 B CN114020284 B CN 114020284B
Authority
CN
China
Prior art keywords
resistor
circuit
external communication
processor
ota download
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
CN202111283273.8A
Other languages
Chinese (zh)
Other versions
CN114020284A (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.)
Shenzhen Hpmont Technology Co Ltd
Original Assignee
Shenzhen Hpmont 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 Shenzhen Hpmont Technology Co Ltd filed Critical Shenzhen Hpmont Technology Co Ltd
Priority to CN202111283273.8A priority Critical patent/CN114020284B/en
Publication of CN114020284A publication Critical patent/CN114020284A/en
Application granted granted Critical
Publication of CN114020284B publication Critical patent/CN114020284B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Stored Programmes (AREA)

Abstract

本申请公开了一种基于RS485的程序烧录电路及程序烧录方法,采用设备中通过以太网接口端子对外连接的RS485通信器,在以太网接口端子中受OTA下载线连接后触发的第一引脚与处理器的OTA下载识别信号接收端之间设置OTA下载识别电路,在处理器的数据发送接口与RS485通信器的接收使能端之间设置RS485使能电路,待烧录设备的处理器识别OTA下载识别电路输出表征OTA下载识别信号的电平后,通过RS485使能电路使能RS485通信器,以利用RS485通信器和OTA下载线接收程序烧录信号,实现了通过RS485通信器接收程序烧录,从而无需拆开机箱即可进行程序烧录更新的工作。

The present application discloses a program burning circuit and a program burning method based on RS485, which adopts an RS485 communicator connected to the outside through an Ethernet interface terminal in a device, and sets an OTA download identification circuit between a first pin in the Ethernet interface terminal that is triggered after an OTA download line is connected and an OTA download identification signal receiving end of a processor, and sets an RS485 enabling circuit between a data transmission interface of the processor and a receiving enabling end of the RS485 communicator. After the processor of the device to be burned identifies the level of the OTA download identification circuit output representing the OTA download identification signal, the RS485 enabling circuit enables the RS485 communicator, so as to utilize the RS485 communicator and the OTA download line to receive the program burning signal, thereby realizing receiving the program burning through the RS485 communicator, so that the program burning and updating can be performed without disassembling the chassis.

Description

Program burning circuit and program burning method based on RS485
Technical Field
The application relates to the field of program burning, in particular to a program burning circuit and a program burning method based on RS 485.
Background
At present, a separate interface is needed for downloading the update program for the software download of the device processor, and the interface for downloading the program is generally free from external connection, so that the case needs to be disassembled for software update, the software download interface of the board card is found for downloading, and the downloading is inconvenient after the device is packaged.
The technical problem to be solved by the person skilled in the art is to provide a scheme for facilitating equipment program burning.
Disclosure of Invention
The application aims to provide a program burning circuit and a program burning method based on RS485, which can perform program burning without disassembling an equipment case to find a software downloading interface of a board card.
In order to solve the technical problems, the application provides a program burning circuit based on RS485, which comprises an Ethernet interface terminal, an OTA download identification circuit, an RS485 communicator and an RS485 enabling circuit;
The first pin triggered by the connection of the OTA download line in the Ethernet interface terminal is connected with the input end of the OTA download identification circuit, the output end of the OTA download identification circuit is connected with the OTA download identification signal receiving end of the processor, the data pin in the Ethernet interface terminal is connected with the slave-end data interface of the RS485 communicator, and the host-end data interface of the RS485 communicator is correspondingly connected with the data transmitting interface of the processor and the data receiving interface of the processor;
The RS485 enabling circuit is an inverter circuit, the input end of the RS485 enabling circuit is connected with the data transmission interface of the processor, and the output end of the RS485 enabling circuit is connected with the receiving enabling end of the RS485 communicator;
The OTA download identification circuit is used for outputting different levels when the Ethernet interface terminal is connected with the OTA download line and when the Ethernet interface terminal is not connected with the OTA download line, so that the processor can enable the RS485 communicator through the RS485 enabling circuit after receiving the level of the OTA download identification signal output by the OTA download identification circuit and representing the OTA download identification signal, and the RS485 communicator and the OTA download line are utilized to receive program burning signals.
Optionally, the OTA download identifying circuit specifically includes a first resistor, a second resistor, a third resistor and a first triode;
The first end of the first resistor is connected with the first pin, the second end of the first resistor is connected with the base electrode of the first triode, the collector electrode of the first triode, the second end of the second resistor is connected with the first end of the third resistor, the first end of the second resistor is connected with the first direct current power supply, the second end of the third resistor is connected with the OTA download identification signal receiving end of the processor, and the emitter electrode of the first triode is grounded.
Optionally, the system further comprises an external communication identification circuit;
The input end of the external communication identification circuit is connected with a second pin triggered by the connection of the external communication equipment in the Ethernet interface terminal, the output end of the external communication identification circuit is connected with an external communication identification signal receiving end of the processor, and the external communication identification circuit is used for outputting different levels when the Ethernet interface terminal is connected with the external communication equipment and when the Ethernet interface terminal is not connected with the external communication equipment.
Optionally, the external communication identification circuit specifically includes a fourth resistor, a fifth resistor and a first capacitor;
The first end of the fourth resistor is grounded, the second end of the fourth resistor and the first end of the fifth resistor are connected with the second pin, the second end of the fifth resistor and the first end of the first capacitor are connected with an external communication identification signal receiving end of the processor, and the second end of the first capacitor is grounded.
In order to solve the technical problem, the application also provides a program burning method based on RS485, which is based on a processor and comprises the following steps:
when the OTA download identification signal receiving end of the processor receives the level representing the OTA download identification signal output by the OTA download identification circuit, transmitting an enabling signal through the data transmitting interface of the processor by the RS485 enabling circuit to activate the receiving enabling of the RS485 communicator;
Receiving a program burning signal of an RS485 data bus through the RS485 communicator;
The OTA download identification signal receiving end of the processor is connected with the output end of the OTA download identification circuit, the input end of the OTA download identification circuit is connected with a first pin triggered by an OTA download line in an Ethernet interface terminal, a data pin in the Ethernet interface terminal is connected with a slave-end data interface of the RS485 communicator, and a host-end data interface of the RS485 communicator is correspondingly connected with a data transmitting interface of the processor and a data receiving interface of the processor;
The RS485 enabling circuit is an inverter circuit, the input end of the RS485 enabling circuit is connected with the data transmission interface of the processor, and the output end of the RS485 enabling circuit is connected with the receiving enabling end of the RS485 communicator;
The OTA download identification circuit is used for outputting different levels when the Ethernet interface terminal is connected with the OTA download line and when the Ethernet interface terminal is not connected with the OTA download line.
Optionally, the OTA download identifying circuit specifically includes a first resistor, a second resistor, a third resistor and a first triode;
The first end of the first resistor is connected with the first pin, the second end of the first resistor is connected with the base electrode of the first triode, the collector electrode of the first triode, the second end of the second resistor is connected with the first end of the third resistor, the first end of the second resistor is connected with the first direct current power supply, the second end of the third resistor is connected with the OTA download identification signal receiving end of the processor, and the emitter electrode of the first triode is grounded.
Optionally, the method further comprises:
When an external communication identification signal receiving end of the processor receives the level of the external communication identification circuit, which characterizes the Ethernet interface terminal to be accessed to external communication equipment, the RS485 communicator is controlled to enter an external communication mode;
The input end of the external communication identification circuit is connected with a second pin triggered by the connection of the external communication equipment in the Ethernet interface terminal, the output end of the external communication identification circuit is connected with an external communication identification signal receiving end of the processor, and the external communication identification circuit is used for outputting different levels when the Ethernet interface terminal is connected with the external communication equipment and when the Ethernet interface terminal is not connected with the external communication equipment.
Optionally, the external communication identification circuit specifically includes a fourth resistor, a fifth resistor and a first capacitor;
The first end of the fourth resistor is grounded, the second end of the fourth resistor and the first end of the fifth resistor are connected with the second pin, the second end of the fifth resistor and the first end of the first capacitor are connected with an external communication identification signal receiving end of the processor, and the second end of the first capacitor is grounded.
The program burning circuit based on the RS485 is characterized in that an RS485 communicator which is externally connected through an Ethernet interface terminal is adopted in the device, an OTA download identification circuit is arranged between a first pin which is triggered after the OTA download line is connected in the Ethernet interface terminal and an OTA download identification signal receiving end of a processor and is used for outputting different levels when the Ethernet interface terminal is connected with the OTA download line and outputting different levels when the Ethernet interface terminal is not connected with the OTA download line, an RS485 enabling circuit is arranged between a data transmitting interface of the processor and a receiving enabling end of the RS485 communicator, and therefore after the program burning device is connected with the Ethernet interface terminal of the device to be burned through the OTA download line, the processor of the device to be burned identifies the level of an OTA download identification signal which is output by the OTA download identification circuit, the RS485 communicator is enabled through the RS485 enabling circuit, program burning is not needed to be received through the RS485 communicator, and the program burning can be updated through the RS485 communicator.
The application also provides a program burning method based on RS485, which has the beneficial effects and is not repeated here.
Drawings
For a clearer description of embodiments of the application or of the prior art, the drawings that are used in the description of the embodiments or of the prior art will be briefly described, it being apparent that the drawings in the description below are only some embodiments of the application, and that other drawings can be obtained from them without inventive effort for a person skilled in the art.
Fig. 1 is a circuit diagram of a first part of an RS 485-based program recording circuit according to an embodiment of the present application;
Fig. 2 is a circuit diagram of a second part of an RS 485-based program recording circuit according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a program burning circuit and a program burning method based on RS485, which can perform program burning work without disassembling an equipment case to find a software downloading interface of a board card.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Fig. 1 is a circuit diagram of a first part of an RS 485-based program recording circuit according to an embodiment of the present application, and fig. 2 is a circuit diagram of a second part of the RS 485-based program recording circuit according to an embodiment of the present application.
It should be noted that fig. 1 and fig. 2 together form a program burning circuit based on RS485 in the embodiment of the present application.
As shown in fig. 1 and fig. 2, the program burning circuit based on RS485 provided by the embodiment of the present application is characterized by comprising an ethernet interface terminal J1, an OTA download identification circuit, an RS485 communicator U3 and an RS485 enabling circuit;
The first pin triggered by the connection of the OTA download line in the Ethernet interface terminal J1 is connected with the input end of the OTA download identification circuit, the output end BOOT0 of the OTA download identification circuit is connected with the OTA download identification signal receiving end of the processor, the data pin in the Ethernet interface terminal J1 is connected with the slave-end data interface A, B of the RS485 communicator U3, and the host-end data interface D, R of the RS485 communicator U3 is correspondingly connected with the data transmitting interface TXD of the processor and the data receiving interface RXD of the processor;
the RS485 enabling circuit is an inverter circuit, the input end of the RS485 enabling circuit is connected with the data transmission interface TXD of the processor, and the output end of the RS485 enabling circuit is connected with the receiving enabling ends RE and DE of the RS485 communicator U3;
The OTA download identification circuit is used for outputting different levels when the Ethernet interface terminal J1 is connected to an OTA download line and when the Ethernet interface terminal J1 is not connected to the OTA download line, so that the processor can enable the RS485 communicator U3 through the RS485 enabling circuit after receiving the level of the OTA download identification signal which is represented by the output of the OTA download identification circuit, and the program burning signal can be received by the RS485 communicator U3 and the OTA download line.
In the embodiment of the application, the Ethernet interface terminal is selected as the downloading port in consideration of the fact that the Ethernet interface terminal is usually reserved on the equipment for external communication, and the program downloading and updating without unpacking the equipment are realized through the RS485 communicator and the Ethernet interface terminal.
OTA, over-the-Air Technology (OTA), is a Technology that enables remote management of mobile terminal devices and SIM card data Over the Air interface of mobile communications. The embodiment of the application is beneficial to triggering a specific pin of an Ethernet interface terminal by an interface of an OTA downloading line, and setting an OTA downloading identification circuit between the specific pin and an OTA downloading identification signal receiving end of a processor, thereby being triggered by a signal of the OTA downloading line connected to the Ethernet interface terminal and informing the processor of program burning.
The program burning can be performed when the software is updated in the using process of the equipment, and also can be performed when the equipment is put into use for the first time. When the device is put into use except for this, there is no control program for the rest of the hardware of the device in the processor, and the RS485 communicator needs to be activated to receive the program burning signal. Therefore, in the embodiment of the application, an RS485 enabling circuit is arranged between the data transmitting port TXD of the processor and the receiving enabling ends RE and DE of the RS485 communicator U3.
When the program burning circuit based on RS485 provided by the embodiment of the application is used for first putting equipment into use, the program burning equipment is connected with the Ethernet interface terminal J1 reserved by the equipment to be burned through the OTA downloading line, and the OTA downloading line triggers the first pin (such as pin1 of J1 in fig. 1) of the Ethernet interface terminal J1, so that the OTA downloading identification circuit is triggered to output the level representing the OTA downloading identification signal.
In a specific implementation, the OTA download identification circuit may be implemented using a switching circuit. For example, the ethernet interface terminal J1 is RJ45, and pin1 thereof is pulled down after the OTA download line is inserted, and the pin1 is used as the first pin defined herein, and the switch circuit is designed by using this characteristic, so that the OTA download identification signal can be sent to the processor.
As shown in fig. 1, the OTA download identifying circuit J1 may specifically include a first resistor R13, a second resistor R12, a third resistor R5, and a first transistor Q1;
The first end of the first resistor R13 is connected to the first pin, the second end of the first resistor R13 is connected to the base of the first triode Q1, the collector of the first triode Q1, the second end of the second resistor R12 is connected to the first end of the third resistor R5, the first end of the second resistor R12 is connected to the first direct current (e.g., +3.3v direct current) power supply as shown in fig. 1, the second end of the third resistor R5 is connected to the OTA download identification signal receiving end of the processor, and the emitter of the first triode Q1 is grounded.
In the conventional device, if the ethernet interface terminal J1 is RJ45, the pin1 is originally connected to only +5v dc power supply. The embodiment of the application is additionally provided with the OTA download identification circuit shown in figure 1, and when the Ethernet interface terminal J1 is not connected with any interface, the output end BOOT0 of the OTA download identification circuit defaults to be low level. After the Ethernet interface terminal J1 is connected to an OTA downloading line, the first pin1 is pulled down, the output end BOOT0 of the OTA downloading identification circuit is pulled up, and when the processor detects that the signal is effective, the signal is identified as OTA downloading and enters a serial port downloading mode.
As shown in fig. 2, the connection circuit of the RS485 communicator U3 is shown in fig. 2, pin2 of the ethernet interface terminal J1 is connected to the second end of the inductor L1 through the data bus a, the first end of the inductor L1, the first end of the capacitor C10, the second end of the resistor R9, the first end of the capacitor C11 is connected to the slave data interface a of the RS485 communicator U3, the first end of the resistor R9 is connected to the +5v dc power supply, the first end of the capacitor C10 is grounded, pin7 of the ethernet interface terminal is connected to the second end of the inductor L2 through the data bus B, the first end of the inductor L2, the first end of the capacitor C9, the second end of the capacitor C11, the first end of the resistor R10 is connected to the slave data interface B of the RS485 communicator U3, and the second end of the resistor R10 is grounded to the second end of the capacitor C9. The host end data interface D of the RS485 communicator U3 is connected with the second end of the resistor R3, the first end of the capacitor R3 and the second end of the capacitor R7 are connected with the data transmission interface TXD of the processor, the host end data interface R of the RS485 communicator U3 is connected with the second end of the resistor R8 and the input end of the inverter U1, the first end of the resistor R8 is connected with a +5V direct current power supply, the output end of the inverter U1 is connected with the input end of the inverter U2, and the output end of the inverter U2 is connected with the data receiving interface RXD of the processor through the resistor R4.
Because the data is low-level effective in the bus communication of the RS485 communicator U3, after receiving the OTA download identification signal, the processor inputs an enabling signal RTS into receiving enabling ends RE and DE of the RS485 communicator U3 through an RS485 enabling circuit (an inverter circuit consisting of an inverter U2 and a resistor R6), so that the RS485 communicator U3 enters a receiving mode, and software updating can be completed through receiving a program burning signal through an AB data bus, and the whole process does not need to disassemble an equipment case.
In order to save the space of the board card and adapt to the miniaturization trend of equipment, because the RS485 communicator is commonly used for being in communication connection with external communication equipment, the RS485 communicator used for external communication can be multiplexed into the RS485 communicator U3 used for program burning. On the basis of the above embodiment, the RS 485-based program burning circuit provided by the embodiment of the present application further includes an external communication identification circuit;
The input end of the external communication identification circuit is connected with a second pin triggered by the connection of the external communication equipment in the Ethernet interface terminal J1, the output end of the external communication identification circuit is connected with an external communication identification signal receiving end of the processor, and the external communication identification circuit is used for outputting different levels when the Ethernet interface terminal J1 is connected with the external communication equipment and when the Ethernet interface terminal J1 is not connected with the external communication equipment.
In a specific implementation, as shown in fig. 1, the external communication identification circuit may specifically include a fourth resistor R1, a fifth resistor R2, and a first capacitor C2;
The first end of the fourth resistor R1 is grounded, the second end of the fourth resistor R1 and the first end of the fifth resistor R2 are connected with the second pin, the second end of the fifth resistor R2 and the first end of the first capacitor C2 are connected with an external communication identification signal receiving end of the processor, and the second end of the first capacitor C2 is grounded.
The ethernet interface terminal J1 is for example RJ45, the second pin defined herein is pin8 of RJ 45. When the external communication equipment is accessed, pin8 of RJ45 is pulled high, and after the external communication identification signal receiving end of the processor receives the signal RJ45_SEL and identifies that the signal is valid, the signal is confirmed to be external communication.
Based on the RS 485-based program burning circuit provided by the embodiment of the present application, when the RS485 communicator U3 is in the receiving mode and the processor transmits the data signal TXD to be high level by default, the RS485 communicator U3 enables the signal RTS to be low level, and for receiving the enabling, the data on the AB data bus is converted into the processor receiving signal RXD by the RS485 communicator U3 and sent to the processor.
In the RS485 transmission mode, TXD is a data signal, and RTS is a data signal with a high-low level change. The RS485 communicator U3 will switch between transmit and receive modes. Note that in RS485 communication, data is low-efficient. When TXD is low, RTS is high, at which time RS485 communicator U3 sends an enable, and the TXD data signal is transmitted through RS485 communicator U3 onto the AB data bus. When TXD is high, RTS is low, and RS485 communicator U3 enters a receive mode, but is now in a transmit mode for the processor, and no data is received, so the received data will not cause a false disturbance to the processor.
Various embodiments corresponding to the RS485 based programming circuit are described above in detail, based on which, the application also discloses an RS 485-based program burning method corresponding to the RS 485-based program burning circuit.
Based on a processor, the program burning method based on RS485 provided by the embodiment of the application comprises the following steps:
When the OTA download identification signal receiving end of the processor receives the level representing the OTA download identification signal output by the OTA download identification circuit, transmitting an enabling signal through the RS485 enabling circuit through the data transmitting interface of the processor to activate the receiving enabling of the RS485 communicator;
receiving a program burning signal of an RS485 data bus through an RS485 communicator;
The OTA download identification signal receiving end of the processor is connected with the output end of the OTA download identification circuit, the input end of the OTA download identification circuit is connected with a first pin triggered by the connection of an OTA download line in an Ethernet interface terminal, a data pin in the Ethernet interface terminal is connected with a slave computer end data interface of the RS485 communicator, and a host computer end data interface of the RS485 communicator is correspondingly connected with a data transmitting interface of the processor and a data receiving interface of the processor;
The RS485 enabling circuit is an inverter circuit, the input end of the RS485 enabling circuit is connected with the data transmission interface of the processor, and the output end of the RS485 enabling circuit is connected with the receiving enabling end of the RS485 communicator;
the OTA download identification circuit is used for outputting different levels when the Ethernet interface terminal is connected with the OTA download line and when the Ethernet interface terminal is not connected with the OTA download line.
In a specific implementation, the OTA download identifying circuit may specifically include a first resistor, a second resistor, a third resistor, and a first triode;
The first end of the first resistor is connected with the first pin, the second end of the first resistor is connected with the base electrode of the first triode, the collector electrode of the first triode, the second end of the second resistor is connected with the first end of the third resistor, the first end of the second resistor is connected with the first direct current power supply, the second end of the third resistor is connected with the OTA download identification signal receiving end of the processor, and the emitter electrode of the first triode is grounded.
Further, the RS 485-based program burning method provided by the embodiment of the present application may further include:
When the external communication identification signal receiving end of the processor receives the level of the external communication identification circuit output representation Ethernet interface terminal access external communication equipment, controlling the RS485 communicator to enter an external communication mode;
The input end of the external communication identification circuit is connected with a second pin triggered by the connection of the external communication equipment in the Ethernet interface terminal, the output end of the external communication identification circuit is connected with an external communication identification signal receiving end of the processor, and the external communication identification circuit is used for outputting different levels when the Ethernet interface terminal is connected with the external communication equipment and when the Ethernet interface terminal is not connected with the external communication equipment.
In a specific implementation, the external communication identification circuit specifically comprises a fourth resistor, a fifth resistor and a first capacitor;
The first end of the fourth resistor is grounded, the second end of the fourth resistor and the first end of the fifth resistor are connected with the second pin, the second end of the fifth resistor and the first end of the first capacitor are connected with an external communication identification signal receiving end of the processor, and the second end of the first capacitor is grounded.
Since the embodiment of the RS 485-based program recording method portion corresponds to the embodiment of the RS 485-based program recording circuit portion, the embodiment of the RS 485-based program recording method portion is referred to the description of the embodiment of the RS 485-based program recording circuit portion, and is not repeated herein.
The program burning circuit and the program burning method based on RS485 provided by the application are described in detail. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the program writing method based on the RS485 disclosed in the embodiment, since the method corresponds to the program writing circuit based on the RS485 disclosed in the embodiment, the description is relatively simple, and the relevant points are only needed to be described by referring to the program writing circuit part based on the RS 485. It should be noted that it will be apparent to those skilled in the art that various modifications and adaptations of the application can be made without departing from the principles of the application and these modifications and adaptations are intended to be within the scope of the application as defined in the following claims.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.

Claims (6)

1.一种基于RS485的程序烧录电路,其特征在于,包括:以太网接口端子,OTA下载识别电路,RS485通信器和RS485使能电路;1. A program burning circuit based on RS485, characterized in that it includes: an Ethernet interface terminal, an OTA download identification circuit, an RS485 communicator and an RS485 enabling circuit; 其中,所述以太网接口端子中受OTA下载线连接后触发的第一引脚与所述OTA下载识别电路的输入端连接,所述OTA下载识别电路的输出端与处理器的OTA下载识别信号接收端连接,所述以太网接口端子中的数据引脚与所述RS485通信器的从机端数据接口连接,所述RS485通信器的主机端数据接口与所述处理器的数据发送接口和所述处理器的数据接收接口对应连接;Among them, the first pin in the Ethernet interface terminal that is triggered by the connection of the OTA download line is connected to the input end of the OTA download identification circuit, the output end of the OTA download identification circuit is connected to the OTA download identification signal receiving end of the processor, the data pin in the Ethernet interface terminal is connected to the slave-end data interface of the RS485 communicator, and the host-end data interface of the RS485 communicator is correspondingly connected to the data sending interface of the processor and the data receiving interface of the processor; 所述RS485使能电路为反相器电路,所述RS485使能电路的输入端与所述处理器的数据发送接口连接,所述RS485使能电路的输出端与所述RS485通信器的接收使能端连接;The RS485 enabling circuit is an inverter circuit, the input end of the RS485 enabling circuit is connected to the data transmission interface of the processor, and the output end of the RS485 enabling circuit is connected to the receiving enabling end of the RS485 communicator; 所述OTA下载识别电路用于在所述以太网接口端子接入所述OTA下载线时和所述以太网接口端子未接入所述OTA下载线时输出不同的电平,以使所述处理器在接收到所述OTA下载识别电路输出表征OTA下载识别信号的电平后、通过所述RS485使能电路使能所述RS485通信器,以利用所述RS485通信器和所述OTA下载线接收程序烧录信号;The OTA download identification circuit is used to output different levels when the Ethernet interface terminal is connected to the OTA download line and when the Ethernet interface terminal is not connected to the OTA download line, so that the processor enables the RS485 communicator through the RS485 enabling circuit after receiving the level representing the OTA download identification signal output by the OTA download identification circuit, so as to use the RS485 communicator and the OTA download line to receive the program burning signal; 所述OTA下载识别电路具体包括第一电阻、第二电阻、第三电阻和第一三极管;The OTA download identification circuit specifically includes a first resistor, a second resistor, a third resistor and a first transistor; 其中,所述第一电阻的第一端与所述第一引脚连接,所述第一电阻的第二端与所述第一三极管的基极连接,所述第一三极管的集电极、所述第二电阻的第二端与所述第三电阻的第一端连接,所述第二电阻的第一端与第一直流电源连接,所述第三电阻的第二端与所述处理器的OTA下载识别信号接收端连接,所述第一三极管的发射极接地。Among them, the first end of the first resistor is connected to the first pin, the second end of the first resistor is connected to the base of the first transistor, the collector of the first transistor and the second end of the second resistor are connected to the first end of the third resistor, the first end of the second resistor is connected to the first DC power supply, the second end of the third resistor is connected to the OTA download identification signal receiving end of the processor, and the emitter of the first transistor is grounded. 2.根据权利要求1所述的程序烧录电路,其特征在于,还包括外部通信识别电路;2. The program burning circuit according to claim 1, characterized in that it also includes an external communication identification circuit; 其中,所述外部通信识别电路的输入端与所述以太网接口端子中受外部通信设备连接后触发的第二引脚连接,所述外部通信识别电路的输出端与所述处理器的外部通信识别信号接收端连接;所述外部通信识别电路用于在所述以太网接口端子接入外部通信设备时和所述以太网接口端子未接入所述外部通信设备时输出不同的电平。Among them, the input end of the external communication identification circuit is connected to the second pin of the Ethernet interface terminal that is triggered after the external communication device is connected, and the output end of the external communication identification circuit is connected to the external communication identification signal receiving end of the processor; the external communication identification circuit is used to output different levels when the Ethernet interface terminal is connected to the external communication device and when the Ethernet interface terminal is not connected to the external communication device. 3.根据权利要求2所述的程序烧录电路,其特征在于,所述外部通信识别电路具体包括第四电阻、第五电阻和第一电容;3. The program burning circuit according to claim 2, characterized in that the external communication identification circuit specifically comprises a fourth resistor, a fifth resistor and a first capacitor; 其中,所述第四电阻的第一端接地,所述第四电阻的第二端、所述第五电阻的第一端与所述第二引脚连接,所述第五电阻的第二端、所述第一电容的第一端与所述处理器的外部通信识别信号接收端连接,所述第一电容的第二端接地。Among them, the first end of the fourth resistor is grounded, the second end of the fourth resistor and the first end of the fifth resistor are connected to the second pin, the second end of the fifth resistor and the first end of the first capacitor are connected to the external communication identification signal receiving end of the processor, and the second end of the first capacitor is grounded. 4.一种基于RS485的程序烧录方法,其特征在于,基于处理器,包括:4. A program burning method based on RS485, characterized in that it is based on a processor and includes: 当所述处理器的OTA下载识别信号接收端接收到OTA下载识别电路输出表征OTA下载识别信号的电平后,通过所述处理器的数据发送接口经由RS485使能电路发送使能信号激活RS485通信器的接收使能;When the OTA download identification signal receiving end of the processor receives the level of the OTA download identification signal output by the OTA download identification circuit, an enable signal is sent through the data transmission interface of the processor via the RS485 enabling circuit to activate the receiving enable of the RS485 communicator; 通过所述RS485通信器接收RS485数据总线的程序烧录信号;Receive the program burning signal of RS485 data bus through the RS485 communicator; 其中,所述处理器的OTA下载识别信号接收端与所述OTA下载识别电路的输出端连接,所述OTA下载识别电路的输入端与以太网接口端子中受OTA下载线连接后触发的第一引脚连接,所述以太网接口端子中的数据引脚与所述RS485通信器的从机端数据接口连接,所述RS485通信器的主机端数据接口与所述处理器的数据发送接口和所述处理器的数据接收接口对应连接;Wherein, the OTA download identification signal receiving end of the processor is connected to the output end of the OTA download identification circuit, the input end of the OTA download identification circuit is connected to the first pin in the Ethernet interface terminal that is triggered after the OTA download line is connected, the data pin in the Ethernet interface terminal is connected to the slave-end data interface of the RS485 communicator, and the host-end data interface of the RS485 communicator is correspondingly connected to the data sending interface of the processor and the data receiving interface of the processor; 所述RS485使能电路为反相器电路,所述RS485使能电路的输入端与所述处理器的数据发送接口连接,所述RS485使能电路的输出端与所述RS485通信器的接收使能端连接;The RS485 enabling circuit is an inverter circuit, the input end of the RS485 enabling circuit is connected to the data transmission interface of the processor, and the output end of the RS485 enabling circuit is connected to the receiving enabling end of the RS485 communicator; 所述OTA下载识别电路用于在所述以太网接口端子接入所述OTA下载线时和所述以太网接口端子未接入所述OTA下载线时输出不同的电平;The OTA download identification circuit is used to output different electrical levels when the Ethernet interface terminal is connected to the OTA download line and when the Ethernet interface terminal is not connected to the OTA download line; 所述OTA下载识别电路具体包括第一电阻、第二电阻、第三电阻和第一三极管;The OTA download identification circuit specifically includes a first resistor, a second resistor, a third resistor and a first transistor; 其中,所述第一电阻的第一端与所述第一引脚连接,所述第一电阻的第二端与所述第一三极管的基极连接,所述第一三极管的集电极、所述第二电阻的第二端与所述第三电阻的第一端连接,所述第二电阻的第一端与第一直流电源连接,所述第三电阻的第二端与所述处理器的OTA下载识别信号接收端连接,所述第一三极管的发射极接地。Among them, the first end of the first resistor is connected to the first pin, the second end of the first resistor is connected to the base of the first transistor, the collector of the first transistor and the second end of the second resistor are connected to the first end of the third resistor, the first end of the second resistor is connected to the first DC power supply, the second end of the third resistor is connected to the OTA download identification signal receiving end of the processor, and the emitter of the first transistor is grounded. 5.根据权利要求4所述的程序烧录方法,其特征在于,还包括:5. The program burning method according to claim 4, further comprising: 当所述处理器的外部通信识别信号接收端接收到外部通信识别电路输出表征所述以太网接口端子接入外部通信设备的电平时,控制所述RS485通信器进入外部通信模式;When the external communication identification signal receiving end of the processor receives the level output by the external communication identification circuit indicating that the Ethernet interface terminal is connected to the external communication device, the RS485 communicator is controlled to enter the external communication mode; 其中,所述外部通信识别电路的输入端与所述以太网接口端子中受所述外部通信设备连接后触发的第二引脚连接,所述外部通信识别电路的输出端与所述处理器的外部通信识别信号接收端连接;所述外部通信识别电路用于在所述以太网接口端子接入所述外部通信设备时和所述以太网接口端子未接入所述外部通信设备时输出不同的电平。Among them, the input end of the external communication identification circuit is connected to the second pin of the Ethernet interface terminal that is triggered after the external communication device is connected, and the output end of the external communication identification circuit is connected to the external communication identification signal receiving end of the processor; the external communication identification circuit is used to output different levels when the Ethernet interface terminal is connected to the external communication device and when the Ethernet interface terminal is not connected to the external communication device. 6.根据权利要求5所述的程序烧录方法,其特征在于,所述外部通信识别电路具体包括第四电阻、第五电阻和第一电容;6. The program burning method according to claim 5, characterized in that the external communication identification circuit specifically comprises a fourth resistor, a fifth resistor and a first capacitor; 其中,所述第四电阻的第一端接地,所述第四电阻的第二端、所述第五电阻的第一端与所述第二引脚连接,所述第五电阻的第二端、所述第一电容的第一端与所述处理器的外部通信识别信号接收端连接,所述第一电容的第二端接地。Among them, the first end of the fourth resistor is grounded, the second end of the fourth resistor and the first end of the fifth resistor are connected to the second pin, the second end of the fifth resistor and the first end of the first capacitor are connected to the external communication identification signal receiving end of the processor, and the second end of the first capacitor is grounded.
CN202111283273.8A 2021-11-01 2021-11-01 A program burning circuit and program burning method based on RS485 Active CN114020284B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111283273.8A CN114020284B (en) 2021-11-01 2021-11-01 A program burning circuit and program burning method based on RS485

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111283273.8A CN114020284B (en) 2021-11-01 2021-11-01 A program burning circuit and program burning method based on RS485

Publications (2)

Publication Number Publication Date
CN114020284A CN114020284A (en) 2022-02-08
CN114020284B true CN114020284B (en) 2025-07-04

Family

ID=80059299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111283273.8A Active CN114020284B (en) 2021-11-01 2021-11-01 A program burning circuit and program burning method based on RS485

Country Status (1)

Country Link
CN (1) CN114020284B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202677376U (en) * 2012-06-28 2013-01-16 浙江中自机电控制技术有限公司 Device for downloading chip programs
CN111884654A (en) * 2020-07-08 2020-11-03 中山市金马科技娱乐设备股份有限公司 Digital factory data acquisition terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202917181U (en) * 2012-11-14 2013-05-01 安徽安凯汽车股份有限公司 External watchdog and program burn coexisting circuit
CN204256449U (en) * 2014-12-23 2015-04-08 哈尔滨中创电气技术有限公司 An online programming and debugging circuit for smart capacitors

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202677376U (en) * 2012-06-28 2013-01-16 浙江中自机电控制技术有限公司 Device for downloading chip programs
CN111884654A (en) * 2020-07-08 2020-11-03 中山市金马科技娱乐设备股份有限公司 Digital factory data acquisition terminal

Also Published As

Publication number Publication date
CN114020284A (en) 2022-02-08

Similar Documents

Publication Publication Date Title
EP1233538A2 (en) Power line communications system
WO2008014647A1 (en) A maintenance method for the capability management object, capability management method, the system and the terminal thereof
JP2009005410A (en) Multi-function modem including external memory adapter
WO2010145288A1 (en) Wireless access platform, system and method of equipment upgrade management
WO2020228040A1 (en) Smart home system control method and apparatus, electronic device and storage medium
CN108347719B (en) Bluetooth device connection method, device, storage medium, mobile terminal and server
CN104657690A (en) External equipment control method and device
CN110069288B (en) USB equipment sharing method, device and system
CN107979515A (en) A control method, terminal device, and storage medium of a smart home appliance
CN108199931A (en) A kind of household electric appliance control method and system
CN114020284B (en) A program burning circuit and program burning method based on RS485
CN103369514A (en) System refreshing method and system applicable to mobile terminals of different models
CN204633817U (en) A kind of remote desktop control system
CN118524377B (en) ESIM card data remote updating and handshaking method based on APN-free configuration
CN113849213A (en) OTA (over the air) upgrading system and method of edge device
CN113411531B (en) Video transmission device
JP4591740B2 (en) Software license management method
CN105205022B (en) A kind of more Console port collocation methods and system
CN113613045B (en) Bluetooth peripheral upgrading method and device, terminal equipment and storage medium
CN117667150A (en) PD fast charge control circuit supporting upgrade of MCU firmware and method thereof
CN110784240B (en) Wireless data communication module and method
WO2013166758A1 (en) Method for configuring maximum transmission unit (mtu), terminal and usb data card
CN111786837A (en) System and method for wirelessly modifying configuration parameters of KNX (Konnex) equipment
JP2007279834A (en) Authentication system and authentication method
EP1714508B1 (en) A method for configuring an electronic device

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
GR01 Patent grant
GR01 Patent grant