CN111352638B - Multifunctional cascading offline burning method and system - Google Patents

Multifunctional cascading offline burning method and system Download PDF

Info

Publication number
CN111352638B
CN111352638B CN202010147106.XA CN202010147106A CN111352638B CN 111352638 B CN111352638 B CN 111352638B CN 202010147106 A CN202010147106 A CN 202010147106A CN 111352638 B CN111352638 B CN 111352638B
Authority
CN
China
Prior art keywords
cascade
bus
host
slave
offline
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
CN202010147106.XA
Other languages
Chinese (zh)
Other versions
CN111352638A (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.)
Guangzhou Xingyi Electronic Technology Co ltd
Original Assignee
Guangzhou Xingyi Electronic 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 Guangzhou Xingyi Electronic Technology Co ltd filed Critical Guangzhou Xingyi Electronic Technology Co ltd
Priority to CN202010147106.XA priority Critical patent/CN111352638B/en
Publication of CN111352638A publication Critical patent/CN111352638A/en
Application granted granted Critical
Publication of CN111352638B publication Critical patent/CN111352638B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Abstract

The invention discloses a multifunctional cascade offline burning method and system, comprising a cascade bus, a cascade host and a cascade slave, wherein the cascade host and the cascade slave are connected through the cascade bus, and the cascade host and a plurality of cascade slave are mounted on the cascade bus, so that the cascade host and the cascade slave can exchange data. In order to expand the functions of the offline recorder, the invention adds an expansion type cascade bus under the condition of keeping the original complete functions of the offline recorder, and adds the following functions for the offline recorder: the function of performing burning on the multipath chips by using the offline burner with corresponding ID on the cascade bus control bus is realized; the method comprises the steps of controlling an offline writer on a bus to write user data from the bus to a target chip through the cascade bus, and controlling the offline writer to read appointed data in the target chip and return the appointed data to the bus for user application.

Description

