CN108647166B - Microblaze-based conversion method for USB interface data and CAN interface data - Google Patents

Microblaze-based conversion method for USB interface data and CAN interface data Download PDF

Info

Publication number
CN108647166B
CN108647166B CN201810375746.9A CN201810375746A CN108647166B CN 108647166 B CN108647166 B CN 108647166B CN 201810375746 A CN201810375746 A CN 201810375746A CN 108647166 B CN108647166 B CN 108647166B
Authority
CN
China
Prior art keywords
data
interface
usb
upper computer
microblaze
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
CN201810375746.9A
Other languages
Chinese (zh)
Other versions
CN108647166A (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.)
Inspur Group Co Ltd
Original Assignee
Inspur Group 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 Inspur Group Co Ltd filed Critical Inspur Group Co Ltd
Priority to CN201810375746.9A priority Critical patent/CN108647166B/en
Publication of CN108647166A publication Critical patent/CN108647166A/en
Application granted granted Critical
Publication of CN108647166B publication Critical patent/CN108647166B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/38Universal adapter
    • G06F2213/3812USB port controller
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/38Universal adapter
    • G06F2213/3852Converter between protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Bus Control (AREA)

Abstract

The invention discloses a method for converting USB interface data and CAN interface data based on Microblaze, relating to the field of data communication; the USB interface data exchange system is characterized in that a Microblaze core in the FPGA is used for driving plug-in equipment and configuring a mounted CAN IP core according to the configuration parameters of an application software CAN interface of an upper computer, a USB asynchronous control module reads and sends data through an FIFO of an interface chip to communicate with the upper computer, the conversion function of the USB interface data and the CAN interface data CAN be realized by utilizing the recombined FPGA, corresponding additional settings are reduced, and the USB interface data exchange system is more favorably applied to an information control center, a call center, a securities/financial transaction system, a bank data center, an industrial control environment, a teaching environment, a test center, automobile electronics and other environments needing data exchange of a USB-to-CAN interface.

Description

