Three, summary of the invention
The present invention is that the working method with the running of a kind of channel code of input/output control signal of computer interface realizes the connection control between computing machine and the electric equipment, the equipment of solution on computer interface obtains intelligent information-based function automatically, can be with tripartite auto-associating of computing machine, network and external connected electronic device and the fexible unit of freely using; It provides the channel code of a control for the input interface of electric equipment, delivery outlet for electric equipment provides controlled channel code again, these codes are all known together by computing machine, the participating computer hierarchy of control, utilize the technical resource work of computing machine, with the switching pulse level produce, as link information, that carries out interface sends out control and controlled to the MODEM mouth with the generation of telephone dial-up signal, realize the connection control of computing machine, or the input end that connects is to the control of electric equipment to electric equipment.
The function mode of the channel code of this device, its code be a kind of Windows98 Windows2000 the function of API form under the winNT operating platform, therefore this code is by being known together with the computing machine of this platform work, simultaneously switch level its control or the controlled control channel that also is all electric equipments general electrical information, this code, the working method of level, both be the computing machine common recognition, also communicate for the control channel of electric equipment, therefore this device is applicable to that all comprise household electrical appliance, the control section of computer peripheral equipment and automatic control equipment be connected control, it is a kind of general connection control stage apparatus, the work of getting final product of need not programming after the access.
Specifically, function of this device and effect: 1, provide the control section of 1~31 tunnel input, 1~255 tunnel output charger equipment, computer peripheral equipment or an automatic control engineering to connect control; 2, the electric equipment of different purposes or the passage of difference in functionality can connect simultaneously; 3, the electrical equipment after the connection can the unit networking, and an automatic control engineering after the connection can have work system of one's own, and the control system of participating computer is utilized the technical resource work of computing machine; 4, unit network after the connection or engineering work system can be used as a terminal and hang into the local network, and can fulfillment information control; 5, plug and play is utilized the software that carries of this device after the access, need not programme and can work immediately; 6, after a tractor serves several purposes, this device insert computing machine, except the connection control function that utilizes this device realization electric equipment, other the purposes can also learnt simultaneously, handle official business, play and surf the Net or the like.Essentially, the present invention is that a kind of mode of code running of utilizing couples together input, output control channel and the computing machine of electric equipment, the control system of participating computer, utilize the technical resource work of computing machine, the equipment of solution on computer interface obtains intelligent information-based function automatically, can be with the tripartite auto-associating of computing machine, network and external connection electrical apparatus equipment and a kind of control device that is connected of freely using.
This device is made up of connectivity port, electric signal processing circuit and software.The connectivity port has 3: input connectivity port, output connectivity port and main frame connectivity port; Electric signal processing circuit has 4 parts: switching circuit portion, coding circuit part, holding circuit part and power circuit part.
The input connectivity port provides the 31 tunnel parallel passages that insert, 1~31 tunnel mode of working one by one, the mode of also can 1~5 tunnel concurrent working and 15 ~ 0 tunnel working one by one inserts for all kinds of input channels and to use, and the trigger pip of its input is by the input connectivity port 5 of this device
1Passage insert, deliver to on-off circuit 6, produce the control voltage of scrambler; Coding circuit adopts 74HC245 to make scrambler, with the low level of main frame parallel port scrambler B end is deceived sign indicating number in advance; When the input service level took place, on-off circuit had produced control voltage, and the precoding of scrambler is flowed out to A by B, enters main frame, was added to the condition line group 15 of main frame parallel port
1Obtain signal by software again and decode 16, make it become the channel code of knowing of all application under the computing machine Windows system, represent, can programme again and call with the form of api function.Functional definition 17 through the user interactions mode is provided with, channel code can obtain immediately: keyboard action, mouse action, the action of output plug receptacle, telephone dialing action, external program are carried out the function of action, multimedia action and counting action etc., adopt the mode of operation of plug and play, can produce control corresponding action output immediately through driving 18.
Trigger pip by input channel is sent into when obtaining in decode procedure, adopts high level to keep phase sampling processing method, gives different codes when each passage adopts the diverse ways decoding.High level is kept phase sampling processing method and is comprised: 1, and the timer of signals collecting can be regulated, and 2, high level is kept the first sample code method of formation in the phase, and 3, high level is kept multidigit sampling duplicated code method of formation in the phase, 4, high level is kept marshalling code generation method in the phase; 5, high level is kept full position counting method in the phase; 6, high level is kept interior the first sampled signal stored count method of phase etc., and wherein 1 is to be provided with a kind of time, and all the other 5 is the concrete practice.Selected according to concrete condition by the user, 31 input channels can be with different sampling processing methods, and its result represents with code form.
Holding circuit mainly is that the data set signal to the main frame parallel port carries out insulation blocking; the Yin Ben device adopts the control interface of the data set line end of parallel port as output channel, avoids the output channel power supply for the protection main frame and enter damage when taking out the port controlling level.Data line group 8 basic data channel in parallel port can be encoded outside device and be generated 255 controlled output channels.Software has been given the code of 255 controlled passage, also represents with api function, and it also can be known for computing machine, and it is controlled to participate in the hierarchy of control immediately.
The electric equipment of this device indication comprises the scope of four aspects: 1, and the conventional peripheral hardware of computing machine promptly aims at some equipment that connect computer operation, as display, printer, audio amplifier, scanner or the like; 2, customization peripheral hardware, i.e. a class computing machine specialized equipment of making by this device agreement interface parameters; 3, household electrical appliance promptly now widely are present in social household electrical appliance, 4, automatic control equipment promptly is that some are automaton, the environmental monitoring control system device of the machine work exploitation of industrial and agricultural production, the demonstration control system of household electric appliances equipment network etc.
Any electric equipment comprises body of work part and two contents of operation control part part, as stylus printer, 24 pins of printhead go out the stylus printer word alternately, and this is the body of work content of printer, power switch, paper feed, move back paper, word car move left and right, single file and print .... etc., they are the various control action contents that guarantee to typewrite printer this body of work normally carries out.And for example single system air-conditioning, this is the body of work content of air-conditioning for the refrigeration system work that is made of the compressor evaporator,
The exercises control content of row.Be exactly common electric light, also by this body of work content of illumination and open and close This move control section.This illustrates the control of described computing machine to electric equipment, mainly refers to act on the control of operation control part subchannel on these electric equipments.
The passage of this device indication, for this device, just be meant the port line that provides, but control project of each passage charger equipment connects, but the control project of sending out of input channel charger equipment is sent out control or information acquisition, but the controlled port of output channel charger equipment connects controlled; The operation circuit of electric equipment also is its passage notion.
This device is all treated all household electrical appliance as electric equipment, in China now, household electrical appliance are products of a kind of technology comparative maturity, and social owning amount is very big.The output channel that each control knob part of the power switch of existing household electrical appliances part, telepilot is directly inserted this device is controlled, need not install additional or demolition is reequiped and can be realized the code control linkage of this device to it.
This device is to the control of the conventional peripheral hardware of computing machine, except the delivery outlet plug receptacle of this device for the power supply of conventional peripheral hardware insert controlled, if the conventional outer telepilot that is provided with, also can be by the way control of household electrical appliance remote controller, the button part of telepilot is pressed into the output channel of this device, carries out by the output channel of this device.
This device carries the power supply of 5V power supply, adopts many transformation, rectification, filtering and mu balanced circuits of knowing.
Model machine of the present invention, volume are the rectangular parallelepipeds of long 16.5*20*7CM, as adopt large batch of production, can be with circuit integration wherein, and the 5V power supply that carries can save, and this device can be contained in the mainframe box at that time, becomes the peripheral hardware of computer random.
Five, embodiment
This device embodiments is described respectively below.Because the effect of this device and the realization of function are on the hardware foundation of this device, finish by the common support of a series of programs in some the concrete methods and the computing machine of packing into, therefore when the explanation embodiment, in certain scope, method and the program that some are concrete will be described specially:
(1), adopts computer printer port and IEEE 1284 standards.This device is for realizing that input and output patch simultaneously, employing has the parallel port conduct that the input and output function can man-machine interaction work and the interface channel of computing machine, with the definition of the IEEE1284 standard of in March, 1994 IEEE (international electric slip-stick artist tissue) issue to port, get 5 condition lines of state group as the basic passage that connects input, take 8 data lines as the basic passage that connects controlled output, take and latch control usefulness when encode as output channel with 1 nAUTOFEED control line.In order to connect more input equipment, the port that is provided with 31 input interface channels in this device docks with 5 condition lines of Methods for Coding and parallel port.Output device also can be encoded on the basis of 8 fundamental lines and be produced 255 tunnel output channel connectivity ports, according to purposes with take passage what encode, latch adaptive with level voluntarily outside machine, makes output connector 13 by the user.
(2), main frame connectivity port.The main frame connectivity port is one 15 pin ' D ' shape plug-in unit, has connected 32,10,11,12 and 13 pin of the condition line group of main frame parallel port, as the inlet of input channel coded signal; 2,3,4,5,6,7,8 and 9 pin that connected the data line group of main frame parallel port are as the basic controlling port of output channel; Introduce when 14 pin nAUTOFEED control lines are encoded as output channel and latch control usefulness, and introduced 21 pin low levels of main frame parallel port, as loading level the precoding of scrambler.
(3), input channel connectivity port working method.The input channel connectivity port 5 of on-off circuit 6
1Provide 31 tunnel input channels parallel access, offered 4 peripheral hardware connectivity ports on the machine box, patched use simultaneously, adopted 1~31 tunnel mode of working one by one for the input of different purposes, the mode of also can 1~8 tunnel concurrent working and 15~0 tunnel working is one by one implemented the access parameter of unified standard.This access parameter standard is: the switch level pulse signal of 1HZ~20KZH is low level (0V) when not working, during work be high level (+5V).Input channel inserts and must at first will transmit and carry out outer demodulation of machine or level adapted according to this standard, makes the input connector, from 3
2Wired access 5
1 Electric equipment 1 preferably adopts the method for remote-control transmitting to send out control or information acquisition, and signal is from 2
1The method of remote-control transmitting will transmit and give 3
1
About working method and concurrent working mode one by one, in general the input channel mode of working one by one is suitable for input is adopted when sending out the control device, as remote-control handle etc., input channel concurrent working mode is suitable for information monitors the occasion of collection in real time and uses, and its uses is that the fundamental line passage of condition line group obtains information.
Input channel generally is used to drive or collection, the processing of the information of a sensor device of equipment itself, exist the various concrete conditions and the requirement of the method for the frequency that transmits and collection, as 1. because of electric equipment input end work transmission frequency difference cause sampling error avoid way; 2. improve the speed that identical code repeats; When 3. input end was as remote control transmitter, 31 passages had lacked, and required number that increases the control button or the like.This device is for adapting to these needs, and the mode of the working signal that input is launched and disposal route have proposed a kind of high level and kept phase sampling processing method, the contents are as follows:
(1), the timer of signals collecting can be regulated.Be that the frequency that sampling period or software obtain code can be regulated.The trigger pip of input equipment is autotelic by hitting by the operator, or the result who produces at random by external sensing equipment, it is different that the high level of the switch level that its trigger pip of various device produces is kept the phase (promptly ' opening ' action holds time), the operator manually is generally about 300 milliseconds by the normal high level phase of keeping of switch level that percussion is given birth to, if adopt the high level of the switching pulse that sensor contact takes place keep the phase that will to keep the phase than the switch level that manually-operated takes place much smaller, in order on input channel, accurately to obtain trigger pip according to different situations, timer for sampling adopts optional way, and this device has adopted the timing way (seeing attached list 1) of optional timer sampling in the 0.1-100 millisecond.
(2), high level is kept the first sample code method of formation in the phase.If the content that some code drives only need be moved back 1 code drive actions takes place, only need to carry out once, for example mouse left click, right click only press down and take place once, should adopt high level to keep the method that the first sample code generates in the phase.And for example input equipment is the operation of handle button one class, does once to trigger, and produces one time drive actions, is the method (seeing attached list 1) that the first sample code generates.
(3), high level is kept multidigit sample code method of formation in the phase.Because some action needs to repeat a certain driving content after button is pressed, for example send out character ' H ' a plurality of and to screen, go, mouse shift action etc., if adopt the method for (2) the first sampling, it is just slow that triggering once produces an action, therefore must adopt high level to keep the method for full position code generation sampling in the phase, after button pressed down, each ' 1 ' was exactly a repetitive operation.This method is obtained the different concrete also differences of implementing according to the position:
A, the multidigit sample code generates rises behind the step every position method (seeing attached list 1).
B, damping position method (seeing attached list 1) behind the step that the multidigit sample code generates.
(4), high level is kept marshalling code generation method in the phase.This is a new method of this device invention.Because this device provides realization ' to go programming by keyboard, operate with telepilot ' operating environment, make the computer remote control manipulater of producer's exploitation convenient as the remote manipulator of televisor, some big application program straighforward operation is not enough with 31 channel code definition, the volume of the remote-control handle of doing can not strengthen, button uses inconvenience too much on the contrary, not easy to operate, therefore the present invention proposes high level and keep the method that full position marshalling code generates in the phase, adopt this method that each button need not be cooperated by other button, as ' ↑ SHIFT ' on the computer keyboard or ' CAPS LOCK ' is strong, just can work as 2 or 3 uses, it is 62 or 93 codes that 31 channel codes can be derived.High level is kept definite method of full position marshalling in the phase, at first will maximum full figure places ' 1 ' may take place to sample devices triggering work organizes into groups, by ' 1 ' order that occurs, determine every group contain ' 1 ' what, and give every group code, general first group is former channel code, second group is branch code, and Code Number is that former channel code adds ' 100 ', and the 3rd group also is branch code, Code Number is that former channel code adds ' 200 ', and so on.Then in practicality by the position occurrence number of each action, in that group, ' sitting in the right seat ' promptly obtains the code of that group.
When the operator keeps the operation of the method for timer counting in the phase at enforcement remote-control handle equipment high level, as adopt 100 milliseconds timing cycle to sample, obtain first group of code (code of former passage) and must adopt and touch method, promptly flicking key keeps the 0.1-0.4 triggered time of second; Obtain second group of code and should adopt and heavily touch method, promptly heavy button keeps the 0.5-0.8 triggered time (seeing attached list 1) of second.
(5), high level is kept full position counting method in the phase.Signal number by the timer repeated acquisition in high level is kept the phase is counted, and the timing signal multilist shows that the time that trigger action ' opens ' is long in a certain passage generation high period, otherwise timing signal represents that less the time that trigger action ' is opened ' lacks.It is relevant that full position counting method and input channel, sampling period (being timing signal) and high level are kept phase length, therefore this counting channel code has the potential of spreading code, the quantity of information of expansion input code on same passage is implemented in and produces a plurality of pulse information codes that switch level is kept on the passage.The pulse information code of these expansions is to keep length (high level is kept the length of phase) by input trigger means time of ' opening ' on a certain passage, take place ' 1 ' what and produce.In addition, this method is for gathering screen-icon flash signal counting, and development computer remote control screen target clicker also is very useful.
(6), high level is kept the first sampled signal stored count method in the phase.For with the quantity of information being a class input equipment of gathering purpose, in order constantly to obtain the purpose of sensor real-time information, can be before the equipment of each passage be started working, determine relative initial amount, adopt high level to keep the first counting method in the phase then, its code occurrence number is carried out stored count, how much characterize the real-time information amount that this code is taken place with counting; Further, carry out correlation analysis and can also handle (seeing attached list 1) as two-dimentional real-time information with time two information records of stored count and generation.
High level is kept the content that phase sampling processing method comprises six aspects, the timer that is signals collecting can be regulated, high level is kept the first sample code method of formation in the phase, high level is kept multidigit sample code method of formation in the phase, what comprise that multidigit sampling duplicated code generates plays behind the step damping position method behind the step that rises that generates every position method and multidigit sample code, high level is kept marshalling code generation method in the phase, high level is kept full position counting method in the phase, high level is kept interior the first sampled signal stored count method of phase etc., wherein 1 is to be provided with a kind of time, and all the other 5 is the concrete practice.The parallel channel that this device adopts and the access way of on-off circuit, for the enforcement of this scheme provides reliable and stable branch art support, guaranteed that each passage requires to choose different input signal acquisition methods according to reality, make high level keep the running flexibly cleverly of phase sampling processing method, in same working environment, show what one's be, guarantee that the fastest the execution the most accurately drives or the most accurate image data, can control the high level of input triggering simultaneously and keep the quantity of information of phase with the expansion input code.Above-mentioned 1~6 enforcement can be accomplished on each passage, all represents with the form of different API codes, is provided with in the action center program, also can select in user program.
When making the computer program remote-control handle, if it is not enough to feel to import the button of 31 passages, can select (4) high level to keep full position marshalling code generation method in the phase, be used for increasing the input channel function, deriving 31 the tunnel under the feelings that do not increase hardware is 62 the road or 93 the tunnel, has avoided common keyboard employing ' SHIFT ' or ' Capslock ' key to come the extended keyboard function; The continuous action of button if desired as moving up and down about mouse action etc., should be adopted multidigit sampling duplicated code method of formation; If input channel is used for the information acquisition of sensor, can select 5 high level to keep in the phase full position counting method or 6 high level are kept the first sampled signal stored count method in the phase, trigger pip to sensor is counted processing, can on same passage, expand the quantity of information of input code, be implemented in and produce the pulse information code that switch level is kept on the passage.These have guaranteed the range of control of input and the precision that quantity of information is gathered, and offer out the person and remove to develop the computer interface product that innovation more meets society need.
Should illustrate, this device is the operation circuit connection that offers electric equipment in the mode of passage, each operation circuit need take passage of this device, if for example an electric equipment has 3 tunnel inputs to send out the control circuit, what this device provided so 31 the tunnel can insert 10 these electric equipments, and in addition surplus 1 passage is not used.Be terrible more input control or sampling channel, can adopt high level to keep full position counting method in the phase on the one hand, obtain the quantity of information of expansion input code on the same passage, be implemented in and produce a plurality of pulse information codes that switch level is kept on the passage.
(4), output channel connectivity port working method.Holding circuit 8 provides 8 basic passages of output, by output channel connectivity port 11
1, give electric equipment 14, as the input type passage, stipulated the access parameter of unified standard, this access parameter standard is :+5V level inserts, the working method of 8 tunnel drivings of accepting one by one.Therefore, operating voltage and access normal voltage coupling for output channel, also in order to increase the port number of output, the user in use, what of amount expand the back with 8 basic output channels and use as required, should at first make 1~255 passage of encoding process generation to 8 basic passages device outside, carry out the latching of adaptive and controlled passage of voltage simultaneously, make the device of output connector 13, again by 13
1With 11
1Mutually in succession.1~255 output-controlled passage, all represent in the mode of code, its form is an api function, each controlled ports provides 2 codes, be controlled beginning code and controlled end code, the developer encodes outside device on the circuit that latchs with the nAUTOFEED control line as latching output level ' 1 ' or ' 0 '.The code of whole controlled passage complete shut-downs also is provided.
Mode scheme as the networking of an electric equipment unit, input channel is for implementing control one by one to exporting 255 numerous controlled passage, make operation directly perceived, the program of being developed of this device provides controlled output channel ' 255 road monitor boards ', 255 icons appear on indicator screen, choose click one by one by mouse, to controlled output channel unlatching, duration, close with the setting and the control project of controlled code and select.It is the center of an output channel master control, Surveillance center.Certainly, the special requirement of some application program, some controlled outputs commonly used or specific use are logical
Road or project simultaneously should be by wireless telecommunications system or the controls of input remote controller, and everything is finished by the code definition of the user interactions mode of action center.
(5), on-off circuit.On-off circuit 6 has 32 switching tubes, and 1 switching tube is used for teleswitch control, and 31 switching tubes are used for coding.Switching tube is C9013, by 32 tunnel working methods designs of adopting the crowd to know, sees a Figure of description 2:1 channel switch, decoding circuit figure.The duty of 32 passages of 32 switch controlled adopts the working method of operation one by one.During input equipment work, the level of the switching pulse of sending here on its a certain parallel channel is from 3
2Through input channel connectivity port 5
1Be added in the B utmost point 6 of switching tube C9013
2, a certain passage of input equipment is not when working, and switch level is an off state always, 5
1Be low level 0V, corresponding C 9013 is ended always, the C utmost point 6
1Keep high level 5V; When if a certain passage of input equipment is worked, the 5V high level is by input connector 3
2Through input channel connectivity port 5
1Be added in the B utmost point 6 of switching tube C9013
2, C9013 is triggered the C utmost point 6
1Conducting immediately, saturated, overturning is low level 0V.6
1Be connected 7 of next stage scrambler 74HC245
1Pin, 7
1Pin is that 19 pin of 74HC245R enable control and the control of 1 pin direction, makes 74HC245 obtain the 0V level of the work that triggers.
(6), coding circuit.5 bar state lines realize that the access of 31 code ports must be adopted coding, therefore adopt 8 bus transceiver 74HC245 as scrambler, and the working method of scrambler is: (1) low level (L) enables (Q)+low level (L) direction control (DIR); (2) coding is exported from the A data terminal by the input of B data terminal.The time technology is treated in the precoding that the way that coding forms adopts low level to load, trigger action during with the C utmost point conducting of the switching tube C9013 that adopts each passage triggers the implementation process of this way to enabling of scrambler and direction control pin, be not subjected to environmental interference, quite stable is reliable.
The concrete working condition of coding circuit: the start back is by computer printer port 15
1Introduce low level pulse by 10
1, to the B data line end 7 of scrambler 74HC245
25 stitches such as 18,17,16,15 and 14 wait to wait do precoding; The enabling of 74HC245 (19 pin) and direction control (1 pin) level are the C utmost points 6 by switching tube C9013
1Provide, in case switching tube C9013 is subjected to the triggering of opening level 5V of the passage of input equipment, level has taken place by height → low variation in its C utmost point, 74HC245 obtains to enable the low level with direction control at once, the low level signal of the precoding of B data line is flowed immediately by the original time state for the treatment of, from A bus 2,3,4,5 and the output of 6 pin, through 10 of output channel connectivity port
1Be added to the parallel port 15 of computing machine
1, the level that port status line group has taken place changes, and obtains signal through program, and decoding processing is reduced corresponding passage for volume.
(7), software section.Software section is responsible for obtaining the level signal of parallel port 5 bar state lines, and decoding is reduced to channel code; Also give channel code to the telephone dialing signal; Adopt the interactive mode of main frame screen prompt, channel code is carried out the definition that mouse action, keyboard action, dialing action, the action of output plug receptacle, external program are carried out action, multimedia action and counting action etc., produce action code by the user; Drive and carry out the output action that pre-sets, control apparatus equipment or application program.Be responsible for obtaining the level signal of 8 stitches of parallel port data line group and the signal of nAUTOFEED control line simultaneously, it is controlled and finish controlled code to produce the beginning of controlled output interface.All obtained by code, code excites action setting, and the code output action is provided with, and elemental motion and code output action are carried out five modules compositions, as accompanying drawing 4.
The code acquisition module obtains the relevant pin level of parallel port state group or phone inserts (modulator-demodular unit) signal, and it is the content of decoding 16.Reduce and obtain input state signal → channel code; Or telephone dialing signal → channel code, these codes all characterize with api function.The channel code setting of telephone dialing should be described, be one greater than 31 virtual code, phone pulls out logical back and carries out code control, the concrete control content of also optional 1#, 2# to 9# etc.
Code excites action that module is set and the code output action is provided with module to code or signal definition action, and it is two submodules of function definition module 17, makes it become the action code that the work purpose is arranged: channel code-function code.This functional definition comprises the control content of the peripheral hardware that all computing machines are really known, and also comprises the controlled electric equipment that inserts this device.The method of definition is the user on the panel that screen ejects, and uses the click menu.The purpose of the content of define channel code is in order to make device reach the effect of plug and play.
Code output action execution module carry out to drive code, by accompanying drawing 4 program modules (18) according to the definition of (17) and (19) with content driven is set.
The elemental motion module is the elemental motion unit, can expand stack, four elemental motion modules have now been developed: mouse action module, keyboard action module, dialing action module and output plug receptacle action module etc., the dial action module is that elemental motion constitutes the code output action by externally dialing arbitrarily of MODEM.
The operational process of the drive software of plug and play is seen accompanying drawing 5.
(8), computer interface IO channel code process working method.The working method of this equipment is the working method of channel code running, is finished jointly by hardware and software, comprises that code produces, obtains and handle, and process is seen accompanying drawing 3.
This process every, input signal by 1~31 one of passage work the time 5V high level pulse signal 3 sent into
2, through 6
2The effect on-off circuit triggers, and produces output terminal 6
1Level is by the variation of 5V → 0, and this level is a channel control signals, also is the initialize signal of channel code; 7
1Be scrambler enable control and direction is controlled the utmost point, after it has obtained the 0V control level, 7
2Precoded signal immediately from 7
3Export, become the coded signal of passage, output to and be connected to computer parallel port 15
1, this is 5 condition lines of parallel port, the trigger pip of the passage of this moment has entered main frame with the form of coded signal; 16 obtain the level signals decoding on the shape line, are undertaken by the driver that the income main frame is installed that carries of this device, make it become channel code by decoding, represent with the api function form.The channel code of this moment is a kind of discernible code in the computing machine, has obtained the ability with computer interactive; And then give feature content by 17 pairs of channel codes of functional definition, the program of Fig. 4 (17) and (19) module provide interactive function defined by the user or that be provided with, are finished by ' action center ' driver.Content to the channel code functional definition is quite abundant, is purpose to solve ' plug and play ' and operational computations machine application program, and each movement content can be multinomial to giving a definition chronologically, becomes a kind of programme controlled member.The method of definition ejects ' action center ' panel column prompting interactive setup by the user on screen panel, promptly decide promptly to use.
Because executive routine difference, again because the purpose of computing machine a tractor serves several purposes, the function of each input channel code is not changeless, the function of channel code this for the moment program be mouse action, in that another purposes of program for the moment, it may be again the action of output plug receptacle, in order not carry out the frequent setting of functional definition of channel code, input operation telepilot defining mode document method is provided, an application program is joined the schema file of a remote controller key definition, make the user in a kind of purposes, set up the back and preserve, directly can call later on a specific file.This device has utilized the MODEM driving about the telephone dialing action of information processing, in operation, also the telephone dialing action is converted to channel code and carries out driving, and promptly the mode of dialing code guarantees that drive actions puts in place.
(9), implementation result.According to function of the present invention and feature,, bring following situation will for IT industry circle if the present invention obtains promoting:
(1), the unit networking will become a kind of pattern.Realize ' network home appliance ', ' audio-visual classroom ', ' assembly hall displaying ', ' light current robot control system(RCS) ' with this device .... wait the unit network, it is the work system of an interconnection cross complaint that this new utility mode inserts numerous simulations, digital appliances equipment one net.These household electrical appliances need not innerly be changed now, settle the thing of what set-top box, connecting box class, also network home appliance just can not worked, and the technical resource of the control device of computing machine, the technical resource that provides and electric equipment itself is provided fully, realizes expection work purpose; Numerous equipment of output both can be controlled by the input action code, practicable again programmed control immediately; All input of Host Administration, go out equipment, also practicable wireless access can link to each other with the external world by MODEM again, carries out the information Control of mobile communication equipment.
(2), make the interface exploitation technology of automatic control become very simple.The developer wants to solve any problem, only need perform hardware, level parameters by input+5V, output+5V, press parallel mode or also go here and there the mode access interface that mixes, need not programming and just can obtain action code or port code, the technical resource and the computer interactive work that just can directly use a computer and provide realize purpose.The also available API code function that provides, by calling of Zhi pines such as off-the-shelf software VB, VC under the Windows, Authoware and courseware great master, at that time, the market share of single-chip microcomputer will be on the hazard, and is subjected to coming the threat of easy, Practical Performance of the platform of comfortable computer general-purpose associated application processor! The several different methods of the input high level sampling that particularly provides makes computer general-purpose associated application processor can obtain the condition of digital information processing, can remove the innovative development practical product by the developer.
(3), will welcome the epoch that the computer remote control manipulater is come into huge numbers of families.This device provides abundant content of operation and operation interface for the computer program telepilot, exploitation producer can fully draw the rich content of method, means and software that this device provides, and various forms of computer program manipulaters, computer game manipulater are made in performance heartily.The product of this making will be a kind of multiple functional, and will be stable interference-free, and cost is little, convenient extremely, can be subjected to the product of the welcome at ten million family.Good like this product is in case injection is social, and the computing machine that will form a kind of ' come coding with keyboard, operate with remote-control handle ' uses general layout.31 of computer general-purpose associated application processor channel codes of carrying out one by one and in the face of ' action center ' systems of all application programs operations of computing machine, all can self-defined complete shortcut menu, the formula of hot-zone operation and batch processing, the high level of button is kept the outer logos of phase sampling, stablize interference-free environment and provide solid technical foundation for the new use general layout of computing machine, at that time, the operation of computer program not only can be realized by non-keyboard, and the operator is away from screen, the attitude freedom is variable, can many people operate simultaneously, it is non-little, simply fantastic to benefit! The remote manipulator of existing computer type on the market can not be better than adopting this device to carry out product processed on function, convenience, stability and cost now.
(4), computer game is undergone a radical change for it.This device comprises the friendly passage that 1. provides input, output to insert simultaneously for computer game exploitation industry provides fabulous soft, hardware environment, very easily realizes the simulation of scene in kind; 2. input is provided, has exported all kinds of api functions, be convenient to the program of constructing; 3. provide remote control to send out control and controlled means, can many people operate sports simultaneously; 4. the mode that provides target to click, shooting can many people be played chess simultaneously; 5. provide screen to get the environment of figure, had ample scope for one's abilities; 6. after multiple computers connects networking, utilize the input of this device, output function exploitation computer network recreation etc., everything computer game that is used for exploitation will be the electronic game class recreation that a kind of input and output multimode is participated in, simulating substance and field face scape is made in outside the machine, and appear on the interior screen of machine, mix right one, abstract in true object view, as face wherein, to one's heart's content bring into play computer and its I/O mystery, similar street machine is better than the street machine, happy like the other again tool style of online game flavor, it is changeable to have more, battle of wits and courage, as face in it and the characteristics of competition body-building, make always the player sit up straight that machine is other holds the computer game family that mouse does key, increased new brother, broken fresh ground!
(5), blue tooth products will be had a growing family.The theory of bluetooth is exactly a radio network technique, relate to the communication of computing machine one phone, this device can be finished the function that interrelates of phone → action code and action code → phone, the function of the input that this device provides, output and dialing action, make information remote control series of products, whereby, can make a kind of practical product of propagating, store, process and be treated to purpose with numerical information on computers, this will be a wide promising industry, for ' bluetooth ' product is had a baby born.
(6), the tripartite auto-associating of computing machine, network and electron device and and freely use, this is a kind of a kind of application of equipment not being installed additional or transforming substantially, ' three parts ' has his own strong points, and all has special application function that its profit is respectively arranged, but the new function of exploitation that there is no limit is made new equipment, this device need not install additional or the transformation situation under ' three parts ' respectively got the chief, make the best use of everything, the aspect of being liked is associated together makes a kind of new application, satisfy the new needs of people.
Subordinate list 1: high level is kept phase sampling processing method instruction card
(1), about the image sequence synoptic diagram of timer:
Timer: → | | ← 10,100 or 200 ... millisecond is made by oneself
Timing information: 001111001111110001110
0-switch level ' pass ', promptly low level 1-switch level ' is opened ', i.e. high level, 11 is 1 timing ' position '.
011110-is that the high level that a switch level takes place is kept the phase signal, promptly by low level 0 beginning (handshaking signal), finish by low level 0 again, between two 0 1111 keep the phase for high level, each 1 is a position, every generation time is once determined by sample clock generator between position and the position, if determine that the sampling time is 100 milliseconds, be 100 milliseconds of timers, so the position and the position between be spaced apart 100 milliseconds, 41 (4 position sections) appears in above-mentioned signal, and promptly the high level phase of keeping is the 4*100=400 millisecond; The handshaking signals that before 410 produce for ' opening ' level, first after 410 is the termination signal of this time moving.Keep in the phase at above-mentioned 400 milliseconds of high level, if the timer that adopts is not 100 milliseconds, but 50 milliseconds, 8 ' 1 ', 8 positions will appear on the sequence synoptic diagram so.
(2), the method sequence synoptic diagram of the first sample code generation:
Timer: → | | ← 100 milliseconds
Timing information: 001111001111110001110
Significance bit section: 0 0+* * *, 0 0+* * * * *, 00 0+* * 0
This example produces three trigger action sequences, all with ' 01 ' beginning, the first method of sampling is only to confirm that first high level that the high level sequence occurs is significant level (with '+' expression), remaining high level is inactive level (with ' * ' expression), no matter ' 1 ' what take place, have only first ' 1 ' occur producing a channel code just tool drive function.
(3), high level is kept multidigit sample code method of formation in the phase:
A has adopted that step+every the method for position, the sequence synoptic diagram is as follows;
Timer: → | | ← 80 milliseconds
Timing information: 00111111111111111100000
Sampling: 0 0+* * * *+*+*+*+*+*+0 0000
Position section explanation: 00 | play step | | be every the position section later on
Screen content (character ' H '): 00 H * * * H * H * H * H * H * H 00000
High level is kept phase 16 position sections, and playing a step section is 5, obtains 7 characters ' H, *-be inactive level;
B, the damping position obtains code method, and this is that the sequence synoptic diagram is as follows for a kind of method that obtains to raise speed:
Timer: → | | ← 80 milliseconds
Timing information: 001111111111111111111000
Timer sampling: 0 0+* * * *+* * *+* *+*+++++0 00
Position section explanation: 00 | play step | later damping position section
Movement content (move in the mouse lower left corner) 00
* * *
* *
*
*
000
High level is kept
phase 19 positions, and playing a step is 5, is damping position section later on, obtain 9 repetitive operations '
', *-be inactive level.
(4), high level is kept marshalling code generation method in the phase, and the sequence synoptic diagram is as follows:
Timer: → | | ← 80 milliseconds
Timing information: 00001111111111111110000
Contingent burst (section): (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15)
Counting marshalling: 1. 2. 3.
Sequential time: | | | |
High level maintenance process: 80 480 880 1200 milliseconds
Term of validity grouping: first group second group the 3rd group
Code name (being assumed to be 22 passages): 22 122 222
Represent this button by the sampling numbers of 80 milliseconds of sampling period possible ranges (the position hop count of generation) for 11 ' 1 ', i.e. 15 sections, high level is kept 80 milliseconds=1200 milliseconds of phase=15 section *; The method of marshalling code setting: as a certain passage (order is 22 passages), by last legend sample clock generator is 80 milliseconds, high level is kept in the phase 3 of full position section marshallings, first group 1-5 order ' 1 ', it is the high level 5*80=400 millisecond of holding time, from 80 to 400 milliseconds is the term of validity, second group of 6-10 individual ' 1 ', be that level holds time it also is 5 ' 1 ', the 5*80=480 millisecond, be the term of validity just since 480 milliseconds to 800 milliseconds, the 3rd group of all ' 1 ' after 11 orders ' 1 ', a period of time after 880 milliseconds only is the term of validity; ' 22 ', second group of former channel code of code called after of first group of former channel code of code called after added ' 100 ', promptly ' 122 '; The 3rd group of former channel code of code called after adds ' 200 ', and promptly ' 222 ', obtain the marshalling code by that group that how much drops on of count signal position section, rather than represent code by passage.
(5), high level is kept phase full position counting method, and the sequence synoptic diagram is as follows:
Timer: → | | ← 80 milliseconds
Timing information: 001111001111110001110
Timer sampling: 0 0++++ 0 0++++++ 00 0+++0
Counting: 1234123456123
(6), high level is kept the first sampled signal stored count method in the phase, and the sequence synoptic diagram is as follows:
Timer: → | | ← 80 milliseconds
Timing information: 001111001111110001110
Timer sampling: 0 0++++ 0 0++++++ 00 0+++0
Counting: 1 * * *, 1 * * * * *, 1 * *
Stored count result: 123