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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com