CN105094886A - Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine - Google Patents

Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine Download PDF

Info

Publication number
CN105094886A
CN105094886A CN201510338796.6A CN201510338796A CN105094886A CN 105094886 A CN105094886 A CN 105094886A CN 201510338796 A CN201510338796 A CN 201510338796A CN 105094886 A CN105094886 A CN 105094886A
Authority
CN
China
Prior art keywords
uart
usb
burning
bus
converting unit
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.)
Pending
Application number
CN201510338796.6A
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.)
Shenzhen Meibeike Technology Co Ltd
Original Assignee
Shenzhen Meibeike 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 Meibeike Technology Co Ltd filed Critical Shenzhen Meibeike Technology Co Ltd
Priority to CN201510338796.6A priority Critical patent/CN105094886A/en
Publication of CN105094886A publication Critical patent/CN105094886A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The invention provides a device and a method for burning a serial number to a lower computer containing an RS (Recommended Standard) 485 bus from a PC (Personal Computer). The device comprises the PC, a burner and a lower computer, wherein the PC is provided with a burning unit and a USB (Universal Serial Bus) port; the burner comprises a USB/UART (Universal Asynchronous Receiver/Transmitter) conversion unit, a checkout unit and a first UART/RS485 conversion unit, wherein the USB/UART conversion unit, the checkout unit and the first UART/RS485 conversion unit are successively connected; the USB/UART conversion unit of the burner is connected with the USB port of the PC through a USB bus; the lower computer comprises a second UART/RS485 conversion unit and a serial number read-write unit with an I2C (Inter-Integrated Circuit) interface, wherein the UART/RS485 conversion unit and the serial number read-write unit are mutually connected; the second UART/RS485 conversion unit of the lower computer is connected with the first UART/RS485 conversion unit of the burner through the RS485 bus; and the I2C interface of the serial number read-write unit is connected with an EEPROM (Electrically Erasable Programmable Read-Only Memory) through an I2C bus. The device can burn the serial number to the lower computer containing the RS485 bus to the PC and can effectively verify whether burning is successful or not since the device is provided with a checkout program.

Description

