CN100530089C - Pointing-reading machine system and its script drive method - Google Patents

Pointing-reading machine system and its script drive method Download PDF

Info

Publication number
CN100530089C
CN100530089C CNB2007101642759A CN200710164275A CN100530089C CN 100530089 C CN100530089 C CN 100530089C CN B2007101642759 A CNB2007101642759 A CN B2007101642759A CN 200710164275 A CN200710164275 A CN 200710164275A CN 100530089 C CN100530089 C CN 100530089C
Authority
CN
China
Prior art keywords
script
driver module
external unit
pointing
code
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.)
Expired - Fee Related
Application number
CNB2007101642759A
Other languages
Chinese (zh)
Other versions
CN101145103A (en
Inventor
张俊平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CNB2007101642759A priority Critical patent/CN100530089C/en
Publication of CN101145103A publication Critical patent/CN101145103A/en
Application granted granted Critical
Publication of CN100530089C publication Critical patent/CN100530089C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a system of point reader, and the system of point reader comprises a microprocessor and external devices connected with the microprocessor; the invention is characterized in that the point reader also comprises a script driving module which allows users to write script codes so as to realize that the microprocessor can control the external devices and to complete the user-defined function; the invention also discloses a script driving method of the system of point reader; for the invention is provided with the script driving module, and adopts the script driving method, users can self-define the functions of the point reader according to self-needs and interests. The invention has the beneficial effects of platform-independent and flexible compatibility as well as good scalability.

Description

A kind of pointing-reading machine system and script drive method thereof
Technical field
The present invention relates to a kind of pointing-reading machine system and pin thereof wood driving method.
Background technology
Point reader also is called intelligent point reader, is the fourth generation language study product after computer learning machine, language repeater, electronic dictionary.Traditional point reader mainly contains following two kinds: 1, dull and stereotyped point reader, textbook is placed on the machine flat board, and on special-purpose some textbooks of pen, machine obtains and plays corresponding voice according to the books position data of nib contact.2, OID optical head point reader, cardinal principle are coded message is printed on books or the transparent membrane, by image processing arrangement identification coded message, obtain and play corresponding voice.
Existing pointing-reading machine system all is to utilize microprocessor to carry out function corresponding and operation external unit according to certain set form, as playing voice, carrying out volume control, recording, switching on and shutting down etc.The function executing operation that such control mode only allows the user to set in advance according to the deviser, if finish more complicated control function, not only to improve hardware system, also to rewrite the fixer system of point reader, very inconvenient, control method is inflexible, the point reader function singleness, complicated operation can't be realized the customization at any time of function control flexibly and hommization.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of pointing-reading machine system, it is self-defined that this system allows user side that the execution function of point reader is carried out, and realizes point reader function control flexibly.
In order to realize the foregoing invention purpose, the technical solution used in the present invention is as follows:
A kind of pointing-reading machine system, comprise microprocessor and external unit and driver module thereof, it is characterized in that described pointing-reading machine system also comprises a script driver module, the driver module of external unit is controlled by the script driver module, microprocessor is connected with the script driver module, the script driver module allows user's compile script code to realize the operation control of microprocessor to external unit, finishes user-defined function.
The present invention also provides the script drive method of above-mentioned pointing-reading machine system, and technical scheme is as follows:
A kind of script drive method of pointing-reading machine system, described pointing-reading machine system comprises microprocessor, external unit and driver module thereof and a script driver module, microprocessor is connected with the driver module of external unit through the script driver module, external unit is characterized in that by the driver module control of external unit described script drive method comprises the steps:
User side is according to script standard compile script code;
The scripted code that the script driver module is write user side is assembled into the target intermediate code that has nothing to do with system hardware according to the instruction set data requirement and leaves in the memory device;
The script driver module is explained and is carried out the target intermediate code, realizes user-defined function is finished in the control of the driver module of microprocessor, external unit and external unit.
Concrete technical scheme also comprises:
Described script driver module comprises a script compile device and a script interpreter,
The script compile device, the scripted code that is used for the user is write is assembled into and the irrelevant target intermediate code of system hardware according to the instruction set data requirement:
Script interpreter is used for explaining and carries out the target intermediate code, realizes the operation control of microprocessor to external unit, finishes user-defined function.
The linguistic norm of the scripted code that described instruction set data requirement and user write is formulated according to the characteristic of point reader.
Scripted code that described user writes is supported multilingual, comprise in English, Chinese and the Japanese a kind of, two or more.
Described external unit comprises:
Memory device and data buffering equipment are used to store data, comprise multi-medium data, shell script and target intermediate code;
Multimedia equipment is used for audio plays and video:
Image processing arrangement OlD optical head is used for triggering generation OID code value message;
The conductive film positioning equipment is used for triggering generation coordinate message:
Press key equipment is used for triggering the generation press key message:
The recording input equipment is used to realize sound-recording function;
Other input equipment is mainly used in human-computer interaction interface, comprises computor-keyboard, in game paddle and the touch-screen a kind of, two or more;
Timer is used to realize timing function.
Described pointing-reading machine system also comprises the driver module of external unit, comprise driver module, button driver module, multimedia driver module, input equipment interface module, image processing arrangement OID optical head driver module and conductive film driver module, the driver module of external unit drives corresponding external unit executable operations under the control of script driver module.
Described script interpreter explains that carrying out the target intermediate code comprises the steps:
A. script interpreter reads the position and the length information of target intermediate code from memory device;
B. script interpreter reads a target intermediate code instruction:
C. judge whether target intermediate code instruction is END instruction, if judged result is for being that then script interpreter finishes the execution of this instruction and withdraws from this section target intermediate code, if judged result is otherwise carries out this instruction and get back to step B, repeated execution of steps B, C.
A kind of pointing-reading machine system of the present invention and script drive method thereof are by being provided with the script driver module, adopting the script method of driving to use to produce can be according to own needs and interest from the function that defines point reader, what the definition of these functions will be based on the hardware device of system certainly.In this case, it is just passable that the part system of point reader only need finish the scheduling of the execution of object code and hardware system function.If need to increase systemic-function, also only need upgrade script linguistic norm and instruction set data requirement, have very strong compatibility.The target intermediate code that the script compile device is compiled out is to produce according to the standard that the deviser formulates, and does not consider concrete target hardware system during generation: and explaining that different hardware system when carrying out realizes the hardware capability of self under concrete instruction drives.The content that the script driver module compiles out does not have to adopt tabular location modes such as fixing voice position and quantity, but and the target intermediate code of platform independence, the user can realize complicated function and logic flow control with the mode of scripted code, when control of the new function of needs or logic flow, only need and recompilate and get final product at user side change script code, do not need again the firmware program in the burning hardware, greatly facilitate books producer and user.When new hardware capability is added, (support other input equipments such as game paddle, touch-screen as needs), only need in shell script, add new instruction, and realize that by the script driver module new hardware controls gets final product.Original target intermediate code and scripted code still can normally use, and are judged concrete hardware and are carried out function corresponding by the script driver module.This shows that compared with prior art, beneficial effect of the present invention is: have platform-neutral, compatible and good extensibility flexibly.
Description of drawings
The invention will be further elaborated below in conjunction with the drawings and specific embodiments.
Fig. 1 is a pointing-reading machine system block diagram of the present invention:
Fig. 2 explains the process flow diagram of carrying out the target intermediate code for script interpreter.
Embodiment
As shown in Figure 1, a kind of pointing-reading machine system comprises microprocessor and the external unit that is attached thereto, and also comprises the driver module and a script driver module of external unit.External unit comprises the recording input equipment that is used to realize sound-recording function; Be used to store the memory device and the data buffering equipment of data such as multi-medium data, shell script and target intermediate code; Be used to realize the timer of system's timing function; Be used to point out the LED lamp of power supply; The display screen that is used to show; Be used to trigger the press key equipment that generates press key message; The multimedia equipment that is used for audio plays and video comprises audio frequency apparatus and video equipment; Be used to trigger the image processing arrangement OID optical head that generates OID code value message or be used to trigger the conductive film positioning equipment that generates coordinate message.The driver module of external unit comprises the driver module that is used to drive display screen; Be used to respond the button driver module of button operation; Be used to drive the multimedia driver module of multimedia; Be used to respond the image processing arrangement OID optical head driver module of OID code value message and the conductive film driver module of response coordinate message, the driver module of external unit drives corresponding external unit executable operations under the control of script driver module.
The script driver module comprises script compile device and script interpreter.When the user needed point reader to carry out certain function, at user side input corresponding script code, this scripted code met set linguistic norm, and supports multilingual, comprises language such as English, Chinese and Japanese.The scripted code that the user writes will be stored in the memory device.The script compile device reads this scripted code and is assembled into the target intermediate code according to the instruction set data requirement from memory device, script interpreter reads the target intermediate code and is construed to the discernible instruction of microprocessor, by calling the corresponding script program, the control external unit is carried out corresponding operating, finishes user-defined function.
The script interpreter explanation is carried out the process of target intermediate code and is seen Fig. 2, comprising:
A. read the step of target intermediate code position and length information;
B. read the step of a target intermediate code instruction;
C. judge whether the target intermediate code instruction among the B is the step of END instruction,, then carries out END instruction and withdraws from this section target intermediate code for being as if judged result, if judged result is otherwise carries out command adapted thereto and get back to step B, repeated execution of steps B, C.
Wherein, the execution of instructing among the step C includes but not limited to following situation:
END instruction: withdraw from this target intermediate code section and wait for the input that the user is new;
Play instruction: play one or several voice document or video file with order or random fashion;
Reset instruction: user-variable is made zero;
Call instruction: call other one section intermediate code section;
Assignment directive: be the user-variable assignment, operand can be constant or another one user-variable;
Comparison order: compare two user-variables or user-variable of comparison and a constant, and the result is put into register;
And instruction: certain user-variable is carried out and operation;
Or instruction: certain user-variable is carried out or operates;
Non-instruction: certain user-variable is carried out not operation;
Test instruction: whether some position of testing certain user-variable is 1;
Add, subtract, the multiplication and division instruction: certain user-variable is carried out the addition subtraction multiplication and division operation;
Jump instruction: intermediate code is prepared to continue to carry out in another address that directly jumps to the intermediate code section;
The condition jump instruction: the result according to comparison order carries out redirect, as greater than, more than or equal to, equal, be not equal to, less than, carry out redirect when satisfying smaller or equal to condition;
Acquisition system time instruction: obtain current system time and deposit the user-variable of instruction appointment in;
Generation random number instruction: produces a random number and deposit in and instruct the user-variable of appointment;
Virtual reception instruction: specifying point reader reception value next time by force, can be an OID code value or a coordinate message;
Condition satisfies execution command: the intermediate code section of carrying out appointment when specified requirements satisfies;
Recursion instruction: the intermediate code between recursion instruction and the end loop instruction is not carried out in circulation when the cycle index of recursion instruction appointment reaches;
Idsplay order: the text or the figure that show appointment at the assigned address of the screen of point reader;
LED instruction: some LED etc. of point reader is lighted or extinguish or glimmer;
Record command: the recording device by point reader begins to record user's pronunciation and is kept in the memory storage of point reader;
Playback instruction: play the voice of recording by record command;
The vibration instruction: the motor rotation that the point reader peripheral circuit is linked to each other produces vibration;
Start the timer instruction: the system timer that starts appointment;
Stop the timer instruction: the system timer that stops appointment.
Illustrate the implementation procedure of User Defined function below:
The user imports following scripted code according to the script standard at user side:
Variable variable 1=0 is set
If condition (variable 1 is less than 10) is for very then carry out
{
Variable variable 1=variable 1+1 is set
Play voice suggestion sound .mp3
Shuffle voice apple .mp3, banana .mp3, watermelon .mp3
}
Withdraw from
It is as follows to produce the target intermediate code after the compiling of script compile device:
01?01?AA?EF?00?02?01?01?AA?EF?0A?00?8C?01?01?AA?EF?01?AA?EF?01?0A?01?003E?CD?00?0B?03?01?32?D1?00?01?32?EF?00?01?33?02?00?FF?FF
Script interpreter is translated into the discernible instruction of microprocessor with above-mentioned target intermediate code then.When program is carried out, read each bar instruction according to the flow sequence of Fig. 2, at first read the address and the length information of this section scripted code, read article one instruction then, article one, instructing and setting a value that is called the variable of variable 1 is 0, judges it is not that this instruction is then carried out in END instruction.Then read the second instruction, the second instruction is satisfied execution command for condition, indicate the code segment of variable 1 less than execution parameter appointment in 10 o'clock, the scope of code segment is set according to symbol ' { ' and ' } ' thereafter, directly jump to ' } if condition does not meet ' after code, deterministic process is in like manner instructed in article one.Enter the 3rd instruction then, symbol ' { ' represents that this is that one section independent code section begins and ' } ' constitutes this independent code section jointly.Four instructions is provided with variable and instructs with article one, just the value of variable 1 is added 1 and the result put back in the variable 1 again, enters the 5th instruction according to flow process then.Article five, instruction is a play instruction, calls the multimedia driver module according to the parameter information that instructs by the script driver module and drives audio frequency apparatus broadcast " prompt tone .mp3 " these voice.Article six, instruction is with the 5th instruction, and just the mode of playing is a shuffle.Article seven, instruction is a symbol ' } ' show that the independent code section finishes.Article eight, current scripted code section is withdrawed from instruction ' withdrawing from ' expression.
By above operation, the user has just realized self-defining voice playing function.
Although embodiment of the present invention are open as above, but it is not restricted to listed utilization in instructions and the embodiment, it can be applied to various suitable the field of the invention fully, for those skilled in the art, can easily realize other modification, therefore under the universal that does not deviate from claim and equivalency range and limited, the legend that the present invention is not limited to specific details and illustrates here and describe.

Claims (10)

1. pointing-reading machine system, comprise microprocessor and external unit and driver module thereof, it is characterized in that described pointing-reading machine system also comprises a script driver module, the driver module of external unit is controlled by the script driver module, microprocessor is connected with the script driver module, the script driver module allows user's compile script code to realize the operation control of microprocessor to external unit, finishes user-defined function.
2. pointing-reading machine system as claimed in claim 1 is characterized in that described script driver module comprises a script compile device and a script interpreter,
The script compile device, the scripted code that is used for the user is write is assembled into and the irrelevant target intermediate code of system hardware according to the instruction set data requirement;
Script interpreter is used for explaining and carries out the target intermediate code, realizes the operation control of microprocessor to external unit, finishes user-defined function.
3. pointing-reading machine system as claimed in claim 2 is characterized in that the linguistic norm of the scripted code that described instruction set data requirement and user write is formulated according to the characteristic of point reader.
4. pointing-reading machine system as claimed in claim 2 is characterized in that the scripted code that described user writes supports multilingual, comprise in English, Chinese and the Japanese a kind of, two or more.
5. pointing-reading machine system as claimed in claim 1 is characterized in that described external unit comprises:
Memory device and data buffering equipment are used to store data, comprise multi-medium data, shell script and target intermediate code;
Multimedia equipment is used for audio plays and video;
Image processing arrangement OID optical head is used for triggering generation OID code value message;
The conductive film positioning equipment is used for triggering generation coordinate message;
Press key equipment is used for triggering the generation press key message;
The recording input equipment is used to realize sound-recording function;
Other input equipment is mainly used in human-computer interaction interface, comprises computor-keyboard, in game paddle and the touch-screen a kind of, two or more;
Timer is used to realize timing function.
6. pointing-reading machine system as claimed in claim 1, the driver module that it is characterized in that described external unit comprises driver module, button driver module, multimedia driver module, input equipment interface module, image processing arrangement OID optical head driver module and conductive film driver module, and the driver module of external unit drives corresponding external unit executable operations under the control of script driver module.
7. the script drive method of a pointing-reading machine system, described pointing-reading machine system comprises microprocessor, external unit and driver module thereof and a script driver module, microprocessor is connected with the driver module of external unit through the script driver module, and external unit is by the driver module control of external unit;
It is characterized in that described script drive method comprises the steps:
User side is according to script standard compile script code;
The scripted code that the script driver module is write user side is assembled into the target intermediate code that has nothing to do with system hardware according to the instruction set data requirement and leaves in the memory device;
The script driver module is explained and is carried out the target intermediate code, realizes user-defined function is finished in the control of the driver module of microprocessor, external unit and external unit.
8. the script drive method of pointing-reading machine system as claimed in claim 7, it is characterized in that described script driver module comprises a script compile device and a script interpreter, the script compile device, the scripted code that is used for the user is write is assembled into the target intermediate code that has nothing to do with system hardware and leaves memory device in according to the instruction set data requirement;
Script interpreter is used for explaining and carries out the target intermediate code, realizes user-defined function is finished in the control of the driver module of microprocessor, external unit and external unit.
9. the script drive method of pointing-reading machine system as claimed in claim 8 is characterized in that described script interpreter explanation execution target intermediate code comprises the steps:
A. script interpreter reads the position and the length information of target intermediate code from memory device;
B. script interpreter reads a target intermediate code instruction;
C. judge whether target intermediate code instruction is END instruction, if judged result is for being that then script interpreter finishes the execution of this instruction and withdraws from this section target intermediate code, if judged result is otherwise carries out this instruction and get back to step B, repeated execution of steps B, C.
10. the script drive method of pointing-reading machine system as claimed in claim 7 is characterized in that described external unit comprises:
Memory device and data buffering equipment are used to store data, comprise multi-medium data, shell script and target intermediate code;
Multimedia equipment is used for audio plays and video;
Image processing arrangement OID optical head is used for triggering generation OID code value message;
The conductive film positioning equipment is used for triggering generation coordinate message;
Press key equipment is used for triggering the generation press key message;
The recording input equipment is used to realize sound-recording function;
Other input equipment is mainly used in human-computer interaction interface, comprises computor-keyboard, in game paddle and the touch-screen a kind of, two or more;
Timer is used to realize timing function;
The driver module of described external unit comprises driver module, button driver module, multimedia driver module, input equipment interface module, image processing arrangement OID optical head driver module and conductive film driver module, and the driver module of external unit drives corresponding external unit executable operations under the control of script driver module.
CNB2007101642759A 2007-10-23 2007-10-23 Pointing-reading machine system and its script drive method Expired - Fee Related CN100530089C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101642759A CN100530089C (en) 2007-10-23 2007-10-23 Pointing-reading machine system and its script drive method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101642759A CN100530089C (en) 2007-10-23 2007-10-23 Pointing-reading machine system and its script drive method

