CN107368333B - Wearable device configuration method and system based on graphical programming and configuration system - Google Patents

Wearable device configuration method and system based on graphical programming and configuration system Download PDF

Info

Publication number
CN107368333B
CN107368333B CN201710597902.1A CN201710597902A CN107368333B CN 107368333 B CN107368333 B CN 107368333B CN 201710597902 A CN201710597902 A CN 201710597902A CN 107368333 B CN107368333 B CN 107368333B
Authority
CN
China
Prior art keywords
action command
wearable device
configuration file
program
graphical programming
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.)
Active
Application number
CN201710597902.1A
Other languages
Chinese (zh)
Other versions
CN107368333A (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.)
FUJIAN RUIVEN INFORMATION TECHNOLOGY Co Ltd
Original Assignee
FUJIAN RUIVEN INFORMATION TECHNOLOGY Co Ltd
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 FUJIAN RUIVEN INFORMATION TECHNOLOGY Co Ltd filed Critical FUJIAN RUIVEN INFORMATION TECHNOLOGY Co Ltd
Priority to CN201710597902.1A priority Critical patent/CN107368333B/en
Publication of CN107368333A publication Critical patent/CN107368333A/en
Application granted granted Critical
Publication of CN107368333B publication Critical patent/CN107368333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention relates to wearable device technical fields, more particularly to the wearable device configuration method based on graphical programming and system and configuration system.A kind of wearable device configuration method based on graphical programming, includes the following steps:Action command program is generated by graphical programming;Action command program is carried out to simplify processing, generates action command configuration file;Instruct configuration file to wearable device by backstage sending action;Wearable device parses action command configuration file, and creates separate threads according to action command configuration file, runs separate threads, completes respective action instruction.By generating different action command programs and action command configuration file, fast implement the part programmable functional requirement to wearable device, and create a separate threads, the separate threads have no effect on any thread that wearable device was currently running originally, it ensures wearable device original function normal operation, greatly promotes user experience.

Description

