Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for eliminating conflict generated by accessing hardware resources by multiple pieces of software, and equipment

A hardware resource and hardware technology, applied in the direction of program control design, instrumentation, calculation, etc., to achieve the effect of conflict resolution

Inactive Publication Date: 2018-10-16
GOERTEK OPTICAL TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the SDK provided by the hardware manufacturer is often exclusive, that is, only one software can use the hardware by calling the SDK at the same time.
For example, there are two pieces of software that need to access hardware resources. After software A loads the SDK, software B also fails to load the SDK.

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 for eliminating conflict generated by accessing hardware resources by multiple pieces of software, and equipment
  • Method for eliminating conflict generated by accessing hardware resources by multiple pieces of software, and equipment
  • Method for eliminating conflict generated by accessing hardware resources by multiple pieces of software, and equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] figure 1 It is a schematic block diagram of a method for resolving conflicts between multiple software accessing hardware resources in an embodiment of the present invention.

[0037] figure 2 Shown is a flowchart of a method for resolving conflicts between multiple software accessing hardware resources in an embodiment of the present invention.

[0038] In the method for resolving conflicts between multiple software accessing hardware resources provided by the embodiment of the present invention, an isolation program is set between the hardware SDK and application software (for example, including software A and software B), and the hardware SDK is loaded by the isolation program. Software A and software B communicate; software A and software B send instructions for accessing hardware resources to the isolation program to call the hardware SDK through the isolation program to access the actual hardware resources, and finally achieve the technical effect of solving the confli...

Embodiment 2

[0055] image 3 It is a flowchart of different software invoking the hardware SDK to execute the data writing instruction and the data reading instruction according to the embodiment of the present invention. Among them, application software A needs to write data into hardware resources, and application software B needs to read data from hardware resources.

[0056] Step S1. The isolation program loads the hardware SDK. The hardware SDK is a software development kit provided by the hardware manufacturer. The isolation program loads the hardware SDK to initialize the hardware.

[0057] Step S2, the isolation program creates an instruction queue.

[0058] Step S3: The isolation program creates a scanning thread, and the scanning thread is used to scan the instruction queue. In a specific example, the scanning thread scans the instruction queue according to a preset cycle.

[0059] Step S411: The application software A sends a data write instruction to the isolation program, and the is...

Embodiment 3

[0075] On the basis of Embodiment 1, the present invention also provides a computer device for implementing the method, as attached Figure 5 As shown, the computer device 300 includes a processor 3010, a memory 3020, an interface device 3030, a communication device 3040, a display device 3050, an input device 3060, a speaker 3070, a microphone 3080, and so on.

[0076] The processor 3010 may be, for example, a central processing unit CPU, a microprocessor MCU, or the like. The memory 3020 includes, for example, ROM (Read Only Memory), RAM (Random Access Memory), nonvolatile memory such as a hard disk, and the like. The interface device 3030 includes, for example, a USB interface, a headphone interface, and the like. The communication device 3040 can perform wireless communication or wired communication, for example. The display device 3050 is, for example, a liquid crystal display, a touch display, or the like. The input device 3060 may include, for example, a touch screen, 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 for eliminating a conflict generated by accessing hardware resources by multiple pieces of software, and computer equipment. The method comprises the following steps that: an isolation program loads a hardware SDK (Software Development Kit); the isolation program creates an instruction queue and a scanning thread, wherein the scanning thread is used for scanning the queue instruction; the isolation program receives an instruction for application software to access hardware resources corresponding to the hardware SDK, and the instruction is added into the instruction queue; and the scanning thread pops up the instructions scanned by the scanning thread from the instruction queue, and the hardware SKD is called to execute the popup instructions in sequence. According to the method, a conflict problem that multiple pieces of software access the hardware resources can be effectively solved.

Description

Technical field [0001] The present invention relates to the field of automation control, and more specifically, to a method for resolving conflicts between multiple software accessing hardware resources and a computer device. Background technique [0002] In the field of industrial automation control, automation software needs to control and use hardware (such as IO boards), which generally requires software programming to call the SDK (Software Development Kit, software development kit) provided by the hardware manufacturer. However, the SDK provided by hardware manufacturers is often exclusive, that is, only one software can use the hardware by calling the SDK at the same time. For example, there are two softwares that need to access hardware resources. When software A loads the SDK, software B will fail when it tries to load the SDK. Summary of the invention [0003] An object of the present invention is to provide a new technical solution for resolving conflicts between multi...

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
IPC IPC(8): G06F9/38
CPCG06F9/3856
Inventor 吕建涛王克生
Owner GOERTEK OPTICAL TECH CO LTD