Publications (2)

Publication Number Publication Date
CN101145103A CN101145103A (en) 2008-03-19
CN100530089C true CN100530089C (en) 2009-08-19

Family

ID=39207644

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101642759A Expired - Fee Related CN100530089C (en) 2007-10-23 2007-10-23 Pointing-reading machine system and its script drive method

Country Status (1)

Country Link
CN (1) CN100530089C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853581A (en) * 2010-05-16 2010-10-06 冯德强 Electronic point-reading device
CN102054044B (en) * 2010-12-31 2013-10-23 深圳市华伯通讯设备有限公司 Method and device for generating personalized resource file and electronic equipment
CN104517483A (en) * 2013-09-29 2015-04-15 宁夏先锋软件有限公司 Novel optical point-reading machine
CN106843972A (en) * 2017-01-23 2017-06-13 北京晶海科技有限公司 A kind of method and device of parts back compatible
CN107450930A (en) * 2017-08-14 2017-12-08 上海迅显信息科技有限公司 A kind of development approach based on HMI system script
CN107899243A (en) * 2017-10-20 2018-04-13 深圳市乐智教育科技有限公司 A kind of method and apparatus for generating game
CN109064787B (en) * 2018-07-17 2021-09-24 广东小天才科技有限公司 Point reading equipment
CN109145202B (en) * 2018-07-27 2021-05-07 珠海米团科技有限公司 Multi-content pushing method and system based on OID (object identifier) codes
CN110262793A (en) * 2019-05-20 2019-09-20 苏州乐鼎电子科技有限公司 A kind of logical drive method of talking pen system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3934231A (en) * 1974-02-28 1976-01-20 Dendronic Decisions Limited Adaptive boolean logic element
JP3330620B2 (en) * 1991-07-11 2002-09-30 株式会社リコー Electronic learning machine and its learning program digestion management method
CN2765270Y (en) * 2004-12-09 2006-03-15 胡灼华 Textbook reading machine with book page pressing and text pointing
CN2821735Y (en) * 2005-06-30 2006-09-27 四川长虹朝华信息产品有限责任公司 Spot reader capable of derectly using teaching book
CN1971661A (en) * 2006-11-28 2007-05-30 东莞市步步高教育电子产品有限公司 Control method to play content stored in point reading machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US3934231A (en) * 1974-02-28 1976-01-20 Dendronic Decisions Limited Adaptive boolean logic element
JP3330620B2 (en) * 1991-07-11 2002-09-30 株式会社リコー Electronic learning machine and its learning program digestion management method
CN2765270Y (en) * 2004-12-09 2006-03-15 胡灼华 Textbook reading machine with book page pressing and text pointing
CN2821735Y (en) * 2005-06-30 2006-09-27 四川长虹朝华信息产品有限责任公司 Spot reader capable of derectly using teaching book
CN1971661A (en) * 2006-11-28 2007-05-30 东莞市步步高教育电子产品有限公司 Control method to play content stored in point reading machine

