Operating lever serial port drive design method based on semaphore event under vxworks system

A technology of serial port driver and design method, which is applied in the field of vxworks system, can solve the problem of not providing screen coordinate interface, etc., and achieve the effect of simplifying the loading process

Pending Publication Date: 2020-11-03
TIANJIN JINHANG COMP TECH RES INST
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, the mature joystick driver technology is based on windml multi-pointer implementation. The joystick device is used as the low-level input driver to use the standard serial port driver of the system. The content of the driver uses the high-level input driver to simulate the message mechanism of windm...

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
  • Operating lever serial port drive design method based on semaphore event under vxworks system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0091] This embodiment provides a semaphore event-based joystick serial driver design method under the vxworks system, including:

[0092] (1) Read the joystick serial port configuration information, obtain the serial number of the device in the system serial port resource and the baud rate of the serial port;

[0093] (2) Initialize the use environment of the serial port device, obtain the serial port operation handle and configure the serial port resource and create a serial port receiving task;

[0094] (3) Analyze the serial port data to obtain the force-sensitive adjustment coordinates sent by the joystick, verify the legality of the data sent by the serial port, and slide the window for illegal data to reduce the packet loss rate;

[0095] (4) Set the screen coordinate reporting event according to the semaphore, and provide it to the upper layer application to obtain the coordinate point information of the joystick.

[0096] Wherein, the above (1)(2)(3) realizes the coo...

Embodiment 2

[0099] Such as figure 1 As shown, in order to solve the serial port driver problem of the joystick under the vworks system, this embodiment provides a realization method based on windml virtual mouse. The content of this embodiment will be further described below.

[0100] 1. Read the joystick serial port configuration information;

[0101] First create a file object pointer, and read the file content from the first character of the configuration file. Then, obtain the port number and baud rate information corresponding to the keyword according to the string defined by the comparison macro.

[0102] 2. Initialize the serial port device usage environment

[0103] Step1: Obtain the serial device descriptor;

[0104] Step2: Use the vxworks system function open to open the serial device represented by the descriptor and save the operation handle pointed to by the serial port;

[0105] Step3: Use the ioctl function to configure the baud rate and checksum properties of the seri...

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 belongs to the technical field of vxworks systems, and particularly relates to an operating lever serial port drive design method based on a semaphore event under a vxworks system. The method comprises the following steps: reading operating lever serial port configuration information; initializing a serial port equipment use environment; analyzing the serial port data to obtain a force-sensitive adjustment coordinate sent by the operating lever; and setting a screen coordinate reporting event according to the semaphore. Compared with the prior art, the operating lever serial portdriver based on the semaphore event has the advantages that the operating lever force-sensitive coordinates are transmitted through the semaphore event according to the characteristics of a system platform and the characteristics of serial port data of operating lever equipment under the application scene that the system is vxworks. The operating lever serial port drive loading process is simplified, an operating lever moving event is converted into a semaphore event according to operating lever serial port data characteristics, and a screen coordinate interface is provided for an upper-layerapplication program.

Description

technical field [0001] The invention belongs to the technical field of the vxworks system, and in particular relates to a joystick serial port drive design method based on a semaphore event under the vxworks system. Background technique [0002] The vxwork operating system is an embedded operating system, and the use of WindML graphics library programming has become the main means of developing graphics and human-computer interaction interfaces under vxworks. The joystick is a common input device in the weapon system, and the direction control of up, down, left, and right is realized by turning the handle of the joystick at a certain angle. [0003] In order to make the joystick device can be used normally under the vxworks system as a serial device, it is necessary to solve the serial port driver problem of the joystick. At present, the mature joystick driver technology is based on windml multi-pointer implementation. The joystick device is used as the low-level input driv...

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): A63F13/40G06F3/038G06F9/4401G06F13/10
CPCA63F13/40G06F3/0383G06F9/4411G06F13/102
Inventor 高娟
Owner TIANJIN JINHANG COMP TECH RES INST
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