A usb to smi method, device, converter and storage medium

A converter and state switching technology, applied in instruments, electrical and digital data processing, etc., can solve problems such as poor versatility, and achieve the effects of improving conversion efficiency, easy operation, and reducing dependence.

Active Publication Date: 2022-04-15
广州广哈通信股份有限公司
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention provides a USB-to-SMI method, device, converter, and storage medium, which can effectively solve the problem of poor versatility in simulating the SMI bus through GPIO, is easy to operate, and can effectively improve conversion efficiency

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A usb to smi method, device, converter and storage medium
  • A usb to smi method, device, converter and storage medium
  • A usb to smi method, device, converter and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] see figure 1 , is a schematic flowchart of a USB to SMI method provided in Embodiment 1 of the present invention, and see figure 2 , is a schematic diagram of connection of the converter, the CPU, and the network device provided in Embodiment 1 of the present invention. The method is applicable to converter 11, which is connected as figure 2 As shown, the converter 11 is connected to the CPU 12 through the USB bus, and the converter 11 is connected to the network device 13 through the SMI bus.

[0048]It should be noted that the CPU 12 accesses the converter 11 through the USB bus, and the converter 11 sends the operation instructions of the CPU 12 to the SMI bus, so that the CPU 12 can access any register of any network device 13 on the SMI bus. In this embodiment, the converter 11 is a peripheral hardware module. Using the USB interface as an extension, the conversion of the external module will not cause failure due to the replacement of the CPU12. In addition,...

Embodiment 2

[0071] see image 3 , is a schematic structural diagram of a USB-to-SMI device provided in Embodiment 2 of the present invention, which is suitable for a converter, the converter is connected to a CPU through a USB bus, and the converter is connected to a network device through an SMI bus; the Devices include:

[0072] The instruction receiving module 201 is configured to receive an operation instruction sent by the CPU through the USB bus when in an initial state; wherein the operation instruction includes a read instruction and a write instruction;

[0073] An instruction response module 202, configured to switch the initial state to a state corresponding to the operation instruction in response to the operation instruction, and receive operation data sent by the CPU;

[0074] A data conversion module 203, configured to convert the operation data into SMI operation data, and send the SMI operation data to the SMI bus to access the network device;

[0075] The operation com...

Embodiment 3

[0090] see Figure 4 , is a schematic structural diagram of a converter provided in Embodiment 3 of the present invention. The converter in this embodiment includes: a processor 301, a memory 302, and a computer program stored in the memory 302 and operable on the processor 301, such as a USB to SMI program. When the processor 301 executes the computer program, the steps in the above embodiments of the USB to SMI method are implemented. Alternatively, when the processor 301 executes the computer program, functions of the modules / units in the foregoing device embodiments are realized.

[0091] Exemplarily, the computer program can be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor 301 to implement the present invention . The one or more modules / units may be a series of computer program instruction segments capable of accomplishing specific functions, and the instruction segments are used to desc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a USB-to-SMI method, which is suitable for a converter, the converter is connected to a CPU through a USB bus, and the converter is connected to a network device through an SMI bus; the method includes the steps of: in the initial state , receiving the operation instruction sent by the CPU through the USB bus; wherein the operation instruction includes a read instruction and a write instruction; in response to the operation instruction, switching the initial state to the state corresponding to the operation instruction , and receive the operation data sent by the CPU; convert the operation data into SMI operation data, and send the SMI operation data to the SMI bus to access the network device; after the operation is completed, switch the current state for the initial state. The invention also discloses a USB-to-SMI device, a converter and a storage medium, which can effectively solve the problem of poor versatility in simulating the SMI bus through the GPIO, are easy to operate, and can effectively improve conversion efficiency.

Description

technical field [0001] The invention relates to the technical field of network equipment, in particular to a USB-to-SMI method, device, converter and storage medium. Background technique [0002] Currently, the CPU or the MAC accesses and controls and manages physical layer devices or other network devices through the SMI. Usually embedded CPUs have this bus, but general-purpose CPUs (such as X86 CPUs) do not have this function. As a result, under the CPU device, if you want to access the network device connected to the bus, you must use existing hardware resources to simulate. Usually, GPIO is used to simulate the SMI bus, and its cost is relatively low. If there are enough GPIO supports on the hardware, it can be implemented relatively easily. But the usability is poor, because GPIO uses a specific PIN pin, if the CPU uses this GPIO as a conversion SMI interface, all modules that are compatible with it must be connected using this pin, which is less flexible. Contents ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F13/42
CPCG06F13/4282
Inventor 郭强沈洪辉饶晓东
Owner 广州广哈通信股份有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products