Multifunctional cascading offline burning method and system
Technical Field
The invention relates to the technical field of electronics, in particular to a multifunctional cascade offline burning method and system.
Background
The function of the off-line recorder is to configure the code data needed by the user to be recorded in the target chip into the off-line recorder for storage through configuration software of the PC end, and then the off-line recorder can be separated from the PC to realize a high-efficiency chip recording tool of the off-line recording chip.
The traditional offline writer has single function, only stores the user firmware in the offline downloading device, burns the user firmware into the target chip according to the pre-configured parameters, has limited functions and realizes one-way programming; in some application scenarios where multiple users need to burn and record custom data in parallel and secondarily extend to an automatic burning machine, the user requirements cannot be met.
Disclosure of Invention
The invention aims to provide a multifunctional cascade offline burning method and system, which solve one or more of the problems in the prior art.
According to one aspect of the present invention, as shown in fig. 2, when a cascade host controls a cascade slave with a specified ID to perform a recording, the cascade host sends a command containing the ID to perform the recording onto a cascade bus, the cascade slave corresponding to the ID replies a response signal immediately after receiving the command, marks itself as a busy state, then takes out user firmware stored in the current slave and records it into a target chip, marks itself as an idle state after the recording is completed, and when the cascade slave performs the recording, the cascade host periodically sends a command to inquire the state of the cascade slave with the specified ID, and considers that the recording is completed when the recording state is found as the idle state.
In some embodiments, as shown in fig. 3, when the cascade host needs to read data in the chip connected with the cascade slave of the designated ID, the cascade host sends a command containing the ID and intended to read data in a certain address range to the cascade bus, and after receiving the command, the cascade slave of the corresponding ID responds to the cascade host within a limited time and returns the read data to the cascade bus.
In some embodiments, as shown in fig. 4, when the cascade host needs to write data into the chip connected with the cascade slave of the specified ID, the cascade host sends a command containing the ID and intended to write a piece of data into a certain address range to the cascade bus, the cascade slave of the corresponding ID replies a response signal immediately after receiving the command, marks the local as busy state, then burns the received data from the cascade bus into the target chip, marks the local as idle after completing the burning, and when the slave executes the burning, the cascade host periodically sends a command to inquire the state of the cascade slave of the specified ID, and considers the burning to be ended when the burning state is found to be idle.
In some embodiments, when the cascade master needs to control the cascade slaves on the cascade bus to implement multi-path recording, only the cascade slaves that include the plurality of cascade slaves ID and that are to execute the recording command need to be sent to the cascade bus, and the corresponding cascade slaves start recording synchronously.
According to one aspect of the invention, a multi-functional cascading off-line burning method comprises the following steps: the cascade host and the cascade slaves are connected through the cascade bus, the cascade host and the cascade slaves are mounted on the cascade bus, the cascade host and each cascade slave can exchange data, and the cascade host controls the cascade slaves to burn or read and write chips.
In some embodiments, the cascade master is set as an offline burner in a master mode, upper computer software or an open device based on an open protocol, and the cascade slave is set as an offline burner device controlled by a cascade master in a slave mode, and usually, a plurality of cascade slaves with different IDs can be mounted on one bus, and the maximum number depends on the requirements of specific embodiments and the choice of the underlying communication mode.
In some embodiments, the cascade bus is a communication line for data exchange between all on-line devices, and a communication medium of the communication line may be a tangible cable or a radio wave, which depends on the choice of an underlying communication mode in implementation.
In some embodiments, the cascade master controls the cascade slaves of a specified ID to perform a burn or the master reads data inside the chip of the slave connection of the specified ID or the master needs to write data to the chip of the slave connection of the specified ID.
In some embodiments, the cascade host may be an offline burner set in a host mode, an upper computer software, and a device developed by a user based on our open protocol for controlling the slave installed on the cascade bus.
The multifunctional cascading scheme of the off-line burner has the beneficial effects that: the function of the offline recorder is expanded, an expansion type cascade bus is added under the condition of keeping the original complete function of the offline recorder, the following functions (1) are added for the offline recorder, the user is allowed to expand based on the offline downloading device, and the function of one-to-many recording chips is realized; (2) The user can realize the function of self-defining reading and writing of the chip to be burned through the off-line burner.
Drawings
FIG. 1 is a schematic diagram of a master, bus, slave connection according to one embodiment of the present invention;
FIG. 2 is a schematic diagram of the connection of the host software, 485 bus, and offline burner according to one embodiment of the invention;
FIG. 3 is a flowchart of a master controlling a slave to perform recording according to an embodiment of the present invention;
FIG. 4 is a flow chart of a host-to-slave chip data read according to an embodiment of the present invention;
FIG. 5 is a flow chart of a host to slave chip data writing according to an embodiment of the present invention.
Detailed Description
Example 1
The present embodiment will be described in further detail with reference to examples and drawings, but the embodiment of the present embodiment is not limited thereto.
As shown in fig. 1-2, a multifunctional cascade manner implemented through a 485 bus comprises the following specific steps:
the embodiment consists of three parts, wherein one part is a 485 bus, and the 485 bus is used as a data exchange place of the scheme and is called as a 485 bus; secondly, PC end upper computer software is "positive point atom P100 off-line burner multifunctional cascade upper computer software V1.0", which is used as a main control unit of the scheme and is called "upper computer software"; thirdly, the positive point atom P100 off-line burner set to 485 slave mode is used as a controlled unit of the scheme and is called as an off-line burner.
The upper computer software used in the embodiment is written by using C# and runs on a Windows platform. The upper computer software realizes the three-point functions by calling a COM port to realize receiving and transmitting commands. The upper computer software is used for controlling the offline burner mounted on the cascade bus by sending instructions to the 485 bus, and mainly realizes the following three-point function:
(1) Triggering the off-line burner to burn the user data stored in the off-line burner into the target chip;
(2) Controlling an offline burner to burn data sent to a 485 bus by upper computer software into a target chip;
(3) The off-line burner is controlled to read data from the target chip and return the data to 485 bus for use by upper computer software;
the cascade bus is connected to the COM port of the PC to realize data exchange with the 485 bus, the offline burner triggering the specified ID can be selected to burn or all offline burners on the bus can be triggered to burn in the cascade function configuration and the execution operation type, and clicking the button for executing burning triggers the offline burner to execute one-time burning action according to the configuration.
When the 'burning parameter configuration- > only burning the internal mirror image of the offline burning device' is selected, and the off-line burning device is triggered to burn, the upper computer does not send a user-defined data burning related instruction to the 485 bus, and when the 'burning parameter configuration- > burning the internal mirror image of the offline burning device + the user-defined data' is selected, the user-defined data configured by the user is burned after the internal mirror image of the offline burning device is burnt. The configuration of the ' burning parameter configuration- > user-defined burning data burning configuration- > burning start address (Hex) is the start address of the data needing to be burnt by the offline burner to the target chip, the ' burning parameter configuration- > user-defined burning data burning configuration- > burning data source ' can select the source of the data needing to be burnt by the user in a cascading mode, the burning data has three sources, namely, the data is sourced from the data directly input by the user on the upper computer, the files added by the user are sourced from the user, and the user can select the data source according to the actual requirements.
The offline writer used in the embodiment is a positive atom P100 offline writer, and the offline writer has an offline writing function of storing the program file of the user and writing the program of the user into the chip. The offline burner is provided with a serial port UART which is led out for expansion use, so that the function of a 485 slave is realized by updating the code in the offline burner, and the external 485 transceiver can access a 485 bus.
The 485 bus adopts a half duplex working mode, supports multi-point data communication, adopts balanced transmission and differential reception, and therefore has the capacity of inhibiting common mode interference. In addition, the bus transceiver has high sensitivity and can detect voltages as low as 200mv, so that transmission signals can be recovered beyond kilometers, and a 485 bus is selected as the bus form of the embodiment. The 485 bus comprises a transmission cable and a plurality of 485 bus transceivers, the upper computer software converts a COM port signal selected on the PC into an RS485 signal to access the 485 bus through a USB converter designed on the basis of an FT232 chip at a USB port connection positive point atomic team of the PC to realize data exchange, and the offline burner accesses the 485 bus through a 485 transceiver module designed on the basis of the RS3485 chip to realize data exchange.
As shown in fig. 3, when the upper computer software needs to control the offline writer with the specified ID to perform writing, the upper computer sends a command for performing writing, which includes the ID, to the 485 bus through the 485 bus transceiver, the offline writer with the corresponding ID immediately replies a response signal after receiving the command, marks the local as busy state, then takes out the user firmware stored in the current offline writer to write into the target chip, and marks the local as idle after writing is completed. When the offline recorder executes recording, the upper computer software periodically transmits a command to inquire the state of the offline recorder with the specified ID, and when the state of the offline recorder is found to be idle, the recording is considered to be finished.
As shown in fig. 4, when the upper computer software needs to read the data in the chip connected with the offline writer with the specified ID, the upper computer software sends a command containing the ID and intended to read the data in a certain address range to the 485 bus, and the offline writer with the corresponding ID responds to the upper computer software within a limited time after receiving the command and returns the read data to the 485 bus.
As shown in fig. 5, when the upper computer software needs to write data into the chip connected with the offline writer with the specified ID, the upper computer software sends a command containing the ID to write a segment of data into a certain address range to the 485 bus, the offline writer with the corresponding ID immediately replies a response signal after receiving the command, marks the local as busy state, then writes the received data from the 485 bus into the target chip, marks the local as idle after completing the writing, and periodically sends a command to inquire the state of the offline writer with the specified ID when the offline writer executes the writing, and considers the writing to be ended when the writing state is found to be idle.
When the upper computer software needs to control the offline writers on the 485 bus to realize multi-path writing, the corresponding offline writers can synchronously start writing only by respectively sending the command which contains a plurality of offline writer IDs and is meant to execute writing to the 485 bus.
The foregoing is merely a preferred embodiment of the present invention, and it should be noted that it will be apparent to those skilled in the art that several similar modifications and improvements can be made without departing from the inventive concept, and these should also be considered as being within the scope of the present invention.