Microblaze-based conversion method for USB interface data and CAN interface data
Technical Field
The invention discloses a data conversion method, relates to the field of data communication, and particularly relates to a method for converting USB interface data and CAN interface data based on Microblaze.
Background
In the prior art, CAN data exchange is realized by a single chip microcomputer and SJA1000, data analysis is carried out by simulating a CAN controller through an IO port of the single chip microcomputer, and an upper computer CAN communicate with a CAN interface after data conversion is carried out on the single chip microcomputer after a USB is converted into a serial port, so that the CAN data exchange is very inconvenient in practical application. The invention provides a conversion method of USB interface data and CAN interface data based on Microblaze, wherein a Microblaze core in FPGA is used for realizing the drive of plug-in equipment and configuring a mounted CAN IP core according to the configuration parameters of an application software CAN interface of an upper computer, a USB asynchronous control module reads and sends data through FIFO of an interface chip to communicate with the upper computer, the conversion function of the USB interface data and the CAN interface data CAN be realized by utilizing the recombined FPGA, and the conversion method reduces corresponding extra settings, and is more favorable for being applied to information control centers, call centers, securities/financial transaction systems, bank data centers, industrial control environments, teaching environments, test centers, automotive electronics and other environments needing data exchange of a USB-to-CAN interface.
Disclosure of Invention
The invention provides a method for converting USB interface data and CAN interface data based on Microblaze, aiming at the problems in the prior art.
The specific scheme provided by the invention is as follows:
a method for converting USB interface data and CAN interface data based on Microblaze comprises mounting a CAN module and a USB asynchronous control module by using a Microblaze core embedded in FPGA, connecting the USB asynchronous control module to an upper computer via an interface chip,
microblaze verifies the drive of the mounting equipment, configures the CAN module according to the CAN interface configuration parameters of the upper computer, sends data, acquires data from the CAN module according to the data request command sent by the upper computer, and exchanges data with the upper computer through the interface chip, so that the conversion between USB interface data and CAN interface data is realized.
The method comprises the following specific steps:
an FPGA is built, a CAN module and a USB asynchronous control module are mounted by utilizing a Microblaze core embedded in the FPGA, the USB asynchronous control module is connected with an interface chip,
the interface chip is connected with an upper computer, the CAN module is in butt joint with the CAN interface host,
the upper computer opens application software, configures CAN working mode parameters, transmits the CAN working mode parameters and data to be transmitted to the CAN interface host computer through the interface chip, the USB asynchronous control module, the Microblaze core and the CAN module in sequence, and the CAN interface host computer transmits the data back to the upper computer, so that conversion of the USB interface data and the CAN interface data is realized.
A conversion system of USB interface data and CAN interface data based on Microblaze comprises an FPGA of an embedded Microblaze core, wherein the FPGA of the embedded Microblaze core is used for mounting a CAN module and a USB asynchronous control module, the USB asynchronous control module is connected with an upper computer through an interface chip,
microblaze verifies the drive of the mounting equipment, configures the CAN module according to the CAN interface configuration parameters of the upper computer, sends data, acquires data from the CAN module according to the data request command sent by the upper computer, and exchanges data with the upper computer through the interface chip, so that the conversion between USB interface data and CAN interface data is realized.
The CAN module in the system comprises a CAN IP core and a CAN PHY IOBS, and the CAN IP core is directly mounted on the Microblaze core.
The USB asynchronous communication control module in the system comprises 4 controllers which are respectively a control register, a state register, a sending register and a receiving register.
The system also comprises a FLASH controller, and a firmware program is stored in the peripheral equipment for controlling.
The system also comprises a DDR3 controller which is used for data buffering and inputting of a program after power-on.
The invention has the advantages that:
the invention provides a conversion method of USB interface data and CAN interface data based on Microblaze, wherein a Microblaze core in FPGA is used for realizing the drive of plug-in equipment and configuring a mounted CAN IP core according to the configuration parameters of an application software CAN interface of an upper computer, a USB asynchronous control module reads and sends data through FIFO of an interface chip to communicate with the upper computer, the conversion function of the USB interface data and the CAN interface data CAN be realized by utilizing the recombined FPGA, and the method reduces corresponding additional settings, and is more favorable for being applied to information control centers, call centers, securities/financial transaction systems, bank data centers, industrial control environments, teaching environments, test centers, automotive electronics and other environments needing data exchange of a USB-to-CAN interface.
Drawings
FIG. 1 is a block diagram of the system of the present invention.
FIG. 2 is a schematic flow diagram of the process of the present invention.
Detailed Description
The invention provides a method for converting USB interface data and CAN interface data based on Microblaze, which utilizes a Microblaze core embedded in FPGA to mount a CAN module and a USB asynchronous control module, wherein the USB asynchronous control module is connected with an upper computer through an interface chip,
microblaze verifies the drive of the mounting equipment, configures the CAN module according to the CAN interface configuration parameters of the upper computer, sends data, acquires data from the CAN module according to the data request command sent by the upper computer, and exchanges data with the upper computer through the interface chip, so that the conversion between USB interface data and CAN interface data is realized.
Meanwhile, a conversion system of USB interface data and CAN interface data based on Microblaze corresponding to the method is provided, which comprises an FPGA of an embedded Microblaze core, wherein the Microblaze core embedded in the FPGA is used for mounting a CAN module and a USB asynchronous control module, the USB asynchronous control module is connected with an upper computer through an interface chip,
microblaze verifies the drive of the mounting equipment, configures the CAN module according to the CAN interface configuration parameters of the upper computer, sends data, acquires data from the CAN module according to the data request command sent by the upper computer, and exchanges data with the upper computer through the interface chip, so that the conversion between USB interface data and CAN interface data is realized.
The invention is further described with reference to the accompanying drawings and specific embodiments.
In the system of the invention, a Microblaze core embedded in the FPGA carries a CAN module and a USB asynchronous control module through an AXI bus, the USB asynchronous control module is connected with an upper computer through an interface chip,
wherein the CAN module comprises a CAN IP core and a CAN PHY IOBS, the CAN IP core is directly mounted on the Microblaze core, the CAN PHY IOBS is a physical layer component of the CAN module and is connected with a CAN host,
the USB asynchronous control module mainly comprises 4 controllers: a control register, a status register, a sending register, a receiving register,
the control register is used for controlling and determining the operation mode of the USB asynchronous control module and the characteristics of the current execution task, the status register is used for storing various status information of the current instruction execution result and storing control information, the sending register and the receiving register are used for storing the address of data,
the USB asynchronous control module is connected with a host computer through an interface chip, taking a CY7C68013A chip of an EZ-USB FX2LP series of Cypress company as an example, in a firmware program of the CY7C68013, FIFOs of EP2 and EP4 are configured to be used as data output, data are transmitted from the host computer to the system, FIFOs of EP6 and EP8 are configured to be used as data input, data are transmitted from the system to the host computer, the size of each port FIFO is 1 Kbyte,
the Microblaze core of the FPGA is also provided with a FLASH controller and a DDR3 controller, the FLASH controller is used for controlling peripheral equipment to store a firmware program, the DDR3 controller is connected with DDR3 particles and is used for carrying out data caching and inputting a program after power-on,
microblaze verifies the drive of the mounting equipment, configures the CAN module according to the CAN interface configuration parameters of the upper computer, sends data, acquires data from the CAN module according to the data request command sent by the upper computer, and exchanges data with the upper computer through the interface chip, so that the conversion between USB interface data and CAN interface data is realized.
According to the system, the method provided by the invention comprises the following specific steps:
an FPGA is built, a CAN IP core and a USB asynchronous control module of a CAN module are mounted by utilizing a Microblaze core embedded in the FPGA through an AXI bus, the USB asynchronous control module is connected with a CY7C68013A chip,
the CY7C68013A chip is connected with an upper computer, the CAN PHY IOBS of the CAN module is butted with a CAN interface host,
the upper computer opens application software, configures CAN working mode parameters, transmits the CAN working mode parameters and data to be transmitted to the CAN interface host computer through the CY7C68013A chip, the USB asynchronous control module, the Microblaze core and the CAN module in sequence, and the CAN interface host computer transmits data back to the upper computer to realize conversion of the USB interface data and the CAN interface data.
The data CAN be read on the upper computer and then is consistent with the CAN interface.
The method and the system are suitable for data exchange environments needing USB type data conversion CAN interface data, such as an information control center, a call center, a security/financial transaction system, a bank data center, an industrial control environment, a teaching environment, a test center, automotive electronics and the like.