Wearable device configuration method and system based on graphical programming and configuration system
Technical field
The present invention relates to wearable device technical fields, more particularly to the wearable device configuration method based on graphical programming With system and configuration system.
Background technology
With the development of science and technology and the communication technology, people are also higher and higher to the functional requirement of wearable device, no longer The function that wearable device has been set, such as smartwatch are contented just to, looking into built in wrist-watch is not merely satisfied with It sees the time, take the functions such as phone, more occur to its programmable functional requirement, for example be provided with race around smartwatch Barn lantern by the different display effects of the programmable realization horse race lamp to smartwatch, or passes through compiling to smartwatch Some other operations of Cheng Shixian, considerably increase the interest of wearable device, are also beneficial to the creativeness of exploitation user of service.
In the prior art, generally realize that the control to equipment, one kind writing journey by programming language by two ways Sequence is compiled into machine executable file, and burning makes it execute respective operations, but such mode requires operating personnel into equipment Certain art of programming is needed to be grasped, its technology is required high;
Another mode is programmable robot used at present, and control terminal writes corresponding program, directly transmits phase Answer program to programmable robot, programmable robot executes respective operations, although such mode is simple, is executed to action The hardware configuration of (both programmable robots) is held to require high, the hardware configuration of wearable device is limited, therefore this mode is same It is not applicable.
Invention content
For this reason, it may be necessary to provide the wearable device configuration method and system based on graphical programming and configure system, to solve Realized certainly on the wearable device of low hardware configuration can fast and flexible programing function, while substantially reducing to user of service's The problem of programming technique requires.
To achieve the above object, a kind of wearable device configuration method based on graphical programming is inventor provided, specifically Implementation it is as follows:
A kind of wearable device configuration method based on graphical programming, includes the following steps:It is generated by graphical programming dynamic Make instruction repertorie;The action command program is carried out to simplify processing, generates action command configuration file;Institute is sent by backstage Action command configuration file is stated to wearable device;The wearable device parsing action command configuration file, and according to The action command configuration file creates separate threads, runs the separate threads, completes respective action instruction.
Further, the step " carrying out simplifying processing to the action command program ", further includes step:According to default Rule, different corresponding instructions is generated by different sentences, and the sentence includes:Do statement and conditional statement.
Further, the step " completing respective action instruction ", further includes step:Multiple parameters are received, according to described Parameter judges whether to meet trigger condition, if meeting trigger condition, executes respective action instruction.
Further, action command program is generated by Blockly.
Further, the wearable device includes:Smartwatch is provided with horse race lamp on the smartwatch.
To achieve the above object, inventor additionally provides a kind of wearable device configuration system based on graphical programming, tool The implementation of body is as follows:
A kind of wearable device configuration system based on graphical programming, including:Action command program generating module, action refer to Enable configuration file generation module, action command configuration file parsing module and action command execution module;The action command journey Sequence generation module is used for:Action command program is generated by graphical programming;The action command configuration file generation module is used for: The action command program is carried out to simplify processing, generates action command configuration file;The action command configuration file parsing Module is used for:By sending the action command configuration file from the background to wearable device, described in the wearable device parsing Action command configuration file;The action command execution module is used for:Independent lines are created according to the action command configuration file Journey runs the separate threads, completes respective action instruction.
Further, the action command configuration file generation module is additionally operable to:According to preset rules, pass through different sentences Different corresponding instructions is generated, the sentence includes:Do statement and conditional statement.
Further, the action command execution module is additionally operable to:Multiple parameters are received, are judged whether according to the parameter Meet trigger condition, if meeting trigger condition, executes respective action instruction.
Further, the action command program generating module is additionally operable to:Action command program is generated by Blockly.
Further, the wearable device includes:Smartwatch is provided with horse race lamp on the smartwatch.
To achieve the above object, inventor additionally provides a kind of wearable device configuration system based on graphical programming, tool The implementation of body is as follows:
A kind of configuration system based on graphical programming, including:Program terminal and wearable device;The program terminal communication Connect the wearable device;The program terminal is used for:Action command program is generated by graphical programming;The action is referred to It enables program carry out simplifying processing, generates action command configuration file;Extremely may be used by sending the action command configuration file from the background Wearable device;The wearable device is used for:The action command configuration file is parsed, and text is configured according to the action command Part creates separate threads, runs the separate threads, completes respective action instruction.
The beneficial effects of the invention are as follows:Graphical programming generates action command program, and simplifies to action command program Processing generates action command configuration file, sends the action command configuration file to wearable device, wearable device is to institute It states action command configuration file to be parsed, generates oneself identifiable program, and execute respective action instruction, in whole process Not only action command configuration file generates simple and convenient, and is not necessarily to same traditional approach, and program is write by programming language, It is compiled into machine executable file, burning is into equipment so that the operating personnel for being ignorant of professional programming language can also be to wearable Equipment carries out programmable operations, substantially reduces the technology requirement to operating personnel.And it can be by generating different action command programs With action command configuration file, the part programmable functional requirement to wearable device is fast implemented, and parses action command and matches File is set, is creating a separate threads, which has no effect on any line that wearable device was currently running originally Journey (does not influence the original main program of wearable device), it is ensured that wearable device original function normal operation greatly promotes User experience, and improve to the programmable flexibility of wearable device.And action command program is generated by graphical programming, with The wearable device of traditional embedded OS and based on Android operation system wearable device comparison, drop significantly Low programming difficulty, can be towards common user, and is not simple parameter configuration, between profession in granularity and flexibility It between programming and can not programming, and can realize very flexible User Defined programing function, increase the entertaining that user uses process Property and subjective initiative.
Description of the drawings
Fig. 1 is a kind of flow chart of the wearable device configuration method based on graphical programming described in specific implementation mode;
Fig. 2 is a kind of module map of the wearable device configuration system based on graphical programming described in specific implementation mode;
Fig. 3 is a kind of module map of the configuration system based on graphical programming described in specific implementation mode.
Reference sign:
200, wearable device configures system,
201, action command program generating module,
202, action command configuration file generation module,
203, action command configuration file parsing module,
204, action command execution module,
300, the configuration system based on graphical programming,
301, program terminal,
302, wearable device.
Specific implementation mode
For the technology contents of technical solution, construction feature, the objects and the effects are described in detail, below in conjunction with specific reality It applies example and attached drawing is coordinated to be explained in detail.
Referring to Fig. 1, in the present embodiment, the wearable device refers to:It directly wears, or is integrated into user Clothes or accessory a kind of portable device.Wearable device is not only a kind of hardware device, even more passes through software support And powerful function is realized in data interaction, high in the clouds interaction, as smartwatch, Intelligent bracelet, intelligent glasses, intelligent headband, Intelligent school bag etc..
Action command configuration file refers to:Execution script file can be explained in wearable device, can be json formats.
In the present embodiment, a kind of wearable device configuration method based on graphical programming can be applicable to intelligent hand On table, horse race lamp is provided on the smartwatch.Its specific implementation is as follows:
Step S101:Action command program is generated by graphical programming.It is specific as follows:In the present embodiment, can pass through The action command program can be saved as other programming language files and is stored in by Blockly language generation action command programs On machine, next time directly can generate corresponding action command program by converting the programming language, also can be to the programming language File is shared, it is ensured that same action command program is not necessarily to duplicate removal repetitive generation, easy to use and raising efficiency.At this Programming language can be java language in embodiment can also be selected as other programming languages, equally in other embodiments In other embodiments, action command program can also be generated by other Programming in Digital Image Processing language, such as:Sikuli、 Modkit etc..And action command program is generated by graphical programming language, and it is write without any code, it only need to be related by pulling Page assembly, operation is extremely simple, realizes flexible User Defined programing function.
After generating action command program, step S102 is executed:The action command program is carried out to simplify processing, is generated dynamic Make instruction configuration file.It is specific as follows:According to preset rules, different corresponding instructions, the sentence are generated by different sentences Including:Do statement and conditional statement, in the present embodiment, be by input module, output module and 2 kinds of sentences (cycle, Condition) realize above functions, it is specific as follows:Based on different physical unit (such as wireless network, blueteeth network, GPS location, Lamp, vibrations, time timer etc., the above can be input module, can also be output module), write in advance it is various can The software function module of parameter configuration, for the various input trigger conditions of the parameter definition of input, for the parameter definition of output Various output effects.User can pass through graphical programming group by easy configuration parameter in conjunction with 2 kinds of sentences (cycle, condition) Knit it is described write in advance it is various can parameter configuration software function module, realize various custom features, that is, generate different Action command configuration file.
Such as:In the present embodiment, input condition includes:Incoming call xxx is received, receives short message xxx, the time=(<Or>) Xxx overturns (downwards, to the left, to the right) etc. upwards, and output condition includes:Sound xxx is played, shows picture xxx, horse race lamp X circles are run, xxx etc. is made a phone call, then according to preset rules, different corresponding instructions is generated by different sentences, such as:IF is received It sends a telegram here the 123AND times<10:00am THEN horse race lamps run 2 circles, and display picture 1.jpg ELSE play sound 3.mp3.Above-mentioned example Son means that horse race lamp runs 2 circles on wearable wrist-watch, then shows if receiving 123 incoming calls and the time is earlier than 10 points of morning Otherwise diagram piece 1.jpg plays audio files 3.mp3, and regenerate corresponding control code name to the above different instruction, finally The action command configuration file for forming .json formats, can be used such as under type:Incoming call corresponding control generation is received in input condition Number:0x00 receives short message and corresponds to control code name:0x01, time correspond to control code name:0x02, overturning type correspond to control code name: 0x03 etc., the corresponding different control code name of different instructions, eventually forms the action command configuration file of .json formats.
Wherein, the condition after IF statement can be and condition, or or condition, such as:IF receives incoming call 123OR and receives Time=10 short message 123OR:00am THEN horse race lamps run 2 circles, and display picture 1.jpgELSE plays sound 3.mp3.THEN or Execution sentence after ELSE statement then executes in order.Do statement can be encapsulated outside conditional statement, such as cycle is several times, unencapsulated In the case of, it is defaulted as Infinite Cyclic.Wherein input module can encapsulate multiple input condition, and output module can also encapsulate multiple defeated Go out condition, encapsulation is more advanced, it can be achieved that more complicated action, such simplified processing is without compared with robot programming language one Sample needs requirement terminal to have java resolvers, greatlys save performance, and easy to operate, great flexibility.
After generating action command configuration file, step S103 is executed:By sending the action command configuration file from the background To wearable device.It is specific as follows:By sending the action command configuration file from the background to smartwatch.Step S104:Institute It states wearable device and parses the action command configuration file.The smartwatch receives the action command configuration file, and The action command configuration file is parsed.After having parsed, step S105 is executed:According to the action command configuration file Separate threads are created, the separate threads are run, complete respective action instruction.It is specific as follows:It is configured according to the action command The good separate threads of document creation, it is independent that the separate threads, which are with the main program of the wearable device, from being created to it End does not affect the operation of the wearable device main program, therefore does not influence wearable device in whole process and carrying out Any application, such as:Alarm clock reminds to point, music etc..The intelligence wearable device will receive multiple parameters, can Judge whether to meet trigger condition according to the parameter, if meeting trigger condition, executes respective action instruction.Specifically such as Under:The intelligence wearable device receives multiple parameters and has ginseng only wherein the various combination of the parameter corresponds to different instructions Several combinations meet pre-set combination, just meet trigger condition, parameter a, b, c are such as received, wherein when parameter a, b, c take When value is 1, just meet trigger condition, and trigger respective action instruction, then the intelligent wearable device receives the ginseng When number abc values are 111, respective action instruction is just executed.
In the present embodiment, it can be presented by generating different action command programs to control horse race lamp on smartwatch Different display effects, whole process do big improvement upgrading on hardware without wearable device, substantially reduce cost, equally With the wearable device of traditional embedded OS and the wearable device based on Android operation system compares, our volume Journey difficulty substantially reduces, can towards common user, between real programming and simple parameter configuration, granularity with In flexibility between it profession programming and can not program, and it can realize that very flexible User Defined programing function can also pass through It generates different action command programs and realizes other programmable functions to control wearable smart machine.
Graphical programming generates action command program, and carries out simplifying processing to action command program, generates action command and matches File is set, sends the action command configuration file to wearable device, wearable device is to the action command configuration file It is parsed, generates oneself identifiable program, and execute respective action instruction, be not only that action command is matched in whole process File generated simple and convenient is set, and is not necessarily to same traditional approach, program is write by programming language, is compiled into the executable text of machine Part, burning is into equipment so that be ignorant of professional programming language operating personnel can also wearable device carry out programmable operations, greatly The big technology requirement reduced to operating personnel.And it can be by generating different action command programs and action command configuration file, soon Speed realizes the part programmable functional requirement to wearable device, and parses action command configuration file, is creating one solely Vertical thread, which, which has no effect on any thread that wearable device was currently running originally, (does not influence wearable device Main program originally), it is ensured that wearable device original function normal operation greatly promotes user experience, and raising pair can The programmable flexibility of wearable device.And action command program is generated by graphical programming, with traditional embedded OS Wearable device and based on Android operation system wearable device comparison, substantially reduce programming difficulty, can be towards common User, and be not simple parameter configuration, in granularity and flexibility between it profession programming and can not program, again It can realize very flexible User Defined programing function, increase interest and subjective initiative that user uses process.
Referring to Fig. 2, in the present embodiment, a kind of tool of the wearable device configuration system 200 based on graphical programming Body realizes that technical solution is as follows:
A kind of wearable device configuration system 200 based on graphical programming, including:Action command program generating module 201, Action command configuration file generation module 202, action command configuration file parsing module 203 and action command execution module 204; The action command program generating module 201 is used for:Action command program is generated by graphical programming;The action command configuration File generating module 202 is used for:The action command program is carried out to simplify processing, generates action command configuration file;It is described Action command configuration file parsing module 203 is used for:By sending the action command configuration file from the background to wearable device, The wearable device parses the action command configuration file;The action command execution module 204 is used for:According to described dynamic Make instruction configuration file and create separate threads, run the separate threads, completes respective action instruction.
In the present embodiment, the action command execution module 204 is additionally operable to:Multiple parameters are received, according to the ginseng Number judges whether to meet trigger condition, if meeting trigger condition, executes respective action instruction.It is specific as follows:The action Instruction execution module 204 receives multiple parameters and has the group of parameter only wherein the various combination of the parameter corresponds to different instructions Conjunction meets pre-set combination, just meets trigger condition, parameter a, b, c is such as received, wherein when parameter a, b, c value is When 1, just meet trigger condition, and trigger respective action instruction, then the action command execution module 204 receives the parameter When abc values are 111, respective action instruction is just executed.
In the present embodiment, the action command program generating module 201 is additionally operable to:It is acted by Blockly generations Instruction repertorie.
In the present embodiment, the action command configuration file generation module 202 is additionally operable to:According to preset rules, lead to It crosses different sentences and generates different corresponding instructions, the sentence includes:Do statement and conditional statement.In the present embodiment, It is to realize above functions by input module, output module and 2 kinds of sentences (cycle, condition), it is specific as follows:Based on different objects Reason unit (for example wireless network, blueteeth network, GPS location, lamp, vibrations, time timer etc., the above can be defeated Enter module, can also be output module), write in advance it is various can parameter configuration software function module, it is fixed for the parameter of input The various input trigger conditions of justice, for the various output effects of the parameter definition of output.User can by easy configuration parameter, then In conjunction with 2 kinds of sentences (cycle, condition), by write in advance described in graphical programming tissue it is various can parameter configuration software letter Digital-to-analogue block realizes various custom features, that is, generates different action command configuration files.Such as:In the present embodiment, it inputs Condition includes:Incoming call xxx is received, short message xxx is received, the time=xxx overturns (downwards, to the left, to the right) etc. upwards, output Condition includes:Sound xxx is played, shows picture xxx, horse race lamp runs x circles, makes a phone call xxx etc., then according to preset rules, Different corresponding instructions is generated by different sentences, such as:IF receives incoming call 123AND and receives time=10 short message 123AND:00am THEN horse race lamps run 2 circles, and display picture 1.jpgELSE plays sound 3.mp3.Above-mentioned example is meant if receiving 123 Electricity and to receive short message that content is 123 and time be 10 points of morning, then horse race lamp runs 2 circles on wearable wrist-watch, then shows figure Otherwise piece 1.jpg plays audio files 3.mp3, and regenerate corresponding control code name, last shape to the above different instruction At the action command configuration file of .json formats, can be used such as under type:The corresponding control code name of incoming call is received in input condition: 0x00 receives short message and corresponds to control code name:0x01, time correspond to control code name:0x02, overturning type correspond to control code name: 0x03 etc., the corresponding different control code name of different instructions, eventually forms the action command configuration file of .json formats.Its In, the condition after IF statement can be and condition, or or condition, such as:IF receives incoming call 123OR and receives short message 123OR Time=10:00am THEN horse race lamps run 2 circles, and display picture 1.jpg ELSE play sound 3.mp3.THEN or ELSE statement Execution sentence afterwards then executes in order.Do statement can be encapsulated outside conditional statement, such as recycled several times, unencapsulated situation Under, it is defaulted as Infinite Cyclic.Wherein input module can encapsulate multiple input condition, and output module can also encapsulate multiple output bars Part, encapsulation is more advanced, it can be achieved that more complicated action, and such simplified processing operation is got up simple and convenient, great flexibility.
In the present embodiment, the wearable device includes:Smartwatch is provided with horse race on the smartwatch Lamp.
Action command program generating module 201 generates action command program by graphical programming, and passes through action command journey Sequence generation module 201 carries out action command program to simplify processing, generates action command configuration file, and match by action command Document analysis module 203 is set by sending the action command configuration file from the background to wearable device, wearable device is to institute It states action command configuration file to be parsed, generates oneself identifiable program, and execute by action command execution module 204 Respective action instructs, and is not only that action command configuration file generates simple and convenient, and is not necessarily to tradition side in whole process Formula writes program by programming language, is compiled into machine executable file, and burning is into equipment so that is ignorant of professional programming language Operating personnel can also wearable device carry out programmable operations, substantially reduce to the requirement of the technology of operating personnel.And it acts Instruction repertorie generation module 201 can be by generating different action command programs and action command configuration file, and fast implementing pair can The part programmable functional requirement of wearable device, and action command configuration file is parsed, mould is really executed by action command Block 204 creates a separate threads, which has no effect on any thread that wearable device was currently running originally (i.e. not Influence the original main program of wearable device), it is ensured that wearable device original function normal operation greatly promotes user's body It tests.And action command program is generated by graphical programming, and programming difficulty is substantially reduced, can be towards common user, and be not Simple parameter configuration in granularity and flexibility between it profession programming and can not program, and can be realized very flexible User Defined programing function increases interest and subjective initiative that user uses process.
Referring to Fig. 3, in the present embodiment, a kind of specific implementation technology of the configuration system 300 based on graphical programming Scheme is as follows:
A kind of configuration system 300 based on graphical programming, including:Program terminal 301 and wearable device 302;The volume Journey terminal 301 communicates to connect the wearable device 302;The program terminal 301 is used for:Referred to by graphical programming generation action Enable program;The action command program is carried out to simplify processing, generates action command configuration file;It is described dynamic by sending from the background Make instruction configuration file to wearable device 302;The wearable device 302 is used for:The action command configuration file is parsed, And separate threads are created according to the action command configuration file, the separate threads are run, respective action instruction is completed.
In the present embodiment, the program terminal 301 may include:Smart mobile phone, tablet computer, Desktop PC, notebook Computer, PDA etc. are equipped with graphical programming software or the smart machine of app.
The wearable device 302 may include:It directly wears, or is integrated into the clothes of user or one kind of accessory Portable device.Wearable device 302 is not only a kind of hardware device, even more passes through software support and data interaction, cloud Interaction is held to realize powerful function, such as smartwatch, Intelligent bracelet, intelligent glasses, intelligent headband, intelligent school bag.
The program terminal 301 is used for:Action command program is generated by graphical programming;To the action command program into Row simplifies processing, generates action command configuration file;By sending the action command configuration file from the background to wearable device 302.Specifically it can be used such as under type:
In the present embodiment, can be by Blockly language generation action command programs, it can be the action command program It saves as other programming language files to be stored on machine, next time directly can generate corresponding action by converting the programming language Instruction repertorie can also share the programming language file, it is ensured that same action command program is not necessarily to duplicate removal demutation At easy to use and raising efficiency.Programming language can be java language in the present embodiment, in other embodiments, Other programming languages can be selected as, equally in other embodiments, can also be generated by other Programming in Digital Image Processing language Action command program, such as:Sikuli, Modkit etc..And action command program is generated by graphical programming language, it is not necessarily to any generation Code book is write, only need to be by pulling related pages component, and operation is extremely simple, realizes flexible User Defined programing function.
After generating action command program, the action command program is carried out to simplify processing, generates action command configuration text Part.It is specific as follows:According to preset rules, different corresponding instructions is generated by different sentences, the sentence includes:Do statement And conditional statement is in the present embodiment by more than input module, output module and 2 kinds of sentences (cycle, condition) realizations Function, it is specific as follows:Based on different physical unit (such as wireless network, blueteeth network, GPS location, lamp, vibrations, time meter When device etc., the above can be input module, can also be output module), write in advance it is various can parameter configuration software Function module, for the various input trigger conditions of the parameter definition of input, for the various output effects of the parameter definition of output.With It family can be by easy configuration parameter, in conjunction with 2 kinds of sentences (cycle, condition), by being write in advance described in graphical programming tissue It is good it is various can parameter configuration software function module, realize various custom features, that is, generate different action command configurations File.
Such as:In the present embodiment, input condition includes:Incoming call xxx is received, receives short message xxx, the time=(<Or>) Xxx overturns (downwards, to the left, to the right) etc. upwards, and output condition includes:Sound xxx is played, shows picture xxx, horse race lamp X circles are run, xxx etc. is made a phone call, then according to preset rules, different corresponding instructions is generated by different sentences, such as:IF is received It sends a telegram here the 123AND times<10:00am THEN horse race lamps run 2 circles, and display picture 1.jpg ELSE play sound 3.mp3.Above-mentioned example Son means that horse race lamp runs 2 circles on wearable wrist-watch, then shows if receiving 123 incoming calls and the time is earlier than 10 points of morning Otherwise diagram piece 1.jpg plays audio files 3.mp3, and regenerate corresponding control code name to the above different instruction, finally The action command configuration file for forming .json formats, can be used such as under type:Incoming call corresponding control generation is received in input condition Number:0x00 receives short message and corresponds to control code name:0x01, time correspond to control code name:0x02, overturning type correspond to control code name: 0x03 etc., the corresponding different control code name of different instructions, eventually forms the action command configuration file of .json formats.
Wherein, the condition after IF statement can be and condition, or or condition, such as:IF receives incoming call 123OR and receives Time=10 short message 123OR:00am THEN horse race lamps run 2 circles, and display picture 1.jpgELSE plays sound 3.mp3.THEN or Execution sentence after ELSE statement then executes in order.Do statement can be encapsulated outside conditional statement, such as cycle is several times, unencapsulated In the case of, it is defaulted as Infinite Cyclic.Wherein input module can encapsulate multiple input condition, and output module can also encapsulate multiple defeated Go out condition, encapsulation is more advanced, it can be achieved that more complicated action, such simplified processing is without compared with robot programming language one Sample needs requirement terminal to have java resolvers, greatlys save performance, and easy to operate, great flexibility.It generates dynamic After making instruction configuration file, by sending the action command configuration file from the background to wearable device 302.It is specific as follows:It is logical Later platform sends the action command configuration file to smartwatch.
The wearable device 302 is used for:The action command configuration file is parsed, and is configured according to the action command Document creation separate threads run the separate threads, complete respective action instruction.Specifically it can be used such as under type:According to institute It states action command configuration file and creates separate threads, the separate threads are to be with the main program of the wearable device 302 It is independent, from being created to its operation for terminating not affecting 302 main program of the wearable device, therefore not shadow in whole process The ongoing any application of wearable device 302 is rung, such as:Alarm clock reminds to point, music etc..The intelligence can be worn Multiple parameters will be received by wearing equipment 302, can judge whether to meet trigger condition according to the parameter, if meeting trigger condition, Then execute respective action instruction.It is specific as follows:The intelligence wearable device 302 receives multiple parameters, wherein the parameter Various combination corresponds to different instructions, and the combination for having parameter only meets pre-set combination, just meets trigger condition, such as connects Parameter a, b, c are received, wherein when parameter a, b, c value is 1, just meets trigger condition, and trigger respective action instruction, then institute State intelligent wearable device 302 receive the parameter abc values be 111 when, just execute respective action instruct.
In the present embodiment, it can be presented by generating different action command programs to control horse race lamp on smartwatch Different display effects, whole process do big improvement upgrading on hardware without wearable device 302, substantially reduce cost, Wearable device comparison equally with the wearable device of traditional embedded OS and based on Android operation system, we Programming difficulty substantially reduce, can be towards common user, between real programming and simple parameter configuration, in particle On degree and flexibility between it profession programming and can not program, and it can realize that very flexible User Defined programing function also may be used By generating different action command programs other programmable functions are realized to control wearable smart machine.
Program terminal 301 generates action command program by graphical programming, and carries out simplifying processing to action command program, Action command configuration file is generated, sends the action command configuration file to wearable device 302, wearable device 302 is right The action command configuration file is parsed, oneself identifiable program is generated, and executes respective action instruction, whole process In be not only action command configuration file generate simple and convenient, and be not necessarily to same traditional approach, journey is write by programming language Sequence, is compiled into machine executable file, and burning is into equipment so that the operating personnel for being ignorant of professional programming language can also be wearable Equipment 302 carries out programmable operations, substantially reduces the technology requirement to operating personnel.And it can be by generating different action command journeys Sequence and action command configuration file fast implement the part programmable functional requirement to wearable device 302, and parsing action refers to Configuration file is enabled, is creating a separate threads, which has no effect on what wearable device 302 was currently running originally Any thread (not influencing the original main program of wearable device 302), it is ensured that 302 original function of wearable device is normally transported Row greatly promotes user experience, and improves to 302 programmable flexibility of wearable device.And it is generated by graphical programming Action command program, with the wearable device 302 of traditional embedded OS and wearing based on Android operation system The comparison of equipment 302 is worn, programming difficulty is substantially reduced, can be towards common user, and be not simple parameter configuration, in particle It on degree and flexibility between it profession programming and can not program, and can realize very flexible User Defined programing function, increase User is added to use the interest and subjective initiative of process.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or terminal device including a series of elements include not only those Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or end The intrinsic element of end equipment.In the absence of more restrictions, being limited by sentence " including ... " or " including ... " Element, it is not excluded that there is also other elements in process, method, article or the terminal device including the element.This Outside, herein, " being more than ", " being less than ", " being more than " etc. are interpreted as not including this number;" more than ", " following ", " within " etc. understandings It includes this number to be.
It should be understood by those skilled in the art that, the various embodiments described above can be provided as method, apparatus or computer program production Product.Complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in these embodiments Form.All or part of step in the method that the various embodiments described above are related to can be instructed by program relevant hardware come It completes, the program can be stored in the storage medium that computer equipment can be read, for executing the various embodiments described above side All or part of step described in method.The computer equipment, including but not limited to:Personal computer, server, general-purpose computations It is machine, special purpose computer, the network equipment, embedded device, programmable device, intelligent mobile terminal, smart home device, wearable Smart machine, vehicle intelligent equipment etc.;The storage medium, including but not limited to:RAM, ROM, magnetic disc, tape, CD, sudden strain of a muscle It deposits, USB flash disk, mobile hard disk, storage card, memory stick, webserver storage, network cloud storage etc..
The various embodiments described above are with reference to method, equipment (system) and the computer program product according to embodiment Flowchart and/or the block diagram describes.It should be understood that can be realized by computer program instructions every in flowchart and/or the block diagram The combination of flow and/or box in one flow and/or box and flowchart and/or the block diagram.These computers can be provided Program instruction is to the processor of computer equipment to generate a machine so that the finger executed by the processor of computer equipment It enables and generates to specify in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes The device of function.
These computer program instructions, which may also be stored in, can guide computer equipment computer operate in a specific manner to set In standby readable memory so that the instruction generation being stored in the computer equipment readable memory includes the manufacture of command device Product, command device realization refer in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes Fixed function.
These computer program instructions can be also loaded on computer equipment so that be executed on a computing device a series of To generate computer implemented processing, the instruction to execute on a computing device is provided for realizing in flow operating procedure The step of function of being specified in one flow of figure or multiple flows and/or one box of block diagram or multiple boxes.
Although the various embodiments described above are described, once a person skilled in the art knows basic wounds The property made concept, then additional changes and modifications can be made to these embodiments, so example the above is only the implementation of the present invention, It is not intended to limit the scope of patent protection of the present invention, it is every to utilize equivalent structure made by description of the invention and accompanying drawing content Or equivalent process transformation, it is applied directly or indirectly in other relevant technical fields, the patent for being similarly included in the present invention Within protection domain.

Claims (9)

1. a kind of wearable device configuration method based on graphical programming, which is characterized in that include the following steps:
Action command program is generated by graphical programming;
The action command program is carried out to simplify processing, generates action command configuration file;
By sending the action command configuration file from the background to wearable device;
The wearable device parses the action command configuration file, and is created independently according to the action command configuration file Thread runs the separate threads, completes respective action instruction;
The step " carrying out simplifying processing to the action command program, generate action command configuration file ", further includes step:
According to preset rules, different corresponding instructions is generated by different sentences, the sentence includes:Do statement and condition language Sentence;By corresponding instruction different described in graphical programming tissue, action command configuration file is generated.
2. a kind of wearable device configuration method based on graphical programming according to claim 1, which is characterized in that described Step " completes respective action instruction ", further includes step:
Multiple parameters are received, judges whether to meet trigger condition according to the parameter, if meeting trigger condition, executes correspondence Action command.
3. a kind of wearable device configuration method based on graphical programming according to claim 1, which is characterized in that
Action command program is generated by Blockly.
4. a kind of wearable device configuration method based on graphical programming according to claim 1, which is characterized in that
The wearable device includes:Smartwatch is provided with horse race lamp on the smartwatch.
5. a kind of wearable device based on graphical programming configures system, which is characterized in that including:
Action command program generating module, action command configuration file generation module, action command configuration file parsing module and Action command execution module;
The action command program generating module is used for:Action command program is generated by graphical programming;
The action command configuration file generation module is used for:The action command program is carried out to simplify processing, generation action Instruct configuration file;
The action command configuration file parsing module is used for:By sending the action command configuration file from the background to wearable Equipment, the wearable device parse the action command configuration file;
The action command execution module is used for:Separate threads are created according to the action command configuration file, are run described only Vertical thread completes respective action instruction;
The action command configuration file generation module is additionally operable to:According to preset rules, different pairs is generated by different sentences It should instruct, the sentence includes:Do statement and conditional statement;It is raw by corresponding instruction different described in graphical programming tissue At action command configuration file.
6. a kind of wearable device based on graphical programming according to claim 5 configures system, which is characterized in that
The action command execution module is additionally operable to:Multiple parameters are received, judge whether to meet trigger condition according to the parameter, If meeting trigger condition, respective action instruction is executed.
7. a kind of wearable device based on graphical programming according to claim 5 configures system, which is characterized in that
The action command program generating module is additionally operable to:Action command program is generated by Blockly.
8. a kind of wearable device based on graphical programming according to claim 5 configures system, which is characterized in that
The wearable device includes:Smartwatch is provided with horse race lamp on the smartwatch.
9. a kind of configuration system based on graphical programming, which is characterized in that including:Program terminal and wearable device;
The program terminal communicates to connect the wearable device;
The program terminal is used for:Action command program is generated by graphical programming;The action command program is simplified Processing generates action command configuration file;By sending the action command configuration file from the background to wearable device;
The wearable device is used for:The action command configuration file is parsed, and is created according to the action command configuration file Separate threads are built, the separate threads are run, complete respective action instruction;
The program terminal is additionally operable to:According to preset rules, different corresponding instructions, the sentence packet are generated by different sentences It includes:Do statement and conditional statement;By corresponding instruction different described in graphical programming tissue, action command configuration text is generated Part.
CN201710597902.1A 2017-07-20 2017-07-20 Wearable device configuration method and system based on graphical programming and configuration system Active CN107368333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710597902.1A CN107368333B (en) 2017-07-20 2017-07-20 Wearable device configuration method and system based on graphical programming and configuration system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710597902.1A CN107368333B (en) 2017-07-20 2017-07-20 Wearable device configuration method and system based on graphical programming and configuration system

Publications (2)

Publication Number Publication Date
CN107368333A CN107368333A (en) 2017-11-21
CN107368333B true CN107368333B (en) 2018-08-14

Family

ID=60308310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710597902.1A Active CN107368333B (en) 2017-07-20 2017-07-20 Wearable device configuration method and system based on graphical programming and configuration system

Country Status (1)

Country Link
CN (1) CN107368333B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976744B (en) * 2017-12-26 2022-09-23 深圳市优必选科技有限公司 Visual programming method, system and terminal equipment
CN108196906B (en) * 2017-12-28 2021-06-22 京信通信系统(中国)有限公司 User instruction processing method and embedded device
WO2020220184A1 (en) * 2019-04-29 2020-11-05 深圳市大疆创新科技有限公司 Visual programming control apparatus, programmable control device and control method therefor, computer readable storage medium, and programming control system
CN115543325B (en) * 2022-12-05 2023-03-14 四川振函创新智能科技有限公司 Graphical programming interface layout optimization method, system, terminal and medium
CN116088882B (en) * 2023-03-31 2023-07-14 深圳市微克科技有限公司 Function configuration method, system and medium based on intelligent wearable device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023868A (en) * 2010-12-20 2011-04-20 深圳瑞高信息技术有限公司 Mobile terminal and control conversion method thereof
CN105138360A (en) * 2015-08-19 2015-12-09 惠州Tcl移动通信有限公司 Wearable device system function call method and wearable device
FR3041775B1 (en) * 2015-09-30 2017-12-08 Delta Dore DEVICE AND METHOD FOR MODIFYING THE PROGRAMMING OF A DOMOTIC SYSTEM

Also Published As

Publication number Publication date
CN107368333A (en) 2017-11-21

Similar Documents

Publication Publication Date Title
CN107368333B (en) Wearable device configuration method and system based on graphical programming and configuration system
CN105677335B (en) Improve the method and device that mobile terminal first powers on speed
CN105528229B (en) Improve the method and device that mobile terminal first powers on speed
CN105700925B (en) A kind of interface implementing method and device of APP
CN111290778B (en) AI model packaging method, platform and electronic equipment
CN103500087A (en) Code generation method and device based on maven plug-in and freemarker template
CN108744535B (en) VR control method for playing back, device, VR controlling terminal and readable storage medium storing program for executing
CN103309650A (en) Generating method and device of persistence layer codes
CN102520760B (en) Processor for arbitrary waveform generating system
CN110069312A (en) A kind of method and device of UI component Configuration and generation UI Component Gallery
CN103150154A (en) Implementation method and device of application plug-in
CN107729063A (en) Call method, device and the terminal of SDK
CN109933381A (en) A kind of loading method and device of kernel
CN104793954A (en) Compiling-free graphical combined element encapsulating and reusing method
CN105117608A (en) Information interaction method and device
CN108363578A (en) Application program packaging method, electronic device and computer storage media
CN105656755B (en) User&#39;s pet name treating method and apparatus in social platform
CN103092583A (en) Method and device for dynamically generating setting item list views
CN103984539B (en) A kind of home appliance operation method and system
CN103077032B (en) The operating method of application program and the client of application program
CN110489207A (en) Verification method, apparatus and computer readable storage medium
CN103605806B (en) Implementation method for configurable structural data organization mode
CN108153745B (en) Application data calling method and application development system
CN110362317A (en) A kind of code conversion method, device and storage medium
CN108804088B (en) Protocol processing 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