Also Published As

Publication number Publication date
CN101145103A (en) 2008-03-19

Similar Documents

Publication Publication Date Title
CN100530089C (en) Pointing-reading machine system and its script drive method
CN102144209B (en) Multi-tiered voice feedback in an electronic device
US6380924B1 (en) Mouse/keyboard capture recorder (MCR) apparatus and methodology
AU2004214467B2 (en) Hand-held interactive electronic device
EP0690426A2 (en) A computer based training system
WO1999008175A2 (en) Universally accessible computing system
RU2412465C2 (en) Methods for concurrent execution of several tasks in media players
CN102136199A (en) On-line electronic book reader and on-line electronic book editor
Bates Programming 8-bit PIC microcontrollers in C: with interactive hardware simulation
CN1758329A (en) Multifunction electronic music score player
CN103886777B (en) Moving-image playback device and method, animation broadcast control device and method
JP2005527000A (en) Talking E book
JP4934904B2 (en) Robot cooperation device, robot cooperation program storage medium, and robot cooperation program
CN100359462C (en) Developing method and system for programmable control device
RU2007112776A (en) RECORDING MEDIA AND METHOD AND DEVICE FOR PLAYING DATA FROM RECORDING MEDIA
CN110058695A (en) Draw this interaction content generation method, editing machine, electronic equipment and storage medium
RU2000120538A (en) PORTABLE ELECTRONIC DEVICE SYSTEM FOR ENTERTAINMENT, METHOD FOR CONTROL OF PORTABLE ELECTRONIC DEVICE AND RECORDING MEDIA
US6966032B1 (en) Audio assisted setup apparatus and method
JP2003076349A (en) Data reproducing device
JP3268602B2 (en) Game console system using memory cartridge and optical disk memory
Franklin et al. Macromedia Flash MX 2004 ActionScript
CN110262793A (en) A kind of logical drive method of talking pen system
KR101146566B1 (en) Language learning apparatus
Bell et al. Simon Says
CN100583184C (en) Electronic point-reading book with connected-disconnected speech player and the speech player

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090819

Termination date: 20111023