Claims (5)

1. A multifunctional cascade off-line burning method is characterized in that: when the cascade host controls the cascade slave with the appointed ID to execute the programming, the program to be programmed is positioned in the offline programming device, the upper computer software or the target chip; the cascade host sends a command which contains the ID and is intended to execute the programming to a cascade bus, the cascade slave corresponding to the ID immediately replies a response signal after receiving the command, acquires a corresponding target program from the cascade bus according to a programming instruction, marks the local as a busy state, then takes out user firmware stored in the current slave to be programmed into a target chip, marks the local as idle after the programming is completed, and periodically sends a command to inquire the state of the cascade slave which is designated with the ID when the cascade slave executes the programming, and considers the programming to be ended when the programming state is found to be idle;
when the cascade host computer respectively sends a plurality of cascade slave computer IDs and commands for executing burning to the cascade bus, each cascade slave computer is provided with an offline burning device; the corresponding cascade slave synchronously starts burning, so that the cascade master controls the cascade slave on the cascade bus to perform multi-path burning;
when the cascade host needs to read data in a chip connected with the cascade slave of the appointed ID, the cascade host sends a command which contains the ID and is used for reading data in a certain address range to the cascade bus, and the cascade slave corresponding to the ID responds to the cascade host within a limited time after receiving the command and returns the read data to the cascade bus;
when the cascade host computer needs to write data into the chips connected with the cascade slaves with the appointed ID, the cascade host computer sends a command which contains the ID and is used for writing one section of data into a certain address range to the cascade bus, the cascade slaves corresponding to the ID immediately reply a response signal after receiving the command and mark the local as a busy state, then the received data from the cascade bus is burnt into a target chip, the local state is marked as idle after the burning is finished, and when the slave computer executes the burning, the cascade host computer periodically sends a command to inquire the state of the cascade slaves with the appointed ID, and when the burning state is found to be idle, the burning is considered to be ended.
2. An offline programming system of a multi-functional cascade, wherein the offline programming system performs an offline programming method of a multi-functional cascade as claimed in claim 1; comprising the following steps: the cascade host and the cascade slaves are connected through the cascade bus, the cascade host and the cascade slaves are mounted on the cascade bus, the cascade host and each cascade slave can exchange data, and the cascade host controls the cascade slaves to burn or read and write chips;
the cascade host is set as an offline burner, upper computer software or open equipment based on an open protocol in a host mode, the cascade slave is set as an offline burner equipment which is in a slave mode and is controlled by the cascade host, and a plurality of cascade slaves with different IDs are generally mounted on one bus, wherein the maximum number depends on the requirements of specific embodiments and the selection of a bottom communication mode.
3. The multi-functional cascade offline programming system of claim 2, wherein: the cascade bus is a communication line for data exchange of all on-line devices, and the communication medium of the communication line is a tangible cable or a radio wave depending on the choice of the underlying communication mode in implementation.
4. The multi-functional cascade offline programming system of claim 2, wherein: the cascade host controls the cascade slave of the appointed ID to perform burning or the host reads data in a chip connected with the slave of the appointed ID or the host needs to write data into the chip connected with the slave of the appointed ID.
5. The system of claim 2, wherein the cascade host is an offline burner set in a host mode, or an upper computer software, or a device developed by a user based on an open protocol, for controlling a slave mounted on the cascade bus.
CN202010147106.XA 2020-03-05 2020-03-05 Multifunctional cascading offline burning method and system Active CN111352638B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010147106.XA CN111352638B (en) 2020-03-05 2020-03-05 Multifunctional cascading offline burning method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010147106.XA CN111352638B (en) 2020-03-05 2020-03-05 Multifunctional cascading offline burning method and system

