Method and device for simulating serial interface through GPIO (general purpose input output) based on windows platform

A technology for simulating serial and serial interfaces, which is applied in the field of computers simulating hardware interfaces through software, can solve the problem of high cost of expanding serial interfaces, and achieve the effects of convenient expansion, cost saving, and hardware cost saving

Active Publication Date: 2017-03-15
FUJIAN STAR NET EVIDEO INFORMATION SYST CO LTD
View PDF1 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] For this reason, it is necessary to provide a GPIO analog serial interface solution based on the windows platform to solve the problem of high cost of extending the serial interface under the windows platform

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
  • Method and device for simulating serial interface through GPIO (general purpose input output) based on windows platform
  • Method and device for simulating serial interface through GPIO (general purpose input output) based on windows platform
  • Method and device for simulating serial interface through GPIO (general purpose input output) based on windows platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to explain in detail the technical content, structural features, achieved goals and effects of the technical solution, the following will be described in detail in conjunction with specific embodiments and accompanying drawings.

[0038] see Figure 1 to Figure 2 , the present embodiment provides the method based on the GPIO simulation serial interface of windows platform, and method of the present invention can be applied on the equipment that windows system is equipped with, as on the PC of x86 framework, these equipments have GPIO port, and GPIO port and serial The serial interfaces of the interface devices are connected together. In an embodiment of the present invention, the serial interface may include one of the following: an I2C interface, an SPI interface, a UART interface or a single bus interface. This embodiment includes the following steps: Step S101 acquires a serial interface instruction, where the serial interface instruction may be issued by a...

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 method and a device for simulating a serial interface through GPIO (general purpose input output) based on a windows platform. The method comprises the following steps: acquiring a serial interface command of application software; acquiring a level sequence corresponding to the serial interface command according to a preset serial interface level sequence; calling a windows kernel driver function to access a GPIO port according to the level sequence. According to the method and the device disclosed by the invention, the serial interface command is converted into the level sequence of GPIO, and access of the GPIO port is realized on the windows kernel, so that the serial interface is simulated by the GPIO port under the windows platform, the serial interface equipment is controlled without using an external chip, and the cost of the chip is reduced. Multiple serial interfaces can be simulated by virtue of software simulation, and when the multiple serial interfaces are needed, multiple external chips are not needed, and the hardware cost is greatly reduced.

Description

technical field [0001] The invention relates to the technical field of a computer simulating a hardware interface through software, in particular to a method and a device for simulating a serial interface based on a GPIO of a windows platform. Background technique [0002] GPIO is the abbreviation of General Purpose Input Output (General Purpose Input / Output), or bus expander. The serial interface is an extended interface that adopts serial communication mode, and common ones include I2C, SPI, UART interface, single-bus interface, etc. Among them, the I2C (Inter-Integrated Circuit) bus is a two-wire serial bus developed by PHILIPS. The serial bus interface is widely used to connect microcontrollers and their peripherals. SPI (Serial Peripheral Interface) is a serial peripheral interface, and UART (Universal Asynchronous Receiver / Transmitter) is a universal asynchronous receiver / transmitter. [0003] GPIO is a common general-purpose input and output interface in embedded sy...

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 Applications(China)
IPC IPC(8): G06F13/10
CPCG06F13/105G06F2213/0002
Inventor 林哲明邹应双林鎏娟
Owner FUJIAN STAR NET EVIDEO INFORMATION SYST CO LTD
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