A kind of from PC burning sequence number to the apparatus and method of the slave computer containing RS485 bus
Technical field
The invention belongs to burning program technical field, be specifically related to a kind of from PC burning sequence number to the apparatus and method of the slave computer containing RS485 bus.
Background technology
For storage class semiconductor components and devices, usually need to utilize computing machine, by serial, parallel or USB connects and the program that certain tool of arranging in pairs or groups will be write writes, and the tool used in this process is exactly CD writers or is programmable device.Such as adopt the electronic product of RS485 bus then directly can not pass through the USB port of PC directly to the electronic product burning sequence number adopting RS485 bus, because RS485 bus cannot directly communicate with the usb bus of PC, how directly could pass through the USB port of PC to the electronic product burning sequence number adopting RS485 bus, become a urgent problem.
Summary of the invention
The present invention is directed to PC directly to the problem of the slave computer burning program containing RS485 bus, to provide a kind of from PC burning sequence number to the device of the slave computer containing RS485 bus, comprising:
PC, is provided with burning unit and USB port;
Cd-rom recorder, comprise the USB/UART converting unit, verification unit and the UART/RS485 converting unit that connect successively, the USB/UART converting unit of cd-rom recorder is connected with the USB port of PC by usb bus;
Slave computer, comprise interconnective 2nd UART/RS485 converting unit and the sequence number read-write cell with I2C interface, 2nd UART/RS485 converting unit of slave computer is connected with a UART/RS485 converting unit of cd-rom recorder by RS485 bus, and the I2C interface of sequence number read-write cell is connected with EEPROM by I2C bus.
Preferably, described USB/UART converting unit adopts USB/UART conversion chip, verification unit adopts single-chip microcomputer, one UART/RS485 converting unit adopts UART/RS485 conversion chip, the UART signal that USB/UART conversion chip exports verifies through single-chip microcomputer, meet agreed specifications, be forwarded to UART/RS485 conversion chip.
Further preferably, described USB/UART converting unit adopts CP2102, and a UART/RS485 converting unit adopts MAX3485.
Preferably, the 2nd UART/RS485 converting unit adopts UART/RS485 conversion chip, and sequence number read-write cell adopts single-chip microcomputer.
Further preferably, the 2nd described UART/RS485 converting unit adopts MAX3485.
In order to solve the problem, the present invention also provides a kind of from PC burning sequence number to the method for the slave computer containing RS485 bus, and the method comprises burning program, and concrete steps are:
The sequence number of pre-burning imports in burning unit by PC;
Sequence number is transferred to the USB/UART converting unit of cd-rom recorder by burning unit in the mode of usb signal by usb bus from USB port;
USB/UART converting unit is sent to verification unit after converting usb signal to UART signal; Verification unit receives the UART signal of USB/UART converting unit, verification, the UART signal meeting agreed specifications is forwarded to a UART/RS485 converting unit, and converts RS485 signal to, then passes through the two UART/RS485 converting unit of RS485 bus transfer to slave computer; The UART signal not meeting agreed specifications does not then forward, and verification unit continues the next UART signal of wait-receiving mode;
2nd UART/RS485 converting unit is sent to sequence number read-write cell after converting RS485 signal to UART signal, and sequence number read-write cell passes through I2C bus to EEPROM writing sequence number.
The method also comprises check program, and concrete steps are:
Sequence number read-write cell reads the sequence number of EEPROM write by I2C bus, and being sent to the 2nd UART/RS485 converting unit with the form of UART signal, the 2nd UART/RS485 converting unit is back to a UART/RS485 converting unit of cd-rom recorder after converting UART signal to RS485 signal;
One UART/RS485 converting unit of cd-rom recorder is forwarded to USB/UART converting unit through verification unit after just RS485 signal converts UART signal to, and USB/UART converting unit is back to the burning unit of PC after converting UART signal to usb signal;
The sequence number of passback and the sequence number sent verify by burning unit, data consistent, display burning success; Data are inconsistent, and display burning failure also points out burning again.
Owing to have employed technique scheme, the invention has the beneficial effects as follows:
Of the present invention a kind of from PC burning sequence number to the apparatus and method of the slave computer containing RS485 bus, can not only realize from PC to the slave computer burning program containing RS485 bus, checking procedure is provided with during burning program, can judge that whether sequence number is legal, whether the sequence number not meeting agreed specifications then can not be entered slave computer by burning, can also feed back in time after burning completes, number correct by the burning unit verification sequence of PC, make burning success ratio high, there will not be the phenomenon of omission.
Accompanying drawing explanation
Fig. 1 is of the present invention from PC burning sequence number to the apparatus structure block diagram of the slave computer containing RS485 bus.
Fig. 2 is of the present invention from PC burning sequence number to the burning program process flow diagram of method of the slave computer containing RS485 bus.
Fig. 3 is of the present invention from PC burning sequence number to the check program process flow diagram of method of the slave computer containing RS485 bus.
Reference numeral: 10-PC machine, 11-burning unit, 12-USB port, 20-USB bus, 30-cd-rom recorder, 31-USB/UART converting unit, 32-verification unit, 33-the one UART/RS485 converting unit, 40-RS485 bus, 50-slave computer, 51-the 2nd UART/RS485 converting unit, 52-sequence number read-write cell, 53-EEPROM.
Embodiment
With reference to Fig. 1, of the present invention a kind of from PC burning sequence number to the device of the slave computer containing RS485 bus, comprise PC 10, cd-rom recorder 30 and slave computer 50.Be provided with burning unit 11 and USB port 12 in PC 10, burning unit 11 is that a writable program obtains burn recording software.Cd-rom recorder 30 comprises the USB/UART converting unit 31, verification unit 32 and the UART/RS485 converting unit 33 that connect successively, and the USB/UART converting unit 31 of cd-rom recorder 30 is connected with the USB port 12 of PC 10 by usb bus 20.USB/UART converting unit 31 adopts USB/UART conversion chip, specifically CP2102 can be adopted, verification unit 32 adopts single-chip microcomputer, one UART/RS485 converting unit 33 adopts UART/RS485 conversion chip, specifically can adopt MAX3485, and the UART signal that USB/UART conversion chip exports verifies through single-chip microcomputer, meet agreed specifications, be forwarded to UART/RS485 conversion chip, do not meet predetermined specifications, then continue to wait for next instruction.
Slave computer 50 comprises interconnective 2nd UART/RS485 converting unit 51 and has the sequence number read-write cell 52 of I2C interface, 2nd UART/RS485 converting unit 51 of slave computer 50 is connected with a UART/RS485 converting unit 33 of cd-rom recorder 30 by RS485 bus 40, and the I2C interface of sequence number read-write cell 52 is connected with EEPROM53 by I2C bus.2nd UART/RS485 converting unit 51 adopts UART/RS485 conversion chip, and specifically can adopt MAX3485, sequence number read-write cell 52 adopts single-chip microcomputer.
With reference to Fig. 2, the present invention also provides a kind of from PC burning sequence number to the method for the slave computer containing RS485 bus, and the method comprises burning program, and concrete steps are:
The sequence number of pre-burning imports in burning unit 11 by PC 10.
Sequence number is transferred to the USB/UART converting unit 31 of cd-rom recorder 30 by burning unit 11 in the mode of usb signal by usb bus 20 from USB port 12.
USB/UART converting unit 31 is sent to verification unit 32 after converting usb signal to UART signal; Verification unit 32 receives the UART signal of USB/UART converting unit 31, verification, the UART signal meeting agreed specifications is forwarded to a UART/RS485 converting unit 33, and convert RS485 signal to, the 2nd UART/RS485 converting unit 51 of slave computer 50 is then transferred to by RS485 bus 40; The UART signal not meeting agreed specifications does not then forward, and verification unit 32 continues the next UART signal of wait-receiving mode.
2nd UART/RS485 converting unit 51 is sent to sequence number read-write cell 52 after converting RS485 signal to UART signal, and sequence number read-write cell 52 passes through I2C bus to EEPROM53 writing sequence number.
In order to check the program of burning successful, correctly whether whether, PC 10, while the order sending burning program, also returns order along with have issued.
After EEPROM53 burning sequence number, sequence number read-write cell 52 reads again the sequence number of EEPROM53 write at once by I2C bus, and the UART/RS485 converting unit 33 being back to cd-rom recorder 30 after the 2nd UART/RS485 converting unit the 51, two UART/RS485 converting unit 51 converts UART signal to RS485 signal is sent to the form of UART signal.
One UART/RS485 converting unit 33 of cd-rom recorder 30 is forwarded to through verification unit 32 the burning unit 11 being back to PC 10 after USB/UART converting unit 31, USB/UART converting unit 31 converts UART signal to usb signal after just RS485 signal converts UART signal to.
The sequence number of passback and the sequence number sent verify by burning unit 11, data consistent, display burning success; Data are inconsistent, and display burning failure also points out burning again.

