CN110069323A - High speed reaction game station and its method for allocating tasks - Google Patents
High speed reaction game station and its method for allocating tasks Download PDFInfo
- Publication number
- CN110069323A CN110069323A CN201810069625.1A CN201810069625A CN110069323A CN 110069323 A CN110069323 A CN 110069323A CN 201810069625 A CN201810069625 A CN 201810069625A CN 110069323 A CN110069323 A CN 110069323A
- Authority
- CN
- China
- Prior art keywords
- task
- microcontroller
- instruction
- time
- basic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/485—Task life-cycle, e.g. stopping, restarting, resuming execution
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/10—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by input arrangements for converting player-generated signals into game device control signals
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of high speed reaction game station and its method for allocating tasks, and wherein the method for allocating tasks includes an initial step, an instruction triggers step, a newly-increased task step, a task scheduling step and a task execution step;Initial step is first carried out, a microcontroller executes several basic tasks;Then triggering step is executed instruction, detector detecting triggering microcontroller generates a detecting instruction, and a main input module triggering microcontroller generates an input instruction;Then newly-increased task step is executed, microcontroller increases a task newly;Then task scheduling step is executed, task is discharged into several basic tasks by a task arranging module;Task execution step is finally executed, when task is not completed in limiting time, pause executes task;Method for allocating tasks of the invention can confirm whether user assigns instruction and real-time response all the time, avoid not obtaining or postponing the instruction that user assigns caused by the overlong time because of execution task.
Description
Technical field
The invention relates to a kind of game stations, react game station especially with respect to a kind of high speed and its task is distributed
Method.
Background technique
The general common information input equipment of computer is keyboard and mouse, and general keyboard and mouse is only needed to computer
Simple instruction is issued, therefore the keyboard and mouse of early stage only needs the work that general circulation pattern can be stable, hardly
Delay machine occurs, is also not felt by delay.
As shown in fig.1, being general mouse, pressed comprising a micro-control circuit 111, a coordinate moving sensing part 112, one
Key sensing member 113 and an idler wheel sensing member 114.The micro-control circuit 111 utilizes a coffret 115 and a computer installation
116 connections, manipulate the computer installation 116 to provide user.
It include a micro-control circuit 121 and a keyboard sensing member 122 as shown in fig.2, being general keyboard.The micro-control
Circuit 121 processed is connect using a coffret 123 with a computer installation 124, manipulates the computer installation to provide user
124。
As shown in fig.3, working as micro-control circuit for the loop control process of general mouse or the micro-control circuit of keyboard
After initial setting 130, circulation executes work 1, work 2 132 and work 3 133, to confirm the detecting letter of several sensing members
Breath, so that general mouse or keyboard operation computer installation.
With the exploitation of game, the competing industry of electricity is gradually flourishing, and many competing products of electricity are developed, the mouse of information input equipment
Mark, keyboard and joystick are even more one of the product of the competing exploitation of electricity.Be getting faster in the competing upper reaction speed demand of electricity, precision with point
Resolution is higher and higher, operation information become increasingly complex and huge situation under, specification that the component of information input equipment uses
It is higher and higher, avoid the situation that instruction delay transmission occurs.
On the competing field of electricity, each movement performed by game player, it is necessary to reach real-time (real-time) target, with
The technological means of the information input equipment of mouse, keyboard or joystick at present is using high standard hardware component, to obtain quickly
Execution speed reach the instruction transmission of near real-time to issue a large amount of control instruction to computer in the unit time, when
Closer in real time, control of user when electricity is competing is reflected in game in real time for the instruction of user.
As shown in fig.4, when micro-control circuit increases 134 (ISR, Interrupt Service of interrupt service routine newly
When Routine), a clothes can be added between the work 1, work 2 132 and work 3 133 that circulation executes in micro-control circuit
Business program sign on 135, the interrupt service routine 134 and a service routine END instruction 136, so that information input equipment is held
The new work of row.
As shown in fig.5, horizontal axis is the time that micro-control circuit executes work, the longitudinal axis is what micro-control circuit executed for cooperation
Work.Although the interrupt service routine 134 has interrupted the work of the work 1, terminate in the interrupt service routine 134
Afterwards, the work 1 could be executed again.
When 134 information of interrupt service routine is huge, when calculating complicated, just having to wait for a large amount of time could execute again
The work 1.The function of causing current information input equipment newly-increased can not reach the target of real-time (real-time).
In addition to this, it must be fully completed in interrupt service routine under the technology that could execute other work, be taken when interrupting
Postpone in business program, or generate unexpected Infinite Cyclic, causes micro-control circuit that can not execute other work, and
The situation of delay machine occurs.
Therefore, the program structure for how improving information input equipment, reaches the movement of real time reaction user, and avoids appointing
The movement that user is influenced when not expected mistake occurs for business, so that computer installation is received the action command of user in real time, is phase
It closes technical staff and needs the target made great efforts.
Summary of the invention
In view of this, a purpose of the invention is to be to provide a kind of method for allocating tasks, refer to comprising an initial step, one
Enable triggering step, a newly-increased task step, a task scheduling step and a task execution step.
The initial step is first carried out, it is several basic with the execution of super circulation that a task arranging module controls a microcontroller
Task.
Then the instruction triggers step is executed, a detector detects an ambient condition, generates one to trigger the microcontroller
Detecting instruction, a main input module detect an external information, generate an input instruction to trigger the microcontroller.
Then the newly-increased task step is executed, one of detecting instruction and input instruction keep the microcontroller new
Increase a task.
Then the task scheduling step is executed, which sets the work section time to the task,
And the task is discharged into super circulation.
The task execution step is finally executed, which executes several basic tasks and the work with super circulation
Task, when the microcontroller does not complete the task in the work section time, pause executes the task.
Another technological means of the invention is in above-mentioned task execution step, which stores the work
Job information before task suspension, work when so that super circulation executing the task again, before continuing pause.
Another technological means of the invention is in above-mentioned task execution step, should at the end of the task
Microcontroller deletes the task from super circulation.
Another technological means of the invention is in above-mentioned initial step, and the task arranging module is also respectively to this
Several basic tasks set the basic section time, in the task execution step, when the microcontroller is when the basic section
Between do not complete the basic task, pause executes the basic task.
Another technological means of the invention is in the above-mentioned newly-increased task step, and the microcontroller is to the work
Task setting one limits the working time, in the task execution step, the microcontroller to working time of the task into
Row counts and generates a net cycle time.
Another technological means of the invention is in the above-mentioned task execution step, when the task is in super
When circulation is suspended, which compares the net cycle time and the restriction working time, is somebody's turn to do when the net cycle time is greater than
The working time is limited, which generates a false command.
Another technological means of the invention is in the above-mentioned instruction triggers step, and a personal computer is micro- to this
Controller issues a reaction instruction, increases newly in task step in this, which obtains the reaction and the generation work is instructed to appoint
Business.
It is another object of the present invention to be to provide a kind of high speed reaction game station, suitable for above-mentioned task distribution side
Method, and connect via a USB port with a personal computer, which includes a microcontroller, with this
People's computer transmits information;One detector is electrically connected with the microcontroller, which detects an ambient condition, to trigger
The microcontroller generates a detecting instruction;One main input module, is electrically connected with the microcontroller, the main input module detecting
One external information generates an input instruction to trigger the microcontroller;And a task arranging module, it is electrically connected with the microcontroller
It connects, to control the task scheduling of the microcontroller.
Another technological means of the invention is to be above-mentioned high speed reaction game station, also includes an active module, with
Microcontroller electrical connection, the microcontroller is according to the performed task control active module.
Another technological means of the invention is to be that above-mentioned personal computer issues a reaction instruction, so that the micro-control
Device processed obtains reaction instruction.
Beneficial functional of the invention is that task performed by the microcontroller, should as specified by the task arranging module
Task arranging module specifies the sequence that executes of several basic tasks and the task, and basic section time and workspace
The section time, when several basic tasks or the task are unfinished in basic section time or work section time, pause should
Several basic tasks or the task, to replace the task of microcontroller execution, so that the high speed reaction game station can
To be transmitted in real time to the individual calculus machine information.
Detailed description of the invention
Fig. 1 is a schematic device, illustrates known general mouse;
Fig. 2 is a schematic device, illustrates known general keyboard;
Fig. 3 is a flow diagram, illustrates the loop control of the known general mouse or the micro-control circuit of the general keyboard
Process;
Fig. 4 is a flow diagram, illustrates that known micro-control circuit increases an interrupt service routine newly in several work;
Fig. 5 is a timing diagram, illustrates that known micro-control circuit executes the timing of interrupt service routine and several work;
Fig. 6 is a schematic device, illustrates a kind of preferred embodiment of high speed reaction game station of the present invention;
Fig. 7 is a schematic device, and the detector and a main input module for illustrating the preferred embodiment are to a microcontroller
Connection aspect;
Fig. 8 is a schematic device, illustrates that the preferred embodiment is the aspect of mouse;
Fig. 9 is a schematic device, illustrates that the preferred embodiment is the aspect of keyboard;
Figure 10 is a block diagram, illustrates the method for allocating tasks of the preferred embodiment;
Figure 11 is a flow diagram, illustrates aspect of the task arranging module to several task schedulings of preferred embodiment;
Figure 12 is a timing diagram, illustrates the timing of the several work of task arranging module scheduling of the preferred embodiment.
Symbol description in attached drawing:
111 micro-control circuits;112 coordinate moving sensing parts;113 key sensing members;114 idler wheel sensing members;115 transmission
Interface;116 computer installations;121 micro-control circuits;122 keyboard sensing members;123 coffrets;124 computers dress
It sets;130 initial settings;131 work one;132 work two;133 work three;134 interrupt service routines;135 service journeys
Sequence sign on;136 service routine END instructions;21 USB ports;22 personal computers;221 reaction instructions;30 is initial
Setting;31 microcontrollers;311 basic tasks;312 tasks;313 flash memories;32 detectors;321 ambient conditions;
322 detecting instructions;323 Touch Zones;324 touch control components;325 touch tablets;326 3-axis acceleration sensors;327 gyros
Instrument;328 light change sensors;329 proximity sensors;33 main input modules;331 external informations;332 inputs refer to
It enables;333 surface mobile detection devices;334 button matrixes;335 keyboard matrixs;336 roller sensors;34 task scheduling moulds
Block;35 active modules;351 vibration motors;352 light emitting modules;901~905 steps.
Specific embodiment
Related Applications Patent characteristic for the present invention and technology contents refer to the preferred embodiment of schema in following cooperation
Detailed description in, can clearly present.
Refering to shown in Fig. 6,7, a preferred embodiment of game station, the preferred embodiment are reacted for a kind of high speed of the present invention
Connect via a USB port 21 with a personal computer 22, the preferred embodiment include a microcontroller 31, a detector 32,
One main input module 33, a task arranging module 34 and an active module 35.Wherein, high speed reaction game station is a kind of
Information input equipment, selected from one of mouse, keyboard and joystick, quickly by the movement of user, to be converted into referring to
It enables and controls the personal computer 22.
The main input module 33 and the detector 32 are passive component, to drive the 31 execution task of microcontroller.
The active module 35 is driving component, can issue information with this high speed reaction game station.
The microcontroller 31 and the personal computer 22 transmit information, can receive the detector 32 and this mainly inputs mould
The information of block 33 carries out operation, which can also obtain the reaction instruction 221 that the personal computer 22 is issued
And carry out operation, for example, the computer game in the personal computer 22 needs mouse to shine, or mouse is needed to shake
It is dynamic, or mouse is needed to make a sound, which will issue reaction instruction 221 to the microcontroller 31.Wherein,
The microcontroller 31 is electrically connected with a flash memory 313 (Flash Mass Storage), so that the microcontroller 31 stores digital letter
Cease and carry out the operation of number.
The detector 32 is electrically connected with the microcontroller 31, which detects an ambient condition 321, to trigger this
Microcontroller 31 generates a detecting instruction 322.Wherein, which is selected from Touch Zone 323 (Touch areas), touch-control
Component 324 (Touch keys), touch tablet 325 (Touchpad), (3 axis of 3-axis acceleration sensor 326
Accelerometer), gyroscope 327 (Gyro Sensor), (the Ambient light of light change sensor 328
Sensor), proximity sensor 329 (Proximity Sensor) and combinations thereof, to promote high speed reaction game station
Additional function.
The main input module 33, is electrically connected with the microcontroller 31, which detects an external information
331, an input instruction 332 is generated to trigger the microcontroller 31.Wherein, the main input module 33 is mobile selected from surface
Detector 333 (Surface Motion Sensor), button matrix 334 (Button matrix), 335 (Key of keyboard matrix
Matrix), roller sensor 336 (Combined scroll/tilt wheel) and combinations thereof reacts game for the high speed and sets
Standby major function.
The active module 35 is electrically connected with the microcontroller 31, and the microcontroller 31 is according to the performed task control master
Dynamic model block 35.The active module 35 can externally issue information, and user can directly incude performed by the personal computer 22
The feedback of games institute information.
Preferably, the active module 35 is selected from vibration motor 351 (Vibration motor), 352 (LED of light emitting module
Controller/LED Array) and combinations thereof, vibration motor 351 can shake high speed reaction game station, light emitting module 352
It can externally shine, when actual implementation, other driving components can be used, for example, sound generating components etc., it should not be as limit.
Cooperation is as shown in fig.8, the high speed for mouse reacts game station, the task arranging module 34 and the microcontroller
31 electrical connections, to control the task scheduling of the microcontroller 31.A microcontroller 31 is equipped in the high speed reaction game station
(MCU), and respectively with roller sensor 336 (Combined scroll/tilt wheel), 352 (LED of light emitting module
Controller/LED Array), Touch Zone 323 (Touch areas), 333 (Surface Motion of surface mobile detection device
Sensor), flash memory 313 (Flash Mass Storage), button matrix 334 (Button matrix), 3-axis acceleration sensing
Device 326 (3 axis Accelerometer) and gyroscope 327 (Gyro Sensor) electrical connection, and the microcontroller 31 passes through
The USB port 21 is connect with 22 information of personal computer, to control the personal computer 22.
Cooperation is as shown in fig.9, the high speed for keyboard reacts game station, the task arranging module 34 and the microcontroller
31 electrical connections, to control the task scheduling of the microcontroller 31.A microcontroller 31 is equipped in the high speed reaction game station
(MCU), and respectively with touch tablet 325 (Touchpad), light emitting module 352 (LED controller/LED Array), touch-control
Component 324 (Touch keys), flash memory 313 (Flash Mass Storage), 328 (Ambient of light change sensor
Light Sensor), proximity sensor 329 (Proximity Sensor) and keyboard matrix 335 (Key matrix) electrical connection,
And the microcontroller 31 is connect by the USB port 21 with 22 information of personal computer, to control the personal computer 22.
As shown in fig.10, being the method for allocating tasks of the preferred embodiment, include an initial step 901, one instruction touching
Send out step 902, a newly-increased task step 903, a task scheduling step 904 and a task execution step 905.
Shown in 1,12, the initial step 901 is first carried out refering to fig. 1 in cooperation, and a task arranging module 34 controls a micro-control
Device 31 processed executes several basic tasks 311 with super circulation.Wherein, several basic tasks 311 are to detect the detector 32,
Or whether the state of the main input module 33 changes, whether which issues reaction instruction 221.
When the microcontroller 31 start-up operation, initial setting 30 provides the task arranging modules 34 several basic to this
Business 311 is ranked up, so that the microcontroller 31 sequentially executes several basic tasks 311.
By the progress of semiconductor technologies, the speed of integrated circuit operation quickly, can allow people to feel that electronic product has more
The illusion of task, even if but quickly with current technology hardware speed, in a time point, integrated circuit still can only be executed
One task can not execute multiple tasks a time point.
Early stage mouse and keyboard can use simple circulation because instruction is simple, to detect the movement of user one by one,
Personal computer 22 can be issued and be instructed, delay machine is less likely to occur for simple instruction, therefore the specification of hardware is promoted
Reach the target of real-time (real-time).
But it is used in the competing mouse and keyboard of electricity, a variety of detection elements can be added, or even to key custom instruction,
And control resolution ratio to screen cursor significantly being promoted, therefore in the single time, the mouse and keyboard competing for electricity are necessary
A large amount of numerical data is executed, and information is rapidly transmitted with the personal computer 22.But merely promote the rule of hardware
Lattice can only promote the speed of operation, can not reprogramming flaw.
Therefore, the task arranging module 34 of the preferred embodiment sets a base region to several basic tasks 311 respectively
The section time, and several basic tasks 311 are ranked up.So that the microcontroller 31 sequentially executes several basic tasks
311.When the microcontroller 31 does not complete a basic task 311 in the basic section time, pause executes the basic task 311,
So that the microcontroller 31 executes another basic task 311, the detector 32 or the main input module are detected quickly and sequentially
Whether 33 state changes, and whether which issues reaction instruction 221.
Preferably, the microcontroller 31 stores the work of the basic task 311 when pause performed basic task 311
Make parameter, when so that the microcontroller 31 executing the basic task 311 again, the basic task 311 can be continued.
Since several basic tasks 311 are for whether obtaining the state of the detector 32 or the main input module 33
Change, whether which issues reaction instruction 221, and task is simple and does not need to carry out complicated operation, task
Runing time is shorter, therefore when actual implementation, which can be not required to should to several settings of basic task 311
It the basic section time, should not be with this as the scheduling of the task arranging module 34 with the end parameter of each basic task 311
It is limited.
Then the instruction triggers step 902 is executed, which detects an ambient condition 321, to trigger the microcontroller
Device 31 generates a detecting instruction 322.One main input module 33 detects an external information 331, to trigger the microcontroller 31 production
Raw input instruction 332.
Several basic tasks 311 are for judging whether the detector 32 detects ambient condition 321, when the detector
32 detect the change of the ambient condition 321, and one of several basic tasks 311 obtain the detector 32 and detect this
Ambient condition 321 changes, and will trigger the basic task 311 and generates detecting instruction 322.
Change when the main input module 33 detects the external information 331, and one of several basic tasks 311
It obtains the main input module 33 and detects the external information 331 change, the basic task 311 will be triggered and generate external information
331。
When several basic tasks 311, one of them obtains the personal computer 22 and the microcontroller 31 is issued one and reacted and refers to
221 are enabled, the basic task 311 will be triggered and download reaction instruction 221.
It for example, should when the detector 32 is 3-axis acceleration sensor 326 (3 axis Accelerometer)
One of them can be responsible for judging the change whether detector 32 detects the ambient condition 321 several basic tasks 311, when this
When high speed reaction game station is mobile, which can detect high speed reaction game station and move, that is, the ring
The change of border state 321, and judge that the detector 32 can detect the ambient condition 321, the basic task by the basic task 311
311, which trigger the microcontroller 31, generates detecting instruction 322.
When the main input module 33 is surface mobile detection device 333 (Surface Motion Sensor), the number
One of a basic task 311 can be responsible for judging whether the main input module 33 detects the external information 331 generation and change
Become, when the basic task 311 judges that the main input module 33 detects external information 331, it is micro- which triggers this
Controller 31 generates input instruction 332.
One of them can be responsible for judging whether the personal computer 22 issues reaction instruction 221 several basic tasks 311,
When the games of the personal computer 22 trigger the event for needing high speed reaction game station luminous, individual meter
Calculation machine 22 issues reaction instruction 221 to the microcontroller 31, which will receive reaction instruction 221.
Then the newly-increased task step 903 is executed, which instructs by detecting instruction 322, the input
332, one of reaction instruction 221, increases a task 312 newly.The microcontroller 31 is to the task 312 setting one
Limit the working time.
In general, the task 312 be as designed by program designer, therefore program designer understand the work appoint
Business 312 can complete work within the regular hour, therefore, the restriction working time can be defaulted in each task 312.
For example, when the detecting instruction 322 of triggering, the external information 331 of triggering or received reaction instruction 221, it is
The active module 35 for controlling the light emitting module 352 externally shines, which can increase the control active module 35 hair newly
The task 312 of light, and the restriction working time of the task 312 is set, that is, the task 312 must be in this
Limiting in the working time terminates, and otherwise judges the 312 generation problem of task.
Then the task scheduling step 904 is executed, which sets a workspace to the task 312
The section time, and the task 312 is discharged into super circulation.Wherein, the 31 increased task 312 of institute of microcontroller is unlimited
It is one fixed.
When the microcontroller 31 increases several tasks 312 newly, the task arranging module 34 is to each task 312
The work section time is set, and several tasks 312 are ranked up with the basic task 311, to control the microcontroller
Device 31 executes task with super circulation.
The task execution step 905 is finally executed, which executes several basic tasks 311 with super circulation
And the task 312, when the microcontroller 31 is not when the work section time completing the task 312, pause is executed
The task 312, the scheduling of the microcontroller 31 according to the task arranging module 34, executes another basic task 311 or work
Make task 312.
Wherein, which stores the job information before the task 312 pause, so that super circulation is held again
Work when the row task 312, before continuing pause.At the end of the task 312, the microcontroller 31 is by the work
Task 312 is deleted from super circulation.
In addition to this, when the microcontroller 31 is not when the basic section time completing the basic task 311, pause is executed
The basic task 311, the scheduling of the microcontroller 31 according to the task arranging module 34, executes another basic task 311 or work
Make task 312.
The microcontroller 31 counts the working time of the task 312 and generates a net cycle time.When this
For task 312 when super circulation is suspended, which compares the net cycle time and the restriction working time.When
The net cycle time is greater than the restriction working time, which generates a false command.
For example, when the net cycle time of the task 312 is greater than the restriction working time, indicate that the work is appointed
Problem occurs for the execution of business 312, it may occur however that delay or the problem of delay machine, so when the task 312 is in the restriction work
Time is unable to complete, which must just generate false command, to increase another task 312 newly, as except mistake, accuses
It is alert, or the task that return etc. solves the problems, such as.
Inventor it is emphasized that with semiconductor technologies progress, hardware executes the speed of program quickly, can allow use
The instruction real time reaction that family is assigned, but hardware mistake can not occur in huge and complicated operational data, will occur except mistake
The problem of delay machine.
Therefore present invention high speed reaction game station and its method for allocating tasks do not use the Infinite Cyclic conduct of early stage
The basis of each sensor is detected, but each basic task 311 and each task are responsible for the task arranging module 34
312 sequence, and limit the time that the microcontroller 31 executes each section, so as to execute this several basic for the microcontroller 31
It based on task 311, executes supplemented by several tasks 312, is formed and a kind of super followed by what the task arranging module 34 controlled
Ring.Can confirm all the time user whether assign instruction and real-time response, avoid because execute the task 312 when
Between too long, the caused instruction that can not be obtained or postpone user and assign.
As shown in the above description, present invention high speed reaction game station and its method for allocating tasks have following function really
Effect:
One, real-time response:
The task arranging module 34 sets the work section time to the task 312, and the task 312 is discharged into super
Grade circulation, when the microcontroller 31 does not complete the task 312 in the work section time, pause executes the task
312, several basic tasks 311 are executed, the instruction issued with real-time response user.
Two, delay machine is avoided:
It, can be to avoid when the microcontroller 31 executes several basic tasks 311 and several tasks 312 with super circulation
The situation that high speed reaction game station postpones, task of the microcontroller 31 also performed by suspending each time
It when 312, compares the net cycle time of the task 312 and limits the working time, be with the task 312 that judgement is suspended
The problem of no generation delay machine.
Three, mass data is handled:
By the distribution of the task arranging module 34, the microcontroller 31 can be made to execute based on several basic tasks 311, executed
Mode supplemented by several tasks 312 avoids delay machine, and the instruction of real-time response user, therefore designer can be significantly
The resolution ratio or additional function of high speed reaction game station are promoted, which can execute a large amount of digital number really
According to.
In conclusion the present invention is responsible for specifying several basic tasks 311 and several works by the task arranging module 34
Make the sequence of the execution of task 312, and limit the work section time of each task 312, so that the microcontroller 31 executes
It can be in the work section time stopped task 312, so that the microcontroller 31 executes the number when each task 312
Whether a basic task 311 assigns instruction to real-time confirmation user, and high speed reaction game station is further made to reach real-time
The instruction of user is responded, therefore the purpose of the present invention can be reached really.
The foregoing is only a preferred embodiment of the present invention, when that cannot be limited the scope of implementation of the present invention with this, i.e.,
Generally according to simple equivalent changes and modifications made by scope of the present invention patent and invention description content, this hair is all still fallen within
In the range of bright patent covers.
Claims (10)
1. a kind of method for allocating tasks, which is characterized in that comprise the steps of
One initial step, a task arranging module control a microcontroller and execute several basic tasks with super circulation;
One instruction triggers step, a detector detect an ambient condition, generate a detecting instruction to trigger the microcontroller, one is main
It wants input module to detect an external information, generates an input instruction to trigger the microcontroller;
One newly-increased task step, one of detecting instruction and input instruction, makes the microcontroller increase a task newly;
One task scheduling step, which sets the work section time to the task, and the work is appointed
Business is discharged into super circulation;And
One task execution step, the microcontroller execute several basic tasks and the task with super circulation, when this is micro-
Controller does not complete the task in the work section time, and pause executes the task.
2. method for allocating tasks according to claim 1, which is characterized in that wherein, in the task execution step, this is micro-
Controller stores the job information before task pause, when so that super circulation executing the task again, continues temporary
Work before stopping.
3. method for allocating tasks according to claim 2, which is characterized in that wherein, in the task execution step, when this
At the end of task, which deletes the task from super circulation.
4. method for allocating tasks according to claim 3, which is characterized in that wherein, in the initial step, task row
Journey module also sets the basic section time to several basic tasks respectively, in the task execution step, when the microcontroller
Device does not complete the basic task in the basic section time, and pause executes the basic task.
5. method for allocating tasks according to claim 4, which is characterized in that wherein, increased newly in task step in this, this is micro-
Controller limits the working time to task setting one, and in the task execution step, which appoints the work
The working time of business is counted and generates a net cycle time.
6. method for allocating tasks according to claim 5, which is characterized in that wherein, in the task execution step, when this
For task when super circulation is suspended, which compares the net cycle time and the restriction working time, when this is total
Working time is greater than the restriction working time, which generates a false command.
7. method for allocating tasks according to claim 6, which is characterized in that wherein, in the instruction triggers step, one
People's computer issues a reaction to the microcontroller and instructs, and increases newly in task step in this, which obtains the reaction and refer to
It enables and generates the task.
8. a kind of high speed reacts game station, it is suitable for method for allocating tasks according to any one of claims 1 to 7, and pass through
It is connect by a USB port with a personal computer, which is characterized in that high speed reaction game station includes:
One microcontroller transmits information with the personal computer;
One detector is electrically connected with the microcontroller, which detects an ambient condition, is generated to trigger the microcontroller
One detecting instruction;
One main input module, is electrically connected with the microcontroller, which detects an external information, to trigger this
Microcontroller generates an input instruction;And
One task arranging module, is electrically connected with the microcontroller, to control the task scheduling of the microcontroller.
9. high speed according to claim 8 reacts game station, which is characterized in that it also include an active module, it is micro- with this
Controller electrical connection, the microcontroller is according to the performed task control active module.
10. high speed according to claim 9 reacts game station, which is characterized in that wherein, which issues one
Reaction instruction, so that the microcontroller obtains reaction instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069625.1A CN110069323B (en) | 2018-01-24 | 2018-01-24 | High-speed reaction game device and task allocation method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810069625.1A CN110069323B (en) | 2018-01-24 | 2018-01-24 | High-speed reaction game device and task allocation method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110069323A true CN110069323A (en) | 2019-07-30 |
CN110069323B CN110069323B (en) | 2024-04-05 |
Family
ID=67365606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810069625.1A Active CN110069323B (en) | 2018-01-24 | 2018-01-24 | High-speed reaction game device and task allocation method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110069323B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2239228C2 (en) * | 2001-07-05 | 2004-10-27 | Всероссийский научно-исследовательский институт автоматики | Method for distributing time of central processor between tasks in automatized system for controlling technological processes |
WO2007028942A1 (en) * | 2005-09-09 | 2007-03-15 | The University Of Leicester | Time-triggered co-operative hardware scheduler |
CN101751294A (en) * | 2008-10-17 | 2010-06-23 | 环旭电子股份有限公司 | BIOS instruction control method |
US20140101663A1 (en) * | 2012-10-04 | 2014-04-10 | Lawrence J. Dickson | Method and apparatus implemented in processors for real-time scheduling and task organization based on response time order of magnitude |
CN103842930A (en) * | 2011-09-28 | 2014-06-04 | 密克罗奇普技术公司 | Microcontroller with scheduling unit |
CN104202394A (en) * | 2014-09-01 | 2014-12-10 | 中国东方电气集团有限公司 | Implementation method of multitask application program based on GPRS (general packet radio service) monitor terminal |
CN104536345A (en) * | 2014-12-17 | 2015-04-22 | 万向钱潮股份有限公司 | Multitask control method based on vehicle electrical control system |
US20150370603A1 (en) * | 2014-06-20 | 2015-12-24 | International Business Machines Corporation | Dynamic parallel distributed job configuration in a shared-resource environment |
CN107239324A (en) * | 2017-05-22 | 2017-10-10 | 阿里巴巴集团控股有限公司 | Work flow processing method, apparatus and system |
CN107273232A (en) * | 2017-05-22 | 2017-10-20 | 国网安徽省电力公司信息通信分公司 | A kind of Enterprise Informatization system self-healing dispatching method |
-
2018
- 2018-01-24 CN CN201810069625.1A patent/CN110069323B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2239228C2 (en) * | 2001-07-05 | 2004-10-27 | Всероссийский научно-исследовательский институт автоматики | Method for distributing time of central processor between tasks in automatized system for controlling technological processes |
WO2007028942A1 (en) * | 2005-09-09 | 2007-03-15 | The University Of Leicester | Time-triggered co-operative hardware scheduler |
CN101751294A (en) * | 2008-10-17 | 2010-06-23 | 环旭电子股份有限公司 | BIOS instruction control method |
CN103842930A (en) * | 2011-09-28 | 2014-06-04 | 密克罗奇普技术公司 | Microcontroller with scheduling unit |
US20140101663A1 (en) * | 2012-10-04 | 2014-04-10 | Lawrence J. Dickson | Method and apparatus implemented in processors for real-time scheduling and task organization based on response time order of magnitude |
US20150370603A1 (en) * | 2014-06-20 | 2015-12-24 | International Business Machines Corporation | Dynamic parallel distributed job configuration in a shared-resource environment |
CN104202394A (en) * | 2014-09-01 | 2014-12-10 | 中国东方电气集团有限公司 | Implementation method of multitask application program based on GPRS (general packet radio service) monitor terminal |
CN104536345A (en) * | 2014-12-17 | 2015-04-22 | 万向钱潮股份有限公司 | Multitask control method based on vehicle electrical control system |
CN107239324A (en) * | 2017-05-22 | 2017-10-10 | 阿里巴巴集团控股有限公司 | Work flow processing method, apparatus and system |
CN107273232A (en) * | 2017-05-22 | 2017-10-20 | 国网安徽省电力公司信息通信分公司 | A kind of Enterprise Informatization system self-healing dispatching method |
Non-Patent Citations (2)
Title |
---|
YI WEI等: "An Operation-Time Simulation Framework for UAV Swarm Configuration and Mission Planning", 《PROCEDIA COMPUTER SCIENCE》, vol. 18, 31 December 2013 (2013-12-31), pages 1949 - 1958 * |
叶枫桦等: "基于LabVIEW队列状态机的数据采集系统设计", 《现代电子技术》, vol. 33, no. 04, 15 February 2010 (2010-02-15), pages 204 - 207 * |
Also Published As
Publication number | Publication date |
---|---|
CN110069323B (en) | 2024-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096131B (en) | Touch interaction method and device and touch wearable equipment | |
CN101520702B (en) | System and method for simulating multi-point input | |
JP2015507263A5 (en) | ||
JP6389581B1 (en) | Program, electronic apparatus, and method | |
CN103207677B (en) | System and method for realizing virtual-real somatosensory interaction of digital Zenghouyi bells | |
CN102736844A (en) | Information processing apparatus, information processing method, and program | |
JP2022550242A (en) | robot choreographer | |
CN104881236B (en) | A kind of scribing line detection system and detection method based on USB interface capacitance touch screen | |
CN103425242A (en) | Electronic device and operation method thereof | |
CN110069323A (en) | High speed reaction game station and its method for allocating tasks | |
CN104346095B (en) | A kind of information processing method and electronic equipment | |
Ahmed et al. | Accelerometer based wireless air mouse using Arduino micro-controller board | |
Micire et al. | Hand and finger registration for multi-touch joysticks on software-based operator control units | |
TWI661338B (en) | A high-speed reaction game device and its task allocation method | |
CN207051865U (en) | Mouse and virtual reality device | |
CN103809846A (en) | Function calling method and electronic equipment | |
CN103279297B (en) | A kind of screen unlock method of mobile terminal | |
Shruti et al. | Arduino based hand gesture controlled robot | |
TWM560055U (en) | High-speed reaction game device | |
KR101959137B1 (en) | Operating method and apparatus for handheld mouse | |
Woo et al. | Interactivity sketcher: crafting and experiencing interactivity qualities | |
JP2016118947A (en) | Spatial handwriting input system using angle-adjustable virtual plane | |
Wang et al. | VirtualTouch: A finger glove to simulate touch screen commands | |
CN104219587A (en) | Method and device used for controlling application | |
WO2022196222A1 (en) | Detection processing device, detection processing method, and information processing system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |