CN108132782A - Automatic programming unit and electronic equipment - Google Patents
Automatic programming unit and electronic equipment Download PDFInfo
- Publication number
- CN108132782A CN108132782A CN201711397640.0A CN201711397640A CN108132782A CN 108132782 A CN108132782 A CN 108132782A CN 201711397640 A CN201711397640 A CN 201711397640A CN 108132782 A CN108132782 A CN 108132782A
- Authority
- CN
- China
- Prior art keywords
- programming
- execution point
- module
- variable
- action
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
Abstract
The present invention relates to a kind of automatic programming unit and electronic equipments, belong to automatic field.Described device includes:Instruction acquisition module, for obtaining the control instruction of user;The corresponding programming variable of control instruction if being not pre-set color mark for colour code, is input to default input frame by input module;Determining module is programmed, for when detecting programming variable in default input frame, determining the corresponding programming action of programming variable and execution point;Execution module for being based on execution point, performs programming action, completes automated programming.The present invention is by obtaining the control instruction of user, if colour code is not pre-set color mark, the corresponding programming variable of control instruction is then input to default input frame, it determines the corresponding programming action of programming variable and execution point, based on execution point, performs programming action, complete automated programming, while the accuracy that guarantee identifies programming action, artificial participation is reduced, simplifies setting process.
Description
Technical field
The present invention relates to automatic field, more particularly to a kind of automatic programming unit and electronic equipment.
Background technology
With the continuous development of Internet technology, using tablet computer, smart mobile phone as representative terminal, from purchase just
The software of the various operating systems based on terminal is installed.During software development, developer is needed to software
It is programmed so that software realizes various functions by operating in for its code in terminal.During the follow-up use of software,
In order to achieve the purpose that increase new function, corrective pitting or promote safety, meeting frequently be updated software many softwares,
During updating software, developer is needed to repeat to write the code in the software.
At present, in the exploitation and renewal process of software, simulation program control mouse-keyboard can be used to carry out for developer
Operation, and simulation program carries out the volume of automated programming namely developer based on simulation program in a manner that screen picks up color
Journey table controls programming action, and then performs corresponding programming by the color of each table in simulation program Recognition and Programming table and move
Make.
In the implementation of the present invention, inventor has found that the relevant technologies have at least the following problems:
The programming table of simulation program includes multiple programming actions, is set by developer, dynamic to programming in order to ensure
Make the accuracy identified, the setting call format of programming action is stringent, and artificial participation is higher, and setting process is relatively complicated.
Invention content
Setting call format to overcome programming action present in the relevant technologies is stringent, and artificial participation is higher, setting
The problem of process is relatively complicated, the update of software and larger maintenance difficulties, the present invention provide a kind of automatic programming unit and electronics
Equipment.
It is according to embodiments of the present invention in a first aspect, providing a kind of automatic programming unit, described device includes:
Instruction acquisition module, for obtaining the control instruction of user, the control instruction carrying is used to indicate whether to perform
The colour code of programming variable;
Input module, it is if being not pre-set color mark for the colour code, the control instruction is corresponding
Programming variable is input to default input frame;
Determining module is programmed, for when detecting the programming variable in the default input frame, determining the volume
The corresponding programming actions of Cheng Bianliang and execution point, the execution point includes the first coordinate variable and the second coordinate variable, described to hold
Row point is used to indicate the position for performing the programming action;
Execution module for being based on the execution point, performs the programming action, completes automated programming.
In another embodiment, described device further includes:
Receiving module, for receiving the initial position co-ordinates of user setting, the initial position co-ordinates are used to indicate described
The position of default input frame on the screen;
Display module for obtaining the default input frame, the default input frame is included sitting in the initial position
It is marked on the position indicated in screen.
In another embodiment, described instruction acquisition module includes:
Receiving submodule, for receiving the instruction table of user, described instruction table include at least one programming variable with
Correspondence between at least one colour code;
Acquisition submodule for being based on the correspondence, obtains the control instruction in described instruction table.
In another embodiment, shortcut key determining module, it is described for determining the corresponding shortcut key of the programming action
Shortcut key is used to trigger the programming action;
Active module for being based on the execution point, activates the shortcut key, performs the programming action, completes automatic
Programming.
In another embodiment, described instruction acquisition module, if being additionally operable to the colour code as pre-set color mark
Know, then continue to obtain the control instruction of user, perform the above-mentioned colour code carried according to the control instruction and judge whether to hold
The step of row corresponding programming action.
In another embodiment, the programming determining module is additionally operable to when based on the execution point execution programming
After action, next execution point of the programming action is determined;
The execution module is additionally operable to, based on next execution point, perform the programming action.
In another embodiment, described device further includes:
Numerical value acquisition module carries for when receiving execution point more new command, obtaining the execution point more new command
The first numerical value and second value;
Update module, for the first coordinate variable of the execution point to be updated to the first numerical value, by the execution point
The Face Changing of second coordinate is updated to second value.
Second aspect according to embodiments of the present invention, provides a kind of electronic equipment, including above-mentioned automatic programming unit.
The technical solution that the embodiment of the present invention provides can include the following benefits:
By obtaining the control instruction of user, if colour code is not pre-set color mark, control instruction is corresponded to
Programming variable be input to default input frame, and when detecting programming variable in default input frame, determine programming variable pair
The programming action and execution point answered based on execution point, perform programming action, complete automated programming, are ensureing to know programming action
While other accuracy, artificial participation is reduced, simplifies setting process.
It should be understood that above general description and following detailed description are only exemplary and explanatory, not
It can the limitation present invention.
Description of the drawings
Attached drawing herein is incorporated into specification and forms the part of this specification, shows the implementation for meeting the present invention
Example, and be used to explain the principle of the present invention together with specification.
Fig. 1 is the flow chart according to a kind of automatic programming method shown in an exemplary embodiment;
Fig. 2A is the block diagram according to a kind of automatic programming unit shown in an exemplary embodiment;
Fig. 2 B are the block diagrams according to a kind of automatic programming unit shown in an exemplary embodiment;
Fig. 2 C are the block diagrams according to a kind of automatic programming unit shown in an exemplary embodiment;
Fig. 2 D are the block diagrams according to a kind of automatic programming unit shown in an exemplary embodiment;
Fig. 2 E are the block diagrams according to a kind of automatic programming unit shown in an exemplary embodiment;
Fig. 3 is the block diagram according to a kind of automatic programming unit shown in an exemplary embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, example is illustrated in the accompanying drawings.Following description is related to
During attached drawing, unless otherwise indicated, the same numbers in different attached drawings represent the same or similar element.Following exemplary embodiment
Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
Fig. 1 is according to a kind of flow chart of automatic programming method shown in an exemplary embodiment, as shown in Figure 1, the party
Method includes the following steps.
In a step 101, the initial position co-ordinates of user setting are received, default input frame is obtained, default input frame is shown
Show in the position that initial position co-ordinates indicate in screen.
In embodiments of the present invention, initial position co-ordinates are used to indicate the position of the default input frame on the screen.
When carrying out automated programming, the programming variable by pending programming is needed to be input in input frame, and manually will be defeated by developer
Enter frame and be drawn to designated position, and then ensure that during automated programming is carried out, the key entry of mouse each time can be defeated at this
Enter on frame.Since there are difference between the operation of person to person so that developer will input what block diagram was drawn to manually each time
Designated position can be there are deviation, and the designated position that input frame is drawn to each time is different, therefore, can be caused certain several
Key entry failure of the mouse of rate in input frame.
It was recognized by the inventor that since terminal can reach the inaccessiable precision of developer when being worked, it can
By control errors in 1 pixel coverage, therefore, in order to ensure designated position that input frame is drawn to every time be it is identical,
Can first setting terminal screen resolution ratio, and initial position co-ordinates are determined according to the resolution ratio of terminal screen, in this way, each
During the initialization of secondary automated programming, can default input frame be drawn in screen automatically by initial position co-ordinates by terminal and indicated
Position, so as to reduce each initialization when presets the error of the designated position of input frame, ensures that mouse exists in automated programming
The probability that failure is keyed in default input frame is zero.
During practical application, terminal can be that initial position co-ordinates set default coordinate, and it is initial to provide setting
The coordinate inlet porting of position coordinates.When detecting that user triggers the coordinate inlet porting, modifiable default coordinate is shown,
And when detect user confirm default coordinate is modified when, using user setting initial position co-ordinates to default coordinate into
Row covering, so that in the initialization of automated programming next time, default input frame to be drawn to the initial bit of user setting automatically
Put the position that coordinate indicates in screen.
In a step 102, the instruction table of user is received, based on correspondence, control instruction is obtained in table is instructed,
If the colour code that control instruction carries is identified for pre-set color, following step 203 is performed;What if control instruction carried
Colour code is not pre-set color mark, then performs following step 204.
In embodiments of the present invention, instruction table instructs for controlling whether to perform the corresponding programming variable of control instruction
Table includes the correspondence between at least one programming variable and at least one colour code.At present, to whether performing volume
When Cheng Bianliang is controlled, generally use instruction table is controlled, to the color mark of each cell in instruction table
Knowledge is detected, and when the colour code of cell is identified for pre-set color, that is, performs the corresponding control instruction of the cell,
I.e. when first unit lattice are identified for the first pre-set color, the first instruction is performed;When second unit lattice are the second pre-set color mark
During knowledge, the second instruction is performed.For example, when the colour code for detecting first unit lattice is red, performs low alert process and refer to
It enables;When the colour code for detecting second unit lattice is orange, high alert process instruction is performed;When detecting third unit lattice
Colour code for green when, perform low interlocking process instruction;When the colour code for detecting the 4th cell is purple, hold
The high interlocking process instruction of row.
It was recognized by the inventor that since the aberration between some colors is smaller, these aberration are small can not to be differentiated to human eye, may
Make developer that mistake occur when being edited to instruction table, lead to the identification identified during automated programming to cell color
Mistake.Therefore, in order to improve the accuracy to the identification of the colour code of cell, it may be used that " non-default colour code is then held
The principle of row control instruction " when the colour code for detecting cell is not pre-set color mark, then performs the cell pair
The control instruction answered.For example, setting pre-set color is identified as white, then when the colour code for detecting a certain cell is not white
When, then perform the corresponding control instruction of the cell.
During practical application, pre-set color mark can be the colour code of program acquiescence, also can be by developer
Sets itself.Terminal can provide the setting color inlet porting that pre-set color identifies, when detecting that developer triggers the color
During inlet porting, the colour code of acquiescence is shown, the colour code that developer can be given tacit consent to using terminal also can be according to demand
The colour code of acquiescence is modified, and when terminal next time starts automated programming, it is most newly-installed to enable developer
Pre-set color identifies.The embodiment of the present invention is to the mode of setting pre-set color mark without specifically limiting.
In step 103, if colour code is identified for pre-set color, the corresponding programming variable of control instruction is skipped,
Continue the control instruction of acquisition user, perform the above-mentioned colour code carried according to control instruction and judge whether to perform corresponding programming
The step of action.
In embodiments of the present invention, when detecting the colour code of a certain cell as pre-set color mark, then it represents that
The corresponding programming variable of control instruction of the cell need not currently be performed, you can continue to obtain the control instruction of user, continue
It identifies next unit lattice, and repeats the step of being detected to the colour code of cell.
At step 104, it is if colour code is not pre-set color mark, the corresponding programming variable of control instruction is defeated
Enter to default input frame.
In embodiments of the present invention, when the colour code for detecting a certain cell is not pre-set color mark, then table
Showing currently needs the corresponding programming variable of the control instruction for performing the cell, also will the cell control instruction it is corresponding
Programming variable is input in default input frame, subsequently to perform the programming variable based on default input frame.
In step 105, when detecting programming variable in default input frame, determine that the corresponding programming of programming variable is dynamic
Work and execution point based on execution point, perform programming action, complete automated programming, and execution point includes the first coordinate variable and second
Coordinate variable, execution point are used to indicate the position for performing programming action.
In embodiments of the present invention, execution point is the basis that programming action performs, and is used to indicate button, variable, line, program
The position displayed in the screen such as block.For different terminal screens, execution point can with terminal operating system and
The resolution ratio of screen changes.
It was recognized by the inventor that when carrying out automated programming, the execution point in the program of terminal is fixed, programming action
In can directly use fixed execution point, so as to be based on execution point perform programming action, for example, the execution point that programming action uses
Coordinate be (30,50).Since the coordinate of the execution point is fixed, when the program of terminal is upgraded, what program provided
Function may increase, and the execution point of programming action is caused to change, and in order to be adapted to the program after upgrading, need one by one
The execution point of programming action is updated.At present, when the execution point to programming action is updated, due to the seat of execution point
Mark is fixed, and is directly written in the corresponding exploitation sentence of programming action, and therefore, it is necessary to again correspond to each programming action
Exploitation sentence rewrite, and then change programming action execution point.In the execution point for changing programming action, it is related to
Change amount is larger, needs the execution point of each programming action to be changed to new coordinate, and rewrite programming action
Sentence is developed, causes operating process relatively complicated, accuracy rate is relatively low.
In order to ensure the accuracy changed to execution point, in embodiments of the present invention, the execution point of programming action is set
For variable namely based on the first coordinate variable and the second coordinate variable composition execution point, no longer by the corresponding exploitation of programming action
Execution point in sentence is set as fixed point so that when setting execution point, first directly to execution point in exploitation sentence
Coordinate variable and the second coordinate variable carry out assignment.Wherein, when to setting execution point, terminal can provide execution point and set
Posting port when detecting that user triggers the execution point inlet porting, shows the first input frame and second of the first coordinate variable
Second input frame of coordinate variable, and obtain the numerical value that user inputs in the first input frame and the second input frame, when carry out from
During dynamic programming, using the position that the first coordinate variable and the second coordinate variable indicate in screen as execution point, complete to performing
The setting of point.For example, execution point can be set as (X, Y), wherein, X is the first coordinate variable, and Y is the second coordinate variable, it is assumed that
It is 30 to receive user and correspond to the value that X is inputted, and the value of corresponding Y inputs is 50, then when performing programming action, by coordinate in screen
Point for (30,50) is write as execution point without exploitation sentence corresponding to programming action again.
Wherein, it may be clashed when being performed at the same time due to different programming actions, in order to ensure that programming action can
Normally to perform, usually different programming actions sets different calling software, such as template duplicating is acted, using tune
It is called with software 1;Range swithching is acted, is called using software 2 is called;Alert process is acted, is used
Software 3 is called to be called.And then when needing to perform a certain programming action, the corresponding calling software of the programming action is opened;
After a certain programming action is finished, the corresponding calling software of the programming action is closed.It was recognized by the inventor that call software
The process of opening and closing is relatively complicated, and the program of terminal will also take into account calling while automated programming stable operation is ensured
The opening and closing of software consume a large amount of workload, can be that different programming action settings is dynamic for triggering programming therefore
The shortcut key of work, and when determining to need to perform a certain programming action, activate the corresponding shortcut key of the programming action, realize the volume
The execution of journey action.Wherein, when performing programming action, the corresponding shortcut key of the programming action can be first determined, based on execution
Point activates the shortcut key, to perform the programming action, completes automated programming.It should be noted that in the process of practical application
In, programming action can also be directly performed, without setting shortcut key for programming action, the embodiment of the present invention is to performing programming action
Mode without specifically limiting.
During practical application, since the program of terminal needs constantly to upgrade, and then can realize more work(
Can, and when the program of terminal is upgraded, due to being presently in existence the execution point of user setting, need to current execution point
The first coordinate variable and the second coordinate variable be modified, in automated programming next time, to be held based on new execution point
Row programming action.Wherein it is possible to the change to execution point is realized by following step one and step 2.
Step 1: when receiving execution point more new command, the first numerical value that execution point more new command carries and the are obtained
Two numerical value.
In embodiments of the present invention, value of first numerical value for the first new coordinate variable of user setting, second value
The value of the second new coordinate variable for user setting.When detecting that user triggers execution point inlet porting, then display is worked as
The value of preceding first coordinate variable and the second coordinate variable, and show the first input frame, the second input frame and ACK button.When
When detecting the first numerical value and second value input by user, and detecting that user triggers the ACK button, it is determined that receive
Execution point more new command, to be subsequently updated based on new value to execution point.
Step 2: the first coordinate variable of execution point is updated to the first numerical value, by the second coordinate Face Changing of execution point more
It is newly second value.
In embodiments of the present invention, when confirm receive the execution point more new command of user when, then obtain the first numerical value and
Second value covers the value of current first coordinate variable and the second coordinate variable based on second value and second value
Lid, obtains new execution point, so that in automated programming next time, programming action is performed based on new execution point.
In step 106, after programming action is performed based on execution point, next execution point of programming action is determined,
Based on next execution point, programming action is performed.
It was recognized by the inventor that have what a large amount of data conversion, alert process etc. repeated during automated programming
It is identical to work namely have a large amount of programming action, is only that execution point has difference, for example, the programming action of the first row
Execution point is the first place of the first row, and programming action is action A;The execution point of the programming action of second row is the first place of the second row,
Programming action is also A, can be that different programming actions set multiple execution points to simplify the process of automated programming therefore,
When completing the programming action based on current execution point, next execution point of the programming action is determined, and based on next execution
Point performs the programming action.
Method provided in an embodiment of the present invention, by obtaining the control instruction of user, if colour code and non-default face
Colour code is known, then the corresponding programming variable of control instruction is input to default input frame, and works as and detect volume in default input frame
During Cheng Bianliang, the corresponding programming action of programming variable and execution point are determined, based on execution point, perform programming action, complete automatic
Programming while the accuracy that guarantee identifies programming action, reduces artificial participation, simplifies setting process.
Fig. 2A is the block diagram according to a kind of automatic programming unit shown in an exemplary embodiment.With reference to Fig. 2A, the device
Including instruction acquisition module 201, input module 202 programs determining module 203 and execution module 204.
The instruction acquisition module 201, for obtaining the control instruction of user, control instruction carrying is used to indicate whether to perform
The colour code of programming variable;
The input module 202, if being not pre-set color mark for colour code, by the corresponding programming of control instruction
Variable is input to default input frame;
The programming determining module 203, for when detecting programming variable in default input frame, determining programming variable pair
The programming action and execution point answered, execution point include the first coordinate variable and the second coordinate variable, and execution point is used to indicate execution
The position of programming action;
The execution module 204 for being based on execution point, performs programming action, completes automated programming.
Device provided in an embodiment of the present invention, by obtaining the control instruction of user, if colour code and non-default face
Colour code is known, then the corresponding programming variable of control instruction is input to default input frame, and works as and detect volume in default input frame
During Cheng Bianliang, the corresponding programming action of programming variable and execution point are determined, based on execution point, perform programming action, complete automatic
Programming while the accuracy that guarantee identifies programming action, reduces artificial participation, simplifies setting process.
In another embodiment, referring to Fig. 2 B, which further includes receiving module 205 and display module 206.
The receiving module 205, for receiving the initial position co-ordinates of user setting, initial position co-ordinates are used to indicate default
The position of input frame on the screen;
For obtaining default input frame, default input frame is included in initial position co-ordinates in screen for the display module 206
The position of middle instruction.
In another embodiment, referring to Fig. 2 C, which including receiving submodule 2011 and obtains
Submodule 2012.
The receiving submodule 2011, for receiving the instruction table of user, instruction table includes at least one programming variable
With the correspondence between at least one colour code;
For being based on correspondence, control instruction is obtained in table is instructed for the acquisition submodule 2012.
In another embodiment, referring to Fig. 2 D, which further includes shortcut key determining module 207 and active module 208.
The shortcut key determining module 207, for determining the corresponding shortcut key of programming action, shortcut key is dynamic for triggering programming
Make;
The active module 208 for being based on execution point, activates shortcut key, performs programming action, completes automated programming.
In another embodiment, the instruction acquisition module 201 identifies if being additionally operable to colour code for pre-set color,
Then continue the control instruction of acquisition user, perform the above-mentioned colour code carried according to control instruction and judge whether to perform corresponding volume
The step of journey acts.
In another embodiment, the programming determining module 203 is additionally operable to finish when based on execution point execution programming action
Afterwards, next execution point of programming action is determined;
The execution module 204 is additionally operable to, based on next execution point, perform programming action.
In another embodiment, referring to Fig. 2 E, which further includes numerical value acquisition module 209 and update module 210.
The numerical value acquisition module 209 carries for when receiving execution point more new command, obtaining execution point more new command
The first numerical value and second value;
The update module 210, for the first coordinate variable of execution point to be updated to the first numerical value, by the second of execution point
Coordinate Face Changing is updated to second value.
About the device in above-described embodiment, wherein modules perform the concrete mode of operation in related this method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 3 is the block diagram according to a kind of automatic programming unit 300 shown in an exemplary embodiment.For example, device 300 can
To be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices are good for
Body equipment, personal digital assistant etc..
With reference to Fig. 3, device 300 can include following one or more components:Processing component 302, memory 304, power supply
Component 306, multimedia component 308, audio component 310, the interface 312 of I/O (Input/Output, input/output), sensor
Component 314 and communication component 316.
The integrated operation of 302 usual control device 300 of processing component, such as with display, call, data communication, phase
Machine operates and record operates associated operation.Processing component 302 can refer to including one or more processors 320 to perform
It enables, to perform all or part of the steps of the methods described above.In addition, processing component 302 can include one or more modules, just
Interaction between processing component 302 and other assemblies.For example, processing component 302 can include multi-media module, it is more to facilitate
Interaction between media component 308 and processing component 302.
Memory 304 is configured as storing various types of data to support the operation in device 300.These data are shown
Example includes the instruction of any application program or method for operating on the device 300, contact data, and telephone book data disappears
Breath, picture, video etc..Memory 304 can be by any kind of volatibility or non-volatile memory device or their group
It closes and realizes, such as SRAM (Static RandomAccess Memory, static RAM), EEPROM
(Electrically-Erasable Programmable Read-Only Memory, the read-only storage of electrically erasable
Device), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM
(Programmable Read-Only Memory, programmable read only memory), and ROM (Read-Only Memory, it is read-only to deposit
Reservoir), magnetic memory, flash memory, disk or CD.
Power supply module 306 provides electric power for the various assemblies of device 300.Power supply module 306 can include power management system
System, one or more power supplys and other generate, manage and distribute electric power associated component with for device 300.
Multimedia component 308 is included in the screen of one output interface of offer between described device 300 and user.One
In a little embodiments, screen can include LCD (Liquid Crystal Display, liquid crystal display) and TP (TouchPanel,
Touch panel).If screen includes touch panel, screen may be implemented as touch screen, be believed with receiving input from the user
Number.Touch panel includes one or more touch sensors to sense the gesture on touch, slide, and touch panel.The touch
Sensor can not only sense the boundary of a touch or slide action, but also detect associated with the touch or slide operation hold
Continuous time and pressure.In some embodiments, multimedia component 308 includes a front camera and/or rear camera.When
Device 300 is in operation mode, and during such as screening-mode or video mode, front camera and/or rear camera can receive
External multi-medium data.Each front camera and rear camera can be a fixed optical lens system or have
Focusing and optical zoom capabilities.
Audio component 310 is configured as output and/or input audio signal.For example, audio component 310 includes a MIC
(Microphone, microphone), when device 300 is in operation mode, such as call model, logging mode and speech recognition mode
When, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory 304
Or it is sent via communication component 316.In some embodiments, audio component 310 further includes a loud speaker, for exporting audio
Signal.
I/O interfaces 312 provide interface between processing component 302 and peripheral interface module, and above-mentioned peripheral interface module can
To be keyboard, click wheel, button etc..These buttons may include but be not limited to:Home button, volume button, start button and lock
Determine button.
Sensor module 314 includes one or more sensors, and the state for providing various aspects for device 300 is commented
Estimate.For example, sensor module 314 can detect opening/closed state of equipment 300, the relative positioning of component, such as component
For the display and keypad of device 300, sensor module 314 can be with the position of 300 1 components of detection device 300 or device
Put change, the existence or non-existence that user contacts with device 300,300 orientation of device or acceleration/deceleration and the temperature of device 300
Variation.Sensor module 314 can include proximity sensor, be configured to detect without any physical contact near
The presence of object.Sensor module 314 can also include optical sensor, such as CMOS (Complementary Metal Oxide
Semiconductor, complementary metal oxide) or CCD (Charge-coupled Device, charge coupled cell) image biography
Sensor, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 316 is configured to facilitate the communication of wired or wireless way between device 300 and other equipment.Device
300 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or combination thereof.In an exemplary implementation
In example, communication component 316 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel.
In one exemplary embodiment, the communication component 316 further includes NFC (NearField Communication, near field leads to
Letter) module, to promote short range communication.For example, RFID (Radio Frequency can be based in NFC module
Identification, radio frequency identification) technology, IrDA (Infra-red DataAssociation, Infrared Data Association) skill
Art, UWB (UltraWideband, ultra wide band) technology, BT (Bluetooth, bluetooth) technologies and other technologies are realized.
In the exemplary embodiment, device 300 can be by one or more ASIC (Application Specific
Integrated Circuit, application specific integrated circuit), DSP (Digital signalProcessor, Digital Signal Processing
Device), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable
Logic Device, programmable logic device), FPGA) (Field Programmable GateArray, field programmable gate
Array), controller, microcontroller, microprocessor or other electronic components realize, for performing above-mentioned automatic programming method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instructing, example are additionally provided
Such as include the memory 304 of instruction, above-metioned instruction can be performed to complete the above method by the processor 320 of device 300.For example,
The non-transitorycomputer readable storage medium can be ROM, RAM (RandomAccess Memory, random access memory
Device), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and light data deposit
Store up equipment etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by automatic programming unit
When processor performs so that automatic programming unit is able to carry out above-mentioned automatic programming method.
Those skilled in the art will readily occur to the present invention its after considering specification and putting into practice invention disclosed herein
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.Description and embodiments are considered only as illustratively, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is only limited by appended claim.
Claims (8)
1. a kind of automatic programming unit, which is characterized in that described device includes:
Instruction acquisition module, for obtaining the control instruction of user, the control instruction carrying is used to indicate whether to perform programming
The colour code of variable;
Input module, if being not pre-set color mark for the colour code, by the corresponding programming of the control instruction
Variable is input to default input frame;
Determining module is programmed, for when detecting the programming variable in the default input frame, determining that the programming becomes
Corresponding programming action and execution point are measured, the execution point includes the first coordinate variable and the second coordinate variable, the execution point
It is used to indicate the position for performing the programming action;
Execution module for being based on the execution point, performs the programming action, completes automated programming.
2. the apparatus according to claim 1, which is characterized in that described device further includes:
Receiving module, for receiving the initial position co-ordinates of user setting, the initial position co-ordinates are used to indicate described default
The position of input frame on the screen;
Display module for obtaining the default input frame, the default input frame is included existing in the initial position co-ordinates
The position indicated in screen.
3. the apparatus according to claim 1, which is characterized in that described instruction acquisition module includes:
Receiving submodule, for receiving the instruction table of user, described instruction table is including at least one programming variable and at least
Correspondence between one colour code;
Acquisition submodule for being based on the correspondence, obtains the control instruction in described instruction table.
4. the apparatus according to claim 1, which is characterized in that described device further includes:
Shortcut key determining module, for determining the corresponding shortcut key of the programming action, the shortcut key is used to trigger the volume
Journey acts;
Active module for being based on the execution point, activates the shortcut key, performs the programming action, completes automated programming.
5. the apparatus according to claim 1, which is characterized in that described instruction acquisition module, if being additionally operable to the color
Pre-set color mark is identified as, then continues to obtain the control instruction of user, performs the above-mentioned face carried according to the control instruction
The step of colour code knowledge judges whether to perform corresponding programming action.
6. the apparatus according to claim 1, which is characterized in that the programming determining module is additionally operable to hold when based on described
After row point performs the programming action, next execution point of the programming action is determined;
The execution module is additionally operable to, based on next execution point, perform the programming action.
7. the apparatus according to claim 1, which is characterized in that described device further includes:
Numerical value acquisition module, for when receiving execution point more new command, obtaining the of the carrying of the execution point more new command
One numerical value and second value;
Update module, for the first coordinate variable of the execution point to be updated to the first numerical value, by the second of the execution point
Coordinate Face Changing is updated to second value.
8. a kind of electronic equipment, which is characterized in that including the automatic programming unit described in claim 1 to 7 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711397640.0A CN108132782B (en) | 2017-12-21 | 2017-12-21 | Automatic programming device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711397640.0A CN108132782B (en) | 2017-12-21 | 2017-12-21 | Automatic programming device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108132782A true CN108132782A (en) | 2018-06-08 |
CN108132782B CN108132782B (en) | 2020-11-27 |
Family
ID=62391306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711397640.0A Active CN108132782B (en) | 2017-12-21 | 2017-12-21 | Automatic programming device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108132782B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108873781A (en) * | 2018-07-09 | 2018-11-23 | 厦门驿创数字科技有限公司 | A kind of Full-automatic digital equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014154039A (en) * | 2013-02-12 | 2014-08-25 | Fuji Electric Co Ltd | Sequence monitoring automatic programming device and automatic programming method |
CN104656543A (en) * | 2015-03-17 | 2015-05-27 | 浪潮集团有限公司 | PLC gradient diagram matrix editing display method |
CN104808611A (en) * | 2015-02-26 | 2015-07-29 | 沈阳东北电力调节技术有限公司 | Industrial control system programming method |
CN107066252A (en) * | 2016-02-10 | 2017-08-18 | 通用电气公司 | Graphical interfaces for the configuration of industrial automation system |
-
2017
- 2017-12-21 CN CN201711397640.0A patent/CN108132782B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014154039A (en) * | 2013-02-12 | 2014-08-25 | Fuji Electric Co Ltd | Sequence monitoring automatic programming device and automatic programming method |
CN104808611A (en) * | 2015-02-26 | 2015-07-29 | 沈阳东北电力调节技术有限公司 | Industrial control system programming method |
CN104656543A (en) * | 2015-03-17 | 2015-05-27 | 浪潮集团有限公司 | PLC gradient diagram matrix editing display method |
CN107066252A (en) * | 2016-02-10 | 2017-08-18 | 通用电气公司 | Graphical interfaces for the configuration of industrial automation system |
Non-Patent Citations (1)
Title |
---|
李晓臣 等: "压缩机PLC系统AI快速自动编程", 《信息技术与应用》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108873781A (en) * | 2018-07-09 | 2018-11-23 | 厦门驿创数字科技有限公司 | A kind of Full-automatic digital equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108132782B (en) | 2020-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105260117B (en) | Application program control method and device | |
CN104536783B (en) | Headspace method to set up and device | |
EP3125531A1 (en) | Control method and device for adjusting shooting function | |
CN105388453B (en) | The method and device of positioning intelligent equipment | |
CN105160854A (en) | Equipment control method, device and terminal equipment | |
CN104486451B (en) | Application program recommends method and device | |
CN104156149A (en) | Method and device for adjusting photographing parameters | |
CN107197441A (en) | The operating mode control method and device of intelligent home device | |
CN103916468B (en) | Method for upgrading system, terminal, server and upgrade-system | |
CN105487805A (en) | Object operating method and device | |
US20150288764A1 (en) | Method and apparatus for controlling smart terminal | |
CN104978200A (en) | Application program display method and device | |
CN107515749A (en) | Starting-up method, device and the electronic equipment of electronic equipment | |
CN108334799A (en) | Fingerprint identification method and device | |
CN105376410A (en) | Method and device for setting alarm clock | |
CN106484287A (en) | Display device control method, device and display device | |
CN104501790B (en) | The calibration method and device of electronic compass | |
CN107622189A (en) | Optimize the method and apparatus of unlocked by fingerprint | |
EP3373282A1 (en) | Method and device for adjusting current of backlight, and display apparatus | |
CN107368280A (en) | Method for controlling volume, device and the interactive voice equipment of interactive voice | |
CN107219989A (en) | Icon processing method, device and terminal | |
CN104951194B (en) | The display methods and device of photographing operation menu | |
CN104410900B (en) | A kind of method and device for controlling the indicator light being installed on smart machine | |
CN105373004A (en) | Method and device for controlling smart device | |
CN106650569B (en) | Fingerprint input method and device |
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 |