Claims (7)

1., from PC burning sequence number to a device for the slave computer containing RS485 bus, it is characterized in that, comprising:
PC, is provided with burning unit and USB port;
Cd-rom recorder, comprise the USB/UART converting unit, verification unit and the UART/RS485 converting unit that connect successively, the USB/UART converting unit of cd-rom recorder is connected with the USB port of PC by usb bus;
Slave computer, comprise interconnective 2nd UART/RS485 converting unit and the sequence number read-write cell with I2C interface, 2nd UART/RS485 converting unit of slave computer is connected with a UART/RS485 converting unit of cd-rom recorder by RS485 bus, and the I2C interface of sequence number read-write cell is connected with EEPROM by I2C bus.
2. according to claim 1 from PC burning sequence number to the device of the slave computer containing RS485 bus, it is characterized in that, described USB/UART converting unit adopts USB/UART conversion chip, verification unit adopts single-chip microcomputer, one UART/RS485 converting unit adopts UART/RS485 conversion chip, the UART signal that USB/UART conversion chip exports verifies through single-chip microcomputer, meets agreed specifications, is forwarded to UART/RS485 conversion chip.
3. according to claim 2 from PC burning sequence number to the device of the slave computer containing RS485 bus, it is characterized in that, described USB/UART converting unit adopts CP2102, and a UART/RS485 converting unit adopts MAX3485.
4. according to claim 1 from PC burning sequence number to the device of the slave computer containing RS485 bus, it is characterized in that, the 2nd UART/RS485 converting unit adopts UART/RS485 conversion chip, and sequence number read-write cell adopts single-chip microcomputer.
5. according to claim 4ly it is characterized in that from PC burning sequence number to the device of slave computer containing RS485 bus, the 2nd described UART/RS485 converting unit adopts MAX3485.
6., from PC burning sequence number to a method for the slave computer containing RS485 bus, it is characterized in that, comprise burning program, concrete steps are:
The sequence number of pre-burning imports in burning unit by PC;
Sequence number is transferred to the USB/UART converting unit of cd-rom recorder by burning unit in the mode of usb signal by usb bus from USB port;
USB/UART converting unit is sent to verification unit after converting usb signal to UART signal; Verification unit receives the UART signal of USB/UART converting unit, verification, the UART signal meeting agreed specifications is forwarded to a UART/RS485 converting unit, and converts RS485 signal to, then passes through the two UART/RS485 converting unit of RS485 bus transfer to slave computer; The UART signal not meeting agreed specifications does not then forward, and verification unit continues the next UART signal of wait-receiving mode;
2nd UART/RS485 converting unit is sent to sequence number read-write cell after converting RS485 signal to UART signal, and sequence number read-write cell passes through I2C bus to EEPROM writing sequence number.
7. according to claim 6 from PC burning sequence number to the method for the slave computer containing RS485 bus, it is characterized in that, also comprise check program, concrete steps are:
Sequence number read-write cell reads the sequence number of EEPROM write by I2C bus, and being sent to the 2nd UART/RS485 converting unit with the form of UART signal, the 2nd UART/RS485 converting unit is back to a UART/RS485 converting unit of cd-rom recorder after converting UART signal to RS485 signal;
One UART/RS485 converting unit of cd-rom recorder is forwarded to USB/UART converting unit through verification unit after just RS485 signal converts UART signal to, and USB/UART converting unit is back to the burning unit of PC after converting UART signal to usb signal;
The sequence number of passback and the sequence number sent verify by burning unit, data consistent, display burning success; Data are inconsistent, and display burning failure also points out burning again.
CN201510338796.6A 2015-06-18 2015-06-18 Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine Pending CN105094886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510338796.6A CN105094886A (en) 2015-06-18 2015-06-18 Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510338796.6A CN105094886A (en) 2015-06-18 2015-06-18 Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine

Publications (1)

Publication Number Publication Date
CN105094886A true CN105094886A (en) 2015-11-25

Family

ID=54575401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510338796.6A Pending CN105094886A (en) 2015-06-18 2015-06-18 Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine

Country Status (1)

Country Link
CN (1) CN105094886A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573957A (en) * 2015-12-11 2016-05-11 中国电子科技集团公司第四十一研究所 Measuring instrument programmable interface conversion system and method
CN107436776A (en) * 2016-05-26 2017-12-05 鸿富锦精密工业(深圳)有限公司 Programming system and method for burn-recording
CN109582322A (en) * 2018-11-20 2019-04-05 海信(山东)空调有限公司 A kind of programming system and burning control method
WO2020103107A1 (en) * 2018-11-22 2020-05-28 北京比特大陆科技有限公司 Data processing apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202013746U (en) * 2011-02-28 2011-10-19 苏州瀚瑞微电子有限公司 Burning tool
CN203350862U (en) * 2012-12-13 2013-12-18 上海亨通光电科技有限公司 Small USB blaster programmer
WO2013189304A1 (en) * 2012-06-21 2013-12-27 Shenzhen Byd Auto R & D Company Limited Method, upper computer and system for programming in bus network
CN104156250A (en) * 2014-08-20 2014-11-19 深圳市安邦信电子有限公司 Handheld off-line programmer and off-line programming method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202013746U (en) * 2011-02-28 2011-10-19 苏州瀚瑞微电子有限公司 Burning tool
WO2013189304A1 (en) * 2012-06-21 2013-12-27 Shenzhen Byd Auto R & D Company Limited Method, upper computer and system for programming in bus network
CN203350862U (en) * 2012-12-13 2013-12-18 上海亨通光电科技有限公司 Small USB blaster programmer
CN104156250A (en) * 2014-08-20 2014-11-19 深圳市安邦信电子有限公司 Handheld off-line programmer and off-line programming method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105573957A (en) * 2015-12-11 2016-05-11 中国电子科技集团公司第四十一研究所 Measuring instrument programmable interface conversion system and method
CN105573957B (en) * 2015-12-11 2018-07-24 中国电子科技集团公司第四十一研究所 A kind of measuring instrument programmable interface converting system and method
CN107436776A (en) * 2016-05-26 2017-12-05 鸿富锦精密工业(深圳)有限公司 Programming system and method for burn-recording
CN107436776B (en) * 2016-05-26 2020-11-03 南宁富桂精密工业有限公司 Burning system and burning method
CN109582322A (en) * 2018-11-20 2019-04-05 海信(山东)空调有限公司 A kind of programming system and burning control method
WO2020103107A1 (en) * 2018-11-22 2020-05-28 北京比特大陆科技有限公司 Data processing apparatus