Claims (6)

1. A method for converting USB interface data and CAN interface data based on Microblaze is characterized in that a CAN module and a USB asynchronous control module are mounted by utilizing a Microblaze core embedded in an FPGA, the USB asynchronous control module is connected with an upper computer through an interface chip,
the Microblaze checks the drive of the mounted equipment, configures the CAN module according to CAN interface configuration parameters of the upper computer and sends data, acquires data from the CAN module according to a data request command sent by the upper computer and exchanges the data with the upper computer through the interface chip, wherein the CAN module is in butt joint with the CAN interface host, application software is opened on the upper computer, CAN working mode parameters are configured, the CAN working mode parameters and the data to be sent are transmitted to the CAN interface host through the interface chip, the USB asynchronous control module, the Microblaze core and the CAN module in sequence, and the CAN interface host transmits the data back to the upper computer, so that the conversion between the USB interface data and the CAN interface data is realized.
2. A conversion system of USB interface data and CAN interface data based on Microblaze is characterized by comprising an FPGA of an embedded Microblaze core, wherein the FPGA of the embedded Microblaze core is used for mounting a CAN module and a USB asynchronous control module, the USB asynchronous control module is connected with an upper computer through an interface chip,
the Microblaze checks the drive of the mounted equipment, configures the CAN module according to CAN interface configuration parameters of the upper computer and sends data, acquires data from the CAN module according to a data request command sent by the upper computer and exchanges the data with the upper computer through the interface chip, wherein the CAN module is in butt joint with the CAN interface host, application software is opened on the upper computer, CAN working mode parameters are configured, the CAN working mode parameters and the data to be sent are transmitted to the CAN interface host through the interface chip, the USB asynchronous control module, the Microblaze core and the CAN module in sequence, and the CAN interface host transmits the data back to the upper computer, so that the conversion between the USB interface data and the CAN interface data is realized.
3. The system of claim 2, wherein the CAN module comprises a CAN IP core and a CAN PHY IOBS, the CAN IP core being mounted directly on the Microblaze core.
4. The system as claimed in claim 2 or 3, wherein the USB asynchronous communication control module comprises 4 kinds of controllers, which are a control register, a status register, a transmission register, and a reception register.
5. The system of claim 4, further comprising a FLASH controller for controlling the peripheral device to store the firmware program.
6. The system of any of claims 2, 3 or 5, further comprising a DDR3 controller for data buffering and input of a power-up procedure.
CN201810375746.9A 2018-04-25 2018-04-25 Microblaze-based conversion method for USB interface data and CAN interface data Active CN108647166B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810375746.9A CN108647166B (en) 2018-04-25 2018-04-25 Microblaze-based conversion method for USB interface data and CAN interface data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810375746.9A CN108647166B (en) 2018-04-25 2018-04-25 Microblaze-based conversion method for USB interface data and CAN interface data