Publications (2)

Publication Number Publication Date
CN111352638A CN111352638A (en) 2020-06-30
CN111352638B true CN111352638B (en) 2023-11-24

Family

ID=71197327

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010147106.XA Active CN111352638B (en) 2020-03-05 2020-03-05 Multifunctional cascading offline burning method and system

Country Status (1)

Country Link
CN (1) CN111352638B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834619A (en) * 2015-04-29 2015-08-12 小鸟科技有限公司 I2C (Inter-Integrated Circuit) bus circuit, implementation method and electronic equipment
CN105607939A (en) * 2015-12-30 2016-05-25 漳州科能电器有限公司 Programming system and programming method thereof
CN205334453U (en) * 2015-12-30 2016-06-22 漳州科能电器有限公司 Burn record system
CN105760186A (en) * 2015-12-31 2016-07-13 北京兆易创新科技股份有限公司 Expandable modular multi-channel off-line programmer
CN107977212A (en) * 2017-12-08 2018-05-01 延锋伟世通电子科技(南京)有限公司 Support the high speed cd-rom recorder of multiple communication modes
CN208654779U (en) * 2018-08-02 2019-03-26 南京大石电子科技有限公司 A kind of firmware based on multiple types bus more new system offline

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834619A (en) * 2015-04-29 2015-08-12 小鸟科技有限公司 I2C (Inter-Integrated Circuit) bus circuit, implementation method and electronic equipment
CN105607939A (en) * 2015-12-30 2016-05-25 漳州科能电器有限公司 Programming system and programming method thereof
CN205334453U (en) * 2015-12-30 2016-06-22 漳州科能电器有限公司 Burn record system
CN105760186A (en) * 2015-12-31 2016-07-13 北京兆易创新科技股份有限公司 Expandable modular multi-channel off-line programmer
CN107977212A (en) * 2017-12-08 2018-05-01 延锋伟世通电子科技(南京)有限公司 Support the high speed cd-rom recorder of multiple communication modes
CN208654779U (en) * 2018-08-02 2019-03-26 南京大石电子科技有限公司 A kind of firmware based on multiple types bus more new system offline

Also Published As

Publication number Publication date
CN111352638A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
US7230943B2 (en) Wireless information processing system with wireless information recording medium and wireless information processing apparatus, and communication method therefor
CN105607939B (en) A kind of programming system and its method for burn-recording
JP2008547272A (en) Wireless application deployment, configuration and management tools
CN102163182A (en) Information processing apparatus with debugging unit and debugging method therefor
US10484198B2 (en) Function connection unit comprising a parameter memory
CN111352638B (en) Multifunctional cascading offline burning method and system
CN101359940A (en) Communication system, communication apparatus, and communication method
US6665757B1 (en) Communication interface having a master activating/deactivating a first signal with a clock signal after a predetermined time after a slave activating/deactivating the first signal
CN113377389A (en) Data processing method and device, computer readable storage medium and processor
CN110515343B (en) Communication connection device, programmable logic controller, communication method and product
CN107643989B (en) Dual-optical-fiber loop redundancy structure communication board card based on PCI bus protocol
US10656615B2 (en) PLC, network unit, CPU, and data transfer method
CN104636283B (en) System and method for USB burnings
CN111506461A (en) Bus-based back pressure module for testing and implementation method thereof
CN114253839A (en) Wireless debugging method, system and device
KR100464257B1 (en) Three step communication buffer of communication unit
KR102167621B1 (en) Data transfer apparatus using serial interface
CN215932609U (en) Burner and burning system
JP2005063335A (en) Address recognition method
CN212906270U (en) Singlechip burning module based on I2C interface
US20090312886A1 (en) Temperature controller system
KR102244297B1 (en) Plc analog module with hart pass-through interface
CN212322107U (en) Debugging tool and debugging system for multifunctional steering engine
JPS6053399B2 (en) memory control device
CN210627188U (en) Remote wireless U disk read-write system under Wi-Fi-free environment

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