Similar Documents

Publication Publication Date Title
US11953981B2 (en) Memory module register access
CN104679559B (en) The method of single-chip microcontroller online programming
CN105094886A (en) Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine
CN113760748A (en) FPGA prototype verification device and method
CN107203448A (en) A kind of method and system of test PCIe switch chip violence warm connection functions
CN102184741A (en) Method for programming serial periphery interface (SPI) FLASH
TW201816658A (en) Electronic card and detecting method thereof
CN203260029U (en) System chip prototype verification debugging device based on field programmable gate array (FPGA)
CN105068955B (en) A kind of local bus architecture and data interactive method
CN104104436A (en) Electricity meter data acquisition apparatus with infrared upgrade function and upgrade method thereof
RU2015134411A (en) FLASH DRIVE WITH MANY FUNCTIONS INTEGRATED WITH THE CONTROLLER
CN110908475A (en) Shenwei 1621CPU ICH-free 2 suite server mainboard
CN202584143U (en) A read-only card reader with multiple interfaces
US9158609B2 (en) Universal serial bus testing device
CN103077144A (en) Serial peripheral interface (SPI) communication interface for ensuring data integrity, and communication method thereof
CN108153624B (en) Test circuit board suitable for NGFF slot
CN104123246A (en) Interface expansion device and serial attached SCSI expander
CN102981675A (en) Multi-point touch data processing method and multi-point touch data processing system thereof
CN203133695U (en) BMC (backboard management controller) card based on AST2300 control chip
CN103092725B (en) A kind of method and device realizing data backup in storer
CN203117968U (en) SPI (Serial Peripheral Interface) communication interface
CN103164313A (en) Debugging system and debugging method
CN100511172C (en) Inter-board transparent transmission bus test device and method thereof
CN103164308A (en) Debugging system and debugging method
CN102567270A (en) USB (universal serial bus)-to-I2C (inter-integrated circuit) adapter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151125