Publications (2)

Publication Number Publication Date
CN108647166A CN108647166A (en) 2018-10-12
CN108647166B true CN108647166B (en) 2021-04-27

Family

ID=63747376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810375746.9A Active CN108647166B (en) 2018-04-25 2018-04-25 Microblaze-based conversion method for USB interface data and CAN interface data

Country Status (1)

Country Link
CN (1) CN108647166B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201075248Y (en) * 2007-08-27 2008-06-18 中国石油天然气集团公司 USB interface real-time data acquisition controller
CN103092800A (en) * 2013-01-18 2013-05-08 西安电子科技大学 Data conversion experimental platform
CN205864441U (en) * 2016-08-08 2017-01-04 浪潮集团有限公司 Ethernet-to-CAN (controller area network) module based on Microblaze verification
CN107819705A (en) * 2017-11-28 2018-03-20 济南浪潮高新科技投资发展有限公司 A kind of implementation method of the data exchange based on Microblaze cores

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0818239D0 (en) * 2008-10-06 2008-11-12 Omiino Ltd System for internally monitoring an intergrated circuit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201075248Y (en) * 2007-08-27 2008-06-18 中国石油天然气集团公司 USB interface real-time data acquisition controller
CN103092800A (en) * 2013-01-18 2013-05-08 西安电子科技大学 Data conversion experimental platform
CN205864441U (en) * 2016-08-08 2017-01-04 浪潮集团有限公司 Ethernet-to-CAN (controller area network) module based on Microblaze verification
CN107819705A (en) * 2017-11-28 2018-03-20 济南浪潮高新科技投资发展有限公司 A kind of implementation method of the data exchange based on Microblaze cores

Also Published As

Publication number Publication date
CN108647166A (en) 2018-10-12

Similar Documents

Publication Publication Date Title
US7526411B2 (en) Device for remote diagnostics of a field device
CN108228513B (en) Intelligent serial port communication device based on FPGA framework
CN105183680B (en) Realize that PCIe interface turns the fpga chip and method of CF card interfaces
CN107463499A (en) The long-range connection methods of ADB, device, equipment and storage medium
CN107908589B (en) I3C communication verification system and method for verifying slave device and master-slave device
RU2013135240A (en) METHOD AND DEVICE FOR MANAGING ACCESS TO COMPUTER SYSTEM
CN202710990U (en) Airborne radar monitoring system based on CPCI bus
US20090271557A1 (en) Non-volatile memory storage device with high transmission rate
CN101977275A (en) Method for obtaining on-board computer data by mobile communication terminal and mobile terminal thereof
WO2022133583A1 (en) Method and apparatus for controlling a computational storage processor
CN208156504U (en) Fault diagnosis system and vehicle in a kind of vehicle
CN113138779A (en) FPGA (field programmable Gate array) online program updating device and method based on multifunctional interface
CN204117142U (en) Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host
CN108647166B (en) Microblaze-based conversion method for USB interface data and CAN interface data
CN101778038B (en) Gigabit Ethernet-based high-speed data transmission system of embedded equipment
CN111443630B (en) Servo driver with built-in programmable control function
CN103149909A (en) Field programmable gate array (FPGA)-based controller area network (CAN) simulation node system
CN114442590A (en) Vehicle diagnosis method, apparatus, diagnosis communication device, server, and storage medium
CN103246607B (en) The emulation test method of aerial camera address bit pattern communication interface
CN109298683B (en) Numerical control system supporting multiple bus driver communication protocols
CN112948268A (en) ECU software testing and calibration system based on INCA
CN203554485U (en) CAN bus test equipment
CN219235298U (en) Mechanical arm control system
CN105591854A (en) Interaction method, device and system based serial bus
CN202563293U (en) RS232-CAN intelligent conversion control box used for engineering vehicles

Legal Events

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

Effective date of registration: 20210407

Address after: No. 1036, Shandong high tech Zone wave road, Ji'nan, Shandong

Applicant after: INSPUR GROUP Co.,Ltd.

Address before: 250100 First Floor of R&D Building 2877 Kehang Road, Sun Village Town, Jinan High-tech Zone, Shandong Province

Applicant before: JINAN INSPUR HI-TECH INVESTMENT AND DEVELOPMENT Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant